duoops 0.1.7 → 0.2.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 (64) hide show
  1. package/README.md +151 -63
  2. package/data/aws_machine_power_profiles.json +54 -0
  3. package/data/cpu_physical_specs.json +105 -0
  4. package/data/cpu_power_profiles.json +275 -0
  5. package/data/gcp_machine_power_profiles.json +1802 -0
  6. package/data/runtime-pue-mappings.json +183 -0
  7. package/dist/commands/ask.d.ts +3 -0
  8. package/dist/commands/ask.js +9 -3
  9. package/dist/commands/autofix-ci.d.ts +13 -0
  10. package/dist/commands/autofix-ci.js +114 -0
  11. package/dist/commands/autofix.d.ts +5 -0
  12. package/dist/commands/autofix.js +11 -0
  13. package/dist/commands/config.d.ts +10 -0
  14. package/dist/commands/config.js +47 -0
  15. package/dist/commands/init.js +50 -27
  16. package/dist/commands/mcp/deploy.d.ts +13 -0
  17. package/dist/commands/mcp/deploy.js +139 -0
  18. package/dist/commands/measure/calculate.js +2 -2
  19. package/dist/commands/portal.js +428 -11
  20. package/dist/lib/ai/agent.d.ts +6 -2
  21. package/dist/lib/ai/agent.js +51 -57
  22. package/dist/lib/ai/tools/editing.js +28 -13
  23. package/dist/lib/ai/tools/gitlab.d.ts +4 -0
  24. package/dist/lib/ai/tools/gitlab.js +166 -11
  25. package/dist/lib/ai/tools/measure.js +7 -3
  26. package/dist/lib/ai/tools/types.d.ts +3 -0
  27. package/dist/lib/ai/tools/types.js +1 -0
  28. package/dist/lib/config.d.ts +10 -0
  29. package/dist/lib/gcloud.d.ts +7 -0
  30. package/dist/lib/gcloud.js +105 -0
  31. package/dist/lib/gitlab/pipelines-service.d.ts +23 -0
  32. package/dist/lib/gitlab/pipelines-service.js +146 -0
  33. package/dist/lib/gitlab/runner-service.d.ts +11 -0
  34. package/dist/lib/gitlab/runner-service.js +15 -0
  35. package/dist/lib/portal/settings.d.ts +3 -0
  36. package/dist/lib/portal/settings.js +48 -0
  37. package/dist/lib/scaffold.d.ts +5 -0
  38. package/dist/lib/scaffold.js +32 -0
  39. package/dist/portal/assets/HomeDashboard-DlkwSyKx.js +1 -0
  40. package/dist/portal/assets/JobDetailsDrawer-7kXXMSH8.js +1 -0
  41. package/dist/portal/assets/JobsDashboard-D4pNc9TM.js +1 -0
  42. package/dist/portal/assets/MetricsDashboard-BcgzvzBz.js +1 -0
  43. package/dist/portal/assets/PipelinesDashboard-BNrSM9GB.js +1 -0
  44. package/dist/portal/assets/allPaths-CXDKahbk.js +1 -0
  45. package/dist/portal/assets/allPathsLoader-BF5PAx2c.js +2 -0
  46. package/dist/portal/assets/cache-YerT0Slh.js +6 -0
  47. package/dist/portal/assets/core-Cz8f3oSB.js +19 -0
  48. package/dist/portal/assets/{index-B6bzT1Vv.js → index-B9sNUqEC.js} +1 -1
  49. package/dist/portal/assets/index-BWa_E8Y7.css +1 -0
  50. package/dist/portal/assets/index-Bp4RqK05.js +1 -0
  51. package/dist/portal/assets/index-DW6Qp0d6.js +64 -0
  52. package/dist/portal/assets/index-Uc4Xhv31.js +1 -0
  53. package/dist/portal/assets/progressBar-C4SmnGeZ.js +1 -0
  54. package/dist/portal/assets/splitPathsBySizeLoader-C-T9_API.js +1 -0
  55. package/dist/portal/index.html +2 -2
  56. package/oclif.manifest.json +282 -93
  57. package/package.json +2 -1
  58. package/templates/.gitlab/duo/flows/duoops.yaml +114 -0
  59. package/templates/agents/agent.yml +45 -0
  60. package/templates/duoops-autofix-component.yml +52 -0
  61. package/templates/flows/flow.yml +283 -0
  62. package/dist/portal/assets/MetricsDashboard-DIsoz4Sl.js +0 -71
  63. package/dist/portal/assets/index-BP8FwWqA.css +0 -1
  64. package/dist/portal/assets/index-DkVG3jel.js +0 -70
@@ -0,0 +1,19 @@
1
+ import{h as B1,i as N1,k as F1}from"./index-DW6Qp0d6.js";var Yl=function(e,t){return Yl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Yl(e,t)};function V(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Yl(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var vh=12,z1="sans-serif",Fr=vh+"px "+z1,G1=20,H1=100,V1="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function W1(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-G1)/H1;t[n]=i}return t}var U1=W1(V1),we={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(r,n){if(!e){var i=we.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Fr),e.measureText(r);r=r||"",n=n||Fr;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||vh,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=U1[r[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}};function Ig(e){for(var t in we)e[t]&&(we[t]=e[t])}var Rg=je(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),Eg=je(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),_i=Object.prototype.toString,Us=Array.prototype,Y1=Us.forEach,X1=Us.filter,dh=Us.slice,q1=Us.map,Fc=(function(){}).constructor,qa=Fc?Fc.prototype:null,ph="__proto__",$1=2311;function gh(){return $1++}function Ys(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function rt(e){if(e==null||typeof e!="object")return e;var t=e,r=_i.call(e);if(r==="[object Array]"){if(!ai(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=rt(e[n])}}else if(Eg[r]){if(!ai(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!Rg[r]&&!ai(e)&&!ui(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==ph&&(t[o]=rt(e[o]))}return t}function at(e,t,r){if(!Y(t)||!Y(e))return r?rt(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==ph){var i=e[n],a=t[n];Y(a)&&Y(i)&&!F(a)&&!F(i)&&!ui(a)&&!ui(i)&&!Xl(a)&&!Xl(i)&&!ai(a)&&!ai(i)?at(i,a,r):(r||!(n in e))&&(e[n]=rt(t[n]))}return e}function Z1(e,t){for(var r=e[0],n=1,i=e.length;n<i;n++)r=at(r,e[n],t);return r}function E(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==ph&&(e[r]=t[r]);return e}function ft(e,t,r){for(var n=yt(t),i=0,a=n.length;i<a;i++){var o=n[i];(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}var j1=we.createCanvas;function it(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function yh(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function Te(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else ft(e,t,r)}function Zt(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function T(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Y1)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function X(e,t,r){if(!e)return[];if(!t)return Xs(e);if(e.map&&e.map===q1)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function je(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function Ct(e,t,r){if(!e)return[];if(!t)return Xs(e);if(e.filter&&e.filter===X1)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function Og(e,t,r){if(e&&t){for(var n=0,i=e.length;n<i;n++)if(t.call(r,e[n],n,e))return e[n]}}function yt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function K1(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(dh.call(arguments)))}}var ut=qa&&Q(qa.bind)?qa.call.bind(qa.bind):K1;function _t(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(dh.call(arguments)))}}function F(e){return Array.isArray?Array.isArray(e):_i.call(e)==="[object Array]"}function Q(e){return typeof e=="function"}function U(e){return typeof e=="string"}function ns(e){return _i.call(e)==="[object String]"}function ht(e){return typeof e=="number"}function Y(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Xl(e){return!!Rg[_i.call(e)]}function jt(e){return!!Eg[_i.call(e)]}function ui(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Oa(e){return e.colorStops!=null}function kg(e){return e.image!=null}function Q1(e){return _i.call(e)==="[object RegExp]"}function li(e){return e!==e}function va(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function $(e,t){return e??t}function Er(e,t,r){return e??t??r}function Xs(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return dh.apply(e,t)}function qs(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Ke(e,t){if(!e)throw new Error(t)}function Ie(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Bg="__ec_primitive__";function is(e){e[Bg]=!0}function ai(e){return e[Bg]}var J1=(function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return yt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e})(),Ng=typeof Map=="function";function tS(){return Ng?new Map:new J1}var Fg=(function(){function e(t){var r=F(t);this.data=tS();var n=this;t instanceof e?t.each(i):t&&T(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return Ng?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function et(e){return new Fg(e)}function zg(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function ka(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&E(r,t),r}function mh(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Se(e,t){return e.hasOwnProperty(t)}function Xt(){}var Gg=180/Math.PI,eS=Number.EPSILON||Math.pow(2,-52);const rS=Object.freeze(Object.defineProperty({__proto__:null,EPSILON:eS,HashMap:Fg,RADIAN_TO_DEGREE:Gg,assert:Ke,bind:ut,clone:rt,concatArray:zg,createCanvas:j1,createHashMap:et,createObject:ka,curry:_t,defaults:ft,disableUserSelect:mh,each:T,eqNaN:li,extend:E,filter:Ct,find:Og,guid:gh,hasOwn:Se,indexOf:it,inherits:yh,isArray:F,isArrayLike:Zt,isBuiltInObject:Xl,isDom:ui,isFunction:Q,isGradientObject:Oa,isImagePatternObject:kg,isNumber:ht,isObject:Y,isPrimitive:ai,isRegExp:Q1,isString:U,isStringSafe:ns,isTypedArray:jt,keys:yt,logError:Ys,map:X,merge:at,mergeAll:Z1,mixin:Te,noop:Xt,normalizeCssArray:qs,reduce:je,retrieve:va,retrieve2:$,retrieve3:Er,setAsPrimitive:is,slice:Xs,trim:Ie},Symbol.toStringTag,{value:"Module"}));var nS=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),iS=(function(){function e(){this.browser=new nS,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e})(),j=new iS;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(j.wxa=!0,j.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?j.worker=!0:!j.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(j.node=!0,j.svgSupported=!0):aS(navigator.userAgent,j);function aS(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=t.domSupported=typeof document<"u";if(s){var u=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in u||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}var oS=".",$r="___EC__COMPONENT__CONTAINER___",Hg="___EC__EXTENDED_CLASS___";function Ue(e){var t={main:"",sub:""};if(e){var r=e.split(oS);t.main=r[0]||"",t.sub=r[1]||""}return t}function sS(e){Ke(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function uS(e){return!!(e&&e[Hg])}function _h(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return lS(n)?i=(function(a){V(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},yh(i,this)),E(i.prototype,r),i[Hg]=!0,i.extend=this.extend,i.superCall=cS,i.superApply=vS,i.superClass=n,i}}function lS(e){return Q(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Vg(e,t){e.extend=t.extend}var fS=Math.round(Math.random()*10);function hS(e){var t=["__\0is_clz",fS++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function cS(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function vS(e,t,r){return this.superClass.prototype[t].apply(e,r)}function $s(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){sS(i),n.prototype.type=i;var a=Ue(i);if(!a.sub)t[a.main]=n;else if(a.sub!==$r){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[$r]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=Ue(n),a=[],o=t[i.main];return o&&o[$r]?T(o,function(s,u){u!==$r&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=Ue(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return T(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=Ue(n),a=t[i.main];return a&&a[$r]};function r(n){var i=t[n.main];return(!i||!i[$r])&&(i=t[n.main]={},i[$r]=!0),i}}function da(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var u=e[s][1];if(!(i&&it(i,u)>=0||a&&it(a,u)<0)){var l=n.getShallow(u,t);l!=null&&(o[e[s][0]]=l)}}return o}}var dS=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],pS=da(dS),gS=(function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return pS(this,t,r)},e})(),Wg=(function(){function e(t){this.value=t}return e})(),yS=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Wg(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),fi=(function(){function e(t){this._list=new yS,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new Wg(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),ql=new fi(50);function mS(e){if(typeof e=="string"){var t=ql.get(e);return t&&t.image}else return e}function Ug(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=ql.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!Zs(t)&&a.pending.push(o)):(t=we.loadImage(e,zc,zc),t.__zrImageSrc=e,ql.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function zc(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function Zs(e){return e&&e.width&&e.height}function Re(){return[1,0,0,1,0,0]}function Ba(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function js(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Tn(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],u=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=u,e}function as(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Ks(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],f=Math.sin(r),h=Math.cos(r);return e[0]=i*h+s*f,e[1]=-i*f+s*h,e[2]=a*h+u*f,e[3]=-a*f+h*u,e[4]=h*(o-n[0])+f*(l-n[1])+n[0],e[5]=h*(l-n[1])-f*(o-n[0])+n[1],e}function Yg(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Rn(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],u=r*o-a*n;return u?(u=1/u,e[0]=o*u,e[1]=-a*u,e[2]=-n*u,e[3]=r*u,e[4]=(n*s-o*i)*u,e[5]=(a*i-r*s)*u,e):null}function _S(e){var t=Re();return js(t,e),t}const SS=Object.freeze(Object.defineProperty({__proto__:null,clone:_S,copy:js,create:Re,identity:Ba,invert:Rn,mul:Tn,rotate:Ks,scale:Yg,translate:as},Symbol.toStringTag,{value:"Module"}));var K=(function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e})(),_n=Math.min,ei=Math.max,$l=Math.abs,Gc=["x","y"],bS=["width","height"],Zr=new K,jr=new K,Kr=new K,Qr=new K,ne=Xg(),qi=ne.minTv,Zl=ne.maxTv,ra=[0,0],J=(function(){function e(t,r,n,i){e.set(this,t,r,n,i)}return e.set=function(t,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),t.x=r,t.y=n,t.width=i,t.height=a,t},e.prototype.union=function(t){var r=_n(t.x,this.x),n=_n(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ei(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ei(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=Re();return as(a,a,[-r.x,-r.y]),Yg(a,a,[n,i]),as(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r,n){return e.intersect(this,t,r,n)},e.intersect=function(t,r,n,i){n&&K.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!r)return!1;t instanceof e||(t=e.set(wS,t.x,t.y,t.width,t.height)),r instanceof e||(r=e.set(xS,r.x,r.y,r.width,r.height));var s=!!n;ne.reset(i,s);var u=ne.touchThreshold,l=t.x+u,f=t.x+t.width-u,h=t.y+u,v=t.y+t.height-u,c=r.x+u,d=r.x+r.width-u,p=r.y+u,g=r.y+r.height-u;if(l>f||h>v||c>d||p>g)return!1;var y=!(f<c||d<l||v<p||g<h);return(s||a)&&(ra[0]=1/0,ra[1]=0,Hc(l,f,c,d,0,s,a,o),Hc(h,v,p,g,1,s,a,o),s&&K.copy(n,y?ne.useDir?ne.dirMinTv:qi:Zl)),y},e.contain=function(t,r,n){return r>=t.x&&r<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){return t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height,t},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Zr.x=Kr.x=r.x,Zr.y=Qr.y=r.y,jr.x=Qr.x=r.x+r.width,jr.y=Kr.y=r.y+r.height,Zr.transform(n),Qr.transform(n),jr.transform(n),Kr.transform(n),t.x=_n(Zr.x,jr.x,Kr.x,Qr.x),t.y=_n(Zr.y,jr.y,Kr.y,Qr.y);var u=ei(Zr.x,jr.x,Kr.x,Qr.x),l=ei(Zr.y,jr.y,Kr.y,Qr.y);t.width=u-t.x,t.height=l-t.y},e})(),wS=new J(0,0,0,0),xS=new J(0,0,0,0);function Hc(e,t,r,n,i,a,o,s){var u=$l(t-r),l=$l(n-e),f=_n(u,l),h=Gc[i],v=Gc[1-i],c=bS[i];t<r||n<e?u<l?(a&&(Zl[h]=-u),s&&(o[h]=t,o[c]=0)):(a&&(Zl[h]=l),s&&(o[h]=e,o[c]=0)):(o&&(o[h]=ei(e,r),o[c]=_n(t,n)-o[h]),a&&(f<ra[0]||ne.useDir)&&(ra[0]=_n(f,ra[0]),(u<l||!ne.bidirectional)&&(qi[h]=u,qi[v]=0,ne.useDir&&ne.calcDirMTV()),(u>=l||!ne.bidirectional)&&(qi[h]=-l,qi[v]=0,ne.useDir&&ne.calcDirMTV())))}function Xg(){var e=0,t=new K,r=new K,n={minTv:new K,maxTv:new K,useDir:!1,dirMinTv:new K,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=ei(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),e=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,u=Math.sin(e),l=Math.cos(e),f=u*a.y+l*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*l/f,r.y=s*u/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return $l(a)<1e-10}return n}function Xe(e){$a||($a=new fi(100)),e=e||Fr;var t=$a.get(e);return t||(t={font:e,strWidthCache:new fi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:we.measureText("国",e).width,asciiCharWidth:we.measureText("a",e).width},$a.put(e,t)),t}var $a;function TS(e){if(!(wu>=Vc)){e=e||Fr;for(var t=[],r=+new Date,n=0;n<=127;n++)t[n]=we.measureText(String.fromCharCode(n),e).width;var i=+new Date-r;return i>16?wu=Vc:i>2&&wu++,t}}var wu=0,Vc=5;function qg(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=TS(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function qe(e,t){var r=e.strWidthCache,n=r.get(t);return n==null&&(n=we.measureText(t,e.font).width,r.put(t,n)),n}function Wc(e,t,r,n){var i=qe(Xe(t),e),a=Qs(t),o=hi(0,i,r),s=Cn(0,a,n),u=new J(o,s,i,a);return u}function $g(e,t,r,n){var i=((e||"")+"").split(`
2
+ `),a=i.length;if(a===1)return Wc(i[0],t,r,n);for(var o=new J(0,0,0,0),s=0;s<i.length;s++){var u=Wc(i[s],t,r,n);s===0?o.copy(u):o.union(u)}return o}function hi(e,t,r,n){return r==="right"?n?e+=t:e-=t:r==="center"&&(n?e+=t/2:e-=t/2),e}function Cn(e,t,r,n){return r==="middle"?n?e+=t/2:e-=t/2:r==="bottom"&&(n?e+=t:e-=t),e}function Qs(e){return Xe(e).stWideCharWidth}function zr(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function os(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,f="left",h="top";if(n instanceof Array)u+=zr(n[0],r.width),l+=zr(n[1],r.height),f=null,h=null;else switch(n){case"left":u-=i,l+=s,f="right",h="middle";break;case"right":u+=i+o,l+=s,h="middle";break;case"top":u+=o/2,l-=i,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=o-i,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=o-i,l+=i,f="right";break;case"insideBottomLeft":u+=i,l+=a-i,h="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",h="bottom";break}return e=e||{},e.x=u,e.y=l,e.align=f,e.verticalAlign=h,e}var xu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function CS(e,t,r,n,i){var a={};return Zg(a,e,t,r,n,i),a.text}function Zg(e,t,r,n,i,a){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`
3
+ `);a=jg(r,n,i,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)Kg(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;e.text=o.join(`
4
+ `),e.isTruncated=s}function jg(e,t,r,n){n=n||{};var i=E({},n);r=$(r,"..."),i.maxIterations=$(n.maxIterations,2);var a=i.minChar=$(n.minChar,0),o=i.fontMeasureInfo=Xe(t),s=o.asciiCharWidth;i.placeholder=$(n.placeholder,"");for(var u=e=Math.max(0,e-1),l=0;l<a&&u>=s;l++)u-=s;var f=qe(o,r);return f>u&&(r="",f=0),u=e-f,i.ellipsis=r,i.ellipsisWidth=f,i.contentWidth=u,i.containerWidth=e,i}function Kg(e,t,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){e.textLine="",e.isTruncated=!1;return}var o=qe(a,t);if(o<=n){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){t+=r.ellipsis;break}var u=s===0?MS(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,u),o=qe(a,t)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function MS(e,t,r){for(var n=0,i=0,a=e.length;i<a&&n<t;i++)n+=qg(r,e.charCodeAt(i));return i}function DS(e,t,r,n){var i=Sh(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,u=o?o[0]+o[2]:0,l=t.font,f=a==="truncate",h=Qs(l),v=$(t.lineHeight,h),c=t.lineOverflow==="truncate",d=!1,p=t.width;p==null&&r!=null&&(p=r-s);var g=t.height;g==null&&n!=null&&(g=n-u);var y;p!=null&&(a==="break"||a==="breakAll")?y=i?Qg(i,t.font,p,a==="breakAll",0).lines:[]:y=i?i.split(`
5
+ `):[];var m=y.length*v;if(g==null&&(g=m),m>g&&c){var _=Math.floor(g/v);d=d||y.length>_,y=y.slice(0,_),m=y.length*v}if(i&&f&&p!=null)for(var S=jg(p,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),w={},b=0;b<y.length;b++)Kg(w,y[b],S),y[b]=w.textLine,d=d||w.isTruncated;for(var x=g,C=0,D=Xe(l),b=0;b<y.length;b++)C=Math.max(qe(D,y[b]),C);p==null&&(p=C);var A=p;return x+=u,A+=s,{lines:y,height:g,outerWidth:A,outerHeight:x,lineHeight:v,calculatedLineHeight:h,contentWidth:C,contentHeight:m,width:p,isTruncated:d}}var AS=(function(){function e(){}return e})(),Uc=(function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e})(),LS=(function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e})();function PS(e,t,r,n,i){var a=new LS,o=Sh(e);if(!o)return a;var s=t.padding,u=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,f=t.width;f==null&&r!=null&&(f=r-u);var h=t.height;h==null&&n!=null&&(h=n-l);for(var v=t.overflow,c=(v==="break"||v==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:v==="breakAll"}:null,d=xu.lastIndex=0,p;(p=xu.exec(o))!=null;){var g=p.index;g>d&&Tu(a,o.substring(d,g),t,c),Tu(a,p[2],t,c,p[1]),d=xu.lastIndex}d<o.length&&Tu(a,o.substring(d,o.length),t,c);var y=[],m=0,_=0,S=v==="truncate",w=t.lineOverflow==="truncate",b={};function x(re,Gt,Et){re.width=Gt,re.lineHeight=Et,m+=Et,_=Math.max(_,Gt)}t:for(var C=0;C<a.lines.length;C++){for(var D=a.lines[C],A=0,M=0,I=0;I<D.tokens.length;I++){var L=D.tokens[I],P=L.styleName&&t.rich[L.styleName]||{},R=L.textPadding=P.padding,k=R?R[1]+R[3]:0,W=L.font=P.font||t.font;L.contentHeight=Qs(W);var O=$(P.height,L.contentHeight);if(L.innerHeight=O,R&&(O+=R[0]+R[2]),L.height=O,L.lineHeight=Er(P.lineHeight,t.lineHeight,O),L.align=P&&P.align||i,L.verticalAlign=P&&P.verticalAlign||"middle",w&&h!=null&&m+L.lineHeight>h){var z=a.lines.length;I>0?(D.tokens=D.tokens.slice(0,I),x(D,M,A),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<z;break t}var H=P.width,G=H==null||H==="auto";if(typeof H=="string"&&H.charAt(H.length-1)==="%")L.percentWidth=H,y.push(L),L.contentWidth=qe(Xe(W),L.text);else{if(G){var B=P.backgroundColor,tt=B&&B.image;tt&&(tt=mS(tt),Zs(tt)&&(L.width=Math.max(L.width,tt.width*O/tt.height)))}var vt=S&&f!=null?f-M:null;vt!=null&&vt<L.width?!G||vt<k?(L.text="",L.width=L.contentWidth=0):(Zg(b,L.text,vt-k,W,t.ellipsis,{minChar:t.truncateMinChar}),L.text=b.text,a.isTruncated=a.isTruncated||b.isTruncated,L.width=L.contentWidth=qe(Xe(W),L.text)):L.contentWidth=qe(Xe(W),L.text)}L.width+=k,M+=L.width,P&&(A=Math.max(A,L.lineHeight))}x(D,M,A)}a.outerWidth=a.width=$(f,_),a.outerHeight=a.height=$(h,m),a.contentHeight=m,a.contentWidth=_,a.outerWidth+=u,a.outerHeight+=l;for(var C=0;C<y.length;C++){var L=y[C],zt=L.percentWidth;L.width=parseInt(zt,10)/100*a.width}return a}function Tu(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,u=o.font||r.font,l=!1,f,h;if(n){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=zr(o.width,n.width)+c;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
6
+ `),l=!0),n.accumWidth=d}else{var p=Qg(t,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+c,h=p.linesWidths,f=p.lines}}f||(f=t.split(`
7
+ `));for(var g=Xe(u),y=0;y<f.length;y++){var m=f[y],_=new AS;if(_.styleName=i,_.text=m,_.isLineHolder=!m&&!a,typeof o.width=="number"?_.width=o.width:_.width=h?h[y]:qe(g,m),!y&&!l){var S=(s[s.length-1]||(s[0]=new Uc)).tokens,w=S.length;w===1&&S[0].isLineHolder?S[0]=_:(m||!w||a)&&S.push(_)}else s.push(new Uc([_]))}}function IS(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var RS=je(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function ES(e){return IS(e)?!!RS[e]:!0}function Qg(e,t,r,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,h=Xe(t),v=0;v<e.length;v++){var c=e.charAt(v);if(c===`
8
+ `){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var d=qg(h,c.charCodeAt(0)),p=n?!1:!ES(c);if(a.length?f+d>r:i+f+d>r){f?(s||u)&&(p?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=c,l+=d,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=c,f=d)):p?(a.push(u),o.push(l),u=c,l=d):(a.push(c),o.push(d));continue}f+=d,p?(u+=c,l+=d):(u&&(s+=u,u="",l=0),s+=c)}return u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function Yc(e,t,r,n,i,a){if(e.baseX=r,e.baseY=n,e.outerWidth=e.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;J.set(Xc,hi(r,o,i),Cn(n,s,a),o,s),J.intersect(t,Xc,null,qc);var u=qc.outIntersectRect;e.outerWidth=u.width,e.outerHeight=u.height,e.baseX=hi(u.x,u.width,i,!0),e.baseY=Cn(u.y,u.height,a,!0)}}var Xc=new J(0,0,0,0),qc={outIntersectRect:{},clamp:!0};function Sh(e){return e!=null?e+="":e=""}function OS(e){var t=Sh(e.text),r=e.font,n=qe(Xe(r),t),i=Qs(r);return jl(e,n,i,null)}function jl(e,t,r,n){var i=new J(hi(e.x||0,t,e.textAlign),Cn(e.y||0,r,e.textBaseline),t,r),a=n??(Jg(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Jg(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}function En(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function kS(e,t){return e[0]=t[0],e[1]=t[1],e}function ty(e){return[e[0],e[1]]}function BS(e,t,r){return e[0]=t,e[1]=r,e}function Kl(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function NS(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function ey(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function bh(e){return Math.sqrt(wh(e))}var FS=bh;function wh(e){return e[0]*e[0]+e[1]*e[1]}var zS=wh;function GS(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function HS(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function VS(e,t){return e[0]*t[0]+e[1]*t[1]}function Go(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function ry(e,t){var r=bh(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function ss(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var us=ss;function ny(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Mn=ny;function WS(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Ho(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function qt(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function Mr(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Dr(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}const US=Object.freeze(Object.defineProperty({__proto__:null,add:Kl,applyTransform:qt,clone:ty,copy:kS,create:En,dist:us,distSquare:Mn,distance:ss,distanceSquare:ny,div:HS,dot:VS,len:bh,lenSquare:wh,length:FS,lengthSquare:zS,lerp:Ho,max:Dr,min:Mr,mul:GS,negate:WS,normalize:ry,scale:Go,scaleAndAdd:NS,set:BS,sub:ey},Symbol.toStringTag,{value:"Module"}));var $c=Ba,Zc=5e-5;function Jr(e){return e>Zc||e<-Zc}var tn=[],Nn=[],Cu=Re(),Mu=Math.abs,xh=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Jr(this.rotation)||Jr(this.x)||Jr(this.y)||Jr(this.scaleX-1)||Jr(this.scaleY-1)||Jr(this.skewX)||Jr(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&($c(n),this.invTransform=null);return}n=n||Re(),r?this.getLocalTransform(n):$c(n),t&&(r?Tn(n,t,n):js(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(tn);var n=tn[0]<0?-1:1,i=tn[1]<0?-1:1,a=((tn[0]-n)*r+n)/tn[0]||0,o=((tn[1]-i)*r+i)/tn[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Re(),Rn(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Re(),Tn(Nn,t.invTransform,r),r=Nn);var n=this.originX,i=this.originY;(n||i)&&(Cu[4]=n,Cu[5]=i,Tn(Nn,r,Cu),Nn[4]-=n,Nn[5]-=i,r=Nn),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&qt(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&qt(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Mu(t[0]-1)>1e-10&&Mu(t[3]-1)>1e-10?Math.sqrt(Mu(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Ql(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||u){var d=n+s,p=i+u;r[4]=-d*a-v*p*o,r[5]=-p*o-c*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=c*a,r[2]=v*o,l&&Ks(r,r,l),r[4]+=n+f,r[5]+=i+h,r},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),pa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ql(e,t){for(var r=0;r<pa.length;r++){var n=pa[r];e[n]=t[n]}}var na={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-na.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?na.bounceIn(e*2)*.5:na.bounceOut(e*2-1)*.5+.5}},Za=Math.pow,Or=Math.sqrt,ls=1e-8,iy=1e-4,jc=Or(3),ja=1/3,Ve=En(),pe=En(),oi=En();function Ar(e){return e>-ls&&e<ls}function ay(e){return e>ls||e<-ls}function Ut(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function Kc(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function oy(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),u=3*(t-e),l=e-i,f=s*s-3*o*u,h=s*u-9*o*l,v=u*u-3*s*l,c=0;if(Ar(f)&&Ar(h))if(Ar(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[c++]=d)}else{var p=h*h-4*f*v;if(Ar(p)){var g=h/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(a[c++]=d),y>=0&&y<=1&&(a[c++]=y)}else if(p>0){var m=Or(p),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Za(-_,ja):_=Za(_,ja),S<0?S=-Za(-S,ja):S=Za(S,ja);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var w=(2*f*s-3*o*h)/(2*Or(f*f*f)),b=Math.acos(w)/3,x=Or(f),C=Math.cos(b),d=(-s-2*x*C)/(3*o),y=(-s+x*(C+jc*Math.sin(b)))/(3*o),D=(-s+x*(C-jc*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[c++]=d),y>=0&&y<=1&&(a[c++]=y),D>=0&&D<=1&&(a[c++]=D)}}return c}function sy(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,u=0;if(Ar(o)){if(ay(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(Ar(f))i[0]=-a/(2*o);else if(f>0){var h=Or(f),l=(-a+h)/(2*o),v=(-a-h)/(2*o);l>=0&&l<=1&&(i[u++]=l),v>=0&&v<=1&&(i[u++]=v)}}return u}function fs(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,u=(n-r)*i+r,l=(s-o)*i+o,f=(u-s)*i+s,h=(f-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=n}function YS(e,t,r,n,i,a,o,s,u,l,f){var h,v=.005,c=1/0,d,p,g,y;Ve[0]=u,Ve[1]=l;for(var m=0;m<1;m+=.05)pe[0]=Ut(e,r,i,o,m),pe[1]=Ut(t,n,a,s,m),g=Mn(Ve,pe),g<c&&(h=m,c=g);c=1/0;for(var _=0;_<32&&!(v<iy);_++)d=h-v,p=h+v,pe[0]=Ut(e,r,i,o,d),pe[1]=Ut(t,n,a,s,d),g=Mn(pe,Ve),d>=0&&g<c?(h=d,c=g):(oi[0]=Ut(e,r,i,o,p),oi[1]=Ut(t,n,a,s,p),y=Mn(oi,Ve),p<=1&&y<c?(h=p,c=y):v*=.5);return Or(c)}function XS(e,t,r,n,i,a,o,s,u){for(var l=e,f=t,h=0,v=1/u,c=1;c<=u;c++){var d=c*v,p=Ut(e,r,i,o,d),g=Ut(t,n,a,s,d),y=p-l,m=g-f;h+=Math.sqrt(y*y+m*m),l=p,f=g}return h}function Jt(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function Qc(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function qS(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,u=0;if(Ar(a)){if(ay(o)){var l=-s/o;l>=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(Ar(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var h=Or(f),l=(-o+h)/(2*a),v=(-o-h)/(2*a);l>=0&&l<=1&&(i[u++]=l),v>=0&&v<=1&&(i[u++]=v)}}return u}function uy(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function hs(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function $S(e,t,r,n,i,a,o,s,u){var l,f=.005,h=1/0;Ve[0]=o,Ve[1]=s;for(var v=0;v<1;v+=.05){pe[0]=Jt(e,r,i,v),pe[1]=Jt(t,n,a,v);var c=Mn(Ve,pe);c<h&&(l=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<iy);d++){var p=l-f,g=l+f;pe[0]=Jt(e,r,i,p),pe[1]=Jt(t,n,a,p);var c=Mn(pe,Ve);if(p>=0&&c<h)l=p,h=c;else{oi[0]=Jt(e,r,i,g),oi[1]=Jt(t,n,a,g);var y=Mn(oi,Ve);g<=1&&y<h?(l=g,h=y):f*=.5}}return Or(h)}function ZS(e,t,r,n,i,a,o){for(var s=e,u=t,l=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=Jt(e,r,i,v),d=Jt(t,n,a,v),p=c-s,g=d-u;l+=Math.sqrt(p*p+g*g),s=c,u=d}return l}var jS=/cubic-bezier\(([0-9,\.e ]+)\)/;function ly(e){var t=e&&jS.exec(e);if(t){var r=t[1].split(","),n=+Ie(r[0]),i=+Ie(r[1]),a=+Ie(r[2]),o=+Ie(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:oy(0,n,a,1,u,s)&&Ut(0,i,o,1,s[0])}}}var KS=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Xt,this.ondestroy=t.ondestroy||Xt,this.onrestart=t.onrestart||Xt,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;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=i%n;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Q(t)?t:na[t]||ly(t)},e})(),Jc={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 Ee(e){return e=Math.round(e),e<0?0:e>255?255:e}function QS(e){return e=Math.round(e),e<0?0:e>360?360:e}function ga(e){return e<0?0:e>1?1:e}function Vo(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ee(parseFloat(t)/100*255):Ee(parseInt(t,10))}function kr(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ga(parseFloat(t)/100):ga(parseFloat(t))}function Du(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Lr(e,t,r){return e+(t-e)*r}function he(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function Jl(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var fy=new fi(20),Ka=null;function Fn(e,t){Ka&&Jl(Ka,t),Ka=fy.put(e,Ka||t.slice())}function oe(e,t){if(e){t=t||[];var r=fy.get(e);if(r)return Jl(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in Jc)return Jl(t,Jc[n]),Fn(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){he(t,0,0,0,1);return}return he(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Fn(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){he(t,0,0,0,1);return}return he(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Fn(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?he(t,+l[0],+l[1],+l[2],1):he(t,0,0,0,1);f=kr(l.pop());case"rgb":if(l.length>=3)return he(t,Vo(l[0]),Vo(l[1]),Vo(l[2]),l.length===3?f:kr(l[3])),Fn(e,t),t;he(t,0,0,0,1);return;case"hsla":if(l.length!==4){he(t,0,0,0,1);return}return l[3]=kr(l[3]),tf(l,t),Fn(e,t),t;case"hsl":if(l.length!==3){he(t,0,0,0,1);return}return tf(l,t),Fn(e,t),t;default:return}}he(t,0,0,0,1)}}function tf(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=kr(e[1]),i=kr(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],he(t,Ee(Du(o,a,r+1/3)*255),Ee(Du(o,a,r)*255),Ee(Du(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function JS(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+i):l=o/(2-a-i);var f=((a-t)/6+o/2)/o,h=((a-r)/6+o/2)/o,v=((a-n)/6+o/2)/o;t===a?u=v-h:r===a?u=1/3+f-v:n===a&&(u=2/3+h-f),u<0&&(u+=1),u>1&&(u-=1)}var c=[u*360,l,s];return e[3]!=null&&c.push(e[3]),c}}function ef(e,t){var r=oe(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Ur(r,r.length===4?"rgba":"rgb")}}function tb(e){var t=oe(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function hy(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],u=n-i;return r[0]=Ee(Lr(o[0],s[0],u)),r[1]=Ee(Lr(o[1],s[1],u)),r[2]=Ee(Lr(o[2],s[2],u)),r[3]=ga(Lr(o[3],s[3],u)),r}}var eb=hy;function cy(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=oe(t[i]),s=oe(t[a]),u=n-i,l=Ur([Ee(Lr(o[0],s[0],u)),Ee(Lr(o[1],s[1],u)),Ee(Lr(o[2],s[2],u)),ga(Lr(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}var rb=cy;function cs(e,t,r,n){var i=oe(e);if(e)return i=JS(i),t!=null&&(i[0]=QS(Q(t)?t(i[0]):t)),r!=null&&(i[1]=kr(Q(r)?r(i[1]):r)),n!=null&&(i[2]=kr(Q(n)?n(i[2]):n)),Ur(tf(i),"rgba")}function nb(e,t){var r=oe(e);if(r&&t!=null)return r[3]=ga(t),Ur(r,"rgba")}function Ur(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function ya(e,t){var r=oe(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function ib(){return Ur([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var tv=new fi(100);function rf(e){if(U(e)){var t=tv.get(e);return t||(t=ef(e,-.1),tv.put(e,t)),t}else if(Oa(e)){var r=E({},e);return r.colorStops=X(e.colorStops,function(n){return{offset:n.offset,color:ef(n.color,-.1)}}),r}return e}const ab=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:hy,fastMapToColor:eb,lerp:cy,lift:ef,liftColor:rf,lum:ya,mapToColor:rb,modifyAlpha:nb,modifyHSL:cs,parse:oe,parseCssFloat:kr,parseCssInt:Vo,random:ib,stringify:Ur,toHex:tb},Symbol.toStringTag,{value:"Module"}));function ob(e){return e.type==="linear"}function sb(e){return e.type==="radial"}(function(){return j.hasGlobalWindow&&Q(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var nf=Array.prototype.slice;function ur(e,t,r){return(t-e)*r+e}function Au(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=ur(t[a],r[a],n);return e}function ub(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=ur(t[o][s],r[o][s],n)}return e}function Qa(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function ev(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function lb(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function fb(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var u=a;u<o;u++)n.push(r===1?i[u]:nf.call(i[u]))}for(var l=n[0]&&n[0].length,u=0;u<n.length;u++)if(r===1)isNaN(n[u])&&(n[u]=i[u]);else for(var f=0;f<l;f++)isNaN(n[u][f])&&(n[u][f]=i[u][f])}}function Wo(e){if(Zt(e)){var t=e.length;if(Zt(e[0])){for(var r=[],n=0;n<t;n++)r.push(nf.call(e[n]));return r}return nf.call(e)}return e}function Uo(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function hb(e){return Zt(e&&e[0])?2:1}var Ja=0,Yo=1,vy=2,$i=3,af=4,of=5,rv=6;function nv(e){return e===af||e===of}function to(e){return e===Yo||e===vy}var wi=[0,0,0,0],cb=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=rv,u=r;if(Zt(r)){var l=hb(r);s=l,(l===1&&!ht(r[0])||l===2&&!ht(r[0][0]))&&(o=!0)}else if(ht(r)&&!li(r))s=Ja;else if(U(r))if(!isNaN(+r))s=Ja;else{var f=oe(r);f&&(u=f,s=$i)}else if(Oa(r)){var h=E({},u);h.colorStops=X(r.colorStops,function(c){return{offset:c.offset,color:oe(c.color)}}),ob(r)?s=af:sb(r)&&(s=of),u=h}a===0?this.valType=s:(s!==this.valType||s===rv)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:u,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=Q(n)?n:na[n]||ly(n)),i.push(v),v},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=to(i),l=nv(i),f=0;f<a;f++){var h=n[f],v=h.value,c=o.value;h.percent=h.time/t,s||(u&&f!==a-1?fb(v,c,i):l&&lb(v.colorStops,c.colorStops))}if(!s&&i!==of&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===Ja?n[f].additiveValue=n[f].value-d:i===$i?n[f].additiveValue=Qa([],n[f].value,d,-1):to(i)&&(n[f].additiveValue=i===Yo?Qa([],n[f].value,d,-1):ev([],n[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===$i,f,h=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=v(h+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=r;var g=d.percent-c.percent,y=g===0?1:v((r-c.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:l?wi:t[u];if((to(a)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)t[u]=y<1?c.rawValue:d.rawValue;else if(to(a))a===Yo?Au(m,c[i],d[i],y):ub(m,c[i],d[i],y);else if(nv(a)){var _=c[i],S=d[i],w=a===af;t[u]={type:w?"linear":"radial",x:ur(_.x,S.x,y),y:ur(_.y,S.y,y),colorStops:X(_.colorStops,function(x,C){var D=S.colorStops[C];return{offset:ur(x.offset,D.offset,y),color:Uo(Au([],x.color,D.color,y))}}),global:S.global},w?(t[u].x2=ur(_.x2,S.x2,y),t[u].y2=ur(_.y2,S.y2,y)):t[u].r=ur(_.r,S.r,y)}else if(l)Au(m,c[i],d[i],y),n||(t[u]=Uo(m));else{var b=ur(c[i],d[i],y);n?this._additiveValue=b:t[u]=b}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Ja?t[n]=t[n]+i:r===$i?(oe(t[n],wi),Qa(wi,wi,i,1),t[n]=Uo(wi)):r===Yo?Qa(t[n],t[n],i,1):r===vy&&ev(t[n],t[n],i,1)},e})(),Th=(function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){Ys("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,yt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],u=a[s];if(!u){u=a[s]=new cb(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];l=v&&v.value,f.valType===$i&&l&&(l=Uo(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,Wo(l),i),this._trackKeys.push(s)}u.addKeyframe(t,Wo(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=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(i,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[f-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new KS({life:i,loop:this._loop,delay:this._delay||0,onframe:function(c){r._started=2;var d=r._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,c);var y=r._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](r._target,c)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return X(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[n?0:s.length-1];u&&(t[a]=Wo(u.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||yt(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e})(),Je=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var u={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=a[t].length-1,f=a[t][l];return f&&f.callAtLast?a[t].splice(l,0,u):a[t].push(u),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,u=0;u<s;u++){var l=i[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],u=i.length,l=0;l<u;l++){var f=i[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e})(),dy=1;j.hasGlobalWindow&&(dy=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var vs=dy,sf=.4,uf="#333",lf="#ccc",vb="#eee",ie=1,Zi=2,ti=4,Lu="__zr_normal__",Pu=pa.concat(["ignore"]),db=je(pa,function(e,t){return e[t]=!0,e},{ignore:!1}),zn={},pb=new J(0,0,0,0),eo=[],Js=(function(){function e(t){this.id=gh(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=i?this:null;var l=!1;a.copyTransform(r);var f=n.position!=null,h=n.autoOverflowArea,v=void 0;if((h||f)&&(v=pb,n.layoutRect?v.copy(n.layoutRect):v.copy(this.getBoundingRect()),i||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(zn,n,v):os(zn,n,v),a.x=zn.x,a.y=zn.y,o=zn.align,s=zn.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var d=void 0,p=void 0;c==="center"?(d=v.width*.5,p=v.height*.5):(d=zr(c[0],v.width),p=zr(c[1],v.height)),l=!0,a.originX=-a.x+d+(i?0:v.x),a.originY=-a.y+p+(i?0:v.y)}}n.rotation!=null&&(a.rotation=n.rotation);var g=n.offset;g&&(a.x+=g[0],a.y+=g[1],l||(a.originX=-g[0],a.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var m=y.overflowRect=y.overflowRect||new J(0,0,0,0);a.getLocalTransform(eo),Rn(eo,eo),J.copy(m,v),m.applyTransform(eo)}else y.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,w=void 0,b=void 0;_&&this.canBeInsideText()?(S=n.insideFill,w=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(S),b=!0)):(S=n.outsideFill,w=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(S),b=!0)),S=S||"#000",(S!==y.fill||w!==y.stroke||b!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(u=!0,y.fill=S,y.stroke=w,y.autoStroke=b,y.align=o,y.verticalAlign=s,r.setDefaultTextStyle(y)),r.__dirty|=ie,u&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?lf:uf},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&oe(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Ur(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},E(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Y(t))for(var n=t,i=yt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Lu)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Pu)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Lu,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Lu,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(it(s,t)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){Ys("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,r,!n&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,v=this._textGuide;return h&&h.useState(t,r,n,f),v&&v.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ie),l}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(t[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=t[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,t)),f||(f=this.states[l]),f&&i.push(f)}var h=i[o-1],v=!!(h&&h.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(t.join(","),c,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,r,v),g&&g.useStates(t,r,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ie)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var r=t.__hostTarget;t=r?t.ignoreHostSilent?null:r:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=it(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=it(i,t),o=it(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];E(r,a),a.textConfig&&(n=n||{},E(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=E({},i?this.textConfig:n.textConfig),E(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},l=!1,f=0;f<Pu.length;f++){var h=Pu[f],v=a&&db[h];r&&r[h]!=null?v?(l=!0,u[h]=r[h]):this[h]=r[h]:s&&n[h]!=null&&(v?(l=!0,u[h]=n[h]):this[h]=n[h])}if(!a)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],d=c.targetName;c.getLoop()||c.__changeFinalValue(d?(r||n)[d]:r||n)}l&&this._transitionState(t,u,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new xh,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),E(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=ie;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,a=new Th(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=it(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){Iu(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){Iu(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=Iu(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=ie;function r(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var u=this[i]=[];s(this,u)}return this[i]},set:function(u){this[a]=u[0],this[o]=u[1],this[i]=u,s(this,u)}});function s(u,l){Object.defineProperty(l,0,{get:function(){return u[a]},set:function(f){u[a]=f}}),Object.defineProperty(l,1,{get:function(){return u[o]},set:function(f){u[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),e})();Te(Js,Je);Te(Js,xh);function Iu(e,t,r,n,i){r=r||{};var a=[];py(e,"",e,t,r,n,a,i);var o=a.length,s=!1,u=r.done,l=r.aborted,f=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},h=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&r.during&&a[0].during(function(d,p){r.during(p)});for(var v=0;v<a.length;v++){var c=a[v];f&&c.done(f),h&&c.aborted(h),r.force&&c.duration(r.duration),c.start(r.easing)}return a}function Ru(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function gb(e){return Zt(e[0])}function yb(e,t,r){if(Zt(t[r]))if(Zt(e[r])||(e[r]=[]),jt(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),Ru(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(gb(i))for(var s=i[0].length,u=0;u<o;u++)a[u]?Ru(a[u],i[u],s):a[u]=Array.prototype.slice.call(i[u]);else Ru(a,i,o);a.length=i.length}else e[r]=t[r]}function mb(e,t){return e===t||Zt(e)&&Zt(t)&&_b(e,t)}function _b(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function py(e,t,r,n,i,a,o,s){for(var u=yt(n),l=i.duration,f=i.delay,h=i.additive,v=i.setToFinal,c=!Y(a),d=e.animators,p=[],g=0;g<u.length;g++){var y=u[g],m=n[y];if(m!=null&&r[y]!=null&&(c||a[y]))if(Y(m)&&!Zt(m)&&!Oa(m)){if(t){s||(r[y]=m,e.updateDuringAnimation(t));continue}py(e,y,r[y],m,i,a&&a[y],o,s)}else p.push(y);else s||(r[y]=m,e.updateDuringAnimation(t),p.push(y))}var _=p.length;if(!h&&_)for(var S=0;S<d.length;S++){var w=d[S];if(w.targetName===t){var b=w.stopTracks(p);if(b){var x=it(d,w);d.splice(x,1)}}}if(i.force||(p=Ct(p,function(M){return!mb(n[M],r[M])}),_=p.length),_>0||i.force&&!o.length){var C=void 0,D=void 0,A=void 0;if(s){D={},v&&(C={});for(var S=0;S<_;S++){var y=p[S];D[y]=r[y],v?C[y]=n[y]:r[y]=n[y]}}else if(v){A={};for(var S=0;S<_;S++){var y=p[S];A[y]=Wo(r[y]),yb(r,n,y)}}var w=new Th(r,!1,!1,h?Ct(d,function(I){return I.targetName===t}):null);w.targetName=t,i.scope&&(w.scope=i.scope),v&&C&&w.whenWithKeys(0,C,p),A&&w.whenWithKeys(0,A,p),w.whenWithKeys(l??500,s?D:n,p).delay(f||0),e.addAnimator(w,t),o.push(w)}}var ff="__zr_style_"+Math.round(Math.random()*10),Dn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},tu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Dn[ff]=!0;var iv=["z","z2","invisible"],Sb=["invisible"],Na=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=yt(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&bb(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,u=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new J(0,0,0,0)),n?J.applyTransform(r,i,n):r.copy(i),(o||s||u)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(u),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+u-o));var l=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-l),r.y=Math.floor(r.y-l),r.width=Math.ceil(r.width+1+l*2),r.height=Math.ceil(r.height+1+l*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new J(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:E(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Zi,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Zi)},t.prototype.styleUpdated=function(){this.__dirty&=~Zi},t.prototype.createStyle=function(r){return ka(Dn,r)},t.prototype.useStyle=function(r){r[ff]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[ff]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,iv)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.style?o?a?l=n.style:(l=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(l,n.style)):u&&(l=i.style),l)if(o){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var h=yt(f),v=0;v<h.length;v++){var c=h[v];c in l&&(l[c]=l[c],this.style[c]=f[c])}for(var d=yt(l),v=0;v<d.length;v++){var c=d[v];this.style[c]=this.style[c]}this._transitionState(r,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var p=this.__inHover?Sb:iv,v=0;v<p.length;v++){var c=p[v];n&&n[c]!=null?this[c]=n[c]:u&&i[c]!=null&&(this[c]=i[c])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return E(r,n),r},t.prototype.getAnimationStyleProps=function(){return tu},t.initDefaultProps=(function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=ie|Zi})(),t})(Js),Eu=new J(0,0,0,0),Ou=new J(0,0,0,0);function bb(e,t,r){return Eu.copy(e.getBoundingRect()),e.transform&&Eu.applyTransform(e.transform),Ou.width=t,Ou.height=r,!Eu.intersect(Ou)}var ge=Math.min,ye=Math.max,ku=Math.sin,Bu=Math.cos,en=Math.PI*2,ro=En(),no=En(),io=En();function av(e,t,r,n,i,a){i[0]=ge(e,r),i[1]=ge(t,n),a[0]=ye(e,r),a[1]=ye(t,n)}var ov=[],sv=[];function wb(e,t,r,n,i,a,o,s,u,l){var f=sy,h=Ut,v=f(e,r,i,o,ov);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var c=0;c<v;c++){var d=h(e,r,i,o,ov[c]);u[0]=ge(d,u[0]),l[0]=ye(d,l[0])}v=f(t,n,a,s,sv);for(var c=0;c<v;c++){var p=h(t,n,a,s,sv[c]);u[1]=ge(p,u[1]),l[1]=ye(p,l[1])}u[0]=ge(e,u[0]),l[0]=ye(e,l[0]),u[0]=ge(o,u[0]),l[0]=ye(o,l[0]),u[1]=ge(t,u[1]),l[1]=ye(t,l[1]),u[1]=ge(s,u[1]),l[1]=ye(s,l[1])}function xb(e,t,r,n,i,a,o,s){var u=uy,l=Jt,f=ye(ge(u(e,r,i),1),0),h=ye(ge(u(t,n,a),1),0),v=l(e,r,i,f),c=l(t,n,a,h);o[0]=ge(e,i,v),o[1]=ge(t,a,c),s[0]=ye(e,i,v),s[1]=ye(t,a,c)}function Tb(e,t,r,n,i,a,o,s,u){var l=Mr,f=Dr,h=Math.abs(i-a);if(h%en<1e-4&&h>1e-4){s[0]=e-r,s[1]=t-n,u[0]=e+r,u[1]=t+n;return}if(ro[0]=Bu(i)*r+e,ro[1]=ku(i)*n+t,no[0]=Bu(a)*r+e,no[1]=ku(a)*n+t,l(s,ro,no),f(u,ro,no),i=i%en,i<0&&(i=i+en),a=a%en,a<0&&(a=a+en),i>a&&!o?a+=en:i<a&&o&&(i+=en),o){var v=a;a=i,i=v}for(var c=0;c<a;c+=Math.PI/2)c>i&&(io[0]=Bu(c)*r+e,io[1]=ku(c)*n+t,l(s,io,s),f(u,io,u))}var st={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},rn=[],nn=[],Ne=[],mr=[],Fe=[],ze=[],Nu=Math.min,Fu=Math.max,an=Math.cos,on=Math.sin,er=Math.abs,hf=Math.PI,xr=hf*2,zu=typeof Float32Array<"u",xi=[];function Gu(e){var t=Math.round(e/hf*1e8)/1e8;return t%2*hf}function gy(e,t){var r=Gu(e[0]);r<0&&(r+=xr);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=xr?i=r+xr:t&&r-i>=xr?i=r-xr:!t&&r>i?i=r+(xr-Gu(r-i)):t&&r<i&&(i=r-(xr-Gu(i-r))),e[0]=r,e[1]=i}var ci=(function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=er(n/vs/t)||0,this._uy=er(n/vs/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(st.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=er(t-this._xi),i=er(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(st.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(st.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(st.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),xi[0]=i,xi[1]=a,gy(xi,o),i=xi[0],a=xi[1];var s=a-i;return this.addData(st.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=an(a)*n+t,this._yi=on(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(st.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(st.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var r=t.length;!(this.data&&this.data.length===r)&&zu&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();var o=this.data;if(zu&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var u=t[a].data,s=0;s<u.length;s++)this.data[i++]=u[s];this._len=i}},e.prototype.addData=function(t,r,n,i,a,o,s,u,l){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,zu&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Ne[0]=Ne[1]=Fe[0]=Fe[1]=Number.MAX_VALUE,mr[0]=mr[1]=ze[0]=ze[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],u=o===1;switch(u&&(r=t[o],n=t[o+1],i=r,a=n),s){case st.M:r=i=t[o++],n=a=t[o++],Fe[0]=i,Fe[1]=a,ze[0]=i,ze[1]=a;break;case st.L:av(r,n,t[o],t[o+1],Fe,ze),r=t[o++],n=t[o++];break;case st.C:wb(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Fe,ze),r=t[o++],n=t[o++];break;case st.Q:xb(r,n,t[o++],t[o++],t[o],t[o+1],Fe,ze),r=t[o++],n=t[o++];break;case st.A:var l=t[o++],f=t[o++],h=t[o++],v=t[o++],c=t[o++],d=t[o++]+c;o+=1;var p=!t[o++];u&&(i=an(c)*h+l,a=on(c)*v+f),Tb(l,f,h,v,c,d,p,Fe,ze),r=an(d)*h+l,n=on(d)*v+f;break;case st.R:i=r=t[o++],a=n=t[o++];var g=t[o++],y=t[o++];av(i,a,i+g,a+y,Fe,ze);break;case st.Z:r=i,n=a;break}Mr(Ne,Ne,Fe),Dr(mr,mr,ze)}return o===0&&(Ne[0]=Ne[1]=mr[0]=mr[1]=0),new J(Ne[0],Ne[1],mr[0]-Ne[0],mr[1]-Ne[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,f=0,h=0,v=0;v<r;){var c=t[v++],d=v===1;d&&(a=t[v],o=t[v+1],s=a,u=o);var p=-1;switch(c){case st.M:a=s=t[v++],o=u=t[v++];break;case st.L:{var g=t[v++],y=t[v++],m=g-a,_=y-o;(er(m)>n||er(_)>i||v===r-1)&&(p=Math.sqrt(m*m+_*_),a=g,o=y);break}case st.C:{var S=t[v++],w=t[v++],g=t[v++],y=t[v++],b=t[v++],x=t[v++];p=XS(a,o,S,w,g,y,b,x,10),a=b,o=x;break}case st.Q:{var S=t[v++],w=t[v++],g=t[v++],y=t[v++];p=ZS(a,o,S,w,g,y,10),a=g,o=y;break}case st.A:var C=t[v++],D=t[v++],A=t[v++],M=t[v++],I=t[v++],L=t[v++],P=L+I;v+=1,d&&(s=an(I)*A+C,u=on(I)*M+D),p=Fu(A,M)*Nu(xr,Math.abs(L)),a=an(P)*A+C,o=on(P)*M+D;break;case st.R:{s=a=t[v++],u=o=t[v++];var R=t[v++],k=t[v++];p=R*2+k*2;break}case st.Z:{var m=s-a,_=u-o;p=Math.sqrt(m*m+_*_),a=s,o=u;break}}p>=0&&(l[h++]=p,f+=p)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,h,v,c=r<1,d,p,g=0,y=0,m,_=0,S,w;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=r*p,!m)))t:for(var b=0;b<o;){var x=n[b++],C=b===1;switch(C&&(l=n[b],f=n[b+1],s=l,u=f),x!==st.L&&_>0&&(t.lineTo(S,w),_=0),x){case st.M:s=l=n[b++],u=f=n[b++],t.moveTo(l,f);break;case st.L:{h=n[b++],v=n[b++];var D=er(h-l),A=er(v-f);if(D>i||A>a){if(c){var M=d[y++];if(g+M>m){var I=(m-g)/M;t.lineTo(l*(1-I)+h*I,f*(1-I)+v*I);break t}g+=M}t.lineTo(h,v),l=h,f=v,_=0}else{var L=D*D+A*A;L>_&&(S=h,w=v,_=L)}break}case st.C:{var P=n[b++],R=n[b++],k=n[b++],W=n[b++],O=n[b++],z=n[b++];if(c){var M=d[y++];if(g+M>m){var I=(m-g)/M;fs(l,P,k,O,I,rn),fs(f,R,W,z,I,nn),t.bezierCurveTo(rn[1],nn[1],rn[2],nn[2],rn[3],nn[3]);break t}g+=M}t.bezierCurveTo(P,R,k,W,O,z),l=O,f=z;break}case st.Q:{var P=n[b++],R=n[b++],k=n[b++],W=n[b++];if(c){var M=d[y++];if(g+M>m){var I=(m-g)/M;hs(l,P,k,I,rn),hs(f,R,W,I,nn),t.quadraticCurveTo(rn[1],nn[1],rn[2],nn[2]);break t}g+=M}t.quadraticCurveTo(P,R,k,W),l=k,f=W;break}case st.A:var H=n[b++],G=n[b++],B=n[b++],tt=n[b++],vt=n[b++],zt=n[b++],re=n[b++],Gt=!n[b++],Et=B>tt?B:tt,Pt=er(B-tt)>.001,xt=vt+zt,Z=!1;if(c){var M=d[y++];g+M>m&&(xt=vt+zt*(m-g)/M,Z=!0),g+=M}if(Pt&&t.ellipse?t.ellipse(H,G,B,tt,re,vt,xt,Gt):t.arc(H,G,Et,vt,xt,Gt),Z)break t;C&&(s=an(vt)*B+H,u=on(vt)*tt+G),l=an(xt)*B+H,f=on(xt)*tt+G;break;case st.R:s=l=n[b],u=f=n[b+1],h=n[b++],v=n[b++];var nt=n[b++],Be=n[b++];if(c){var M=d[y++];if(g+M>m){var Dt=m-g;t.moveTo(h,v),t.lineTo(h+Nu(Dt,nt),v),Dt-=nt,Dt>0&&t.lineTo(h+nt,v+Nu(Dt,Be)),Dt-=Be,Dt>0&&t.lineTo(h+Fu(nt-Dt,0),v+Be),Dt-=nt,Dt>0&&t.lineTo(h,v+Fu(Be-Dt,0));break t}g+=M}t.rect(h,v,nt,Be);break;case st.Z:if(c){var M=d[y++];if(g+M>m){var I=(m-g)/M;t.lineTo(l*(1-I)+s*I,f*(1-I)+u*I);break t}g+=M}t.closePath(),l=s,f=u}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=st,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function Gn(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)u=(t-n)/(e-r),l=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var f=u*a-o+l,h=f*f/(u*u+1);return h<=s/2*s/2}function Cb(e,t,r,n,i,a,o,s,u,l,f){if(u===0)return!1;var h=u;if(f>t+h&&f>n+h&&f>a+h&&f>s+h||f<t-h&&f<n-h&&f<a-h&&f<s-h||l>e+h&&l>r+h&&l>i+h&&l>o+h||l<e-h&&l<r-h&&l<i-h&&l<o-h)return!1;var v=YS(e,t,r,n,i,a,o,s,l,f);return v<=h/2}function Mb(e,t,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;if(u>t+l&&u>n+l&&u>a+l||u<t-l&&u<n-l&&u<a-l||s>e+l&&s>r+l&&s>i+l||s<e-l&&s<r-l&&s<i-l)return!1;var f=$S(e,t,r,n,i,a,s,u);return f<=l/2}var uv=Math.PI*2;function ao(e){return e%=uv,e<0&&(e+=uv),e}var Ti=Math.PI*2;function Db(e,t,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;s-=e,u-=t;var f=Math.sqrt(s*s+u*u);if(f-l>r||f+l<r)return!1;if(Math.abs(n-i)%Ti<1e-4)return!0;if(a){var h=n;n=ao(i),i=ao(h)}else n=ao(n),i=ao(i);n>i&&(i+=Ti);var v=Math.atan2(u,s);return v<0&&(v+=Ti),v>=n&&v<=i||v+Ti>=n&&v+Ti<=i}function lr(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var u=o*(r-e)+e;return u===i?1/0:u>i?s:0}var _r=ci.CMD,sn=Math.PI*2,Ab=1e-4;function Lb(e,t){return Math.abs(e-t)<Ab}var Ht=[-1,-1,-1],de=[-1,-1];function Pb(){var e=de[0];de[0]=de[1],de[1]=e}function Ib(e,t,r,n,i,a,o,s,u,l){if(l>t&&l>n&&l>a&&l>s||l<t&&l<n&&l<a&&l<s)return 0;var f=oy(t,n,a,s,l,Ht);if(f===0)return 0;for(var h=0,v=-1,c=void 0,d=void 0,p=0;p<f;p++){var g=Ht[p],y=g===0||g===1?.5:1,m=Ut(e,r,i,o,g);m<u||(v<0&&(v=sy(t,n,a,s,de),de[1]<de[0]&&v>1&&Pb(),c=Ut(t,n,a,s,de[0]),v>1&&(d=Ut(t,n,a,s,de[1]))),v===2?g<de[0]?h+=c<t?y:-y:g<de[1]?h+=d<c?y:-y:h+=s<d?y:-y:g<de[0]?h+=c<t?y:-y:h+=s<c?y:-y)}return h}function Rb(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var u=qS(t,n,a,s,Ht);if(u===0)return 0;var l=uy(t,n,a);if(l>=0&&l<=1){for(var f=0,h=Jt(t,n,a,l),v=0;v<u;v++){var c=Ht[v]===0||Ht[v]===1?.5:1,d=Jt(e,r,i,Ht[v]);d<o||(Ht[v]<l?f+=h<t?c:-c:f+=a<h?c:-c)}return f}else{var c=Ht[0]===0||Ht[0]===1?.5:1,d=Jt(e,r,i,Ht[0]);return d<o?0:a<t?c:-c}}function Eb(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);Ht[0]=-u,Ht[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=sn-1e-4){n=0,i=sn;var f=a?1:-1;return o>=Ht[0]+e&&o<=Ht[1]+e?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=sn,i+=sn);for(var v=0,c=0;c<2;c++){var d=Ht[c];if(d+e>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=sn+p),(p>=n&&p<=i||p+sn>=n&&p+sn<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function yy(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,u=0,l=0,f=0,h=0,v,c,d=0;d<o;){var p=a[d++],g=d===1;switch(p===_r.M&&d>1&&(r||(s+=lr(u,l,f,h,n,i))),g&&(u=a[d],l=a[d+1],f=u,h=l),p){case _r.M:f=a[d++],h=a[d++],u=f,l=h;break;case _r.L:if(r){if(Gn(u,l,a[d],a[d+1],t,n,i))return!0}else s+=lr(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case _r.C:if(r){if(Cb(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=Ib(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case _r.Q:if(r){if(Mb(u,l,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=Rb(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case _r.A:var y=a[d++],m=a[d++],_=a[d++],S=a[d++],w=a[d++],b=a[d++];d+=1;var x=!!(1-a[d++]);v=Math.cos(w)*_+y,c=Math.sin(w)*S+m,g?(f=v,h=c):s+=lr(u,l,v,c,n,i);var C=(n-y)*S/_+y;if(r){if(Db(y,m,S,w,w+b,x,t,C,i))return!0}else s+=Eb(y,m,S,w,w+b,x,C,i);u=Math.cos(w+b)*_+y,l=Math.sin(w+b)*S+m;break;case _r.R:f=u=a[d++],h=l=a[d++];var D=a[d++],A=a[d++];if(v=f+D,c=h+A,r){if(Gn(f,h,v,h,t,n,i)||Gn(v,h,v,c,t,n,i)||Gn(v,c,f,c,t,n,i)||Gn(f,c,f,h,t,n,i))return!0}else s+=lr(v,h,v,c,n,i),s+=lr(f,c,f,h,n,i);break;case _r.Z:if(r){if(Gn(u,l,f,h,t,n,i))return!0}else s+=lr(u,l,f,h,n,i);u=f,l=h;break}}return!r&&!Lb(l,h)&&(s+=lr(u,l,f,h,n,i)||0),s!==0}function Ob(e,t,r){return yy(e,0,!1,t,r)}function kb(e,t,r,n){return yy(e,t,!0,r,n)}var my=ft({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Dn),Bb={style:ft({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},tu.style)},Hu=pa.concat(["invisible","culling","z","z2","zlevel","parent"]),ct=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(u){r.buildPath(u,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Hu.length;++s)i[Hu[s]]=this[Hu[s]];i.__dirty|=ie}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=yt(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?E(this.style,s):this.useStyle(s):o==="shape"?E(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(U(r)){var n=ya(r,0);return n>.5?uf:n>.2?vb:lf}else if(r)return lf}return uf},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(U(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=ya(r,0)<sf;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~ti},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new ci(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&ti)&&(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||i){s.copy(r);var u=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f??4)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){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)),kb(s,u/l,r,n)))return!0}if(this.hasFill())return Ob(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ti,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:E(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ti)},t.prototype.createStyle=function(r){return ka(my,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=E({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=E({},i.shape),E(l,n.shape)):(l=E({},a?this.shape:i.shape),E(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=E({},this.shape);for(var f={},h=yt(l),v=0;v<h.length;v++){var c=h[v];typeof l[c]=="object"?this.shape[c]=l[c]:f[c]=l[c]}this._transitionState(r,{shape:f},s)}else this.shape=l,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return Bb},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=(function(a){V(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 rt(r.style)},o.prototype.getDefaultShape=function(){return rt(r.shape)},o})(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=(function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=ie|Zi|ti})(),t})(Na),Nb=ft({strokeFirst:!0,font:Fr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},my),ds=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Jg(this.style)},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return ka(Nb,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=OS(this.style)),this._rect},t.initDefaultProps=(function(){var r=t.prototype;r.dirtyRectTolerance=10})(),t})(Na);ds.prototype.type="tspan";var Fb=ft({x:0,y:0},Dn),zb={style:ft({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},tu.style)};function Gb(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Yr=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return ka(Fb,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Gb(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return zb},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new J(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Na);Yr.prototype.type="image";function Hb(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,u,l,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>i&&(h=s+u,s*=i/h,u*=i/h),l+f>i&&(h=l+f,l*=i/h,f*=i/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),e.moveTo(r+s,n),e.lineTo(r+i-u,n),u!==0&&e.arc(r+i-u,n+u,u,-Math.PI/2,0),e.lineTo(r+i,n+a-l),l!==0&&e.arc(r+i-l,n+a-l,l,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var ri=Math.round;function _y(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(ri(n*2)===ri(i*2)&&(e.x1=e.x2=Sn(n,s,!0)),ri(a*2)===ri(o*2)&&(e.y1=e.y2=Sn(a,s,!0))),e}}function Sy(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Sn(n,s,!0),e.y=Sn(i,s,!0),e.width=Math.max(Sn(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Sn(i+o,s,!1)-e.y,o===0?0:1)),e}}function Sn(e,t,r){if(!t)return e;var n=ri(e*2);return(n+ri(t))%2===0?n/2:(n+(r?1:-1))/2}var Vb=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),Wb={},wt=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Vb},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=Sy(Wb,n,this.style);i=u.x,a=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?Hb(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(ct);wt.prototype.type="rect";var lv={fill:"#000"},fv=2,Ge={},Ub={style:ft({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},tu.style)},Nt=(function(e){V(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=lv,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Zb(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new J(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],u=s.getBoundingRect(),l=s.getLocalTransform(i);l?(r.copy(u),r.applyTransform(l),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||lv},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return E(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=yt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},E(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return Ub},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Fr,i=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";Yc(Ge,a.overflowRect,o,s,u,l),o=Ge.baseX,s=Ge.baseY;var f=yv(r),h=DS(f,r,Ge.outerWidth,Ge.outerHeight),v=Vu(r),c=!!r.backgroundColor,d=h.outerHeight,p=h.outerWidth,g=h.lines,y=h.lineHeight;this.isTruncated=!!h.isTruncated;var m=o,_=Cn(s,h.contentHeight,l);if(v||i){var S=hi(o,p,u),w=Cn(s,d,l);v&&this._renderBackground(r,r,S,w,p,d)}_+=y/2,i&&(m=gv(o,u,i),l==="top"?_+=i[0]:l==="bottom"&&(_-=i[2]));for(var b=0,x=!1,C=!1,D=pv("fill"in r?r.fill:(C=!0,a.fill)),A=dv("stroke"in r?r.stroke:!c&&(!a.autoStroke||C)?(b=fv,x=!0,a.stroke):null),M=r.textShadowBlur>0,I=0;I<g.length;I++){var L=this._getOrCreateChild(ds),P=L.createStyle();L.useStyle(P),P.text=g[I],P.x=m,P.y=_,P.textAlign=u,P.textBaseline="middle",P.opacity=r.opacity,P.strokeFirst=!0,M&&(P.shadowBlur=r.textShadowBlur||0,P.shadowColor=r.textShadowColor||"transparent",P.shadowOffsetX=r.textShadowOffsetX||0,P.shadowOffsetY=r.textShadowOffsetY||0),P.stroke=A,P.fill=D,A&&(P.lineWidth=r.lineWidth||b,P.lineDash=r.lineDash,P.lineDashOffset=r.lineDashOffset||0),P.font=n,cv(P,r),_+=y,L.setBoundingRect(jl(P,h.contentWidth,h.calculatedLineHeight,x?0:null))}},t.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;Yc(Ge,n.overflowRect,o,s,i,a),o=Ge.baseX,s=Ge.baseY;var u=yv(r),l=PS(u,r,Ge.outerWidth,Ge.outerHeight,i),f=l.width,h=l.outerWidth,v=l.outerHeight,c=r.padding;this.isTruncated=!!l.isTruncated;var d=hi(o,h,i),p=Cn(s,v,a),g=d,y=p;c&&(g+=c[3],y+=c[0]);var m=g+f;Vu(r)&&this._renderBackground(r,r,d,p,h,v);for(var _=!!r.backgroundColor,S=0;S<l.lines.length;S++){for(var w=l.lines[S],b=w.tokens,x=b.length,C=w.lineHeight,D=w.width,A=0,M=g,I=m,L=x-1,P=void 0;A<x&&(P=b[A],!P.align||P.align==="left");)this._placeToken(P,r,C,y,M,"left",_),D-=P.width,M+=P.width,A++;for(;L>=0&&(P=b[L],P.align==="right");)this._placeToken(P,r,C,y,I,"right",_),D-=P.width,I-=P.width,L--;for(M+=(f-(M-g)-(m-I)-D)/2;A<=L;)P=b[A],this._placeToken(P,r,C,y,M+P.width/2,"center",_),M+=P.width,A++;y+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,u){var l=n.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,h=a+i/2;f==="top"?h=a+r.height/2:f==="bottom"&&(h=a+i-r.height/2);var v=!r.isLineHolder&&Vu(l);v&&this._renderBackground(l,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var c=!!l.backgroundColor,d=r.textPadding;d&&(o=gv(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild(ds),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,w=pv("fill"in l?l.fill:"fill"in n?n.fill:(m=!0,y.fill)),b=dv("stroke"in l?l.stroke:"stroke"in n?n.stroke:!c&&!u&&(!y.autoStroke||m)?(_=fv,S=!0,y.stroke):null),x=l.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=h,x&&(g.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,g.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Fr,g.opacity=Er(l.opacity,n.opacity,1),cv(g,l),b&&(g.lineWidth=Er(l.lineWidth,n.lineWidth,_),g.lineDash=$(l.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=b),w&&(g.fill=w),p.setBoundingRect(jl(g,r.contentWidth,r.contentHeight,S?0:null))},t.prototype._renderBackground=function(r,n,i,a,o,s){var u=r.backgroundColor,l=r.borderWidth,f=r.borderColor,h=u&&u.image,v=u&&!h,c=r.borderRadius,d=this,p,g;if(v||r.lineHeight||l&&f){p=this._getOrCreateChild(wt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=c,p.dirtyShape()}if(v){var m=p.style;m.fill=u||null,m.fillOpacity=$(r.fillOpacity,1)}else if(h){g=this._getOrCreateChild(Yr),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=u.image,_.x=i,_.y=a,_.width=o,_.height=s}if(l&&f){var m=p.style;m.lineWidth=l,m.stroke=f,m.strokeOpacity=$(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Er(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return $b(r)&&(n=[r.fontStyle,r.fontWeight,qb(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Ie(n)||r.textFont||r.font},t})(Na),Yb={left:!0,right:1,center:1},Xb={top:1,bottom:1,middle:1},hv=["fontStyle","fontWeight","fontSize","fontFamily"];function qb(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?vh+"px":e+"px"}function cv(e,t){for(var r=0;r<hv.length;r++){var n=hv[r],i=t[n];i!=null&&(e[n]=i)}}function $b(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Zb(e){return vv(e),T(e.rich,vv),e}function vv(e){if(e){e.font=Nt.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||Yb[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||Xb[r]?r:"top";var n=e.padding;n&&(e.padding=qs(e.padding))}}function dv(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function pv(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function gv(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function yv(e){var t=e.text;return t!=null&&(t+=""),t}function Vu(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var mv=1e-4,by=20;function jb(e){return e.replace(/^\s+|\s+$/g,"")}var ma=Math.min,ae=Math.max,Ye=Math.abs;function ps(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],u=a-i,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(n)if(u>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/u*l+o}var gt=Kb;function Kb(e,t,r){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return cf(e,t,r)}function cf(e,t,r){return U(e)?jb(e).match(/%$/)?parseFloat(e)/100*t+(r||0):parseFloat(e):e==null?NaN:+e}function Bt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),by),e=(+e).toFixed(t),r?e:+e}function Qb(e){return e.sort(function(t,r){return t-r}),e}function vi(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return wy(e)}function wy(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function xy(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Ye(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Jb(e,t,r){if(!e[t])return 0;var n=Ty(e,r);return n[t]||0}function Ty(e,t){var r=je(e,function(c,d){return c+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=X(e,function(c){return(isNaN(c)?0:c)/r*n*100}),a=n*100,o=X(i,function(c){return Math.floor(c)}),s=je(o,function(c,d){return c+d},0),u=X(i,function(c,d){return c-o[d]});s<a;){for(var l=Number.NEGATIVE_INFINITY,f=null,h=0,v=u.length;h<v;++h)u[h]>l&&(l=u[h],f=h);++o[f],u[f]=0,++s}return X(o,function(c){return c/n})}function tw(e,t){var r=Math.max(vi(e),vi(t)),n=e+t;return r>by?n:Bt(n,r)}var ew=9007199254740991;function Ch(e){var t=Math.PI*2;return(e%t+t)%t}function _a(e){return e>-mv&&e<mv}var rw=/^(?:(\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 dr(e){if(e instanceof Date)return e;if(U(e)){var t=rw.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function Cy(e){return Math.pow(10,eu(e))}function eu(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Mh(e,t){var r=eu(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function nw(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function iw(e){e.sort(function(u,l){return s(u,l,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var i=e[n].interval,a=e[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-r),t=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(n,1):n++}return e;function s(u,l,f){return u.interval[f]<l.interval[f]||u.interval[f]===l.interval[f]&&(u.close[f]-l.close[f]===(f?-1:1)||!f&&s(u,l,1))}}function Sa(e){var t=parseFloat(e);return t==e&&(t!==0||!U(e)||e.indexOf("x")<=0)?t:NaN}function My(e){return!isNaN(Sa(e))}function Dy(){return Math.round(Math.random()*9)}function Ay(e,t){return t===0?e:Ay(t,e%t)}function _v(e,t){return e==null?t:t==null?e:e*t/Ay(e,t)}var aw="[ECharts] ",ow=typeof console<"u"&&console.warn&&console.log;function sw(e,t,r){ow&&console[e](aw+t)}function Ly(e,t){sw("error",e)}function te(e){throw new Error(e)}var Py="series\0",uw="\0_ec_\0";function $t(e){return e instanceof Array?e:e==null?[]:[e]}function vf(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Sv=["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 Fa(e){return Y(e)&&!F(e)&&!(e instanceof Date)?e.value:e}function lw(e){return Y(e)&&!(e instanceof Array)}function fw(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=et();T(t,function(u,l){if(!Y(u)){t[l]=null;return}});var s=hw(e,o,r);return(n||i)&&cw(s,e,o,t),n&&vw(s,t),n||i?dw(s,t,i):a&&pw(s,t),gw(s),s}function hw(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||ba(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function cw(e,t,r,n){T(n,function(i,a){if(!(!i||i.id==null)){var o=ia(i.id),s=r.get(o);if(s!=null){var u=e[s];Ke(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=i,u.existing=t[s],n[a]=null}}})}function vw(e,t){T(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!ba(r)&&!ba(a)&&Iy("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function dw(e,t,r){T(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||ba(i.existing)||i.existing&&n.id!=null&&!Iy("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function pw(e,t){T(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function gw(e){var t=et();T(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),T(e,function(r){var n=r.newOption;Ke(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),T(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(Y(a)){if(o.name=a.name!=null?ia(a.name):i?i.name:Py+n,i)o.id=ia(i.id);else if(a.id!=null)o.id=ia(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function Iy(e,t,r){var n=$e(t[e],null),i=$e(r[e],null);return n!=null&&i!=null&&n===i}function ia(e){return $e(e,"")}function $e(e,t){return e==null?t:U(e)?e:ht(e)||ns(e)?e+"":t}function Dh(e){var t=e.name;return!!(t&&t.indexOf(Py))}function ba(e){return e&&e.id!=null&&ia(e.id).indexOf(uw)===0}function yw(e,t,r){T(e,function(n){var i=n.newOption;Y(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=mw(t,i,n.existing,r))})}function mw(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function za(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return F(t.dataIndex)?X(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return F(t.name)?X(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function mt(){var e="__ec_inner_"+_w++;return function(t){return t[e]||(t[e]={})}}var _w=Dy();function Wu(e,t,r){var n=Ah(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,u=r?r.defaultMainType:null;return!i&&u&&a.set(u,{}),a.each(function(l,f){var h=Ga(e,f,l,{useDefault:u===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Ah(e,t){var r;if(U(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=et(),a={},o=!1;return T(r,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],h=(l[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&it(t.includeMainTypes,f)<0)){o=o||!!f;var v=i.get(f)||i.set(f,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var me={useDefault:!0,enableAll:!1,enableNone:!1};function Ga(e,t,r,n){n=n||me;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=n.useDefault&&(u=e.getComponent(t))?[u]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;i=-1}return i==="all"&&(n.enableAll?i=a=o=null:i=-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function Ry(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function Sw(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function bw(e){return e==="auto"?j.domSupported?"html":"richText":e||"html"}var lt=mt(),ww=function(e,t,r,n){if(n){var i=lt(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=lt(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},bv=1,wv={},Ey=mt(),Lh=mt(),Oy=0,Ph=1,Ih=2,Qe=["emphasis","blur","select"],gs=["normal","emphasis","blur","select"],xw=10,Tw=9,An="highlight",Xo="downplay",ys="select",df="unselect",ms="toggleSelect",Rh="selectchanged";function Hn(e){return e!=null&&e!=="none"}function ru(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function ky(e){ru(e,"emphasis",Ih)}function By(e){e.hoverState===Ih&&ru(e,"normal",Oy)}function Eh(e){ru(e,"blur",Ph)}function Ny(e){e.hoverState===Ph&&ru(e,"normal",Oy)}function Cw(e){e.selected=!0}function Mw(e){e.selected=!1}function xv(e,t,r){t(e,r)}function pr(e,t,r){xv(e,t,r),e.isGroup&&e.traverse(function(n){xv(n,t,r)})}function Dw(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],u=i[s];a[s]=u??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var l=e.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(a,t)}return a}function Aw(e,t,r,n){var i=r&&it(r,"select")>=0,a=!1;if(e instanceof ct){var o=Ey(e),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(Hn(s)||Hn(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=E({},n),l=E({},l),l.fill=s):!Hn(l.fill)&&Hn(s)?(a=!0,n=E({},n),l=E({},l),l.fill=rf(s)):!Hn(l.stroke)&&Hn(u)&&(a||(n=E({},n),l=E({},l)),l.stroke=rf(u)),n.style=l}}if(n&&n.z2==null){a||(n=E({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??xw)}return n}function Lw(e,t,r){if(r&&r.z2==null){r=E({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Tw)}return r}function Pw(e,t,r){var n=it(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:Dw(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=E({},r),o=E({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Uu(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return Aw(this,e,t,r);if(e==="blur")return Pw(this,e,r);if(e==="select")return Lw(this,e,r)}return r}function Iw(e){e.stateProxy=Uu;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Uu),r&&(r.stateProxy=Uu)}function Tv(e,t){!Hy(e,t)&&!e.__highByOuter&&pr(e,ky)}function Cv(e,t){!Hy(e,t)&&!e.__highByOuter&&pr(e,By)}function pf(e,t){e.__highByOuter|=1<<(t||0),pr(e,ky)}function gf(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&pr(e,By)}function Rw(e){pr(e,Eh)}function Fy(e){pr(e,Ny)}function zy(e){pr(e,Cw)}function Gy(e){pr(e,Mw)}function Hy(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Vy(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=Lh(a),s=i==="series",u=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){Ny(l)}),s&&r.push(a)),o.isBlured=!1}),T(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function yf(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(l,f){for(var h=0;h<f.length;h++){var v=l.getItemGraphicEl(f[h]);v&&Fy(v)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];i.eachSeries(function(l){var f=o===l,h=l.coordinateSystem;h&&h.master&&(h=h.master);var v=h&&s?h===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!v||t==="series"&&f)){var c=n.getViewOfSeriesModel(l);if(c.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||Eh(g)}),Zt(t))a(l.getData(),t);else if(Y(t))for(var d=yt(t),p=0;p<d.length;p++)a(l.getData(d[p]),t[d[p]]);u.push(l),Lh(l).isBlured=!0}}),i.eachComponent(function(l,f){if(l!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(u,!0,i)}})}}function mf(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){Lh(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Eh(a)})}}}function Ew(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=za(i,t);a=(F(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),u=0;!o&&u<s;)o=i.getItemGraphicEl(u++);if(o){var l=lt(o);yf(n,l.focus,l.blurScope,r)}else{var f=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);f!=null&&yf(n,f,h,r)}}}function Oh(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),u,l=0;l<s.length;l++)if(lt(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function Ow(e,t,r){var n=lt(e),i=Oh(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&mf(n.componentMainType,n.componentIndex,r),T(a,function(s){return Tv(s,t)})):(yf(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&mf(n.componentMainType,n.componentIndex,r),Tv(e,t))}function kw(e,t,r){Vy(r);var n=lt(e),i=Oh(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?T(i,function(a){return Cv(a,t)}):Cv(e,t)}function Bw(e,t,r){if(Sf(t)){var n=t.dataType,i=e.getData(n),a=za(i,t);F(a)||(a=[a]),e[t.type===ms?"toggleSelect":t.type===ys?"select":"unselect"](a,n)}}function Mv(e){var t=e.getAllData();T(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?zy(a):Gy(a)})})}function Nw(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();T(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function _s(e,t,r){Yy(e,!0),pr(e,Iw),zw(e,t,r)}function Fw(e){Yy(e,!1)}function Wy(e,t,r,n){n?Fw(e):_s(e,t,r)}function zw(e,t,r){var n=lt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Dv=["emphasis","blur","select"],Gw={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Uy(e,t,r,n){r=r||"itemStyle";for(var i=0;i<Dv.length;i++){var a=Dv[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=o[Gw[r]]()}}function Yy(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function _f(e){return!!(e&&e.__highDownDispatcher)}function Hw(e){var t=wv[e];return t==null&&bv<=32&&(t=wv[e]=bv++),t}function Sf(e){var t=e.type;return t===ys||t===df||t===ms}function Av(e){var t=e.type;return t===An||t===Xo}function Vw(e){var t=Ey(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var Vn=ci.CMD,Ww=[[],[],[]],Lv=Math.sqrt,Uw=Math.atan2;function Yw(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,u,l,f=Vn.M,h=Vn.C,v=Vn.L,c=Vn.R,d=Vn.A,p=Vn.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case v:a=1;break;case h:a=3;break;case p:a=2;break;case d:var g=t[4],y=t[5],m=Lv(t[0]*t[0]+t[1]*t[1]),_=Lv(t[2]*t[2]+t[3]*t[3]),S=Uw(-t[1]/_,t[0]/m);r[o]*=m,r[o++]+=g,r[o]*=_,r[o++]+=y,r[o++]*=m,r[o++]*=_,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case c:l[0]=r[o++],l[1]=r[o++],qt(l,l,t),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],qt(l,l,t),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<a;u++){var w=Ww[u];w[0]=r[o++],w[1]=r[o++],qt(w,w,t),r[s++]=w[0],r[s++]=w[1]}}e.increaseVersion()}}var Yu=Math.sqrt,oo=Math.sin,so=Math.cos,Ci=Math.PI;function Pv(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function bf(e,t){return(e[0]*t[0]+e[1]*t[1])/(Pv(e)*Pv(t))}function Iv(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(bf(e,t))}function Rv(e,t,r,n,i,a,o,s,u,l,f){var h=u*(Ci/180),v=so(h)*(e-r)/2+oo(h)*(t-n)/2,c=-1*oo(h)*(e-r)/2+so(h)*(t-n)/2,d=v*v/(o*o)+c*c/(s*s);d>1&&(o*=Yu(d),s*=Yu(d));var p=(i===a?-1:1)*Yu((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=p*o*c/s,y=p*-s*v/o,m=(e+r)/2+so(h)*g-oo(h)*y,_=(t+n)/2+oo(h)*g+so(h)*y,S=Iv([1,0],[(v-g)/o,(c-y)/s]),w=[(v-g)/o,(c-y)/s],b=[(-1*v-g)/o,(-1*c-y)/s],x=Iv(w,b);if(bf(w,b)<=-1&&(x=Ci),bf(w,b)>=1&&(x=0),x<0){var C=Math.round(x/Ci*1e6)/1e6;x=Ci*2+C%2*Ci}f.addData(l,m,_,o,s,S,x,h,a)}var Xw=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,qw=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function $w(e){var t=new ci;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=ci.CMD,u=e.match(Xw);if(!u)return t;for(var l=0;l<u.length;l++){for(var f=u[l],h=f.charAt(0),v=void 0,c=f.match(qw)||[],d=c.length,p=0;p<d;p++)c[p]=parseFloat(c[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,b=void 0,x=void 0,C=r,D=n,A=void 0,M=void 0;switch(h){case"l":r+=c[g++],n+=c[g++],v=s.L,t.addData(v,r,n);break;case"L":r=c[g++],n=c[g++],v=s.L,t.addData(v,r,n);break;case"m":r+=c[g++],n+=c[g++],v=s.M,t.addData(v,r,n),i=r,a=n,h="l";break;case"M":r=c[g++],n=c[g++],v=s.M,t.addData(v,r,n),i=r,a=n,h="L";break;case"h":r+=c[g++],v=s.L,t.addData(v,r,n);break;case"H":r=c[g++],v=s.L,t.addData(v,r,n);break;case"v":n+=c[g++],v=s.L,t.addData(v,r,n);break;case"V":n=c[g++],v=s.L,t.addData(v,r,n);break;case"C":v=s.C,t.addData(v,c[g++],c[g++],c[g++],c[g++],c[g++],c[g++]),r=c[g-2],n=c[g-1];break;case"c":v=s.C,t.addData(v,c[g++]+r,c[g++]+n,c[g++]+r,c[g++]+n,c[g++]+r,c[g++]+n),r+=c[g-2],n+=c[g-1];break;case"S":y=r,m=n,A=t.len(),M=t.data,o===s.C&&(y+=r-M[A-4],m+=n-M[A-3]),v=s.C,C=c[g++],D=c[g++],r=c[g++],n=c[g++],t.addData(v,y,m,C,D,r,n);break;case"s":y=r,m=n,A=t.len(),M=t.data,o===s.C&&(y+=r-M[A-4],m+=n-M[A-3]),v=s.C,C=r+c[g++],D=n+c[g++],r+=c[g++],n+=c[g++],t.addData(v,y,m,C,D,r,n);break;case"Q":C=c[g++],D=c[g++],r=c[g++],n=c[g++],v=s.Q,t.addData(v,C,D,r,n);break;case"q":C=c[g++]+r,D=c[g++]+n,r+=c[g++],n+=c[g++],v=s.Q,t.addData(v,C,D,r,n);break;case"T":y=r,m=n,A=t.len(),M=t.data,o===s.Q&&(y+=r-M[A-4],m+=n-M[A-3]),r=c[g++],n=c[g++],v=s.Q,t.addData(v,y,m,r,n);break;case"t":y=r,m=n,A=t.len(),M=t.data,o===s.Q&&(y+=r-M[A-4],m+=n-M[A-3]),r+=c[g++],n+=c[g++],v=s.Q,t.addData(v,y,m,r,n);break;case"A":_=c[g++],S=c[g++],w=c[g++],b=c[g++],x=c[g++],C=r,D=n,r=c[g++],n=c[g++],v=s.A,Rv(C,D,r,n,b,x,_,S,w,v,t);break;case"a":_=c[g++],S=c[g++],w=c[g++],b=c[g++],x=c[g++],C=r,D=n,r+=c[g++],n+=c[g++],v=s.A,Rv(C,D,r,n,b,x,_,S,w,v,t);break}}(h==="z"||h==="Z")&&(v=s.Z,t.addData(v),r=i,n=a),o=v}return t.toStatic(),t}var Xy=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t})(ct);function qy(e){return e.setData!=null}function $y(e,t){var r=$w(e),n=E({},t);return n.buildPath=function(i){var a=qy(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){Yw(r,i),this.dirtyShape()},n}function Zw(e,t){return new Xy($y(e,t))}function jw(e,t){var r=$y(e,t),n=(function(i){V(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(Xy);return n}function Kw(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new ct(t);return o.createPathProxy(),o.buildPath=function(s){if(qy(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}var Kt=(function(e){V(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=it(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=it(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new J(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var u=i[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?(J.applyTransform(n,l,f),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}}return o||n},t})(Js);Kt.prototype.type="group";var Qw=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})(),Ha=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Qw},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t})(ct);Ha.prototype.type="circle";var Jw=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})(),nu=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Jw},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,u=n.ry,l=s*i,f=u*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-l,o-u,a,o-u),r.bezierCurveTo(a+l,o-u,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+l,o+u,a,o+u),r.bezierCurveTo(a-l,o+u,a-s,o+f,a-s,o),r.closePath()},t})(ct);nu.prototype.type="ellipse";var Zy=Math.PI,Xu=Zy*2,un=Math.sin,Wn=Math.cos,tx=Math.acos,Ot=Math.atan2,Ev=Math.abs,aa=Math.sqrt,ji=Math.max,He=Math.min,Ae=1e-4;function ex(e,t,r,n,i,a,o,s){var u=r-e,l=n-t,f=o-i,h=s-a,v=h*u-f*l;if(!(v*v<Ae))return v=(f*(t-a)-h*(e-i))/v,[e+v*u,t+v*l]}function uo(e,t,r,n,i,a,o){var s=e-r,u=t-n,l=(o?a:-a)/aa(s*s+u*u),f=l*u,h=-l*s,v=e+f,c=t+h,d=r+f,p=n+h,g=(v+d)/2,y=(c+p)/2,m=d-v,_=p-c,S=m*m+_*_,w=i-a,b=v*p-d*c,x=(_<0?-1:1)*aa(ji(0,w*w*S-b*b)),C=(b*_-m*x)/S,D=(-b*m-_*x)/S,A=(b*_+m*x)/S,M=(-b*m+_*x)/S,I=C-g,L=D-y,P=A-g,R=M-y;return I*I+L*L>P*P+R*R&&(C=A,D=M),{cx:C,cy:D,x0:-f,y0:-h,x1:C*(i/w-1),y1:D*(i/w-1)}}function rx(e){var t;if(F(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function nx(e,t){var r,n=ji(t.r,0),i=ji(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,v=!!t.clockwise,c=Ev(l-u),d=c>Xu&&c%Xu;if(d>Ae&&(c=d),!(n>Ae))e.moveTo(f,h);else if(c>Xu-Ae)e.moveTo(f+n*Wn(u),h+n*un(u)),e.arc(f,h,n,u,l,!v),i>Ae&&(e.moveTo(f+i*Wn(l),h+i*un(l)),e.arc(f,h,i,l,u,v));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,b=void 0,x=void 0,C=void 0,D=void 0,A=void 0,M=void 0,I=void 0,L=void 0,P=void 0,R=n*Wn(u),k=n*un(u),W=i*Wn(l),O=i*un(l),z=c>Ae;if(z){var H=t.cornerRadius;H&&(r=rx(H),p=r[0],g=r[1],y=r[2],m=r[3]);var G=Ev(n-i)/2;if(_=He(G,y),S=He(G,m),w=He(G,p),b=He(G,g),D=x=ji(_,S),A=C=ji(w,b),(x>Ae||C>Ae)&&(M=n*Wn(l),I=n*un(l),L=i*Wn(u),P=i*un(u),c<Zy)){var B=ex(R,k,L,P,M,I,W,O);if(B){var tt=R-B[0],vt=k-B[1],zt=M-B[0],re=I-B[1],Gt=1/un(tx((tt*zt+vt*re)/(aa(tt*tt+vt*vt)*aa(zt*zt+re*re)))/2),Et=aa(B[0]*B[0]+B[1]*B[1]);D=He(x,(n-Et)/(Gt+1)),A=He(C,(i-Et)/(Gt-1))}}}if(!z)e.moveTo(f+R,h+k);else if(D>Ae){var Pt=He(y,D),xt=He(m,D),Z=uo(L,P,R,k,n,Pt,v),nt=uo(M,I,W,O,n,xt,v);e.moveTo(f+Z.cx+Z.x0,h+Z.cy+Z.y0),D<x&&Pt===xt?e.arc(f+Z.cx,h+Z.cy,D,Ot(Z.y0,Z.x0),Ot(nt.y0,nt.x0),!v):(Pt>0&&e.arc(f+Z.cx,h+Z.cy,Pt,Ot(Z.y0,Z.x0),Ot(Z.y1,Z.x1),!v),e.arc(f,h,n,Ot(Z.cy+Z.y1,Z.cx+Z.x1),Ot(nt.cy+nt.y1,nt.cx+nt.x1),!v),xt>0&&e.arc(f+nt.cx,h+nt.cy,xt,Ot(nt.y1,nt.x1),Ot(nt.y0,nt.x0),!v))}else e.moveTo(f+R,h+k),e.arc(f,h,n,u,l,!v);if(!(i>Ae)||!z)e.lineTo(f+W,h+O);else if(A>Ae){var Pt=He(p,A),xt=He(g,A),Z=uo(W,O,M,I,i,-xt,v),nt=uo(R,k,L,P,i,-Pt,v);e.lineTo(f+Z.cx+Z.x0,h+Z.cy+Z.y0),A<C&&Pt===xt?e.arc(f+Z.cx,h+Z.cy,A,Ot(Z.y0,Z.x0),Ot(nt.y0,nt.x0),!v):(xt>0&&e.arc(f+Z.cx,h+Z.cy,xt,Ot(Z.y0,Z.x0),Ot(Z.y1,Z.x1),!v),e.arc(f,h,i,Ot(Z.cy+Z.y1,Z.cx+Z.x1),Ot(nt.cy+nt.y1,nt.cx+nt.x1),v),Pt>0&&e.arc(f+nt.cx,h+nt.cy,Pt,Ot(nt.y1,nt.x1),Ot(nt.y0,nt.x0),!v))}else e.lineTo(f+W,h+O),e.arc(f,h,i,l,u,v)}e.closePath()}}}var ix=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e})(),gr=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ix},t.prototype.buildPath=function(r,n){nx(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(ct);gr.prototype.type="sector";var ax=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),iu=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ax},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t})(ct);iu.prototype.type="ring";function ox(e,t,r,n){var i=[],a=[],o=[],s=[],u,l,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=e.length;v<c;v++)Mr(f,f,e[v]),Dr(h,h,e[v]);Mr(f,f,n[0]),Dr(h,h,n[1])}for(var v=0,c=e.length;v<c;v++){var d=e[v];if(r)u=e[v?v-1:c-1],l=e[(v+1)%c];else if(v===0||v===c-1){i.push(ty(e[v]));continue}else u=e[v-1],l=e[v+1];ey(a,l,u),Go(a,a,t);var p=ss(d,u),g=ss(d,l),y=p+g;y!==0&&(p/=y,g/=y),Go(o,a,-p),Go(s,a,g);var m=Kl([],d,o),_=Kl([],d,s);n&&(Dr(m,m,f),Mr(m,m,h),Dr(_,_,f),Mr(_,_,h)),i.push(m),i.push(_)}return r&&i.push(i.shift()),i}function jy(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=ox(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var sx=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})(),au=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new sx},t.prototype.buildPath=function(r,n){jy(r,n,!0)},t})(ct);au.prototype.type="polygon";var ux=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})(),Si=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ux},t.prototype.buildPath=function(r,n){jy(r,n,!1)},t})(ct);Si.prototype.type="polyline";var lx={},fx=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),vr=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new fx},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=_y(lx,n,this.style);i=u.x1,a=u.y1,o=u.x2,s=u.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var l=n.percent;l!==0&&(r.moveTo(i,a),l<1&&(o=i*(1-l)+o*l,s=a*(1-l)+s*l),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t})(ct);vr.prototype.type="line";var Qt=[],hx=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e})();function Ov(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?Kc:Ut)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Kc:Ut)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?Qc:Jt)(e.x1,e.cpx1,e.x2,t),(r?Qc:Jt)(e.y1,e.cpy1,e.y2,t)]}var ou=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new hx},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,u=n.cpx1,l=n.cpy1,f=n.cpx2,h=n.cpy2,v=n.percent;v!==0&&(r.moveTo(i,a),f==null||h==null?(v<1&&(hs(i,u,o,v,Qt),u=Qt[1],o=Qt[2],hs(a,l,s,v,Qt),l=Qt[1],s=Qt[2]),r.quadraticCurveTo(u,l,o,s)):(v<1&&(fs(i,u,f,o,v,Qt),u=Qt[1],f=Qt[2],o=Qt[3],fs(a,l,h,s,v,Qt),l=Qt[1],h=Qt[2],s=Qt[3]),r.bezierCurveTo(u,l,f,h,o,s)))},t.prototype.pointAt=function(r){return Ov(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=Ov(this.shape,r,!0);return ry(n,n)},t})(ct);ou.prototype.type="bezier-curve";var cx=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),Va=(function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new cx},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,u=n.endAngle,l=n.clockwise,f=Math.cos(s),h=Math.sin(s);r.moveTo(f*o+i,h*o+a),r.arc(i,a,o,s,u,!l)},t})(ct);Va.prototype.type="arc";var Ky=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ct.prototype.getBoundingRect.call(this)},t})(ct),Qy=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e})(),Jy=(function(e){V(t,e);function t(r,n,i,a,o,s){var u=e.call(this,o)||this;return u.x=r??0,u.y=n??0,u.x2=i??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return t})(Qy),tm=(function(e){V(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t})(Qy),qu=Math.min,vx=Math.max,lo=Math.abs,ln=[0,0],fn=[0,0],Lt=Xg(),fo=Lt.minTv,ho=Lt.maxTv,em=(function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new K;for(var n=0;n<2;n++)this._axes[n]=new K;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,u=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,u),n[3].set(a,u),r)for(var l=0;l<4;l++)n[l].transform(r);K.sub(i[0],n[1],n[0]),K.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},e.prototype.intersect=function(t,r,n){var i=!0,a=!r;return r&&K.set(r,0,0),Lt.reset(n,!a),!this._intersectCheckOneSide(this,t,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(i=!1,a)||!a&&!Lt.negativeSize&&K.copy(r,i?Lt.useDir?Lt.dirMinTv:fo:ho),i},e.prototype._intersectCheckOneSide=function(t,r,n,i){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,ln),t._getProjMinMaxOnAxis(o,r._corners,fn),Lt.negativeSize||ln[1]<fn[0]||ln[0]>fn[1]){if(a=!1,Lt.negativeSize||n)return a;var u=lo(fn[0]-ln[1]),l=lo(ln[0]-fn[1]);qu(u,l)>ho.len()&&(u<l?K.scale(ho,s,-u*i):K.scale(ho,s,l*i))}else if(!n){var u=lo(fn[0]-ln[1]),l=lo(ln[0]-fn[1]);(Lt.useDir||qu(u,l)<fo.len())&&((u<l||!Lt.bidirectional)&&(K.scale(fo,s,u*i),Lt.useDir&&Lt.calcDirMTV()),(u>=l||!Lt.bidirectional)&&(K.scale(fo,s,-l*i),Lt.useDir&&Lt.calcDirMTV()))}}return a},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,u=o,l=1;l<r.length;l++){var f=r[l].dot(i)+a[t];s=qu(f,s),u=vx(f,u)}n[0]=s+Lt.touchThreshold,n[1]=u-Lt.touchThreshold,Lt.negativeSize=n[1]<n[0]},e})(),dx=[],rm=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new J(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(dx)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t})(Na),px=mt();function gx(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),u=e==="update";if(s){var l=void 0,f=void 0,h=void 0;n?(l=$(n.duration,200),f=$(n.easing,"cubicOut"),h=0):(l=t.getShallow(u?"animationDurationUpdate":"animationDuration"),f=t.getShallow(u?"animationEasingUpdate":"animationEasing"),h=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),Q(h)&&(h=h(r,i)),Q(l)&&(l=l(r));var v={duration:l||0,delay:h,easing:f};return v}else return null}function kh(e,t,r,n,i,a,o){var s=!1,u;Q(i)?(o=a,a=i,i=null):Y(i)&&(a=i.cb,o=i.during,s=i.isFrom,u=i.removeOpt,i=i.dataIndex);var l=e==="leave";l||t.stopAnimation("leave");var f=gx(e,n,i,l?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var h=f.duration,v=f.delay,c=f.easing,d={duration:h,delay:v||0,easing:c,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function xe(e,t,r,n,i,a){kh("update",e,t,r,n,i,a)}function cr(e,t,r,n,i,a){kh("enter",e,t,r,n,i,a)}function oa(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function nm(e,t,r,n,i,a){oa(e)||kh("leave",e,t,r,n,i,a)}function kv(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),nm(e,{style:{opacity:0}},t,r,n)}function sa(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||kv(i,t,r,n)}):kv(e,t,r,n)}function im(e){px(e).oldStyle=e.style}var wf={},Cr=["x","y"],di=["width","height"];function am(e){return ct.extend(e)}var yx=jw;function om(e,t){return yx(e,t)}function Ce(e,t){wf[e]=t}function sm(e){if(wf.hasOwnProperty(e))return wf[e]}function su(e,t,r,n){var i=Zw(e,t);return r&&(n==="center"&&(r=um(r,i.getBoundingRect())),Nh(i,r)),i}function Bh(e,t,r){var n=new Yr({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(um(t,a))}}});return n}function um(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var lm=Kw;function Nh(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function wa(e,t){return _y(e,e,{lineWidth:t}),e}function mx(e,t){return Sy(e,e,t),e}var _x=Sn;function fm(e,t){for(var r=Ba([]);e&&e!==t;)Tn(r,e.getLocalTransform(),r),e=e.parent;return r}function Fh(e,t,r){return t&&!Zt(t)&&(t=xh.getLocalTransform(t)),r&&(t=Rn([],t)),qt([],e,t)}function Sx(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Ye(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Ye(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=Fh(a,t,r),Ye(a[0])>Ye(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Bv(e){return!e.isGroup}function bx(e){return e.shape!=null}function hm(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(u){Bv(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return bx(o)&&(s.shape=rt(o.shape)),s}var a=n(e);t.traverse(function(o){if(Bv(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),xe(o,u,r,lt(o).dataIndex)}}})}function cm(e,t){return X(e,function(r){var n=r[0];n=ae(n,t.x),n=ma(n,t.x+t.width);var i=r[1];return i=ae(i,t.y),i=ma(i,t.y+t.height),[n,i]})}function vm(e,t){var r=ae(e.x,t.x),n=ma(e.x+e.width,t.x+t.width),i=ae(e.y,t.y),a=ma(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function uu(e,t,r){var n=E({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),ft(i,r),new Yr(n)):su(e.replace("path://",""),n,r,"center")}function xx(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(dm(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function dm(e,t,r,n,i,a,o,s){var u=r-e,l=n-t,f=o-i,h=s-a,v=$u(f,h,u,l);if(Tx(v))return!1;var c=e-i,d=t-a,p=$u(c,d,u,l)/v;if(p<0||p>1)return!1;var g=$u(c,d,f,h)/v;return!(g<0||g>1)}function $u(e,t,r,n){return e*n-r*t}function Tx(e){return e<=1e-6&&e>=-1e-6}function Ss(e,t,r,n,i){return t==null||(ht(t)?dt[0]=dt[1]=dt[2]=dt[3]=t:(dt[0]=t[0],dt[1]=t[1],dt[2]=t[2],dt[3]=t[3]),n&&(dt[0]=ae(0,dt[0]),dt[1]=ae(0,dt[1]),dt[2]=ae(0,dt[2]),dt[3]=ae(0,dt[3])),r&&(dt[0]=-dt[0],dt[1]=-dt[1],dt[2]=-dt[2],dt[3]=-dt[3]),Nv(e,dt,"x","width",3,1,i&&i[0]||0),Nv(e,dt,"y","height",0,2,i&&i[1]||0)),e}var dt=[0,0,0,0];function Nv(e,t,r,n,i,a,o){var s=t[a]+t[i],u=e[n];e[n]+=s,o=ae(0,ma(o,u)),e[n]<o?(e[n]=o,e[r]+=t[i]>=0?-t[i]:t[a]>=0?u+t[a]:Ye(s)>1e-8?(u-o)*t[i]/s:0):e[r]-=t[i]}function lu(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=U(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=e.formatterParamsExtra;u&&T(yt(u),function(f){Se(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=lt(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:ft({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function xf(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function zh(e,t){if(e)if(F(e))for(var r=0;r<e.length;r++)xf(e[r],t);else xf(e,t)}function Gh(e){return!e||Ye(e[1])<co&&Ye(e[2])<co||Ye(e[0])<co&&Ye(e[3])<co}var co=1e-5;function xa(e,t){return e?J.copy(e,t):t.clone()}function Hh(e,t){return t?js(e||Re(),t):void 0}function pm(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function Cx(e){var t=-1/0,r=1/0;xf(e,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>t&&(t=o),o<r&&(r=o)}}return r>t&&(r=t=0),{min:r,max:t}}function gm(e,t,r){ym(e,t,r,-1/0)}function ym(e,t,r,n){if(e.ignoreModelZ)return n;var i=e.getTextContent(),a=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),u=0;u<s.length;u++)n=ae(ym(s[u],t,r,n),n);else e.z=t,e.zlevel=r,n=ae(e.z2||0,n);if(i&&(i.z=t,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var l=e.textGuideLineConfig;a.z=t,a.zlevel=r,isFinite(n)&&(a.z2=n+(l&&l.showAbove?1:-1))}return n}Ce("circle",Ha);Ce("ellipse",nu);Ce("sector",gr);Ce("ring",iu);Ce("polygon",au);Ce("polyline",Si);Ce("rect",wt);Ce("line",vr);Ce("bezierCurve",ou);Ce("arc",Va);const Mx=Object.freeze(Object.defineProperty({__proto__:null,Arc:Va,BezierCurve:ou,BoundingRect:J,Circle:Ha,CompoundPath:Ky,Ellipse:nu,Group:Kt,Image:Yr,IncrementalDisplayable:rm,Line:vr,LinearGradient:Jy,OrientedBoundingRect:em,Path:ct,Point:K,Polygon:au,Polyline:Si,RadialGradient:tm,Rect:wt,Ring:iu,Sector:gr,Text:Nt,WH:di,XY:Cr,applyTransform:Fh,calcZ2Range:Cx,clipPointsByRect:cm,clipRectByRect:vm,createIcon:uu,ensureCopyRect:xa,ensureCopyTransform:Hh,expandOrShrinkRect:Ss,extendPath:om,extendShape:am,getShapeClass:sm,getTransform:fm,groupTransition:hm,initProps:cr,isBoundingRectAxisAligned:Gh,isElementRemoved:oa,lineLineIntersect:dm,linePolygonIntersect:xx,makeImage:Bh,makePath:su,mergePath:lm,registerShape:Ce,removeElement:nm,removeElementWithFadeOut:sa,resizePath:Nh,retrieveZInfo:pm,setTooltipConfig:lu,subPixelOptimize:_x,subPixelOptimizeLine:wa,subPixelOptimizeRect:mx,transformDirection:Sx,traverseElements:zh,traverseUpdateZ:gm,updateProps:xe},Symbol.toStringTag,{value:"Module"}));var fu={};function Dx(e,t){for(var r=0;r<Qe.length;r++){var n=Qe[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Fv(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Q(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var u={normal:s},l=0;l<Qe.length;l++){var f=Qe[l],h=t[f];u[f]=$(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return u}function Vh(e,t,r,n){r=r||fu;for(var i=e instanceof Nt,a=!1,o=0;o<gs.length;o++){var s=t[gs[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=i?e:e.getTextContent();if(a){i||(u||(u=new Nt,e.setTextContent(u)),e.stateProxy&&(u.stateProxy=e.stateProxy));var l=Fv(r,t),f=t.normal,h=!!f.getShallow("show"),v=In(f,n,r,!1,!i);v.text=l.normal,i||e.setTextConfig(zv(f,r,!1));for(var o=0;o<Qe.length;o++){var c=Qe[o],s=t[c];if(s){var d=u.ensureState(c),p=!!$(s.getShallow("show"),h);if(p!==h&&(d.ignore=!p),d.style=In(s,n,r,!0,!i),d.style.text=l[c],!i){var g=e.ensureState(c);g.textConfig=zv(s,r,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(v.x=u.style.x),u.style.y!=null&&(v.y=u.style.y),u.ignore=!h,u.useStyle(v),u.dirty(),r.enableTextSetter&&(Wh(u).setLabelText=function(y){var m=Fv(r,t,y);Dx(u,m)})}else u&&(u.ignore=!0);e.dirty()}function mm(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Qe.length;n++){var i=Qe[n];r[i]=e.getModel([i,t])}return r}function In(e,t,r,n,i){var a={};return Ax(a,e,r,n,i),t&&E(a,t),a}function zv(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=$(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(n.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(n.layoutRect=t.layoutRect),n}function Ax(e,t,r,n,i){r=r||fu;var a=t.ecModel,o=a&&a.option.textStyle,s=Lx(t),u;if(s){u={};var l="richInheritPlainLabel",f=$(t.get(l),a?a.get(l):void 0);for(var h in s)if(s.hasOwnProperty(h)){var v=t.getModel(["rich",h]);Wv(u[h]={},v,o,t,f,r,n,i,!1,!0)}}u&&(e.rich=u);var c=t.get("overflow");c&&(e.overflow=c);var d=t.get("lineOverflow");d&&(e.lineOverflow=d);var p=e,g=t.get("minMargin");if(g!=null)g=ht(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=ni.minMargin;else{var y=t.get("textMargin");y!=null&&(p.margin=qs(y),p.__marginType=ni.textMargin)}Wv(e,t,o,null,null,r,n,i,!0,!1)}function Lx(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||fu).rich;if(r){t=t||{};for(var n=yt(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var Gv=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Hv=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Vv=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Wv(e,t,r,n,i,a,o,s,u,l){r=!o&&r||fu;var f=a&&a.inheritColor,h=t.getShallow("color"),v=t.getShallow("textBorderColor"),c=$(t.getShallow("opacity"),r.opacity);(h==="inherit"||h==="auto")&&(f?h=f:h=null),(v==="inherit"||v==="auto")&&(f?v=f:v=null),s||(h=h||r.color,v=v||r.textBorderColor),h!=null&&(e.fill=h),v!=null&&(e.stroke=v);var d=$(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var p=$(t.getShallow("textBorderType"),r.textBorderType);p!=null&&(e.lineDash=p);var g=$(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&c==null&&!l&&(c=a&&a.defaultOpacity),c!=null&&(e.opacity=c),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var y=0;y<Gv.length;y++){var m=Gv[y],_=i!==!1&&n?Er(t.getShallow(m),n.getShallow(m),r[m]):$(t.getShallow(m),r[m]);_!=null&&(e[m]=_)}for(var y=0;y<Hv.length;y++){var m=Hv[y],_=t.getShallow(m);_!=null&&(e[m]=_)}if(e.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(e.verticalAlign=S)}if(!u||!a.disableBox){for(var y=0;y<Vv.length;y++){var m=Vv[y],_=t.getShallow(m);_!=null&&(e[m]=_)}var w=t.getShallow("borderType");w!=null&&(e.borderDash=w),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&f&&(e.backgroundColor=f),(e.borderColor==="auto"||e.borderColor==="inherit")&&f&&(e.borderColor=f)}}function Px(e,t){var r=t&&t.getModel("textStyle");return Ie([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Wh=mt();function Ix(e,t,r,n){if(e){var i=Wh(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}var ni={minMargin:1,textMargin:2},Rx=["textStyle","color"],Zu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ju=new Nt,Ex=(function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(Rx):null)},e.prototype.getFont=function(){return Px({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Zu.length;n++)r[Zu[n]]=this.getShallow(Zu[n]);return ju.useStyle(r),ju.update(),ju.getBoundingRect()},e})(),_m=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Ox=da(_m),kx=(function(){function e(){}return e.prototype.getLineStyle=function(t){return Ox(this,t)},e})(),Sm=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Bx=da(Sm),Nx=(function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Bx(this,t,r)},e})(),pt=(function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){at(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(rt(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!j.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e})();_h(pt);hS(pt);Te(pt,kx);Te(pt,Nx);Te(pt,gS);Te(pt,Ex);function Mi(e){return e==null?0:e.length||1}function Uv(e){return e}var Fx=(function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||Uv,this._newKeyGetter=i||Uv,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],u=n[s],l=Mi(u);if(l>1){var f=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(f,o)}else l===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=n[u],f=i[u],h=Mi(l),v=Mi(f);if(h>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(h===1&&v===1)this._update&&this._update(f,l),i[u]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[u]=null;else if(h>1)for(var c=0;c<h;c++)this._remove&&this._remove(l[c]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=Mi(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[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var u=r[s],l=Mi(u);l===0?(r[s]=o,a&&n.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},e})(),bm=et(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),le="original",Ft="arrayRows",Me="objectRows",ke="keyedColumns",Br="typedArray",wm="unknown",Ze="column",On="row",It={Must:1,Might:2,Not:3},xm=mt();function zx(e){xm(e).datasetMap=et()}function Gx(e,t,r){var n={},i=Uh(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,u=xm(s).datasetMap,l=i.uid+"_"+r.seriesLayoutBy,f,h;e=e.slice(),T(e,function(p,g){var y=Y(p)?p:e[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,h=d(y)),n[y.name]=[]});var v=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});T(e,function(p,g){var y=p.name,m=d(p);if(f==null){var _=v.valueWayDim;c(n[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===g)c(n[y],0,m),c(a,0,m);else{var _=v.categoryWayDim;c(n[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function Hx(e,t,r){var n={},i=Uh(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Me||a===ke)&&T(o,function(f,h){(Y(f)?f.name:f)==="name"&&(s=h)});var u=(function(){for(var f={},h={},v=[],c=0,d=Math.min(5,r);c<d;c++){var p=Cm(t.data,a,t.seriesLayoutBy,o,t.startIndex,c);v.push(p);var g=p===It.Not;if(g&&f.v==null&&c!==s&&(f.v=c),(f.n==null||f.n===f.v||!g&&v[f.n]===It.Not)&&(f.n=c),y(f)&&v[f.n]!==It.Not)return f;g||(p===It.Might&&h.v==null&&c!==s&&(h.v=c),(h.n==null||h.n===h.v)&&(h.n=c))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(h)?h:null})();if(u){n.value=[u.v];var l=s??u.n;n.itemName=[l],n.seriesName=[l]}return n}function Uh(e){var t=e.get("data",!0);if(!t)return Ga(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},me).models[0]}function Vx(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Ga(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},me).models}function Tm(e,t){return Cm(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Cm(e,t,r,n,i,a){var o,s=5;if(jt(e))return It.Not;var u,l;if(n){var f=n[a];Y(f)?(u=f.name,l=f.type):U(f)&&(u=f)}if(l!=null)return l==="ordinal"?It.Must:It.Not;if(t===Ft){var h=e;if(r===On){for(var v=h[a],c=0;c<(v||[]).length&&c<s;c++)if((o=S(v[i+c]))!=null)return o}else for(var c=0;c<h.length&&c<s;c++){var d=h[i+c];if(d&&(o=S(d[a]))!=null)return o}}else if(t===Me){var p=e;if(!u)return It.Not;for(var c=0;c<p.length&&c<s;c++){var g=p[c];if(g&&(o=S(g[u]))!=null)return o}}else if(t===ke){var y=e;if(!u)return It.Not;var v=y[u];if(!v||jt(v))return It.Not;for(var c=0;c<v.length&&c<s;c++)if((o=S(v[c]))!=null)return o}else if(t===le)for(var m=e,c=0;c<m.length&&c<s;c++){var g=m[c],_=Fa(g);if(!F(_))return It.Not;if((o=S(_[a]))!=null)return o}function S(w){var b=U(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return b?It.Might:It.Not;if(b&&w!=="-")return It.Must}return It.Not}var hu=(function(){function e(t){this.data=t.data||(t.sourceFormat===ke?{}:[]),this.sourceFormat=t.sourceFormat||wm,this.seriesLayoutBy=t.seriesLayoutBy||Ze,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&Tm(this,n)===It.Must&&(i.type="ordinal")}}return e})();function Yh(e){return e instanceof hu}function Tf(e,t,r){r=r||Dm(e);var n=t.seriesLayoutBy,i=Ux(e,r,n,t.sourceHeader,t.dimensions),a=new hu({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:rt(t)});return a}function Mm(e){return new hu({data:e,sourceFormat:jt(e)?Br:le})}function Wx(e){return new hu({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:rt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Dm(e){var t=wm;if(jt(e))t=Br;else if(F(e)){e.length===0&&(t=Ft);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(F(i)||jt(i)){t=Ft;break}else if(Y(i)){t=Me;break}}}}else if(Y(e)){for(var a in e)if(Se(e,a)&&Zt(e[a])){t=ke;break}}return t}function Ux(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:Yv(i),startIndex:o,dimensionsDetectedCount:a};if(t===Ft){var s=e;n==="auto"||n==null?Xv(function(l){l!=null&&l!=="-"&&(U(l)?o==null&&(o=1):o=0)},r,s,10):o=ht(n)?n:n?1:0,!i&&o===1&&(i=[],Xv(function(l,f){i[f]=l!=null?l+"":""},r,s,1/0)),a=i?i.length:r===On?s.length:s[0]?s[0].length:null}else if(t===Me)i||(i=Yx(e));else if(t===ke)i||(i=[],T(e,function(l,f){i.push(f)}));else if(t===le){var u=Fa(e[0]);a=F(u)&&u.length||1}return{startIndex:o,dimensionsDefine:Yv(i),dimensionsDetectedCount:a}}function Yx(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return yt(r)}function Yv(e){if(e){var t=et();return X(e,function(r,n){r=Y(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function Xv(e,t,r,n){if(t===On)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function Am(e){var t=e.sourceFormat;return t===Me||t===ke}var hn,cn,vn,dn,qv,$v,Lm=(function(){function e(t,r){var n=Yh(t)?t:Mm(t);this._source=n;var i=this._data=n.data,a=n.sourceFormat;n.seriesLayoutBy,a===Br&&(this._offset=0,this._dimSize=r,this._data=i),$v(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=(function(){var t=e.prototype;t.pure=!1,t.persistent=!0})(),e.internalField=(function(){var t;$v=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,h=u.startIndex,v=u.dimensionsDefine,c=qv[Xh(l,f)];if(E(o,c),l===Br)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=Pm(l,f);o.getItem=ut(d,null,s,h,v);var p=Im(l,f);o.count=ut(p,null,s,h,v)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,h=0;h<l;h++)s[h]=u[f+h];return s},n=function(o,s,u,l){for(var f=this._data,h=this._dimSize,v=0;v<h;v++){for(var c=l[v],d=c[0]==null?1/0:c[0],p=c[1]==null?-1/0:c[1],g=s-o,y=u[v],m=0;m<g;m++){var _=f[m*h+v];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}c[0]=d,c[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};qv=(t={},t[Ft+"_"+Ze]={pure:!0,appendData:a},t[Ft+"_"+On]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Me]={pure:!0,appendData:a},t[ke]={pure:!0,appendData:function(o){var s=this._data;T(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[le]={appendData:a},t[Br]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),e})(),vo=function(e){F(e)||Ly("series.data or dataset.source must be an array.")};hn={},hn[Ft+"_"+Ze]=vo,hn[Ft+"_"+On]=vo,hn[Me]=vo,hn[ke]=function(e,t){for(var r=0;r<t.length;r++){var n=t[r].name;n==null&&Ly("dimension name must not be null/undefined.")}},hn[le]=vo;var Zv=function(e,t,r,n){return e[n]},Xx=(cn={},cn[Ft+"_"+Ze]=function(e,t,r,n){return e[n+t]},cn[Ft+"_"+On]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[n]:null}return a},cn[Me]=Zv,cn[ke]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,u=s!=null?e[s]:null;a[o]=u?u[n]:null}return a},cn[le]=Zv,cn);function Pm(e,t){var r=Xx[Xh(e,t)];return r}var jv=function(e,t,r){return e.length},qx=(vn={},vn[Ft+"_"+Ze]=function(e,t,r){return Math.max(0,e.length-t)},vn[Ft+"_"+On]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},vn[Me]=jv,vn[ke]=function(e,t,r){var n=r[0].name,i=n!=null?e[n]:null;return i?i.length:0},vn[le]=jv,vn);function Im(e,t){var r=qx[Xh(e,t)];return r}var Ku=function(e,t,r){return e[t]},$x=(dn={},dn[Ft]=Ku,dn[Me]=function(e,t,r){return e[r]},dn[ke]=Ku,dn[le]=function(e,t,r){var n=Fa(e);return n instanceof Array?n[t]:n},dn[Br]=Ku,dn);function Rm(e){var t=$x[e];return t}function Xh(e,t){return e===Ft?e+"_"+t:e}function pi(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return Rm(a)(n,o,s)}else{var u=n;return a===le&&(u=Fa(n)),u}}}}var Zx=(function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e})();function jx(e,t){var r={},n=r.encode={},i=et(),a=[],o=[],s={};T(e.dimensions,function(v){var c=e.getDimensionInfo(v),d=c.coordDim;if(d){var p=c.coordDimIndex;Qu(n,d)[p]=v,c.isExtraCoord||(i.set(d,1),Qx(c.type)&&(a[0]=v),Qu(s,d)[p]=e.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(v)}bm.each(function(g,y){var m=Qu(n,y),_=c.otherDims[y];_!=null&&_!==!1&&(m[_]=c.name)})});var u=[],l={};i.each(function(v,c){var d=n[c];l[c]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=X(u,function(v){return e.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=l;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new Zx(s,t),r}function Qu(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Kx(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function Qx(e){return!(e==="ordinal"||e==="time")}var qo=(function(){function e(t){this.otherDims={},t!=null&&E(this,t)}return e})();function $o(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!ht(e)&&e!=null&&e!=="-"&&(e=+dr(e)),e==null||e===""?NaN:Number(e))}et({number:function(e){return parseFloat(e)},time:function(e){return+dr(e)},trim:function(e){return U(e)?Ie(e):e}});var Jx=(function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=ht(t)?t:Sa(t),i=ht(r)?r:Sa(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=U(t),u=U(r);s&&(n=u?t:0),u&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e})(),cu="undefined",tT=typeof Uint32Array===cu?Array:Uint32Array,eT=typeof Uint16Array===cu?Array:Uint16Array,Em=typeof Int32Array===cu?Array:Int32Array,Kv=typeof Float64Array===cu?Array:Float64Array,Om={float:Kv,int:Em,ordinal:Array,number:Array,time:Kv},Ju;function Un(e){return e>65535?tT:eT}function Yn(){return[1/0,-1/0]}function rT(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Qv(e,t,r,n,i){var a=Om[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;l<s;l++)u[l]=o[l];e[t]=u}}else e[t]=new a(n)}var Cf=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=et()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Ju[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],Am(i),this._dimensions=X(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new Om[r||"float"](this._rawCount),this._rawExtent[a]=Yn(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=Yn());for(var u=a[t],l=o;l<s;l++){var f=n[l]=r.parseAndCollect(n[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,r||0),l=0;l<a;l++){var f=i[l];Qv(n,l,f.type,u,!0)}for(var h=[],v=s;v<u;v++)for(var c=v-s,d=0;d<a;d++){var f=i[d],p=Ju.arrayRows.call(this,t[c]||h,f.property,c,d);n[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=u,{start:s,end:u}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=X(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];u[f]||(u[f]=Yn()),Qv(a,f,h.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,u);else for(var v=[],c=t;c<r;c++){v=i.getItem(c,v);for(var d=0;d<s;d++){var p=a[d],g=this._dimValueGetter(v,l[d],c,d);p[c]=g;var y=u[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=Un(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Un(n._rawCount),o=new a(i),s=[],u=t.length,l=0,f=t[0],h=n._chunks,v=0;v<i;v++){var c=void 0,d=n.getRawIndex(v);if(u===0)c=r(v);else if(u===1){var p=h[f][d];c=r(p,v)}else{for(var g=0;g<u;g++)s[g]=h[t[g]][d];s[g]=v,c=r.apply(null,s)}c&&(o[l++]=d)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=yt(t),a=i.length;if(!a)return this;var o=r.count(),s=Un(r._rawCount),u=new s(o),l=0,f=i[0],h=t[f][0],v=t[f][1],c=r._chunks,d=!1;if(!r._indices){var p=0;if(a===1){for(var g=c[i[0]],y=0;y<n;y++){var m=g[y];(m>=h&&m<=v||isNaN(m))&&(u[l++]=p),p++}d=!0}else if(a===2){for(var g=c[i[0]],_=c[i[1]],S=t[i[1]][0],w=t[i[1]][1],y=0;y<n;y++){var m=g[y],b=_[y];(m>=h&&m<=v||isNaN(m))&&(b>=S&&b<=w||isNaN(b))&&(u[l++]=p),p++}d=!0}}if(!d)if(a===1)for(var y=0;y<o;y++){var x=r.getRawIndex(y),m=c[i[0]][x];(m>=h&&m<=v||isNaN(m))&&(u[l++]=x)}else for(var y=0;y<o;y++){for(var C=!0,x=r.getRawIndex(y),D=0;D<a;D++){var A=i[D],m=c[A][x];(m<t[A][0]||m>t[A][1])&&(C=!1)}C&&(u[l++]=r.getRawIndex(y))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),u=[],l=t._rawExtent,f=0;f<r.length;f++)l[r[f]]=Yn();for(var h=0;h<s;h++){for(var v=t.getRawIndex(h),c=0;c<o;c++)u[c]=i[r[c]][v];u[o]=h;var d=n&&n.apply(null,u);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var p=r[f],g=d[f],y=l[p],m=i[p];m&&(m[v]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),f,h,v,c=new(Un(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));c[s++]=l;for(var d=1;d<o-1;d+=u){for(var p=Math.min(d+u,o-1),g=Math.min(d+u*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),w=a[S];isNaN(w)||(m+=w)}m/=g-p;var b=d,x=Math.min(d+u,o),C=d-1,D=a[l];f=-1,v=b;for(var A=-1,M=0,_=b;_<x;_++){var S=this.getRawIndex(_),w=a[S];if(isNaN(w)){M++,A<0&&(A=S);continue}h=Math.abs((C-y)*(w-D)-(C-_)*(m-D)),h>f&&(f=h,v=S)}M>0&&M<x-b&&(c[s++]=Math.min(A,v),v=Math.max(A,v)),c[s++]=v,l=v}return c[s++]=this.getRawIndex(o-1),n._count=s,n._indices=c,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(t,r){for(var n=this.clone([t],!0),i=n._chunks,a=Math.floor(1/r),o=i[t],s=this.count(),u=new(Un(this._rawCount))(Math.ceil(s/a)*2),l=0,f=0;f<s;f+=a){var h=f,v=o[this.getRawIndex(h)],c=f,d=o[this.getRawIndex(c)],p=a;f+a>s&&(p=s-f);for(var g=0;g<p;g++){var y=this.getRawIndex(f+g),m=o[y];m<v&&(v=m,h=f+g),m>d&&(d=m,c=f+g)}var _=this.getRawIndex(h),S=this.getRawIndex(c);h<c?(u[l++]=_,u[l++]=S):(u[l++]=S,u[l++]=_)}return n._count=l,n._indices=u,n._updateGetRawIdx(),n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],u=Math.floor(1/r),l=o[t],f=this.count(),h=a._rawExtent[t]=Yn(),v=new(Un(this._rawCount))(Math.ceil(f/u)),c=0,d=0;d<f;d+=u){u>f-d&&(u=f-d,s.length=u);for(var p=0;p<u;p++){var g=this.getRawIndex(d+p);s[p]=l[g]}var y=n(s),m=this.getRawIndex(Math.min(d+i(s,y)||0,f-1));l[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),v[c++]=m}return a._count=c,a._indices=v,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var u=0,l=[];u<n;u++)l[u]=i[t[u]][s];l[u]=a,r.apply(null,l)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=Yn();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],u=o[1],l=0;l<i;l++){var f=this.getRawIndex(l),h=r[f];h<s&&(s=h),h>u&&(u=h)}return o=[s,u],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&je(t,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?rT(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=rt(this._extent),t._rawExtent=rt(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(r,n,i,a){return $o(r[a],this._dimensions[a])}Ju={arrayRows:t,objectRows:function(r,n,i,a){return $o(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return $o(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),e})(),nT=mt(),iT={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},km=(function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Fm(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return $(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=Am(this.source),n=!zm(t),i="",a=[],o=0,s=0;o<t;o++){var u=void 0,l=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)u=r?h.name:null,l=h.type,f=h.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(u=r?v.name:null,l=v.type)}a.push({property:u,type:l,ordinalMeta:f}),r&&u!=null&&(!h||!h.isCalculationCoord)&&(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=iT[l]||"f",f&&(i+=f.uid),i+="$"}var c=this.source,d=[c.seriesLayoutBy,c.startIndex,i].join("$$");return{dimensions:a,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})();function Bm(e){return e instanceof km}function Nm(e){for(var t=et(),r=0;r<(e||[]).length;r++){var n=e[r],i=Y(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function Fm(e){var t=nT(e);return t.dimNameMap||(t.dimNameMap=Nm(e.dimensionsDefine))}function zm(e){return e>30}var Di=Y,Sr=X,aT=typeof Int32Array>"u"?Array:Int32Array,oT="e\0\0",Jv=-1,sT=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],uT=["_approximateExtent"],td,po,Ai,Li,tl,Pi,el,qh=(function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;Bm(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<n.length;f++){var h=n[f],v=U(h)?new qo({name:h}):h instanceof qo?h:new qo(h),c=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=c,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(c),a[c]=v,l[c]!=null&&(u=!0),v.createInvertedIndices&&(s[c]=[]);var p=f;ht(v.storeDimIndex)&&(p=v.storeDimIndex),d.itemName===0&&(this._nameDimIdx=p),d.itemId===0&&(this._idDimIdx=p),i&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=et();T(o,function(y){g.set(a[y].storeDimIndex,y)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(ht(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof Cf&&(a=t),!a){var o=this.dimensions,s=Yh(t)||Zt(t)?new Lm(t,o.length):t;a=new Cf;var u=Sr(o,function(l){return{type:i._dimInfos[l].type,property:l}});a.initData(s,u,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=jx(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var u=s-i;this._nameList[s]=r[u],o&&el(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Br&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===le;if(u&&!i.pure)for(var l=[],f=t;f<r;f++){var h=i.getItem(f,l);if(!this.hasItemOption&&lw(h)&&(this.hasItemOption=!0),h){var v=h.name;a[f]==null&&v!=null&&(a[f]=$e(v,null));var c=h.id;o[f]==null&&c!=null&&(o[f]=$e(c,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)el(this,f);td(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Di(t)?E(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Ai(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return po(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return F(t)?i.getValues(Sr(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],i=n&&n[r];return i==null||isNaN(i)?Jv:i},e.prototype.each=function(t,r,n){Q(t)&&(n=r,r=t,t=[]);var i=n||this,a=Sr(Li(t),this._getStoreDimIndex,this);this._store.each(a,i?ut(r,i):r)},e.prototype.filterSelf=function(t,r,n){Q(t)&&(n=r,r=t,t=[]);var i=n||this,a=Sr(Li(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?ut(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=yt(t);return T(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){Q(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=Sr(Li(t),this._getStoreDimIndex,this),s=Pi(this);return s._store=this._store.map(o,a?ut(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=Sr(Li(t),this._getStoreDimIndex,this);this._store.modify(o,a?ut(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=Pi(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.minmaxDownSample=function(t,r){var n=Pi(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),n},e.prototype.lttbDownSample=function(t,r){var n=Pi(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new pt(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new Fx(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return po(t,n)},function(n){return po(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Di(t)?E(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),F(a)?a=a.slice():Di(a)&&(a=E({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Di(r)?E(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Di(t)?E(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?E(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;ww(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){T(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Sr(this.dimensions,this._getDimInfo,this),this.hostModel)),tl(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Q(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Xs(arguments)))})},e.internalField=(function(){td=function(t){var r=t._invertedIndicesMap;T(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new aT(o.categories.length);for(var u=0;u<n.length;u++)n[u]=Jv;for(var u=0;u<s.count();u++)n[s.get(a.storeDimIndex,u)]=u}})},Ai=function(t,r,n){return $e(t._getCategory(r,n),null)},po=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Ai(t,t._idDimIdx,r)),n==null&&(n=oT+r),n},Li=function(t){return F(t)||(t=t!=null?[t]:[]),t},Pi=function(t){var r=new e(t._schema?t._schema:Sr(t.dimensions,t._getDimInfo,t),t.hostModel);return tl(r,t),r},tl=function(t,r){T(sT.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,T(uT,function(n){t[n]=rt(r[n])}),t._calculationInfo=E({},r._calculationInfo)},el=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],u=i[r];if(s==null&&a!=null&&(n[r]=s=Ai(t,a,r)),u==null&&o!=null&&(i[r]=u=Ai(t,o,r)),u==null&&s!=null){var l=t._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),i[r]=u}}})(),e})();function lT(e,t){return $h(e,t).dimensions}function $h(e,t){Yh(e)||(e=Mm(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=et(),a=[],o=hT(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&zm(o),u=n===e.dimensionsDefine,l=u?Fm(e):Nm(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var h=et(f),v=new Em(o),c=0;c<v.length;c++)v[c]=-1;function d(D){var A=v[D];if(A<0){var M=n[D],I=Y(M)?M:{name:M},L=new qo,P=I.name;P!=null&&l.get(P)!=null&&(L.name=L.displayName=P),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var R=a.length;return v[D]=R,L.storeDimIndex=D,a.push(L),L}return a[A]}if(!s)for(var c=0;c<o;c++)d(c);h.each(function(D,A){var M=$t(D).slice();if(M.length===1&&!U(M[0])&&M[0]<0){h.set(A,!1);return}var I=h.set(A,[]);T(M,function(L,P){var R=U(L)?l.get(L):L;R!=null&&R<o&&(I[P]=R,g(d(R),A,P))})});var p=0;T(r,function(D){var A,M,I,L;if(U(D))A=D,L={};else{L=D,A=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=E({},L),L.ordinalMeta=P,M=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var R=h.get(A);if(R!==!1){if(R=$t(R),!R.length)for(var k=0;k<(M&&M.length||1);k++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&R.push(p++)}T(R,function(W,O){var z=d(W);if(u&&L.type!=null&&(z.type=L.type),g(ft(z,L),A,O),z.name==null&&M){var H=M[O];!Y(H)&&(H={name:H}),z.name=z.displayName=H.name,z.defaultTooltip=H.defaultTooltip}I&&ft(z.otherDims,I)})}});function g(D,A,M){bm.get(A)!=null?D.otherDims[A]=M:(D.coordDim=A,D.coordDimIndex=M,i.set(A,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function w(D){D.name==null&&(D.name=D.coordDim)}if(s)T(a,function(D){w(D)}),a.sort(function(D,A){return D.storeDimIndex-A.storeDimIndex});else for(var b=0;b<o;b++){var x=d(b),C=x.coordDim;C==null&&(x.coordDim=cT(S,i,_),x.coordDimIndex=0,(!y||m<=0)&&(x.isExtraCoord=!0),m--),w(x),x.type==null&&(Tm(e,b)===It.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return fT(a),new km({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function fT(e){for(var t=et(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function hT(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return T(t,function(a){var o;Y(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function cT(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var Zo={},rl={},vu=(function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=n(Zo),this._normalMasterList=n(rl);function n(i,a){var o=[];return T(i,function(s,u){var l=s.create(t,r);o=o.concat(l||[])}),o}},e.prototype.update=function(t,r){T(this._normalMasterList,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t==="matrix"||t==="calendar"){Zo[t]=r;return}rl[t]=r},e.get=function(t){return rl[t]||Zo[t]},e})();function vT(e){return!!Zo[e]}var Mf={coord:1,coord2:2};function dT(e){Gm.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var Gm=et();function pT(e){var t=e.getShallow("coord",!0),r=Mf.coord;if(t==null){var n=Gm.get(e.type);n&&n.getCoord2&&(r=Mf.coord2,t=n.getCoord2(e))}return{coord:t,from:r}}var fr={none:0,dataCoordSys:1,boxCoordSys:2};function gT(e,t){var r=e.getShallow("coordinateSystem"),n=e.getShallow("coordinateSystemUsage",!0),i=fr.none;if(r){var a=e.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=fr.dataCoordSys,a||(i=fr.none)):n==="box"&&(i=fr.boxCoordSys,!a&&!vT(r)&&(i=fr.none))}return{coordSysType:r,kind:i}}function yT(e){var t=e.targetModel,r=e.coordSysType,n=e.coordSysProvider,i=e.isDefaultDataCoordSys,a=gT(t),o=a.kind,s=a.coordSysType;if(i&&o!==fr.dataCoordSys&&(o=fr.dataCoordSys,s=r),o===fr.none||s!==r)return!1;var u=n(r,t);return u?(o===fr.dataCoordSys?t.coordinateSystem=u:t.boxCoordinateSystem=u,!0):!1}var mT=(function(){function e(t){this.coordSysDims=[],this.axisMap=et(),this.categoryAxisMap=et(),this.coordSysName=t}return e})();function _T(e){var t=e.get("coordinateSystem"),r=new mT(t),n=ST[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var ST={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",me).models[0],a=e.getReferringComponents("yAxis",me).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Xn(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Xn(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",me).models[0];t.coordSysDims=["single"],r.set("single",i),Xn(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",me).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Xn(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Xn(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();T(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];r.set(f,l),Xn(l)&&(n.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})},matrix:function(e,t,r,n){var i=e.getReferringComponents("matrix",me).models[0];t.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function Xn(e){return e.get("type")==="category"}function Hm(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;bT(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(e&&e.get("stack")),l,f,h,v;if(T(a,function(m,_){U(m)&&(a[_]=m={name:m}),u&&!m.isExtraCoord&&(!n&&!l&&m.ordinalMeta&&(l=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!l&&(n=!0),f){h="__\0ecstackresult_"+e.id,v="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var c=f.coordDim,d=f.type,p=0;T(a,function(m){m.coordDim===c&&p++});var g={name:h,coordDim:c,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:h}}function bT(e){return!Bm(e.schema)}function Zh(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Vm(e,t){return Zh(e,t)?e.getCalculationInfo("stackResultDimension"):t}function wT(e,t){var r=e.get("coordinateSystem"),n=vu.get(r),i;return t&&t.coordSysDims&&(i=X(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=Kx(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function xT(e,t,r){var n,i;return r&&T(e,function(a,o){var s=a.coordDim,u=r.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function jh(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===le;var o=_T(t),s=wT(t,o),u=r.useEncodeDefaulter,l=Q(u)?u:u?_t(Gx,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=$h(i,f),v=xT(h.dimensions,r.createInvertedIndices,o),c=a?null:n.getSharedDataStore(h),d=Hm(t,{schema:h,store:c}),p=new qh(h,t);p.setCalculationInfo(d);var g=v!=null&&TT(i)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:c,null,g),p}function TT(e){if(e.sourceFormat===le){var t=CT(e.data||[]);return!F(Fa(t))}}function CT(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var MT=Math.round(Math.random()*10);function du(e){return[e||"",MT++].join("_")}function DT(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=Ue(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=Ue(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function AT(e,t){e.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=r(o),f=l.graph,h=l.noEntryList,v={};for(T(a,function(m){v[m]=!0});h.length;){var c=h.pop(),d=f[c],p=!!v[c];p&&(s.call(u,c,d.originalDeps.slice()),delete v[c]),T(d.successor,p?y:g)}T(v,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function y(m){v[m]=!0,g(m)}};function r(a){var o={},s=[];return T(a,function(u){var l=n(o,u),f=l.originalDeps=t(u),h=i(f,a);l.entryCount=h.length,l.entryCount===0&&s.push(u),T(h,function(v){it(l.predecessor,v)<0&&l.predecessor.push(v);var c=n(o,v);it(c.successor,v)<0&&c.successor.push(u)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return T(a,function(u){it(o,u)>=0&&s.push(u)}),s}}function Wm(e,t){return at(at({},e,!0),t,!0)}var LT=Math.log(2);function Df(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~i)/LT);return e[r][u]}for(var l=n|1<<r,f=r+1;n&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&i||(h+=(c%2?-1:1)*e[r][v]*Df(e,t-1,f,l,i|d,a),c++)}return a[o]=h,h}function ed(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=Df(r,8,0,0,0,n);if(i!==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)*Df(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(u,l,f){var h=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/h,u[1]=(l*a[3]+f*a[4]+a[5])/h}}}var bs="___zrEVENTSAVED",nl=[];function PT(e,t,r,n,i){return Af(nl,t,n,i,!0)&&Af(e,r,nl[0],nl[1])}function IT(e,t){e&&r(e),t&&r(t);function r(n){var i=n[bs];i&&(i.clearMarkers&&i.clearMarkers(),delete n[bs])}}function Af(e,t,r,n,i){if(t.getBoundingClientRect&&j.domSupported&&!Um(t)){var a=t[bs]||(t[bs]={}),o=RT(t,a),s=ET(o,a,i);if(s)return s(e,r,n),!0}return!1}function RT(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["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",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){T(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function ET(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=e[l].getBoundingClientRect(),h=2*l,v=f.left,c=f.top;o.push(v,c),u=u&&a&&v===a[h]&&c===a[h+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return u&&i?i:(t.srcCoords=o,t[n]=r?ed(s,o):ed(o,s))}function Um(e){return e.nodeName.toUpperCase()==="CANVAS"}var OT=/([&<>"'])/g,kT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Yt(e){return e==null?"":(e+"").replace(OT,function(t,r){return kT[r]})}const BT={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:". "}}}},NT={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var ws="ZH",Kh="EN",si=Kh,jo={},Qh={},Ym=j.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||si).toUpperCase();return e.indexOf(ws)>-1?ws:si})():si;function Jh(e,t){e=e.toUpperCase(),Qh[e]=new pt(t),jo[e]=t}function FT(e){if(U(e)){var t=jo[e.toUpperCase()]||{};return e===ws||e===Kh?rt(t):at(rt(t),rt(jo[si]),!1)}else return at(rt(e),rt(jo[si]),!1)}function zT(e){return Qh[e]}function GT(){return Qh[si]}Jh(Kh,BT);Jh(ws,NT);var HT=null;function xs(){return HT}var tc=1e3,ec=tc*60,ua=ec*60,_e=ua*24,rd=_e*365,VT={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})/},Ko={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},WT="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",go="{yyyy}-{MM}-{dd}",nd={year:"{yyyy}",month:"{yyyy}-{MM}",day:go,hour:go+" "+Ko.hour,minute:go+" "+Ko.minute,second:go+" "+Ko.second,millisecond:WT},Ln=["year","month","day","hour","minute","second","millisecond"],UT=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function YT(e){return!U(e)&&!Q(e)?XT(e):e}function XT(e){e=e||{};var t={},r=!0;return T(Ln,function(n){r&&(r=e[n]==null)}),T(Ln,function(n,i){var a=e[n];t[n]={};for(var o=null,s=i;s>=0;s--){var u=Ln[s],l=Y(a)&&!F(a)?a[u]:a,f=void 0;F(l)?(f=l.slice(),o=f[0]||""):U(l)?(o=l,f=[o]):(o==null?o=Ko[n]:VT[u].test(o)||(o=t[u][u][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),t[n][u]=f}}),t}function Vt(e,t){return e+="","0000".substr(0,t-e.length)+e}function la(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function qT(e){return e===la(e)}function $T(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Wa(e,t,r,n){var i=dr(e),a=i[Xm(r)](),o=i[rc(r)]()+1,s=Math.floor((o-1)/3)+1,u=i[nc(r)](),l=i["get"+(r?"UTC":"")+"Day"](),f=i[ic(r)](),h=(f-1)%12+1,v=i[ac(r)](),c=i[oc(r)](),d=i[sc(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof pt?n:zT(n||Ym)||GT(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),w=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Vt(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Vt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Vt(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,w[l]).replace(/{ee}/g,b[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Vt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Vt(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Vt(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Vt(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,Vt(d,3)).replace(/{S}/g,d+"")}function ZT(e,t,r,n,i){var a=null;if(U(r))a=r;else if(Q(r)){var o={time:e.time,level:e.time.level},s=xs();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=r(e.value,t,o)}else{var u=e.time;if(u){var l=r[u.lowerTimeUnit][u.upperTimeUnit];a=l[Math.min(u.level,l.length-1)]||""}else{var f=Ts(e.value,i);a=r[f][f][0]}}return Wa(new Date(e.value),a,i,n)}function Ts(e,t){var r=dr(e),n=r[rc(t)]()+1,i=r[nc(t)](),a=r[ic(t)](),o=r[ac(t)](),s=r[oc(t)](),u=r[sc(t)](),l=u===0,f=l&&s===0,h=f&&o===0,v=h&&a===0,c=v&&i===1,d=c&&n===1;return d?"year":c?"month":v?"day":h?"hour":f?"minute":l?"second":"millisecond"}function Cs(e,t,r){switch(t){case"year":e[qm(r)](0);case"month":e[$m(r)](1);case"day":e[Zm(r)](0);case"hour":e[jm(r)](0);case"minute":e[Km(r)](0);case"second":e[Qm(r)](0)}return e}function Xm(e){return e?"getUTCFullYear":"getFullYear"}function rc(e){return e?"getUTCMonth":"getMonth"}function nc(e){return e?"getUTCDate":"getDate"}function ic(e){return e?"getUTCHours":"getHours"}function ac(e){return e?"getUTCMinutes":"getMinutes"}function oc(e){return e?"getUTCSeconds":"getSeconds"}function sc(e){return e?"getUTCMilliseconds":"getMilliseconds"}function jT(e){return e?"setUTCFullYear":"setFullYear"}function qm(e){return e?"setUTCMonth":"setMonth"}function $m(e){return e?"setUTCDate":"setDate"}function Zm(e){return e?"setUTCHours":"setHours"}function jm(e){return e?"setUTCMinutes":"setMinutes"}function Km(e){return e?"setUTCSeconds":"setSeconds"}function Qm(e){return e?"setUTCMilliseconds":"setMilliseconds"}function KT(e,t,r,n,i,a,o,s){var u=new Nt({style:{text:e,font:t,align:r,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return u.getBoundingRect()}function uc(e){if(!My(e))return U(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function lc(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Ua=qs;function Lf(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Ie(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var u=o?dr(e):e;if(isNaN(+u)){if(s)return"-"}else return Wa(u,n,r)}if(t==="ordinal")return ns(e)?i(e):ht(e)&&a(e)?e+"":"-";var l=Sa(e);return a(l)?uc(l):ns(e)?i(e):typeof e=="boolean"?e+"":"-"}var id=["a","b","c","d","e","f","g"],il=function(e,t){return"{"+e+(t??"")+"}"};function fc(e,t,r){F(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=id[a];e=e.replace(il(o),il(o,0))}for(var s=0;s<n;s++)for(var u=0;u<i.length;u++){var l=t[s][i[u]];e=e.replace(il(id[u],s),r?Yt(l):l)}return e}function Jm(e,t){var r=U(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Yt(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Yt(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function QT(e,t,r){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
9
+ yyyy`);var n=dr(t),i=r?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),u=n[i+"Hours"](),l=n[i+"Minutes"](),f=n[i+"Seconds"](),h=n[i+"Milliseconds"]();return e=e.replace("MM",Vt(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Vt(a%100+"",2)).replace("dd",Vt(s,2)).replace("d",s).replace("hh",Vt(u,2)).replace("h",u).replace("mm",Vt(l,2)).replace("m",l).replace("ss",Vt(f,2)).replace("s",f).replace("SSS",Vt(h,3)),e}function JT(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function Ta(e,t){return t=t||"transparent",U(e)?e:Y(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var Qo=T,tC=["left","right","top","bottom","width","height"],yo=[["width","left","right"],["height","top","bottom"]];function hc(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),v=h&&h.getBoundingRect(),c,d;if(e==="horizontal"){var p=f.width+(v?-v.x+f.x:0);c=a+p,c>n||u.newline?(a=0,c=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>i||u.newline?(a+=s+r,o=0,d=g,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),e==="horizontal"?a=c+r:o=d+r)})}var fa=hc;_t(hc,"vertical");_t(hc,"horizontal");function eC(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function rC(e,t){var r=cc(e,t,{enableLayoutOnlyByCenter:!0}),n=e.getBoxLayoutParams(),i,a;if(r.type===Ki.point)a=r.refPoint,i=Gr(n,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=F(o)?o:[o,o];i=Gr(n,r.refContainer),a=r.boxCoordFrom===Mf.coord2?r.refPoint:[gt(s[0],i.width)+i.x,gt(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function nC(e,t){var r=rC(e,t),n=r.viewRect,i=r.center,a=e.get("radius");F(a)||(a=[0,a]);var o=gt(n.width,t.getWidth()),s=gt(n.height,t.getHeight()),u=Math.min(o,s),l=gt(a[0],u/2),f=gt(a[1],u/2);return{cx:i[0],cy:i[1],r0:l,r:f,viewRect:n}}function Gr(e,t,r){r=Ua(r||0);var n=t.width,i=t.height,a=gt(e.left,n),o=gt(e.top,i),s=gt(e.right,n),u=gt(e.bottom,i),l=gt(e.width,n),f=gt(e.height,i),h=r[2]+r[0],v=r[1]+r[3],c=e.aspect;switch(isNaN(l)&&(l=n-s-v-a),isNaN(f)&&(f=i-u-h-o),c!=null&&(isNaN(l)&&isNaN(f)&&(c>n/i?l=n*.8:f=i*.8),isNaN(l)&&(l=c*f),isNaN(f)&&(f=l/c)),isNaN(a)&&(a=n-s-l-v),isNaN(o)&&(o=i-u-f-h),e.left||e.right){case"center":a=n/2-l/2-r[3];break;case"right":a=n-l-v;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=n-v-a-(s||0)),isNaN(f)&&(f=i-h-o-(u||0));var d=new J((t.x||0)+a+r[3],(t.y||0)+o+r[0],l,f);return d.margin=r,d}var Ki={rect:1,point:2};function cc(e,t,r){var n,i,a,o=e.boxCoordinateSystem,s;if(o){var u=pT(e),l=u.coord,f=u.from;if(o.dataToLayout){a=Ki.rect,s=f;var h=o.dataToLayout(l);n=h.contentRect||h.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Ki.point,s=f,i=o.dataToPoint(l))}return a==null&&(a=Ki.rect),a===Ki.rect&&(n||(n={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function Ca(e){var t=e.layoutMode||e.constructor.layoutMode;return Y(t)?t:t?{type:t}:null}function Hr(e,t,r){var n=r&&r.ignoreSize;!F(n)&&(n=[n,n]);var i=o(yo[0],0),a=o(yo[1],1);u(yo[0],e,i),u(yo[1],e,a);function o(l,f){var h={},v=0,c={},d=0,p=2;if(Qo(l,function(m){c[m]=e[m]}),Qo(l,function(m){Se(t,m)&&(h[m]=c[m]=t[m]),s(h,m)&&v++,s(c,m)&&d++}),n[f])return s(t,l[1])?c[l[2]]=null:s(t,l[2])&&(c[l[1]]=null),c;if(d===p||!v)return c;if(v>=p)return h;for(var g=0;g<l.length;g++){var y=l[g];if(!Se(h,y)&&Se(e,y)){h[y]=e[y];break}}return h}function s(l,f){return l[f]!=null&&l[f]!=="auto"}function u(l,f,h){Qo(l,function(v){f[v]=h[v]})}}function Ya(e){return iC({},e)}function iC(e,t){return t&&e&&Qo(tC,function(r){Se(t,r)&&(e[r]=t[r])}),e}var aC=mt(),ot=(function(e){V(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=du("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Ca(this),a=i?Ya(r):{},o=n.getTheme();at(r,o.get(this.mainType)),at(r,this.getDefaultOption()),i&&Hr(r,a,i)},t.prototype.mergeOption=function(r,n){at(this.option,r,!0);var i=Ca(this);i&&Hr(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!uS(r))return r.defaultOption;var n=aC(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},u=i.length-1;u>=0;u--)s=at(s,i[u],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Ga(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){return eC(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=(function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),t})(pt);Vg(ot,pt);$s(ot);DT(ot);AT(ot,oC);function oC(e){var t=[];return T(ot.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=X(t,function(r){return Ue(r).main}),e!=="dataset"&&it(t,"dataset")<=0&&t.unshift("dataset"),t}var ad=mt();mt();var vc=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=$t(this.get("color",!0)),a=this.get("colorLayer",!0);return uC(this,ad,i,a,t,r,n)},e.prototype.clearColorPalette=function(){lC(this,ad)},e})();function sC(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function uC(e,t,r,n,i,a,o){a=a||e;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=o==null||!n?r:sC(n,o);if(f=f||r,!(!f||!f.length)){var h=f[u];return i&&(l[i]=h),s.paletteIdx=(u+1)%f.length,h}}function lC(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var fC=/\{@(.+?)\}/g,hC=(function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),u=n.getItemVisual(t,"style"),l=u&&u[n.getItemVisual(t,"drawType")||"fill"],f=u&&u.stroke,h=this.mainType,v=h==="series",c=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:l,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),u=this.getDataParams(t,n);if(o&&(u.value=o.interpolatedValue),i!=null&&F(u.value)&&(u.value=u.value[i]),!a){var l=s.getItemModel(t);a=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Q(a))return u.status=r,u.dimensionIndex=i,a(u);if(U(a)){var f=fc(a,u);return f.replace(fC,function(h,v){var c=v.length,d=v;d.charAt(0)==="["&&d.charAt(c-1)==="]"&&(d=+d.slice(1,c-1));var p=pi(s,t,d);if(o&&F(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return pi(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e})();function od(e){var t,r;return Y(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function ha(e){return new cC(e)}var cC=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=u,this._modDataCount=l;var v=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(h||c<d)){var p=this._progress;if(F(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],c,d,u,l);else this._doProgress(p,c,d,u,l)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){sd.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:sd.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),F(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e})(),sd=(function(){var e,t,r,n,i,a={reset:function(u,l,f,h){t=u,e=l,r=f,n=h,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var u=t%i*r+Math.ceil(t/i),l=t>=e?null:u<n?u:t;return t++,l}})(),vC=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return $o(t,r)},e})();function dC(e,t){var r=new vC,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Ze&&te(o);var s=[],u={},l=e.dimensionsDefine;if(l)T(l,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";Se(u,y)&&te(_),u[y]=m}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var h=Pm(i,Ze);t.__isBuiltIn&&(r.getRawDataItem=function(p){return h(n,a,s,p)},r.getRawData=ut(pC,null,e)),r.cloneRawData=ut(gC,null,e);var v=Im(i,Ze);r.count=ut(v,null,n,a,s);var c=Rm(i);r.retrieveValue=function(p,g){var y=h(n,a,s,p);return d(y,g)};var d=r.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return c(p,g,y.name)}};return r.getDimensionInfo=ut(yC,null,s,u),r.cloneAllDimensionInfo=ut(mC,null,s),r}function pC(e){var t=e.sourceFormat;if(!dc(t)){var r="";te(r)}return e.data}function gC(e){var t=e.sourceFormat,r=e.data;if(!dc(t)){var n="";te(n)}if(t===Ft){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===Me){for(var i=[],a=0,o=r.length;a<o;a++)i.push(E({},r[a]));return i}}function yC(e,t,r){if(r!=null){if(ht(r)||!isNaN(r)&&!Se(t,r))return e[r];if(Se(t,r))return t[r]}}function mC(e){return rt(e)}var t0=et();function _C(e){e=rt(e);var t=e.type,r="";t||te(r);var n=t.split(":");n.length!==2&&te(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,t0.set(t,e)}function SC(e,t,r){var n=$t(e),i=n.length,a="";i||te(a);for(var o=0,s=i;o<s;o++){var u=n[o];t=bC(u,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function bC(e,t,r,n){var i="";t.length||te(i),Y(e)||te(i);var a=e.type,o=t0.get(a);o||te(i);var s=X(t,function(l){return dC(l,o)}),u=$t(o.transform({upstream:s[0],upstreamList:s,config:rt(e.config)}));return X(u,function(l,f){var h="";Y(l)||te(h),l.data||te(h);var v=Dm(l.data);dc(v)||te(h);var c,d=t[0];if(d&&f===0&&!l.dimensions){var p=d.startIndex;p&&(l.data=d.data.slice(0,p).concat(l.data)),c={seriesLayoutBy:Ze,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else c={seriesLayoutBy:Ze,sourceHeader:0,dimensions:l.dimensions};return Tf(l.data,c,null)})}function dc(e){return e===Ft||e===Me}var wC=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(mo(t)){var o=t,s=void 0,u=void 0,l=void 0;if(n){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=jt(s)?Br:le,a=[];var h=this._getSourceMetaRawOption()||{},v=l&&l.metaRawOption||{},c=$(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=$(h.sourceHeader,v.sourceHeader),p=$(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;i=g?[Tf(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},u)]:[]}else{var y=t;if(n){var m=this._applyTransform(r);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[Tf(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&ud(a)}var o,s=[],u=[];return T(t,function(l){l.prepareSource();var f=l.getSource(i||0),h="";i!=null&&!f&&ud(h),s.push(f),u.push(l._getVersionSign())}),n?o=SC(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Wx(s[0])]),{sourceList:o,upstreamSignList:u}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var u=this._getUpstreamSourceManagers()[0];mo(this._sourceHost)&&u?s=u._innerGetDataStore(t,r,n):(s=new Cf,s.initData(new Lm(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(mo(t)){var r=Uh(t);return r?[r.getSourceManager()]:[]}else return X(Vx(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(mo(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e})();function mo(e){return e.mainType==="series"}function ud(e){throw new Error(e)}var q={color:{},darkColor:{},size:{}},St=q.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};E(St,{primary:St.neutral80,secondary:St.neutral70,tertiary:St.neutral60,quaternary:St.neutral50,disabled:St.neutral20,border:St.neutral30,borderTint:St.neutral20,borderShade:St.neutral40,background:St.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:St.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:St.neutral70,axisLineTint:St.neutral40,axisTick:St.neutral70,axisTickMinor:St.neutral60,axisLabel:St.neutral70,axisSplitLine:St.neutral15,axisMinorSplitLine:St.neutral05});for(var pn in St)if(St.hasOwnProperty(pn)){var ld=St[pn];pn==="theme"?q.darkColor.theme=St.theme.slice():pn==="highlight"?q.darkColor.highlight="rgba(255,231,130,0.4)":pn.indexOf("accent")===0?q.darkColor[pn]=cs(ld,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):q.darkColor[pn]=cs(ld,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}q.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var xC="line-height:1";function e0(e){var t=e.lineHeight;return t==null?xC:"line-height:"+Yt(t+"")+"px"}function r0(e,t){var r=e.color||q.color.tertiary,n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||q.color.secondary,o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Yt(n+"")+"px;color:"+Yt(r)+";font-weight:"+Yt(i+""),valueStyle:"font-size:"+Yt(o+"")+"px;color:"+Yt(a)+";font-weight:"+Yt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var TC=[0,10,20,30],CC=["",`
10
+ `,`
11
+
12
+ `,`
13
+
14
+
15
+ `];function Ma(e,t){return t.type=e,t}function Pf(e){return e.type==="section"}function n0(e){return Pf(e)?MC:DC}function i0(e){if(Pf(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return T(e.blocks,function(i){var a=i0(i);a>=t&&(t=a+ +(n&&(!a||Pf(i)&&!i.noHeader)))}),t}return 0}function MC(e,t,r,n){var i=t.noHeader,a=AC(i0(t)),o=[],s=t.blocks||[];Ke(!s||F(s)),s=s||[];var u=e.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(Se(l,u)){var f=new Jx(l[u],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else u==="seriesDesc"&&s.reverse()}T(s,function(p,g){var y=t.valueFormatter,m=n0(p)(y?E(E({},e),{valueFormatter:y}):e,p,g>0?a.html:0,n);m!=null&&o.push(m)});var h=e.renderMode==="richText"?o.join(a.richText):If(n,o.join(""),i?r:a.html);if(i)return h;var v=Lf(t.header,"ordinal",e.useUTC),c=r0(n,e.renderMode).nameStyle,d=e0(n);return e.renderMode==="richText"?a0(e,v,c)+a.richText+h:If(n,'<div style="'+c+";"+d+';">'+Yt(v)+"</div>"+h,r)}function DC(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(S){return S=F(S)?S:[S],X(S,function(w,b){return Lf(w,F(c)?c[b]:c,l)})};if(!(a&&o)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||q.color.secondary,i),v=a?"":Lf(u,"ordinal",l),c=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!a,g=!s&&a,y=r0(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(a?"":a0(e,v,m))+(o?"":IC(e,d,p,g,_)):If(n,(s?"":h)+(a?"":LC(v,!s,m))+(o?"":PC(d,p,g,_)),r)}}function fd(e,t,r,n,i,a){if(e){var o=n0(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function AC(e){return{html:TC[e],richText:CC[e]}}function If(e,t,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=e0(e);return'<div style="'+i+";"+a+';">'+t+n+"</div>"}function LC(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Yt(e)+"</span>"}function PC(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=F(e)?e:[e],'<span style="'+a+";"+n+'">'+X(e,function(o){return Yt(o)}).join("&nbsp;&nbsp;")+"</span>"}function a0(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function IC(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(F(t)?t.join(" "):t,a)}function RC(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Ta(n)}function o0(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var al=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=Dy()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=Jm({color:r,type:t,renderMode:n,markerId:i});return U(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};F(r)?T(r,function(a){return E(n,a)}):E(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e})();function EC(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),u=F(s),l=RC(t,r),f,h,v,c;if(o>1||u&&!o){var d=OC(s,t,r,a,l);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);c=f=pi(i,r,a[0]),h=p.type}else c=f=u?s[0]:s;var g=Dh(t),y=g&&t.name||"",m=i.getName(r),_=n?y:m;return Ma("section",{header:y,noHeader:n||!g,sortParam:c,blocks:[Ma("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Ie(_),value:f,valueType:h,dataIndex:r})].concat(v||[])})}function OC(e,t,r,n,i){var a=t.getData(),o=je(e,function(h,v,c){var d=a.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?T(n,function(h){f(pi(a,r,h),h)}):T(e,f);function f(h,v){var c=a.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?l.push(Ma("nameValue",{markerType:"subItem",markerColor:i,name:c.displayName,value:h,valueType:c.type})):(s.push(h),u.push(c.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var br=mt();function _o(e,t){return e.getName(t)||e.getId(t)}var kC="__universalTransitionEnabled",se=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=ha({count:NC,reset:FC}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=br(this).sourceManager=new wC(this);a.prepareSource();var o=this.getInitialData(r,i);cd(o,this),this.dataTask.context.data=o,br(this).dataBeforeProcessed=o,hd(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Ca(this),a=i?Ya(r):{},o=this.subType;ot.hasClass(o)&&(o+="Series"),at(r,n.getTheme().get(this.subType)),at(r,this.getDefaultOption()),vf(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Hr(r,a,i)},t.prototype.mergeOption=function(r,n){r=at(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Ca(this);i&&Hr(this.option,r,i);var a=br(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);cd(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,br(this).dataBeforeProcessed=o,hd(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!jt(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&vf(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=Rf(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return br(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=Rf(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}br(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return et(r)},t.prototype.getSourceManager=function(){return br(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return br(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(r);if(!s||!u)return[];var l=u.dataToCoord(i);a==null&&(a=1/0);var f=[],h=1/0,v=-1,c=0;return o.each(n,function(d,p){var g=u.dataToCoord(d),y=l-g,m=Math.abs(y);m<=a&&((m<h||m===h&&y>=0&&v<0)&&(h=m,v=y,c=0),y===v&&(f[c++]=p))}),f.length=c,f},t.prototype.formatTooltip=function(r,n,i){return EC({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(j.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=vc.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var u=r[s],l=_o(o,u);i[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=yt(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[_o(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[kC])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Y(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var h=n[f],v=_o(r,h);l[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var c=n[u-1],v=_o(r,c);o.selectedMap=(i={},i[v]=!0,i),this._selectedDataIndicesMap=(a={},a[v]=r.getRawIndex(c),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return ot.registerClass(r)},t.protoInitialize=(function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),t})(ot);Te(se,hC);Te(se,vc);Vg(se,ot);function hd(e){var t=e.name;Dh(e)||(e.name=BC(e)||t)}function BC(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return T(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function NC(e){return e.model.getRawData().count()}function FC(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),zC}function zC(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function cd(e,t){T(zg(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,_t(GC,t))})}function GC(e,t){var r=Rf(e);return r&&r.setOutputEnd((t||this).count()),t}function Rf(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var HC=ct.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),VC=ct.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),WC=ct.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),u=n-a+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,h=Math.sin(l),v=Math.cos(l),c=o*.6,d=o*.7;e.moveTo(r-f,u+s),e.arc(r,u,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(r+f-h*c,u+s+v*c,r,n-d,r,n),e.bezierCurveTo(r,n-d,r-f+h*c,u+s+v*c,r-f,u+s),e.closePath()}}),UC=ct.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),YC={line:vr,rect:wt,roundRect:wt,square:wt,circle:Ha,diamond:VC,pin:WC,arrow:UC,triangle:HC},XC={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},Ef={};T(YC,function(e,t){Ef[t]=new e});var qC=ct.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=os(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=Ef[n];i||(n="rect",i=Ef[n]),XC[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function $C(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||q.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function pu(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var u;return e.indexOf("image://")===0?u=Bh(e.slice(8),new J(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?u=su(e.slice(7),{},new J(t,r,n,i),o?"center":"cover"):u=new qC({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),u.__isEmptyBrush=s,u.setColor=$C,a&&u.setColor(a),u}function zI(e){return F(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function ZC(e,t){if(e!=null)return F(e)||(e=[e,e]),[gt(e[0],t[0])||0,gt($(e[1],e[0]),t[1])||0]}function jC(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=pi(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(pi(e,t,r[o]));return a.join(" ")}}function KC(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!F(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}var s0=typeof Float32Array<"u",QC=s0?Float32Array:Array;function ol(e){return F(e)?s0?new Float32Array(e):e:new QC(e)}function u0(){var e=mt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var l0=mt(),JC=u0(),be=(function(){function e(){this.group=new Kt,this.uid=du("viewChart"),this.renderTask=ha({plan:tM,reset:eM}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&dd(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&dd(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){zh(this.group,t)},e.markUpdateMethod=function(t,r){l0(t).updateMethod=r},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function vd(e,t,r){e&&_f(e)&&(t==="emphasis"?pf:gf)(e,r)}function dd(e,t,r){var n=za(e,t),i=t&&t.highlightKey!=null?Hw(t.highlightKey):null;n!=null?T($t(n),function(a){vd(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){vd(a,r,i)})}_h(be);$s(be);function tM(e){return JC(e.model)}function eM(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&l0(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,r,n,i),rM[u]}var rM={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};function nM(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,u=a.width,l=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,u+=f,l+=f,u=Math.ceil(u),o!==Math.floor(o)&&(o=Math.floor(o),u++);var h=new wt({shape:{x:o,y:s,width:u,height:l}});return h}function iM(e,t,r){var n=e.getArea(),i=Bt(n.r0,1),a=Bt(n.r,1),o=new gr({shape:{cx:Bt(e.cx,1),cy:Bt(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});return o}function aM(e,t,r,n,i){if(e){if(e.type==="polar")return iM(e);if(e.type==="cartesian2d")return nM(e,t,r)}else return null;return null}function f0(e,t){return e.type===t}var oM={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},sM=function(e){return Math.round(e.length/2)};function uM(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),h=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){a==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/c)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/c));var d=void 0;U(a)?d=oM[a]:Q(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/c,d,sM))}}}}}var lM="__ec_stack_";function h0(e){return e.get("stack")||lM+e.seriesIndex}function pc(e){return e.dim+e.index}function c0(e,t){var r=[];return t.eachSeriesByType(e,function(n){d0(n)&&r.push(n)}),r}function fM(e){var t={};T(e,function(u){var l=u.coordinateSystem,f=l.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=u.getData(),v=f.dim+"_"+f.index,c=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(c,p);t[v]?t[v].push(y):t[v]=[y]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(u,l){return u-l});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function v0(e){var t=fM(e),r=[];return T(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var u=a.dim+"_"+a.index,l=t[u],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=l?f/v*l:f}else{var c=n.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=gt(n.get("barWidth"),s),p=gt(n.get("barMaxWidth"),s),g=gt(n.get("barMinWidth")||(p0(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap"),_=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,defaultBarGap:_,axisKey:pc(a),stackId:h0(n)})}),hM(r)}function hM(e){var t={};T(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},u=s.stacks;t[a]=s;var l=n.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=n.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(u[l].maxWidth=h);var v=n.barMinWidth;v&&(u[l].minWidth=v);var c=n.barGap;c!=null&&(s.gap=c);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return T(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var u=yt(a).length;s=Math.max(35-u*4,15)+"%"}var l=gt(s,o),f=gt(n.gap,1),h=n.remainedWidth,v=n.autoWidthCount,c=(h-l)/(v+(v-1)*f);c=Math.max(c,0),T(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,v--}else{var S=c;m&&m<S&&(S=Math.min(m,h)),_&&_>S&&(S=_),S!==c&&(y.width=S,h-=S+f*S,v--)}}),c=(h-l)/(v+(v-1)*f),c=Math.max(c,0);var d=0,p;T(a,function(y,m){y.width||(y.width=c),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;T(a,function(y,m){r[i][m]=r[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),r}function cM(e,t,r){if(e&&t){var n=e[pc(t)];return n}}function vM(e,t){var r=c0(e,t),n=v0(r);T(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),u=h0(i),l=n[pc(s)][u],f=l.offset,h=l.width;a.setLayout({bandWidth:l.bandWidth,offset:f,size:h})})}function dM(e){return{seriesType:e,plan:u0(),reset:function(t){if(d0(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),u=t.get("showBackground",!0),l=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),h=Zh(r,l)&&!!r.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),c=pM(i,a),d=p0(t),p=t.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),y=r.getLayout("size"),m=r.getLayout("offset");return{progress:function(_,S){for(var w=_.count,b=d&&ol(w*3),x=d&&u&&ol(w*3),C=d&&ol(w),D=n.master.getRect(),A=v?D.width:D.height,M,I=S.getStore(),L=0;(M=_.next())!=null;){var P=I.get(h?g:o,M),R=I.get(s,M),k=c,W=void 0;h&&(W=+P-I.get(o,M));var O=void 0,z=void 0,H=void 0,G=void 0;if(v){var B=n.dataToPoint([P,R]);if(h){var tt=n.dataToPoint([W,R]);k=tt[0]}O=k,z=B[1]+m,H=B[0]-k,G=y,Math.abs(H)<p&&(H=(H<0?-1:1)*p)}else{var B=n.dataToPoint([R,P]);if(h){var tt=n.dataToPoint([R,W]);k=tt[1]}O=B[0]+m,z=k,H=y,G=B[1]-k,Math.abs(G)<p&&(G=(G<=0?-1:1)*p)}d?(b[L]=O,b[L+1]=z,b[L+2]=v?H:G,x&&(x[L]=v?D.x:O,x[L+1]=v?z:D.y,x[L+2]=A),C[M]=M):S.setItemLayout(M,{x:O,y:z,width:H,height:G}),L+=3}d&&S.setLayout({largePoints:b,largeDataIndices:C,largeBackgroundPoints:x,valueAxisHorizontal:v})}}}}}}function d0(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function p0(e){return e.pipelineContext&&e.pipelineContext.large}function pM(e,t){var r=t.model.get("startValue");return r||(r=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?r>0?r:1:r))}var Of=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return jh(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)T(a.getAxes(),function(v,c){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),p=v.getTickModel().get("alignWithLabel"),g=o[c],y=n[c]==="x1"||n[c]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[c]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,w=0;w<d.length;w++){var b=d[w].coord,x=w===d.length-1?d[w-1].tickValue+S:d[w].tickValue;if(x===g){_=b;break}else if(x<g)m=b;else if(m!=null&&x>g){_=(b+m)/2;break}w===1&&(S=x-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[c]=v.toGlobalCoord(_)}});else{var u=this.getData(),l=u.getLayout("offset"),f=u.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=l+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t})(se);se.registerClass(Of);var gM=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return jh(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Wm(Of.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:q.color.primary,borderWidth:2}},realtimeSort:!1}),t})(Of),Ms="\0__throttleOriginMethod",pd="\0__throttleRate",gd="\0__throttleType";function gu(e,t,r){var n,i=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,e.apply(u,l||[])}var v=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];n=new Date().getTime(),u=this,l=c;var p=f||t,g=f||r;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(h,p):s>=0?h():o=setTimeout(h,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function g0(e,t,r,n){var i=e[t];if(i){var a=i[Ms]||i,o=i[gd],s=i[pd];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=gu(a,r,n==="debounce"),i[Ms]=a,i[gd]=n,i[pd]=r}return i}}function kf(e,t){var r=e[t];r&&r[Ms]&&(r.clear&&r.clear(),e[t]=r[Ms])}var yM=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),yd=(function(e){V(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new yM},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),u=(s-o)*.5,l=o+u,f=n.startAngle,h=n.endAngle,v=n.clockwise,c=Math.PI*2,d=v?h-f<c:f-h<c;d||(f=h-(v?c:-c));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(h),m=Math.sin(h);d?(r.moveTo(p*o+i,g*o+a),r.arc(p*l+i,g*l+a,u,-Math.PI+f,f,!v)):r.moveTo(p*s+i,g*s+a),r.arc(i,a,s,f,h,!v),r.arc(y*l+i,m*l+a,u,h-Math.PI*2,h-Math.PI,!v),o!==0&&r.arc(i,a,o,h,f,v)},t})(ct);function mM(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return os(n,i,a);var s=e(o),u=i.distance!=null?i.distance:5,l=this.shape,f=l.cx,h=l.cy,v=l.r,c=l.r0,d=(v+c)/2,p=l.startAngle,g=l.endAngle,y=(p+g)/2,m=r?Math.abs(v-c)/2:0,_=Math.cos,S=Math.sin,w=f+v*_(p),b=h+v*S(p),x="left",C="top";switch(s){case"startArc":w=f+(c-u)*_(y),b=h+(c-u)*S(y),x="center",C="top";break;case"insideStartArc":w=f+(c+u)*_(y),b=h+(c+u)*S(y),x="center",C="bottom";break;case"startAngle":w=f+d*_(p)+So(p,u+m,!1),b=h+d*S(p)+bo(p,u+m,!1),x="right",C="middle";break;case"insideStartAngle":w=f+d*_(p)+So(p,-u+m,!1),b=h+d*S(p)+bo(p,-u+m,!1),x="left",C="middle";break;case"middle":w=f+d*_(y),b=h+d*S(y),x="center",C="middle";break;case"endArc":w=f+(v+u)*_(y),b=h+(v+u)*S(y),x="center",C="bottom";break;case"insideEndArc":w=f+(v-u)*_(y),b=h+(v-u)*S(y),x="center",C="top";break;case"endAngle":w=f+d*_(g)+So(g,u+m,!0),b=h+d*S(g)+bo(g,u+m,!0),x="left",C="middle";break;case"insideEndAngle":w=f+d*_(g)+So(g,-u+m,!0),b=h+d*S(g)+bo(g,-u+m,!0),x="right",C="middle";break;default:return os(n,i,a)}return n=n||{},n.x=w,n.y=b,n.align=x,n.verticalAlign=C,n}}function _M(e,t,r,n){if(ht(n)){e.setTextConfig({rotation:n});return}else if(F(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,u,l=r(t);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":u=s;break;case"startAngle":case"insideStartAngle":u=a;break;case"endAngle":case"insideEndAngle":u=o;break;default:e.setTextConfig({rotation:0});return}var f=Math.PI*1.5-u;l==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),e.setTextConfig({rotation:f})}function So(e,t,r){return t*Math.sin(e)*(r?-1:1)}function bo(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Qi(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;F(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:X(n,function(a){return zr(a,i)})}}var sl=Math.max,ul=Math.min;function SM(e,t){var r=e.getArea&&e.getArea();if(f0(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var bM=(function(e){V(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){zh(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),u=this._data,l=r.coordinateSystem,f=l.getBaseAxis(),h;l.type==="cartesian2d"?h=f.isHorizontal():l.type==="polar"&&(h=f.dim==="angle");var v=r.isAnimationEnabled()?r:null,c=wM(r,l);c&&this._enableRealtimeSort(c,s,i);var d=r.get("clip",!0)||c,p=SM(l,s);o.removeClipPath();var g=r.get("roundCap",!0),y=r.get("showBackground",!0),m=r.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],w=this._backgroundEls,b=a&&a.isInitSort,x=a&&a.type==="changeAxisOrder";function C(M){var I=wo[l.type](s,M);if(!I)return null;var L=LM(l,h,I);return L.useStyle(m.getItemStyle()),l.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[M]=L,L}s.diff(u).add(function(M){var I=s.getItemModel(M),L=wo[l.type](s,M,I);if(L&&(y&&C(M),!(!s.hasValue(M)||!wd[l.type](L)))){var P=!1;d&&(P=md[l.type](p,L));var R=_d[l.type](r,s,M,L,h,v,f.model,!1,g);c&&(R.forceLabelAnimation=!0),xd(R,s,M,I,L,r,h,l.type==="polar"),b?R.attr({shape:L}):c?Sd(c,v,R,L,M,h,!1,!1):cr(R,{shape:L},r,M),s.setItemGraphicEl(M,R),o.add(R),R.ignore=P}}).update(function(M,I){var L=s.getItemModel(M),P=wo[l.type](s,M,L);if(P){if(y){var R=void 0;w.length===0?R=C(I):(R=w[I],R.useStyle(m.getItemStyle()),l.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[M]=R);var k=wo[l.type](s,M),W=m0(h,k,l);xe(R,{shape:W},v,M)}var O=u.getItemGraphicEl(I);if(!s.hasValue(M)||!wd[l.type](P)){o.remove(O);return}var z=!1;d&&(z=md[l.type](p,P),z&&o.remove(O));var H=O&&(O.type==="sector"&&g||O.type==="sausage"&&!g);if(H&&(O&&sa(O,r,I),O=null),O?im(O):O=_d[l.type](r,s,M,P,h,v,f.model,!0,g),c&&(O.forceLabelAnimation=!0),x){var G=O.getTextContent();if(G){var B=Wh(G);B.prevValue!=null&&(B.prevValue=B.value)}}else xd(O,s,M,L,P,r,h,l.type==="polar");b?O.attr({shape:P}):c?Sd(c,v,O,P,M,h,!0,x):xe(O,{shape:P},r,M,null),s.setItemGraphicEl(M,O),O.ignore=z,o.add(O)}}).remove(function(M){var I=u.getItemGraphicEl(M);I&&sa(I,r,M)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Kt);D.removeAll();for(var A=0;A<S.length;++A)D.add(S[A]);o.add(D),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),Cd(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),Cd(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&aM(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(u){var l=n.getItemGraphicEl(u),f=l&&l.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var u=i(s);u=u??NaN,a.push({dataIndex:s,mappedValue:u,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:X(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,u=0,l=a.getOrdinalMeta().categories.length;u<l;++u){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(u)),h=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){sa(a,r,lt(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(be),md={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=sl(t.x,e.x),s=ul(t.x+t.width,i),u=sl(t.y,e.y),l=ul(t.y+t.height,a),f=s<o,h=l<u;return t.x=f&&o>i?s:o,t.y=h&&u>a?l:u,t.width=f?0:s-o,t.height=h?0:l-u,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=ul(t.r,e.r),a=sl(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},_d={cartesian2d:function(e,t,r,n,i,a,o,s,u){var l=new wt({shape:E({},n),z2:1});if(l.__dataIndex=r,l.name="item",a){var f=l.shape,h=i?"height":"width";f[h]=0}return l},polar:function(e,t,r,n,i,a,o,s,u){var l=!i&&u?yd:gr,f=new l({shape:n,z2:1});f.name="item";var h=y0(i);if(f.calculateTextPosition=mM(h,{isRoundCap:l===yd}),a){var v=f.shape,c=i?"r":"endAngle",d={};v[c]=i?n.r0:n.startAngle,d[c]=n[c],(s?xe:cr)(f,{shape:d},a)}return f}};function wM(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function Sd(e,t,r,n,i,a,o,s){var u,l;a?(l={x:n.x,width:n.width},u={y:n.y,height:n.height}):(l={y:n.y,height:n.height},u={x:n.x,width:n.width}),s||(o?xe:cr)(r,{shape:u},t,i,null);var f=t?e.baseAxis.model:null;(o?xe:cr)(r,{shape:l},f,i)}function bd(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var xM=["x","y","width","height"],TM=["cx","cy","r","startAngle","endAngle"],wd={cartesian2d:function(e){return!bd(e,xM)},polar:function(e){return!bd(e,TM)}},wo={cartesian2d:function(e,t,r){var n=e.getItemLayout(t);if(!n)return null;var i=r?MM(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function CM(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function y0(e){return(function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}})(e)}function xd(e,t,r,n,i,a,o,s){var u=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=e.shape,h=Qi(n.getModel("itemStyle"),f,!0);E(f,h),e.setShape(f)}}else{var l=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",l)}e.useStyle(u);var v=n.getShallow("cursor");v&&e.attr("cursor",v);var c=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=mm(n);Vh(e,d,{labelFetcher:a,labelDataIndex:r,defaultText:jC(a.getData(),r),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:c});var p=e.getTextContent();if(s&&p){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,_M(e,g==="outside"?c:g,y0(o),n.get(["label","rotate"]))}Ix(p,d,a.getRawValue(r),function(m){return KC(t,m)});var y=n.getModel(["emphasis"]);Wy(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),Uy(e,n),CM(i)&&(e.style.fill="none",e.style.stroke="none",T(e.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function MM(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var DM=(function(){function e(){}return e})(),Td=(function(e){V(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new DM},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],u=[],l=this.barWidth,f=0;f<i.length;f+=3)u[a]=l,u[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],u[0],u[1])},t})(ct);function Cd(e,t,r,n){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),u=e.getModel("backgroundStyle"),l=i.getLayout("largeBackgroundPoints");if(l){var f=new Td({shape:{points:l},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(u.getItemStyle()),t.add(f),r&&r.push(f)}var h=new Td({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(i.getVisual("style")),h.style.stroke=null,lt(h).seriesIndex=e.seriesIndex,e.get("silent")||(h.on("mousedown",Md),h.on("mousemove",Md)),r&&r.push(h)}var Md=gu(function(e){var t=this,r=AM(t,e.offsetX,e.offsetY);lt(t).dataIndex=r>=0?r:null},30,!1);function AM(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],u=[],l=e.barWidth,f=0,h=a.length/3;f<h;f++){var v=f*3;if(u[n]=l,u[i]=a[v+2],s[n]=a[v+n],s[i]=a[v+i],u[i]<0&&(s[i]+=u[i],u[i]=-u[i]),t>=s[0]&&t<=s[0]+u[0]&&r>=s[1]&&r<=s[1]+u[1])return o[f]}return-1}function m0(e,t,r){if(f0(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function LM(e,t,r){var n=e.type==="polar"?gr:wt;return new n({shape:m0(t,r,e),silent:!0,z2:0})}function GI(e){e.registerChartView(bM),e.registerSeriesModel(gM),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,_t(vM,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,dM("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,uM("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}function PM(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}T([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=E({},i),o.dispatchAction(E(i,{type:n[1],seriesIndex:r(a,i)}))})})}function qn(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=i.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var h=o.getData(),v=za(h,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:F(v)?h.getName(v[0]):h.getName(v),selected:U(u)?u:E({},u)})}})}function IM(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(qn("map","selectchanged",t,i,n),qn("pie","selectchanged",t,i,n)):n.fromAction==="select"?(qn("map","selected",t,i,n),qn("pie","selected",t,i,n)):n.fromAction==="unselect"&&(qn("map","unselected",t,i,n),qn("pie","unselected",t,i,n))})}var Dd=Math.PI*2,xo=Math.PI/180;function RM(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=nC(n,r),s=o.cx,u=o.cy,l=o.r,f=o.r0,h=o.viewRect,v=-n.get("startAngle")*xo,c=n.get("endAngle"),d=n.get("padAngle")*xo;c=c==="auto"?v-Dd:-c*xo;var p=n.get("minAngle")*xo,g=p+d,y=0;i.each(a,function(W){!isNaN(W)&&y++});var m=i.getSum(a),_=Math.PI/(m||y)*2,S=n.get("clockwise"),w=n.get("roseType"),b=n.get("stillShowZeroSum"),x=i.getDataExtent(a);x[0]=0;var C=S?1:-1,D=[v,c],A=C*d/2;gy(D,!S),v=D[0],c=D[1];var M=_0(n);M.startAngle=v,M.endAngle=c,M.clockwise=S,M.cx=s,M.cy=u,M.r=l,M.r0=f;var I=Math.abs(c-v),L=I,P=0,R=v;if(i.setLayout({viewRect:h,r:l}),i.each(a,function(W,O){var z;if(isNaN(W)){i.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:u,r0:f,r:w?NaN:l});return}w!=="area"?z=m===0&&b?_:W*_:z=I/y,z<g?(z=g,L-=g):P+=W;var H=R+C*z,G=0,B=0;d>z?(G=R+C*z/2,B=G):(G=R+A,B=H-A),i.setItemLayout(O,{angle:z,startAngle:G,endAngle:B,clockwise:S,cx:s,cy:u,r0:f,r:w?ps(W,x,[f,l]):l}),R=H}),L<Dd&&y)if(L<=.001){var k=I/y;i.each(a,function(W,O){if(!isNaN(W)){var z=i.getItemLayout(O);z.angle=k;var H=0,G=0;k<d?(H=v+C*(O+1/2)*k,G=H):(H=v+C*O*k+A,G=v+C*(O+1)*k-A),z.startAngle=H,z.endAngle=G}})}else _=L/P,R=v,i.each(a,function(W,O){if(!isNaN(W)){var z=i.getItemLayout(O),H=z.angle===g?g:W*_,G=0,B=0;H<d?(G=R+C*H/2,B=G):(G=R+A,B=R+C*H-A),z.startAngle=G,z.endAngle=B,R+=C*H}})})}var _0=mt();function EM(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}function S0(e,t,r,n,i,a,o,s){var u=i-e,l=a-t,f=r-e,h=n-t,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=u*f+l*h,d=c/v;d*=v;var p=o[0]=e+d*f,g=o[1]=t+d*h;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}var Pr=new K,bt=new K,Rt=new K,Ir=new K,We=new K,Ds=[],Wt=new K;function OM(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Pr.fromArray(e[0]),bt.fromArray(e[1]),Rt.fromArray(e[2]),K.sub(Ir,Pr,bt),K.sub(We,Rt,bt);var r=Ir.len(),n=We.len();if(!(r<.001||n<.001)){Ir.scale(1/r),We.scale(1/n);var i=Ir.dot(We),a=Math.cos(t);if(a<i){var o=S0(bt.x,bt.y,Rt.x,Rt.y,Pr.x,Pr.y,Ds);Wt.fromArray(Ds),Wt.scaleAndAdd(We,o/Math.tan(Math.PI-t));var s=Rt.x!==bt.x?(Wt.x-bt.x)/(Rt.x-bt.x):(Wt.y-bt.y)/(Rt.y-bt.y);if(isNaN(s))return;s<0?K.copy(Wt,bt):s>1&&K.copy(Wt,Rt),Wt.toArray(e[1])}}}}function kM(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Pr.fromArray(e[0]),bt.fromArray(e[1]),Rt.fromArray(e[2]),K.sub(Ir,bt,Pr),K.sub(We,Rt,bt);var n=Ir.len(),i=We.len();if(!(n<.001||i<.001)){Ir.scale(1/n),We.scale(1/i);var a=Ir.dot(t),o=Math.cos(r);if(a<o){var s=S0(bt.x,bt.y,Rt.x,Rt.y,Pr.x,Pr.y,Ds);Wt.fromArray(Ds);var u=Math.PI/2,l=Math.acos(We.dot(t)),f=u+l-r;if(f>=u)K.copy(Wt,Rt);else{Wt.scaleAndAdd(We,s/Math.tan(Math.PI/2-f));var h=Rt.x!==bt.x?(Wt.x-bt.x)/(Rt.x-bt.x):(Wt.y-bt.y)/(Rt.y-bt.y);if(isNaN(h))return;h<0?K.copy(Wt,bt):h>1&&K.copy(Wt,Rt)}Wt.toArray(e[1])}}}}function ll(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function BM(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=us(n[0],n[1]),a=us(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Ho([],n[1],n[0],o/i),u=Ho([],n[1],n[2],o/a),l=Ho([],s,u,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)e.lineTo(n[f][0],n[f][1])}function NM(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,u=0;u<gs.length;u++){var l=gs[u],f=t[l],h=l==="normal";if(f){var v=f.get("show"),c=h?s:$(i.states[l]&&i.states[l].ignore,s);if(c||!$(v,o)){var d=h?n:n&&n.states[l];d&&(d.ignore=!0),n&&ll(n,!0,l,f);continue}n||(n=new Si,e.setTextGuideLine(n),!h&&(s||!o)&&ll(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),ll(n,!1,l,f)}}if(n){ft(n.style,r),n.style.fill=null;var p=a.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=BM}}function FM(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<Qe.length;n++){var i=Qe[n];r[i]=e.getModel([i,t])}return r}var Ad=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],zM=1,As=2,b0=zM|As;function Ls(e,t,r){r=r||b0,t?e.dirty|=r:e.dirty&=~r}function w0(e,t){return t=t||b0,e.dirty==null||!!(e.dirty&t)}function Vr(e){if(e)return w0(e)&&x0(e,e.label,e),e}function x0(e,t,r){var n=t.getComputedTransform();e.transform=Hh(e.transform,n);var i=e.localRect=xa(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=r&&r.marginForce,u=r&&r.minMarginForce,l=r&&r.marginDefault,f=a.__marginType;f==null&&l&&(o=l,f=ni.textMargin);for(var h=0;h<4;h++)fl[h]=f===ni.minMargin&&u&&u[h]!=null?u[h]:s&&s[h]!=null?s[h]:o?o[h]:0;f===ni.textMargin&&Ss(i,fl,!1,!1);var v=e.rect=xa(e.rect,i);return n&&v.applyTransform(n),f===ni.minMargin&&Ss(v,fl,!1,!1),e.axisAligned=Gh(n),(e.label=e.label||{}).ignore=t.ignore,Ls(e,!1),Ls(e,!0,As),e}var fl=[0,0,0,0];function GM(e,t,r){return e.transform=Hh(e.transform,r),e.localRect=xa(e.localRect,t),e.rect=xa(e.rect,t),r&&e.rect.applyTransform(r),e.axisAligned=Gh(r),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function HM(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var r=e.transform;r&&(r[4]+=t.x,r[5]+=t.y);var n=e.rect;n&&(n.x+=t.x,n.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,r)}}function Ld(e,t){for(var r=0;r<Ad.length;r++){var n=Ad[r];e[n]==null&&(e[n]=t[n])}return Vr(e)}function Pd(e){var t=e.obb;return(!t||w0(e,As))&&(e.obb=t=t||new em,t.fromBoundingRect(e.localRect,e.transform),Ls(e,!1,As)),t}function VM(e,t,r,n,i){var a=e.length,o=Cr[t],s=di[t];if(a<2)return!1;e.sort(function(x,C){return x.rect[o]-C.rect[o]});for(var u=0,l,f=!1,h=0;h<a;h++){var v=e[h],c=v.rect;l=c[o]-u,l<0&&(c[o]-=l,v.label[o]-=l,f=!0),u=c[o]+c[s]}var d=e[0],p=e[a-1],g,y;m(),g<0&&w(-g,.8),y<0&&w(y,.8),m(),_(g,y,1),_(y,g,-1),m(),g<0&&b(-g),y<0&&b(y);function m(){g=d.rect[o]-r,y=n-p.rect[o]-p.rect[s]}function _(x,C,D){if(x<0){var A=Math.min(C,-x);if(A>0){S(A*D,0,a);var M=A+x;M<0&&w(-M*D,1)}else w(-x*D,1)}}function S(x,C,D){x!==0&&(f=!0);for(var A=C;A<D;A++){var M=e[A],I=M.rect;I[o]+=x,M.label[o]+=x}}function w(x,C){for(var D=[],A=0,M=1;M<a;M++){var I=e[M-1].rect,L=Math.max(e[M].rect[o]-I[o]-I[s],0);D.push(L),A+=L}if(A){var P=Math.min(Math.abs(x)/A,C);if(x>0)for(var M=0;M<a-1;M++){var R=D[M]*P;S(R,0,M+1)}else for(var M=a-1;M>0;M--){var R=D[M-1]*P;S(-R,M,a)}}}function b(x){var C=x<0?-1:1;x=Math.abs(x);for(var D=Math.ceil(x/(a-1)),A=0;A<a-1;A++)if(C>0?S(D,0,A+1):S(-D,a-A-1,a),x-=D,x<=0)return}return f}function WM(e){var t=[];e.sort(function(l,f){return(f.suggestIgnore?1:0)-(l.suggestIgnore?1:0)||f.priority-l.priority});function r(l){if(!l.ignore){var f=l.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}l.ignore=!0}for(var n=0;n<e.length;n++){var i=Vr(e[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,u=0;u<t.length;u++)if(gc(i,t[u],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):t.push(i)}}}function gc(e,t,r,n){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,r,n)?!1:e.axisAligned&&t.axisAligned?!0:Pd(e).intersect(Pd(t),r,n)}var UM=Math.PI/180;function Id(e,t,r,n,i,a,o,s,u,l){if(e.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-r),w=n+_.len,b=w*w,x=Math.sqrt(Math.abs((1-S*S/y)*b)),C=t+(x+_.len2)*i,D=C-_.label.x,A=_.targetTextWidth-D*i;T0(_,A,!0),_.label.x=C}}function h(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>r?y:g,w=Math.abs(_.label.y-r);if(w>=S.maxY){var b=_.label.x-t-_.len2*i,x=n+_.len,C=Math.abs(b)<x?Math.sqrt(w*w/(1-b*b/x/x)):x;S.rB=C,S.maxY=w}S.list.push(_)}f(g),f(y)}for(var v=e.length,c=0;c<v;c++)if(e[c].position==="outer"&&e[c].labelAlignTo==="labelLine"){var d=e[c].label.x-l;e[c].linePoints[1][0]+=d,e[c].label.x=l}VM(e,1,u,u+o)&&h(e)}function YM(e,t,r,n,i,a,o,s){for(var u=[],l=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,v=0;v<e.length;v++){var c=e[v].label;hl(e[v])||(c.x<t?(f=Math.min(f,c.x),u.push(e[v])):(h=Math.max(h,c.x),l.push(e[v])))}for(var v=0;v<e.length;v++){var d=e[v];if(!hl(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var c=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?c.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?c.x<t?g=f-o-d.bleedMargin:g=o+i-h-d.bleedMargin:c.x<t?g=c.x-o-d.bleedMargin:g=o+i-c.x-d.bleedMargin,d.targetTextWidth=g,T0(d,g,!1)}}Id(l,t,r,n,1,i,a,o,s,h),Id(u,t,r,n,-1,i,a,o,s,f);for(var v=0;v<e.length;v++){var d=e[v];if(!hl(d)&&d.linePoints){var c=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=c.style.padding,_=m?m[1]+m[3]:0,S=c.style.backgroundColor?0:_,w=d.rect.width+S,b=p[1][0]-p[2][0];y?c.x<t?p[2][0]=o+d.edgeDistance+w+d.labelDistance:p[2][0]=o+i-d.edgeDistance-w-d.labelDistance:(c.x<t?p[2][0]=c.x+d.labelDistance:p[2][0]=c.x-d.labelDistance,p[1][0]=p[2][0]+b),p[1][1]=p[2][1]=c.y}}}function T0(e,t,r){if(e.labelStyleWidth==null){var n=e.label,i=n.style,a=e.rect,o=i.backgroundColor,s=i.padding,u=s?s[1]+s[3]:0,l=i.overflow,f=a.width+(o?0:u);if(t<f||r){if(l&&l.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-u);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var v=t-u,c=t<f?v:r?v>e.unconstrainedWidth?null:v:null;n.setStyle("width",c)}C0(a,n)}}}function C0(e,t){Rd.rect=e,x0(Rd,t,XM)}var XM={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Rd={};function hl(e){return e.position==="center"}function qM(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*UM,s=t.getLayout("viewRect"),u=t.getLayout("r"),l=s.width,f=s.x,h=s.y,v=s.height;function c(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var x in b.states)if(b.states[x].ignore===!1)return!0;return!1}t.each(function(b){var x=t.getItemGraphicEl(b),C=x.shape,D=x.getTextContent(),A=x.getTextGuideLine(),M=t.getItemModel(b),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),k=gt(I.get("edgeDistance"),l),W=I.get("bleedMargin");W==null&&(W=Math.min(l,v)>200?10:2);var O=M.getModel("labelLine"),z=O.get("length");z=gt(z,l);var H=O.get("length2");if(H=gt(H,l),Math.abs(C.endAngle-C.startAngle)<o){T(D.states,c),D.ignore=!0,A&&(T(A.states,c),A.ignore=!0);return}if(d(D)){var G=(C.startAngle+C.endAngle)/2,B=Math.cos(G),tt=Math.sin(G),vt,zt,re,Gt;n=C.cx,i=C.cy;var Et=L==="inside"||L==="inner";if(L==="center")vt=C.cx,zt=C.cy,Gt="center";else{var Pt=(Et?(C.r+C.r0)/2*B:C.r*B)+n,xt=(Et?(C.r+C.r0)/2*tt:C.r*tt)+i;if(vt=Pt+B*3,zt=xt+tt*3,!Et){var Z=Pt+B*(z+u-C.r),nt=xt+tt*(z+u-C.r),Be=Z+(B<0?-1:1)*H,Dt=nt;R==="edge"?vt=B<0?f+k:f+l-k:vt=Be+(B<0?-P:P),zt=Dt,re=[[Pt,xt],[Z,nt],[Be,Dt]]}Gt=Et?"center":R==="edge"?B>0?"right":"left":B>0?"left":"right"}var yr=Math.PI,tr=0,bi=I.get("rotate");if(ht(bi))tr=bi*(yr/180);else if(L==="center")tr=0;else if(bi==="radial"||bi===!0){var O1=B<0?-G+yr:-G;tr=O1}else if(bi==="tangential"&&L!=="outside"&&L!=="outer"){var Bn=Math.atan2(B,tt);Bn<0&&(Bn=yr*2+Bn);var k1=tt>0;k1&&(Bn=yr+Bn),tr=Bn-yr}if(a=!!tr,D.x=vt,D.y=zt,D.rotation=tr,D.setStyle({verticalAlign:"middle"}),Et){D.setStyle({align:Gt});var bu=D.states.select;bu&&(bu.x+=D.x,bu.y+=D.y)}else{var Su=new J(0,0,0,0);C0(Su,D),r.push({label:D,labelLine:A,position:L,len:z,len2:H,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new K(B,tt),linePoints:re,textAlign:Gt,labelDistance:P,labelAlignTo:R,edgeDistance:k,bleedMargin:W,rect:Su,unconstrainedWidth:Su.width,labelStyleWidth:D.style.width})}x.setTextConfig({inside:Et})}}),!a&&e.get("avoidLabelOverlap")&&YM(r,n,i,u,l,v,f,h);for(var p=0;p<r.length;p++){var g=r[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(T(y.states,c),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var w=g.linePoints;_||!w?(T(m.states,c),m.ignore=!0):(OM(w,g.minTurnAngle),kM(w,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new K(w[0][0],w[0][1])})}}}var $M=(function(e){V(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new Nt;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return t.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,u=r.getItemModel(n),l=u.getModel("emphasis"),f=r.getItemLayout(n),h=E(Qi(u.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var v=s.getShallow("animationType");s.ecModel.ssr?(cr(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):v==="scale"?(o.shape.r=f.r0,cr(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),cr(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,xe(o,{shape:{endAngle:f.endAngle}},s,n))}else im(o),xe(o,{shape:h},s,n);o.useStyle(r.getItemVisual(n,"style")),Uy(o,u);var c=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(c)*d,g=Math.sin(c)*d,y=u.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=E({r:f.r+(l.get("scale")&&l.get("scaleSize")||0)},Qi(l.getModel("itemStyle"),f)),E(o.ensureState("select"),{x:p,y:g,shape:Qi(u.getModel(["select","itemStyle"]),f)}),E(o.ensureState("blur"),{shape:Qi(u.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&E(m.ensureState("select"),{x:p,y:g}),E(_.ensureState("select"),{x:p,y:g}),Wy(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),u=n.getItemVisual(i,"style"),l=u&&u.fill,f=u&&u.opacity;Vh(a,mm(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:l,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var v=o.get(["label","position"]);if(v!=="outside"&&v!=="outer")a.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new Si,this.setTextGuideLine(c)),NM(this,FM(o),{stroke:l,opacity:Er(s.get(["lineStyle","opacity"]),f,1)})}},t})(gr),ZM=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,u=this.group,l;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(l=f.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var v=_0(r),c=new gr({shape:rt(v)});c.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,u.add(c)}o.diff(s).add(function(d){var p=new $M(o,d,l);o.setItemGraphicEl(d,p),u.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,l),g.off("click"),u.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);sa(p,r,d)}).execute(),qM(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,u=Math.sqrt(o*o+s*s);return u<=a.r&&u>=a.r0}},t.type="pie",t})(be);function jM(e,t,r){t=F(t)&&{coordDimensions:t}||E({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=$h(n,t).dimensions,a=new qh(i,e);return a.initData(n,r),a}var KM=(function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e})(),QM=mt(),M0=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new KM(ut(this.getData,this),ut(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return jM(this,{coordDimensions:["value"],encodeDefaulter:_t(Hx,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=QM(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(u){o.push(u)}),a=i.seats=Ty(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){vf(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(se);dT({fullType:M0.type,getCoord2:function(e){return e.getShallow("center")}});function JM(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(ht(o)&&!isNaN(o)&&o<0)})}}}function HI(e){e.registerChartView(ZM),e.registerSeriesModel(M0),PM("pie",e.registerAction),e.registerLayout(_t(RM,"pie")),e.registerProcessor(EM("pie")),e.registerProcessor(JM("pie"))}var $n=(function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e})(),tD=(function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new $n(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new $n(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new $n(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new $n(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new $n(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new $n(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),eD=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cl=[],rD=j.browser.firefox&&+j.browser.version.split(".")[0]<39;function Bf(e,t,r,n){return r=r||{},n?Ed(e,t,r):rD&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):Ed(e,t,r),r}function Ed(e,t,r){if(j.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Um(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Af(cl,e,n,i)){r.zrX=cl[0],r.zrY=cl[1];return}}r.zrX=r.zrY=0}function yc(e){return e||window.event}function ce(e,t,r){if(t=yc(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Bf(e,o,t,r)}else{Bf(e,t,t,r);var a=nD(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&eD.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function nD(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function iD(e,t,r,n){e.addEventListener(t,r,n)}function aD(e,t,r,n){e.removeEventListener(t,r,n)}var D0=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},oD=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var u=i[o],l=Bf(n,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in vl)if(vl.hasOwnProperty(r)){var n=vl[r](this._track,t);if(n)return n}},e})();function Od(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function sD(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var vl={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Od(n)/Od(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=sD(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}},A0="silent";function uD(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:lD}}function lD(){D0(this.event)}var fD=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Je),Ii=(function(){function e(t,r){this.x=t,this.y=r}return e})(),hD=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],dl=new J(0,0,0,0),L0=(function(e){V(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Ii(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new fD,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new tD(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(T(hD,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=P0(this,n,i),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 Ii(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Ii(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=uD(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Ii(r,n);if(kd(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new J(r-l,n-l,u,u),h=a.length-1;h>=0;h--){var v=a[h];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(dl.copy(v.getBoundingRect()),v.transform&&dl.applyTransform(v.transform),dl.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,p=Math.PI*2,g=0;g<l;g+=c)for(var y=0;y<p;y+=d){var m=r+g*Math.cos(y),_=n+g*Math.sin(y);if(kd(s,o,m,_,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new oD);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Ii;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(Je);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){L0.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=P0(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||us(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function cD(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?A0:!0}return!1}function kd(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=cD(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==A0)){t.target=o;break}}}function P0(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var I0=32,Ri=7;function vD(e){for(var t=0;e>=I0;)t|=e&1,e>>=1;return e+t}function Bd(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;dD(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function dD(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function Nd(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,u;o<s;)u=o+s>>>1,i(a,e[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function pl(e,t,r,n,i,a){var o=0,s=0,u=1;if(a(e,t[r+i])>0){for(s=n-i;u<s&&a(e,t[r+i+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;u<s&&a(e,t[r+i-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])>0?o=f+1:u=f}return u}function gl(e,t,r,n,i,a){var o=0,s=0,u=1;if(a(e,t[r+i])<0){for(s=i+1;u<s&&a(e,t[r+i-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u<s&&a(e,t[r+i+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])<0?u=f:o=f+1}return u}function pD(e,t){var r=Ri,n,i,a=0,o=[];n=[],i=[];function s(c,d){n[a]=c,i[a]=d,a+=1}function u(){for(;a>1;){var c=a-2;if(c>=1&&i[c-1]<=i[c]+i[c+1]||c>=2&&i[c-2]<=i[c]+i[c-1])i[c-1]<i[c+1]&&c--;else if(i[c]>i[c+1])break;f(c)}}function l(){for(;a>1;){var c=a-2;c>0&&i[c-1]<i[c+1]&&c--,f(c)}}function f(c){var d=n[c],p=i[c],g=n[c+1],y=i[c+1];i[c]=p+y,c===a-3&&(n[c+1]=n[c+2],i[c+1]=i[c+2]),a--;var m=gl(e[g],e,d,p,0,t);d+=m,p-=m,p!==0&&(y=pl(e[d+p-1],e,g,y,y-1,t),y!==0&&(p<=y?h(d,p,g,y):v(d,p,g,y)))}function h(c,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=e[c+y];var m=0,_=p,S=c;if(e[S++]=e[_++],--g===0){for(y=0;y<d;y++)e[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)e[S+y]=e[_+y];e[S+g]=o[m];return}for(var w=r,b,x,C;;){b=0,x=0,C=!1;do if(t(e[_],o[m])<0){if(e[S++]=e[_++],x++,b=0,--g===0){C=!0;break}}else if(e[S++]=o[m++],b++,x=0,--d===1){C=!0;break}while((b|x)<w);if(C)break;do{if(b=gl(e[_],o,m,d,0,t),b!==0){for(y=0;y<b;y++)e[S+y]=o[m+y];if(S+=b,m+=b,d-=b,d<=1){C=!0;break}}if(e[S++]=e[_++],--g===0){C=!0;break}if(x=pl(o[m],e,_,g,0,t),x!==0){for(y=0;y<x;y++)e[S+y]=e[_+y];if(S+=x,_+=x,g-=x,g===0){C=!0;break}}if(e[S++]=o[m++],--d===1){C=!0;break}w--}while(b>=Ri||x>=Ri);if(C)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(y=0;y<g;y++)e[S+y]=e[_+y];e[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)e[S+y]=o[m+y]}}function v(c,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=e[p+y];var m=c+d-1,_=g-1,S=p+g-1,w=0,b=0;if(e[S--]=e[m--],--d===0){for(w=S-(g-1),y=0;y<g;y++)e[w+y]=o[y];return}if(g===1){for(S-=d,m-=d,b=S+1,w=m+1,y=d-1;y>=0;y--)e[b+y]=e[w+y];e[S]=o[_];return}for(var x=r;;){var C=0,D=0,A=!1;do if(t(o[_],e[m])<0){if(e[S--]=e[m--],C++,D=0,--d===0){A=!0;break}}else if(e[S--]=o[_--],D++,C=0,--g===1){A=!0;break}while((C|D)<x);if(A)break;do{if(C=d-gl(o[_],e,c,d,d-1,t),C!==0){for(S-=C,m-=C,d-=C,b=S+1,w=m+1,y=C-1;y>=0;y--)e[b+y]=e[w+y];if(d===0){A=!0;break}}if(e[S--]=o[_--],--g===1){A=!0;break}if(D=g-pl(e[m],o,0,g,g-1,t),D!==0){for(S-=D,_-=D,g-=D,b=S+1,w=_+1,y=0;y<D;y++)e[b+y]=o[w+y];if(g<=1){A=!0;break}}if(e[S--]=e[m--],--d===0){A=!0;break}x--}while(C>=Ri||D>=Ri);if(A)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),g===1){for(S-=d,m-=d,b=S+1,w=m+1,y=d-1;y>=0;y--)e[b+y]=e[w+y];e[S]=o[_]}else{if(g===0)throw new Error;for(w=S-(g-1),y=0;y<g;y++)e[w+y]=o[y]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function Jo(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<I0){a=Bd(e,r,n,t),Nd(e,r,n,r+a,t);return}var o=pD(e,t),s=vD(i);do{if(a=Bd(e,r,n,t),a<s){var u=i;u>s&&(u=s),Nd(e,r,r+u,r+a,t),a=u}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Fd=!1;function yl(){Fd||(Fd=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function zd(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var gD=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=zd}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,Jo(n,zd)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),a=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||i)){if(s||(s=t.__clipPaths=[]),a)for(var u=0;u<r.length;u++)s[o++]=r[u];for(var l=i,f=t;l;)l.parent=f,l.updateTransform(),s[o++]=l,f=l,l=l.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var h=t.childrenRef(),v=0;v<h.length;v++){var c=h[v];t.__dirty&&(c.__dirty|=ie),this._updateAndAddDisplayable(c,s,n)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(yl(),d.z=0),isNaN(d.z2)&&(yl(),d.z2=0),isNaN(d.zlevel)&&(yl(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var y=t.getTextContent();y&&this._updateAndAddDisplayable(y,s,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=it(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),Ps;Ps=j.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function ii(){return new Date().getTime()}var yD=(function(e){V(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=ii()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Ps(n),!r._paused&&r.update())}Ps(n)},t.prototype.start=function(){this._running||(this._time=ii(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ii(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ii()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new Th(r,n.loop);return this.addAnimator(i),i},t})(Je),mD=300,ml=j.domSupported,_l=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=X(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}})(),Gd={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Hd=!1;function Nf(e){var t=e.pointerType;return t==="pen"||t==="touch"}function _D(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Sl(e){e&&(e.zrByTouch=!0)}function SD(e,t){return ce(e.dom,new bD(e,t),!0)}function R0(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var bD=(function(){function e(t,r){this.stopPropagation=Xt,this.stopImmediatePropagation=Xt,this.preventDefault=Xt,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e})(),Le={mousedown:function(e){e=ce(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ce(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ce(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ce(this.dom,e);var t=e.toElement||e.relatedTarget;R0(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Hd=!0,e=ce(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Hd||(e=ce(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ce(this.dom,e),Sl(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Le.mousemove.call(this,e),Le.mousedown.call(this,e)},touchmove:function(e){e=ce(this.dom,e),Sl(e),this.handler.processGesture(e,"change"),Le.mousemove.call(this,e)},touchend:function(e){e=ce(this.dom,e),Sl(e),this.handler.processGesture(e,"end"),Le.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<mD&&Le.click.call(this,e)},pointerdown:function(e){Le.mousedown.call(this,e)},pointermove:function(e){Nf(e)||Le.mousemove.call(this,e)},pointerup:function(e){Le.mouseup.call(this,e)},pointerout:function(e){Nf(e)||Le.mouseout.call(this,e)}};T(["click","dblclick","contextmenu"],function(e){Le[e]=function(t){t=ce(this.dom,t),this.trigger(e,t)}});var Ff={pointermove:function(e){Nf(e)||Ff.mousemove.call(this,e)},pointerup:function(e){Ff.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function wD(e,t){var r=t.domHandlers;j.pointerEventsSupported?T(_l.pointer,function(n){ts(t,n,function(i){r[n].call(e,i)})}):(j.touchEventsSupported&&T(_l.touch,function(n){ts(t,n,function(i){r[n].call(e,i),_D(t)})}),T(_l.mouse,function(n){ts(t,n,function(i){i=yc(i),t.touching||r[n].call(e,i)})}))}function xD(e,t){j.pointerEventsSupported?T(Gd.pointer,r):j.touchEventsSupported||T(Gd.mouse,r);function r(n){function i(a){a=yc(a),R0(e,a.target)||(a=SD(e,a),t.domHandlers[n].call(e,a))}ts(t,n,i,{capture:!0})}}function ts(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,iD(e.domTarget,t,r,n)}function bl(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&aD(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var Vd=(function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e})(),TD=(function(e){V(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new Vd(r,Le),ml&&(i._globalHandlerScope=new Vd(document,Ff)),wD(i,i._localHandlerScope),i}return t.prototype.dispose=function(){bl(this._localHandlerScope),ml&&bl(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,ml&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?xD(this,n):bl(n)}},t})(Je);var es={},bn={};function CD(e){delete bn[e]}function MD(e){if(!e)return!1;if(typeof e=="string")return ya(e,1)<sf;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=ya(t[i].color,1);return r/=n,r<sf}return!1}var DD=(function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new gD,o=n.renderer||"canvas";es[o]||(o=yt(es)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new es[o](r,a,n,t),u=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!j.node&&!j.worker&&!u?new TD(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?j.touchEventsSupported:!!f,v=44,c;h&&(c=$(n.pointerSize,v)),this.handler=new L0(a,s,l,s.root,c),this.animation=new yD({stage:{update:u?null:function(){return i._flush(!0)}}}),u||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=MD(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,n=ii();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=ii();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Kt&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,CD(this.id))},e})();function zf(e,t){var r=new DD(gh(),e,t);return bn[r.id]=r,r}function AD(e){e.dispose()}function LD(){for(var e in bn)bn.hasOwnProperty(e)&&bn[e].dispose();bn={}}function PD(e){return bn[e]}function E0(e,t){es[e]=t}var Gf;function ID(e){if(typeof Gf=="function")return Gf(e)}function O0(e){Gf=e}var RD="6.0.0";const ED=Object.freeze(Object.defineProperty({__proto__:null,dispose:AD,disposeAll:LD,getElementSSRData:ID,getInstance:PD,init:zf,registerPainter:E0,registerSSRDataGetter:O0,version:RD},Symbol.toStringTag,{value:"Module"}));var k0="";typeof navigator<"u"&&(k0=navigator.platform||"");var Zn="rgba(0, 0, 0, 0.2)",B0=q.color.theme[0],OD=cs(B0,null,null,.9);const kD={darkMode:"auto",colorBy:"series",color:q.color.theme,gradientColor:[OD,B0],aria:{decal:{decals:[{color:Zn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Zn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Zn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Zn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Zn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Zn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:k0.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 BD=et();function ND(e,t,r){var n=BD.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var To,Ei,Wd,Ud="\0_ec_inner",FD=1,mc=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new pt(a),this._locale=new pt(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=qd(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,qd(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?Wd(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var u=a.getMediaOption(this);u.length&&T(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=et(),l=n&&n.replaceMergeMainTypeMap;zx(this),T(r,function(h,v){h!=null&&(ot.hasClass(v)?v&&(s.push(v),u.set(v,!0)):i[v]=i[v]==null?rt(h):at(i[v],h,!0))}),l&&l.each(function(h,v){ot.hasClass(v)&&!u.get(v)&&(s.push(v),u.set(v,!0))}),ot.topologicalTravel(s,ot.getAllClassMainTypes(),f,this);function f(h){var v=ND(this,h,$t(r[h])),c=a.get(h),d=c?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=fw(c,v,d);yw(p,h,ot),i[h]=null,a.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;T(p,function(S,w){var b=S.existing,x=S.newOption;if(!x)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var C=h==="series",D=ot.getClass(h,S.keyInfo.subType,!C);if(!D)return;if(h==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===D)b.name=S.keyInfo.name,b.mergeOption(x,this),b.optionUpdated(x,!1);else{var A=E({componentIndex:w},S.keyInfo);b=new D(x,this,this,A),E(b,A),S.brandNew&&(b.__requireNewView=!0),b.init(x,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),y.push(b),m++):(g.push(void 0),y.push(void 0))},this),i[h]=g,a.set(h,y),o.set(h,m),h==="series"&&To(this)}this._seriesIndices||To(this)},t.prototype.getOption=function(){var r=rt(this.option);return T(r,function(n,i){if(ot.hasClass(i)){for(var a=$t(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!ba(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Ud],r},t.prototype.setTheme=function(r){this._theme=new pt(r),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var u;return i!=null?(u=[],T($t(i),function(l){s[l]&&u.push(s[l])})):a!=null?u=Yd("id",a,s):o!=null?u=Yd("name",o,s):u=Ct(s,function(l){return!!l}),Xd(u,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Ct(this._componentsMap.get(i),function(l){return!!l});return u(Xd(o,r));function s(l){var f=i+"Index",h=i+"Id",v=i+"Name";return l&&(l[f]!=null||l[h]!=null||l[v]!=null)?{mainType:i,index:l[f],id:l[h],name:l[v]}:null}function u(l){return r.filter?Ct(l,r.filter):l}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Q(r)){var o=n,s=r;a.each(function(h,v){for(var c=0;h&&c<h.length;c++){var d=h[c];d&&s.call(o,v,d,d.componentIndex)}})}else for(var u=U(r)?a.get(r):Y(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=$e(r,null);return Ct(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Ct(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Ct(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){Ei(this),T(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){T(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){Ei(this),T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return T(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return Ei(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){Ei(this);var i=[];T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=et(i)},t.prototype.restoreData=function(r){To(this);var n=this._componentsMap,i=[];n.each(function(a,o){ot.hasClass(o)&&i.push(o)}),ot.topologicalTravel(i,ot.getAllClassMainTypes(),function(a){T(n.get(a),function(o){o&&(a!=="series"||!zD(o,r))&&o.restoreData()})})},t.internalField=(function(){To=function(r){var n=r._seriesIndices=[];T(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=et(n)},Ei=function(r){},Wd=function(r,n){r.option={},r.option[Ud]=FD,r._componentsMap=et({series:[]}),r._componentsCount=et();var i=n.aria;Y(i)&&i.enabled==null&&(i.enabled=!0),GD(n,r._theme.option),at(n,kD,!1),r._mergeOption(n,null)}})(),t})(pt);function zD(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function GD(e,t){var r=e.color&&!e.colorLayer;T(t,function(n,i){i==="colorLayer"&&r||i==="color"&&e.color||ot.hasClass(i)||(typeof n=="object"?e[i]=e[i]?at(e[i],n,!1):rt(n):e[i]==null&&(e[i]=n))})}function Yd(e,t,r){if(F(t)){var n=et();return T(t,function(a){if(a!=null){var o=$e(a,null);o!=null&&n.set(a,!0)}}),Ct(r,function(a){return a&&n.get(a[e])})}else{var i=$e(t,null);return Ct(r,function(a){return a&&i!=null&&a[e]===i})}}function Xd(e,t){return t.hasOwnProperty("subType")?Ct(e,function(r){return r&&r.subType===t.subType}):e}function qd(e){var t=et();return e&&T($t(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Te(mc,vc);var HD=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],N0=(function(){function e(t){T(HD,function(r){this[r]=ut(t[r],t)},this)}return e})(),VD=/^(min|max)?(.+)$/,WD=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(T($t(t.series),function(o){o&&o.data&&jt(o.data)&&is(o.data)}),T($t(t.dataset),function(o){o&&o.source&&jt(o.source)&&is(o.source)})),t=rt(t);var i=this._optionBackup,a=UD(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],rt(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=rt(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var u=0,l=i.length;u<l;u++)YD(i[u].query,r,n)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!qD(o,this._currentMediaIndices)&&(s=X(o,function(f){return rt(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},e})();function UD(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,u=e.options,l=e.media,f=!!e.media,h=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(e.options=e.media=null),a=e),f&&F(l)&&T(l,function(c){c&&c.option&&(c.query?n.push(c):i||(i=c))}),v(a),T(u,function(c){return v(c)}),T(n,function(c){return v(c.option)});function v(c){T(t,function(d){d(c,r)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:i,mediaList:n}}function YD(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return T(e,function(a,o){var s=o.match(VD);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();XD(n[l],a,u)||(i=!1)}}),i}function XD(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function qD(e,t){return e.join(",")===t.join(",")}var De=T,Da=Y,$d=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function wl(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=$d.length;r<n;r++){var i=$d[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?at(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?at(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function kt(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,ft(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Ji(e){kt(e,"itemStyle"),kt(e,"lineStyle"),kt(e,"areaStyle"),kt(e,"label"),kt(e,"labelLine"),kt(e,"upperLabel"),kt(e,"edgeLabel")}function Tt(e,t){var r=Da(e)&&e[t],n=Da(r)&&r.textStyle;if(n)for(var i=0,a=Sv.length;i<a;i++){var o=Sv[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function ve(e){e&&(Ji(e),Tt(e,"label"),e.emphasis&&Tt(e.emphasis,"label"))}function $D(e){if(Da(e)){wl(e),Ji(e),Tt(e,"label"),Tt(e,"upperLabel"),Tt(e,"edgeLabel"),e.emphasis&&(Tt(e.emphasis,"label"),Tt(e.emphasis,"upperLabel"),Tt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(wl(t),ve(t));var r=e.markLine;r&&(wl(r),ve(r));var n=e.markArea;n&&ve(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!jt(a))for(var o=0;o<a.length;o++)ve(a[o]);T(e.categories,function(l){Ji(l)})}if(i&&!jt(i))for(var o=0;o<i.length;o++)ve(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)ve(s[o]);if(r=e.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)F(u[o])?(ve(u[o][0]),ve(u[o][1])):ve(u[o]);e.type==="gauge"?(Tt(e,"axisLabel"),Tt(e,"title"),Tt(e,"detail")):e.type==="treemap"?(kt(e.breadcrumb,"itemStyle"),T(e.levels,function(l){Ji(l)})):e.type==="tree"&&Ji(e.leaves)}}function rr(e){return F(e)?e:e?[e]:[]}function Zd(e){return(F(e)?e[0]:e)||{}}function ZD(e,t){De(rr(e.series),function(n){Da(n)&&$D(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),De(r,function(n){De(rr(e[n]),function(i){i&&(Tt(i,"axisLabel"),Tt(i.axisPointer,"label"))})}),De(rr(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Tt(i,"axisLabel"),Tt(i&&i.axisPointer,"label")}),De(rr(e.calendar),function(n){kt(n,"itemStyle"),Tt(n,"dayLabel"),Tt(n,"monthLabel"),Tt(n,"yearLabel")}),De(rr(e.radar),function(n){Tt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),De(rr(e.geo),function(n){Da(n)&&(ve(n),De(rr(n.regions),function(i){ve(i)}))}),De(rr(e.timeline),function(n){ve(n),kt(n,"label"),kt(n,"itemStyle"),kt(n,"controlStyle",!0);var i=n.data;F(i)&&T(i,function(a){Y(a)&&(kt(a,"label"),kt(a,"itemStyle"))})}),De(rr(e.toolbox),function(n){kt(n,"iconStyle"),De(n.feature,function(i){kt(i,"iconStyle")})}),Tt(Zd(e.axisPointer),"label"),Tt(Zd(e.tooltip).axisPointer,"label")}function jD(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function KD(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function jd(e){e&&T(QD,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var QD=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],JD=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],xl=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Oi(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<xl.length;r++){var n=xl[r][1],i=xl[r][0];t[n]!=null&&(t[i]=t[n])}}function Kd(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Qd(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function tA(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function F0(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&F0(e[r].children,t)}function z0(e,t){ZD(e,t),e.series=$t(e.series),T(e.series,function(r){if(Y(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),Kd(r.label);var i=r.data;if(i&&!jt(i))for(var a=0;a<i.length;a++)Kd(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=jD(r,"pointer.color");o!=null&&KD(r,"itemStyle.color",o)}else if(n==="bar"){Oi(r),Oi(r.backgroundStyle),Oi(r.emphasis);var i=r.data;if(i&&!jt(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Oi(i[a]),Oi(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),Qd(r),F0(r.data,Qd)}else n==="graph"||n==="sankey"?tA(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&ft(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),jd(r)}}),e.dataRange&&(e.visualMap=e.dataRange),T(JD,function(r){var n=e[r];n&&(F(n)||(n=[n]),T(n,function(i){jd(i)}))})}function eA(e){var t=et();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),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;i.push(o)}}),t.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),T(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),rA(r)}})}function rA(e){T(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,f,h){var v=o.get(t.stackedDimension,h);if(isNaN(v))return i;var c,d;s?d=o.getRawIndex(h):c=o.get(t.stackedByDimension,h);for(var p=NaN,g=r-1;g>=0;g--){var y=e[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,c)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(u==="all"||u==="positive"&&m>0||u==="negative"&&m<0||u==="samesign"&&v>=0&&m>0||u==="samesign"&&v<=0&&m<0){v=tw(v,m),p=m;break}}}return n[0]=v,n[1]=p,n})})}var ue=(function(){function e(){this.group=new Kt,this.uid=du("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e})();_h(ue);$s(ue);var Jd=mt(),tp={itemStyle:da(Sm,!0),lineStyle:da(_m,!0)},nA={lineStyle:"stroke",itemStyle:"fill"};function G0(e,t){var r=e.visualStyleMapper||tp[t];return r||(console.warn("Unknown style type '"+t+"'."),tp.itemStyle)}function H0(e,t){var r=e.visualDrawType||nA[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var iA={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=G0(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=H0(e,n),l=o[u],f=Q(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var v=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[u]||(o[u]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Q(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||Q(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var p=e.getDataParams(d),g=E({},o);g[u]=f(p),c.setItemVisual(d,"style",g)}}}},ki=new pt,aA={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=G0(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){ki.option=u[n];var l=i(ki),f=o.ensureUniqueItemVisual(s,"style");E(f,l),ki.option.decal&&(o.setItemVisual(s,"decal",ki.option.decal),ki.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},oA={performRawSeries:!0,overallReset:function(e){var t=et();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Jd(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Jd(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=H0(r,s);a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var v=a.ensureUniqueItemVisual(f,"style"),c=n.getName(l)||l+"",d=n.count();v[u]=r.getColorFromPalette(c,o,d)}})}})}},Co=Math.PI;function sA(e,t){t=t||{},ft(t,{text:"loading",textColor:q.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Kt,n=new wt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new Nt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new wt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new Va({shape:{startAngle:-Co/2,endAngle:-Co/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Co*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Co*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var V0=(function(){function e(t,r,n,i){this._stageTaskMap=et(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=et();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;T(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";Ke(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;T(t,function(u,l){if(!(i.visualType&&i.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,i.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(a=!0)}else h&&h.each(function(g,y){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!u.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=et(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||ha({plan:cA,reset:vA,count:pA}));c.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,c)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||ha({reset:uA});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=et(),l=t.seriesType,f=t.getTargetSeries,h=!0,v=!1,c="";Ke(!t.createOnAllSeries,c),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):(h=!1,T(n.getSeries(),d));function d(p){var g=p.uid,y=u.set(g,s&&s.get(g)||(v=!0,ha({reset:lA,onDirty:hA})));y.context={model:p,overallProgress:h},y.agent=o,y.__block=h,a._pipe(p,y)}v&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return Q(t)&&(t={overallReset:t,seriesType:gA(t)}),t.uid=du("stageHandler"),r&&(t.visualType=r),t},e})();function uA(e){e.overallReset(e.ecModel,e.api,e.payload)}function lA(e){return e.overallProgress&&fA}function fA(){this.agent.dirty(),this.getDownstream().dirty()}function hA(){this.agent&&this.agent.dirty()}function cA(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function vA(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=$t(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?X(t,function(r,n){return W0(n)}):dA}var dA=W0(0);function W0(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function pA(e){return e.data.count()}function gA(e){Is=null;try{e(Aa,U0)}catch{}return Is}var Aa={},U0={},Is;Y0(Aa,mc);Y0(U0,N0);Aa.eachSeriesByType=Aa.eachRawSeriesByType=function(e){Is=e};Aa.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Is=e.subType)};function Y0(e,t){for(var r in t.prototype)e[r]=Xt}var N=q.darkColor,yA=N.background,Bi=function(){return{axisLine:{lineStyle:{color:N.axisLine}},splitLine:{lineStyle:{color:N.axisSplitLine}},splitArea:{areaStyle:{color:[N.backgroundTint,N.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:N.axisMinorSplitLine}},axisLabel:{color:N.axisLabel},axisName:{}}},ep={label:{color:N.secondary},itemStyle:{borderColor:N.borderTint},dividerLineStyle:{color:N.border}},X0={darkMode:!0,color:N.theme,backgroundColor:yA,axisPointer:{lineStyle:{color:N.border},crossStyle:{color:N.borderShade},label:{color:N.tertiary}},legend:{textStyle:{color:N.secondary},pageTextStyle:{color:N.tertiary}},textStyle:{color:N.secondary},title:{textStyle:{color:N.primary},subtextStyle:{color:N.quaternary}},toolbox:{iconStyle:{borderColor:N.accent50}},tooltip:{backgroundColor:N.neutral20,defaultBorderColor:N.border,textStyle:{color:N.tertiary}},dataZoom:{borderColor:N.accent10,textStyle:{color:N.tertiary},brushStyle:{color:N.backgroundTint},handleStyle:{color:N.neutral00,borderColor:N.accent20},moveHandleStyle:{color:N.accent40},emphasis:{handleStyle:{borderColor:N.accent50}},dataBackground:{lineStyle:{color:N.accent30},areaStyle:{color:N.accent20}},selectedDataBackground:{lineStyle:{color:N.accent50},areaStyle:{color:N.accent30}}},visualMap:{textStyle:{color:N.secondary},handleStyle:{borderColor:N.neutral30}},timeline:{lineStyle:{color:N.accent10},label:{color:N.tertiary},controlStyle:{color:N.accent30,borderColor:N.accent30}},calendar:{itemStyle:{color:N.neutral00,borderColor:N.neutral20},dayLabel:{color:N.tertiary},monthLabel:{color:N.secondary},yearLabel:{color:N.secondary}},matrix:{x:ep,y:ep,backgroundColor:{borderColor:N.axisLine},body:{itemStyle:{borderColor:N.borderTint}}},timeAxis:Bi(),logAxis:Bi(),valueAxis:Bi(),categoryAxis:Bi(),line:{symbol:"circle"},graph:{color:N.theme},gauge:{title:{color:N.secondary},axisLine:{lineStyle:{color:[[1,N.neutral05]]}},axisLabel:{color:N.axisLabel},detail:{color:N.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:N.background}},radar:(function(){var e=Bi();return e.axisName={color:N.axisLabel},e.axisLine.lineStyle.color=N.neutral20,e})(),treemap:{breadcrumb:{itemStyle:{color:N.neutral20,textStyle:{color:N.secondary}},emphasis:{itemStyle:{color:N.neutral30}}}},sunburst:{itemStyle:{borderColor:N.background}},map:{itemStyle:{borderColor:N.border,areaColor:N.neutral10},label:{color:N.tertiary},emphasis:{label:{color:N.primary},itemStyle:{areaColor:N.highlight}},select:{label:{color:N.primary},itemStyle:{areaColor:N.highlight}}},geo:{itemStyle:{borderColor:N.border,areaColor:N.neutral10},emphasis:{label:{color:N.primary},itemStyle:{areaColor:N.highlight}},select:{label:{color:N.primary},itemStyle:{color:N.highlight}}}};X0.categoryAxis.splitLine.show=!1;var mA=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(U(t)){var a=Ue(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(t,function(u,l){for(var f=!1,h=0;h<o.length;h++){var v=o[h],c=l.lastIndexOf(v);if(c>0&&c===l.length-v.length){var d=l.slice(0,c);d!=="data"&&(r.mainType=d,r[v.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),Hf=["symbol","symbolSize","symbolRotate","symbolOffset"],rp=Hf.concat(["symbolKeepAspect"]),_A={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Hf.length;o++){var s=Hf[o],u=e.get(s);Q(u)?(a=!0,i[s]=u):n[s]=u}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(E({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var l=yt(i);function f(h,v){for(var c=e.getRawValue(v),d=e.getDataParams(v),p=0;p<l.length;p++){var g=l[p];h.setItemVisual(v,g,i[g](c,d))}}return{dataEach:a?f:null}}},SA={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<rp.length;s++){var u=rp[s],l=o.getShallow(u,!0);l!=null&&i.setItemVisual(a,u,l)}}return{dataEach:r.hasItemOption?n:null}}};function bA(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function wA(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function ta(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var xA=Math.round(Math.random()*9),TA=typeof Object.defineProperty=="function",CA=(function(){function e(){this._id="__ec_inner_"+xA++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return TA?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e})();function wn(e){return isFinite(e)}function MA(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=wn(n)?n:0,i=wn(i)?i:1,a=wn(a)?a:0,o=wn(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function DA(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,u=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,u=u*a),o=wn(o)?o:.5,s=wn(s)?s:.5,u=u>=0&&wn(u)?u:.5;var l=e.createRadialGradient(o,s,0,o,s,u);return l}function Vf(e,t,r){for(var n=t.type==="radial"?DA(e,t,r):MA(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function AA(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Mo(e){return parseInt(e,10)}function Do(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Mo(s[n])||Mo(e.style[n]))-(Mo(s[a])||0)-(Mo(s[o])||0)|0}function LA(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:ht(e)?[e]:F(e)?e:null}function q0(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&LA(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=X(r,function(a){return a/i}),n/=i)}return[r,n]}var PA=new ci(!0);function Rs(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function np(e){return typeof e=="string"&&e!=="none"}function Es(e){var t=e.fill;return t!=null&&t!=="none"}function ip(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function ap(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Wf(e,t,r){var n=Ug(t.image,t.__image,r);if(Zs(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Gg),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function IA(e,t,r,n){var i,a=Rs(r),o=Es(r),s=r.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||PA,h=t.__dirty;if(!n){var v=r.fill,c=r.stroke,d=o&&!!v.colorStops,p=a&&!!c.colorStops,g=o&&!!v.image,y=a&&!!c.image,m=void 0,_=void 0,S=void 0,w=void 0,b=void 0;(d||p)&&(b=t.getBoundingRect()),d&&(m=h?Vf(e,v,b):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=h?Vf(e,c,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?Wf(e,v,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(w=h||!t.__canvasStrokePattern?Wf(e,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),d?e.fillStyle=m:g&&(S?e.fillStyle=S:o=!1),p?e.strokeStyle=_:y&&(w?e.strokeStyle=w:a=!1)}var x=t.getGlobalScale();f.setScale(x[0],x[1],t.segmentIgnoreThreshold);var C,D;e.setLineDash&&r.lineDash&&(i=q0(t),C=i[0],D=i[1]);var A=!0;(l||h&ti)&&(f.setDPR(e.dpr),u?f.setContext(null):(f.setContext(e),A=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(e,u?s:1),C&&(e.setLineDash(C),e.lineDashOffset=D),n||(r.strokeFirst?(a&&ap(e,r),o&&ip(e,r)):(o&&ip(e,r),a&&ap(e,r))),C&&e.setLineDash([])}function RA(e,t,r){var n=t.__image=Ug(r.image,t.__image,t,t.onload);if(!(!n||!Zs(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),u=n.width/n.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var l=r.sx||0,f=r.sy||0;e.drawImage(n,l,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var l=r.sx,f=r.sy,h=o-l,v=s-f;e.drawImage(n,l,f,h,v,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function EA(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Fr,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=q0(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Rs(r)&&e.strokeText(i,r.x,r.y),Es(r)&&e.fillText(i,r.x,r.y)):(Es(r)&&e.fillText(i,r.x,r.y),Rs(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var op=["shadowBlur","shadowOffsetX","shadowOffsetY"],sp=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function $0(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){ee(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Dn.opacity:o}(n||t.blend!==r.blend)&&(a||(ee(e,i),a=!0),e.globalCompositeOperation=t.blend||Dn.blend);for(var s=0;s<op.length;s++){var u=op[s];(n||t[u]!==r[u])&&(a||(ee(e,i),a=!0),e[u]=e.dpr*(t[u]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(ee(e,i),a=!0),e.shadowColor=t.shadowColor||Dn.shadowColor),a}function up(e,t,r,n,i){var a=La(t,i.inHover),o=n?null:r&&La(r,i.inHover)||{};if(a===o)return!1;var s=$0(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(ee(e,i),s=!0),np(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(ee(e,i),s=!0),np(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(ee(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(ee(e,i),s=!0),e.lineWidth=l)}for(var f=0;f<sp.length;f++){var h=sp[f],v=h[0];(n||a[v]!==o[v])&&(s||(ee(e,i),s=!0),e[v]=a[v]||h[1])}return s}function OA(e,t,r,n,i){return $0(e,La(t,i.inHover),r&&La(r,i.inHover),n,i)}function Z0(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function kA(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),Z0(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function BA(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var lp=1,fp=2,hp=3,cp=4;function NA(e){var t=Es(e),r=Rs(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function ee(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function La(e,t){return t&&e.__hoverStyle||e.style}function _c(e,t){xn(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function xn(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~ie,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,u=!1;if((!o||AA(a,o))&&(o&&o.length&&(ee(e,r),e.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(ee(e,r),e.save(),kA(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var f=t instanceof ct&&t.autoBatch&&NA(t.style);s||BA(i,l.transform)?(ee(e,r),Z0(e,t)):f||ee(e,r);var h=La(t,r.inHover);t instanceof ct?(r.lastDrawType!==lp&&(u=!0,r.lastDrawType=lp),up(e,t,l,u,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),IA(e,t,h,f),f&&(r.batchFill=h.fill||"",r.batchStroke=h.stroke||"")):t instanceof ds?(r.lastDrawType!==hp&&(u=!0,r.lastDrawType=hp),up(e,t,l,u,r),EA(e,t,h)):t instanceof Yr?(r.lastDrawType!==fp&&(u=!0,r.lastDrawType=fp),OA(e,t,l,u,r),RA(e,t,h)):t.getTemporalDisplayables&&(r.lastDrawType!==cp&&(u=!0,r.lastDrawType=cp),FA(e,t,r)),f&&n&&ee(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function FA(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var u=n[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),xn(e,u,a,o===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}for(var l=0,f=i.length;l<f;l++){var u=i[l];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),xn(e,u,a,l===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Tl=new CA,vp=new fi(100),dp=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Uf(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&Tl.delete(e);var a=Tl.get(e);if(a)return a;var o=ft(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,Tl.set(e,s),e.dirty=!1,s;function u(l){for(var f=[r],h=!0,v=0;v<dp.length;++v){var c=o[dp[v]];if(c!=null&&!F(c)&&!U(c)&&!ht(c)&&typeof c!="boolean"){h=!1;break}f.push(c)}var d;if(h){d=f.join(",")+(i?"-svg":"");var p=vp.get(d);p&&(i?l.svgElement=p:l.image=p)}var g=K0(o.dashArrayX),y=zA(o.dashArrayY),m=j0(o.symbol),_=GA(g),S=Q0(y),w=!i&&we.createCanvas(),b=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=D(),C;w&&(w.width=x.width*r,w.height=x.height*r,C=w.getContext("2d")),A(),h&&vp.put(d,w||b),l.image=w,l.svgElement=b,l.svgWidth=x.width,l.svgHeight=x.height;function D(){for(var M=1,I=0,L=_.length;I<L;++I)M=_v(M,_[I]);for(var P=1,I=0,L=m.length;I<L;++I)P=_v(P,m[I].length);M*=P;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function A(){C&&(C.clearRect(0,0,w.width,w.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,w.width,w.height)));for(var M=0,I=0;I<y.length;++I)M+=y[I];if(M<=0)return;for(var L=-S,P=0,R=0,k=0;L<x.height;){if(P%2===0){for(var W=R/2%m.length,O=0,z=0,H=0;O<x.width*2;){for(var G=0,I=0;I<g[k].length;++I)G+=g[k][I];if(G<=0)break;if(z%2===0){var B=(1-o.symbolSize)*.5,tt=O+g[k][z]*B,vt=L+y[P]*B,zt=g[k][z]*o.symbolSize,re=y[P]*o.symbolSize,Gt=H/2%m[W].length;Et(tt,vt,zt,re,m[W][Gt])}O+=g[k][z],++H,++z,z===g[k].length&&(z=0)}++k,k===g.length&&(k=0)}L+=y[P],++R,++P,P===y.length&&(P=0)}function Et(Pt,xt,Z,nt,Be){var Dt=i?1:r,yr=pu(Be,Pt*Dt,xt*Dt,Z*Dt,nt*Dt,o.color,o.symbolKeepAspect);if(i){var tr=n.painter.renderOneToVNode(yr);tr&&b.children.push(tr)}else _c(C,yr)}}}}function j0(e){if(!e||e.length===0)return[["rect"]];if(U(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!U(e[r])){t=!1;break}if(t)return j0([e]);for(var n=[],r=0;r<e.length;++r)U(e[r])?n.push([e[r]]):n.push(e[r]);return n}function K0(e){if(!e||e.length===0)return[[0,0]];if(ht(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!ht(e[n])){r=!1;break}if(r)return K0([e]);for(var i=[],n=0;n<e.length;++n)if(ht(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=X(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function zA(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(ht(e)){var t=Math.ceil(e);return[t,t]}var r=X(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function GA(e){return X(e,function(t){return Q0(t)})}function Q0(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function HA(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var u=n.ensureUniqueItemVisual(o,"style");u.decal=Uf(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Uf(i,t)}}})}var Pe=new Je,J0={};function VA(e,t){J0[e]=t}function t_(e){return J0[e]}var WA="6.0.0",UA={zrender:"6.0.0"},YA=1,XA=800,qA=900,$A=1e3,ZA=2e3,jA=5e3,e_=1e3,KA=1100,Sc=2e3,r_=3e3,QA=4e3,yu=4500,JA=4600,tL=5e3,eL=6e3,n_=7e3,i_={PROCESSOR:{FILTER:$A,SERIES_FILTER:XA,STATISTIC:jA},VISUAL:{LAYOUT:e_,PROGRESSIVE_LAYOUT:KA,GLOBAL:Sc,CHART:r_,POST_CHART_LAYOUT:JA,COMPONENT:QA,BRUSH:tL,CHART_ITEM:yu,ARIA:eL,DECAL:n_}},Mt="__flagInMainProcess",Ao="__mainProcessVersion",At="__pendingUpdate",Cl="__needsUpdateStatus",pp=/^[a-zA-Z0-9_]+$/,Ml="__connectUpdateStatus",gp=0,rL=1,nL=2;function a_(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return s_(this,e,t)}}function o_(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return s_(this,e,t)}}function s_(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Je.prototype[t].apply(e,r)}var u_=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Je),l_=u_.prototype;l_.on=o_("on");l_.off=o_("off");var gn,Dl,Lo,nr,Po,Al,Ll,jn,Kn,yp,mp,Pl,_p,Io,Sp,f_,fe,bp,Qn,Os=(function(e){V(t,e);function t(r,n,i){var a=e.call(this,new mA)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a._dom=r;var o="canvas",s="auto",u=!1;a[Ao]=1,i.ssr&&O0(function(v){var c=lt(v),d=c.dataIndex;if(d!=null){var p=et();return p.set("series_index",c.seriesIndex),p.set("data_index",d),c.ssrType&&p.set("ssr_type",c.ssrType),p}});var l=a._zr=zf(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:$(i.useDirtyRect,u),useCoarsePointer:$(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=gu(ut(l.flush,l),17),a._updateTheme(n),a._locale=FT(i.locale||Ym),a._coordSysMgr=new vu;var f=a._api=Sp(a);function h(v,c){return v.__prio-c.__prio}return Jo(Bs,h),Jo(qf,h),a._scheduler=new V0(a,f,qf,Bs),a._messageCenter=new u_,a._initEvents(),a.resize=ut(a.resize,a),l.animation.on("frame",a._onframe,a),yp(l,a),mp(l,a),is(a),a}return t.prototype._onframe=function(){if(!this._disposed){bp(this);var r=this._scheduler;if(this[At]){var n=this[At].silent;this[Mt]=!0,Qn(this);try{gn(this),nr.update.call(this,null,this[At].updateParams)}catch(u){throw this[Mt]=!1,this[At]=null,u}this._zr.flush(),this[Mt]=!1,this[At]=null,jn.call(this,n),Kn.call(this,n)}else if(r.unfinished){var i=YA,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),Al(this,a),r.performVisualTasks(a),Io(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Mt]){if(this._disposed){this.id;return}var a,o,s;if(Y(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Mt]=!0,Qn(this),!this._model||n){var u=new WD(this._api),l=this._theme,f=this._model=new mc;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},$f);var h={seriesTransition:s,optionChanged:!0};if(i)this[At]={silent:a,updateParams:h},this[Mt]=!1,this.getZr().wakeUp();else{try{gn(this),nr.update.call(this,null,h)}catch(v){throw this[At]=null,this[Mt]=!1,v}this._ssr||this._zr.flush(),this[At]=null,this[Mt]=!1,jn.call(this,a),Kn.call(this,a)}}},t.prototype.setTheme=function(r,n){if(!this[Mt]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[At]&&(a==null&&(a=this[At].silent),o=this[At].updateParams,this[At]=null),this[Mt]=!0,Qn(this);try{this._updateTheme(r),i.setTheme(this._theme),gn(this),nr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Mt]=!1,s}this[Mt]=!1,jn.call(this,a),Kn.call(this,a)}}},t.prototype._updateTheme=function(r){U(r)&&(r=h_[r]),r&&(r=rt(r),r&&z0(r,!0),this._theme=r)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||j.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return T(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;T(n,function(u){i.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return T(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Ns[i]){var u=s,l=s,f=-s,h=-s,v=[],c=r&&r.pixelRatio||this.getDevicePixelRatio();T(Pn,function(_,S){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(rt(r)),b=_.getDom().getBoundingClientRect();u=a(b.left,u),l=a(b.top,l),f=o(b.right,f),h=o(b.bottom,h),v.push({dom:w,left:b.left,top:b.top})}}),u*=c,l*=c,f*=c,h*=c;var d=f-u,p=h-l,g=we.createCanvas(),y=zf(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return T(v,function(_){var S=_.left-u,w=_.top-l;m+='<g transform="translate('+S+","+w+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new wt({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),T(v,function(_){var S=new Yr({style:{x:_.left*c-u,y:_.top*c-l,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n,i){return Po(this,"convertToPixel",r,n,i)},t.prototype.convertToLayout=function(r,n,i){return Po(this,"convertToLayout",r,n,i)},t.prototype.convertFromPixel=function(r,n,i){return Po(this,"convertFromPixel",r,n,i)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Wu(i,r);return T(o,function(s,u){u.indexOf("Models")>=0&&T(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,l))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Wu(i,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?bA(s,u,n):wA(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;T(iL,function(i){var a=function(o){var s=r.getModel(),u=o.target,l,f=i==="globalout";if(f?l={}:u&&ta(u,function(p){var g=lt(p);if(g&&g.dataIndex!=null){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return l=y&&y.getDataParams(g.dataIndex,g.dataType,u)||{},!0}else if(g.eventData)return l=E({},g.eventData),!0},!0),l){var h=l.componentType,v=l.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",v=l.seriesIndex);var c=h&&v!=null&&s.getComponent(h,v),d=c&&r[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];l.event=o,l.type=i,r._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:c,view:d},r.trigger(i,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;T(Xf,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),IM(n,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Ry(this.getDom(),wc,"");var n=this,i=n._api,a=n._model;T(n._componentsViews,function(o){o.dispose(a,i)}),T(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Pn[n.id]},t.prototype.resize=function(r){if(!this[Mt]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[At]&&(a==null&&(a=this[At].silent),i=!0,this[At]=null),this[Mt]=!0,Qn(this);try{i&&gn(this),nr.update.call(this,{type:"resize",animation:E({duration:0},r&&r.animation)})}catch(o){throw this[Mt]=!1,o}this[Mt]=!1,jn.call(this,a),Kn.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Y(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Zf[r]){var i=Zf[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=E({},r);return n.type=Yf[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Y(n)||(n={silent:!!n}),!!ks[r.type]&&this._model){if(this[Mt]){this._pendingActions.push(r);return}var i=n.silent;Ll.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&j.browser.weChat&&this._throttledZrFlush(),jn.call(this,i),Kn.call(this,i)}},t.prototype.updateLabelLayout=function(){Pe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){gn=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),Dl(h,!0),Dl(h,!1),v.plan()},Dl=function(h,v){for(var c=h._model,d=h._scheduler,p=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<p.length;_++)p[_].__alive=!1;v?c.eachComponent(function(b,x){b!=="series"&&S(x)}):c.eachSeries(S);function S(b){var x=b.__requireNewView;b.__requireNewView=!1;var C="_ec_"+b.id+"_"+b.type,D=!x&&g[C];if(!D){var A=Ue(b.type),M=v?ue.getClass(A.main,A.sub):be.getClass(A.sub);D=new M,D.init(c,m),g[C]=D,p.push(D),y.add(D.group)}b.__viewId=D.__id=C,D.__alive=!0,D.__model=b,D.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!v&&d.prepareView(D,b,c,m)}for(var _=0;_<p.length;){var w=p[_];w.__alive?_++:(!v&&w.renderTask.dispose(),y.remove(w.group),w.dispose(c,m),p.splice(_,1),g[w.__id]===w&&delete g[w.__id],w.__id=w.group.__ecComponentInfo=null)}},Lo=function(h,v,c,d,p){var g=h._model;if(g.setUpdatePayload(c),!d){T([].concat(h._componentsViews).concat(h._chartsViews),w);return}var y={};y[d+"Id"]=c[d+"Id"],y[d+"Index"]=c[d+"Index"],y[d+"Name"]=c[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=c.excludeSeriesId,S;_!=null&&(S=et(),T($t(_),function(b){var x=$e(b,null);x!=null&&S.set(x,!0)})),g&&g.eachComponent(m,function(b){var x=S&&S.get(b.id)!=null;if(!x)if(Av(c))if(b instanceof se)c.type===An&&!c.notBlur&&!b.get(["emphasis","disabled"])&&Ew(b,c,h._api);else{var C=Oh(b.mainType,b.componentIndex,c.name,h._api),D=C.focusSelf,A=C.dispatchers;c.type===An&&D&&!c.notBlur&&mf(b.mainType,b.componentIndex,h._api),A&&T(A,function(M){c.type===An?pf(M):gf(M)})}else Sf(c)&&b instanceof se&&(Bw(b,c,h._api),Mv(b),fe(h))},h),g&&g.eachComponent(m,function(b){var x=S&&S.get(b.id)!=null;x||w(h[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},h);function w(b){b&&b.__alive&&b[v]&&b[v](b.__model,g,h._api,c)}},nr={prepareAndUpdate:function(h){gn(this),nr.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,v){var c=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(c){c.setUpdatePayload(h),y.restoreData(c,h),y.performSeriesTasks(c),g.create(c,d),y.performDataProcessorTasks(c,h),Al(this,c),g.update(c,d),n(c),y.performVisualTasks(c,h);var m=c.get("backgroundColor")||"transparent";p.setBackgroundColor(m);var _=c.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),Pl(this,c,d,h,v),Pe.trigger("afterupdate",c,d)}},updateTransform:function(h){var v=this,c=this._model,d=this._api;if(c){c.setUpdatePayload(h);var p=[];c.eachComponent(function(y,m){if(y!=="series"){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,c,d,h);S&&S.update&&p.push(_)}else p.push(_)}});var g=et();c.eachSeries(function(y){var m=v._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,c,d,h);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),n(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:g}),Io(this,c,d,h,{},g),Pe.trigger("afterupdate",c,d)}},updateView:function(h){var v=this._model;v&&(v.setUpdatePayload(h),be.markUpdateMethod(h,"updateView"),n(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0}),Pl(this,v,this._api,h,{}),Pe.trigger("afterupdate",v,this._api))},updateVisual:function(h){var v=this,c=this._model;c&&(c.setUpdatePayload(h),c.eachSeries(function(d){d.getData().clearAllVisual()}),be.markUpdateMethod(h,"updateVisual"),n(c),this._scheduler.performVisualTasks(c,h,{visualType:"visual",setDirty:!0}),c.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,c,v._api,h)}}),c.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,c,v._api,h)}),Pe.trigger("afterupdate",c,this._api))},updateLayout:function(h){nr.update.call(this,h)}};function r(h,v,c,d,p){if(h._disposed){h.id;return}for(var g=h._model,y=h._coordSysMgr.getCoordinateSystems(),m,_=Wu(g,c),S=0;S<y.length;S++){var w=y[S];if(w[v]&&(m=w[v](g,_,d,p))!=null)return m}}Po=r,Al=function(h,v){var c=h._chartsMap,d=h._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,c[p.__viewId])})},Ll=function(h,v){var c=this,d=this.getModel(),p=h.type,g=h.escapeConnect,y=ks[p],m=(y.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&Ue(m[0]);this[Mt]=!0,Qn(this);var w=[h],b=!1;h.batch&&(b=!0,w=X(h.batch,function(k){return k=ft(E({},k),h),k.batch=null,k}));var x=[],C,D=[],A=y.nonRefinedEventType,M=Sf(h),I=Av(h);if(I&&Vy(this._api),T(w,function(k){var W=y.action(k,d,c._api);if(y.refineEvent?D.push(W):C=W,C=C||E({},k),C.type=A,x.push(C),I){var O=Ah(h),z=O.queryOptionMap,H=O.mainTypeSpecified,G=H?z.keys()[0]:"series";Lo(c,_,k,G),fe(c)}else M?(Lo(c,_,k,"series"),fe(c)):S&&Lo(c,_,k,S.main,S.sub)}),_!=="none"&&!I&&!M&&!S)try{this[At]?(gn(this),nr.update.call(this,h),this[At]=null):nr[_].call(this,h)}catch(k){throw this[Mt]=!1,k}if(b?C={type:A,escapeConnect:g,batch:x}:C=x[0],this[Mt]=!1,!v){var L=void 0;if(y.refineEvent){var P=y.refineEvent(D,h,d,this._api).eventContent;Ke(Y(P)),L=ft({type:y.refinedEventType},P),L.fromAction=h.type,L.fromActionPayload=h,L.escapeConnect=!0}var R=this._messageCenter;R.trigger(C.type,C),L&&R.trigger(L.type,L)}},jn=function(h){for(var v=this._pendingActions;v.length;){var c=v.shift();Ll.call(this,c,h)}},Kn=function(h){!h&&this.trigger("updated")},yp=function(h,v){h.on("rendered",function(c){v.trigger("rendered",c),h.animation.isFinished()&&!v[At]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},mp=function(h,v){h.on("mouseover",function(c){var d=c.target,p=ta(d,_f);p&&(Ow(p,c,v._api),fe(v))}).on("mouseout",function(c){var d=c.target,p=ta(d,_f);p&&(kw(p,c,v._api),fe(v))}).on("click",function(c){var d=c.target,p=ta(d,function(m){return lt(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=lt(p);v._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function n(h){h.clearColorPalette(),h.eachSeries(function(v){v.clearColorPalette()})}function i(h){var v=[],c=[],d=!1;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,w=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(m==="series"?c:v).push({zlevel:S,z:w,idx:_.componentIndex,type:m,key:b})}),d){var p=v.concat(c),g,y;Jo(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),T(p,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,w=m.key;g!=null&&(S=Math.max(g,S)),w?(S===g&&w!==y&&S++,y=w):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}Pl=function(h,v,c,d,p){i(v),_p(h,v,c,d,p),T(h._chartsViews,function(g){g.__alive=!1}),Io(h,v,c,d,p),T(h._chartsViews,function(g){g.__alive||g.remove(v,c)})},_p=function(h,v,c,d,p,g){T(g||h._componentsViews,function(y){var m=y.__model;l(m,y),y.render(m,v,c,d),u(m,y),f(m,y)})},Io=function(h,v,c,d,p,g){var y=h._scheduler;p=E(p||{},{updatedSeries:v.getSeries()}),Pe.trigger("series:beforeupdate",v,c,p);var m=!1;v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var w=S.renderTask;y.updatePayload(w,d),l(_,S),g&&g.get(_.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),Mv(_)}),y.unfinished=m||y.unfinished,Pe.trigger("series:layoutlabels",v,c,p),Pe.trigger("series:transition",v,c,p),v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];u(_,S),f(_,S)}),o(h,v),Pe.trigger("series:afterupdate",v,c,p)},fe=function(h){h[Cl]=!0,h.getZr().wakeUp()},Qn=function(h){h[Ao]=(h[Ao]+1)%1e3},bp=function(h){h[Cl]&&(h.getZr().storage.traverse(function(v){oa(v)||a(v)}),h[Cl]=!1)};function a(h){for(var v=[],c=h.currentStates,d=0;d<c.length;d++){var p=c[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}h.selected&&h.states.select&&v.push("select"),h.hoverState===Ih&&h.states.emphasis?v.push("emphasis"):h.hoverState===Ph&&h.states.blur&&v.push("blur"),h.useStates(v)}function o(h,v){var c=h._zr,d=c.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>v.get("hoverLayerThreshold")&&!j.node&&!j.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function u(h,v){if(!h.preventAutoZ){var c=pm(h);v.eachRendered(function(d){return gm(d,c.z,c.zlevel),!0})}}function l(h,v){v.eachRendered(function(c){if(!oa(c)){var d=c.getTextContent(),p=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function f(h,v){var c=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),p=c.get("duration"),g=p>0?{duration:p,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(oa(y))return;if(y instanceof ct&&Vw(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&a(y)}})}Sp=function(h){return new((function(v){V(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},c.prototype.enterEmphasis=function(d,p){pf(d,p),fe(h)},c.prototype.leaveEmphasis=function(d,p){gf(d,p),fe(h)},c.prototype.enterBlur=function(d){Rw(d),fe(h)},c.prototype.leaveBlur=function(d){Fy(d),fe(h)},c.prototype.enterSelect=function(d){zy(d),fe(h)},c.prototype.leaveSelect=function(d){Gy(d),fe(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},c.prototype.getMainProcessVersion=function(){return h[Ao]},c})(N0))(h)},f_=function(h){function v(c,d){for(var p=0;p<c.length;p++){var g=c[p];g[Ml]=d}}T(Yf,function(c,d){h._messageCenter.on(d,function(p){if(Ns[h.group]&&h[Ml]!==gp){if(p&&p.escapeConnect)return;var g=h.makeActionFromEvent(p),y=[];T(Pn,function(m){m!==h&&m.group===h.group&&y.push(m)}),v(y,gp),T(y,function(m){m[Ml]!==rL&&m.dispatchAction(g)}),v(y,nL)}})})}})(),t})(Je),bc=Os.prototype;bc.on=a_("on");bc.off=a_("off");bc.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var iL=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var ks={},Yf={},Xf={},qf=[],$f=[],Bs=[],h_={},Zf={},Pn={},Ns={},aL=+new Date-0,oL=+new Date-0,wc="_echarts_instance_";function sL(e,t,r){var n=!(r&&r.ssr);if(n){var i=xc(e);if(i)return i}var a=new Os(e,t,r);return a.id="ec_"+aL++,Pn[a.id]=a,n&&Ry(e,wc,a.id),f_(a),Pe.trigger("afterinit",a),a}function uL(e){if(F(e)){var t=e;e=null,T(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+oL++,T(t,function(r){r.group=e})}return Ns[e]=!0,e}function c_(e){Ns[e]=!1}var lL=c_;function fL(e){U(e)?e=Pn[e]:e instanceof Os||(e=xc(e)),e instanceof Os&&!e.isDisposed()&&e.dispose()}function xc(e){return Pn[Sw(e,wc)]}function hL(e){return Pn[e]}function Tc(e,t){h_[e]=t}function Cc(e){it($f,e)<0&&$f.push(e)}function Mc(e,t){Dc(qf,e,t,ZA)}function v_(e){mu("afterinit",e)}function d_(e){mu("afterupdate",e)}function mu(e,t){Pe.on(e,t)}function kn(e,t,r){var n,i,a,o,s;Q(t)&&(r=t,t=""),Y(e)?(n=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,r||(r=e.action),a=e.refineEvent):(n=e,i=t);function u(f){return f.toLowerCase()}i=u(i||n);var l=a?u(n):i;ks[n]||(Ke(pp.test(n)&&pp.test(i)),a&&Ke(i!==n),ks[n]={actionType:n,refinedEventType:i,nonRefinedEventType:l,update:o,action:r,refineEvent:a},Xf[i]=1,a&&s&&(Xf[l]=1),Yf[l]=n)}function p_(e,t){vu.register(e,t)}function cL(e){var t=vu.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function vL(e,t){}function g_(e,t){Dc(Bs,e,t,e_,"layout")}function Xr(e,t){Dc(Bs,e,t,r_,"visual")}var wp=[];function Dc(e,t,r,n,i){if((Q(t)||Y(t))&&(r=t,t=n),!(it(wp,r)>=0)){wp.push(r);var a=V0.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function Ac(e,t){Zf[e]=t}function dL(e){Ig({createCanvas:e})}function y_(e,t,r){var n=t_("registerMap");n&&n(e,t,r)}function pL(e){var t=t_("getMap");return t&&t(e)}var m_=_C;Xr(Sc,iA);Xr(yu,aA);Xr(yu,oA);Xr(Sc,_A);Xr(yu,SA);Xr(n_,HA);Cc(z0);Mc(qA,eA);Ac("default",sA);kn({type:An,event:An,update:An},Xt);kn({type:Xo,event:Xo,update:Xo},Xt);kn({type:ys,event:Rh,update:ys,action:Xt,refineEvent:Lc,publishNonRefinedEvent:!0});kn({type:df,event:Rh,update:df,action:Xt,refineEvent:Lc,publishNonRefinedEvent:!0});kn({type:ms,event:Rh,update:ms,action:Xt,refineEvent:Lc,publishNonRefinedEvent:!0});function Lc(e,t,r,n){return{eventContent:{selected:Nw(r),isFromClick:t.isFromClick||!1}}}Tc("default",{});Tc("dark",X0);var gL={},xp=[],yL={registerPreprocessor:Cc,registerProcessor:Mc,registerPostInit:v_,registerPostUpdate:d_,registerUpdateLifecycle:mu,registerAction:kn,registerCoordinateSystem:p_,registerLayout:g_,registerVisual:Xr,registerTransform:m_,registerLoading:Ac,registerMap:y_,registerImpl:VA,PRIORITY:i_,ComponentModel:ot,ComponentView:ue,SeriesModel:se,ChartView:be,registerComponentModel:function(e){ot.registerClass(e)},registerComponentView:function(e){ue.registerClass(e)},registerSeriesModel:function(e){se.registerClass(e)},registerChartView:function(e){be.registerClass(e)},registerCustomSeries:function(e,t){},registerSubTypeDefaulter:function(e,t){ot.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){E0(e,t)}};function Wr(e){if(F(e)){T(e,function(t){Wr(t)});return}it(xp,e)>=0||(xp.push(e),Q(e)&&(e={install:e}),e.install(yL))}var __={left:0,right:0,top:0,bottom:0},Fs=["25%","25%"],mL=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(r,n){var i=Ya(r.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&Hr(r.outerBounds,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&Hr(this.option.outerBounds,r.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:__,outerBoundsContain:"all",outerBoundsClampWidth:Fs[0],outerBoundsClampHeight:Fs[1],backgroundColor:q.color.transparent,borderWidth:1,borderColor:q.color.neutral30},t})(ot),S_=(function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e})(),jf=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",me).models[0]},t.type="cartesian2dAxis",t})(ot);Te(jf,S_);var b_={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:q.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:q.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[q.color.backgroundTint,q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:q.color.neutral00,borderColor:q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},_L=at({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},b_),Pc=at({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:q.color.axisMinorSplitLine,width:1}}},b_),SL=at({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Pc),bL=ft({logBase:10},Pc);const wL={category:_L,value:Pc,time:SL,log:bL};var xL=0,Kf=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++xL,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&X(n,TL);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!U(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,this._onCollect&&this._onCollect(t,r),r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r),this._onCollect&&this._onCollect(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=et(this.categories))},e})();function TL(e){return Y(e)&&e.value!=null?e.value:e+""}var CL={value:1,category:1,time:1,log:1},ML=null;function DL(){return ML}function Tp(e,t,r,n){T(CL,function(i,a){var o=at(at({},wL[a],!0),n,!0),s=(function(u){V(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,h){var v=Ca(this),c=v?Ya(f):{},d=h.getTheme();at(f,d.get(a+"Axis")),at(f,this.getDefaultOption()),f.type=Cp(f),v&&Hr(f,c,v)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Kf.createByAxisModel(this))},l.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.prototype.updateAxisBreaks=function(f){return{breaks:[]}},l.type=t+"Axis."+a,l.defaultOption=o,l})(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",Cp)}function Cp(e){return e.type||(e.data?"category":"value")}function Qf(e){return e.type==="interval"||e.type==="log"}function AL(e,t,r,n,i){var a={},o=a.interval=Mh(t/r,!0);n!=null&&o<n&&(o=a.interval=n),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=Pa(o),u=a.niceTickExtent=[Bt(Math.ceil(e[0]/o)*o,s),Bt(Math.floor(e[1]/o)*o,s)];return LL(u,e),a}function Il(e){var t=Math.pow(10,eu(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Bt(r*t)}function Pa(e){return vi(e)+2}function Mp(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function LL(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Mp(e,0,t),Mp(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Ic(e,t){return e>=t[0]&&e<=t[1]}var PL=(function(){function e(){this.normalize=Dp,this.scale=Ap}return e.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=ut(t.normalize,t),this.scale=ut(t.scale,t)):(this.normalize=Dp,this.scale=Ap)},e})();function Dp(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Ap(e,t){return e*(t[1]-t[0])+t[0]}function Jf(e,t,r){var n=Math.log(e);return[Math.log(r?t[0]:Math.max(0,t[0]))/n,Math.log(r?t[1]:Math.max(0,t[1]))/n]}var qr=(function(){function e(t){this._calculator=new PL,this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype._innerUnionExtent=function(t){var r=this._extent;this._innerSetExtent(t[0]<r[0]?t[0]:r[0],t[1]>r[1]?t[1]:r[1])},e.prototype.unionExtentFromData=function(t,r){this._innerUnionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){this._innerSetExtent(t,r)},e.prototype._innerSetExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},e.prototype.setBreaksFromOption=function(t){},e.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();$s(qr);var w_=(function(e){V(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Kf({})),F(i)&&(i=new Kf({categories:X(i,function(a){return Y(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:U(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return Ic(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},t.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,n.length);o<u;++o){var l=n[o];i[o]=l,a[l]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(qr);qr.registerClass(w_);var wr=Bt,gi=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},t.prototype.contain=function(r){return Ic(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=Pa(r)},t.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=xs(),u=[];if(!n)return u;r.breakTicks;var l=1e4;i[0]<a[0]&&(r.expandToNicedExtent?u.push({value:wr(a[0]-n,o)}):u.push({value:i[0]}));for(var f=function(d,p){return Math.round((p-d)/n)},h=a[0];h<=a[1];){if(u.push({value:h}),h=wr(h+n,o),this._brkCtx){var v=this._brkCtx.calcNiceTickMultiple(h,f);v>=0&&(h=wr(h+v*n,o))}if(u.length>0&&h===u[u.length-1].value)break;if(u.length>l)return[]}var c=u.length?u[u.length-1].value:a[1];return i[1]>c&&(r.expandToNicedExtent?u.push({value:wr(c+n,o)}):u.push({value:i[1]})),r.breakTicks,u},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),i=[],a=this.getExtent(),o=1;o<n.length;o++){var s=n[o],u=n[o-1];if(!(u.break||s.break)){for(var l=0,f=[],h=s.value-u.value,v=h/r,c=Pa(v);l<r-1;){var d=wr(u.value+(l+1)*v,c);d>a[0]&&d<a[1]&&f.push(d),l++}var p=xs();p&&p.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(g){return g},this._interval,a),i.push(f)}}return i},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=vi(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=wr(r.value,i,!0);return uc(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var s=AL(a,o,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(n[0]=wr(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=wr(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t})(qr);qr.registerClass(gi);var IL=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},x_=(function(e){V(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return Wa(r.value,nd[$T(la(this._minLevelUnit))]||nd.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return ZT(r,n,i,o,a)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=[];if(!n)return a;var o=this.getSetting("useUTC"),s=Ts(i[1],o);a.push({value:i[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var u=zL(this._minLevelUnit,this._approxInterval,o,i,this._getExtentSpanWithBreaks(),this._brkCtx);a=a.concat(u);var l=Ts(i[1],o);a.push({value:i[1],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}}),this.getSetting("useUTC");var f=Ln.length-1,h=0;return T(a,function(v){f=Math.min(f,it(Ln,v.time.upperTimeUnit)),h=Math.max(h,v.time.level)}),a},t.prototype.calcNiceExtent=function(r){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=_e,n[1]+=_e),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-_e}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var o=Ro.length,s=Math.min(IL(Ro,this._approxInterval,0,o),o-1);this._interval=Ro[s][1],this._intervalPrecision=Pa(this._interval),this._minLevelUnit=Ro[Math.max(s-1,0)][0]},t.prototype.parse=function(r){return ht(r)?r:+dr(r)},t.prototype.contain=function(r){return Ic(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.type="time",t})(gi),Ro=[["second",tc],["minute",ec],["hour",ua],["quarter-day",ua*6],["half-day",ua*12],["day",_e*1.2],["half-week",_e*3.5],["week",_e*7],["month",_e*31],["quarter",_e*95],["half-year",rd/2],["year",rd]];function RL(e,t,r,n){return Cs(new Date(t),e,n).getTime()===Cs(new Date(r),e,n).getTime()}function EL(e,t){return e/=_e,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function OL(e){var t=30*_e;return e/=t,e>6?6:e>3?3:e>2?2:1}function kL(e){return e/=ua,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Lp(e,t){return e/=t?ec:tc,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function BL(e){return Mh(e,!0)}function NL(e,t,r){var n=Math.max(0,it(Ln,t)-1);return Cs(new Date(e),Ln[n],r).getTime()}function FL(e,t){var r=new Date(0);r[e](1);var n=r.getTime();r[e](1+t);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function zL(e,t,r,n,i,a){var o=1e4,s=UT,u=0;function l(L,P,R,k,W,O,z){for(var H=FL(W,L),G=P,B=new Date(G);G<R&&G<=n[1]&&(z.push({value:G}),!(u++>o));)if(B[W](B[k]()+L),G=B.getTime(),a){var tt=a.calcNiceTickMultiple(G,H);tt>0&&(B[W](B[k]()+tt*L),G=B.getTime())}z.push({value:G,notAdd:!0})}function f(L,P,R){var k=[],W=!P.length;if(!RL(la(L),n[0],n[1],r)){W&&(P=[{value:NL(n[0],L,r)},{value:n[1]}]);for(var O=0;O<P.length-1;O++){var z=P[O].value,H=P[O+1].value;if(z!==H){var G=void 0,B=void 0,tt=void 0,vt=!1;switch(L){case"year":G=Math.max(1,Math.round(t/_e/365)),B=Xm(r),tt=jT(r);break;case"half-year":case"quarter":case"month":G=OL(t),B=rc(r),tt=qm(r);break;case"week":case"half-week":case"day":G=EL(t),B=nc(r),tt=$m(r),vt=!0;break;case"half-day":case"quarter-day":case"hour":G=kL(t),B=ic(r),tt=Zm(r);break;case"minute":G=Lp(t,!0),B=ac(r),tt=jm(r);break;case"second":G=Lp(t,!1),B=oc(r),tt=Km(r);break;case"millisecond":G=BL(t),B=sc(r),tt=Qm(r);break}H>=n[0]&&z<=n[1]&&l(G,z,H,B,tt,vt,k),L==="year"&&R.length>1&&O===0&&R.unshift({value:R[0].value-G})}}for(var O=0;O<k.length;O++)R.push(k[O])}}for(var h=[],v=[],c=0,d=0,p=0;p<s.length;++p){var g=la(s[p]);if(qT(s[p])){f(s[p],h[h.length-1]||[],v);var y=s[p+1]?la(s[p+1]):null;if(g!==y){if(v.length){d=c,v.sort(function(L,P){return L.value-P.value});for(var m=[],_=0;_<v.length;++_){var S=v[_].value;(_===0||v[_-1].value!==S)&&(m.push(v[_]),S>=n[0]&&S<=n[1]&&c++)}var w=i/t;if(c>w*1.5&&d>w/1.5||(h.push(m),c>w||e===s[p]))break}v=[]}}}for(var b=Ct(X(h,function(L){return Ct(L,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(L){return L.length>0}),x=[],C=b.length-1,p=0;p<b.length;++p)for(var D=b[p],A=0;A<D.length;++A){var M=Ts(D[A].value,r);x.push({value:D[A].value,time:{level:C-p,upperTimeUnit:M,lowerTimeUnit:M}})}x.sort(function(L,P){return L.value-P.value});for(var I=[],p=0;p<x.length;++p)(p===0||x[p].value!==x[p-1].value)&&I.push(x[p]);return I}qr.registerClass(x_);var th=Bt,GL=Math.floor,HL=Math.ceil,Eo=Math.pow,Oo=Math.log,T_=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new gi,r}return t.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),a=e.prototype.getTicks.call(this,r),o=this.base;return this._originalScale._innerGetBreaks(),X(a,function(s){var u=s.value,l=null,f=Eo(o,u);u===n[0]&&this._fixMin?l=i[0]:u===n[1]&&this._fixMax&&(l=i[1]);var h;return l!=null&&(f=Rl(f,l)),{value:f,break:h}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(r,n){this._originalScale.setExtent(r,n);var i=Jf(this.base,[r,n]);e.prototype.setExtent.call(this,i[0],i[1])},t.prototype.getExtent=function(){var r=this.base,n=e.prototype.getExtent.call(this);n[0]=Eo(r,n[0]),n[1]=Eo(r,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=Rl(n[0],i[0])),this._fixMax&&(n[1]=Rl(n[1],i[1])),n},t.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var i=Jf(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(i)},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(!(!isFinite(i)||i<=0)){var a=Cy(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[th(HL(n[0]/a)*a),th(GL(n[1]/a)*a)];this._interval=a,this._intervalPrecision=Pa(a),this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){e.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.contain=function(r){return r=Oo(r)/Oo(this.base),e.prototype.contain.call(this,r)},t.prototype.normalize=function(r){return r=Oo(r)/Oo(this.base),e.prototype.normalize.call(this,r)},t.prototype.scale=function(r){return r=e.prototype.scale.call(this,r),Eo(this.base,r)},t.prototype.setBreaksFromOption=function(r){},t.type="log",t})(gi);function Rl(e,t){return th(e,vi(t))}qr.registerClass(T_);var VL=(function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;Q(o)?this._modelMinNum=ko(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=ko(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(Q(s)?this._modelMaxNum=ko(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=ko(t,s)),i)this._axisDataLen=r.getCategories().length;else{var u=r.get("boundaryGap"),l=F(u)?u:[u||0,u||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[zr(l[0],1),zr(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,l=s!=null,f=u!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),u==null&&(u=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(u==null||!isFinite(u))&&(u=NaN);var h=li(s)||li(u)||t&&!i;this._needCrossZero&&(s>0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,l=!0),c!=null&&(u=c,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},e.prototype.modifyDataMinMax=function(t,r){this[UL[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=WL[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e})(),WL={min:"_determinedMin",max:"_determinedMax"},UL={min:"_dataMin",max:"_dataMax"};function YL(e,t,r){var n=e.rawExtentInfo;return n||(n=new VL(e,t,r),e.rawExtentInfo=n,n)}function ko(e,t){return t==null?null:li(t)?NaN:e.parse(t)}function C_(e,t){var r=e.type,n=YL(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=c0("bar",o),u=!1;if(T(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=v0(s),f=XL(i,a,t,l);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function XL(e,t,r,n){var i=r.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=cM(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;T(o,function(c){s=Math.min(c.offset,s)});var u=-1/0;T(o,function(c){u=Math.max(c.offset+c.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-e,h=1-(s+u)/a,v=f/h-f;return t+=v*(u/l),e-=v*(s/l),{min:e,max:t}}function eh(e,t){var r=t,n=C_(e,r),i=n.extent,a=r.get("splitNumber");e instanceof T_&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),u=o==="interval"||o==="time";e.setBreaksFromOption(A_(r)),e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?r.get("minInterval"):null,maxInterval:u?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function M_(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new w_({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new x_({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(qr.getClass(t)||gi)}}function qL(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Xa(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var r=YT(t);return function(i,a){return e.scale.getFormattedLabel(i,a,r)}}else{if(U(t))return function(i){var a=e.scale.getLabel(i),o=t.replace("{value}",a??"");return o};if(Q(t)){if(e.type==="category")return function(i,a){return t(zs(e,i),i.value-e.scale.getExtent()[0],null)};var n=xs();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),t(zs(e,i),a,o)}}else return function(i){return e.scale.getLabel(i)}}}function zs(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Rc(e){var t=e.get("interval");return t??"auto"}function D_(e){return e.type==="category"&&Rc(e.getLabelModel())===0}function $L(e,t){var r={};return T(e.mapDimensionsAll(t),function(n){r[Vm(e,n)]=!0}),yt(r)}function yi(e){return e==="middle"||e==="center"}function Ia(e){return e.getShallow("show")}function A_(e){var t=e.get("breaks",!0);t==null}var ZL=(function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return X(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ct(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e})(),rh=["x","y"];function Pp(e){return(e.type==="interval"||e.type==="time")&&!e.hasBreaks()}var jL=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=rh,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Pp(r)||!Pp(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),u=i[1]-i[0],l=a[1]-a[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,h=(s[1]-o[1])/l,v=o[0]-i[0]*f,c=o[1]-a[0]*h,d=this._transform=[f,0,0,h,v,c];this._invTransform=Rn([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new J(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return qt(i,r,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=u.toGlobalCoord(u.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),u=i.parse(r[0]),l=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return qt(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,u=Math.max(i[0],i[1])-o+r;return new J(a,o,s,u)},t})(ZL),KL=mt(),ca=mt(),Oe={estimate:1,determine:2};function Gs(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function L_(e,t){var r=X(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function QL(e,t){var r=e.getLabelModel().get("customValues");if(r){var n=Xa(e),i=e.scale.getExtent(),a=L_(e,r),o=Ct(a,function(s){return s>=i[0]&&s<=i[1]});return{labels:X(o,function(s){var u={value:s};return{formattedLabel:n(u),rawLabel:e.scale.getLabel(u),tickValue:s,time:void 0,break:void 0}})}}return e.type==="category"?t2(e,t):r2(e)}function JL(e,t,r){var n=e.getTickModel().get("customValues");if(n){var i=e.scale.getExtent(),a=L_(e,n);return{ticks:Ct(a,function(o){return o>=i[0]&&o<=i[1]})}}return e.type==="category"?e2(e,t):{ticks:X(e.scale.getTicks(r),function(o){return o.value})}}function t2(e,t){var r=e.getLabelModel(),n=P_(e,r,t);return!r.get("show")||e.scale.isBlank()?{labels:[]}:n}function P_(e,t,r){var n=i2(e),i=Rc(t),a=r.kind===Oe.estimate;if(!a){var o=R_(n,i);if(o)return o}var s,u;Q(i)?s=k_(e,i):(u=i==="auto"?a2(e,r):i,s=O_(e,u));var l={labels:s,labelCategoryInterval:u};return a?r.out.noPxChangeTryDetermine.push(function(){return nh(n,i,l),!0}):nh(n,i,l),l}function e2(e,t){var r=n2(e),n=Rc(t),i=R_(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Q(n))a=k_(e,n,!0);else if(n==="auto"){var s=P_(e,e.getLabelModel(),Gs(Oe.determine));o=s.labelCategoryInterval,a=X(s.labels,function(u){return u.tickValue})}else o=n,a=O_(e,o,!0);return nh(r,n,{ticks:a,tickCategoryInterval:o})}function r2(e){var t=e.scale.getTicks(),r=Xa(e);return{labels:X(t,function(n,i){return{formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var n2=I_("axisTick"),i2=I_("axisLabel");function I_(e){return function(r){return ca(r)[e]||(ca(r)[e]={list:[]})}}function R_(e,t){for(var r=0;r<e.list.length;r++)if(e.list[r].key===t)return e.list[r].value}function nh(e,t,r){return e.list.push({key:t,value:r}),r}function a2(e,t){if(t.kind===Oe.estimate){var r=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return ca(e).autoInterval=r,!0}),r}var n=ca(e).autoInterval;return n??(ca(e).autoInterval=e.calculateCategoryInterval(t))}function o2(e,t){var r=t.kind,n=u2(e),i=Xa(e),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),u=o.count();if(s[1]-s[0]<1)return 0;var l=1,f=40;u>f&&(l=Math.max(1,Math.floor(u/f)));for(var h=s[0],v=e.dataToCoord(h+1)-e.dataToCoord(h),c=Math.abs(v*Math.cos(a)),d=Math.abs(v*Math.sin(a)),p=0,g=0;h<=s[1];h+=l){var y=0,m=0,_=$g(i({value:h}),n.font,"center","top");y=_.width*1.3,m=_.height*1.3,p=Math.max(p,y,7),g=Math.max(g,m,7)}var S=p/c,w=g/d;isNaN(S)&&(S=1/0),isNaN(w)&&(w=1/0);var b=Math.max(0,Math.floor(Math.min(S,w)));if(r===Oe.estimate)return t.out.noPxChangeTryDetermine.push(ut(s2,null,e,b,u)),b;var x=E_(e,b,u);return x??b}function s2(e,t,r){return E_(e,t,r)==null}function E_(e,t,r){var n=KL(e.model),i=e.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-r)<=1&&a>t&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=t,n.axisExtent0=i[0],n.axisExtent1=i[1]}function u2(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function O_(e,t,r){var n=Xa(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=a[0],f=i.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var h=D_(e),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&l!==a[0]&&p(a[0]);for(var d=l;d<=a[1];d+=u)p(d);c&&d-u!==a[1]&&p(a[1]);function p(g){var y={value:g};s.push(r?g:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:g,time:void 0,break:void 0})}return s}function k_(e,t,r){var n=e.scale,i=Xa(e),a=[];return T(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;t(o.value,s)&&a.push(r?u:{formattedLabel:i(o),rawLabel:s,tickValue:u,time:void 0,break:void 0})}),a}var Ip=[0,1],B_=(function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return xy(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(i.parse(t)),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Rp(n,i.count())),ps(t,Ip,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Rp(n,i.count()));var a=ps(t,n,Ip,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=JL(this,r,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),i=n.ticks,a=X(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return l2(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=X(n,function(a){return X(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(t){return t=t||Gs(Oe.determine),QL(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(t){return t=t||Gs(Oe.determine),o2(this,t)},e})();function Rp(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function l2(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],t[0].onBand=!0,o=t[1]={coord:a[1],tickValue:t[0].tickValue,onBand:!0};else{var u=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/u;T(t,function(c){c.coord-=l/2,c.onBand=!0});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s,tickValue:f[1]+1,onBand:!0},t.push(o)}var h=a[0]>a[1];v(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&v(a[0],t[0].coord)&&t.unshift({coord:a[0],onBand:!0}),v(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&v(o.coord,a[1])&&t.push({coord:a[1],onBand:!0});function v(c,d){return c=Bt(c),d=Bt(d),h?c>d:c<d}}var f2=(function(e){V(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t})(B_),h2="expandAxisBreak",Rr=Math.PI,c2=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],v2=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ra=mt(),N_=mt(),F_=(function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var r=t.axis.dim,n=t.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},e})();function d2(e,t,r,n){var i=r.axis,a=t.ensureRecord(r),o=[],s,u=Ec(e.axisName)&&yi(e.nameLocation);T(n,function(d){var p=Vr(d);if(!(!p||p.label.ignore)){o.push(p);var g=a.transGroup;u&&(g.transform?Rn(Ni,g.transform):Ba(Ni),p.transform&&Tn(Ni,Ni,p.transform),J.copy(Bo,p.localRect),Bo.applyTransform(Ni),s?s.union(Bo):J.copy(s=new J(0,0,0,0),Bo))}});var l=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[l];if(o.sort(function(d,p){return Math.abs(d.label[l]-f)-Math.abs(p.label[l]-f)}),u&&s){var h=i.getExtent(),v=Math.min(h[0],h[1]),c=Math.max(h[0],h[1])-v;s.union(new J(v,0,c,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Ni=Re(),Bo=new J(0,0,0,0),z_=function(e,t,r,n,i,a){if(yi(e.nameLocation)){var o=a.stOccupiedRect;o&&G_(GM({},o,a.transGroup.transform),n,i)}else H_(a.labelInfoList,a.dirVec,n,i)};function G_(e,t,r){var n=new K;gc(e,t,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&HM(t,n)}function H_(e,t,r,n){for(var i=K.dot(n,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||G_(s,r,n)}}var Nr=(function(){function e(t,r,n,i){this.group=new Kt,this._axisModel=t,this._api=r,this._local={},this._shared=i||new F_(z_),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(t){var r=this._cfg.raw;r.position=t.position,r.labelOffset=t.labelOffset,this._resetCfgDetermined(r)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=$(t.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=$(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:$(t.nameDirection,1),tickDirection:$(t.tickDirection,1),labelDirection:$(t.labelDirection,1),labelOffset:$(t.labelOffset,0),silent:$(t.silent,!0),axisName:i,nameLocation:Er(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Ec(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new Kt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var u=this._shared.ensureRecord(r);u.transGroup=this._transformGroup,u.dirVec=new K(Math.cos(-o.rotation),Math.sin(-o.rotation))},e.prototype.build=function(t,r){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),T(p2,function(i){t[i]&&g2[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},e.innerTextLayout=function(t,r,n){var i=Ch(r-t),a,o;return _a(i)?(o=n>0?"top":"bottom",a="center"):_a(i-Rr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Rr?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e})(),p2=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],g2={axisLine:function(e,t,r,n,i,a,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),!!s){var u=n.axis.getExtent(),l=a.transform,f=[u[0],0],h=[u[1],0],v=f[0]>h[0];l&&(qt(f,f,l),qt(h,h,l));var c=E({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:c};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())DL().buildAxisBreakLine(n,i,a,d);else{var p=new vr(E({shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]}},d));wa(p.shape,p.style.lineWidth),p.anid="line",i.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var y=n.get(["axisLine","symbolSize"]);U(g)&&(g=[g,g]),(U(y)||ht(y))&&(y=[y,y]);var m=ZC(n.get(["axisLine","symbolOffset"])||0,y),_=y[0],S=y[1];T([{rotate:e.rotation+Math.PI/2,offset:m[0],r:0},{rotate:e.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-h[0])*(f[0]-h[0])+(f[1]-h[1])*(f[1]-h[1]))}],function(w,b){if(g[b]!=="none"&&g[b]!=null){var x=pu(g[b],-_/2,-S/2,_,S,c.stroke,!0),C=w.r+w.offset,D=v?h:f;x.attr({rotation:w.rotate,x:D[0]+C*Math.cos(e.rotation),y:D[1]-C*Math.sin(e.rotation),silent:!0,z2:11}),i.add(x)}})}}},axisTickLabelEstimate:function(e,t,r,n,i,a,o,s){var u=Op(t,i,s);u&&Ep(e,t,r,n,i,a,o,Oe.estimate)},axisTickLabelDetermine:function(e,t,r,n,i,a,o,s){var u=Op(t,i,s);u&&Ep(e,t,r,n,i,a,o,Oe.determine);var l=S2(e,i,a,n);_2(e,t.labelLayoutList,l),b2(e,i,a,n,e.tickDirection)},axisName:function(e,t,r,n,i,a,o,s){var u=r.ensureRecord(n);t.nameEl&&(i.remove(t.nameEl),t.nameEl=u.nameLayout=u.nameLocation=null);var l=e.axisName;if(Ec(l)){var f=e.nameLocation,h=e.nameDirection,v=n.getModel("nameTextStyle"),c=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new K(0,0),y=new K(0,0);f==="start"?(g.x=d[0]-p*c,y.x=-p):f==="end"?(g.x=d[1]+p*c,y.x=p):(g.x=(d[0]+d[1])/2,g.y=e.labelOffset+h*c,y.y=h);var m=Re();y.transform(Ks(m,m,e.rotation));var _=n.get("nameRotate");_!=null&&(_=_*Rr/180);var S,w;yi(f)?S=Nr.innerTextLayout(e.rotation,_??e.rotation,h):(S=y2(e.rotation,f,_||0,d),w=e.raw.axisNameAvailableWidth,w!=null&&(w=Math.abs(w/Math.sin(S.rotation)),!isFinite(w)&&(w=null)));var b=v.getFont(),x=n.get("nameTruncate",!0)||{},C=x.ellipsis,D=va(e.raw.nameTruncateMaxWidth,x.maxWidth,w),A=s.nameMarginLevel||0,M=new Nt({x:g.x,y:g.y,rotation:S.rotation,silent:Nr.isLabelSilent(n),style:In(v,{text:l,font:b,overflow:"truncate",width:D,ellipsis:C,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||S.textAlign,verticalAlign:v.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(lu({el:M,componentModel:n,itemName:l}),M.__fullText=l,M.anid="name",n.get("triggerEvent")){var I=Nr.makeAxisEventDataBase(n);I.targetType="axisName",I.name=l,lt(M).eventData=I}a.add(M),M.updateTransform(),t.nameEl=M;var L=u.nameLayout=Vr({label:M,priority:M.z2,defaultAttr:{ignore:M.ignore},marginDefault:yi(f)?c2[A]:v2[A]});if(u.nameLocation=f,i.add(M),M.decomposeTransform(),e.shouldNameMoveOverlap&&L){var P=r.ensureRecord(n);r.resolveAxisNameOverlap(e,r,n,L,y,P)}}}};function Ep(e,t,r,n,i,a,o,s){W_(t)||w2(e,t,i,s,n,o);var u=t.labelLayoutList;x2(e,n,u,a),e.rotation;var l=e.optionHideOverlap;m2(n,u,l),l&&WM(Ct(u,function(f){return f&&!f.label.ignore})),d2(e,r,n,u)}function y2(e,t,r,n){var i=Ch(r-e),a,o,s=n[0]>n[1],u=t==="start"&&!s||t!=="start"&&s;return _a(i-Rr/2)?(o=u?"bottom":"top",a="center"):_a(i-Rr*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",i<Rr*1.5&&i>Rr/2?a=u?"left":"right":a=u?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function m2(e,t,r){if(D_(e.axis))return;function n(s,u,l){var f=Vr(t[u]),h=Vr(t[l]);if(!(!f||!h)){if(s===!1||f.suggestIgnore){ea(f.label);return}if(h.suggestIgnore){ea(h.label);return}var v=.1;if(!r){var c=[0,0,0,0];f=Ld({marginForce:c},f),h=Ld({marginForce:c},h)}gc(f,h,null,{touchThreshold:v})&&ea(s?h.label:f.label)}}var i=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]),o=t.length;n(i,0,1),n(a,o-1,o-2)}function _2(e,t,r){e.showMinorTicks||T(t,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=N_(a),s=Ra(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){ea(a);return}}})}function ea(e){e&&(e.ignore=!0)}function V_(e,t,r,n,i){for(var a=[],o=[],s=[],u=0;u<e.length;u++){var l=e[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=r,t&&(qt(o,o,t),qt(s,s,t));var f=new vr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});wa(f.shape,f.style.lineWidth),f.anid=i+"_"+e[u].tickValue,a.push(f);var h=N_(f);h.onBand=!!e[u].onBand,h.tickValue=e[u].tickValue}return a}function S2(e,t,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),u=e.tickDirection*a.get("length"),l=i.getTicksCoords(),f=V_(l,r.transform,u,ft(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)t.add(f[h]);return f}function b2(e,t,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var u=o.getModel("lineStyle"),l=i*o.get("length"),f=ft(u.getLineStyle(),ft(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var v=V_(s[h],r.transform,l,f,"minorticks_"+h),c=0;c<v.length;c++)t.add(v[c])}}function Op(e,t,r){if(W_(e)){var n=e.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(t.remove(e.labelGroup),ih(e,null,null,null))}return!0}function w2(e,t,r,n,i,a){var o=i.axis,s=va(e.raw.axisLabelShow,i.get(["axisLabel","show"])),u=new Kt;r.add(u);var l=Gs(n);if(!s||o.scale.isBlank()){ih(t,[],u,l);return}var f=i.getModel("axisLabel"),h=o.getViewLabels(l),v=(va(e.raw.labelRotate,f.get("rotate"))||0)*Rr/180,c=Nr.innerTextLayout(e.rotation,v,e.labelDirection),d=i.getCategories&&i.getCategories(!0),p=[],g=i.get("triggerEvent"),y=1/0,m=-1/0;T(h,function(S,w){var b,x=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,C=S.formattedLabel,D=S.rawLabel,A=f;if(d&&d[x]){var M=d[x];Y(M)&&M.textStyle&&(A=new pt(M.textStyle,f,i.ecModel))}var I=A.getTextColor()||i.get(["axisLine","lineStyle","color"]),L=A.getShallow("align",!0)||c.textAlign,P=$(A.getShallow("alignMinLabel",!0),L),R=$(A.getShallow("alignMaxLabel",!0),L),k=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||c.textVerticalAlign,W=$(A.getShallow("verticalAlignMinLabel",!0),k),O=$(A.getShallow("verticalAlignMaxLabel",!0),k),z=10+(((b=S.time)===null||b===void 0?void 0:b.level)||0);y=Math.min(y,z),m=Math.max(m,z);var H=new Nt({x:0,y:0,rotation:0,silent:Nr.isLabelSilent(i),z2:z,style:In(A,{text:C,align:w===0?P:w===h.length-1?R:L,verticalAlign:w===0?W:w===h.length-1?O:k,fill:Q(I)?I(o.type==="category"?D:o.type==="value"?x+"":x,w):I})});H.anid="label_"+x;var G=Ra(H);if(G.break=S.break,G.tickValue=x,G.layoutRotation=c.rotation,lu({el:H,componentModel:i,itemName:C,formatterParamsExtra:{isTruncated:function(){return H.isTruncated},value:D,tickIndex:w}}),g){var B=Nr.makeAxisEventDataBase(i);B.targetType="axisLabel",B.value=D,B.tickIndex=w,S.break&&(B.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(B.dataIndex=x),lt(H).eventData=B,S.break&&C2(i,a,H,S.break)}p.push(H),u.add(H)});var _=X(p,function(S){return{label:S,priority:Ra(S).break?S.z2+(m-y+1):S.z2,defaultAttr:{ignore:S.ignore}}});ih(t,_,u,l)}function W_(e){return!!e.labelLayoutList}function ih(e,t,r,n){e.labelLayoutList=t,e.labelGroup=r,e.axisLabelsCreationContext=n}function x2(e,t,r,n){var i=t.get(["axisLabel","margin"]);T(r,function(a,o){var s=Vr(a);if(s){var u=s.label,l=Ra(u);s.suggestIgnore=u.ignore,u.ignore=!1,Ql(ir,T2),ir.x=t.axis.dataToCoord(l.tickValue),ir.y=e.labelOffset+e.labelDirection*i,ir.rotation=l.layoutRotation,n.add(ir),ir.updateTransform(),n.remove(ir),ir.decomposeTransform(),Ql(u,ir),u.markRedraw(),Ls(s,!0),Vr(s)}})}var ir=new wt,T2=new wt;function Ec(e){return!!e}function C2(e,t,r,n){r.on("click",function(i){var a={type:h2,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(a)})}function Hs(e,t,r){r=r||{};var n=t.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,u=n.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[l[2]-h,l[3]+h]:[l[0]-h,l[1]+h];if(a){var c=a.toGlobalCoord(a.dataToCoord(0));v[f.onZero]=Math.max(Math.min(c,v[1]),v[0])}i.position=[u==="y"?v[f[s]]:l[0],u==="x"?v[f[s]]:l[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?v[f[o]]-v[f.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),va(r.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var p=t.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-p:p,i.z2=1,i}function M2(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function kp(e){var t={xAxisModel:null,yAxisModel:null};return T(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,me).models[0];t[n]=a}),t}function D2(e,t,r,n,i,a){for(var o=Hs(e,r),s=!1,u=!1,l=0;l<t.length;l++)Qf(t[l].getOtherAxis(r.axis).scale)&&(s=u=!0,r.axis.type==="category"&&r.axis.onBand&&(u=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=u,o.defaultNameMoveOverlap=a,new Nr(r,n,o,i)}function A2(e,t,r){var n=Hs(t,r);e.updateCfg(n)}function L2(e,t,r){var n=gi.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,{expandToNicedExtent:!0}),o=i.length-1,s=n.getInterval.call(r),u=C_(e,t),l=u.extent,f=u.fixMin,h=u.fixMax;e.type==="log"&&(l=Jf(e.base,l,!0)),e.setBreaksFromOption(A_(t)),e.setExtent(l[0],l[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=n.getExtent.call(e);f&&(l[0]=v[0]),h&&(l[1]=v[1]);var c=n.getInterval.call(e),d=l[0],p=l[1];if(f&&h)c=(p-d)/o;else if(f)for(p=l[0]+c*o;p<l[1]&&isFinite(p)&&isFinite(l[1]);)c=Il(c),p=l[0]+c*o;else if(h)for(d=l[1]-c*o;d>l[0]&&isFinite(d)&&isFinite(l[0]);)c=Il(c),d=l[1]-c*o;else{var g=e.getTicks().length-1;g>o&&(c=Il(c));var y=c*o;p=Math.ceil(l[1]/c)*c,d=Bt(p-y),d<0&&l[0]>=0?(d=0,p=Bt(y)):p>0&&l[1]<=0&&(p=0,d=-Bt(y))}var m=(i[0].value-a[0].value)/s,_=(i[o].value-a[o].value)/s;n.setExtent.call(e,d+c*m,p+c*_),n.setInterval.call(e,c),(m||_)&&n.setNiceExtent.call(e,d+c,p-c)}var Bp=[[3,1],[0,2]],P2=(function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=rh,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,u=yt(o),l=u.length;if(l){for(var f=[],h=l-1;h>=0;h--){var v=+u[h],c=o[v],d=c.model,p=c.scale;Qf(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(c):(eh(p,d),Qf(p)&&(s=c))}f.length&&(s||(s=f.pop(),eh(s.scale,s.model)),T(f,function(g){L2(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};T(n.x,function(o){Np(n,"y",o,a)}),T(n.y,function(o){Np(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=cc(t,r),a=this._rect=Gr(t.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,u=t.get("containLabel");if(U_(o,a),!n){var l=R2(a,s,o,u,r),f=void 0;if(u)f=Gp(a.clone(),"axisLabel",null,a,o,l,i);else{var h=E2(t,a,i),v=h.outerBoundsRect,c=h.parsedOuterBoundsContain,d=h.outerBoundsClamp;v&&(f=Gp(v,c,d,a,o,l,i))}Y_(a,o,Oe.determine,null,f,i)}T(this._coordsList,function(p){p.calcAffineTransform()})},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Y(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",me).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",me).models[0],a=t.gridModel,o=this._coordsList,s,u;if(r)s=r.coordinateSystem,it(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)u=this.getAxis("x",n.componentIndex);else if(i)u=this.getAxis("y",i.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(s=this._coordsList[0])}return{cartesian:s,axis:u}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},u={x:0,y:0};if(r.eachComponent("xAxis",l("x"),this),r.eachComponent("yAxis",l("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,T(s.x,function(f,h){T(s.y,function(v,c){var d="x"+h+"y"+c,p=new jL(d);p.master=i,p.model=t,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(v)})});function l(f){return function(h,v){if(El(h,t)){var c=h.get("position");f==="x"?c!=="top"&&c!=="bottom"&&(c=o.bottom?"top":"bottom"):c!=="left"&&c!=="right"&&(c=o.left?"right":"left"),o[c]=!0;var d=new f2(f,M_(h),[0,0],h.get("type"),c),p=d.type==="category";d.onBand=p&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=a,d.index=v,a._axesList.push(d),s[f][v]=d,u[f]++}}}},e.prototype._updateScale=function(t,r){T(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(M2(i)){var a=kp(i),o=a.xAxisModel,s=a.yAxisModel;if(!El(o,r)||!El(s,r))return;var u=this.getCartesian(o.componentIndex,s.componentIndex),l=i.getData(),f=u.getAxis("x"),h=u.getAxis("y");n(l,f),n(l,h)}},this);function n(i,a){T($L(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return T(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);it(r,a)<0&&r.push(a),it(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){yT({targetModel:i,coordSysType:"cartesian2d",coordSysProvider:a});function a(){var o=kp(i),s=o.xAxisModel,u=o.yAxisModel,l=s.getCoordSysModel(),f=l.coordinateSystem;return f.getCartesian(s.componentIndex,u.componentIndex)}}),n},e.dimensions=rh,e})();function El(e,t){return e.getCoordSysModel()===t}function Np(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)Fp(i[u])&&(a=i[u]);else for(var l in i)if(i.hasOwnProperty(l)&&Fp(i[l])&&!n[f(i[l])]){a=i[l];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function Fp(e){return e&&e.type!=="category"&&e.type!=="time"&&qL(e)}function I2(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}function U_(e,t){T(e.x,function(r){return zp(r,t.x,t.width)}),T(e.y,function(r){return zp(r,t.y,t.height)})}function zp(e,t,r){var n=[0,r],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),I2(e,t)}function Gp(e,t,r,n,i,a,o){Y_(n,i,Oe.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),f(n,0,NaN),f(n,1,NaN);var u=Og(s,function(v){return v>0})==null;return Ss(n,s,!0,!0,r),U_(i,n),u;function l(v){T(i[Cr[v]],function(c){if(Ia(c.model)){var d=a.ensureRecord(c.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var y=p[g],m=c.scale.normalize(Ra(y.label).tickValue);m=v===1?1-m:m,f(y.rect,v,m),f(y.rect,1-v,NaN)}var _=d.nameLayout;if(_){var m=yi(d.nameLocation)?.5:NaN;f(_.rect,v,m),f(_.rect,1-v,NaN)}}})}function f(v,c,d){var p=e[Cr[c]]-v[Cr[c]],g=v[di[c]]+v[Cr[c]]-(e[di[c]]+e[Cr[c]]);p=h(p,1-d),g=h(g,d);var y=Bp[c][0],m=Bp[c][1];s[y]=ae(s[y],p),s[m]=ae(s[m],g)}function h(v,c){return v>0&&!li(c)&&c>1e-4&&(v/=c),v}}function R2(e,t,r,n,i){var a=new F_(O2);return T(r,function(o){return T(o,function(s){if(Ia(s.model)){var u=!n;s.axisBuilder=D2(e,t,s.model,i,a,u)}})}),a}function Y_(e,t,r,n,i,a){var o=r===Oe.determine;T(t,function(l){return T(l,function(f){Ia(f.model)&&(A2(f.axisBuilder,e,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};u(0),u(1);function u(l){s[Cr[1-l]]=e[di[l]]<=a.refContainer[di[l]]*.5?0:1-l===1?2:1}T(t,function(l,f){return T(l,function(h){Ia(h.model)&&((n==="all"||o)&&h.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&h.axisBuilder.build({axisLine:!0}))})})}function E2(e,t,r){var n,i=e.get("outerBoundsMode",!0);i==="same"?n=t.clone():(i==null||i==="auto")&&(n=Gr(e.get("outerBounds",!0)||__,r.refContainer));var a=e.get("outerBoundsContain",!0),o;a==null||a==="auto"||it(["all","axisLabel"],a)<0?o="all":o=a;var s=[cf($(e.get("outerBoundsClampWidth",!0),Fs[0]),t.width),cf($(e.get("outerBoundsClampHeight",!0),Fs[1]),t.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var O2=function(e,t,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";z_(e,t,r,n,i,a),yi(e.nameLocation)||T(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&H_(s.labelInfoList,s.dirVec,n,i)})};function k2(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return B2(r,e,t),r.seriesInvolved&&F2(r,e),r}function B2(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];T(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=Ea(s.model),l=e.coordSysAxesInfo[u]={};e.coordSysMap[u]=s;var f=s.model,h=f.getModel("tooltip",n);if(T(s.getAxes(),_t(p,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var v=h.get("trigger")==="axis",c=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(v||c)&&T(d.baseAxes,_t(p,c?"cross":!0,v)),c&&T(d.otherAxes,_t(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!ah(_))){y==null&&(y=_.get("triggerTooltip")),_=g?N2(m,h,i,t,g,y):_;var w=_.get("snap"),b=_.get("triggerEmphasis"),x=Ea(m.model),C=y||w||m.type==="category",D=e.axesInfo[x]={key:x,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:b,involveSeries:C,snap:w,useHandle:ah(_),seriesModels:[],linkGroup:null};l[x]=D,e.seriesInvolved=e.seriesInvolved||C;var A=z2(a,m);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[x]=D,M.mapper=a[A].mapper,D.linkGroup=M}}}})}function N2(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};T(s,function(v){u[v]=rt(o.get(v))}),u.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(u.type="line");var l=u.label||(u.label={});if(l.show==null&&(l.show=!1),i==="cross"){var f=o.get(["label","show"]);if(l.show=f??!0,!a){var h=u.lineStyle=o.get("crossStyle");h&&ft(l,h.textStyle)}}return e.model.getModel("axisPointer",new pt(u,r,n))}function F2(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||T(e.coordSysAxesInfo[Ea(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function z2(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(Ol(a[n+"AxisId"],r.id)||Ol(a[n+"AxisIndex"],r.componentIndex)||Ol(a[n+"AxisName"],r.name))return i}}function Ol(e,t){return e==="all"||F(e)&&it(e,t)>=0||e===t}function G2(e){var t=Oc(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=ah(r);a==null&&(i.status=s?"show":"hide");var u=n.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Oc(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ea(e)]}function H2(e){var t=Oc(e);return t&&t.axisPointerModel}function ah(e){return!!e.get(["handle","show"])}function Ea(e){return e.type+"||"+e.id}var Hp={},X_=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.axisPointerClass&&G2(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=H2(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){Hp[r]=n},t.getAxisPointerClass=function(r){return r&&Hp[r]},t.type="axis",t})(ue),oh=mt();function V2(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),u=n.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(l.length){var f=s.length,h=oh(e).splitAreaColors,v=et(),c=0;if(h)for(var d=0;d<l.length;d++){var p=h.get(l[d].tickValue);if(p!=null){c=(p+(f-1)*d)%f;break}}var g=i.toGlobalCoord(l[0].coord),y=o.getAreaStyle();s=F(s)?s:[s];for(var d=1;d<l.length;d++){var m=i.toGlobalCoord(l[d].coord),_=void 0,S=void 0,w=void 0,b=void 0;i.isHorizontal()?(_=g,S=u.y,w=m-_,b=u.height,g=_+w):(_=u.x,S=g,w=u.width,b=m-S,g=S+b);var x=l[d-1].tickValue;x!=null&&v.set(x,c),t.add(new wt({anid:x!=null?"area_"+x:null,shape:{x:_,y:S,width:w,height:b},style:ft({fill:s[c]},y),autoBatch:!0,silent:!0})),c=(c+1)%f}oh(e).splitAreaColors=v}}}function W2(e){oh(e).splitAreaColors=null}var U2=["splitArea","splitLine","minorSplitLine","breakArea"],q_=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Kt,this.group.add(this._axisGroup),!!Ia(r)){this._axisGroup.add(r.axis.axisBuilder.group),T(U2,function(u){r.get([u,"show"])&&Y2[u](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||hm(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){W2(this)},t.type="cartesianAxis",t})(X_),Y2={splitLine:function(e,t,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),u=s.get("color"),l=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;u=F(u)?u:[u];for(var h=n.coordinateSystem.getRect(),v=a.isHorizontal(),c=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=s.getLineStyle(),m=0;m<d.length;m++){var _=a.toGlobalCoord(d[m].coord);if(!(m===0&&!l||m===d.length-1&&!f)){var S=d[m].tickValue;v?(p[0]=_,p[1]=h.y,g[0]=_,g[1]=h.y+h.height):(p[0]=h.x,p[1]=_,g[0]=h.x+h.width,g[1]=_);var w=c++%u.length,b=new vr({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:ft({stroke:u[w]},y),silent:!0});wa(b.shape,y.lineWidth),t.add(b)}}}},minorSplitLine:function(e,t,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),u=n.coordinateSystem.getRect(),l=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var h=[],v=[],c=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var g=a.toGlobalCoord(f[d][p].coord);l?(h[0]=g,h[1]=u.y,v[0]=g,v[1]=u.y+u.height):(h[0]=u.x,h[1]=g,v[0]=u.x+u.width,v[1]=g);var y=new vr({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},style:c,silent:!0});wa(y.shape,c.lineWidth),t.add(y)}},splitArea:function(e,t,r,n,i){V2(e,t,r,n)},breakArea:function(e,t,r,n,i){r.axis.scale}},$_=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t})(q_),X2=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=$_.type,r}return t.type="yAxis",t})(q_),q2=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new wt({shape:r.coordinateSystem.getRect(),style:ft({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(ue),Vp={offset:0};function $2(e){e.registerComponentView(q2),e.registerComponentModel(mL),e.registerCoordinateSystem("cartesian2d",P2),Tp(e,"x",jf,Vp),Tp(e,"y",jf,Vp),e.registerComponentView($_),e.registerComponentView(X2),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Z2=1e-8;function Wp(e,t){return Math.abs(e-t)<Z2}function Up(e,t,r){var n=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];n+=lr(i[0],i[1],o[0],o[1],t,r),i=o}var s=e[0];return(!Wp(i[0],s[0])||!Wp(i[1],s[1]))&&(n+=lr(i[0],i[1],s[0],s[1],t,r)),n!==0}var j2=[];function kl(e,t){for(var r=0;r<e.length;r++)qt(e[r],e[r],t)}function Yp(e,t,r,n){for(var i=0;i<e.length;i++){var a=e[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Mr(t,t,a),Dr(r,r,a))}}function K2(e){for(var t=0,r=0,n=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var u=e[s][0],l=e[s][1],f=a*l-u*o;t+=f,r+=(a+u)*f,n+=(o+l)*f,a=u,o=l}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var Z_=(function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e})(),Xp=(function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e})(),qp=(function(){function e(t){this.type="linestring",this.points=t}return e})(),Q2=(function(e){V(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,u=s&&s.length;u>i&&(n=o,i=u)}if(n)return K2(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return T(o,function(s){s.type==="polygon"?Yp(s.exterior,i,a,r):T(s.points,function(u){Yp(u,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new J(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;t:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var u=s.exterior,l=s.interiors;if(Up(u,r[0],r[1])){for(var f=0;f<(l?l.length:0);f++)if(Up(l[f],r[0],r[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var u=new J(r,n,i,a),l=o.calculateTransform(u),f=this.geometries,h=0;h<f.length;h++){var v=f[h];v.type==="polygon"?(kl(v.exterior,l),T(v.interiors,function(c){kl(c,l)})):T(v.points,function(c){kl(c,l)})}o=this._rect,o.copy(u),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t})(Z_);(function(e){V(t,e);function t(r,n){var i=e.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=Ba(j2),o=r;o&&!o.isGeoSVGGraphicRoot;)Tn(a,o.getLocalTransform(),a),o=o.parent;return Rn(a,a),qt(i,i,a),i},t})(Z_);function J2(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return T(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=j_(s,o,r);break;case"Polygon":Bl(s,o,r);break;case"MultiLineString":Bl(s,o,r);break;case"MultiPolygon":T(s,function(u,l){return Bl(u,o[l],r)})}}),t.UTF8Encoding=!1,t}function Bl(e,t,r){for(var n=0;n<e.length;n++)e[n]=j_(e[n],t[n],r)}function j_(e,t,r){for(var n=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,u=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),u=u>>1^-(u&1),s+=i,u+=a,i=s,a=u,n.push([s/r,u/r])}return n}function $p(e,t){return e=J2(e),X(Ct(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Xp(o[0],o.slice(1)));break;case"MultiPolygon":T(i.coordinates,function(u){u[0]&&a.push(new Xp(u[0],u.slice(1)))});break;case"LineString":a.push(new qp([i.coordinates]));break;case"MultiLineString":a.push(new qp(i.coordinates))}var s=new Q2(n[t||"name"],a,n.cp);return s.properties=n,s})}var mn=mt(),Zp=rt,Nl=ut,tP=(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,a,t,r,n);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Kt,this.createPointerEl(s,l,t,r),this.createLabelEl(s,l,t,r),n.getZr().add(s);else{var v=_t(jp,r,h);this.updatePointerEl(s,l,v),this.updateLabelEl(s,l,v,r)}Qp(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var u=Oc(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=mn(t).pointerEl=new Mx[a.type](Zp(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=mn(t).labelEl=new Nt(Zp(r.label));t.add(a),Kp(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=mn(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=mn(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Kp(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=uu(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){D0(l.event)},onmousedown:Nl(this._onHandleDragMove,this,0,0),drift:Nl(this._onHandleDragMove,this),ondragend:Nl(this._onHandleDragEnd,this)}),n.add(i)),Qp(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");F(u)||(u=[u,u]),i.scaleX=u[0]/2,i.scaleY=u[1]/2,g0(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){jp(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Fl(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Fl(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Fl(i)),mn(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),kf(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e})();function jp(e,t,r,n){K_(mn(r).lastProp,n)||(mn(r).lastProp=n,t?xe(r,n,e):(r.stopAnimation(),r.attr(n)))}function K_(e,t){if(Y(e)&&Y(t)){var r=!0;return T(t,function(n,i){r=r&&K_(e[i],n)}),!!r}else return e===t}function Kp(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Fl(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Qp(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function eP(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function rP(e,t,r,n,i){var a=r.get("value"),o=Q_(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),u=Ua(s.get("padding")||0),l=s.getFont(),f=$g(o,l),h=i.position,v=f.width+u[1]+u[3],c=f.height+u[0]+u[2],d=i.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var p=i.verticalAlign;p==="bottom"&&(h[1]-=c),p==="middle"&&(h[1]-=c/2),nP(h,v,c,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:In(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:g}),z2:10}}function nP(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Q_(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:zs(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};T(n,function(u){var l=r.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),U(o)?a=o.replace("{value}",a):Q(o)&&(a=o(s))}return a}function J_(e,t,r){var n=Re();return Ks(n,n,r.rotation),as(n,n,r.position),Fh([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function iP(e,t,r,n,i,a){var o=Nr.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),rP(t,n,i,a,{position:J_(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function aP(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function oP(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var sP=(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,u=s.grid,l=a.get("type"),f=Jp(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var v=eP(a),c=uP[l](s,h,f);c.style=v,r.graphicKey=c.type,r.pointer=c}var d=Hs(u.getRect(),i);iP(n,r,d,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=Hs(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=J_(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,u=o.getGlobalExtent(!0),l=Jp(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[r.x,r.y];h[f]+=n[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var v=(l[1]+l[0])/2,c=[v,v];c[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:r.rotation,cursorPoint:c,tooltipOption:d[f]}},t})(tP);function Jp(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var uP={line:function(e,t,r){var n=aP([t,r[0]],[t,r[1]],tg(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:oP([t-n/2,r[0]],[n,i],tg(e))}}};function tg(e){return e.dim==="x"?0:1}var lP=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:q.color.border,width:1,type:"dashed"},shadowStyle:{color:q.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:q.color.neutral00,padding:[5,7,5,7],backgroundColor:q.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:q.color.accent40,throttle:40}},t})(ot),hr=mt(),fP=T;function t1(e,t,r){if(!j.node){var n=t.getZr();hr(n).records||(hr(n).records={}),hP(n,t);var i=hr(n).records[e]||(hr(n).records[e]={});i.handler=r}}function hP(e,t){if(hr(e).initialized)return;hr(e).initialized=!0,r("click",_t(eg,"click")),r("mousemove",_t(eg,"mousemove")),r("globalout",vP);function r(n,i){e.on(n,function(a){var o=dP(t);fP(hr(e).records,function(s){s&&i(s,a,o.dispatchAction)}),cP(o.pendings,t)})}}function cP(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function vP(e,t,r){e.handler("leave",null,r)}function eg(e,t,r,n){t.handler(e,r,n)}function dP(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function sh(e,t){if(!j.node){var r=t.getZr(),n=(hr(r).records||{})[e];n&&(hr(r).records[e]=null)}}var pP=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";t1("axisPointer",i,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(r,n){sh("axisPointer",n)},t.prototype.dispose=function(r,n){sh("axisPointer",n)},t.type="axisPointer",t})(ue);function e1(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=za(a,e);if(o==null||o<0||F(o))return{point:[]};var s=a.getItemGraphicEl(o),u=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(e.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,v=l.dim,c=h==="x"||h==="radius"?1:0,d=a.mapDimension(v),p=[];p[c]=a.get(d,o),p[1-c]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(p)||[]}else r=u.dataToPoint(a.getValues(X(u.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var rg=mt();function gP(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ut(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){rs(i)&&(i=e1({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=rs(i),l=a.axesInfo,f=s.axesInfo,h=n==="leave"||rs(i),v={},c={},d={list:[],map:{}},p={showPointer:_t(mP,c),showTooltip:_t(_P,d)};T(s.coordSysMap,function(y,m){var _=u||y.containPoint(i);T(s.coordSysAxesInfo[m],function(S,w){var b=S.axis,x=xP(l,S);if(!h&&_&&(!l||x)){var C=x&&x.value;C==null&&!u&&(C=b.pointToData(i)),C!=null&&ng(S,C,p,!1,v)}})});var g={};return T(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&T(_.axesInfo,function(S,w){var b=c[w];if(S!==y&&b){var x=b.value;_.mapper&&(x=y.axis.scale.parse(_.mapper(x,ig(S),ig(y)))),g[y.key]=x}})}),T(g,function(y,m){ng(f[m],y,p,!0,v)}),SP(c,f,v),bP(d,i,e,o),wP(f,o,r),v}}function ng(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=yP(t,e),s=o.payloadBatch,u=o.snapToValue;s[0]&&i.seriesIndex==null&&E(i,s[0]),!n&&e.snap&&a.containData(u)&&u!=null&&(t=u),r.showPointer(e,t,s),r.showTooltip(e,o,u)}}function yP(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return T(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(n),h,v;if(u.getAxisTooltipData){var c=u.getAxisTooltipData(f,e,r);v=c.dataIndices,h=c.nestestValue}else{if(v=u.indicesOfNearest(n,f[0],e,r.type==="category"?.5:null),!v.length)return;h=u.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var d=e-h,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=h,a.length=0),T(v,function(g){a.push({seriesIndex:u.seriesIndex,dataIndexInside:g,dataIndex:u.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function mP(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function _P(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var u=t.coordSys.model,l=Ea(u),f=e.map[l];f||(f=e.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function SP(e,t,r){var n=r.axesInfo=[];T(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function bP(e,t,r,n){if(rs(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function wP(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=rg(n)[i]||{},o=rg(n)[i]={};T(e,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&l.triggerEmphasis&&T(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],u=[];T(a,function(l,f){!o[f]&&u.push(l)}),T(o,function(l,f){!a[f]&&s.push(l)}),u.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function xP(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function ig(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function rs(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function r1(e){X_.registerAxisPointerClass("CartesianAxisPointer",sP),e.registerComponentModel(lP),e.registerComponentView(pP),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!F(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=k2(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},gP)}function VI(e){Wr($2),Wr(r1)}function TP(e,t){var r=Ua(t.get("padding")),n=t.getItemStyle(["color","opacity"]);n.fill=t.get("backgroundColor");var i=new wt({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var CP=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:q.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:q.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:q.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:q.color.tertiary,fontSize:14}},t})(ot);function n1(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function i1(e){if(j.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var a1=i1(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),MP=i1(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function o1(e,t){if(!e)return t;t=lc(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function DP(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var AP=o1(MP,"transition"),kc=o1(a1,"transform"),LP="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(j.transform3dSupported?"will-change:transform;":"");function PP(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function IP(e,t,r){if(!U(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=Ta(t);var a=PP(r),o=Math.max(Math.round(i)*1.5,6),s="",u=kc+":",l;it(["left","right"],a)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,h=o+i,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-h)/2)*100)/100;s+=";"+a+":-"+c+"px";var d=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function RP(e,t,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+e/2+"s "+n,a="opacity"+i+",visibility"+i),t||(i=" "+e+"s "+n,a+=(a.length?",":"")+(j.transformSupported?""+kc+i:",left"+i+",top"+i)),AP+":"+a}function ag(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!j.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=j.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+kc+":"+o+";":[["top",0],["left",0],[a1,o]]}function EP(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var i=$(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+i+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,u=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),T(["decoration","align"],function(l){var f=e.get(l);f&&t.push("text-"+l+":"+f)}),t.join(";")}function OP(e,t,r,n){var i=[],a=e.get("transitionDuration"),o=e.get("backgroundColor"),s=e.get("shadowBlur"),u=e.get("shadowColor"),l=e.get("shadowOffsetX"),f=e.get("shadowOffsetY"),h=e.getModel("textStyle"),v=o0(e,"html"),c=l+"px "+f+"px "+s+"px "+u;return i.push("box-shadow:"+c),t&&a>0&&i.push(RP(a,r,n)),o&&i.push("background-color:"+o),T(["width","color","radius"],function(d){var p="border-"+d,g=lc(p),y=e.get(g);y!=null&&i.push(p+":"+y+(d==="color"?"":"px"))}),i.push(EP(h)),v!=null&&i.push("padding:"+Ua(v).join("px ")+"px"),i.join(";")+";"}function og(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&PT(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var kP=(function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,j.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(U(a)?document.querySelector(a):ui(a)?a:Q(a)&&a(t.getDom()));og(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=i.handler,f=i.painter.getViewportRoot();ce(f,u,!0),l.dispatch("mousemove",u)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=DP(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=LP+OP(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+ag(a[0],a[1],!0)+("border-color:"+Ta(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(U(a)&&n.get("trigger")==="item"&&!n1(n)&&(s=IP(n,i,a)),U(t))o.innerHTML=t+s;else if(t){o.innerHTML="",F(t)||(t=[t]);for(var u=0;u<t.length;u++)ui(t[u])&&t[u].parentNode!==o&&o.appendChild(t[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var n=this._styleCoord;if(og(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=ag(n[0],n[1]);T(a,function(o){i[o[0]]=o[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",j.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ut(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;IT(t&&t.painter&&t.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},e})(),BP=(function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),ug(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){var o=this;Y(t)&&te(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Nt({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:o0(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=n.get(l)}),T(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=sg(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;ug(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=Tr(a.borderWidth||0),s=sg(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ut(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e})();function Tr(e){return Math.max(0,e)}function sg(e){var t=Tr(e.shadowBlur||0),r=Tr(e.shadowOffsetX||0),n=Tr(e.shadowOffsetY||0);return{left:Tr(t-r),right:Tr(t+r),top:Tr(t-n),bottom:Tr(t+n)}}function ug(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var NP=new wt({shape:{x:-1,y:-1,width:2,height:2}}),FP=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(j.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=bw(i.get("renderMode"));this._tooltipContent=a==="richText"?new BP(n):new kP(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(r,n,i){if(!(j.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?g0(this,"_updatePosition",50,"fixRate"):kf(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");t1("itemTooltip",this._api,ut(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||j.node||!i.getDom())){var o=lg(a,i);this._ticket="";var s=a.dataByCoordSys,u=VP(a,n,i);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=NP;f.x=a.x,f.y=a.y,f.update(),lt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var h=e1(a,n),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(lg(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=n.getSeriesByIndex(o);if(l){var f=l.getData(),h=Fi([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=lt(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var u,l;ta(i,function(f){if(f.tooltipDisabled)return u=l=null,!0;u||l||(lt(f).dataIndex!=null?u=f:lt(f).tooltipConfig!=null&&(l=f))},!0),u?this._showSeriesItemTooltip(r,u,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=ut(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Fi([n.tooltipOption],a),u=this._renderMode,l=[],f=Ma("section",{blocks:[],noHeader:!0}),h=[],v=new al;T(r,function(m){T(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var b=Q_(w,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=Ma("section",{header:b,noHeader:!Ie(b),sortBlocks:!0,blocks:[]});f.blocks.push(x),T(_.seriesDataIndices,function(C){var D=i.getSeriesByIndex(C.seriesIndex),A=C.dataIndexInside,M=D.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=zs(S.axis,{value:w}),M.axisValueLabel=b,M.marker=v.makeTooltipMarker("item",Ta(M.color),u);var I=od(D.formatTooltip(A,!0,null)),L=I.frag;if(L){var P=Fi([D],a).get("valueFormatter");x.blocks.push(P?E({valueFormatter:P},L):L)}I.text&&h.push(I.text),l.push(M)}})}})}),f.blocks.reverse(),h.reverse();var c=n.position,d=s.get("order"),p=fd(f,v,u,d,i.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=u==="richText"?`
16
+
17
+ `:"<br/>",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,l)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,y,l,Math.random()+"",o[0],o[1],c,null,v)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=lt(n),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,v=l.getData(h),c=this._renderMode,d=r.positionDefault,p=Fi([v.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=l.getDataParams(f,h),m=new al;y.marker=m.makeTooltipMarker("item",Ta(y.color),c);var _=od(l.formatTooltip(f,!1,h)),S=p.get("order"),w=p.get("valueFormatter"),b=_.frag,x=b?fd(w?E({valueFormatter:w},b):b,m,c,S,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+l.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,x,y,C,r.offsetX,r.offsetY,r.position,r.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=lt(n),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(U(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=rt(u),u.content=Yt(u.content));var h=[u],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:u.content});var c=r.positionDefault,d=Fi(h,this._tooltipModel,c?{position:c}:null),p=d.get("content"),g=Math.random()+"",y=new al;this._showOrMove(d,function(){var m=rt(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,r.offsetX,r.offsetY,r.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,u,l,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var h=this._tooltipContent;h.setEnterable(r.get("enterable"));var v=r.get("formatter");u=u||r.get("position");var c=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),p=d.color;if(v)if(U(v)){var g=r.ecModel.get("useUTC"),y=F(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=Wa(y.axisValue,c,g)),c=fc(c,i,!0)}else if(Q(v)){var _=ut(function(S,w){S===this._ticket&&(h.setContent(w,f,r,p,u),this._updatePosition(r,u,o,s,h,i,l))},this);this._ticket=a,c=v(i,a,_)}else c=v;h.setContent(c,f,r,p,u),h.show(r,p),this._updatePosition(r,u,o,s,h,i,l)}},t.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||F(n))return{color:a||o};if(!F(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var h=o.getSize(),v=r.get("align"),c=r.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),Q(n)&&(n=n([i,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),F(n))i=gt(n[0],l),a=gt(n[1],f);else if(Y(n)){var p=n;p.width=h[0],p.height=h[1];var g=Gr(p,{width:l,height:f});i=g.x,a=g.y,v=null,c=null}else if(U(n)&&u){var y=HP(n,d,h,r.get("borderWidth"));i=y[0],a=y[1]}else{var y=zP(i,a,o,l,f,v?null:20,c?null:20);i=y[0],a=y[1]}if(v&&(i-=fg(v)?h[0]/2:v==="right"?h[0]:0),c&&(a-=fg(c)?h[1]/2:c==="bottom"?h[1]:0),n1(r)){var y=GP(i,a,o,l,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&T(i,function(s,u){var l=s.dataByAxis||[],f=r[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&T(l,function(v,c){var d=h[c]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&T(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&T(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){j.node||!n.getDom()||(kf(this,"_updatePosition"),this._tooltipContent.dispose(),sh("itemTooltip",n))},t.type="tooltip",t})(ue);function Fi(e,t,r){var n=t.ecModel,i;r?(i=new pt(r,n,n),i=new pt(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof pt&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(i=new pt(o,i,n)))}return i}function lg(e,t){return e.dispatchAction||ut(t.dispatchAction,t)}function zP(e,t,r,n,i,a,o){var s=r.getSize(),u=s[0],l=s[1];return a!=null&&(e+u+a+2>n?e-=u+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function GP(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function HP(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=t.width,f=t.height;switch(e){case"inside":s=t.x+l/2-i/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-i/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-i/2,u=t.y+f+o;break;case"left":s=t.x-i-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function fg(e){return e==="center"||e==="middle"}function VP(e,t,r){var n=Ah(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Ga(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=lt(l).tooltipConfig;if(f&&f.name===e.name)return u=l,!0}),u)return{componentMainType:i,componentIndex:o.componentIndex,el:u}}}}function WI(e){Wr(r1),e.registerComponentModel(CP),e.registerComponentView(FP),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Xt),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Xt)}var WP=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},uh=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),F(n)&&T(n,function(a,o){U(a)&&(a={type:a}),n[o]=at(a,WP(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(u){var l=u.name;i.push(l);var f;if(u.legendVisualProvider){var h=u.legendVisualProvider,v=h.getAllNames();r.isSeriesFiltered(u)||(i=i.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&Dh(u)&&n.push(u.name)}),this._availableNames=i;var a=this.get("data")||n,o=et(),s=X(a,function(u){return(U(u)||ht(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new pt(u,this,this.ecModel))},this);this._data=Ct(s,function(u){return!!u})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;T(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;T(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;T(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&it(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:q.size.m,align:"auto",backgroundColor:q.color.transparent,borderColor:q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:q.color.disabled,inactiveBorderColor:q.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:q.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:q.color.tertiary,borderWidth:1,borderColor:q.color.border},emphasis:{selectorLabel:{show:!0,color:q.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(ot),Jn=_t,lh=T,No=Kt,s1=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new No),this.group.add(this._selectorGroup=new No),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var u=r.get("selector",!0),l=r.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,u,s,l);var f=cc(r,i).refContainer,h=r.getBoxLayoutParams(),v=r.get("padding"),c=Gr(h,f,v),d=this.layoutInner(r,o,c,a,u,l),p=Gr(ft({width:d.width,height:d.height},h),f,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=TP(d,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,u){var l=this.getContentGroup(),f=et(),h=n.get("selectedMode"),v=n.get("triggerEvent"),c=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&c.push(d.id)}),lh(n.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===`
18
+ `)){var m=new No;m.newline=!0,l.add(m);return}var _=i.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),w=S.getVisual("legendLineStyle")||{},b=S.getVisual("legendIcon"),x=S.getVisual("style"),C=this._createItem(_,y,p,d,n,r,w,x,b,h,a);C.on("click",Jn(hg,y,null,a,c)).on("mouseover",Jn(fh,_.name,null,a,c)).on("mouseout",Jn(hh,_.name,null,a,c)),i.ssr&&C.eachChild(function(D){var A=lt(D);A.seriesIndex=_.seriesIndex,A.dataIndex=p,A.ssrType="legend"}),v&&C.eachChild(function(D){g.packEventData(D,n,_,p,y)}),f.set(y,!0)}else i.eachRawSeries(function(D){var A=this;if(!f.get(y)&&D.legendVisualProvider){var M=D.legendVisualProvider;if(!M.containName(y))return;var I=M.indexOfName(y),L=M.getItemVisual(I,"style"),P=M.getItemVisual(I,"legendIcon"),R=oe(L.fill);R&&R[3]===0&&(R[3]=.2,L=E(E({},L),{fill:Ur(R,"rgba")}));var k=this._createItem(D,y,p,d,n,r,{},L,P,h,a);k.on("click",Jn(hg,null,y,a,c)).on("mouseover",Jn(fh,null,y,a,c)).on("mouseout",Jn(hh,null,y,a,c)),i.ssr&&k.eachChild(function(W){var O=lt(W);O.seriesIndex=D.seriesIndex,O.dataIndex=p,O.ssrType="legend"}),v&&k.eachChild(function(W){A.packEventData(W,n,D,p,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,n,a,s,u)},t.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};lt(r).eventData=s},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();lh(r,function(l){var f=l.type,h=new Nt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var v=n.getModel("selectorLabel"),c=n.getModel(["emphasis","selectorLabel"]);Vh(h,{normal:v,emphasis:c},{defaultText:l.title}),_s(h)})},t.prototype._createItem=function(r,n,i,a,o,s,u,l,f,h,v){var c=r.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=UP(f,a,u,l,c,g,v),w=new No,b=a.getModel("textStyle");if(Q(r.getLegendIcon)&&(!_||_==="inherit"))w.add(r.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var x=_==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;w.add(YP({itemWidth:d,itemHeight:p,icon:f,iconRotate:x,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var C=s==="left"?d+5:-5,D=s,A=o.get("formatter"),M=n;U(A)&&A?M=A.replace("{name}",n??""):Q(A)&&(M=A(n));var I=g?b.getTextColor():a.get("inactiveColor");w.add(new Nt({style:In(b,{text:M,x:C,y:p/2,fill:I,align:D,verticalAlign:"middle"},{inheritColor:I})}));var L=new wt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&lu({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),w.add(L),w.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(w),_s(w),w.__legendDataIndex=i,w},t.prototype.layoutInner=function(r,n,i,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();fa(r.get("orient"),u,r.get("itemGap"),i.width,i.height);var f=u.getBoundingRect(),h=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){fa("horizontal",l,r.get("selectorItemGap",!0));var v=l.getBoundingRect(),c=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?c[p]+=f[g]+d:h[p]+=v[g]+d,c[1-p]+=f[y]/2-v[y]/2,l.x=c[0],l.y=c[1],u.x=h[0],u.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-p]),_}else return u.x=h[0],u.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(ue);function UP(e,t,r,n,i,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),lh(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var u=t.getModel("itemStyle"),l=u.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",h=u.getShallow("decal");l.decal=!h||h==="inherit"?n.decal:Uf(h,o),l.fill==="inherit"&&(l.fill=n[i]),l.stroke==="inherit"&&(l.stroke=n[f]),l.opacity==="inherit"&&(l.opacity=(i==="fill"?n:r).opacity),s(l,n);var v=t.getModel("lineStyle"),c=v.getLineStyle();if(s(c,r),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),p=l[f];l.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:l,lineStyle:c}}function YP(e){var t=e.icon||"roundRect",r=pu(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=q.color.neutral00,r.style.lineWidth=2),r}function hg(e,t,r,n){hh(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),fh(e,t,r,n)}function u1(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function fh(e,t,r,n){u1(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function hh(e,t,r,n){u1(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function XP(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function zi(e,t,r){var n=e==="allSelect"||e==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:t},function(s){n?s[e]():s[e](t.name),cg(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){T(i,function(u,l){s[u?"select":"unSelect"](l)}),cg(s,o)}),n?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function cg(e,t){var r=t||{};return T(e.getData(),function(n){var i=n.get("name");if(!(i===`
19
+ `||i==="")){var a=e.isSelected(i);Se(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function qP(e){e.registerAction("legendToggleSelect","legendselectchanged",_t(zi,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",_t(zi,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",_t(zi,"inverseSelect")),e.registerAction("legendSelect","legendselected",_t(zi,"select")),e.registerAction("legendUnSelect","legendunselected",_t(zi,"unSelect"))}function l1(e){e.registerComponentModel(uh),e.registerComponentView(s1),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,XP),e.registerSubTypeDefaulter("legend",function(){return"plain"}),qP(e)}var $P=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=Ya(r);e.prototype.init.call(this,r,n,i),vg(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),vg(this,this.option,r)},t.type="legend.scroll",t.defaultOption=Wm(uh.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:q.color.accent50,pageIconInactiveColor:q.color.accent10,pageIconSize:15,pageTextStyle:{color:q.color.tertiary},animationDurationUpdate:800}),t})(uh);function vg(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Hr(t,r,{type:"box",ignoreSize:!!i})}var dg=Kt,zl=["width","height"],Gl=["x","y"],ZP=(function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new dg),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new dg)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,u){var l=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,u);var f=this._controllerGroup,h=n.get("pageIconSize",!0),v=F(h)?h:[h,h];d("pagePrev",0);var c=n.getModel("pageTextStyle");f.add(new Nt({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=uu(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:ut(l._pageGo,l,y,n,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var u=this.getSelectorGroup(),l=r.getOrient().index,f=zl[l],h=Gl[l],v=zl[1-l],c=Gl[1-l];o&&fa("horizontal",u,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),p=u.getBoundingRect(),g=[-p.x,-p.y],y=rt(i);o&&(y[f]=i[f]-p[f]-d);var m=this._layoutContentAndController(r,a,y,l,f,v,c,h);if(o){if(s==="end")g[l]+=m[f]+d;else{var _=p[f]+d;g[l]-=_,m[h]-=_}m[f]+=p[f]+d,g[1-l]+=m[c]+m[v]/2-p[v]/2,m[v]=Math.max(m[v],p[v]),m[c]=Math.min(m[c],p[c]+g[1-l]),u.x=g[0],u.y=g[1],u.markRedraw()}return m},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,u,l){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;fa(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),fa("horizontal",v,r.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=c[o]>i[o],g=[-c.x,-c.y];n||(g[a]=f[l]);var y=[0,0],m=[-d.x,-d.y],_=$(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var S=r.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=c[s]/2-d[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var w={x:0,y:0};if(w[o]=p?i[o]:c[o],w[s]=Math.max(c[s],d[s]),w[u]=Math.min(0,d[u]+m[1-a]),h.__rectSize=i[o],p){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-_,0),b[s]=w[s],h.setClipPath(new wt({shape:b})),h.__rectSize=b[o]}else v.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&xe(f,{x:x.contentPosition[0],y:x.contentPosition[1]},p?r:null),this._updatePageInfoView(r,x),w},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;T(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=n[h]!=null,c=i.childOfName(f);c&&(c.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,u=s!=null?s+1:0,l=n.pageCount;a&&o&&a.setStyle("text",U(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=zl[o],u=Gl[o],l=this._findTargetItemIndex(n),f=i.children(),h=f[l],v=f.length,c=v?1:0,d={contentPosition:[i.x,i.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=S(h);d.contentPosition[o]=-p.s;for(var g=l+1,y=p,m=p,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+a||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=l-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!w(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(b){if(b){var x=b.getBoundingRect(),C=x[u]+b[u];return{s:C,e:C+x[s],i:b.__legendDataIndex}}}function w(b,x){return b.e>=x&&b.s<=x+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===r&&(n=s)}),n??a},t.type="legend.scroll",t})(s1);function jP(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function KP(e){Wr(l1),e.registerComponentModel($P),e.registerComponentView(ZP),jP(e)}function UI(e){Wr(l1),Wr(KP)}function QP(e){return jh(null,e)}var JP={isDimensionStacked:Zh,enableDataStack:Hm,getStackedDimension:Vm};function tI(e,t){var r=t;t instanceof pt||(r=new pt(t));var n=M_(r);return n.setExtent(e[0],e[1]),eh(n,r),n}function eI(e){Te(e,S_)}function rI(e,t){return t=t||{},In(e,null,null,t.state!=="normal")}const nI=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:lT,createList:QP,createScale:tI,createSymbol:pu,createTextStyle:rI,dataStack:JP,enableHoverEmphasis:_s,getECData:lt,getLayoutRect:Gr,mixinAxisModelCommonMethods:eI},Symbol.toStringTag,{value:"Module"})),iI=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:ew,asc:Qb,getPercentWithPrecision:Jb,getPixelPrecision:xy,getPrecision:vi,getPrecisionSafe:wy,isNumeric:My,isRadianAroundZero:_a,linearMap:ps,nice:Mh,numericToNumber:Sa,parseDate:dr,parsePercent:gt,quantile:nw,quantity:Cy,quantityExponent:eu,reformIntervals:iw,remRadian:Ch,round:Bt},Symbol.toStringTag,{value:"Module"})),aI=Object.freeze(Object.defineProperty({__proto__:null,format:Wa,parse:dr,roundTime:Cs},Symbol.toStringTag,{value:"Module"})),oI=Object.freeze(Object.defineProperty({__proto__:null,Arc:Va,BezierCurve:ou,BoundingRect:J,Circle:Ha,CompoundPath:Ky,Ellipse:nu,Group:Kt,Image:Yr,IncrementalDisplayable:rm,Line:vr,LinearGradient:Jy,Polygon:au,Polyline:Si,RadialGradient:tm,Rect:wt,Ring:iu,Sector:gr,Text:Nt,clipPointsByRect:cm,clipRectByRect:vm,createIcon:uu,extendPath:om,extendShape:am,getShapeClass:sm,getTransform:fm,initProps:cr,makeImage:Bh,makePath:su,mergePath:lm,registerShape:Ce,resizePath:Nh,updateProps:xe},Symbol.toStringTag,{value:"Module"})),sI=Object.freeze(Object.defineProperty({__proto__:null,addCommas:uc,capitalFirst:JT,encodeHTML:Yt,formatTime:QT,formatTpl:fc,getTextRect:KT,getTooltipMarker:Jm,normalizeCssArray:Ua,toCamelCase:lc,truncateText:CS},Symbol.toStringTag,{value:"Module"})),uI=Object.freeze(Object.defineProperty({__proto__:null,bind:ut,clone:rt,curry:_t,defaults:ft,each:T,extend:E,filter:Ct,indexOf:it,inherits:yh,isArray:F,isFunction:Q,isObject:Y,isString:U,map:X,merge:at,reduce:je},Symbol.toStringTag,{value:"Module"}));function lI(e){var t=ot.extend(e);return ot.registerClass(t),t}function fI(e){var t=ue.extend(e);return ue.registerClass(t),t}function hI(e){var t=se.extend(e);return se.registerClass(t),t}function cI(e){var t=be.extend(e);return be.registerClass(t),t}const YI=Object.freeze(Object.defineProperty({__proto__:null,Axis:B_,ChartView:be,ComponentModel:ot,ComponentView:ue,List:qh,Model:pt,PRIORITY:i_,SeriesModel:se,color:ab,connect:uL,dataTool:gL,dependencies:UA,disConnect:lL,disconnect:c_,dispose:fL,env:j,extendChartView:cI,extendComponentModel:lI,extendComponentView:fI,extendSeriesModel:hI,format:sI,getCoordinateSystemDimensions:cL,getInstanceByDom:xc,getInstanceById:hL,getMap:pL,graphic:oI,helper:nI,init:sL,innerDrawElementOnCanvas:_c,matrix:SS,number:iI,parseGeoJSON:$p,parseGeoJson:$p,registerAction:kn,registerCoordinateSystem:p_,registerCustomSeries:vL,registerLayout:g_,registerLoading:Ac,registerLocale:Jh,registerMap:y_,registerPostInit:v_,registerPostUpdate:d_,registerPreprocessor:Cc,registerProcessor:Mc,registerTheme:Tc,registerTransform:m_,registerUpdateLifecycle:mu,registerVisual:Xr,setCanvasCreator:dL,setPlatformAPI:Ig,throttle:gu,time:aI,use:Wr,util:uI,vector:US,version:WA,zrUtil:rS,zrender:ED},Symbol.toStringTag,{value:"Module"}));function pg(e,t,r){var n=we.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var Hl=(function(e){V(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||vs,typeof r=="string"?o=pg(r,n,i):Y(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(mh(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=pg("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new J(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new J(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,w=1/0,b=0,x=0;x<o.length;++x){var C=o[x];if(C.intersect(m)){var D=new J(0,0,0,0);D.copy(C),D.union(m),o[x]=D,S=!0;break}else if(u){l.copy(m),l.union(C);var A=m.width*m.height,M=C.width*C.height,I=l.width*l.height,L=I-A-M;L<w&&(w=L,b=x)}}if(u&&(o[b].union(m),S=!0),!S){var _=new J(0,0,0,0);_.copy(m),o.push(_)}u||(u=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var v=r[h];if(v){var c=v.shouldBePainted(i,a,!0,!0),d=v.__isRendered&&(v.__dirty&ie||!c)?v.getPrevPaintRect():null;d&&f(d);var p=c&&(v.__dirty&ie||!v.__isRendered)?v.getPaintRect():null;p&&f(p)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var v=n[h],c=v&&v.shouldBePainted(i,a,!0,!0);if(v&&(!c||!v.__zr)&&v.__isRendered){var d=v.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var y=h+1;y<o.length;)o[h].intersect(o[y])?(g=!0,o[h].union(o[y]),o.splice(y,1)):y++;h++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,u=a.height;n=n||this.clearColor;var l=this.motionBlur&&!r,f=this.lastFrameAlpha,h=this.dpr,v=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,u/h));var c=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),n&&n!=="transparent"){var _=void 0;if(Oa(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||Vf(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else kg(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=Wf(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,y,m),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(c,p,g,y,m),o.restore())}!i||l?d(0,0,s,u):i.length&&T(i,function(p){d(p.x*h,p.y*h,p.width*h,p.height*h)})},t})(Je),gg=1e5,yn=314159,Fo=.01,vI=.001;function dI(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function pI(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var gI=(function(){function e(t,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=E({},n||{}),this.dpr=n.devicePixelRatio||vs,this._singleCanvas=a,this.root=t;var o=t.style;o&&(mh(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(a){var f=t,h=f.width,v=f.height;n.width!=null&&(h=n.width),n.height!=null&&(v=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=v*this.dpr,this._width=h,this._height=v;var c=new Hl(f,this,this.dpr);c.__builtin__=!0,c.initContext(),u[yn]=c,c.zlevel=yn,s.push(yn),this._domRoot=t}else{this._width=Do(t,0,n),this._height=Do(t,1,n);var l=this._domRoot=pI(this._width,this._height);t.appendChild(l)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var u=a===0?this._backgroundColor:null;s.refresh(u)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(gg)),a||(a=n.ctx,a.save()),xn(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(gg)},e.prototype.paintOne=function(t,r){_c(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var u=this;Ps(function(){u._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(yn).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],l=this._layers[u];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&a.push(l)}for(var f=!0,h=!1,v=function(p){var g=a[p],y=g.ctx,m=o&&g.createRepaintRects(t,r,c._width,c._height),_=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,w=S&&Date.now(),b=g.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,b,m);else if(_===g.__startIndex){var x=t[_];(!x.incremental||!x.notClear||n)&&g.clear(!1,b,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var C,D=function(L){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=_;C<g.__endIndex;C++){var R=t[C];if(R.__inHover&&(h=!0),i._doPaintEl(R,g,o,L,P,C===g.__endIndex-1),S){var k=Date.now()-w;if(k>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)C=g.__endIndex;else for(var A=c.dpr,M=0;M<m.length;++M){var I=m[M];y.save(),y.beginPath(),y.rect(I.x*A,I.y*A,I.width*A,I.height*A),y.clip(),D(I),y.restore()}else y.save(),D(),y.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(f=!1)},c=this,d=0;d<a.length;d++)v(d);return j.wxa&&T(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:h}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var u=t.getPaintRect();(!i||u&&u.intersect(i))&&(xn(s,t,a,o),t.setPrevPaintRect(u))}else xn(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=yn);var n=this._layers[t];return n||(n=new Hl("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?at(n,this._layerConfig[t],!0):this._layerConfig[t-Fo]&&at(n,this._layerConfig[t-Fo],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,u=-1;if(!n[t]&&dI(r)){if(a>0&&t>i[0]){for(u=0;u<a-1&&!(i[u]<t&&i[u+1]>t);u++);s=n[i[u]]}if(i.splice(u+1,0,t),n[t]=r,!r.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(r.dom,l.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,v){h.__dirty=h.__used=!1});function r(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,u;for(u=0;u<t.length;u++){var i=t[u],l=i.zlevel,f=void 0;s!==l&&(s=l,o=0),i.incremental?(f=this.getLayer(l+vI,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(l+(o>0?Fo:0),this._needsManuallyCompositing),f.__builtin__||Ys("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,r(u),a=f),i.__dirty&ie&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}r(u),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,T(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?at(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+Fo){var o=this._layers[a];at(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];i&&(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(it(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=Do(a,0,i),r=Do(a,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(yn).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[yn].dom;var r=new Hl("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,i,a):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++){var f=s[u];xn(n,f,o,u===l-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e})();function XI(e){e.registerPainter("canvas",gI)}var zo={},ch=function(e,t){return ch=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ch(e,t)};function f1(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ch(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Vs=function(){return Vs=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Vs.apply(this,arguments)};function h1(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function c1(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function v1(e,t){return function(r,n){t(r,n,e)}}function yI(e,t,r,n,i,a){function o(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}for(var s=n.kind,u=s==="getter"?"get":s==="setter"?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),h,v=!1,c=r.length-1;c>=0;c--){var d={};for(var p in n)d[p]=p==="access"?{}:n[p];for(var p in n.access)d.access[p]=n.access[p];d.addInitializer=function(y){if(v)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(y||null))};var g=(0,r[c])(s==="accessor"?{get:f.get,set:f.set}:f[u],d);if(s==="accessor"){if(g===void 0)continue;if(g===null||typeof g!="object")throw new TypeError("Object expected");(h=o(g.get))&&(f.get=h),(h=o(g.set))&&(f.set=h),(h=o(g.init))&&i.unshift(h)}else(h=o(g))&&(s==="field"?i.unshift(h):f[u]=h)}l&&Object.defineProperty(l,n.name,f),v=!0}function mI(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function _I(e){return typeof e=="symbol"?e:"".concat(e)}function SI(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function d1(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function p1(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(f){try{l(n.next(f))}catch(h){o(h)}}function u(f){try{l(n.throw(f))}catch(h){o(h)}}function l(f){f.done?a(f.value):i(f.value).then(s,u)}l((n=n.apply(e,t||[])).next())})}function g1(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(f){return u([l,f])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(f){l=[6,f],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var _u=Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});function y1(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&_u(t,e,r)}function Ws(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Bc(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function m1(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Bc(arguments[t]));return e}function _1(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)n[i]=a[o];return n}function S1(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}function mi(e){return this instanceof mi?(this.v=e,this):new mi(e)}function b1(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,a=[];return i={},s("next"),s("throw"),s("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(c){return function(d){return Promise.resolve(d).then(c,h)}}function s(c,d){n[c]&&(i[c]=function(p){return new Promise(function(g,y){a.push([c,p,g,y])>1||u(c,p)})},d&&(i[c]=d(i[c])))}function u(c,d){try{l(n[c](d))}catch(p){v(a[0][3],p)}}function l(c){c.value instanceof mi?Promise.resolve(c.value.v).then(f,h):v(a[0][2],c)}function f(c){u("next",c)}function h(c){u("throw",c)}function v(c,d){c(d),a.shift(),a.length&&u(a[0][0],a[0][1])}}function w1(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,a){t[i]=e[i]?function(o){return(r=!r)?{value:mi(e[i](o)),done:!1}:a?a(o):o}:a}}function x1(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Ws=="function"?Ws(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(o){return new Promise(function(s,u){o=e[a](o),i(s,u,o.done,o.value)})}}function i(a,o,s,u){Promise.resolve(u).then(function(l){a({value:l,done:s})},o)}}function T1(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var bI=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};function C1(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&_u(t,e,r);return bI(t,e),t}function M1(e){return e&&e.__esModule?e:{default:e}}function D1(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function A1(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function L1(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function P1(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(a){return Promise.reject(a)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var wI=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function I1(e){function t(n){e.error=e.hasError?new wI(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}function r(){for(;e.stack.length;){var n=e.stack.pop();try{var i=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(i).then(r,function(a){return t(a),r()})}catch(a){t(a)}}if(e.hasError)throw e.error}return r()}const xI={__extends:f1,__assign:Vs,__rest:h1,__decorate:c1,__param:v1,__metadata:d1,__awaiter:p1,__generator:g1,__createBinding:_u,__exportStar:y1,__values:Ws,__read:Bc,__spread:m1,__spreadArrays:_1,__spreadArray:S1,__await:mi,__asyncGenerator:b1,__asyncDelegator:w1,__asyncValues:x1,__makeTemplateObject:T1,__importStar:C1,__importDefault:M1,__classPrivateFieldGet:D1,__classPrivateFieldSet:A1,__classPrivateFieldIn:L1,__addDisposableResource:P1,__disposeResources:I1},TI=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:P1,get __assign(){return Vs},__asyncDelegator:w1,__asyncGenerator:b1,__asyncValues:x1,__await:mi,__awaiter:p1,__classPrivateFieldGet:D1,__classPrivateFieldIn:L1,__classPrivateFieldSet:A1,__createBinding:_u,__decorate:c1,__disposeResources:I1,__esDecorate:yI,__exportStar:y1,__extends:f1,__generator:g1,__importDefault:M1,__importStar:C1,__makeTemplateObject:T1,__metadata:d1,__param:v1,__propKey:_I,__read:Bc,__rest:h1,__runInitializers:mI,__setFunctionName:SI,__spread:m1,__spreadArray:S1,__spreadArrays:_1,__values:Ws,default:xI},Symbol.toStringTag,{value:"Module"})),R1=B1(TI);var ar={},or={},Vl={},yg;function CI(){return yg||(yg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1;e.default=function(){return"".concat(t++)}})(Vl)),Vl}var Gi={},Hi={},Wl={},mg;function E1(){return mg||(mg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,i=null;return function(){for(var a=this,o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];clearTimeout(i),i=setTimeout(function(){r.apply(a,s)},n)}}})(Wl)),Wl}var sr={},_g;function Nc(){return _g||(_g=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.SizeSensorId=sr.SensorTabIndex=sr.SensorClassName=void 0,sr.SizeSensorId="size-sensor-id",sr.SensorClassName="size-sensor-object",sr.SensorTabIndex="-1"),sr}var Sg;function MI(){if(Sg)return Hi;Sg=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.createSensor=void 0;var e=r(E1()),t=Nc();function r(n){return n&&n.__esModule?n:{default:n}}return Hi.createSensor=function(i,a){var o=void 0,s=[],u=function(){getComputedStyle(i).position==="static"&&(i.style.position="relative");var d=document.createElement("object");return d.onload=function(){d.contentDocument.defaultView.addEventListener("resize",l),l()},d.style.display="block",d.style.position="absolute",d.style.top="0",d.style.left="0",d.style.height="100%",d.style.width="100%",d.style.overflow="hidden",d.style.pointerEvents="none",d.style.zIndex="-1",d.style.opacity="0",d.setAttribute("class",t.SensorClassName),d.setAttribute("tabindex",t.SensorTabIndex),d.type="text/html",i.appendChild(d),d.data="about:blank",d},l=(0,e.default)(function(){s.forEach(function(c){c(i)})}),f=function(d){o||(o=u()),s.indexOf(d)===-1&&s.push(d)},h=function(){o&&o.parentNode&&(o.contentDocument&&o.contentDocument.defaultView.removeEventListener("resize",l),o.parentNode.removeChild(o),i.removeAttribute(t.SizeSensorId),o=void 0,s=[],a&&a())},v=function(d){var p=s.indexOf(d);p!==-1&&s.splice(p,1),s.length===0&&o&&h()};return{element:i,bind:f,destroy:h,unbind:v}},Hi}var Vi={},bg;function DI(){if(bg)return Vi;bg=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.createSensor=void 0;var e=Nc(),t=r(E1());function r(n){return n&&n.__esModule?n:{default:n}}return Vi.createSensor=function(i,a){var o=void 0,s=[],u=(0,t.default)(function(){s.forEach(function(c){c(i)})}),l=function(){var d=new ResizeObserver(u);return d.observe(i),u(),d},f=function(d){o||(o=l()),s.indexOf(d)===-1&&s.push(d)},h=function(){o&&o.disconnect(),s=[],o=void 0,i.removeAttribute(e.SizeSensorId),a&&a()},v=function(d){var p=s.indexOf(d);p!==-1&&s.splice(p,1),s.length===0&&o&&h()};return{element:i,bind:f,destroy:h,unbind:v}},Vi}var wg;function AI(){if(wg)return Gi;wg=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.createSensor=void 0;var e=MI(),t=DI();return Gi.createSensor=typeof ResizeObserver<"u"?t.createSensor:e.createSensor,Gi}var xg;function LI(){if(xg)return or;xg=1,Object.defineProperty(or,"__esModule",{value:!0}),or.removeSensor=or.getSensor=or.Sensors=void 0;var e=n(CI()),t=AI(),r=Nc();function n(o){return o&&o.__esModule?o:{default:o}}var i=or.Sensors={};function a(o){o&&i[o]&&delete i[o]}return or.getSensor=function(s){var u=s.getAttribute(r.SizeSensorId);if(u&&i[u])return i[u];var l=(0,e.default)();s.setAttribute(r.SizeSensorId,l);var f=(0,t.createSensor)(s,function(){return a(l)});return i[l]=f,f},or.removeSensor=function(s){var u=s.element.getAttribute(r.SizeSensorId);s.destroy(),a(u)},or}var Tg;function PI(){if(Tg)return ar;Tg=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.ver=ar.clear=ar.bind=void 0;var e=LI();return ar.bind=function(r,n){var i=(0,e.getSensor)(r);return i.bind(n),function(){i.unbind(n)}},ar.clear=function(r){var n=(0,e.getSensor)(r);(0,e.removeSensor)(n)},ar.ver="1.0.3",ar}var Wi={},Cg;function II(){if(Cg)return Wi;Cg=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.pick=void 0;function e(t,r){var n={};return r.forEach(function(i){n[i]=t[i]}),n}return Wi.pick=e,Wi}var Ui={},Mg;function RI(){if(Mg)return Ui;Mg=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.isFunction=void 0;function e(t){return typeof t=="function"}return Ui.isFunction=e,Ui}var Yi={},Dg;function EI(){if(Dg)return Yi;Dg=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.isString=void 0;function e(t){return typeof t=="string"}return Yi.isString=e,Yi}var Xi={},Ul,Ag;function OI(){return Ag||(Ag=1,Ul=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;i--!==0;){var o=a[i];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r}),Ul}var Lg;function kI(){if(Lg)return Xi;Lg=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.isEqual=void 0;var e=R1,t=e.__importDefault(OI());return Xi.isEqual=t.default,Xi}var Pg;function BI(){if(Pg)return zo;Pg=1,Object.defineProperty(zo,"__esModule",{value:!0});var e=R1,t=e.__importStar(N1()),r=PI(),n=II(),i=RI(),a=EI(),o=kI(),s=(function(u){e.__extends(l,u);function l(f){var h=u.call(this,f)||this;return h.echarts=f.echarts,h.ele=null,h.isInitialResize=!0,h.eventHandlerRefs={},h}return l.prototype.componentDidMount=function(){this.renderNewEcharts()},l.prototype.componentDidUpdate=function(f){var h=this.props.shouldSetOption;if(!((0,i.isFunction)(h)&&!h(f,this.props))){if(!(0,o.isEqual)(f.theme,this.props.theme)||!(0,o.isEqual)(f.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var v=this.getEchartsInstance();(0,o.isEqual)(f.onEvents,this.props.onEvents)||(this.unbindEvents(v),this.bindEvents(v,this.props.onEvents));var c=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];(0,o.isEqual)((0,n.pick)(this.props,c),(0,n.pick)(f,c))||this.updateEChartsOption(),(!(0,o.isEqual)(f.style,this.props.style)||!(0,o.isEqual)(f.className,this.props.className))&&this.resize()}},l.prototype.componentWillUnmount=function(){this.dispose()},l.prototype.initEchartsInstance=function(){return e.__awaiter(this,void 0,void 0,function(){var f=this;return e.__generator(this,function(h){return[2,new Promise(function(v){f.echarts.init(f.ele,f.props.theme,f.props.opts);var c=f.getEchartsInstance();c.on("finished",function(){var d=f.ele.clientWidth,p=f.ele.clientHeight;f.echarts.dispose(f.ele);var g=e.__assign({width:d,height:p},f.props.opts);v(f.echarts.init(f.ele,f.props.theme,g))})})]})})},l.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},l.prototype.dispose=function(){if(this.ele){try{(0,r.clear)(this.ele)}catch(f){console.warn(f)}this.echarts.dispose(this.ele)}},l.prototype.renderNewEcharts=function(){return e.__awaiter(this,void 0,void 0,function(){var f,h,v,c,d,p,g=this;return e.__generator(this,function(y){switch(y.label){case 0:return f=this.props,h=f.onEvents,v=f.onChartReady,c=f.autoResize,d=c===void 0?!0:c,[4,this.initEchartsInstance()];case 1:return y.sent(),p=this.updateEChartsOption(),this.bindEvents(p,h||{}),(0,i.isFunction)(v)&&v(p),this.ele&&d&&(0,r.bind)(this.ele,function(){g.resize()}),[2]}})})},l.prototype.bindEvents=function(f,h){var v=this,c=function(p,g){if((0,a.isString)(p)&&(0,i.isFunction)(g)){var y=function(m){g(m,f)};f.on(p,y),v.eventHandlerRefs[p]=y}};for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&c(d,h[d])},l.prototype.unbindEvents=function(f){for(var h=0,v=Object.entries(this.eventHandlerRefs);h<v.length;h++){var c=v[h],d=c[0],p=c[1];f.off(d,p)}this.eventHandlerRefs={}},l.prototype.updateEChartsOption=function(){var f=this.props,h=f.option,v=f.notMerge,c=v===void 0?!1:v,d=f.replaceMerge,p=d===void 0?null:d,g=f.lazyUpdate,y=g===void 0?!1:g,m=f.showLoading,_=f.loadingOption,S=_===void 0?null:_,w=this.getEchartsInstance();return w.setOption(h,{notMerge:c,replaceMerge:p,lazyUpdate:y}),m?w.showLoading(S):w.hideLoading(),w},l.prototype.resize=function(){var f=this.getEchartsInstance();if(!this.isInitialResize)try{f.resize({width:"auto",height:"auto"})}catch(h){console.warn(h)}this.isInitialResize=!1},l.prototype.render=function(){var f=this,h=this.props,v=h.style,c=h.className,d=c===void 0?"":c;h.echarts,h.option,h.theme,h.notMerge,h.replaceMerge,h.lazyUpdate,h.showLoading,h.loadingOption,h.opts,h.onChartReady,h.onEvents,h.shouldSetOption,h.autoResize;var p=e.__rest(h,["style","className","echarts","option","theme","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption","opts","onChartReady","onEvents","shouldSetOption","autoResize"]),g=e.__assign({height:300},v);return t.default.createElement("div",e.__assign({ref:function(y){f.ele=y},style:g,className:"echarts-for-react ".concat(d)},p))},l})(t.PureComponent);return zo.default=s,zo}var NI=BI();const qI=F1(NI);export{YI as A,J as B,be as C,GI as D,HI as E,VI as F,Kt as G,UI as H,WI as I,XI as J,ct as P,qI as R,se as S,Yr as Z,V as _,E as a,Vh as b,pu as c,lt as d,pf as e,nm as f,mm as g,zI as h,cr as i,jC as j,zh as k,gf as l,Y as m,ZC as n,X as o,Zh as p,ol as q,$ as r,im as s,Wy as t,xe as u,u0 as v,jh as w,q as x,Wr as y,$2 as z};