import"./react-vendor-CjpoAPrF.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

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

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Lf=function(r,t){return Lf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Lf(r,t)};function N(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Lf(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Pf=function(){return Pf=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Pf.apply(this,arguments)};function cS(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i])&&(e[n[i]]=r[n[i]]);return e}function dS(r,t,e,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,n);else for(var s=r.length-1;s>=0;s--)(o=r[s])&&(a=(i<3?o(a):i>3?o(t,e,a):o(t,e))||a);return i>3&&a&&Object.defineProperty(t,e,a),a}function pS(r,t){return function(e,n){t(e,n,r)}}function gS(r,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,t)}function yS(r,t,e,n){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=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(r,t||[])).next())})}function mS(r,t){var e={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(;e;)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 e.label++,{value:l[1],done:!1};case 5:e.label++,i=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){e.label=l[1];break}if(l[0]===6&&e.label<a[1]){e.label=a[1],a=l;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(l);break}a[2]&&e.ops.pop(),e.trys.pop();continue}l=t.call(r,e)}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 Hh=Object.create?(function(r,t,e,n){n===void 0&&(n=e),Object.defineProperty(r,n,{enumerable:!0,get:function(){return t[e]}})}):(function(r,t,e,n){n===void 0&&(n=e),r[n]=t[e]});function _S(r,t){for(var e in r)e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e)&&Hh(t,r,e)}function If(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ey(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),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&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return a}function SS(){for(var r=[],t=0;t<arguments.length;t++)r=r.concat(Ey(arguments[t]));return r}function bS(){for(var r=0,t=0,e=arguments.length;t<e;t++)r+=arguments[t].length;for(var n=Array(r),i=0,t=0;t<e;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)n[i]=a[o];return n}function wS(r,t,e){if(e||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 r.concat(a||t)}function Ia(r){return this instanceof Ia?(this.v=r,this):new Ia(r)}function xS(r,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(r,t||[]),i,a=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(v){n[v]&&(i[v]=function(c){return new Promise(function(d,p){a.push([v,c,d,p])>1||s(v,c)})})}function s(v,c){try{u(n[v](c))}catch(d){h(a[0][3],d)}}function u(v){v.value instanceof Ia?Promise.resolve(v.value.v).then(l,f):h(a[0][2],v)}function l(v){s("next",v)}function f(v){s("throw",v)}function h(v,c){v(c),a.shift(),a.length&&s(a[0][0],a[0][1])}}function TS(r){var t,e;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]=r[i]?function(o){return(e=!e)?{value:Ia(r[i](o)),done:i==="return"}:a?a(o):o}:a}}function CS(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=r[Symbol.asyncIterator],e;return t?t.call(r):(r=typeof If=="function"?If(r):r[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(a){e[a]=r[a]&&function(o){return new Promise(function(s,u){o=r[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 DS(r,t){return Object.defineProperty?Object.defineProperty(r,"raw",{value:t}):r.raw=t,r}var MS=Object.create?(function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}):function(r,t){r.default=t};function AS(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var e in r)e!=="default"&&Object.prototype.hasOwnProperty.call(r,e)&&Hh(t,r,e);return MS(t,r),t}function LS(r){return r&&r.__esModule?r:{default:r}}function PS(r,t,e,n){if(e==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?r!==t||!n:!t.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?n:e==="a"?n.call(r):n?n.value:t.get(r)}function IS(r,t,e,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"?r!==t||!i:!t.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(r,e):i?i.value=e:t.set(r,e),e}const ZR=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return Pf},__asyncDelegator:TS,__asyncGenerator:xS,__asyncValues:CS,__await:Ia,__awaiter:yS,__classPrivateFieldGet:PS,__classPrivateFieldSet:IS,__createBinding:Hh,__decorate:dS,__exportStar:_S,__extends:N,__generator:mS,__importDefault:LS,__importStar:AS,__makeTemplateObject:DS,__metadata:gS,__param:pS,__read:Ey,__rest:cS,__spread:SS,__spreadArray:wS,__spreadArrays:bS,__values:If},Symbol.toStringTag,{value:"Module"}));var nr={},ir={},Vu={},pc;function RS(){return pc||(pc=1,(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=1;r.default=function(){return"".concat(t++)}})(Vu)),Vu}var Fi={},zi={},Hu={},gc;function ky(){return gc||(gc=1,(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=function(e){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(){e.apply(a,s)},n)}}})(Hu)),Hu}var ar={},yc;function Wh(){return yc||(yc=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.SizeSensorId=ar.SensorTabIndex=ar.SensorClassName=void 0,ar.SizeSensorId="size-sensor-id",ar.SensorClassName="size-sensor-object",ar.SensorTabIndex="-1"),ar}var mc;function ES(){if(mc)return zi;mc=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.createSensor=void 0;var r=e(ky()),t=Wh();function e(n){return n&&n.__esModule?n:{default:n}}return zi.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,r.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}},zi}var Gi={},_c;function kS(){if(_c)return Gi;_c=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.createSensor=void 0;var r=Wh(),t=e(ky());function e(n){return n&&n.__esModule?n:{default:n}}return Gi.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(r.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}},Gi}var Sc;function OS(){if(Sc)return Fi;Sc=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.createSensor=void 0;var r=ES(),t=kS();return Fi.createSensor=typeof ResizeObserver<"u"?t.createSensor:r.createSensor,Fi}var bc;function BS(){if(bc)return ir;bc=1,Object.defineProperty(ir,"__esModule",{value:!0}),ir.removeSensor=ir.getSensor=ir.Sensors=void 0;var r=n(RS()),t=OS(),e=Wh();function n(o){return o&&o.__esModule?o:{default:o}}var i=ir.Sensors={};function a(o){o&&i[o]&&delete i[o]}return ir.getSensor=function(s){var u=s.getAttribute(e.SizeSensorId);if(u&&i[u])return i[u];var l=(0,r.default)();s.setAttribute(e.SizeSensorId,l);var f=(0,t.createSensor)(s,function(){return a(l)});return i[l]=f,f},ir.removeSensor=function(s){var u=s.element.getAttribute(e.SizeSensorId);s.destroy(),a(u)},ir}var wc;function qR(){if(wc)return nr;wc=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.ver=nr.clear=nr.bind=void 0;var r=BS();return nr.bind=function(e,n){var i=(0,r.getSensor)(e);return i.bind(n),function(){i.unbind(n)}},nr.clear=function(e){var n=(0,r.getSensor)(e);(0,r.removeSensor)(n)},nr.ver="1.0.3",nr}var Wu,xc;function KR(){return xc||(xc=1,Wu=function r(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,i,a;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(i=n;i--!==0;)if(!r(t[i],e[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(a=Object.keys(t),n=a.length,n!==Object.keys(e).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[i]))return!1;for(i=n;i--!==0;){var o=a[i];if(!r(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}),Wu}var Yh=12,NS="sans-serif",On=Yh+"px "+NS,FS=20,zS=100,GS="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function VS(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),i=(r.charCodeAt(e)-FS)/zS;t[n]=i}return t}var HS=VS(GS),gr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,n){if(!r){var i=gr.createCanvas();r=i&&i.getContext("2d")}if(r)return t!==n&&(t=r.font=n||On),r.measureText(e);e=e||"",n=n||On;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Yh,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var u=0;u<e.length;u++){var l=HS[e[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n}};function WS(r){for(var t in gr)r[t]&&(gr[t]=r[t])}var Oy=Be(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),By=Be(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Mi=Object.prototype.toString,ru=Array.prototype,YS=ru.forEach,US=ru.filter,Uh=ru.slice,XS=ru.map,Tc=(function(){}).constructor,go=Tc?Tc.prototype:null,Xh="__proto__",$S=2311;function $h(){return $S++}function nu(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function J(r){if(r==null||typeof r!="object")return r;var t=r,e=Mi.call(r);if(e==="[object Array]"){if(!pi(r)){t=[];for(var n=0,i=r.length;n<i;n++)t[n]=J(r[n])}}else if(By[e]){if(!pi(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var n=0,i=r.length;n<i;n++)t[n]=r[n]}}}else if(!Oy[e]&&!pi(r)&&!wi(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Xh&&(t[o]=J(r[o]))}return t}function st(r,t,e){if(!X(t)||!X(r))return e?J(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==Xh){var i=r[n],a=t[n];X(a)&&X(i)&&!F(a)&&!F(i)&&!wi(a)&&!wi(i)&&!Rf(a)&&!Rf(i)&&!pi(a)&&!pi(i)?st(i,a,e):(e||!(n in r))&&(r[n]=J(t[n]))}return r}function ZS(r,t){for(var e=r[0],n=1,i=r.length;n<i;n++)e=st(e,r[n],t);return e}function k(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Xh&&(r[e]=t[e]);return r}function it(r,t,e){for(var n=vt(t),i=0,a=n.length;i<a;i++){var o=n[i];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}var qS=gr.createCanvas;function rt(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1}function Zh(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var i in e)e.hasOwnProperty(i)&&(r.prototype[i]=e[i]);r.prototype.constructor=r,r.superClass=t}function Ut(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else it(r,t,e)}function Wt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function A(r,t,e){if(r&&t)if(r.forEach&&r.forEach===YS)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function H(r,t,e){if(!r)return[];if(!t)return iu(r);if(r.map&&r.map===XS)return r.map(t,e);for(var n=[],i=0,a=r.length;i<a;i++)n.push(t.call(e,r[i],i,r));return n}function Be(r,t,e,n){if(r&&t){for(var i=0,a=r.length;i<a;i++)e=t.call(n,e,r[i],i,r);return e}}function St(r,t,e){if(!r)return[];if(!t)return iu(r);if(r.filter&&r.filter===US)return r.filter(t,e);for(var n=[],i=0,a=r.length;i<a;i++)t.call(e,r[i],i,r)&&n.push(r[i]);return n}function KS(r,t,e){if(r&&t){for(var n=0,i=r.length;n<i;n++)if(t.call(e,r[n],n,r))return r[n]}}function vt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function jS(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(Uh.call(arguments)))}}var tt=go&&K(go.bind)?go.call.bind(go.bind):jS;function ut(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Uh.call(arguments)))}}function F(r){return Array.isArray?Array.isArray(r):Mi.call(r)==="[object Array]"}function K(r){return typeof r=="function"}function W(r){return typeof r=="string"}function bs(r){return Mi.call(r)==="[object String]"}function lt(r){return typeof r=="number"}function X(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Rf(r){return!!Oy[Mi.call(r)]}function jt(r){return!!By[Mi.call(r)]}function wi(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function ro(r){return r.colorStops!=null}function Ny(r){return r.image!=null}function QS(r){return Mi.call(r)==="[object RegExp]"}function Ra(r){return r!==r}function yr(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,n=r.length;e<n;e++)if(r[e]!=null)return r[e]}function Q(r,t){return r??t}function qe(r,t,e){return r??t??e}function iu(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Uh.apply(r,t)}function qh(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function Ne(r,t){if(!r)throw new Error(t)}function Ie(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Fy="__ec_primitive__";function ws(r){r[Fy]=!0}function pi(r){return r[Fy]}var JS=(function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return vt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r})(),zy=typeof Map=="function";function tb(){return zy?new Map:new JS}var Gy=(function(){function r(t){var e=F(t);this.data=tb();var n=this;t instanceof r?t.each(i):t&&A(t,i);function i(a,o){e?n.set(a,o):n.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},r.prototype.keys=function(){var t=this.data.keys();return zy?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function q(r){return new Gy(r)}function Vy(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var i=r.length,n=0;n<t.length;n++)e[n+i]=t[n];return e}function no(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&k(e,t),e}function Kh(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function G(r,t){return r.hasOwnProperty(t)}function Mt(){}var Hy=180/Math.PI;const jR=Object.freeze(Object.defineProperty({__proto__:null,HashMap:Gy,RADIAN_TO_DEGREE:Hy,assert:Ne,bind:tt,clone:J,concatArray:Vy,createCanvas:qS,createHashMap:q,createObject:no,curry:ut,defaults:it,disableUserSelect:Kh,each:A,eqNaN:Ra,extend:k,filter:St,find:KS,guid:$h,hasOwn:G,indexOf:rt,inherits:Zh,isArray:F,isArrayLike:Wt,isBuiltInObject:Rf,isDom:wi,isFunction:K,isGradientObject:ro,isImagePatternObject:Ny,isNumber:lt,isObject:X,isPrimitive:pi,isRegExp:QS,isString:W,isStringSafe:bs,isTypedArray:jt,keys:vt,logError:nu,map:H,merge:st,mergeAll:ZS,mixin:Ut,noop:Mt,normalizeCssArray:qh,reduce:Be,retrieve:yr,retrieve2:Q,retrieve3:qe,setAsPrimitive:ws,slice:iu,trim:Ie},Symbol.toStringTag,{value:"Module"}));var eb=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),rb=(function(){function r(){this.browser=new eb,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),$=new rb;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?($.wxa=!0,$.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?$.worker=!0:!$.hasGlobalWindow||"Deno"in window?($.node=!0,$.svgSupported=!0):nb(navigator.userAgent,$);function nb(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var ib=".",en="___EC__COMPONENT__CONTAINER___",Wy="___EC__EXTENDED_CLASS___";function Ze(r){var t={main:"",sub:""};if(r){var e=r.split(ib);t.main=e[0]||"",t.sub=e[1]||""}return t}function ab(r){Ne(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function ob(r){return!!(r&&r[Wy])}function jh(r,t){r.$constructor=r,r.extend=function(e){var n=this,i;return sb(n)?i=(function(a){N(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(e.$constructor||n).apply(this,arguments)},Zh(i,this)),k(i.prototype,e),i[Wy]=!0,i.extend=this.extend,i.superCall=fb,i.superApply=hb,i.superClass=n,i}}function sb(r){return K(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Yy(r,t){r.extend=t.extend}var ub=Math.round(Math.random()*10);function lb(r){var t=["__\0is_clz",ub++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function fb(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return this.superClass.prototype[t].apply(r,e)}function hb(r,t,e){return this.superClass.prototype[t].apply(r,e)}function au(r){var t={};r.registerClass=function(n){var i=n.type||n.prototype.type;if(i){ab(i),n.prototype.type=i;var a=Ze(i);if(!a.sub)t[a.main]=n;else if(a.sub!==en){var o=e(a);o[a.sub]=n}}return n},r.getClass=function(n,i,a){var o=t[n];if(o&&o[en]&&(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},r.getClassesByMainType=function(n){var i=Ze(n),a=[],o=t[i.main];return o&&o[en]?A(o,function(s,u){u!==en&&a.push(s)}):a.push(o),a},r.hasClass=function(n){var i=Ze(n);return!!t[i.main]},r.getAllClassMainTypes=function(){var n=[];return A(t,function(i,a){n.push(a)}),n},r.hasSubTypes=function(n){var i=Ze(n),a=t[i.main];return a&&a[en]};function e(n){var i=t[n.main];return(!i||!i[en])&&(i=t[n.main]={},i[en]=!0),i}}function Ea(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<r.length;s++){var u=r[s][1];if(!(i&&rt(i,u)>=0||a&&rt(a,u)<0)){var l=n.getShallow(u,t);l!=null&&(o[r[s][0]]=l)}}return o}}var vb=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],cb=Ea(vb),db=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return cb(this,t,e)},r})(),Uy=(function(){function r(t){this.value=t}return r})(),pb=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new Uy(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),io=(function(){function r(t){this._list=new pb,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){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=e:s=new Uy(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),Ef=new io(50);function gb(r){if(typeof r=="string"){var t=Ef.get(r);return t&&t.image}else return r}function Xy(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Ef.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!ou(t)&&a.pending.push(o)):(t=gr.loadImage(r,Cc,Cc),t.__zrImageSrc=r,Ef.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Cc(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],n=e.cb;n&&n(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function ou(r){return r&&r.width&&r.height}function vr(){return[1,0,0,1,0,0]}function ao(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function su(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Vr(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],u=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=u,r}function xs(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function uu(r,t,e,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(e),h=Math.cos(e);return r[0]=i*h+s*f,r[1]=-i*f+s*h,r[2]=a*h+u*f,r[3]=-a*f+h*u,r[4]=h*(o-n[0])+f*(l-n[1])+n[0],r[5]=h*(l-n[1])-f*(o-n[0])+n[1],r}function $y(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function Ai(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],u=e*o-a*n;return u?(u=1/u,r[0]=o*u,r[1]=-a*u,r[2]=-n*u,r[3]=e*u,r[4]=(n*s-o*i)*u,r[5]=(a*i-e*s)*u,r):null}function yb(r){var t=vr();return su(t,r),t}const QR=Object.freeze(Object.defineProperty({__proto__:null,clone:yb,copy:su,create:vr,identity:ao,invert:Ai,mul:Vr,rotate:uu,scale:$y,translate:xs},Symbol.toStringTag,{value:"Module"}));var j=(function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r})(),yo=Math.min,mo=Math.max,rn=new j,nn=new j,an=new j,on=new j,Vi=new j,Hi=new j,ot=(function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=yo(t.x,this.x),n=yo(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mo(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=mo(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=vr();return xs(a,a,[-e.x,-e.y]),$y(a,a,[n,i]),xs(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,u=t.x,l=t.x+t.width,f=t.y,h=t.y+t.height,v=!(a<u||l<i||s<f||h<o);if(e){var c=1/0,d=0,p=Math.abs(a-u),g=Math.abs(l-i),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(p,g),S=Math.min(y,m);a<u||l<i?_>d&&(d=_,p<g?j.set(Hi,-p,0):j.set(Hi,g,0)):_<c&&(c=_,p<g?j.set(Vi,p,0):j.set(Vi,-g,0)),s<f||h<o?S>d&&(d=S,y<m?j.set(Hi,0,-y):j.set(Hi,0,m)):_<c&&(c=_,y<m?j.set(Vi,0,y):j.set(Vi,0,-m))}return e&&j.copy(e,v?Vi:Hi),v},r.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.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}rn.x=an.x=e.x,rn.y=on.y=e.y,nn.x=on.x=e.x+e.width,nn.y=an.y=e.y+e.height,rn.transform(n),on.transform(n),nn.transform(n),an.transform(n),t.x=yo(rn.x,nn.x,an.x,on.x),t.y=yo(rn.y,nn.y,an.y,on.y);var u=mo(rn.x,nn.x,an.x,on.x),l=mo(rn.y,nn.y,an.y,on.y);t.width=u-t.x,t.height=l-t.y},r})(),Dc={};function le(r,t){t=t||On;var e=Dc[t];e||(e=Dc[t]=new io(500));var n=e.get(r);return n==null&&(n=gr.measureText(r,t).width,e.put(r,n)),n}function Mc(r,t,e,n){var i=le(r,t),a=Jh(t),o=sa(0,i,e),s=hi(0,a,n),u=new ot(o,s,i,a);return u}function Qh(r,t,e,n){var i=((r||"")+"").split(`
`),a=i.length;if(a===1)return Mc(i[0],t,e,n);for(var o=new ot(0,0,0,0),s=0;s<i.length;s++){var u=Mc(i[s],t,e,n);s===0?o.copy(u):o.union(u)}return o}function sa(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function hi(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function Jh(r){return le("国",r)}function $r(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Ts(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,u=e.x,l=e.y,f="left",h="top";if(n instanceof Array)u+=$r(n[0],e.width),l+=$r(n[1],e.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 r=r||{},r.x=u,r.y=l,r.align=f,r.verticalAlign=h,r}var Yu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function mb(r,t,e,n,i){var a={};return Zy(a,r,t,e,n,i),a.text}function Zy(r,t,e,n,i,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
`);a=qy(e,n,i,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)Ky(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;r.text=o.join(`
`),r.isTruncated=s}function qy(r,t,e,n){n=n||{};var i=k({},n);i.font=t,e=Q(e,"..."),i.maxIterations=Q(n.maxIterations,2);var a=i.minChar=Q(n.minChar,0);i.cnCharWidth=le("国",t);var o=i.ascCharWidth=le("a",t);i.placeholder=Q(n.placeholder,"");for(var s=r=Math.max(0,r-1),u=0;u<a&&s>=o;u++)s-=o;var l=le(e,t);return l>s&&(e="",l=0),s=r-l,i.ellipsis=e,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=r,i}function Ky(r,t,e){var n=e.containerWidth,i=e.font,a=e.contentWidth;if(!n){r.textLine="",r.isTruncated=!1;return}var o=le(t,i);if(o<=n){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var u=s===0?_b(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,u),o=le(t,i)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function _b(r,t,e,n){for(var i=0,a=0,o=r.length;a<o&&i<t;a++){var s=r.charCodeAt(a);i+=0<=s&&s<=127?e:n}return a}function Sb(r,t){r!=null&&(r+="");var e=t.overflow,n=t.padding,i=t.font,a=e==="truncate",o=Jh(i),s=Q(t.lineHeight,o),u=!!t.backgroundColor,l=t.lineOverflow==="truncate",f=!1,h=t.width,v;h!=null&&(e==="break"||e==="breakAll")?v=r?jy(r,t.font,h,e==="breakAll",0).lines:[]:v=r?r.split(`
`):[];var c=v.length*s,d=Q(t.height,c);if(c>d&&l){var p=Math.floor(d/s);f=f||v.length>p,v=v.slice(0,p)}if(r&&a&&h!=null)for(var g=qy(h,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},m=0;m<v.length;m++)Ky(y,v[m],g),v[m]=y.textLine,f=f||y.isTruncated;for(var _=d,S=0,m=0;m<v.length;m++)S=Math.max(le(v[m],i),S);h==null&&(h=S);var w=S;return n&&(_+=n[0]+n[2],w+=n[1]+n[3],h+=n[1]+n[3]),u&&(w=h),{lines:v,height:d,outerWidth:w,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:c,width:h,isTruncated:f}}var bb=(function(){function r(){}return r})(),Ac=(function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r})(),wb=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function xb(r,t){var e=new wb;if(r!=null&&(r+=""),!r)return e;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=Yu.lastIndex=0,u;(u=Yu.exec(r))!=null;){var l=u.index;l>s&&Uu(e,r.substring(s,l),t,o),Uu(e,u[2],t,o,u[1]),s=Yu.lastIndex}s<r.length&&Uu(e,r.substring(s,r.length),t,o);var f=[],h=0,v=0,c=t.padding,d=a==="truncate",p=t.lineOverflow==="truncate",g={};function y(V,Y,U){V.width=Y,V.lineHeight=U,h+=U,v=Math.max(v,Y)}t:for(var m=0;m<e.lines.length;m++){for(var _=e.lines[m],S=0,w=0,b=0;b<_.tokens.length;b++){var x=_.tokens[b],T=x.styleName&&t.rich[x.styleName]||{},C=x.textPadding=T.padding,M=C?C[1]+C[3]:0,D=x.font=T.font||t.font;x.contentHeight=Jh(D);var P=Q(T.height,x.contentHeight);if(x.innerHeight=P,C&&(P+=C[0]+C[2]),x.height=P,x.lineHeight=qe(T.lineHeight,t.lineHeight,P),x.align=T&&T.align||t.align,x.verticalAlign=T&&T.verticalAlign||"middle",p&&i!=null&&h+x.lineHeight>i){var R=e.lines.length;b>0?(_.tokens=_.tokens.slice(0,b),y(_,w,S),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m),e.isTruncated=e.isTruncated||e.lines.length<R;break t}var L=T.width,I=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")x.percentWidth=L,f.push(x),x.contentWidth=le(x.text,D);else{if(I){var E=T.backgroundColor,z=E&&E.image;z&&(z=gb(z),ou(z)&&(x.width=Math.max(x.width,z.width*P/z.height)))}var O=d&&n!=null?n-w:null;O!=null&&O<x.width?!I||O<M?(x.text="",x.width=x.contentWidth=0):(Zy(g,x.text,O-M,D,t.ellipsis,{minChar:t.truncateMinChar}),x.text=g.text,e.isTruncated=e.isTruncated||g.isTruncated,x.width=x.contentWidth=le(x.text,D)):x.contentWidth=le(x.text,D)}x.width+=M,w+=x.width,T&&(S=Math.max(S,x.lineHeight))}y(_,w,S)}e.outerWidth=e.width=Q(n,v),e.outerHeight=e.height=Q(i,h),e.contentHeight=h,e.contentWidth=v,c&&(e.outerWidth+=c[1]+c[3],e.outerHeight+=c[0]+c[2]);for(var m=0;m<f.length;m++){var x=f[m],B=x.percentWidth;x.width=parseInt(B,10)/100*e.width}return e}function Uu(r,t,e,n,i){var a=t==="",o=i&&e.rich[i]||{},s=r.lines,u=o.font||e.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=$r(o.width,n.width)+c;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
`),l=!0),n.accumWidth=d}else{var p=jy(t,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+c,h=p.linesWidths,f=p.lines}}else f=t.split(`
`);for(var g=0;g<f.length;g++){var y=f[g],m=new bb;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=h?h[g]:le(y,u),!g&&!l){var _=(s[s.length-1]||(s[0]=new Ac)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||a)&&_.push(m)}else s.push(new Ac([m]))}}function Tb(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Cb=Be(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function Db(r){return Tb(r)?!!Cb[r]:!0}function jy(r,t,e,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,h=0;h<r.length;h++){var v=r.charAt(h);if(v===`
`){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var c=le(v,t),d=n?!1:!Db(v);if(a.length?f+c>e:i+f+c>e){f?(s||u)&&(d?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=v,l+=c,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=v,f=c)):d?(a.push(u),o.push(l),u=v,l=c):(a.push(v),o.push(c));continue}f+=c,d?(u+=v,l+=c):(u&&(s+=u,u="",l=0),s+=v)}return!a.length&&!s&&(s=r,u="",l=0),u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function Jr(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Gt(r,t){return r[0]=t[0],r[1]=t[1],r}function Ke(r){return[r[0],r[1]]}function Qy(r,t,e){return r[0]=t,r[1]=e,r}function kf(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Cs(r,t,e,n){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r}function Rr(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function ka(r){return Math.sqrt(tv(r))}var Mb=ka;function tv(r){return r[0]*r[0]+r[1]*r[1]}var Ab=tv;function Lb(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function Pb(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function Ib(r,t){return r[0]*t[0]+r[1]*t[1]}function ya(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Vn(r,t){var e=ka(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function Ds(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Ms=Ds;function Jy(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var Hr=Jy;function Rb(r,t){return r[0]=-t[0],r[1]=-t[1],r}function ss(r,t,e,n){return r[0]=t[0]+n*(e[0]-t[0]),r[1]=t[1]+n*(e[1]-t[1]),r}function At(r,t,e){var n=t[0],i=t[1];return r[0]=e[0]*n+e[2]*i+e[4],r[1]=e[1]*n+e[3]*i+e[5],r}function Er(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function kr(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}const JR=Object.freeze(Object.defineProperty({__proto__:null,add:kf,applyTransform:At,clone:Ke,copy:Gt,create:Jr,dist:Ms,distSquare:Hr,distance:Ds,distanceSquare:Jy,div:Pb,dot:Ib,len:ka,lenSquare:tv,length:Mb,lengthSquare:Ab,lerp:ss,max:kr,min:Er,mul:Lb,negate:Rb,normalize:Vn,scale:ya,scaleAndAdd:Cs,set:Qy,sub:Rr},Symbol.toStringTag,{value:"Module"}));var Lc=ao,Pc=5e-5;function sn(r){return r>Pc||r<-Pc}var un=[],$n=[],Xu=vr(),$u=Math.abs,Cn=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return sn(this.rotation)||sn(this.x)||sn(this.y)||sn(this.scaleX-1)||sn(this.scaleY-1)||sn(this.skewX)||sn(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(Lc(n),this.invTransform=null);return}n=n||vr(),e?this.getLocalTransform(n):Lc(n),t&&(e?Vr(n,t,n):su(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(un);var n=un[0]<0?-1:1,i=un[1]<0?-1:1,a=((un[0]-n)*e+n)/un[0]||0,o=((un[1]-i)*e+i)/un[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||vr(),Ai(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],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),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||vr(),Vr($n,t.invTransform,e),e=$n);var n=this.originX,i=this.originY;(n||i)&&(Xu[4]=n,Xu[5]=i,Vr($n,e,Xu),$n[4]-=n,$n[5]-=i,e=$n),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&At(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&At(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&$u(t[0]-1)>1e-10&&$u(t[3]-1)>1e-10?Math.sqrt($u(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Eb(this,t)},r.getLocalTransform=function(t,e){e=e||[];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;e[4]=-d*a-v*p*o,e[5]=-p*o-c*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=c*a,e[2]=v*o,l&&uu(e,e,l),e[4]+=n+f,e[5]+=i+h,e},r.initDefaultProps=(function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),r})(),je=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Eb(r,t){for(var e=0;e<je.length;e++){var n=je[e];r[n]=t[n]}}var ma={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-ma.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?ma.bounceIn(r*2)*.5:ma.bounceOut(r*2-1)*.5+.5}},_o=Math.pow,Wr=Math.sqrt,As=1e-8,tm=1e-4,Ic=Wr(3),So=1/3,Xe=Jr(),Se=Jr(),gi=Jr();function Or(r){return r>-As&&r<As}function em(r){return r>As||r<-As}function Ot(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function Rc(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function Ls(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),u=3*(t-r),l=r-i,f=s*s-3*o*u,h=s*u-9*o*l,v=u*u-3*s*l,c=0;if(Or(f)&&Or(h))if(Or(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(Or(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=Wr(p),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-_o(-_,So):_=_o(_,So),S<0?S=-_o(-S,So):S=_o(S,So);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var w=(2*f*s-3*o*h)/(2*Wr(f*f*f)),b=Math.acos(w)/3,x=Wr(f),T=Math.cos(b),d=(-s-2*x*T)/(3*o),y=(-s+x*(T+Ic*Math.sin(b)))/(3*o),C=(-s+x*(T-Ic*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[c++]=d),y>=0&&y<=1&&(a[c++]=y),C>=0&&C<=1&&(a[c++]=C)}}return c}function rm(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,u=0;if(Or(o)){if(em(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(Or(f))i[0]=-a/(2*o);else if(f>0){var h=Wr(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 Ps(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,u=(n-e)*i+e,l=(s-o)*i+o,f=(u-s)*i+s,h=(f-l)*i+l;a[0]=r,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=n}function kb(r,t,e,n,i,a,o,s,u,l,f){var h,v=.005,c=1/0,d,p,g,y;Xe[0]=u,Xe[1]=l;for(var m=0;m<1;m+=.05)Se[0]=Ot(r,e,i,o,m),Se[1]=Ot(t,n,a,s,m),g=Hr(Xe,Se),g<c&&(h=m,c=g);c=1/0;for(var _=0;_<32&&!(v<tm);_++)d=h-v,p=h+v,Se[0]=Ot(r,e,i,o,d),Se[1]=Ot(t,n,a,s,d),g=Hr(Se,Xe),d>=0&&g<c?(h=d,c=g):(gi[0]=Ot(r,e,i,o,p),gi[1]=Ot(t,n,a,s,p),y=Hr(gi,Xe),p<=1&&y<c?(h=p,c=y):v*=.5);return Wr(c)}function Ob(r,t,e,n,i,a,o,s,u){for(var l=r,f=t,h=0,v=1/u,c=1;c<=u;c++){var d=c*v,p=Ot(r,e,i,o,d),g=Ot(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 qt(r,t,e,n){var i=1-n;return i*(i*r+2*n*t)+n*n*e}function Ec(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function Bb(r,t,e,n,i){var a=r-2*t+e,o=2*(t-r),s=r-n,u=0;if(Or(a)){if(em(o)){var l=-s/o;l>=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(Or(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var h=Wr(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 nm(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Oa(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function Nb(r,t,e,n,i,a,o,s,u){var l,f=.005,h=1/0;Xe[0]=o,Xe[1]=s;for(var v=0;v<1;v+=.05){Se[0]=qt(r,e,i,v),Se[1]=qt(t,n,a,v);var c=Hr(Xe,Se);c<h&&(l=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<tm);d++){var p=l-f,g=l+f;Se[0]=qt(r,e,i,p),Se[1]=qt(t,n,a,p);var c=Hr(Se,Xe);if(p>=0&&c<h)l=p,h=c;else{gi[0]=qt(r,e,i,g),gi[1]=qt(t,n,a,g);var y=Hr(gi,Xe);g<=1&&y<h?(l=g,h=y):f*=.5}}return Wr(h)}function Fb(r,t,e,n,i,a,o){for(var s=r,u=t,l=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=qt(r,e,i,v),d=qt(t,n,a,v),p=c-s,g=d-u;l+=Math.sqrt(p*p+g*g),s=c,u=d}return l}var zb=/cubic-bezier\(([0-9,\.e ]+)\)/;function im(r){var t=r&&zb.exec(r);if(t){var e=t[1].split(","),n=+Ie(e[0]),i=+Ie(e[1]),a=+Ie(e[2]),o=+Ie(e[3]);if(isNaN(n+i+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:Ls(0,n,a,1,u,s)&&Ot(0,i,o,1,s[0])}}}var Gb=(function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Mt,this.ondestroy=t.ondestroy||Mt,this.onrestart=t.onrestart||Mt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,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},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=K(t)?t:ma[t]||im(t)},r})(),kc={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 ke(r){return r=Math.round(r),r<0?0:r>255?255:r}function Vb(r){return r=Math.round(r),r<0?0:r>360?360:r}function Ba(r){return r<0?0:r>1?1:r}function Zu(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?ke(parseFloat(t)/100*255):ke(parseInt(t,10))}function Pn(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ba(parseFloat(t)/100):Ba(parseFloat(t))}function qu(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Br(r,t,e){return r+(t-r)*e}function ge(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function Of(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var am=new io(20),bo=null;function Zn(r,t){bo&&Of(bo,t),bo=am.put(r,bo||t.slice())}function fe(r,t){if(r){t=t||[];var e=am.get(r);if(e)return Of(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in kc)return Of(t,kc[n]),Zn(r,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)){ge(t,0,0,0,1);return}return ge(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),Zn(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ge(t,0,0,0,1);return}return ge(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Zn(r,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?ge(t,+l[0],+l[1],+l[2],1):ge(t,0,0,0,1);f=Pn(l.pop());case"rgb":if(l.length>=3)return ge(t,Zu(l[0]),Zu(l[1]),Zu(l[2]),l.length===3?f:Pn(l[3])),Zn(r,t),t;ge(t,0,0,0,1);return;case"hsla":if(l.length!==4){ge(t,0,0,0,1);return}return l[3]=Pn(l[3]),Bf(l,t),Zn(r,t),t;case"hsl":if(l.length!==3){ge(t,0,0,0,1);return}return Bf(l,t),Zn(r,t),t;default:return}}ge(t,0,0,0,1)}}function Bf(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=Pn(r[1]),i=Pn(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ge(t,ke(qu(o,a,e+1/3)*255),ke(qu(o,a,e)*255),ke(qu(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function Hb(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.min(t,e,n),a=Math.max(t,e,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-e)/6+o/2)/o,v=((a-n)/6+o/2)/o;t===a?u=v-h:e===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 r[3]!=null&&c.push(r[3]),c}}function Nf(r,t){var e=fe(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return tn(e,e.length===4?"rgba":"rgb")}}function Wb(r){var t=fe(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function om(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],u=n-i;return e[0]=ke(Br(o[0],s[0],u)),e[1]=ke(Br(o[1],s[1],u)),e[2]=ke(Br(o[2],s[2],u)),e[3]=Ba(Br(o[3],s[3],u)),e}}var Yb=om;function ev(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=fe(t[i]),s=fe(t[a]),u=n-i,l=tn([ke(Br(o[0],s[0],u)),ke(Br(o[1],s[1],u)),ke(Br(o[2],s[2],u)),Ba(Br(o[3],s[3],u))],"rgba");return e?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}var Ub=ev;function Xb(r,t,e,n){var i=fe(r);if(r)return i=Hb(i),t!=null&&(i[0]=Vb(t)),e!=null&&(i[1]=Pn(e)),n!=null&&(i[2]=Pn(n)),tn(Bf(i),"rgba")}function $b(r,t){var e=fe(r);if(e&&t!=null)return e[3]=Ba(t),tn(e,"rgba")}function tn(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Na(r,t){var e=fe(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function Zb(){return tn([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Oc=new io(100);function Ff(r){if(W(r)){var t=Oc.get(r);return t||(t=Nf(r,-.1),Oc.put(r,t)),t}else if(ro(r)){var e=k({},r);return e.colorStops=H(r.colorStops,function(n){return{offset:n.offset,color:Nf(n.color,-.1)}}),e}return r}const tE=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:om,fastMapToColor:Yb,lerp:ev,lift:Nf,liftColor:Ff,lum:Na,mapToColor:Ub,modifyAlpha:$b,modifyHSL:Xb,parse:fe,random:Zb,stringify:tn,toHex:Wb},Symbol.toStringTag,{value:"Module"}));function qb(r){return r.type==="linear"}function Kb(r){return r.type==="radial"}(function(){return $.hasGlobalWindow&&K(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var zf=Array.prototype.slice;function ur(r,t,e){return(t-r)*e+r}function Ku(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=ur(t[a],e[a],n);return r}function jb(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=ur(t[o][s],e[o][s],n)}return r}function wo(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=t[a]+e[a]*n;return r}function Bc(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function Qb(r,t){for(var e=r.length,n=t.length,i=e>n?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function Jb(r,t,e){var n=r,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(e===1?i[u]:zf.call(i[u]))}for(var l=n[0]&&n[0].length,u=0;u<n.length;u++)if(e===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 _a(r){if(Wt(r)){var t=r.length;if(Wt(r[0])){for(var e=[],n=0;n<t;n++)e.push(zf.call(r[n]));return e}return zf.call(r)}return r}function us(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function tw(r){return Wt(r&&r[0])?2:1}var xo=0,ls=1,sm=2,ua=3,Gf=4,Vf=5,Nc=6;function Fc(r){return r===Gf||r===Vf}function To(r){return r===ls||r===sm}var Wi=[0,0,0,0],ew=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Nc,u=e;if(Wt(e)){var l=tw(e);s=l,(l===1&&!lt(e[0])||l===2&&!lt(e[0][0]))&&(o=!0)}else if(lt(e)&&!Ra(e))s=xo;else if(W(e))if(!isNaN(+e))s=xo;else{var f=fe(e);f&&(u=f,s=ua)}else if(ro(e)){var h=k({},u);h.colorStops=H(e.colorStops,function(c){return{offset:c.offset,color:fe(c.color)}}),qb(e)?s=Gf:Kb(e)&&(s=Vf),u=h}a===0?this.valType=s:(s!==this.valType||s===Nc)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:u,rawValue:e,percent:0};return n&&(v.easing=n,v.easingFunc=K(n)?n:ma[n]||im(n)),i.push(v),v},r.prototype.prepare=function(t,e){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=Fc(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?Jb(v,c,i):l&&Qb(v.colorStops,c.colorStops))}if(!s&&i!==Vf&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,f=0;f<a;f++)i===xo?n[f].additiveValue=n[f].value-d:i===ua?n[f].additiveValue=wo([],n[f].value,d,-1):To(i)&&(n[f].additiveValue=i===ls?wo([],n[f].value,d,-1):Bc([],n[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===ua,f,h=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var p=v(h+1,s-1);for(f=p;f>=0&&!(o[f].percent<=e);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-c.percent,y=g===0?1:v((e-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===ls?Ku(m,c[i],d[i],y):jb(m,c[i],d[i],y);else if(Fc(a)){var _=c[i],S=d[i],w=a===Gf;t[u]={type:w?"linear":"radial",x:ur(_.x,S.x,y),y:ur(_.y,S.y,y),colorStops:H(_.colorStops,function(x,T){var C=S.colorStops[T];return{offset:ur(x.offset,C.offset,y),color:us(Ku([],x.color,C.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)Ku(m,c[i],d[i],y),n||(t[u]=us(m));else{var b=ur(c[i],d[i],y);n?this._additiveValue=b:t[u]=b}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===xo?t[n]=t[n]+i:e===ua?(fe(t[n],Wi),wo(Wi,Wi,i,1),t[n]=us(Wi)):e===ls?wo(t[n],t[n],i,1):e===sm&&Bc(t[n],t[n],i,1)},r})(),rv=(function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){nu("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,vt(e),n)},r.prototype.whenWithKeys=function(t,e,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 ew(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===ua&&l&&(l=us(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,_a(l),i),this._trackKeys.push(s)}u.addKeyframe(t,_a(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=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&&(e._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new Gb({life:i,loop:this._loop,delay:this._delay||0,onframe:function(c){e._started=2;var d=e._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(e._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(e._target,c);var y=e._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](e._target,c)},ondestroy:function(){e._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return H(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(e?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},r.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var a=e[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[n?0:s.length-1];u&&(t[a]=_a(u.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||vt(t);for(var n=0;n<e.length;n++){var i=e[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())}}}},r})(),Fe=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),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:e,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},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==e&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},r.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.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,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=e[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,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r})(),um=1;$.hasGlobalWindow&&(um=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Is=um,Hf=.4,Wf="#333",Yf="#ccc",rw="#eee",ue=1,la=2,vi=4,ju="__zr_normal__",Qu=je.concat(["ignore"]),nw=Be(je,function(r,t){return r[t]=!0,r},{ignore:!1}),qn={},iw=new ot(0,0,0,0),lu=(function(){function r(t){this.id=$h(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=i?this:null;var l=!1;if(a.copyTransform(e),n.position!=null){var f=iw;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(qn,n,f):Ts(qn,n,f),a.x=qn.x,a.y=qn.y,o=qn.align,s=qn.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=$r(h[0],f.width),c=$r(h[1],f.height)),l=!0,a.originX=-a.x+v+(i?0:f.x),a.originY=-a.y+c+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],l||(a.originX=-d[0],a.originY=-d[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(u=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=ue,u&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Yf:Wf},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&fe(e);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,tn(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},k(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(X(t))for(var n=t,i=vt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==ju)){var o=i.targetName,s=o?e[o]:e;i.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Qu)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(ju,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===ju,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(rt(s,t)>=0&&(e||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){nu("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,e,!n&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,v=this._textGuide;return h&&h.useState(t,e,n,f),v&&v.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ue),l}}},r.prototype.useStates=function(t,e,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,!e&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,v),g&&g.useStates(t,e,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ue)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=rt(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=rt(i,t),o=rt(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i<t.length;i++){var a=t[i];k(e,a),a.textConfig&&(n=n||{},k(n,a.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,i,a,o){var s=!(e&&i);e&&e.textConfig?(this.textConfig=k({},i?this.textConfig:n.textConfig),k(this.textConfig,e.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},l=!1,f=0;f<Qu.length;f++){var h=Qu[f],v=a&&nw[h];e&&e[h]!=null?v?(l=!0,u[h]=e[h]):this[h]=e[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?(e||n)[d]:e||n)}l&&this._transitionState(t,u,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Cn,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),k(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=ue;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,n){var i=t?this[t]:this,a=new rv(i,e,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var a=i.animators,o=rt(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,n){Ju(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){Ju(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,i){for(var a=Ju(this,e,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=ue;function e(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&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))})(),r})();Ut(lu,Fe);Ut(lu,Cn);function Ju(r,t,e,n,i){e=e||{};var a=[];lm(r,"",r,t,e,n,a,i);var o=a.length,s=!1,u=e.done,l=e.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&&e.during&&a[0].during(function(d,p){e.during(p)});for(var v=0;v<a.length;v++){var c=a[v];f&&c.done(f),h&&c.aborted(h),e.force&&c.duration(e.duration),c.start(e.easing)}return a}function tl(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function aw(r){return Wt(r[0])}function ow(r,t,e){if(Wt(t[e]))if(Wt(r[e])||(r[e]=[]),jt(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),tl(r[e],t[e],n))}else{var i=t[e],a=r[e],o=i.length;if(aw(i))for(var s=i[0].length,u=0;u<o;u++)a[u]?tl(a[u],i[u],s):a[u]=Array.prototype.slice.call(i[u]);else tl(a,i,o);a.length=i.length}else r[e]=t[e]}function sw(r,t){return r===t||Wt(r)&&Wt(t)&&uw(r,t)}function uw(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(r[n]!==t[n])return!1;return!0}function lm(r,t,e,n,i,a,o,s){for(var u=vt(n),l=i.duration,f=i.delay,h=i.additive,v=i.setToFinal,c=!X(a),d=r.animators,p=[],g=0;g<u.length;g++){var y=u[g],m=n[y];if(m!=null&&e[y]!=null&&(c||a[y]))if(X(m)&&!Wt(m)&&!ro(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}lm(r,y,e[y],m,i,a&&a[y],o,s)}else p.push(y);else s||(e[y]=m,r.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=rt(d,w);d.splice(x,1)}}}if(i.force||(p=St(p,function(D){return!sw(n[D],e[D])}),_=p.length),_>0||i.force&&!o.length){var T=void 0,C=void 0,M=void 0;if(s){C={},v&&(T={});for(var S=0;S<_;S++){var y=p[S];C[y]=e[y],v?T[y]=n[y]:e[y]=n[y]}}else if(v){M={};for(var S=0;S<_;S++){var y=p[S];M[y]=_a(e[y]),ow(e,n,y)}}var w=new rv(e,!1,!1,h?St(d,function(P){return P.targetName===t}):null);w.targetName=t,i.scope&&(w.scope=i.scope),v&&T&&w.whenWithKeys(0,T,p),M&&w.whenWithKeys(0,M,p),w.whenWithKeys(l??500,s?C:n,p).delay(f||0),r.addAnimator(w,t),o.push(w)}}var Uf="__zr_style_"+Math.round(Math.random()*10),In={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},fu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};In[Uf]=!0;var zc=["z","z2","invisible"],lw=["invisible"],Hn=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=vt(e),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[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(e,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&fw(this,e,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){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(e,n){return this.rectContain(e,n)},t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.rectContain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var e=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;e=this._paintRect||(this._paintRect=new ot(0,0,0,0)),n?ot.applyTransform(e,i,n):e.copy(i),(o||s||u)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(u),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+u-o));var l=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-l),e.y=Math.floor(e.y-l),e.width=Math.ceil(e.width+1+l*2),e.height=Math.ceil(e.height+1+l*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new ot(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,n){e!=="style"?r.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,n){return typeof e=="string"?this.style[e]=n:k(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=la,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&la)},t.prototype.styleUpdated=function(){this.__dirty&=~la},t.prototype.createStyle=function(e){return no(In,e)},t.prototype.useStyle=function(e){e[Uf]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Uf]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,zc)},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,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=vt(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=vt(l),v=0;v<d.length;v++){var c=d[v];this.style[c]=this.style[c]}this._transitionState(e,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var p=this.__inHover?lw:zc,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(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(e,n){return k(e,n),e},t.prototype.getAnimationStyleProps=function(){return fu},t.initDefaultProps=(function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=ue|la})(),t})(lu),el=new ot(0,0,0,0),rl=new ot(0,0,0,0);function fw(r,t,e){return el.copy(r.getBoundingRect()),r.transform&&el.applyTransform(r.transform),rl.width=t,rl.height=e,!el.intersect(rl)}var re=Math.min,ne=Math.max,nl=Math.sin,il=Math.cos,ln=Math.PI*2,Co=Jr(),Do=Jr(),Mo=Jr();function hw(r,t,e){if(r.length!==0){for(var n=r[0],i=n[0],a=n[0],o=n[1],s=n[1],u=1;u<r.length;u++)n=r[u],i=re(i,n[0]),a=ne(a,n[0]),o=re(o,n[1]),s=ne(s,n[1]);t[0]=i,t[1]=o,e[0]=a,e[1]=s}}function Gc(r,t,e,n,i,a){i[0]=re(r,e),i[1]=re(t,n),a[0]=ne(r,e),a[1]=ne(t,n)}var Vc=[],Hc=[];function vw(r,t,e,n,i,a,o,s,u,l){var f=rm,h=Ot,v=f(r,e,i,o,Vc);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(r,e,i,o,Vc[c]);u[0]=re(d,u[0]),l[0]=ne(d,l[0])}v=f(t,n,a,s,Hc);for(var c=0;c<v;c++){var p=h(t,n,a,s,Hc[c]);u[1]=re(p,u[1]),l[1]=ne(p,l[1])}u[0]=re(r,u[0]),l[0]=ne(r,l[0]),u[0]=re(o,u[0]),l[0]=ne(o,l[0]),u[1]=re(t,u[1]),l[1]=ne(t,l[1]),u[1]=re(s,u[1]),l[1]=ne(s,l[1])}function cw(r,t,e,n,i,a,o,s){var u=nm,l=qt,f=ne(re(u(r,e,i),1),0),h=ne(re(u(t,n,a),1),0),v=l(r,e,i,f),c=l(t,n,a,h);o[0]=re(r,i,v),o[1]=re(t,a,c),s[0]=ne(r,i,v),s[1]=ne(t,a,c)}function dw(r,t,e,n,i,a,o,s,u){var l=Er,f=kr,h=Math.abs(i-a);if(h%ln<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-n,u[0]=r+e,u[1]=t+n;return}if(Co[0]=il(i)*e+r,Co[1]=nl(i)*n+t,Do[0]=il(a)*e+r,Do[1]=nl(a)*n+t,l(s,Co,Do),f(u,Co,Do),i=i%ln,i<0&&(i=i+ln),a=a%ln,a<0&&(a=a+ln),i>a&&!o?a+=ln:i<a&&o&&(i+=ln),o){var v=a;a=i,i=v}for(var c=0;c<a;c+=Math.PI/2)c>i&&(Mo[0]=il(c)*e+r,Mo[1]=nl(c)*n+t,l(s,Mo,s),f(u,Mo,u))}var dt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fn=[],hn=[],Ve=[],wr=[],He=[],We=[],al=Math.min,ol=Math.max,vn=Math.cos,cn=Math.sin,or=Math.abs,Xf=Math.PI,Pr=Xf*2,sl=typeof Float32Array<"u",Yi=[];function ul(r){var t=Math.round(r/Xf*1e8)/1e8;return t%2*Xf}function fm(r,t){var e=ul(r[0]);e<0&&(e+=Pr);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=Pr?i=e+Pr:t&&e-i>=Pr?i=e-Pr:!t&&e>i?i=e+(Pr-ul(e-i)):t&&e<i&&(i=e-(Pr-ul(i-e))),r[0]=e,r[1]=i}var Bn=(function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=or(n/Is/t)||0,this._uy=or(n/Is/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(dt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=or(t-this._xi),i=or(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(dt.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(dt.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(dt.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),Yi[0]=i,Yi[1]=a,fm(Yi,o),i=Yi[0],a=Yi[1];var s=a-i;return this.addData(dt.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=vn(a)*n+t,this._yi=cn(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(dt.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(dt.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&sl&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,a=0;a<e;a++)n+=t[a].len();sl&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<e;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},r.prototype.addData=function(t,e,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]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,sl&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Ve[0]=Ve[1]=He[0]=He[1]=Number.MAX_VALUE,wr[0]=wr[1]=We[0]=We[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],u=o===1;switch(u&&(e=t[o],n=t[o+1],i=e,a=n),s){case dt.M:e=i=t[o++],n=a=t[o++],He[0]=i,He[1]=a,We[0]=i,We[1]=a;break;case dt.L:Gc(e,n,t[o],t[o+1],He,We),e=t[o++],n=t[o++];break;case dt.C:vw(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],He,We),e=t[o++],n=t[o++];break;case dt.Q:cw(e,n,t[o++],t[o++],t[o],t[o+1],He,We),e=t[o++],n=t[o++];break;case dt.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=vn(c)*h+l,a=cn(c)*v+f),dw(l,f,h,v,c,d,p,He,We),e=vn(d)*h+l,n=cn(d)*v+f;break;case dt.R:i=e=t[o++],a=n=t[o++];var g=t[o++],y=t[o++];Gc(i,a,i+g,a+y,He,We);break;case dt.Z:e=i,n=a;break}Er(Ve,Ve,He),kr(wr,wr,We)}return o===0&&(Ve[0]=Ve[1]=wr[0]=wr[1]=0),new ot(Ve[0],Ve[1],wr[0]-Ve[0],wr[1]-Ve[1])},r.prototype._calculateLength=function(){var t=this.data,e=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<e;){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 dt.M:a=s=t[v++],o=u=t[v++];break;case dt.L:{var g=t[v++],y=t[v++],m=g-a,_=y-o;(or(m)>n||or(_)>i||v===e-1)&&(p=Math.sqrt(m*m+_*_),a=g,o=y);break}case dt.C:{var S=t[v++],w=t[v++],g=t[v++],y=t[v++],b=t[v++],x=t[v++];p=Ob(a,o,S,w,g,y,b,x,10),a=b,o=x;break}case dt.Q:{var S=t[v++],w=t[v++],g=t[v++],y=t[v++];p=Fb(a,o,S,w,g,y,10),a=g,o=y;break}case dt.A:var T=t[v++],C=t[v++],M=t[v++],D=t[v++],P=t[v++],R=t[v++],L=R+P;v+=1,d&&(s=vn(P)*M+T,u=cn(P)*D+C),p=ol(M,D)*al(Pr,Math.abs(R)),a=vn(L)*M+T,o=cn(L)*D+C;break;case dt.R:{s=a=t[v++],u=o=t[v++];var I=t[v++],E=t[v++];p=I*2+E*2;break}case dt.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},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,h,v,c=e<1,d,p,g=0,y=0,m,_=0,S,w;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))t:for(var b=0;b<o;){var x=n[b++],T=b===1;switch(T&&(l=n[b],f=n[b+1],s=l,u=f),x!==dt.L&&_>0&&(t.lineTo(S,w),_=0),x){case dt.M:s=l=n[b++],u=f=n[b++],t.moveTo(l,f);break;case dt.L:{h=n[b++],v=n[b++];var C=or(h-l),M=or(v-f);if(C>i||M>a){if(c){var D=d[y++];if(g+D>m){var P=(m-g)/D;t.lineTo(l*(1-P)+h*P,f*(1-P)+v*P);break t}g+=D}t.lineTo(h,v),l=h,f=v,_=0}else{var R=C*C+M*M;R>_&&(S=h,w=v,_=R)}break}case dt.C:{var L=n[b++],I=n[b++],E=n[b++],z=n[b++],O=n[b++],B=n[b++];if(c){var D=d[y++];if(g+D>m){var P=(m-g)/D;Ps(l,L,E,O,P,fn),Ps(f,I,z,B,P,hn),t.bezierCurveTo(fn[1],hn[1],fn[2],hn[2],fn[3],hn[3]);break t}g+=D}t.bezierCurveTo(L,I,E,z,O,B),l=O,f=B;break}case dt.Q:{var L=n[b++],I=n[b++],E=n[b++],z=n[b++];if(c){var D=d[y++];if(g+D>m){var P=(m-g)/D;Oa(l,L,E,P,fn),Oa(f,I,z,P,hn),t.quadraticCurveTo(fn[1],hn[1],fn[2],hn[2]);break t}g+=D}t.quadraticCurveTo(L,I,E,z),l=E,f=z;break}case dt.A:var V=n[b++],Y=n[b++],U=n[b++],et=n[b++],ct=n[b++],yt=n[b++],Jt=n[b++],ve=!n[b++],se=U>et?U:et,Rt=or(U-et)>.001,wt=ct+yt,Z=!1;if(c){var D=d[y++];g+D>m&&(wt=ct+yt*(m-g)/D,Z=!0),g+=D}if(Rt&&t.ellipse?t.ellipse(V,Y,U,et,Jt,ct,wt,ve):t.arc(V,Y,se,ct,wt,ve),Z)break t;T&&(s=vn(ct)*U+V,u=cn(ct)*et+Y),l=vn(wt)*U+V,f=cn(wt)*et+Y;break;case dt.R:s=l=n[b],u=f=n[b+1],h=n[b++],v=n[b++];var nt=n[b++],Ge=n[b++];if(c){var D=d[y++];if(g+D>m){var Dt=m-g;t.moveTo(h,v),t.lineTo(h+al(Dt,nt),v),Dt-=nt,Dt>0&&t.lineTo(h+nt,v+al(Dt,Ge)),Dt-=Ge,Dt>0&&t.lineTo(h+ol(nt-Dt,0),v+Ge),Dt-=nt,Dt>0&&t.lineTo(h,v+ol(Ge-Dt,0));break t}g+=D}t.rect(h,v,nt,Ge);break;case dt.Z:if(c){var D=d[y++];if(g+D>m){var P=(m-g)/D;t.lineTo(l*(1-P)+s*P,f*(1-P)+u*P);break t}g+=D}t.closePath(),l=s,f=u}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=dt,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})();function Kn(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=r;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)u=(t-n)/(r-e),l=(r*n-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=u*a-o+l,h=f*f/(u*u+1);return h<=s/2*s/2}function pw(r,t,e,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>r+h&&l>e+h&&l>i+h&&l>o+h||l<r-h&&l<e-h&&l<i-h&&l<o-h)return!1;var v=kb(r,t,e,n,i,a,o,s,l,f);return v<=h/2}function gw(r,t,e,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>r+l&&s>e+l&&s>i+l||s<r-l&&s<e-l&&s<i-l)return!1;var f=Nb(r,t,e,n,i,a,s,u);return f<=l/2}var Wc=Math.PI*2;function Ao(r){return r%=Wc,r<0&&(r+=Wc),r}var Ui=Math.PI*2;function yw(r,t,e,n,i,a,o,s,u){if(o===0)return!1;var l=o;s-=r,u-=t;var f=Math.sqrt(s*s+u*u);if(f-l>e||f+l<e)return!1;if(Math.abs(n-i)%Ui<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+=Ui);var v=Math.atan2(u,s);return v<0&&(v+=Ui),v>=n&&v<=i||v+Ui>=n&&v+Ui<=i}function lr(r,t,e,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*(e-r)+r;return u===i?1/0:u>i?s:0}var xr=Bn.CMD,dn=Math.PI*2,mw=1e-4;function _w(r,t){return Math.abs(r-t)<mw}var Xt=[-1,-1,-1],_e=[-1,-1];function Sw(){var r=_e[0];_e[0]=_e[1],_e[1]=r}function bw(r,t,e,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=Ls(t,n,a,s,l,Xt);if(f===0)return 0;for(var h=0,v=-1,c=void 0,d=void 0,p=0;p<f;p++){var g=Xt[p],y=g===0||g===1?.5:1,m=Ot(r,e,i,o,g);m<u||(v<0&&(v=rm(t,n,a,s,_e),_e[1]<_e[0]&&v>1&&Sw(),c=Ot(t,n,a,s,_e[0]),v>1&&(d=Ot(t,n,a,s,_e[1]))),v===2?g<_e[0]?h+=c<t?y:-y:g<_e[1]?h+=d<c?y:-y:h+=s<d?y:-y:g<_e[0]?h+=c<t?y:-y:h+=s<c?y:-y)}return h}function ww(r,t,e,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var u=Bb(t,n,a,s,Xt);if(u===0)return 0;var l=nm(t,n,a);if(l>=0&&l<=1){for(var f=0,h=qt(t,n,a,l),v=0;v<u;v++){var c=Xt[v]===0||Xt[v]===1?.5:1,d=qt(r,e,i,Xt[v]);d<o||(Xt[v]<l?f+=h<t?c:-c:f+=a<h?c:-c)}return f}else{var c=Xt[0]===0||Xt[0]===1?.5:1,d=qt(r,e,i,Xt[0]);return d<o?0:a<t?c:-c}}function xw(r,t,e,n,i,a,o,s){if(s-=t,s>e||s<-e)return 0;var u=Math.sqrt(e*e-s*s);Xt[0]=-u,Xt[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=dn-1e-4){n=0,i=dn;var f=a?1:-1;return o>=Xt[0]+r&&o<=Xt[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=dn,i+=dn);for(var v=0,c=0;c<2;c++){var d=Xt[c];if(d+r>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=dn+p),(p>=n&&p<=i||p+dn>=n&&p+dn<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function hm(r,t,e,n,i){for(var a=r.data,o=r.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===xr.M&&d>1&&(e||(s+=lr(u,l,f,h,n,i))),g&&(u=a[d],l=a[d+1],f=u,h=l),p){case xr.M:f=a[d++],h=a[d++],u=f,l=h;break;case xr.L:if(e){if(Kn(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 xr.C:if(e){if(pw(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=bw(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 xr.Q:if(e){if(gw(u,l,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=ww(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case xr.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 T=(n-y)*S/_+y;if(e){if(yw(y,m,S,w,w+b,x,t,T,i))return!0}else s+=xw(y,m,S,w,w+b,x,T,i);u=Math.cos(w+b)*_+y,l=Math.sin(w+b)*S+m;break;case xr.R:f=u=a[d++],h=l=a[d++];var C=a[d++],M=a[d++];if(v=f+C,c=h+M,e){if(Kn(f,h,v,h,t,n,i)||Kn(v,h,v,c,t,n,i)||Kn(v,c,f,c,t,n,i)||Kn(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 xr.Z:if(e){if(Kn(u,l,f,h,t,n,i))return!0}else s+=lr(u,l,f,h,n,i);u=f,l=h;break}}return!e&&!_w(l,h)&&(s+=lr(u,l,f,h,n,i)||0),s!==0}function Tw(r,t,e){return hm(r,0,!1,t,e)}function Cw(r,t,e,n){return hm(r,t,!0,e,n)}var vm=it({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},In),Dw={style:it({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},fu.style)},ll=je.concat(["invisible","culling","z","z2","zlevel","parent"]),ft=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(u){e.buildPath(u,e.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<ll.length;++s)i[ll[s]]=this[ll[s]];i.__dirty|=ue}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=vt(e);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=e[o];o==="style"?this.style?k(this.style,s):this.useStyle(s):o==="shape"?k(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(W(e)){var n=Na(e,0);return n>.5?Wf:n>.2?rw:Yf}else if(e)return Yf}return Wf},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(W(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Na(e,0)<Hf;if(a===o)return n}},t.prototype.buildPath=function(e,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~vi},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Bn(!1)},t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return!(n==null||n==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&vi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);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 e},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,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)),Cw(s,u/l,e,n)))return!0}if(this.hasFill())return Tw(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=vi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:k(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&vi)},t.prototype.createStyle=function(e){return no(vm,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=k({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=k({},i.shape),k(l,n.shape)):(l=k({},a?this.shape:i.shape),k(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=k({},this.shape);for(var f={},h=vt(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(e,{shape:f},s)}else this.shape=l,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return Dw},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=(function(a){N(o,a);function o(s){var u=a.call(this,s)||this;return e.init&&e.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return J(e.style)},o.prototype.getDefaultShape=function(){return J(e.shape)},o})(t);for(var i in e)typeof e[i]=="function"&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=ue|la|vi})(),t})(Hn),Mw=it({strokeFirst:!0,font:On,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},vm),Rs=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return n!=null&&n!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return no(Mw,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=Qh(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(Hn);Rs.prototype.type="tspan";var Aw=it({x:0,y:0},In),Lw={style:it({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},fu.style)};function Pw(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Je=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return no(Aw,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=Pw(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Lw},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ot(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Hn);Je.prototype.type="image";function Iw(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,u,l,f;i<0&&(e=e+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),r.moveTo(e+s,n),r.lineTo(e+i-u,n),u!==0&&r.arc(e+i-u,n+u,u,-Math.PI/2,0),r.lineTo(e+i,n+a-l),l!==0&&r.arc(e+i-l,n+a-l,l,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var ci=Math.round;function cm(r,t,e){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(ci(n*2)===ci(i*2)&&(r.x1=r.x2=Dn(n,s,!0)),ci(a*2)===ci(o*2)&&(r.y1=r.y2=Dn(a,s,!0))),r}}function dm(r,t,e){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Dn(n,s,!0),r.y=Dn(i,s,!0),r.width=Math.max(Dn(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Dn(i+o,s,!1)-r.y,o===0?0:1)),r}}function Dn(r,t,e){if(!t)return r;var n=ci(r*2);return(n+ci(t))%2===0?n/2:(n+(e?1:-1))/2}var Rw=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),Ew={},Ct=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Rw},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var u=dm(Ew,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?Iw(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(ft);Ct.prototype.type="rect";var Yc={fill:"#000"},Uc=2,kw={style:it({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},fu.style)},Pt=(function(r){N(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Yc,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,zw(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new ot(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?(e.copy(u),e.applyTransform(l),a=a||e.clone(),a.union(e)):(a=a||u.clone(),a.union(u))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Yc},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,n){if(!n)return e;var i=n.rich,a=e.rich||i&&{};return k(e,n),i&&a?(this._mergeRich(a,i),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,n){for(var i=vt(n),a=0;a<i.length;a++){var o=i[a];e[o]=e[o]||{},k(e[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return kw},t.prototype._getOrCreateChild=function(e){var n=this._children[this._childCursor];return(!n||!(n instanceof e))&&(n=new e),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var e=this.style,n=e.font||On,i=e.padding,a=Qc(e),o=Sb(a,e),s=fl(e),u=!!e.backgroundColor,l=o.outerHeight,f=o.outerWidth,h=o.contentWidth,v=o.lines,c=o.lineHeight,d=this._defaultStyle;this.isTruncated=!!o.isTruncated;var p=e.x||0,g=e.y||0,y=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",_=p,S=hi(g,o.contentHeight,m);if(s||i){var w=sa(p,f,y),b=hi(g,l,m);s&&this._renderBackground(e,e,w,b,f,l)}S+=c/2,i&&(_=jc(p,y,i),m==="top"?S+=i[0]:m==="bottom"&&(S-=i[2]));for(var x=0,T=!1,C=Kc("fill"in e?e.fill:(T=!0,d.fill)),M=qc("stroke"in e?e.stroke:!u&&(!d.autoStroke||T)?(x=Uc,d.stroke):null),D=e.textShadowBlur>0,P=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),R=o.calculatedLineHeight,L=0;L<v.length;L++){var I=this._getOrCreateChild(Rs),E=I.createStyle();I.useStyle(E),E.text=v[L],E.x=_,E.y=S,E.textAlign=y,E.textBaseline="middle",E.opacity=e.opacity,E.strokeFirst=!0,D&&(E.shadowBlur=e.textShadowBlur||0,E.shadowColor=e.textShadowColor||"transparent",E.shadowOffsetX=e.textShadowOffsetX||0,E.shadowOffsetY=e.textShadowOffsetY||0),E.stroke=M,E.fill=C,M&&(E.lineWidth=e.lineWidth||x,E.lineDash=e.lineDash,E.lineDashOffset=e.lineDashOffset||0),E.font=n,$c(E,e),S+=c,P&&I.setBoundingRect(new ot(sa(E.x,h,E.textAlign),hi(E.y,R,E.textBaseline),h,R))}},t.prototype._updateRichTexts=function(){var e=this.style,n=Qc(e),i=xb(n,e),a=i.width,o=i.outerWidth,s=i.outerHeight,u=e.padding,l=e.x||0,f=e.y||0,h=this._defaultStyle,v=e.align||h.align,c=e.verticalAlign||h.verticalAlign;this.isTruncated=!!i.isTruncated;var d=sa(l,o,v),p=hi(f,s,c),g=d,y=p;u&&(g+=u[3],y+=u[0]);var m=g+a;fl(e)&&this._renderBackground(e,e,d,p,o,s);for(var _=!!e.backgroundColor,S=0;S<i.lines.length;S++){for(var w=i.lines[S],b=w.tokens,x=b.length,T=w.lineHeight,C=w.width,M=0,D=g,P=m,R=x-1,L=void 0;M<x&&(L=b[M],!L.align||L.align==="left");)this._placeToken(L,e,T,y,D,"left",_),C-=L.width,D+=L.width,M++;for(;R>=0&&(L=b[R],L.align==="right");)this._placeToken(L,e,T,y,P,"right",_),C-=L.width,P-=L.width,R--;for(D+=(a-(D-g)-(m-P)-C)/2;M<=R;)L=b[M],this._placeToken(L,e,T,y,D+L.width/2,"center",_),D+=L.width,M++;y+=T}},t.prototype._placeToken=function(e,n,i,a,o,s,u){var l=n.rich[e.styleName]||{};l.text=e.text;var f=e.verticalAlign,h=a+i/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+i-e.height/2);var v=!e.isLineHolder&&fl(l);v&&this._renderBackground(l,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var c=!!l.backgroundColor,d=e.textPadding;d&&(o=jc(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(Rs),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=Kc("fill"in l?l.fill:"fill"in n?n.fill:(m=!0,y.fill)),w=qc("stroke"in l?l.stroke:"stroke"in n?n.stroke:!c&&!u&&(!y.autoStroke||m)?(_=Uc,y.stroke):null),b=l.textShadowBlur>0||n.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,b&&(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=e.font||On,g.opacity=qe(l.opacity,n.opacity,1),$c(g,l),w&&(g.lineWidth=qe(l.lineWidth,n.lineWidth,_),g.lineDash=Q(l.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),S&&(g.fill=S);var x=e.contentWidth,T=e.contentHeight;p.setBoundingRect(new ot(sa(g.x,x,g.textAlign),hi(g.y,T,g.textBaseline),x,T))},t.prototype._renderBackground=function(e,n,i,a,o,s){var u=e.backgroundColor,l=e.borderWidth,f=e.borderColor,h=u&&u.image,v=u&&!h,c=e.borderRadius,d=this,p,g;if(v||e.lineHeight||l&&f){p=this._getOrCreateChild(Ct),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=Q(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(Je),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=Q(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=qe(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return Fw(e)&&(n=[e.fontStyle,e.fontWeight,Nw(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Ie(n)||e.textFont||e.font},t})(Hn),Ow={left:!0,right:1,center:1},Bw={top:1,bottom:1,middle:1},Xc=["fontStyle","fontWeight","fontSize","fontFamily"];function Nw(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Yh+"px":r+"px"}function $c(r,t){for(var e=0;e<Xc.length;e++){var n=Xc[e],i=t[n];i!=null&&(r[n]=i)}}function Fw(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function zw(r){return Zc(r),A(r.rich,Zc),r}function Zc(r){if(r){r.font=Pt.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||Ow[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||Bw[e]?e:"top";var n=r.padding;n&&(r.padding=qh(r.padding))}}function qc(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Kc(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function jc(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function Qc(r){var t=r.text;return t!=null&&(t+=""),t}function fl(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Jc=1e-4,pm=20;function Gw(r){return r.replace(/^\s+|\s+$/g,"")}function xi(r,t,e,n){var i=t[0],a=t[1],o=e[0],s=e[1],u=a-i,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(n)if(u>0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/u*l+o}function pt(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return W(r)?Gw(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function bt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),pm),r=(+r).toFixed(t),e?r:+r}function gm(r){return r.sort(function(t,e){return t-e}),r}function Re(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return ym(r)}function ym(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function mm(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Vw(r,t,e){if(!r[t])return 0;var n=_m(r,e);return n[t]||0}function _m(r,t){var e=Be(r,function(c,d){return c+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=H(r,function(c){return(isNaN(c)?0:c)/e*n*100}),a=n*100,o=H(i,function(c){return Math.floor(c)}),s=Be(o,function(c,d){return c+d},0),u=H(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 H(o,function(c){return c/n})}function Hw(r,t){var e=Math.max(Re(r),Re(t)),n=r+t;return e>pm?n:bt(n,e)}var Ww=9007199254740991;function nv(r){var t=Math.PI*2;return(r%t+t)%t}function Fa(r){return r>-Jc&&r<Jc}var Yw=/^(?:(\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 xe(r){if(r instanceof Date)return r;if(W(r)){var t=Yw.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function Sm(r){return Math.pow(10,hu(r))}function hu(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function iv(r,t){var e=hu(r),n=Math.pow(10,e),i=r/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,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function fs(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),i=+r[n-1],a=e-n;return a?i+a*(r[n]-i):i}function Uw(r){r.sort(function(u,l){return s(u,l,0)?-1:1});for(var t=-1/0,e=1,n=0;n<r.length;){for(var i=r[n].interval,a=r[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-e),t=i[o],e=a[o];i[0]===i[1]&&a[0]*a[1]!==1?r.splice(n,1):n++}return r;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 za(r){var t=parseFloat(r);return t==r&&(t!==0||!W(r)||r.indexOf("x")<=0)?t:NaN}function bm(r){return!isNaN(za(r))}function wm(){return Math.round(Math.random()*9)}function xm(r,t){return t===0?r:xm(t,r%t)}function td(r,t){return r==null?t:t==null?r:r*t/xm(r,t)}function Ht(r){throw new Error(r)}function ed(r,t,e){return(t-r)*e+r}var Tm="series\0",Xw="\0_ec_\0";function Lt(r){return r instanceof Array?r:r==null?[]:[r]}function Ga(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,i=e.length;n<i;n++){var a=e[n];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var rd=["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 oo(r){return X(r)&&!F(r)&&!(r instanceof Date)?r.value:r}function $w(r){return X(r)&&!(r instanceof Array)}function Zw(r,t,e){var n=e==="normalMerge",i=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=q();A(t,function(u,l){if(!X(u)){t[l]=null;return}});var s=qw(r,o,e);return(n||i)&&Kw(s,r,o,t),n&&jw(s,t),n||i?Qw(s,t,i):a&&Jw(s,t),tx(s),s}function qw(r,t,e){var n=[];if(e==="replaceAll")return n;for(var i=0;i<r.length;i++){var a=r[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:e==="replaceMerge"||Va(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function Kw(r,t,e,n){A(n,function(i,a){if(!(!i||i.id==null)){var o=Sa(i.id),s=e.get(o);if(s!=null){var u=r[s];Ne(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=i,u.existing=t[s],n[a]=null}}})}function jw(r,t){A(t,function(e,n){if(!(!e||e.name==null))for(var i=0;i<r.length;i++){var a=r[i].existing;if(!r[i].newOption&&a&&(a.id==null||e.id==null)&&!Va(e)&&!Va(a)&&Cm("name",a,e)){r[i].newOption=e,t[n]=null;return}}})}function Qw(r,t,e){A(t,function(n){if(n){for(var i,a=0;(i=r[a])&&(i.newOption||Va(i.existing)||i.existing&&n.id!=null&&!Cm("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),a++}})}function Jw(r,t){A(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function tx(r){var t=q();A(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),A(r,function(e){var n=e.newOption;Ne(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),A(r,function(e,n){var i=e.existing,a=e.newOption,o=e.keyInfo;if(X(a)){if(o.name=a.name!=null?Sa(a.name):i?i.name:Tm+n,i)o.id=Sa(i.id);else if(a.id!=null)o.id=Sa(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function Cm(r,t,e){var n=Oe(t[r],null),i=Oe(e[r],null);return n!=null&&i!=null&&n===i}function Sa(r){return Oe(r,"")}function Oe(r,t){return r==null?t:W(r)?r:lt(r)||bs(r)?r+"":t}function av(r){var t=r.name;return!!(t&&t.indexOf(Tm))}function Va(r){return r&&r.id!=null&&Sa(r.id).indexOf(Xw)===0}function ex(r,t,e){A(r,function(n){var i=n.newOption;X(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=rx(t,i,n.existing,e))})}function rx(r,t,e,n){var i=t.type?t.type:e?e.subType:n.determineSubType(r,t);return i}function Nn(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return F(t.dataIndex)?H(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return F(t.name)?H(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function gt(){var r="__ec_inner_"+nx++;return function(t){return t[r]||(t[r]={})}}var nx=wm();function hl(r,t,e){var n=ov(t,e),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,u=e?e.defaultMainType:null;return!i&&u&&a.set(u,{}),a.each(function(l,f){var h=so(r,f,l,{useDefault:u===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function ov(r,t){var e;if(W(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var i=q(),a={},o=!1;return A(e,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&&rt(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 Ee={useDefault:!0,enableAll:!1,enableNone:!1};function so(r,t,e,n){n=n||Ee;var i=e.index,a=e.id,o=e.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=n.useDefault&&(u=r.getComponent(t))?[u]:[],s}return i==="none"||i===!1?(Ne(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Ne(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=r.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function Dm(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function ix(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function ax(r){return r==="auto"?$.domSupported?"html":"richText":r||"html"}function ox(r,t,e,n,i){var a=t==null||t==="auto";if(n==null)return n;if(lt(n)){var o=ed(e||0,n,i);return bt(o,a?Math.max(Re(e||0),Re(n)):t)}else{if(W(n))return i<1?e:n;for(var s=[],u=e,l=n,f=Math.max(u?u.length:0,l.length),h=0;h<f;++h){var v=r.getDimensionInfo(h);if(v&&v.type==="ordinal")s[h]=(i<1&&u?u:l)[h];else{var c=u&&u[h]?u[h]:0,d=l[h],o=ed(c,d,i);s[h]=bt(o,a?Math.max(Re(c),Re(d)):t)}}return s}}var at=gt(),sx=function(r,t,e,n){if(n){var i=at(n);i.dataIndex=e,i.dataType=t,i.seriesIndex=r,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=at(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},nd=1,id={},Mm=gt(),sv=gt(),uv=0,vu=1,cu=2,oe=["emphasis","blur","select"],Es=["normal","emphasis","blur","select"],ux=10,lx=9,Rn="highlight",hs="downplay",ba="select",vs="unselect",wa="toggleSelect";function jn(r){return r!=null&&r!=="none"}function du(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function Am(r){du(r,"emphasis",cu)}function Lm(r){r.hoverState===cu&&du(r,"normal",uv)}function lv(r){du(r,"blur",vu)}function Pm(r){r.hoverState===vu&&du(r,"normal",uv)}function fx(r){r.selected=!0}function hx(r){r.selected=!1}function ad(r,t,e){t(r,e)}function _r(r,t,e){ad(r,t,e),r.isGroup&&r.traverse(function(n){ad(n,t,e)})}function od(r,t){switch(t){case"emphasis":r.hoverState=cu;break;case"normal":r.hoverState=uv;break;case"blur":r.hoverState=vu;break;case"select":r.selected=!0}}function vx(r,t,e,n){for(var i=r.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<r.animators.length;o++){var l=r.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(e)<0&&l.targetName==="style"&&l.saveTo(a,t)}return a}function cx(r,t,e,n){var i=e&&rt(e,"select")>=0,a=!1;if(r instanceof ft){var o=Mm(r),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(jn(s)||jn(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=k({},n),l=k({},l),l.fill=s):!jn(l.fill)&&jn(s)?(a=!0,n=k({},n),l=k({},l),l.fill=Ff(s)):!jn(l.stroke)&&jn(u)&&(a||(n=k({},n),l=k({},l)),l.stroke=Ff(u)),n.style=l}}if(n&&n.z2==null){a||(n=k({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??ux)}return n}function dx(r,t,e){if(e&&e.z2==null){e=k({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??lx)}return e}function px(r,t,e){var n=rt(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:vx(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=k({},e),o=k({opacity:n?i:a.opacity*.1},o),e.style=o),e}function vl(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return cx(this,r,t,e);if(r==="blur")return px(this,r,e);if(r==="select")return dx(this,r,e)}return e}function Im(r){r.stateProxy=vl;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=vl),e&&(e.stateProxy=vl)}function sd(r,t){!Om(r,t)&&!r.__highByOuter&&_r(r,Am)}function ud(r,t){!Om(r,t)&&!r.__highByOuter&&_r(r,Lm)}function Ha(r,t){r.__highByOuter|=1<<(t||0),_r(r,Am)}function Wa(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&_r(r,Lm)}function Rm(r){_r(r,lv)}function fv(r){_r(r,Pm)}function Em(r){_r(r,fx)}function km(r){_r(r,hx)}function Om(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Bm(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=sv(a),s=i==="series",u=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){Pm(l)}),s&&e.push(a)),o.isBlured=!1}),A(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function $f(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(l,f){for(var h=0;h<f.length;h++){var v=l.getItemGraphicEl(f[h]);v&&fv(v)}}if(r!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(r),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(!(e==="series"&&!f||e==="coordinateSystem"&&!v||t==="series"&&f)){var c=n.getViewOfSeriesModel(l);if(c.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||lv(g)}),Wt(t))a(l.getData(),t);else if(X(t))for(var d=vt(t),p=0;p<d.length;p++)a(l.getData(d[p]),t[d[p]]);u.push(l),sv(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 Zf(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(n){sv(n).isBlured=!0;var i=e.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){lv(a)})}}}function gx(r,t,e){var n=r.seriesIndex,i=r.getData(t.dataType);if(i){var a=Nn(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=at(o);$f(n,l.focus,l.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&$f(n,f,h,e)}}}function hv(r,t,e,n){var i={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return i;var a=n.getModel().getComponent(r,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(e),u,l=0;l<s.length;l++)if(at(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function yx(r,t,e){var n=at(r),i=hv(n.componentMainType,n.componentIndex,n.componentHighDownName,e),a=i.dispatchers,o=i.focusSelf;a?(o&&Zf(n.componentMainType,n.componentIndex,e),A(a,function(s){return sd(s,t)})):($f(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&Zf(n.componentMainType,n.componentIndex,e),sd(r,t))}function mx(r,t,e){Bm(e);var n=at(r),i=hv(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;i?A(i,function(a){return ud(a,t)}):ud(r,t)}function _x(r,t,e){if(Kf(t)){var n=t.dataType,i=r.getData(n),a=Nn(i,t);F(a)||(a=[a]),r[t.type===wa?"toggleSelect":t.type===ba?"select":"unselect"](a,n)}}function ld(r){var t=r.getAllData();A(t,function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(a,o){r.isSelected(o,i)?Em(a):km(a)})})}function Sx(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();A(n,function(i){i.data;var a=i.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function ks(r,t,e){Nm(r,!0),_r(r,Im),xx(r,t,e)}function bx(r){Nm(r,!1)}function Zr(r,t,e,n){n?bx(r):ks(r,t,e)}function xx(r,t,e){var n=at(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var fd=["emphasis","blur","select"],Tx={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ya(r,t,e,n){e=e||"itemStyle";for(var i=0;i<fd.length;i++){var a=fd[i],o=t.getModel([a,e]),s=r.ensureState(a);s.style=o[Tx[e]]()}}function Nm(r,t){var e=t===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function qf(r){return!!(r&&r.__highDownDispatcher)}function Cx(r){var t=id[r];return t==null&&nd<=32&&(t=id[r]=nd++),t}function Kf(r){var t=r.type;return t===ba||t===vs||t===wa}function hd(r){var t=r.type;return t===Rn||t===hs}function Dx(r){var t=Mm(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var Qn=Bn.CMD,Mx=[[],[],[]],vd=Math.sqrt,Ax=Math.atan2;function Lx(r,t){if(t){var e=r.data,n=r.len(),i,a,o,s,u,l,f=Qn.M,h=Qn.C,v=Qn.L,c=Qn.R,d=Qn.A,p=Qn.Q;for(o=0,s=0;o<n;){switch(i=e[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=vd(t[0]*t[0]+t[1]*t[1]),_=vd(t[2]*t[2]+t[3]*t[3]),S=Ax(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=g,e[o]*=_,e[o++]+=y,e[o++]*=m,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case c:l[0]=e[o++],l[1]=e[o++],At(l,l,t),e[s++]=l[0],e[s++]=l[1],l[0]+=e[o++],l[1]+=e[o++],At(l,l,t),e[s++]=l[0],e[s++]=l[1]}for(u=0;u<a;u++){var w=Mx[u];w[0]=e[o++],w[1]=e[o++],At(w,w,t),e[s++]=w[0],e[s++]=w[1]}}r.increaseVersion()}}var cl=Math.sqrt,Lo=Math.sin,Po=Math.cos,Xi=Math.PI;function cd(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function jf(r,t){return(r[0]*t[0]+r[1]*t[1])/(cd(r)*cd(t))}function dd(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(jf(r,t))}function pd(r,t,e,n,i,a,o,s,u,l,f){var h=u*(Xi/180),v=Po(h)*(r-e)/2+Lo(h)*(t-n)/2,c=-1*Lo(h)*(r-e)/2+Po(h)*(t-n)/2,d=v*v/(o*o)+c*c/(s*s);d>1&&(o*=cl(d),s*=cl(d));var p=(i===a?-1:1)*cl((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=(r+e)/2+Po(h)*g-Lo(h)*y,_=(t+n)/2+Lo(h)*g+Po(h)*y,S=dd([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=dd(w,b);if(jf(w,b)<=-1&&(x=Xi),jf(w,b)>=1&&(x=0),x<0){var T=Math.round(x/Xi*1e6)/1e6;x=Xi*2+T%2*Xi}f.addData(l,m,_,o,s,S,x,h,a)}var Px=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Ix=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Rx(r){var t=new Bn;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=Bn.CMD,u=r.match(Px);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(Ix)||[],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,T=e,C=n,M=void 0,D=void 0;switch(h){case"l":e+=c[g++],n+=c[g++],v=s.L,t.addData(v,e,n);break;case"L":e=c[g++],n=c[g++],v=s.L,t.addData(v,e,n);break;case"m":e+=c[g++],n+=c[g++],v=s.M,t.addData(v,e,n),i=e,a=n,h="l";break;case"M":e=c[g++],n=c[g++],v=s.M,t.addData(v,e,n),i=e,a=n,h="L";break;case"h":e+=c[g++],v=s.L,t.addData(v,e,n);break;case"H":e=c[g++],v=s.L,t.addData(v,e,n);break;case"v":n+=c[g++],v=s.L,t.addData(v,e,n);break;case"V":n=c[g++],v=s.L,t.addData(v,e,n);break;case"C":v=s.C,t.addData(v,c[g++],c[g++],c[g++],c[g++],c[g++],c[g++]),e=c[g-2],n=c[g-1];break;case"c":v=s.C,t.addData(v,c[g++]+e,c[g++]+n,c[g++]+e,c[g++]+n,c[g++]+e,c[g++]+n),e+=c[g-2],n+=c[g-1];break;case"S":y=e,m=n,M=t.len(),D=t.data,o===s.C&&(y+=e-D[M-4],m+=n-D[M-3]),v=s.C,T=c[g++],C=c[g++],e=c[g++],n=c[g++],t.addData(v,y,m,T,C,e,n);break;case"s":y=e,m=n,M=t.len(),D=t.data,o===s.C&&(y+=e-D[M-4],m+=n-D[M-3]),v=s.C,T=e+c[g++],C=n+c[g++],e+=c[g++],n+=c[g++],t.addData(v,y,m,T,C,e,n);break;case"Q":T=c[g++],C=c[g++],e=c[g++],n=c[g++],v=s.Q,t.addData(v,T,C,e,n);break;case"q":T=c[g++]+e,C=c[g++]+n,e+=c[g++],n+=c[g++],v=s.Q,t.addData(v,T,C,e,n);break;case"T":y=e,m=n,M=t.len(),D=t.data,o===s.Q&&(y+=e-D[M-4],m+=n-D[M-3]),e=c[g++],n=c[g++],v=s.Q,t.addData(v,y,m,e,n);break;case"t":y=e,m=n,M=t.len(),D=t.data,o===s.Q&&(y+=e-D[M-4],m+=n-D[M-3]),e+=c[g++],n+=c[g++],v=s.Q,t.addData(v,y,m,e,n);break;case"A":_=c[g++],S=c[g++],w=c[g++],b=c[g++],x=c[g++],T=e,C=n,e=c[g++],n=c[g++],v=s.A,pd(T,C,e,n,b,x,_,S,w,v,t);break;case"a":_=c[g++],S=c[g++],w=c[g++],b=c[g++],x=c[g++],T=e,C=n,e+=c[g++],n+=c[g++],v=s.A,pd(T,C,e,n,b,x,_,S,w,v,t);break}}(h==="z"||h==="Z")&&(v=s.Z,t.addData(v),e=i,n=a),o=v}return t.toStatic(),t}var Fm=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})(ft);function zm(r){return r.setData!=null}function Gm(r,t){var e=Rx(r),n=k({},t);return n.buildPath=function(i){if(zm(i)){i.setData(e.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;e.rebuildPath(a,1)}},n.applyTransform=function(i){Lx(e,i),this.dirtyShape()},n}function Ex(r,t){return new Fm(Gm(r,t))}function kx(r,t){var e=Gm(r,t),n=(function(i){N(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a})(Fm);return n}function Ox(r,t){for(var e=[],n=r.length,i=0;i<n;i++){var a=r[i];e.push(a.getUpdatedPathProxy(!0))}var o=new ft(t);return o.createPathProxy(),o.buildPath=function(s){if(zm(s)){s.appendPath(e);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}var Tt=(function(r){N(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===e)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,n){if(e&&e!==this&&e.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=rt(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=rt(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i<e.length;i++){var a=e[i];n&&a.removeSelfFromZr(n),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];e.call(n,o,a)}return this},t.prototype.traverse=function(e,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=e.call(n,a);a.isGroup&&!o&&a.traverse(e,n)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new ot(0,0,0,0),i=e||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?(ot.applyTransform(n,l,f),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}}return o||n},t})(lu);Tt.prototype.type="group";var Bx=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),uo=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Bx},t.prototype.buildPath=function(e,n){e.moveTo(n.cx+n.r,n.cy),e.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t})(ft);uo.prototype.type="circle";var Nx=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),pu=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Nx},t.prototype.buildPath=function(e,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,u=n.ry,l=s*i,f=u*i;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-l,o-u,a,o-u),e.bezierCurveTo(a+l,o-u,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+l,o+u,a,o+u),e.bezierCurveTo(a-l,o+u,a-s,o+f,a-s,o),e.closePath()},t})(ft);pu.prototype.type="ellipse";var Vm=Math.PI,dl=Vm*2,pn=Math.sin,Jn=Math.cos,Fx=Math.acos,Nt=Math.atan2,gd=Math.abs,xa=Math.sqrt,fa=Math.max,Ye=Math.min,Ae=1e-4;function zx(r,t,e,n,i,a,o,s){var u=e-r,l=n-t,f=o-i,h=s-a,v=h*u-f*l;if(!(v*v<Ae))return v=(f*(t-a)-h*(r-i))/v,[r+v*u,t+v*l]}function Io(r,t,e,n,i,a,o){var s=r-e,u=t-n,l=(o?a:-a)/xa(s*s+u*u),f=l*u,h=-l*s,v=r+f,c=t+h,d=e+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)*xa(fa(0,w*w*S-b*b)),T=(b*_-m*x)/S,C=(-b*m-_*x)/S,M=(b*_+m*x)/S,D=(-b*m+_*x)/S,P=T-g,R=C-y,L=M-g,I=D-y;return P*P+R*R>L*L+I*I&&(T=M,C=D),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(i/w-1),y1:C*(i/w-1)}}function Gx(r){var t;if(F(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function Vx(r,t){var e,n=fa(t.r,0),i=fa(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=gd(l-u),d=c>dl&&c%dl;if(d>Ae&&(c=d),!(n>Ae))r.moveTo(f,h);else if(c>dl-Ae)r.moveTo(f+n*Jn(u),h+n*pn(u)),r.arc(f,h,n,u,l,!v),i>Ae&&(r.moveTo(f+i*Jn(l),h+i*pn(l)),r.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,T=void 0,C=void 0,M=void 0,D=void 0,P=void 0,R=void 0,L=void 0,I=n*Jn(u),E=n*pn(u),z=i*Jn(l),O=i*pn(l),B=c>Ae;if(B){var V=t.cornerRadius;V&&(e=Gx(V),p=e[0],g=e[1],y=e[2],m=e[3]);var Y=gd(n-i)/2;if(_=Ye(Y,y),S=Ye(Y,m),w=Ye(Y,p),b=Ye(Y,g),C=x=fa(_,S),M=T=fa(w,b),(x>Ae||T>Ae)&&(D=n*Jn(l),P=n*pn(l),R=i*Jn(u),L=i*pn(u),c<Vm)){var U=zx(I,E,R,L,D,P,z,O);if(U){var et=I-U[0],ct=E-U[1],yt=D-U[0],Jt=P-U[1],ve=1/pn(Fx((et*yt+ct*Jt)/(xa(et*et+ct*ct)*xa(yt*yt+Jt*Jt)))/2),se=xa(U[0]*U[0]+U[1]*U[1]);C=Ye(x,(n-se)/(ve+1)),M=Ye(T,(i-se)/(ve-1))}}}if(!B)r.moveTo(f+I,h+E);else if(C>Ae){var Rt=Ye(y,C),wt=Ye(m,C),Z=Io(R,L,I,E,n,Rt,v),nt=Io(D,P,z,O,n,wt,v);r.moveTo(f+Z.cx+Z.x0,h+Z.cy+Z.y0),C<x&&Rt===wt?r.arc(f+Z.cx,h+Z.cy,C,Nt(Z.y0,Z.x0),Nt(nt.y0,nt.x0),!v):(Rt>0&&r.arc(f+Z.cx,h+Z.cy,Rt,Nt(Z.y0,Z.x0),Nt(Z.y1,Z.x1),!v),r.arc(f,h,n,Nt(Z.cy+Z.y1,Z.cx+Z.x1),Nt(nt.cy+nt.y1,nt.cx+nt.x1),!v),wt>0&&r.arc(f+nt.cx,h+nt.cy,wt,Nt(nt.y1,nt.x1),Nt(nt.y0,nt.x0),!v))}else r.moveTo(f+I,h+E),r.arc(f,h,n,u,l,!v);if(!(i>Ae)||!B)r.lineTo(f+z,h+O);else if(M>Ae){var Rt=Ye(p,M),wt=Ye(g,M),Z=Io(z,O,D,P,i,-wt,v),nt=Io(I,E,R,L,i,-Rt,v);r.lineTo(f+Z.cx+Z.x0,h+Z.cy+Z.y0),M<T&&Rt===wt?r.arc(f+Z.cx,h+Z.cy,M,Nt(Z.y0,Z.x0),Nt(nt.y0,nt.x0),!v):(wt>0&&r.arc(f+Z.cx,h+Z.cy,wt,Nt(Z.y0,Z.x0),Nt(Z.y1,Z.x1),!v),r.arc(f,h,i,Nt(Z.cy+Z.y1,Z.cx+Z.x1),Nt(nt.cy+nt.y1,nt.cx+nt.x1),v),Rt>0&&r.arc(f+nt.cx,h+nt.cy,Rt,Nt(nt.y1,nt.x1),Nt(nt.y0,nt.x0),!v))}else r.lineTo(f+z,h+O),r.arc(f,h,i,l,u,v)}r.closePath()}}}var Hx=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r})(),Sr=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Hx},t.prototype.buildPath=function(e,n){Vx(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(ft);Sr.prototype.type="sector";var Wx=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),gu=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Wx},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t})(ft);gu.prototype.type="ring";function Yx(r,t,e,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=r.length;v<c;v++)Er(f,f,r[v]),kr(h,h,r[v]);Er(f,f,n[0]),kr(h,h,n[1])}for(var v=0,c=r.length;v<c;v++){var d=r[v];if(e)u=r[v?v-1:c-1],l=r[(v+1)%c];else if(v===0||v===c-1){i.push(Ke(r[v]));continue}else u=r[v-1],l=r[v+1];Rr(a,l,u),ya(a,a,t);var p=Ds(d,u),g=Ds(d,l),y=p+g;y!==0&&(p/=y,g/=y),ya(o,a,-p),ya(s,a,g);var m=kf([],d,o),_=kf([],d,s);n&&(kr(m,m,f),Er(m,m,h),kr(_,_,f),Er(_,_,h)),i.push(m),i.push(_)}return e&&i.push(i.shift()),i}function Hm(r,t,e){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=Yx(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)r.lineTo(i[s][0],i[s][1])}e&&r.closePath()}}var Ux=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),yu=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Ux},t.prototype.buildPath=function(e,n){Hm(e,n,!0)},t})(ft);yu.prototype.type="polygon";var Xx=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),Li=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Xx},t.prototype.buildPath=function(e,n){Hm(e,n,!1)},t})(ft);Li.prototype.type="polyline";var $x={},Zx=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),Qe=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Zx},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var u=cm($x,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&&(e.moveTo(i,a),l<1&&(o=i*(1-l)+o*l,s=a*(1-l)+s*l),e.lineTo(o,s))},t.prototype.pointAt=function(e){var n=this.shape;return[n.x1*(1-e)+n.x2*e,n.y1*(1-e)+n.y2*e]},t})(ft);Qe.prototype.type="line";var te=[],qx=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function yd(r,t,e){var n=r.cpx2,i=r.cpy2;return n!=null||i!=null?[(e?Rc:Ot)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?Rc:Ot)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Ec:qt)(r.x1,r.cpx1,r.x2,t),(e?Ec:qt)(r.y1,r.cpy1,r.y2,t)]}var lo=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new qx},t.prototype.buildPath=function(e,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&&(e.moveTo(i,a),f==null||h==null?(v<1&&(Oa(i,u,o,v,te),u=te[1],o=te[2],Oa(a,l,s,v,te),l=te[1],s=te[2]),e.quadraticCurveTo(u,l,o,s)):(v<1&&(Ps(i,u,f,o,v,te),u=te[1],f=te[2],o=te[3],Ps(a,l,h,s,v,te),l=te[1],h=te[2],s=te[3]),e.bezierCurveTo(u,l,f,h,o,s)))},t.prototype.pointAt=function(e){return yd(this.shape,e,!1)},t.prototype.tangentAt=function(e){var n=yd(this.shape,e,!0);return Vn(n,n)},t})(ft);lo.prototype.type="bezier-curve";var Kx=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),fo=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Kx},t.prototype.buildPath=function(e,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);e.moveTo(f*o+i,h*o+a),e.arc(i,a,o,s,u,!l)},t})(ft);fo.prototype.type="arc";var Wm=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,n=this.shapeChanged(),i=0;i<e.length;i++)n=n||e[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(n[0],n[1],e[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(e,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],n=0;n<e.length;n++)e[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ft.prototype.getBoundingRect.call(this)},t})(ft),Ym=(function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r})(),vv=(function(r){N(t,r);function t(e,n,i,a,o,s){var u=r.call(this,o)||this;return u.x=e??0,u.y=n??0,u.x2=i??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return t})(Ym),Um=(function(r){N(t,r);function t(e,n,i,a,o){var s=r.call(this,a)||this;return s.x=e??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t})(Ym),gn=[0,0],yn=[0,0],Ro=new j,Eo=new j,Os=(function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new j;for(var n=0;n<2;n++)this._axes[n]=new j;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){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),e)for(var l=0;l<4;l++)n[l].transform(e);j.sub(i[0],n[1],n[0]),j.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])},r.prototype.intersect=function(t,e){var n=!0,i=!e;return Ro.set(1/0,1/0),Eo.set(0,0),!this._intersectCheckOneSide(this,t,Ro,Eo,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Ro,Eo,i,-1)&&(n=!1,i)||i||j.copy(e,n?Ro:Eo),n},r.prototype._intersectCheckOneSide=function(t,e,n,i,a,o){for(var s=!0,u=0;u<2;u++){var l=this._axes[u];if(this._getProjMinMaxOnAxis(u,t._corners,gn),this._getProjMinMaxOnAxis(u,e._corners,yn),gn[1]<yn[0]||gn[0]>yn[1]){if(s=!1,a)return s;var f=Math.abs(yn[0]-gn[1]),h=Math.abs(gn[0]-yn[1]);Math.min(f,h)>i.len()&&(f<h?j.scale(i,l,-f*o):j.scale(i,l,h*o))}else if(n){var f=Math.abs(yn[0]-gn[1]),h=Math.abs(gn[0]-yn[1]);Math.min(f,h)<n.len()&&(f<h?j.scale(n,l,f*o):j.scale(n,l,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],a=this._origin,o=e[0].dot(i)+a[t],s=o,u=o,l=1;l<e.length;l++){var f=e[l].dot(i)+a[t];s=Math.min(f,s),u=Math.max(f,u)}n[0]=s,n[1]=u},r})(),jx=[],Xm=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,n){n?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,n){n=n||!1;for(var i=0;i<e.length;i++)this.addDisplayable(e[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var n=this._cursor;n<this._displayables.length;n++)e&&e(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)e&&e(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var n=this._displayables[e];n.parent=this,n.update(),n.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var n=this._temporaryDisplayables[e];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new ot(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(jx)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,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(e,n))return!0}return!1},t})(Hn),Qx=gt();function cv(r,t,e,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),u=r==="update";if(s){var l=void 0,f=void 0,h=void 0;n?(l=Q(n.duration,200),f=Q(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)),K(h)&&(h=h(e,i)),K(l)&&(l=l(e));var v={duration:l||0,delay:h,easing:f};return v}else return null}function dv(r,t,e,n,i,a,o){var s=!1,u;K(i)?(o=a,a=i,i=null):X(i)&&(a=i.cb,o=i.during,s=i.isFrom,u=i.removeOpt,i=i.dataIndex);var l=r==="leave";l||t.stopAnimation("leave");var f=cv(r,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:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function It(r,t,e,n,i,a){dv("update",r,t,e,n,i,a)}function ae(r,t,e,n,i,a){dv("enter",r,t,e,n,i,a)}function Ta(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Bs(r,t,e,n,i,a){Ta(r)||dv("leave",r,t,e,n,i,a)}function md(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),Bs(r,{style:{opacity:0}},t,e,n)}function Ns(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||md(i,t,e,n)}):md(r,t,e,n)}function mu(r){Qx(r).oldStyle=r.style}var Fs=Math.max,zs=Math.min,Qf={};function $m(r){return ft.extend(r)}var Jx=kx;function Zm(r,t){return Jx(r,t)}function Te(r,t){Qf[r]=t}function pv(r){if(Qf.hasOwnProperty(r))return Qf[r]}function ho(r,t,e,n){var i=Ex(r,t);return e&&(n==="center"&&(e=qm(e,i.getBoundingRect())),yv(i,e)),i}function gv(r,t,e){var n=new Je({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(e==="center"){var a={width:i.width,height:i.height};n.setStyle(qm(t,a))}}});return n}function qm(r,t){var e=t.width/t.height,n=r.height*e,i;n<=r.width?i=r.height:(n=r.width,i=n/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Km=Ox;function yv(r,t){if(r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function Ua(r,t){return cm(r,r,{lineWidth:t}),r}function tT(r){return dm(r.shape,r.shape,r.style),r}var eT=Dn;function jm(r,t){for(var e=ao([]);r&&r!==t;)Vr(e,r.getLocalTransform(),e),r=r.parent;return e}function mv(r,t,e){return t&&!Wt(t)&&(t=Cn.getLocalTransform(t)),e&&(t=Ai([],t)),At([],r,t)}function rT(r,t,e){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[r==="left"?-n:r==="right"?n:0,r==="top"?-i:r==="bottom"?i:0];return a=mv(a,t,e),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function _d(r){return!r.isGroup}function nT(r){return r.shape!=null}function Qm(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(u){_d(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return nT(o)&&(s.shape=k({},o.shape)),s}var a=n(r);t.traverse(function(o){if(_d(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),It(o,u,e,at(o).dataIndex)}}})}function Jm(r,t){return H(r,function(e){var n=e[0];n=Fs(n,t.x),n=zs(n,t.x+t.width);var i=e[1];return i=Fs(i,t.y),i=zs(i,t.y+t.height),[n,i]})}function t0(r,t){var e=Fs(r.x,t.x),n=zs(r.x+r.width,t.x+t.width),i=Fs(r.y,t.y),a=zs(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function _u(r,t,e){var n=k({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),it(i,e),new Je(n)):ho(r.replace("path://",""),n,e,"center")}function iT(r,t,e,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(e0(r,t,e,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function e0(r,t,e,n,i,a,o,s){var u=e-r,l=n-t,f=o-i,h=s-a,v=pl(f,h,u,l);if(aT(v))return!1;var c=r-i,d=t-a,p=pl(c,d,u,l)/v;if(p<0||p>1)return!1;var g=pl(c,d,f,h)/v;return!(g<0||g>1)}function pl(r,t,e,n){return r*n-e*t}function aT(r){return r<=1e-6&&r>=-1e-6}function Su(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=W(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=r.formatterParamsExtra;u&&A(vt(u),function(f){G(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=at(r.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:it({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Sd(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Pi(r,t){if(r)if(F(r))for(var e=0;e<r.length;e++)Sd(r[e],t);else Sd(r,t)}Te("circle",uo);Te("ellipse",pu);Te("sector",Sr);Te("ring",gu);Te("polygon",yu);Te("polyline",Li);Te("rect",Ct);Te("line",Qe);Te("bezierCurve",lo);Te("arc",fo);const r0=Object.freeze(Object.defineProperty({__proto__:null,Arc:fo,BezierCurve:lo,BoundingRect:ot,Circle:uo,CompoundPath:Wm,Ellipse:pu,Group:Tt,Image:Je,IncrementalDisplayable:Xm,Line:Qe,LinearGradient:vv,OrientedBoundingRect:Os,Path:ft,Point:j,Polygon:yu,Polyline:Li,RadialGradient:Um,Rect:Ct,Ring:gu,Sector:Sr,Text:Pt,applyTransform:mv,clipPointsByRect:Jm,clipRectByRect:t0,createIcon:_u,extendPath:Zm,extendShape:$m,getShapeClass:pv,getTransform:jm,groupTransition:Qm,initProps:ae,isElementRemoved:Ta,lineLineIntersect:e0,linePolygonIntersect:iT,makeImage:gv,makePath:ho,mergePath:Km,registerShape:Te,removeElement:Bs,removeElementWithFadeOut:Ns,resizePath:yv,setTooltipConfig:Su,subPixelOptimize:eT,subPixelOptimizeLine:Ua,subPixelOptimizeRect:tT,transformDirection:rT,traverseElements:Pi,updateProps:It},Symbol.toStringTag,{value:"Module"}));var bu={};function oT(r,t){for(var e=0;e<oe.length;e++){var n=oe[e],i=t[n],a=r.ensureState(n);a.style=a.style||{},a.style.text=i}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function bd(r,t,e){var n=r.labelFetcher,i=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=K(r.defaultText)?r.defaultText(i,r,e):r.defaultText);for(var u={normal:s},l=0;l<oe.length;l++){var f=oe[l],h=t[f];u[f]=Q(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return u}function Ii(r,t,e,n){e=e||bu;for(var i=r instanceof Pt,a=!1,o=0;o<Es.length;o++){var s=t[Es[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=i?r:r.getTextContent();if(a){i||(u||(u=new Pt,r.setTextContent(u)),r.stateProxy&&(u.stateProxy=r.stateProxy));var l=bd(e,t),f=t.normal,h=!!f.getShallow("show"),v=mr(f,n&&n.normal,e,!1,!i);v.text=l.normal,i||r.setTextConfig(Gs(f,e,!1));for(var o=0;o<oe.length;o++){var c=oe[o],s=t[c];if(s){var d=u.ensureState(c),p=!!Q(s.getShallow("show"),h);if(p!==h&&(d.ignore=!p),d.style=mr(s,n&&n[c],e,!0,!i),d.style.text=l[c],!i){var g=r.ensureState(c);g.textConfig=Gs(s,e,!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(),e.enableTextSetter&&(wu(u).setLabelText=function(y){var m=bd(e,t,y);oT(u,m)})}else u&&(u.ignore=!0);r.dirty()}function Wn(r,t){t=t||"label";for(var e={normal:r.getModel(t)},n=0;n<oe.length;n++){var i=oe[n];e[i]=r.getModel([i,t])}return e}function mr(r,t,e,n,i){var a={};return sT(a,r,e,n,i),t&&k(a,t),a}function Gs(r,t,e){t=t||{};var n={},i,a=r.getShallow("rotate"),o=Q(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return i=r.getShallow("position")||(e?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=r.get("color")==="inherit"?t.inheritColor||null:"auto",n}function sT(r,t,e,n,i){e=e||bu;var a=t.ecModel,o=a&&a.option.textStyle,s=uT(t),u;if(s){u={};for(var l in s)if(s.hasOwnProperty(l)){var f=t.getModel(["rich",l]);Cd(u[l]={},f,o,e,n,i,!1,!0)}}u&&(r.rich=u);var h=t.get("overflow");h&&(r.overflow=h);var v=t.get("minMargin");v!=null&&(r.margin=v),Cd(r,t,o,e,n,i,!0,!1)}function uT(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||bu).rich;if(e){t=t||{};for(var n=vt(e),i=0;i<n.length;i++){var a=n[i];t[a]=1}}r=r.parentModel}return t}var wd=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],xd=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Td=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Cd(r,t,e,n,i,a,o,s){e=!i&&e||bu;var u=n&&n.inheritColor,l=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=Q(t.getShallow("opacity"),e.opacity);(l==="inherit"||l==="auto")&&(u?l=u:l=null),(f==="inherit"||f==="auto")&&(u?f=u:f=null),a||(l=l||e.color,f=f||e.textBorderColor),l!=null&&(r.fill=l),f!=null&&(r.stroke=f);var v=Q(t.getShallow("textBorderWidth"),e.textBorderWidth);v!=null&&(r.lineWidth=v);var c=Q(t.getShallow("textBorderType"),e.textBorderType);c!=null&&(r.lineDash=c);var d=Q(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!i&&h==null&&!s&&(h=n&&n.defaultOpacity),h!=null&&(r.opacity=h),!i&&!a&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var p=0;p<wd.length;p++){var g=wd[p],y=Q(t.getShallow(g),e[g]);y!=null&&(r[g]=y)}for(var p=0;p<xd.length;p++){var g=xd[p],y=t.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!n.disableBox){for(var p=0;p<Td.length;p++){var g=Td[p],y=t.getShallow(g);y!=null&&(r[g]=y)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&u&&(r.backgroundColor=u),(r.borderColor==="auto"||r.borderColor==="inherit")&&u&&(r.borderColor=u)}}function n0(r,t){var e=t&&t.getModel("textStyle");return Ie([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var wu=gt();function lT(r,t,e,n){if(r){var i=wu(r);i.prevValue=i.value,i.value=e;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}var fT=["textStyle","color"],gl=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],yl=new Pt,hT=(function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(fT):null)},r.prototype.getFont=function(){return n0({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<gl.length;n++)e[gl[n]]=this.getShallow(gl[n]);return yl.useStyle(e),yl.update(),yl.getBoundingRect()},r})(),i0=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],vT=Ea(i0),cT=(function(){function r(){}return r.prototype.getLineStyle=function(t){return vT(this,t)},r})(),a0=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],dT=Ea(a0),pT=(function(){function r(){}return r.prototype.getItemStyle=function(t,e){return dT(this,t,e)},r})(),mt=(function(){function r(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return r.prototype.init=function(t,e,n){},r.prototype.mergeOption=function(t,e){st(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var n=this.option,i=n==null?n:n[t];if(i==null&&!e){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},r.prototype.getModel=function(t,e){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new r(a,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(J(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!$.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r})();jh(mt);lb(mt);Ut(mt,cT);Ut(mt,pT);Ut(mt,db);Ut(mt,hT);function $i(r){return r==null?0:r.length||1}function Dd(r){return r}var o0=(function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||Dd,this._newKeyGetter=i||Dd,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],u=n[s],l=$i(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)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=n[u],f=i[u],h=$i(l),v=$i(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)},r.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],a=e[i],o=$i(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);e[i]=null}},r.prototype._initIndexMap=function(t,e,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),!!e){var u=e[s],l=$i(u);l===0?(e[s]=o,a&&n.push(s)):l===1?e[s]=[u,o]:u.push(o)}}},r})(),s0=q(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ce="original",Qt="arrayRows",ze="objectRows",tr="keyedColumns",Yr="typedArray",u0="unknown",cr="column",Ri="row",Et={Must:1,Might:2,Not:3},l0=gt();function gT(r){l0(r).datasetMap=q()}function f0(r,t,e){var n={},i=_v(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,u=l0(s).datasetMap,l=i.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),A(r,function(p,g){var y=X(p)?p:r[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});A(r,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 yT(r,t,e){var n={},i=_v(r);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===ze||a===tr)&&A(o,function(f,h){(X(f)?f.name:f)==="name"&&(s=h)});var u=(function(){for(var f={},h={},v=[],c=0,d=Math.min(5,e);c<d;c++){var p=v0(t.data,a,t.seriesLayoutBy,o,t.startIndex,c);v.push(p);var g=p===Et.Not;if(g&&f.v==null&&c!==s&&(f.v=c),(f.n==null||f.n===f.v||!g&&v[f.n]===Et.Not)&&(f.n=c),y(f)&&v[f.n]!==Et.Not)return f;g||(p===Et.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 _v(r){var t=r.get("data",!0);if(!t)return so(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ee).models[0]}function mT(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:so(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ee).models}function h0(r,t){return v0(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function v0(r,t,e,n,i,a){var o,s=5;if(jt(r))return Et.Not;var u,l;if(n){var f=n[a];X(f)?(u=f.name,l=f.type):W(f)&&(u=f)}if(l!=null)return l==="ordinal"?Et.Must:Et.Not;if(t===Qt){var h=r;if(e===Ri){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===ze){var p=r;if(!u)return Et.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===tr){var y=r;if(!u)return Et.Not;var v=y[u];if(!v||jt(v))return Et.Not;for(var c=0;c<v.length&&c<s;c++)if((o=S(v[c]))!=null)return o}else if(t===Ce)for(var m=r,c=0;c<m.length&&c<s;c++){var g=m[c],_=oo(g);if(!F(_))return Et.Not;if((o=S(_[a]))!=null)return o}function S(w){var b=W(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return b?Et.Might:Et.Not;if(b&&w!=="-")return Et.Must}return Et.Not}var xu=(function(){function r(t){this.data=t.data||(t.sourceFormat===tr?{}:[]),this.sourceFormat=t.sourceFormat||u0,this.seriesLayoutBy=t.seriesLayoutBy||cr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];i.type==null&&h0(this,n)===Et.Must&&(i.type="ordinal")}}return r})();function Sv(r){return r instanceof xu}function Jf(r,t,e){e=e||c0(r);var n=t.seriesLayoutBy,i=ST(r,e,n,t.sourceHeader,t.dimensions),a=new xu({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:J(t)});return a}function bv(r){return new xu({data:r,sourceFormat:jt(r)?Yr:Ce})}function _T(r){return new xu({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:J(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function c0(r){var t=u0;if(jt(r))t=Yr;else if(F(r)){r.length===0&&(t=Qt);for(var e=0,n=r.length;e<n;e++){var i=r[e];if(i!=null){if(F(i)||jt(i)){t=Qt;break}else if(X(i)){t=ze;break}}}}else if(X(r)){for(var a in r)if(G(r,a)&&Wt(r[a])){t=tr;break}}return t}function ST(r,t,e,n,i){var a,o;if(!r)return{dimensionsDefine:Md(i),startIndex:o,dimensionsDetectedCount:a};if(t===Qt){var s=r;n==="auto"||n==null?Ad(function(l){l!=null&&l!=="-"&&(W(l)?o==null&&(o=1):o=0)},e,s,10):o=lt(n)?n:n?1:0,!i&&o===1&&(i=[],Ad(function(l,f){i[f]=l!=null?l+"":""},e,s,1/0)),a=i?i.length:e===Ri?s.length:s[0]?s[0].length:null}else if(t===ze)i||(i=bT(r));else if(t===tr)i||(i=[],A(r,function(l,f){i.push(f)}));else if(t===Ce){var u=oo(r[0]);a=F(u)&&u.length||1}return{startIndex:o,dimensionsDefine:Md(i),dimensionsDetectedCount:a}}function bT(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return vt(e)}function Md(r){if(r){var t=q();return H(r,function(e,n){e=X(e)?e:{name:e};var i={name:e.name,displayName:e.displayName,type:e.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 Ad(r,t,e,n){if(t===Ri)for(var i=0;i<e.length&&i<n;i++)r(e[i]?e[i][0]:null,i);else for(var a=e[0]||[],i=0;i<a.length&&i<n;i++)r(a[i],i)}function d0(r){var t=r.sourceFormat;return t===ze||t===tr}var mn,_n,Sn,Ld,Pd,p0=(function(){function r(t,e){var n=Sv(t)?t:bv(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Yr&&(this._offset=0,this._dimSize=e,this._data=i),Pd(this,i,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=(function(){var t=r.prototype;t.pure=!1,t.persistent=!0})(),r.internalField=(function(){var t;Pd=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,h=u.startIndex,v=u.dimensionsDefine,c=Ld[wv(l,f)];if(k(o,c),l===Yr)o.getItem=e,o.count=i,o.fillStorage=n;else{var d=g0(l,f);o.getItem=tt(d,null,s,h,v);var p=y0(l,f);o.count=tt(p,null,s,h,v)}};var e=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};Ld=(t={},t[Qt+"_"+cr]={pure:!0,appendData:a},t[Qt+"_"+Ri]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ze]={pure:!0,appendData:a},t[tr]={pure:!0,appendData:function(o){var s=this._data;A(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[Ce]={appendData:a},t[Yr]={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])}})(),r})(),Id=function(r,t,e,n){return r[n]},wT=(mn={},mn[Qt+"_"+cr]=function(r,t,e,n){return r[n+t]},mn[Qt+"_"+Ri]=function(r,t,e,n,i){n+=t;for(var a=i||[],o=r,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[n]:null}return a},mn[ze]=Id,mn[tr]=function(r,t,e,n,i){for(var a=i||[],o=0;o<e.length;o++){var s=e[o].name,u=r[s];a[o]=u?u[n]:null}return a},mn[Ce]=Id,mn);function g0(r,t){var e=wT[wv(r,t)];return e}var Rd=function(r,t,e){return r.length},xT=(_n={},_n[Qt+"_"+cr]=function(r,t,e){return Math.max(0,r.length-t)},_n[Qt+"_"+Ri]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},_n[ze]=Rd,_n[tr]=function(r,t,e){var n=e[0].name,i=r[n];return i?i.length:0},_n[Ce]=Rd,_n);function y0(r,t){var e=xT[wv(r,t)];return e}var ml=function(r,t,e){return r[t]},TT=(Sn={},Sn[Qt]=ml,Sn[ze]=function(r,t,e){return r[e]},Sn[tr]=ml,Sn[Ce]=function(r,t,e){var n=oo(r);return n instanceof Array?n[t]:n},Sn[Yr]=ml,Sn);function m0(r){var t=TT[r];return t}function wv(r,t){return r===Qt?r+"_"+t:r}function Ti(r,t,e){if(r){var n=r.getRawDataItem(t);if(n!=null){var i=r.getStore(),a=i.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=i.getDimensionProperty(o);return m0(a)(n,o,s)}else{var u=n;return a===Ce&&(u=oo(n)),u}}}}var CT=(function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function DT(r,t){var e={},n=e.encode={},i=q(),a=[],o=[],s={};A(r.dimensions,function(v){var c=r.getDimensionInfo(v),d=c.coordDim;if(d){var p=c.coordDimIndex;_l(n,d)[p]=v,c.isExtraCoord||(i.set(d,1),MT(c.type)&&(a[0]=v),_l(s,d)[p]=r.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(v)}s0.each(function(g,y){var m=_l(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)}),e.dataDimsOnCoord=u,e.dataDimIndicesOnCoord=H(u,function(v){return r.getDimensionInfo(v).storeDimIndex}),e.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,e.userOutput=new CT(s,t),e}function _l(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function th(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function MT(r){return!(r==="ordinal"||r==="time")}var cs=(function(){function r(t){this.otherDims={},t!=null&&k(this,t)}return r})();function yi(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!lt(r)&&r!=null&&r!=="-"&&(r=+xe(r)),r==null||r===""?NaN:Number(r))}q({number:function(r){return parseFloat(r)},time:function(r){return+xe(r)},trim:function(r){return W(r)?Ie(r):r}});var AT=(function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=lt(t)?t:za(t),i=lt(e)?e:za(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=W(t),u=W(e);s&&(n=u?t:0),u&&(i=s?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},r})(),Tu="undefined",LT=typeof Uint32Array===Tu?Array:Uint32Array,PT=typeof Uint16Array===Tu?Array:Uint16Array,_0=typeof Int32Array===Tu?Array:Int32Array,Ed=typeof Float64Array===Tu?Array:Float64Array,S0={float:Ed,int:_0,ordinal:Array,number:Array,time:Ed},Sl;function ti(r){return r>65535?LT:PT}function ei(){return[1/0,-1/0]}function IT(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function kd(r,t,e,n,i){var a=S0[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;l<s;l++)u[l]=o[l];r[t]=u}}else r[t]=new a(n)}var eh=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=q()}return r.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Sl[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],d0(i),this._dimensions=H(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===e)return a}else a=i.length;return i[a]={type:e},n.set(t,a),this._chunks[a]=new S0[e||"float"](this._rawCount),this._rawExtent[a]=ei(),a},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=ei());for(var u=a[t],l=o;l<s;l++){var f=n[l]=e.parseAndCollect(n[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}i.ordinalMeta=e,i.ordinalOffset=s,i.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,e||0),l=0;l<a;l++){var f=i[l];kd(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=Sl.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}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=H(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];u[f]||(u[f]=ei()),kd(a,f,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,a,u);else for(var v=[],c=t;c<e;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=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var n=[],i=[];if(e==null){e=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],e));return n},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var n=e.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},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(e[o]<t)i=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,u=-1,l=0,f=0,h=this.count();f<h;f++){var v=this.getRawIndex(f),c=e-a[v],d=Math.abs(c);d<=n&&((d<s||d===s&&c>=0&&u<0)&&(s=d,u=c,l=0),c===u&&(o[l++]=f))}return o.length=l,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=e[a]}else t=new n(e.buffer,0,i)}else{var n=ti(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=ti(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=e(v);else if(u===1){var p=h[f][d];c=e(p,v)}else{for(var g=0;g<u;g++)s[g]=h[t[g]][d];s[g]=v,c=e.apply(null,s)}c&&(o[l++]=d)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=vt(t),a=i.length;if(!a)return this;var o=e.count(),s=ti(e._rawCount),u=new s(o),l=0,f=i[0],h=t[f][0],v=t[f][1],c=e._chunks,d=!1;if(!e._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=e.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 T=!0,x=e.getRawIndex(y),C=0;C<a;C++){var M=i[C],m=c[M][x];(m<t[M][0]||m>t[M][1])&&(T=!1)}T&&(u[l++]=e.getRawIndex(y))}return l<o&&(e._indices=u),e._count=l,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,n){for(var i=t._chunks,a=[],o=e.length,s=t.count(),u=[],l=t._rawExtent,f=0;f<e.length;f++)l[e[f]]=ei();for(var h=0;h<s;h++){for(var v=t.getRawIndex(h),c=0;c<o;c++)u[c]=i[e[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=e[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)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,u=Math.floor(1/e),l=this.getRawIndex(0),f,h,v,c=new(ti(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),T=d-1,C=a[l];f=-1,v=b;for(var M=-1,D=0,_=b;_<x;_++){var S=this.getRawIndex(_),w=a[S];if(isNaN(w)){D++,M<0&&(M=S);continue}h=Math.abs((T-y)*(w-C)-(T-_)*(m-C)),h>f&&(f=h,v=S)}D>0&&D<x-b&&(c[s++]=Math.min(M,v),v=Math.max(M,v)),c[s++]=v,l=v}return c[s++]=this.getRawIndex(o-1),n._count=s,n._indices=c,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,a=Math.floor(1/e),o=i[t],s=this.count(),u=new(ti(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},r.prototype.downSample=function(t,e,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],u=Math.floor(1/e),l=o[t],f=this.count(),h=a._rawExtent[t]=ei(),v=new(ti(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},r.prototype.each=function(t,e){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:e(a);break;case 1:e(i[t[0]][s],a);break;case 2:e(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,e.apply(null,l)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],n=ei();if(!e)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=e[f];h<s&&(s=h),h>u&&(u=h)}return o=[s,u],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][e]);return n},r.prototype.clone=function(t,e){var n=new r,i=this._chunks,a=t&&Be(t,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?IT(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),e||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=J(this._extent),t._rawExtent=J(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function t(e,n,i,a){return yi(e[a],this._dimensions[a])}Sl={arrayRows:t,objectRows:function(e,n,i,a){return yi(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return yi(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}})(),r})(),RT=gt(),ET={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},b0=(function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=T0(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return Q(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=d0(this.source),n=!C0(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=e?h.name:null,l=h.type,f=h.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(u=e?v.name:null,l=v.type)}a.push({property:u,type:l,ordinalMeta:f}),e&&u!=null&&(!h||!h.isCalculationCoord)&&(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=ET[l]||"f",f&&(i+=f.uid),i+="$"}var c=this.source,d=[c.seriesLayoutBy,c.startIndex,i].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function w0(r){return r instanceof b0}function x0(r){for(var t=q(),e=0;e<(r||[]).length;e++){var n=r[e],i=X(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,e)}return t}function T0(r){var t=RT(r);return t.dimNameMap||(t.dimNameMap=x0(r.dimensionsDefine))}function C0(r){return r>30}var Zi=X,Tr=H,kT=typeof Int32Array>"u"?Array:Int32Array,OT="e\0\0",Od=-1,BT=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],NT=["_approximateExtent"],Bd,ko,qi,Ki,bl,ji,wl,Ur=(function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;w0(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=W(h)?new cs({name:h}):h instanceof cs?h:new cs(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]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),i&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=q();A(o,function(g){p.set(a[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(n!=null)return n;var i=this._schema.getSourceDimension(e);if(i)return i.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(lt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(n){return e.hasOwnProperty(n)?e[n]:void 0}:function(n){return e[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(e==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,n){var i=this,a;if(t instanceof eh&&(a=t),!a){var o=this.dimensions,s=Sv(t)||Wt(t)?new p0(t,o.length):t;a=new eh;var u=Tr(o,function(l){return{type:i._dimInfos[l].type,property:l}});a.initData(s,u,n)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=DT(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=i;s<a;s++){var u=s-i;this._nameList[s]=e[u],o&&wl(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Yr&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===Ce;if(u&&!i.pure)for(var l=[],f=t;f<e;f++){var h=i.getItem(f,l);if(!this.hasItemOption&&$w(h)&&(this.hasItemOption=!0),h){var v=h.name;a[f]==null&&v!=null&&(a[f]=Oe(v,null));var c=h.id;o[f]==null&&c!=null&&(o[f]=Oe(c,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)wl(this,f);Bd(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Zi(t)?k(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return n==null&&this._nameDimIdx!=null&&(n=qi(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},r.prototype.getId=function(t){return ko(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var n=this,i=this._store;return F(t)?i.getValues(Tr(t,function(a){return n._getStoreDimIndex(a)}),e):i.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n&&n[e];return i==null||isNaN(i)?Od:i},r.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},r.prototype.each=function(t,e,n){K(t)&&(n=e,e=t,t=[]);var i=n||this,a=Tr(Ki(t),this._getStoreDimIndex,this);this._store.each(a,i?tt(e,i):e)},r.prototype.filterSelf=function(t,e,n){K(t)&&(n=e,e=t,t=[]);var i=n||this,a=Tr(Ki(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?tt(e,i):e),this},r.prototype.selectRange=function(t){var e=this,n={},i=vt(t);return A(i,function(a){var o=e._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(t,e,n){K(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},r.prototype.map=function(t,e,n,i){var a=n||i||this,o=Tr(Ki(t),this._getStoreDimIndex,this),s=ji(this);return s._store=this._store.map(o,a?tt(e,a):e),s},r.prototype.modify=function(t,e,n,i){var a=n||i||this,o=Tr(Ki(t),this._getStoreDimIndex,this);this._store.modify(o,a?tt(e,a):e)},r.prototype.downSample=function(t,e,n,i){var a=ji(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),a},r.prototype.minmaxDownSample=function(t,e){var n=ji(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},r.prototype.lttbDownSample=function(t,e){var n=ji(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new mt(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new o0(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return ko(t,n)},function(n){return ko(e,n)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Zi(t)?k(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return i??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),F(a)?a=a.slice():Zi(a)&&(a=k({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Zi(e)?k(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Zi(t)?k(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?k(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;sx(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Tr(this.dimensions,this._getDimInfo,this),this.hostModel)),bl(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];K(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(iu(arguments)))})},r.internalField=(function(){Bd=function(t){var e=t._invertedIndicesMap;A(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new kT(o.categories.length);for(var u=0;u<n.length;u++)n[u]=Od;for(var u=0;u<s.count();u++)n[s.get(a.storeDimIndex,u)]=u}})},qi=function(t,e,n){return Oe(t._getCategory(e,n),null)},ko=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=qi(t,t._idDimIdx,e)),n==null&&(n=OT+e),n},Ki=function(t){return F(t)||(t=t!=null?[t]:[]),t},ji=function(t){var e=new r(t._schema?t._schema:Tr(t.dimensions,t._getDimInfo,t),t.hostModel);return bl(e,t),e},bl=function(t,e){A(BT.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,A(NT,function(n){t[n]=J(e[n])}),t._calculationInfo=k({},e._calculationInfo)},wl=function(t,e){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[e],u=i[e];if(s==null&&a!=null&&(n[e]=s=qi(t,a,e)),u==null&&o!=null&&(i[e]=u=qi(t,o,e)),u==null&&s!=null){var l=t._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),i[e]=u}}})(),r})();function FT(r,t){return Cu(r,t).dimensions}function Cu(r,t){Sv(r)||(r=bv(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=q(),a=[],o=GT(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&C0(o),u=n===r.dimensionsDefine,l=u?T0(r):x0(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=q(f),v=new _0(o),c=0;c<v.length;c++)v[c]=-1;function d(C){var M=v[C];if(M<0){var D=n[C],P=X(D)?D:{name:D},R=new cs,L=P.name;L!=null&&l.get(L)!=null&&(R.name=R.displayName=L),P.type!=null&&(R.type=P.type),P.displayName!=null&&(R.displayName=P.displayName);var I=a.length;return v[C]=I,R.storeDimIndex=C,a.push(R),R}return a[M]}if(!s)for(var c=0;c<o;c++)d(c);h.each(function(C,M){var D=Lt(C).slice();if(D.length===1&&!W(D[0])&&D[0]<0){h.set(M,!1);return}var P=h.set(M,[]);A(D,function(R,L){var I=W(R)?l.get(R):R;I!=null&&I<o&&(P[L]=I,g(d(I),M,L))})});var p=0;A(e,function(C){var M,D,P,R;if(W(C))M=C,R={};else{R=C,M=R.name;var L=R.ordinalMeta;R.ordinalMeta=null,R=k({},R),R.ordinalMeta=L,D=R.dimsDef,P=R.otherDims,R.name=R.coordDim=R.coordDimIndex=R.dimsDef=R.otherDims=null}var I=h.get(M);if(I!==!1){if(I=Lt(I),!I.length)for(var E=0;E<(D&&D.length||1);E++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&I.push(p++)}A(I,function(z,O){var B=d(z);if(u&&R.type!=null&&(B.type=R.type),g(it(B,R),M,O),B.name==null&&D){var V=D[O];!X(V)&&(V={name:V}),B.name=B.displayName=V.name,B.defaultTooltip=V.defaultTooltip}P&&it(B.otherDims,P)})}});function g(C,M,D){s0.get(M)!=null?C.otherDims[M]=D:(C.coordDim=M,C.coordDimIndex=D,i.set(M,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function w(C){C.name==null&&(C.name=C.coordDim)}if(s)A(a,function(C){w(C)}),a.sort(function(C,M){return C.storeDimIndex-M.storeDimIndex});else for(var b=0;b<o;b++){var x=d(b),T=x.coordDim;T==null&&(x.coordDim=VT(S,i,_),x.coordDimIndex=0,(!y||m<=0)&&(x.isExtraCoord=!0),m--),w(x),x.type==null&&(h0(r,b)===Et.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return zT(a),new b0({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function zT(r){for(var t=q(),e=0;e<r.length;e++){var n=r[e],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function GT(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return A(t,function(a){var o;X(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function VT(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var xl={},vo=(function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var n=[];A(xl,function(i,a){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(t,e){A(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){xl[t]=e},r.get=function(t){return xl[t]},r})(),HT=(function(){function r(t){this.coordSysDims=[],this.axisMap=q(),this.categoryAxisMap=q(),this.coordSysName=t}return r})();function WT(r){var t=r.get("coordinateSystem"),e=new HT(t),n=YT[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var YT={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",Ee).models[0],a=r.getReferringComponents("yAxis",Ee).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),ri(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),ri(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",Ee).models[0];t.coordSysDims=["single"],e.set("single",i),ri(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",Ee).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),ri(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),ri(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();A(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];e.set(f,l),ri(l)&&(n.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})}};function ri(r){return r.get("type")==="category"}function D0(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;UT(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(r&&r.get("stack")),l,f,h,v;if(A(a,function(m,_){W(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_"+r.id,v="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var c=f.coordDim,d=f.type,p=0;A(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 UT(r){return!w0(r.schema)}function qr(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function xv(r,t){return qr(r,t)?r.getCalculationInfo("stackResultDimension"):t}function XT(r,t){var e=r.get("coordinateSystem"),n=vo.get(e),i;return t&&t.coordSysDims&&(i=H(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=th(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function $T(r,t,e){var n,i;return e&&A(r,function(a,o){var s=a.coordDim,u=e.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&&(r[n].otherDims.itemName=0),n}function Ei(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=bv(r)):(i=n.getSource(),a=i.sourceFormat===Ce);var o=WT(t),s=XT(t,o),u=e.useEncodeDefaulter,l=K(u)?u:u?ut(f0,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=Cu(i,f),v=$T(h.dimensions,e.createInvertedIndices,o),c=a?null:n.getSharedDataStore(h),d=D0(t,{schema:h,store:c}),p=new Ur(h,t);p.setCalculationInfo(d);var g=v!=null&&ZT(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 ZT(r){if(r.sourceFormat===Ce){var t=qT(r.data||[]);return!F(oo(t))}}function qT(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var KT=Math.round(Math.random()*10);function Du(r){return[r||"",KT++].join("_")}function jT(r){var t={};r.registerSubTypeDefaulter=function(e,n){var i=Ze(e);t[i.main]=n},r.determineSubType=function(e,n){var i=n.type;if(!i){var a=Ze(e).main;r.hasSubTypes(e)&&t[a]&&(i=t[a](n))}return i}}function QT(r,t){r.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=e(o),f=l.graph,h=l.noEntryList,v={};for(A(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]),A(d.successor,p?y:g)}A(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 e(a){var o={},s=[];return A(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),A(h,function(v){rt(l.predecessor,v)<0&&l.predecessor.push(v);var c=n(o,v);rt(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 A(a,function(u){rt(o,u)>=0&&s.push(u)}),s}}function M0(r,t){return st(st({},r,!0),t,!0)}var JT=Math.log(2);function rh(r,t,e,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~i)/JT);return r[e][u]}for(var l=n|1<<e,f=e+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)*r[e][v]*rh(r,t-1,f,l,i|d,a),c++)}return a[o]=h,h}function Nd(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],n={},i=rh(e,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)*rh(e,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 Fd="___zrEVENTSAVED",Tl=[];function tC(r,t,e,n,i){return nh(Tl,t,n,i,!0)&&nh(r,e,Tl[0],Tl[1])}function nh(r,t,e,n,i){if(t.getBoundingClientRect&&$.domSupported&&!A0(t)){var a=t[Fd]||(t[Fd]={}),o=eC(t,a),s=rC(o,a,i);if(s)return s(r,e,n),!0}return!1}function eC(r,t){var e=t.markers;if(e)return e;e=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;"),r.appendChild(o),e.push(o)}return e}function rC(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=r[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(r[l].offsetLeft,r[l].offsetTop)}return u&&i?i:(t.srcCoords=o,t[n]=e?Nd(s,o):Nd(o,s))}function A0(r){return r.nodeName.toUpperCase()==="CANVAS"}var nC=/([&<>"'])/g,iC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Kt(r){return r==null?"":(r+"").replace(nC,function(t,e){return iC[e]})}const aC={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:". "}}}},oC={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 Vs="ZH",Tv="EN",mi=Tv,ds={},Cv={},L0=$.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||mi).toUpperCase();return r.indexOf(Vs)>-1?Vs:mi})():mi;function P0(r,t){r=r.toUpperCase(),Cv[r]=new mt(t),ds[r]=t}function sC(r){if(W(r)){var t=ds[r.toUpperCase()]||{};return r===Vs||r===Tv?J(t):st(J(t),J(ds[mi]),!1)}else return st(J(r),J(ds[mi]),!1)}function uC(r){return Cv[r]}function lC(){return Cv[mi]}P0(Tv,aC);P0(Vs,oC);var Dv=1e3,Mv=Dv*60,Ca=Mv*60,be=Ca*24,zd=be*365,ha={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Oo="{yyyy}-{MM}-{dd}",Gd={year:"{yyyy}",month:"{yyyy}-{MM}",day:Oo,hour:Oo+" "+ha.hour,minute:Oo+" "+ha.minute,second:Oo+" "+ha.second,millisecond:ha.none},Cl=["year","month","day","hour","minute","second","millisecond"],I0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function $t(r,t){return r+="","0000".substr(0,t-r.length)+r}function _i(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function fC(r){return r===_i(r)}function hC(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function co(r,t,e,n){var i=xe(r),a=i[Av(e)](),o=i[Si(e)]()+1,s=Math.floor((o-1)/3)+1,u=i[Mu(e)](),l=i["get"+(e?"UTC":"")+"Day"](),f=i[Xa(e)](),h=(f-1)%12+1,v=i[Au(e)](),c=i[Lu(e)](),d=i[Pu(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof mt?n:uC(n||L0)||lC(),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,$t(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,$t(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,$t(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,w[l]).replace(/{ee}/g,b[l]).replace(/{e}/g,l+"").replace(/{HH}/g,$t(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,$t(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,$t(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,$t(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,$t(d,3)).replace(/{S}/g,d+"")}function vC(r,t,e,n,i){var a=null;if(W(e))a=e;else if(K(e))a=e(r.value,t,{level:r.level});else{var o=k({},ha);if(r.level>0)for(var s=0;s<Cl.length;++s)o[Cl[s]]="{primary|"+o[Cl[s]]+"}";var u=e?e.inherit===!1?e:it(e,o):o,l=R0(r.value,i);if(u[l])a=u[l];else if(u.inherit){for(var f=I0.indexOf(l),s=f-1;s>=0;--s)if(u[l]){a=u[l];break}a=a||o.none}if(F(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return co(new Date(r.value),a,i,n)}function R0(r,t){var e=xe(r),n=e[Si(t)]()+1,i=e[Mu(t)](),a=e[Xa(t)](),o=e[Au(t)](),s=e[Lu(t)](),u=e[Pu(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 Vd(r,t,e){var n=lt(r)?xe(r):r;switch(t=t||R0(r,e),t){case"year":return n[Av(e)]();case"half-year":return n[Si(e)]()>=6?1:0;case"quarter":return Math.floor((n[Si(e)]()+1)/4);case"month":return n[Si(e)]();case"day":return n[Mu(e)]();case"half-day":return n[Xa(e)]()/24;case"hour":return n[Xa(e)]();case"minute":return n[Au(e)]();case"second":return n[Lu(e)]();case"millisecond":return n[Pu(e)]()}}function Av(r){return r?"getUTCFullYear":"getFullYear"}function Si(r){return r?"getUTCMonth":"getMonth"}function Mu(r){return r?"getUTCDate":"getDate"}function Xa(r){return r?"getUTCHours":"getHours"}function Au(r){return r?"getUTCMinutes":"getMinutes"}function Lu(r){return r?"getUTCSeconds":"getSeconds"}function Pu(r){return r?"getUTCMilliseconds":"getMilliseconds"}function cC(r){return r?"setUTCFullYear":"setFullYear"}function E0(r){return r?"setUTCMonth":"setMonth"}function k0(r){return r?"setUTCDate":"setDate"}function O0(r){return r?"setUTCHours":"setHours"}function B0(r){return r?"setUTCMinutes":"setMinutes"}function N0(r){return r?"setUTCSeconds":"setSeconds"}function F0(r){return r?"setUTCMilliseconds":"setMilliseconds"}function dC(r,t,e,n,i,a,o,s){var u=new Pt({style:{text:r,font:t,align:e,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return u.getBoundingRect()}function Lv(r){if(!bm(r))return W(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Pv(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var po=qh;function ih(r,t,e){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=r instanceof Date;if(o||s){var u=o?xe(r):r;if(isNaN(+u)){if(s)return"-"}else return co(u,n,e)}if(t==="ordinal")return bs(r)?i(r):lt(r)&&a(r)?r+"":"-";var l=za(r);return a(l)?Lv(l):bs(r)?i(r):typeof r=="boolean"?r+"":"-"}var Hd=["a","b","c","d","e","f","g"],Dl=function(r,t){return"{"+r+(t??"")+"}"};function Iv(r,t,e){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=Hd[a];r=r.replace(Dl(o),Dl(o,0))}for(var s=0;s<n;s++)for(var u=0;u<i.length;u++){var l=t[s][i[u]];r=r.replace(Dl(Hd[u],s),e?Kt(l):l)}return r}function z0(r,t){var e=W(r)?{color:r,extraCssText:t}:r||{},n=e.color,i=e.type;t=e.extraCssText;var a=e.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:'+Kt(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Kt(n)+";"+(t||"")+'"></span>';var o=e.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 pC(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
yyyy`);var n=xe(t),i=e?"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 r=r.replace("MM",$t(o,2)).replace("M",o).replace("yyyy",a).replace("yy",$t(a%100+"",2)).replace("dd",$t(s,2)).replace("d",s).replace("hh",$t(u,2)).replace("h",u).replace("mm",$t(l,2)).replace("m",l).replace("ss",$t(f,2)).replace("s",f).replace("SSS",$t(h,3)),r}function gC(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Fn(r,t){return t=t||"transparent",W(r)?r:X(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}var ps=A,yC=["left","right","top","bottom","width","height"],Bo=[["width","left","right"],["height","top","bottom"]];function Rv(r,t,e,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(r==="horizontal"){var p=f.width+(v?-v.x+f.x:0);c=a+p,c>n||u.newline?(a=0,c=p,o+=s+e,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+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),r==="horizontal"?a=c+e:o=d+e)})}var Da=Rv;ut(Rv,"vertical");ut(Rv,"horizontal");function zn(r,t,e){e=po(e||0);var n=t.width,i=t.height,a=pt(r.left,n),o=pt(r.top,i),s=pt(r.right,n),u=pt(r.bottom,i),l=pt(r.width,n),f=pt(r.height,i),h=e[2]+e[0],v=e[1]+e[3],c=r.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),r.left||r.right){case"center":a=n/2-l/2-e[3];break;case"right":a=n-l-v;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[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 ot(a+e[3],o+e[0],l,f);return d.margin=e,d}function $a(r){var t=r.layoutMode||r.constructor.layoutMode;return X(t)?t:t?{type:t}:null}function Ci(r,t,e){var n=e&&e.ignoreSize;!F(n)&&(n=[n,n]);var i=o(Bo[0],0),a=o(Bo[1],1);l(Bo[0],r,i),l(Bo[1],r,a);function o(f,h){var v={},c=0,d={},p=0,g=2;if(ps(f,function(_){d[_]=r[_]}),ps(f,function(_){s(t,_)&&(v[_]=d[_]=t[_]),u(v,_)&&c++,u(d,_)&&p++}),n[h])return u(t,f[1])?d[f[2]]=null:u(t,f[2])&&(d[f[1]]=null),d;if(p===g||!c)return d;if(c>=g)return v;for(var y=0;y<f.length;y++){var m=f[y];if(!s(v,m)&&s(r,m)){v[m]=r[m];break}}return v}function s(f,h){return f.hasOwnProperty(h)}function u(f,h){return f[h]!=null&&f[h]!=="auto"}function l(f,h,v){ps(f,function(c){h[c]=v[c]})}}function Iu(r){return mC({},r)}function mC(r,t){return t&&r&&ps(yC,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var _C=gt(),ht=(function(r){N(t,r);function t(e,n,i){var a=r.call(this,e,n,i)||this;return a.uid=Du("ec_cpt_model"),a}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=$a(this),a=i?Iu(e):{},o=n.getTheme();st(e,o.get(this.mainType)),st(e,this.getDefaultOption()),i&&Ci(e,a,i)},t.prototype.mergeOption=function(e,n){st(this.option,e,!0);var i=$a(this);i&&Ci(this.option,e,i)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!ob(e))return e.defaultOption;var n=_C(this);if(!n.defaultOption){for(var i=[],a=e;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},u=i.length-1;u>=0;u--)s=st(s,i[u],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return so(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=(function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0})(),t})(mt);Yy(ht,mt);au(ht);jT(ht);QT(ht,SC);function SC(r){var t=[];return A(ht.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=H(t,function(e){return Ze(e).main}),r!=="dataset"&&rt(t,"dataset")<=0&&t.unshift("dataset"),t}var Wd=gt();gt();var Ev=(function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var i=Lt(this.get("color",!0)),a=this.get("colorLayer",!0);return wC(this,Wd,i,a,t,e,n)},r.prototype.clearColorPalette=function(){xC(this,Wd)},r})();function bC(r,t){for(var e=r.length,n=0;n<e;n++)if(r[n].length>t)return r[n];return r[e-1]}function wC(r,t,e,n,i,a,o){a=a||r;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?e:bC(n,o);if(f=f||e,!(!f||!f.length)){var h=f[u];return i&&(l[i]=h),s.paletteIdx=(u+1)%f.length,h}}function xC(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var TC=/\{@(.+?)\}/g,kv=(function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),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:e,value:i,color:l,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,n,i,a,o){e=e||"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(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(K(a))return u.status=e,u.dimensionIndex=i,a(u);if(W(a)){var f=Iv(a,u);return f.replace(TC,function(h,v){var c=v.length,d=v;d.charAt(0)==="["&&d.charAt(c-1)==="]"&&(d=+d.slice(1,c-1));var p=Ti(s,t,d);if(o&&F(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Ti(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r})();function Yd(r){var t,e;return X(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Ma(r){return new CC(r)}var CC=(function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.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(e?this._dueEnd=e._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()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,n,i,a){Ud.reset(e,n,i,a),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Ud.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),F(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r})(),Ud=(function(){var r,t,e,n,i,a={reset:function(u,l,f,h){t=u,r=l,e=f,n=h,i=Math.ceil(n/e),a.next=e>1&&n>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var u=t%i*e+Math.ceil(t/i),l=t>=r?null:u<n?u:t;return t++,l}})(),DC=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return yi(t,e)},r})();function MC(r,t){var e=new DC,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==cr&&Ht(o);var s=[],u={},l=r.dimensionsDefine;if(l)A(l,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";G(u,y)&&Ht(_),u[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=g0(i,cr);t.__isBuiltIn&&(e.getRawDataItem=function(p){return h(n,a,s,p)},e.getRawData=tt(AC,null,r)),e.cloneRawData=tt(LC,null,r);var v=y0(i,cr);e.count=tt(v,null,n,a,s);var c=m0(i);e.retrieveValue=function(p,g){var y=h(n,a,s,p);return d(y,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return c(p,g,y.name)}};return e.getDimensionInfo=tt(PC,null,s,u),e.cloneAllDimensionInfo=tt(IC,null,s),e}function AC(r){var t=r.sourceFormat;if(!Ov(t)){var e="";Ht(e)}return r.data}function LC(r){var t=r.sourceFormat,e=r.data;if(!Ov(t)){var n="";Ht(n)}if(t===Qt){for(var i=[],a=0,o=e.length;a<o;a++)i.push(e[a].slice());return i}else if(t===ze){for(var i=[],a=0,o=e.length;a<o;a++)i.push(k({},e[a]));return i}}function PC(r,t,e){if(e!=null){if(lt(e)||!isNaN(e)&&!G(t,e))return r[e];if(G(t,e))return t[e]}}function IC(r){return J(r)}var G0=q();function RC(r){r=J(r);var t=r.type,e="";t||Ht(e);var n=t.split(":");n.length!==2&&Ht(e);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),r.__isBuiltIn=i,G0.set(t,r)}function EC(r,t,e){var n=Lt(r),i=n.length,a="";i||Ht(a);for(var o=0,s=i;o<s;o++){var u=n[o];t=kC(u,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function kC(r,t,e,n){var i="";t.length||Ht(i),X(r)||Ht(i);var a=r.type,o=G0.get(a);o||Ht(i);var s=H(t,function(l){return MC(l,o)}),u=Lt(o.transform({upstream:s[0],upstreamList:s,config:J(r.config)}));return H(u,function(l,f){var h="";X(l)||Ht(h),l.data||Ht(h);var v=c0(l.data);Ov(v)||Ht(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:cr,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else c={seriesLayoutBy:cr,sourceHeader:0,dimensions:l.dimensions};return Jf(l.data,c,null)})}function Ov(r){return r===Qt||r===ze}var OC=(function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,i,a;if(No(t)){var o=t,s=void 0,u=void 0,l=void 0;if(n){var f=e[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=jt(s)?Yr:Ce,a=[];var h=this._getSourceMetaRawOption()||{},v=l&&l.metaRawOption||{},c=Q(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=Q(h.sourceHeader,v.sourceHeader),p=Q(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;i=g?[Jf(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},u)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[Jf(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&Xd(a)}var o,s=[],u=[];return A(t,function(l){l.prepareSource();var f=l.getSource(i||0),h="";i!=null&&!f&&Xd(h),s.push(f),u.push(l._getVersionSign())}),n?o=EC(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[_T(s[0])]),{sourceList:o,upstreamSignList:u}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var u=this._getUpstreamSourceManagers()[0];No(this._sourceHost)&&u?s=u._innerGetDataStore(t,e,n):(s=new eh,s.initData(new p0(e,t.length),t)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(No(t)){var e=_v(t);return e?[e.getSourceManager()]:[]}else return H(mT(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,i;if(No(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:i}},r})();function No(r){return r.mainType==="series"}function Xd(r){throw new Error(r)}var BC="line-height:1";function V0(r){var t=r.lineHeight;return t==null?BC:"line-height:"+Kt(t+"")+"px"}function H0(r,t){var e=r.color||"#6e7079",n=r.fontSize||12,i=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Kt(n+"")+"px;color:"+Kt(e)+";font-weight:"+Kt(i+""),valueStyle:"font-size:"+Kt(o+"")+"px;color:"+Kt(a)+";font-weight:"+Kt(s+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var NC=[0,10,20,30],FC=["",`
`,`

`,`


`];function Kr(r,t){return t.type=r,t}function ah(r){return r.type==="section"}function W0(r){return ah(r)?zC:GC}function Y0(r){if(ah(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return A(r.blocks,function(i){var a=Y0(i);a>=t&&(t=a+ +(n&&(!a||ah(i)&&!i.noHeader)))}),t}return 0}function zC(r,t,e,n){var i=t.noHeader,a=VC(Y0(t)),o=[],s=t.blocks||[];Ne(!s||F(s)),s=s||[];var u=r.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(G(l,u)){var f=new AT(l[u],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else u==="seriesDesc"&&s.reverse()}A(s,function(p,g){var y=t.valueFormatter,m=W0(p)(y?k(k({},r),{valueFormatter:y}):r,p,g>0?a.html:0,n);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):oh(n,o.join(""),i?e:a.html);if(i)return h;var v=ih(t.header,"ordinal",r.useUTC),c=H0(n,r.renderMode).nameStyle,d=V0(n);return r.renderMode==="richText"?U0(r,v,c)+a.richText+h:oh(n,'<div style="'+c+";"+d+';">'+Kt(v)+"</div>"+h,e)}function GC(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=F(S)?S:[S],H(S,function(w,b){return ih(w,F(c)?c[b]:c,l)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),v=a?"":ih(u,"ordinal",l),c=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!a,g=!s&&a,y=H0(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(a?"":U0(r,v,m))+(o?"":YC(r,d,p,g,_)):oh(n,(s?"":h)+(a?"":HC(v,!s,m))+(o?"":WC(d,p,g,_)),e)}}function $d(r,t,e,n,i,a){if(r){var o=W0(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function VC(r){return{html:NC[r],richText:FC[r]}}function oh(r,t,e){var n='<div style="clear:both"></div>',i="margin: "+e+"px 0 0",a=V0(r);return'<div style="'+i+";"+a+';">'+t+n+"</div>"}function HC(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+Kt(r)+"</span>"}function WC(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=F(r)?r:[r],'<span style="'+a+";"+n+'">'+H(r,function(o){return Kt(o)}).join("&nbsp;&nbsp;")+"</span>"}function U0(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function YC(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(F(t)?t.join("  "):t,a)}function UC(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return Fn(n)}function X0(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Ml=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=wm()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=z0({color:e,type:t,renderMode:n,markerId:i});return W(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};F(e)?A(e,function(a){return k(n,a)}):k(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r})();function $0(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),u=F(s),l=UC(t,e),f,h,v,c;if(o>1||u&&!o){var d=XC(s,t,e,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=Ti(i,e,a[0]),h=p.type}else c=f=u?s[0]:s;var g=av(t),y=g&&t.name||"",m=i.getName(e),_=n?y:m;return Kr("section",{header:y,noHeader:n||!g,sortParam:c,blocks:[Kr("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Ie(_),value:f,valueType:h,dataIndex:e})].concat(v||[])})}function XC(r,t,e,n,i){var a=t.getData(),o=Be(r,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?A(n,function(h){f(Ti(a,e,h),h)}):A(r,f);function f(h,v){var c=a.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?l.push(Kr("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 Cr=gt();function Fo(r,t){return r.getName(t)||r.getId(t)}var $C="__universalTransitionEnabled",Yt=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ma({count:qC,reset:KC}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=Cr(this).sourceManager=new OC(this);a.prepareSource();var o=this.getInitialData(e,i);qd(o,this),this.dataTask.context.data=o,Cr(this).dataBeforeProcessed=o,Zd(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=$a(this),a=i?Iu(e):{},o=this.subType;ht.hasClass(o)&&(o+="Series"),st(e,n.getTheme().get(this.subType)),st(e,this.getDefaultOption()),Ga(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&Ci(e,a,i)},t.prototype.mergeOption=function(e,n){e=st(this.option,e,!0),this.fillDataTextStyle(e.data);var i=$a(this);i&&Ci(this.option,e,i);var a=Cr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);qd(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Cr(this).dataBeforeProcessed=o,Zd(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!jt(e))for(var n=["show"],i=0;i<e.length;i++)e[i]&&e[i].label&&Ga(e[i],"label",n)},t.prototype.getInitialData=function(e,n){},t.prototype.appendData=function(e){var n=this.getRawData();n.appendData(e.data)},t.prototype.getData=function(e){var n=sh(this);if(n){var i=n.context.data;return e==null||!i.getLinkedData?i:i.getLinkedData(e)}else return Cr(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var n=sh(this);if(n){var i=n.context;i.outputData=e,n!==this.dataTask&&(i.data=e)}Cr(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return q(e)},t.prototype.getSourceManager=function(){return Cr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Cr(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,n,i){return $0({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if($.node&&!(e&&e.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var a=this.ecModel,o=Ev.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var 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<e.length;s++){var u=e[s],l=Fo(o,u);i[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(e,n){for(var i=[],a=0;a<e.length;a++)i[0]=e[a],this.isSelected(e[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 e=this._selectedDataIndicesMap,n=vt(e),i=[],a=0;a<n.length;a++){var o=e[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Fo(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[$C])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,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"){X(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var h=n[f],v=Fo(e,h);l[v]=!0,this._selectedDataIndicesMap[v]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var c=n[u-1],v=Fo(e,c);o.selectedMap=(i={},i[v]=!0,i),this._selectedDataIndicesMap=(a={},a[v]=e.getRawIndex(c),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(i){var a=e.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return ht.registerClass(e)},t.protoInitialize=(function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"})(),t})(ht);Ut(Yt,kv);Ut(Yt,Ev);Yy(Yt,ht);function Zd(r){var t=r.name;av(r)||(r.name=ZC(r)||t)}function ZC(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return A(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function qC(r){return r.model.getRawData().count()}function KC(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),jC}function jC(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function qd(r,t){A(Vy(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,ut(QC,t))})}function QC(r,t){var e=sh(r);return e&&e.setOutputEnd((t||this).count()),t}function sh(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}var JC=ft.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n+a),r.lineTo(e-i,n+a),r.closePath()}}),tD=ft.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n),r.lineTo(e,n+a),r.lineTo(e-i,n),r.closePath()}}),eD=ft.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=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;r.moveTo(e-f,u+s),r.arc(e,u,o,Math.PI-l,Math.PI*2+l),r.bezierCurveTo(e+f-h*c,u+s+v*c,e,n-d,e,n),r.bezierCurveTo(e,n-d,e-f+h*c,u+s+v*c,e-f,u+s),r.closePath()}}),rD=ft.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;r.moveTo(i,a),r.lineTo(i+o,a+e),r.lineTo(i,a+e/4*3),r.lineTo(i-o,a+e),r.lineTo(i,a),r.closePath()}}),nD={line:Qe,rect:Ct,roundRect:Ct,square:Ct,circle:uo,diamond:tD,pin:eD,arrow:rD,triangle:JC},iD={line:function(r,t,e,n,i){i.x1=r,i.y1=t+n/2,i.x2=r+e,i.y2=t+n/2},rect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n},roundRect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n,i.r=Math.min(e,n)/4},square:function(r,t,e,n,i){var a=Math.min(e,n);i.x=r,i.y=t,i.width=a,i.height=a},circle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.r=Math.min(e,n)/2},diamond:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n},pin:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},arrow:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},triangle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n}},uh={};A(nD,function(r,t){uh[t]=new r});var aD=ft.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=Ts(r,t,e),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=e.y+e.height*.4),n},buildPath:function(r,t,e){var n=t.symbolType;if(n!=="none"){var i=uh[n];i||(n="rect",i=uh[n]),iD[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(r,i.shape,e)}}});function oD(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function jr(r,t,e,n,i,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var u;return r.indexOf("image://")===0?u=gv(r.slice(8),new ot(t,e,n,i),o?"center":"cover"):r.indexOf("path://")===0?u=ho(r.slice(7),{},new ot(t,e,n,i),o?"center":"cover"):u=new aD({shape:{symbolType:r,x:t,y:e,width:n,height:i}}),u.__isEmptyBrush=s,u.setColor=oD,a&&u.setColor(a),u}function Bv(r){return F(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Ru(r,t){if(r!=null)return F(r)||(r=[r,r]),[pt(r[0],t[0])||0,pt(Q(r[1],r[0]),t[1])||0]}var sD=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return Ei(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new Tt,i=jr("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(i),i.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,u=e.itemHeight*.8,l=jr(s,(e.itemWidth-u)/2,(e.itemHeight-u)/2,u,u,e.itemStyle.fill);n.add(l),l.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return l.rotation=f*Math.PI/180,l.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(Yt);function Za(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=Ti(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<e.length;o++)a.push(Ti(r,t,e[o]));return a.join(" ")}}function Z0(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!F(t))return t+"";for(var n=[],i=0;i<e.length;i++){var a=r.getDimensionIndex(e[i]);a>=0&&n.push(t[a])}return n.join(" ")}var Nv=(function(r){N(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=jr(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=uD,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ha(this.childAt(0))},t.prototype.downplay=function(){Wa(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,u=t.getSymbolSize(e,n),l=o!==this._symbolType,f=a&&a.disableAnimation;if(l){var h=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,u,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:u[0]/2,scaleY:u[1]/2};f?v.attr(c):It(v,c,s,n),mu(v)}if(this._updateCommon(e,n,u,i,a),l){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,ae(v,c,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,a,o){var s=this.childAt(0),u=e.hostModel,l,f,h,v,c,d,p,g,y;if(a&&(l=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,v=a.focus,c=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=m.getModel("emphasis");l=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),p=Wn(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=Ru(e.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var b=e.getItemVisual(n,"style"),x=b.fill;if(s instanceof Je){var T=s.style;s.useStyle(k({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else s.__isEmptyBrush?s.useStyle(k({},b)):s.useStyle(b),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(n,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;Ii(s,p,{labelFetcher:u,labelDataIndex:n,defaultText:P,inheritColor:x,defaultOpacity:b.opacity});function P(I){return D?e.getName(I):Za(e,I)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var R=s.ensureState("emphasis");R.style=l,s.ensureState("select").style=h,s.ensureState("blur").style=f;var L=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),Zr(this,v,c,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=at(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var u=a.getTextContent();u&&Bs(u,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Bs(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return Bv(e.getItemVisual(n,"symbolSize"))},t})(Tt);function uD(r,t){this.parent.drift(r,t)}function Al(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Kd(r){return r!=null&&!X(r)&&(r={isIgnore:r}),r||{}}function jd(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Wn(t),cursorStyle:t.get("cursor")}}var q0=(function(){function r(t){this.group=new Tt,this._SymbolCtor=t||Nv}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Kd(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,u=jd(t),l={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||n.removeAll(),t.diff(a).add(function(h){var v=f(h);if(Al(t,v,h,e)){var c=new o(t,h,u,l);c.setPosition(v),t.setItemGraphicEl(h,c),n.add(c)}}).update(function(h,v){var c=a.getItemGraphicEl(v),d=f(h);if(!Al(t,d,h,e)){n.remove(c);return}var p=t.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==p)n.remove(c),c=new o(t,h,u,l),c.setPosition(d);else{c.updateData(t,h,u,l);var y={x:d[0],y:d[1]};s?c.attr(y):It(c,y,i)}n.add(c),t.setItemGraphicEl(h,c)}).remove(function(h){var v=a.getItemGraphicEl(h);v&&v.fadeOut(function(){n.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=jd(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=Kd(n);function i(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(Al(e,o,a,n)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){Pi(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){e.remove(i)},n.hostModel)}):e.removeAll()},r})();function K0(r,t,e){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=lD(i,e),o=n.dim,s=i.dim,u=t.mapDimension(s),l=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=H(r.dimensions,function(d){return t.mapDimension(d)}),v=!1,c=t.getCalculationInfo("stackResultDimension");return qr(t,h[0])&&(v=!0,h[0]=c),qr(t,h[1])&&(v=!0,h[1]=c),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:u,baseDim:l,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function lD(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:lt(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function j0(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}var Q0=typeof Float32Array<"u",fD=Q0?Float32Array:Array;function fr(r){return F(r)?Q0?new Float32Array(r):r:new fD(r)}function hD(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function vD(r,t,e,n,i,a,o,s){for(var u=hD(r,t),l=[],f=[],h=[],v=[],c=[],d=[],p=[],g=K0(i,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<u.length;_++){var S=u[_],w=!0,b=void 0,x=void 0;switch(S.cmd){case"=":b=S.idx*2,x=S.idx1*2;var T=y[b],C=y[b+1],M=m[x],D=m[x+1];(isNaN(T)||isNaN(C))&&(T=M,C=D),l.push(T,C),f.push(M,D),h.push(e[b],e[b+1]),v.push(n[x],n[x+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var P=S.idx,R=g.dataDimsForPoint,L=i.dataToPoint([t.get(R[0],P),t.get(R[1],P)]);x=P*2,l.push(L[0],L[1]),f.push(m[x],m[x+1]);var I=j0(g,i,t,P);h.push(I[0],I[1]),v.push(n[x],n[x+1]),p.push(t.getRawIndex(P));break;case"-":w=!1}w&&(c.push(S),d.push(d.length))}d.sort(function(yt,Jt){return p[yt]-p[Jt]});for(var E=l.length,z=fr(E),O=fr(E),B=fr(E),V=fr(E),Y=[],_=0;_<d.length;_++){var U=d[_],et=_*2,ct=U*2;z[et]=l[ct],z[et+1]=l[ct+1],O[et]=f[ct],O[et+1]=f[ct+1],B[et]=h[ct],B[et+1]=h[ct+1],V[et]=v[ct],V[et+1]=v[ct+1],Y[_]=c[U]}return{current:z,next:O,stackedOnCurrent:B,stackedOnNext:V,status:Y}}var Dr=Math.min,Mr=Math.max;function En(r,t){return isNaN(r)||isNaN(t)}function lh(r,t,e,n,i,a,o,s,u){for(var l,f,h,v,c,d,p=e,g=0;g<n;g++){var y=t[p*2],m=t[p*2+1];if(p>=i||p<0)break;if(En(y,m)){if(u){p+=a;continue}break}if(p===e)r[a>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-l,S=m-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var w=p+a,b=t[w*2],x=t[w*2+1];b===y&&x===m&&g<n;)g++,w+=a,p+=a,b=t[w*2],x=t[w*2+1],y=t[p*2],m=t[p*2+1],_=y-l,S=m-f;var T=g+1;if(u)for(;En(b,x)&&T<n;)T++,w+=a,b=t[w*2],x=t[w*2+1];var C=.5,M=0,D=0,P=void 0,R=void 0;if(T>=n||En(b,x))c=y,d=m;else{M=b-l,D=x-f;var L=y-l,I=b-y,E=m-f,z=x-m,O=void 0,B=void 0;if(s==="x"){O=Math.abs(L),B=Math.abs(I);var V=M>0?1:-1;c=y-V*O*o,d=m,P=y+V*B*o,R=m}else if(s==="y"){O=Math.abs(E),B=Math.abs(z);var Y=D>0?1:-1;c=y,d=m-Y*O*o,P=y,R=m+Y*B*o}else O=Math.sqrt(L*L+E*E),B=Math.sqrt(I*I+z*z),C=B/(B+O),c=y-M*o*(1-C),d=m-D*o*(1-C),P=y+M*o*C,R=m+D*o*C,P=Dr(P,Mr(b,y)),R=Dr(R,Mr(x,m)),P=Mr(P,Dr(b,y)),R=Mr(R,Dr(x,m)),M=P-y,D=R-m,c=y-M*O/B,d=m-D*O/B,c=Dr(c,Mr(l,y)),d=Dr(d,Mr(f,m)),c=Mr(c,Dr(l,y)),d=Mr(d,Dr(f,m)),M=y-c,D=m-d,P=y+M*B/O,R=m+D*B/O}r.bezierCurveTo(h,v,c,d,y,m),h=P,v=R}else r.lineTo(y,m)}l=y,f=m,p+=a}return g}var J0=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),cD=(function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new J0},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&En(i[o*2-2],i[o*2-1]);o--);for(;a<o&&En(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=lh(e,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(e,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Bn.CMD,s,u,l=n==="x",f=[],h=0;h<a.length;){var v=a[h++],c=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(v){case o.M:s=a[h++],u=a[h++];break;case o.L:if(c=a[h++],d=a[h++],_=l?(e-s)/(c-s):(e-u)/(d-u),_<=1&&_>=0){var S=l?(d-u)*_+u:(c-s)*_+s;return l?[e,S]:[S,e]}s=c,u=d;break;case o.C:c=a[h++],d=a[h++],p=a[h++],g=a[h++],y=a[h++],m=a[h++];var w=l?Ls(s,c,p,y,e,f):Ls(u,d,g,m,e,f);if(w>0)for(var b=0;b<w;b++){var x=f[b];if(x<=1&&x>=0){var S=l?Ot(u,d,g,m,x):Ot(s,c,p,y,x);return l?[e,S]:[S,e]}}s=y,u=m;break}}},t})(ft),dD=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(J0),pD=(function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new dD},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,u=n.smoothMonotone;if(n.connectNulls){for(;s>0&&En(i[s*2-2],i[s*2-1]);s--);for(;o<s&&En(i[o*2],i[o*2+1]);o++);}for(;o<s;){var l=lh(e,i,o,s,s,1,n.smooth,u,n.connectNulls);lh(e,a,o+l-1,l,s,-1,n.stackedOnSmooth,u,n.connectNulls),o+=l+1,e.closePath()}},t})(ft);function Fv(){var r=gt();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var t_=gt(),gD=Fv(),Bt=(function(){function r(){this.group=new Tt,this.uid=Du("viewChart"),this.renderTask=Ma({plan:yD,reset:mD}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&Jd(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&Jd(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){Pi(this.group,t)},r.markUpdateMethod=function(t,e){t_(t).updateMethod=e},r.protoInitialize=(function(){var t=r.prototype;t.type="chart"})(),r})();function Qd(r,t,e){r&&qf(r)&&(t==="emphasis"?Ha:Wa)(r,e)}function Jd(r,t,e){var n=Nn(r,t),i=t&&t.highlightKey!=null?Cx(t.highlightKey):null;n!=null?A(Lt(n),function(a){Qd(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){Qd(a,e,i)})}jh(Bt);au(Bt);function yD(r){return gD(r.model)}function mD(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&t_(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,e,n,i),_D[u]}var _D={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};function e_(r,t,e,n,i){var a=r.getArea(),o=a.x,s=a.y,u=a.width,l=a.height,f=e.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 Ct({shape:{x:o,y:s,width:u,height:l}});if(t){var v=r.getBaseAxis(),c=v.isHorizontal(),d=v.inverse;c?(d&&(h.shape.x+=u),h.shape.width=0):(d||(h.shape.y+=l),h.shape.height=0);var p=K(i)?function(g){i(g,h)}:null;ae(h,{shape:{width:u,height:l,x:o,y:s}},e,null,n,p)}return h}function r_(r,t,e){var n=r.getArea(),i=bt(n.r0,1),a=bt(n.r,1),o=new Sr({shape:{cx:bt(r.cx,1),cy:bt(r.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,ae(o,{shape:{endAngle:n.endAngle,r:a}},e)}return o}function n_(r,t,e,n,i){if(r){if(r.type==="polar")return r_(r,t,e);if(r.type==="cartesian2d")return e_(r,t,e,n,i)}else return null;return null}function Eu(r,t){return r.type===t}function tp(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function ep(r){for(var t=1/0,e=1/0,n=-1/0,i=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(e=Math.min(s,e),i=Math.max(s,i))}return[[t,e],[n,i]]}function rp(r,t){var e=ep(r),n=e[0],i=e[1],a=ep(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function np(r){return lt(r)?r:r?.5:0}function SD(r,t,e){if(!e.valueDim)return[];for(var n=t.count(),i=fr(n*2),a=0;a<n;a++){var o=j0(e,r,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Ar(r,t,e,n,i){var a=e.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],u=0,l=[],f=[],h=[],v=[];if(i){for(u=0;u<r.length;u+=2){var c=t||r;!isNaN(c[u])&&!isNaN(c[u+1])&&v.push(r[u],r[u+1])}r=v}for(u=0;u<r.length-2;u+=2)switch(h[0]=r[u+2],h[1]=r[u+3],f[0]=r[u],f[1]=r[u+1],s.push(f[0],f[1]),n){case"end":l[o]=h[o],l[1-o]=f[1-o],s.push(l[0],l[1]);break;case"middle":var d=(f[o]+h[o])/2,p=[];l[o]=p[o]=d,l[1-o]=f[1-o],p[1-o]=h[1-o],s.push(l[0],l[1]),s.push(p[0],p[1]);break;default:l[o]=f[o],l[1-o]=h[1-o],s.push(l[0],l[1])}return s.push(r[u++],r[u++]),s}function bD(r,t){var e=[],n=r.length,i,a;function o(f,h,v){var c=f.coord,d=(v-c)/(h.coord-c),p=ev(d,[f.color,h.color]);return{coord:v,color:p}}for(var s=0;s<n;s++){var u=r[s],l=u.coord;if(l<0)i=u;else if(l>t){a?e.push(o(a,u,t)):i&&e.push(o(i,u,0),o(i,u,t));break}else i&&(e.push(o(i,u,0)),i=null),e.push(u),a=u}return e}function wD(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var u=t.getAxis(i),l=H(a.stops,function(_){return{coord:u.toGlobalCoord(u.dataToCoord(_.value)),color:_.color}}),f=l.length,h=a.outerColors.slice();f&&l[0].coord>l[f-1].coord&&(l.reverse(),h.reverse());var v=bD(l,i==="x"?e.getWidth():e.getHeight()),c=v.length;if(!c&&f)return l[0].coord<0?h[1]?h[1]:l[f-1].color:h[0]?h[0]:l[0].color;var d=10,p=v[0].coord-d,g=v[c-1].coord+d,y=g-p;if(y<.001)return"transparent";A(v,function(_){_.offset=(_.coord-p)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var m=new vv(0,0,0,0,v,!0);return m[i]=p,m[i+"2"]=g,m}}}function xD(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(i&&TD(a,t))){var o=t.mapDimension(a.dim),s={};return A(a.getViewLabels(),function(u){var l=a.scale.getRawOrdinalNumber(u.tickValue);s[l]=1}),function(u){return!s.hasOwnProperty(t.get(o,u))}}}}function TD(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Nv.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function CD(r,t){return isNaN(r)||isNaN(t)}function DD(r){for(var t=r.length/2;t>0&&CD(r[t*2-2],r[t*2-1]);t--);return t-1}function ip(r,t){return[r[t*2],r[t*2+1]]}function MD(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,u=-1,l=0;l<n;l++)if(o=r[l*2+i],!(isNaN(o)||isNaN(r[l*2+1-i]))){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){u=l;break}s=l,a=o}return{range:[s,u],t:(t-a)/(o-a)}}function i_(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<oe.length;t++)if(r.get([oe[t],"endLabel","show"]))return!0;return!1}function Ll(r,t,e,n){if(Eu(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},u=i_(n)?function(c,d){r._endLabelOnDuring(c,d,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),f=e_(t,e,n,function(){var c=r._endLabel;c&&e&&s.originalX!=null&&c.attr({x:s.originalX,y:s.originalY})},u);if(!n.get("clip",!0)){var h=f.shape,v=Math.max(h.width,h.height);l?(h.y-=v,h.height+=v*2):(h.x-=v,h.width+=v*2)}return u&&u(1,f),f}else return r_(t,e,n)}function AD(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),i=e.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var LD=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new Tt,n=new q0;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e,this._changePolyState=tt(this._changePolyState,this)},t.prototype.render=function(e,n,i){var a=e.coordinateSystem,o=this.group,s=e.getData(),u=e.getModel("lineStyle"),l=e.getModel("areaStyle"),f=s.getLayout("points")||[],h=a.type==="polar",v=this._coordSys,c=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!n.ssr&&e.get("animation"),m=!l.isEmpty(),_=l.get("origin"),S=K0(a,s,_),w=m&&SD(a,s,S),b=e.get("showSymbol"),x=e.get("connectNulls"),T=b&&!h&&xD(e,s,a),C=this._data;C&&C.eachItemGraphicEl(function(yt,Jt){yt.__temp&&(o.remove(yt),C.setItemGraphicEl(Jt,null))}),b||c.remove(),o.add(g);var M=h?!1:e.get("step"),D;a&&a.getArea&&e.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var P=wD(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&v.type===a.type&&M===this._step))b&&c.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(yt){return[f[yt*2],f[yt*2+1]]}}),y&&this._initSymbolLabelAnimation(s,a,D),M&&(w&&(w=Ar(w,f,a,M,x)),f=Ar(f,null,a,M,x)),d=this._newPolyline(f),m?p=this._newPolygon(f,w):p&&(g.remove(p),p=this._polygon=null),h||this._initOrUpdateEndLabel(e,a,Fn(P)),g.setClipPath(Ll(this,a,!0,e));else{m&&!p?p=this._newPolygon(f,w):p&&!m&&(g.remove(p),p=this._polygon=null),h||this._initOrUpdateEndLabel(e,a,Fn(P));var R=g.getClipPath();if(R){var L=Ll(this,a,!1,e);ae(R,{shape:L.shape},e)}else g.setClipPath(Ll(this,a,!0,e));b&&c.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(yt){return[f[yt*2],f[yt*2+1]]}}),(!tp(this._stackedOnPoints,w)||!tp(this._points,f))&&(y?this._doUpdateAnimation(s,w,a,i,M,_,x):(M&&(w&&(w=Ar(w,f,a,M,x)),f=Ar(f,null,a,M,x)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:w})))}var I=e.getModel("emphasis"),E=I.get("focus"),z=I.get("blurScope"),O=I.get("disabled");if(d.useStyle(it(u.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),Ya(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}at(d).seriesIndex=e.seriesIndex,Zr(d,E,z,O);var V=np(e.get("smooth")),Y=e.get("smoothMonotone");if(d.setShape({smooth:V,smoothMonotone:Y,connectNulls:x}),p){var U=s.getCalculationInfo("stackedOnSeries"),et=0;p.useStyle(it(l.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),U&&(et=np(U.get("smooth"))),p.setShape({smooth:V,stackedOnSmooth:et,smoothMonotone:Y,connectNulls:x}),Ya(p,e,"areaStyle"),at(p).seriesIndex=e.seriesIndex,Zr(p,E,z,O)}var ct=this._changePolyState;s.eachItemGraphicEl(function(yt){yt&&(yt.onHoverStateChange=ct)}),this._polyline.onHoverStateChange=ct,this._data=s,this._coordSys=a,this._stackedOnPoints=w,this._points=f,this._step=M,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){at(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,a){var o=e.getData(),s=Nn(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var u=o.getLayout("points"),l=o.getItemGraphicEl(s);if(!l){var f=u[s*2],h=u[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=e.get("zlevel")||0,c=e.get("z")||0;l=new Nv(o,s),l.x=f,l.y=h,l.setZ(v,c);var d=l.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=c,d.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else Bt.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=Nn(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var u=o.getItemGraphicEl(s);u&&(u.__temp?(o.setItemGraphicEl(s,null),this.group.remove(u)):u.downplay())}else Bt.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;od(this._polyline,e),n&&od(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new cD({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new pD({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),u=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var l=e.hostModel,f=l.get("animationDuration");K(f)&&(f=f(null));var h=l.get("animationDelay")||0,v=K(h)?h(null):h;e.eachItemGraphicEl(function(c,d){var p=c;if(p){var g=[c.x,c.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,w=n.pointToCoord(g);a?(y=S.startAngle,m=S.endAngle,_=-w[1]/180*Math.PI):(y=S.r0,m=S.r,_=w[0])}else{var b=i;a?(y=b.x,m=b.x+b.width,_=c.x):(y=b.y+b.height,m=b.y,_=c.y)}var x=m===y?0:(_-y)/(m-y);u&&(x=1-x);var T=K(h)?h(d):f*x+v,C=p.getSymbolPath(),M=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(i_(e)){var o=e.getData(),s=this._polyline,u=o.getLayout("points");if(!u){s.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new Pt({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=DD(u);f>=0&&(Ii(s,Wn(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?Z0(o,c):Za(o,h)},enableTextSetter:!0},AD(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,u){var l=this._endLabel,f=this._polyline;if(l){e<1&&a.originalX==null&&(a.originalX=l.x,a.originalY=l.y);var h=i.getLayout("points"),v=i.hostModel,c=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=u.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?p:0)*(m?-1:1),b=(y?0:-p)*(m?-1:1),x=y?"x":"y",T=MD(h,S,x),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!c){var P=ip(h,C[0]);l.attr({x:P[0]+w,y:P[1]+b}),o&&(D=v.getRawValue(C[0]))}else{var P=f.getPointOn(S,x);P&&l.attr({x:P[0]+w,y:P[1]+b});var R=v.getRawValue(C[0]),L=v.getRawValue(C[1]);o&&(D=ox(i,d,R,L,T.t))}a.lastFrameIndex=C[0]}else{var I=e===1||a.lastFrameIndex>0?C[0]:0,P=ip(h,I);o&&(D=v.getRawValue(I)),l.attr({x:P[0]+w,y:P[1]+b})}if(o){var E=wu(l);typeof E.setLabelText=="function"&&E.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,u){var l=this._polyline,f=this._polygon,h=e.hostModel,v=vD(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),c=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(d=Ar(v.stackedOnCurrent,v.current,i,o,u),c=Ar(v.current,null,i,o,u),g=Ar(v.stackedOnNext,v.next,i,o,u),p=Ar(v.next,null,i,o,u)),rp(c,p)>3e3||f&&rp(d,g)>3e3){l.stopAnimation(),l.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}l.shape.__points=v.current,l.shape.points=c;var y={shape:{points:p}};v.current!==c&&(y.shape.__points=v.next),l.stopAnimation(),It(l,y,h),f&&(f.setShape({points:c,stackedOnPoints:d}),f.stopAnimation(),It(f,{shape:{stackedOnPoints:g}},h),l.shape.points!==f.shape.points&&(f.shape.points=l.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var b=e.getItemGraphicEl(_[S].idx1);b&&m.push({el:b,ptIdx:S})}}l.animators&&l.animators.length&&l.animators[0].during(function(){f&&f.dirtyShape();for(var x=l.shape.__points,T=0;T<m.length;T++){var C=m[T].el,M=m[T].ptIdx*2;C.x=x[M],C.y=x[M+1],C.markRedraw()}})},t.prototype.remove=function(e){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(Bt);function PD(r,t){return{seriesType:r,plan:Fv(),reset:function(e){var n=e.getData(),i=e.coordinateSystem;if(e.pipelineContext,!!i){var a=H(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),o=a.length,s=n.getCalculationInfo("stackResultDimension");qr(n,a[0])&&(a[0]=s),qr(n,a[1])&&(a[1]=s);var u=n.getStore(),l=n.getDimensionIndex(a[0]),f=n.getDimensionIndex(a[1]);return o&&{progress:function(h,v){for(var c=h.end-h.start,d=fr(c*o),p=[],g=[],y=h.start,m=0;y<h.end;y++){var _=void 0;if(o===1){var S=u.get(l,y);_=i.dataToPoint(S,null,g)}else p[0]=u.get(l,y),p[1]=u.get(f,y),_=i.dataToPoint(p,null,g);d[m++]=_[0],d[m++]=_[1]}v.setLayout("points",d)}}}}}}var ID={average:function(r){for(var t=0,e=0,n=0;n<r.length;n++)isNaN(r[n])||(t+=r[n],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},RD=function(r){return Math.round(r.length/2)};function a_(r){return{seriesType:r,reset:function(t,e,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;W(a)?d=ID[a]:K(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/c,d,RD))}}}}}function eE(r){r.registerChartView(LD),r.registerSeriesModel(sD),r.registerLayout(PD("line")),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,a_("line"))}var fh="__ec_stack_";function o_(r){return r.get("stack")||fh+r.seriesIndex}function zv(r){return r.dim+r.index}function ED(r){var t=[],e=r.axis,n="axis0";if(e.type==="category"){for(var i=e.getBandWidth(),a=0;a<r.count;a++)t.push(it({bandWidth:i,axisKey:n,stackId:fh+a},r));for(var o=l_(t),s=[],a=0;a<r.count;a++){var u=o[n][fh+a];u.offsetCenter=u.offset+u.width/2,s.push(u)}return s}}function s_(r,t){var e=[];return t.eachSeriesByType(r,function(n){f_(n)&&e.push(n)}),e}function kD(r){var t={};A(r,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 e={};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))}e[n]=a}}return e}function u_(r){var t=kD(r),e=[];return A(r,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=pt(n.get("barWidth"),s),p=pt(n.get("barMaxWidth"),s),g=pt(n.get("barMinWidth")||(h_(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:zv(a),stackId:o_(n)})}),l_(e)}function l_(r){var t={};A(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",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 e={};return A(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var u=vt(a).length;s=Math.max(35-u*4,15)+"%"}var l=pt(s,o),f=pt(n.gap,1),h=n.remainedWidth,v=n.autoWidthCount,c=(h-l)/(v+(v-1)*f);c=Math.max(c,0),A(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;A(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;A(a,function(y,m){e[i][m]=e[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function OD(r,t,e){if(r&&t){var n=r[zv(t)];return n}}function BD(r,t){var e=s_(r,t),n=u_(e);A(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),u=o_(i),l=n[zv(s)][u],f=l.offset,h=l.width;a.setLayout({bandWidth:l.bandWidth,offset:f,size:h})})}function ND(r){return{seriesType:r,plan:Fv(),reset:function(t){if(f_(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),u=t.get("showBackground",!0),l=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=qr(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),c=FD(i,a),d=h_(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var w=_.count,b=d&&fr(w*3),x=d&&u&&fr(w*3),T=d&&fr(w),C=n.master.getRect(),M=v?C.width:C.height,D,P=S.getStore(),R=0;(D=_.next())!=null;){var L=P.get(h?g:o,D),I=P.get(s,D),E=c,z=void 0;h&&(z=+L-P.get(o,D));var O=void 0,B=void 0,V=void 0,Y=void 0;if(v){var U=n.dataToPoint([L,I]);if(h){var et=n.dataToPoint([z,I]);E=et[0]}O=E,B=U[1]+m,V=U[0]-E,Y=y,Math.abs(V)<p&&(V=(V<0?-1:1)*p)}else{var U=n.dataToPoint([I,L]);if(h){var et=n.dataToPoint([I,z]);E=et[1]}O=U[0]+m,B=E,V=y,Y=U[1]-E,Math.abs(Y)<p&&(Y=(Y<=0?-1:1)*p)}d?(b[R]=O,b[R+1]=B,b[R+2]=v?V:Y,x&&(x[R]=v?C.x:O,x[R+1]=v?B:C.y,x[R+2]=M),T[D]=D):S.setItemLayout(D,{x:O,y:B,width:V,height:Y}),R+=3}d&&S.setLayout({largePoints:b,largeDataIndices:T,largeBackgroundPoints:x,valueAxisHorizontal:v})}}}}}}function f_(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function h_(r){return r.pipelineContext&&r.pipelineContext.large}function FD(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var hh=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return Ei(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(i)A(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"},t})(Yt);Yt.registerClass(hh);var zD=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Ei(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=M0(hh.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t})(hh),Hs="\0__throttleOriginMethod",ap="\0__throttleRate",op="\0__throttleType";function Gv(r,t,e){var n,i=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.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||e;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 v_(r,t,e,n){var i=r[t];if(i){var a=i[Hs]||i,o=i[op],s=i[ap];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=Gv(a,e,n==="debounce"),i[Hs]=a,i[op]=n,i[ap]=e}return i}}function vh(r,t){var e=r[t];e&&e[Hs]&&(e.clear&&e.clear(),r[t]=e[Hs])}var GD=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),sp=(function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new GD},t.prototype.buildPath=function(e,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?(e.moveTo(p*o+i,g*o+a),e.arc(p*l+i,g*l+a,u,-Math.PI+f,f,!v)):e.moveTo(p*s+i,g*s+a),e.arc(i,a,s,f,h,!v),e.arc(y*l+i,m*l+a,u,h-Math.PI*2,h-Math.PI,!v),o!==0&&e.arc(i,a,o,h,f,v)},t})(ft);function VD(r,t){t=t||{};var e=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Ts(n,i,a);var s=r(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=e?Math.abs(v-c)/2:0,_=Math.cos,S=Math.sin,w=f+v*_(p),b=h+v*S(p),x="left",T="top";switch(s){case"startArc":w=f+(c-u)*_(y),b=h+(c-u)*S(y),x="center",T="top";break;case"insideStartArc":w=f+(c+u)*_(y),b=h+(c+u)*S(y),x="center",T="bottom";break;case"startAngle":w=f+d*_(p)+zo(p,u+m,!1),b=h+d*S(p)+Go(p,u+m,!1),x="right",T="middle";break;case"insideStartAngle":w=f+d*_(p)+zo(p,-u+m,!1),b=h+d*S(p)+Go(p,-u+m,!1),x="left",T="middle";break;case"middle":w=f+d*_(y),b=h+d*S(y),x="center",T="middle";break;case"endArc":w=f+(v+u)*_(y),b=h+(v+u)*S(y),x="center",T="bottom";break;case"insideEndArc":w=f+(v-u)*_(y),b=h+(v-u)*S(y),x="center",T="top";break;case"endAngle":w=f+d*_(g)+zo(g,u+m,!0),b=h+d*S(g)+Go(g,u+m,!0),x="left",T="middle";break;case"insideEndAngle":w=f+d*_(g)+zo(g,-u+m,!0),b=h+d*S(g)+Go(g,-u+m,!0),x="right",T="middle";break;default:return Ts(n,i,a)}return n=n||{},n.x=w,n.y=b,n.align=x,n.verticalAlign=T,n}}function HD(r,t,e,n){if(lt(n)){r.setTextConfig({rotation:n});return}else if(F(t)){r.setTextConfig({rotation:0});return}var i=r.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,u,l=e(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:r.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),r.setTextConfig({rotation:f})}function zo(r,t,e){return t*Math.sin(r)*(e?-1:1)}function Go(r,t,e){return t*Math.cos(r)*(e?1:-1)}function va(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;F(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:H(n,function(a){return $r(a,i)})}}var Pl=Math.max,Il=Math.min;function WD(r,t){var e=r.getArea&&r.getArea();if(Eu(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(e.x-=i,e.width+=i*2):(e.y-=i,e.height+=i*2)}}return e}var YD=(function(r){N(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,n,i,a){this._model=e,this._removeOnRenderedListener(i),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,n,i):this._renderNormal(e,n,i,a))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,n){this._progressiveEls=[],this._incrementalRenderLarge(e,n)},t.prototype.eachRendered=function(e){Pi(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e,n,i,a){var o=this.group,s=e.getData(),u=this._data,l=e.coordinateSystem,f=l.getBaseAxis(),h;l.type==="cartesian2d"?h=f.isHorizontal():l.type==="polar"&&(h=f.dim==="angle");var v=e.isAnimationEnabled()?e:null,c=UD(e,l);c&&this._enableRealtimeSort(c,s,i);var d=e.get("clip",!0)||c,p=WD(l,s);o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],w=this._backgroundEls,b=a&&a.isInitSort,x=a&&a.type==="changeAxisOrder";function T(D){var P=Vo[l.type](s,D),R=QD(l,h,P);return R.useStyle(m.getItemStyle()),l.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[D]=R,R}s.diff(u).add(function(D){var P=s.getItemModel(D),R=Vo[l.type](s,D,P);if(y&&T(D),!(!s.hasValue(D)||!vp[l.type](R))){var L=!1;d&&(L=up[l.type](p,R));var I=lp[l.type](e,s,D,R,h,v,f.model,!1,g);c&&(I.forceLabelAnimation=!0),cp(I,s,D,P,R,e,h,l.type==="polar"),b?I.attr({shape:R}):c?fp(c,v,I,R,D,h,!1,!1):ae(I,{shape:R},e,D),s.setItemGraphicEl(D,I),o.add(I),I.ignore=L}}).update(function(D,P){var R=s.getItemModel(D),L=Vo[l.type](s,D,R);if(y){var I=void 0;w.length===0?I=T(P):(I=w[P],I.useStyle(m.getItemStyle()),l.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[D]=I);var E=Vo[l.type](s,D),z=d_(h,E,l);It(I,{shape:z},v,D)}var O=u.getItemGraphicEl(P);if(!s.hasValue(D)||!vp[l.type](L)){o.remove(O);return}var B=!1;if(d&&(B=up[l.type](p,L),B&&o.remove(O)),O?mu(O):O=lp[l.type](e,s,D,L,h,v,f.model,!!O,g),c&&(O.forceLabelAnimation=!0),x){var V=O.getTextContent();if(V){var Y=wu(V);Y.prevValue!=null&&(Y.prevValue=Y.value)}}else cp(O,s,D,R,L,e,h,l.type==="polar");b?O.attr({shape:L}):c?fp(c,v,O,L,D,h,!0,x):It(O,{shape:L},e,D,null),s.setItemGraphicEl(D,O),O.ignore=B,o.add(O)}).remove(function(D){var P=u.getItemGraphicEl(D);P&&Ns(P,e,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new Tt);C.removeAll();for(var M=0;M<S.length;++M)C.add(S[M]);o.add(C),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,n,i){this._clear(),pp(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),pp(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&n_(e.coordinateSystem,!1,e),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,i){var a=this;if(n.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,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(e,n,i){var a=[];return e.each(e.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:H(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,i){for(var a=i.scale,o=e.mapDimension(i.dim),s=Number.MAX_VALUE,u=0,l=a.getOrdinalMeta().categories.length;u<l;++u){var f=e.rawIndexOf(o,a.getRawOrdinalNumber(u)),h=f<0?Number.MIN_VALUE:n(e.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,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(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,a){if(this._isOrderChangedWithinSameData(e,n,i)){var o=this._dataSort(e,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(e,n,i){var a=n.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Ns(a,e,at(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})(Bt),up={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,a=r.y+r.height,o=Pl(t.x,r.x),s=Il(t.x+t.width,i),u=Pl(t.y,r.y),l=Il(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,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var i=Il(t.r,r.r),a=Pl(t.r0,r.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},lp={cartesian2d:function(r,t,e,n,i,a,o,s,u){var l=new Ct({shape:k({},n),z2:1});if(l.__dataIndex=e,l.name="item",a){var f=l.shape,h=i?"height":"width";f[h]=0}return l},polar:function(r,t,e,n,i,a,o,s,u){var l=!i&&u?sp:Sr,f=new l({shape:n,z2:1});f.name="item";var h=c_(i);if(f.calculateTextPosition=VD(h,{isRoundCap:l===sp}),a){var v=f.shape,c=i?"r":"endAngle",d={};v[c]=i?n.r0:n.startAngle,d[c]=n[c],(s?It:ae)(f,{shape:d},a)}return f}};function UD(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function fp(r,t,e,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?It:ae)(e,{shape:u},t,i,null);var f=t?r.baseAxis.model:null;(o?It:ae)(e,{shape:l},f,i)}function hp(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var XD=["x","y","width","height"],$D=["cx","cy","r","startAngle","endAngle"],vp={cartesian2d:function(r){return!hp(r,XD)},polar:function(r){return!hp(r,$D)}},Vo={cartesian2d:function(r,t,e){var n=r.getItemLayout(t),i=e?qD(e,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(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function ZD(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function c_(r){return(function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}})(r)}function cp(r,t,e,n,i,a,o,s){var u=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=va(n.getModel("itemStyle"),f,!0);k(f,h),r.setShape(f)}}else{var l=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",l)}r.useStyle(u);var v=n.getShallow("cursor");v&&r.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=Wn(n);Ii(r,d,{labelFetcher:a,labelDataIndex:e,defaultText:Za(a.getData(),e),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:c});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,HD(r,g==="outside"?c:g,c_(o),n.get(["label","rotate"]))}lT(p,d,a.getRawValue(e),function(m){return Z0(t,m)});var y=n.getModel(["emphasis"]);Zr(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),Ya(r,n),ZD(i)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function qD(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.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 KD=(function(){function r(){}return r})(),dp=(function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new KD},t.prototype.buildPath=function(e,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],e.rect(s[0],s[1],u[0],u[1])},t})(ft);function pp(r,t,e,n){var i=r.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),u=r.getModel("backgroundStyle"),l=i.getLayout("largeBackgroundPoints");if(l){var f=new dp({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),e&&e.push(f)}var h=new dp({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,at(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",gp),h.on("mousemove",gp)),e&&e.push(h)}var gp=Gv(function(r){var t=this,e=jD(t,r.offsetX,r.offsetY);at(t).dataIndex=e>=0?e:null},30,!1);function jD(r,t,e){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],u=[],l=r.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]&&e>=s[1]&&e<=s[1]+u[1])return o[f]}return-1}function d_(r,t,e){if(Eu(e,"cartesian2d")){var n=t,i=e.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=e.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function QD(r,t,e){var n=r.type==="polar"?Sr:Ct;return new n({shape:d_(t,e,r),silent:!0,z2:0})}function rE(r){r.registerChartView(YD),r.registerSeriesModel(zD),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ut(BD,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ND("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,a_("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}function JD(r,t){function e(n,i){var a=[];return n.eachComponent({mainType:"series",subType:r,query:i},function(o){a.push(o.seriesIndex)}),a}A([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=k({},i),o.dispatchAction(k(i,{type:n[1],seriesIndex:e(a,i)}))})})}function ni(r,t,e,n,i){var a=r+t;e.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=Nn(h,i.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:F(v)?h.getName(v[0]):h.getName(v),selected:W(u)?u:k({},u)})}})}function tM(r,t,e){r.on("selectchanged",function(n){var i=e.getModel();n.isFromClick?(ni("map","selectchanged",t,i,n),ni("pie","selectchanged",t,i,n)):n.fromAction==="select"?(ni("map","selected",t,i,n),ni("pie","selected",t,i,n)):n.fromAction==="unselect"&&(ni("map","unselected",t,i,n),ni("pie","unselected",t,i,n))})}var yp=Math.PI*2,Ho=Math.PI/180;function p_(r,t){return zn(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function g_(r,t){var e=p_(r,t),n=r.get("center"),i=r.get("radius");F(i)||(i=[0,i]);var a=pt(e.width,t.getWidth()),o=pt(e.height,t.getHeight()),s=Math.min(a,o),u=pt(i[0],s/2),l=pt(i[1],s/2),f,h,v=r.coordinateSystem;if(v){var c=v.dataToPoint(n);f=c[0]||0,h=c[1]||0}else F(n)||(n=[n,n]),f=pt(n[0],a)+e.x,h=pt(n[1],o)+e.y;return{cx:f,cy:h,r0:u,r:l}}function eM(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=p_(n,e),s=g_(n,e),u=s.cx,l=s.cy,f=s.r,h=s.r0,v=-n.get("startAngle")*Ho,c=n.get("endAngle"),d=n.get("padAngle")*Ho;c=c==="auto"?v-yp:-c*Ho;var p=n.get("minAngle")*Ho,g=p+d,y=0;i.each(a,function(z){!isNaN(z)&&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 T=S?1:-1,C=[v,c],M=T*d/2;fm(C,!S),v=C[0],c=C[1];var D=y_(n);D.startAngle=v,D.endAngle=c,D.clockwise=S;var P=Math.abs(c-v),R=P,L=0,I=v;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(z,O){var B;if(isNaN(z)){i.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:u,cy:l,r0:h,r:w?NaN:f});return}w!=="area"?B=m===0&&b?_:z*_:B=P/y,B<g?(B=g,R-=g):L+=z;var V=I+T*B,Y=0,U=0;d>B?(Y=I+T*B/2,U=Y):(Y=I+M,U=V-M),i.setItemLayout(O,{angle:B,startAngle:Y,endAngle:U,clockwise:S,cx:u,cy:l,r0:h,r:w?xi(z,x,[h,f]):f}),I=V}),R<yp&&y)if(R<=.001){var E=P/y;i.each(a,function(z,O){if(!isNaN(z)){var B=i.getItemLayout(O);B.angle=E;var V=0,Y=0;E<d?(V=v+T*(O+1/2)*E,Y=V):(V=v+T*O*E+M,Y=v+T*(O+1)*E-M),B.startAngle=V,B.endAngle=Y}})}else _=R/L,I=v,i.each(a,function(z,O){if(!isNaN(z)){var B=i.getItemLayout(O),V=B.angle===g?g:z*_,Y=0,U=0;V<d?(Y=I+T*V/2,U=Y):(Y=I+M,U=I+T*V-M),B.startAngle=Y,B.endAngle=U,I+=T*V}})})}var y_=gt();function rM(r){return{seriesType:r,reset:function(t,e){var n=e.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 m_(r,t,e,n,i,a,o,s){var u=i-r,l=a-t,f=e-r,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]=r+d*f,g=o[1]=t+d*h;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}var Nr=new j,_t=new j,kt=new j,Fr=new j,$e=new j,Ws=[],Zt=new j;function nM(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Nr.fromArray(r[0]),_t.fromArray(r[1]),kt.fromArray(r[2]),j.sub(Fr,Nr,_t),j.sub($e,kt,_t);var e=Fr.len(),n=$e.len();if(!(e<.001||n<.001)){Fr.scale(1/e),$e.scale(1/n);var i=Fr.dot($e),a=Math.cos(t);if(a<i){var o=m_(_t.x,_t.y,kt.x,kt.y,Nr.x,Nr.y,Ws);Zt.fromArray(Ws),Zt.scaleAndAdd($e,o/Math.tan(Math.PI-t));var s=kt.x!==_t.x?(Zt.x-_t.x)/(kt.x-_t.x):(Zt.y-_t.y)/(kt.y-_t.y);if(isNaN(s))return;s<0?j.copy(Zt,_t):s>1&&j.copy(Zt,kt),Zt.toArray(r[1])}}}}function iM(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Nr.fromArray(r[0]),_t.fromArray(r[1]),kt.fromArray(r[2]),j.sub(Fr,_t,Nr),j.sub($e,kt,_t);var n=Fr.len(),i=$e.len();if(!(n<.001||i<.001)){Fr.scale(1/n),$e.scale(1/i);var a=Fr.dot(t),o=Math.cos(e);if(a<o){var s=m_(_t.x,_t.y,kt.x,kt.y,Nr.x,Nr.y,Ws);Zt.fromArray(Ws);var u=Math.PI/2,l=Math.acos($e.dot(t)),f=u+l-e;if(f>=u)j.copy(Zt,kt);else{Zt.scaleAndAdd($e,s/Math.tan(Math.PI/2-f));var h=kt.x!==_t.x?(Zt.x-_t.x)/(kt.x-_t.x):(Zt.y-_t.y)/(kt.y-_t.y);if(isNaN(h))return;h<0?j.copy(Zt,_t):h>1&&j.copy(Zt,kt)}Zt.toArray(r[1])}}}}function Rl(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);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?r.useStyle(s):a.style=s}function aM(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=Ms(n[0],n[1]),a=Ms(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=ss([],n[1],n[0],o/i),u=ss([],n[1],n[2],o/a),l=ss([],s,u,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),r.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function oM(r,t,e){var n=r.getTextGuideLine(),i=r.getTextContent();if(!i){n&&r.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,u=0;u<Es.length;u++){var l=Es[u],f=t[l],h=l==="normal";if(f){var v=f.get("show"),c=h?s:Q(i.states[l]&&i.states[l].ignore,s);if(c||!Q(v,o)){var d=h?n:n&&n.states[l];d&&(d.ignore=!0),n&&Rl(n,!0,l,f);continue}n||(n=new Li,r.setTextGuideLine(n),!h&&(s||!o)&&Rl(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),Rl(n,!1,l,f)}}if(n){it(n.style,e),n.style.fill=null;var p=a.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=aM}}function sM(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<oe.length;n++){var i=oe[n];e[i]=r.getModel([i,t])}return e}function uM(r){for(var t=[],e=0;e<r.length;e++){var n=r[e];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,u=i.style.margin||0,l=o.clone();l.applyTransform(a),l.x-=u/2,l.y-=u/2,l.width+=u,l.height+=u;var f=s?new Os(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:l,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function lM(r,t,e,n,i,a){var o=r.length;if(o<2)return;r.sort(function(b,x){return b.rect[t]-x.rect[t]});for(var s=0,u,l=!1,f=0;f<o;f++){var h=r[f],v=h.rect;u=v[t]-s,u<0&&(v[t]-=u,h.label[t]-=u,l=!0),s=v[t]+v[e]}var c=r[0],d=r[o-1],p,g;y(),p<0&&S(-p,.8),g<0&&S(g,.8),y(),m(p,g,1),m(g,p,-1),y(),p<0&&w(-p),g<0&&w(g);function y(){p=c.rect[t]-n,g=i-d.rect[t]-d.rect[e]}function m(b,x,T){if(b<0){var C=Math.min(x,-b);if(C>0){_(C*T,0,o);var M=C+b;M<0&&S(-M*T,1)}else S(-b*T,1)}}function _(b,x,T){b!==0&&(l=!0);for(var C=x;C<T;C++){var M=r[C],D=M.rect;D[t]+=b,M.label[t]+=b}}function S(b,x){for(var T=[],C=0,M=1;M<o;M++){var D=r[M-1].rect,P=Math.max(r[M].rect[t]-D[t]-D[e],0);T.push(P),C+=P}if(C){var R=Math.min(Math.abs(b)/C,x);if(b>0)for(var M=0;M<o-1;M++){var L=T[M]*R;_(L,0,M+1)}else for(var M=o-1;M>0;M--){var L=T[M-1]*R;_(-L,M,o)}}}function w(b){var x=b<0?-1:1;b=Math.abs(b);for(var T=Math.ceil(b/(o-1)),C=0;C<o-1;C++)if(x>0?_(T,0,C+1):_(-T,o-C-1,o),b-=T,b<=0)return}return l}function fM(r,t,e,n){return lM(r,"y","height",t,e)}function hM(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new ot(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i<r.length;i++){var a=r[i],o=a.axisAligned,s=a.localRect,u=a.transform,l=a.label,f=a.labelLine;e.copy(a.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=a.obb,v=!1,c=0;c<t.length;c++){var d=t[c];if(e.intersect(d.rect)){if(o&&d.axisAligned){v=!0;break}if(d.obb||(d.obb=new Os(d.localRect,d.transform)),h||(h=new Os(s,u)),h.intersect(d.obb)){v=!0;break}}}v?(n(l),f&&n(f)):(l.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}var vM=Math.PI/180;function mp(r,t,e,n,i,a,o,s,u,l){if(r.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-e),w=n+_.len,b=w*w,x=Math.sqrt(Math.abs((1-S*S/y)*b)),T=t+(x+_.len2)*i,C=T-_.label.x,M=_.targetTextWidth-C*i;__(_,M,!0),_.label.x=T}}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>e?y:g,w=Math.abs(_.label.y-e);if(w>=S.maxY){var b=_.label.x-t-_.len2*i,x=n+_.len,T=Math.abs(b)<x?Math.sqrt(w*w/(1-b*b/x/x)):x;S.rB=T,S.maxY=w}S.list.push(_)}f(g),f(y)}for(var v=r.length,c=0;c<v;c++)if(r[c].position==="outer"&&r[c].labelAlignTo==="labelLine"){var d=r[c].label.x-l;r[c].linePoints[1][0]+=d,r[c].label.x=l}fM(r,u,u+o)&&h(r)}function cM(r,t,e,n,i,a,o,s){for(var u=[],l=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,v=0;v<r.length;v++){var c=r[v].label;El(r[v])||(c.x<t?(f=Math.min(f,c.x),u.push(r[v])):(h=Math.max(h,c.x),l.push(r[v])))}for(var v=0;v<r.length;v++){var d=r[v];if(!El(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,__(d,g)}}mp(l,t,e,n,1,i,a,o,s,h),mp(u,t,e,n,-1,i,a,o,s,f);for(var v=0;v<r.length;v++){var d=r[v];if(!El(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 __(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var n=r.label,i=n.style,a=r.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||e){var h=a.height;if(l&&l.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-u);var v=n.getBoundingRect();n.setStyle("width",Math.ceil(v.width)),n.setStyle("backgroundColor",o)}else{var c=t-u,d=t<f?c:e?c>r.unconstrainedWidth?null:c:null;n.setStyle("width",d)}var p=n.getBoundingRect();a.width=p.width;var g=(n.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-h)/2}}}function El(r){return r.position==="center"}function dM(r){var t=r.getData(),e=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*vM,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),T=x.shape,C=x.getTextContent(),M=x.getTextGuideLine(),D=t.getItemModel(b),P=D.getModel("label"),R=P.get("position")||D.get(["emphasis","label","position"]),L=P.get("distanceToLabelLine"),I=P.get("alignTo"),E=pt(P.get("edgeDistance"),l),z=P.get("bleedMargin"),O=D.getModel("labelLine"),B=O.get("length");B=pt(B,l);var V=O.get("length2");if(V=pt(V,l),Math.abs(T.endAngle-T.startAngle)<o){A(C.states,c),C.ignore=!0,M&&(A(M.states,c),M.ignore=!0);return}if(d(C)){var Y=(T.startAngle+T.endAngle)/2,U=Math.cos(Y),et=Math.sin(Y),ct,yt,Jt,ve;n=T.cx,i=T.cy;var se=R==="inside"||R==="inner";if(R==="center")ct=T.cx,yt=T.cy,ve="center";else{var Rt=(se?(T.r+T.r0)/2*U:T.r*U)+n,wt=(se?(T.r+T.r0)/2*et:T.r*et)+i;if(ct=Rt+U*3,yt=wt+et*3,!se){var Z=Rt+U*(B+u-T.r),nt=wt+et*(B+u-T.r),Ge=Z+(U<0?-1:1)*V,Dt=nt;I==="edge"?ct=U<0?f+E:f+l-E:ct=Ge+(U<0?-L:L),yt=Dt,Jt=[[Rt,wt],[Z,nt],[Ge,Dt]]}ve=se?"center":I==="edge"?U>0?"right":"left":U>0?"left":"right"}var br=Math.PI,rr=0,Bi=P.get("rotate");if(lt(Bi))rr=Bi*(br/180);else if(R==="center")rr=0;else if(Bi==="radial"||Bi===!0){var hS=U<0?-Y+br:-Y;rr=hS}else if(Bi==="tangential"&&R!=="outside"&&R!=="outer"){var Xn=Math.atan2(U,et);Xn<0&&(Xn=br*2+Xn);var vS=et>0;vS&&(Xn=br+Xn),rr=Xn-br}if(a=!!rr,C.x=ct,C.y=yt,C.rotation=rr,C.setStyle({verticalAlign:"middle"}),se){C.setStyle({align:ve});var Gu=C.states.select;Gu&&(Gu.x+=C.x,Gu.y+=C.y)}else{var Ni=C.getBoundingRect().clone();Ni.applyTransform(C.getComputedTransform());var dc=(C.style.margin||0)+2.1;Ni.y-=dc/2,Ni.height+=dc,e.push({label:C,labelLine:M,position:R,len:B,len2:V,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new j(U,et),linePoints:Jt,textAlign:ve,labelDistance:L,labelAlignTo:I,edgeDistance:E,bleedMargin:z,rect:Ni,unconstrainedWidth:Ni.width,labelStyleWidth:C.style.width})}x.setTextConfig({inside:se})}}),!a&&r.get("avoidLabelOverlap")&&cM(e,n,i,u,l,v,f,h);for(var p=0;p<e.length;p++){var g=e[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(A(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?(A(m.states,c),m.ignore=!0):(nM(w,g.minTurnAngle),iM(w,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new j(w[0][0],w[0][1])})}}}var pM=(function(r){N(t,r);function t(e,n,i){var a=r.call(this)||this;a.z2=2;var o=new Pt;return a.setTextContent(o),a.updateData(e,n,i,!0),a}return t.prototype.updateData=function(e,n,i,a){var o=this,s=e.hostModel,u=e.getItemModel(n),l=u.getModel("emphasis"),f=e.getItemLayout(n),h=k(va(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?(ae(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,ae(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),ae(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,It(o,{shape:{endAngle:f.endAngle}},s,n))}else mu(o),It(o,{shape:h},s,n);o.useStyle(e.getItemVisual(n,"style")),Ya(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,e,n),o.ensureState("emphasis").shape=k({r:f.r+(l.get("scale")&&l.get("scaleSize")||0)},va(l.getModel("itemStyle"),f)),k(o.ensureState("select"),{x:p,y:g,shape:va(u.getModel(["select","itemStyle"]),f)}),k(o.ensureState("blur"),{shape:va(u.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&k(m.ensureState("select"),{x:p,y:g}),k(_.ensureState("select"),{x:p,y:g}),Zr(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e,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;Ii(a,Wn(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:l,defaultOpacity:f,defaultText:e.getFormattedLabel(i,"normal")||n.getName(i)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var v=e.get(["label","position"]);if(v!=="outside"&&v!=="outer")a.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new Li,this.setTextGuideLine(c)),oM(this,sM(o),{stroke:l,opacity:qe(s.get(["lineStyle","opacity"]),f,1)})}},t})(Sr),gM=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,i,a){var o=e.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&&e.get("showEmptyCircle")){var v=y_(e),c=new Sr({shape:k(g_(e,i),v)});c.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,u.add(c)}o.diff(s).add(function(d){var p=new pM(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);Ns(p,e,d)}).execute(),dM(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,u=Math.sqrt(o*o+s*s);return u<=a.r&&u>=a.r0}},t.type="pie",t})(Bt);function S_(r,t,e){t=F(t)&&{coordDimensions:t}||k({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=Cu(n,t).dimensions,a=new Ur(i,r);return a.initData(n,e),a}var b_=(function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r})(),yM=gt(),mM=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new b_(tt(this.getData,this),tt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return S_(this,{coordDimensions:["value"],encodeDefaulter:ut(yT,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),i=yM(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(u){o.push(u)}),a=i.seats=_m(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=a[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Ga(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(Yt);function _M(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(lt(o)&&!isNaN(o)&&o<0)})}}}function nE(r){r.registerChartView(gM),r.registerSeriesModel(mM),JD("pie",r.registerAction),r.registerLayout(ut(eM,"pie")),r.registerProcessor(rM("pie")),r.registerProcessor(_M("pie"))}var ii=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),SM=(function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new ii(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(a,o,t),this.handler.dispatchToElement(new ii(e,t),"drag",t.event);var s=this.handler.findHover(n,i,e).target,u=this._dropTarget;this._dropTarget=s,e!==s&&(u&&s!==u&&this.handler.dispatchToElement(new ii(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new ii(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new ii(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ii(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),bM=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,kl=[],wM=$.browser.firefox&&+$.browser.version.split(".")[0]<39;function ch(r,t,e,n){return e=e||{},n?_p(r,t,e):wM&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):_p(r,t,e),e}function _p(r,t,e){if($.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(A0(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(nh(kl,r,n,i)){e.zrX=kl[0],e.zrY=kl[1];return}}e.zrX=e.zrY=0}function Vv(r){return r||window.event}function ye(r,t,e){if(t=Vv(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&&ch(r,o,t,e)}else{ch(r,t,t,e);var a=xM(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&bM.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function xM(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function TM(r,t,e,n){r.addEventListener(t,e,n)}function CM(r,t,e,n){r.removeEventListener(t,e,n)}var ku=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Sp(r){return r.which===2||r.which===3}var DM=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o<s;o++){var u=i[o],l=ch(n,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in Ol)if(Ol.hasOwnProperty(e)){var n=Ol[e](this._track,t);if(n)return n}},r})();function bp(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function MM(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Ol={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,i=(r[e-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=bp(n)/bp(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=MM(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}},w_="silent";function AM(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:LM}}function LM(){ku(this.event)}var PM=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Fe),Qi=(function(){function r(t,e){this.x=t,this.y=e}return r})(),IM=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Bl=new ot(0,0,0,0),x_=(function(r){N(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Qi(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new PM,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new SM(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(IM,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=T_(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 Qi(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",e),this.dispatchToElement(u,"mousemove",e),l&&l!==s&&this.dispatchToElement(u,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Qi(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];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(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=AM(n,e,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(e,n,i){var a=this.storage.getDisplayList(),o=new Qi(e,n);if(wp(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new ot(e-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)&&(Bl.copy(v.getBoundingRect()),v.transform&&Bl.applyTransform(v.transform),Bl.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=e+g*Math.cos(y),_=n+g*Math.sin(y);if(wp(s,o,m,_,i),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new DM);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;e.gestureEvent=o;var s=new Qi;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(Fe);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){x_.prototype[r]=function(t){var e=t.zrX,n=t.zrY,i=T_(this,e,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(e,n),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Ms(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function RM(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?w_:!0}return!1}function wp(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=RM(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==w_)){t.target=o;break}}}function T_(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var C_=32,Ji=7;function EM(r){for(var t=0;r>=C_;)t|=r&1,r>>=1;return r+t}function xp(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i<e&&n(r[i],r[i-1])<0;)i++;kM(r,t,i)}else for(;i<e&&n(r[i],r[i-1])>=0;)i++;return i-t}function kM(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function Tp(r,t,e,n,i){for(n===t&&n++;n<e;n++){for(var a=r[n],o=t,s=n,u;o<s;)u=o+s>>>1,i(a,r[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;l>0;)r[o+l]=r[o+l-1],l--}r[o]=a}}function Nl(r,t,e,n,i,a){var o=0,s=0,u=1;if(a(r,t[e+i])>0){for(s=n-i;u<s&&a(r,t[e+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(r,t[e+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(r,t[e+f])>0?o=f+1:u=f}return u}function Fl(r,t,e,n,i,a){var o=0,s=0,u=1;if(a(r,t[e+i])<0){for(s=i+1;u<s&&a(r,t[e+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(r,t[e+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(r,t[e+f])<0?u=f:o=f+1}return u}function OM(r,t){var e=Ji,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=Fl(r[g],r,d,p,0,t);d+=m,p-=m,p!==0&&(y=Nl(r[d+p-1],r,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]=r[c+y];var m=0,_=p,S=c;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var w=e,b,x,T;;){b=0,x=0,T=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],x++,b=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],b++,x=0,--d===1){T=!0;break}while((b|x)<w);if(T)break;do{if(b=Fl(r[_],o,m,d,0,t),b!==0){for(y=0;y<b;y++)r[S+y]=o[m+y];if(S+=b,m+=b,d-=b,d<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(x=Nl(o[m],r,_,g,0,t),x!==0){for(y=0;y<x;y++)r[S+y]=r[_+y];if(S+=x,_+=x,g-=x,g===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}w--}while(b>=Ji||x>=Ji);if(T)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function v(c,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=c+d-1,_=g-1,S=p+g-1,w=0,b=0;if(r[S--]=r[m--],--d===0){for(w=S-(g-1),y=0;y<g;y++)r[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--)r[b+y]=r[w+y];r[S]=o[_];return}for(var x=e;;){var T=0,C=0,M=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){M=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){M=!0;break}while((T|C)<x);if(M)break;do{if(T=d-Fl(o[_],r,c,d,d-1,t),T!==0){for(S-=T,m-=T,d-=T,b=S+1,w=m+1,y=T-1;y>=0;y--)r[b+y]=r[w+y];if(d===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(C=g-Nl(r[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,b=S+1,w=_+1,y=0;y<C;y++)r[b+y]=o[w+y];if(g<=1){M=!0;break}}if(r[S--]=r[m--],--d===0){M=!0;break}x--}while(T>=Ji||C>=Ji);if(M)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),g===1){for(S-=d,m-=d,b=S+1,w=m+1,y=d-1;y>=0;y--)r[b+y]=r[w+y];r[S]=o[_]}else{if(g===0)throw new Error;for(w=S-(g-1),y=0;y<g;y++)r[w+y]=o[y]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function gs(r,t,e,n){e||(e=0),n||(n=r.length);var i=n-e;if(!(i<2)){var a=0;if(i<C_){a=xp(r,e,n,t),Tp(r,e,n,e+a,t);return}var o=OM(r,t),s=EM(i);do{if(a=xp(r,e,n,t),a<s){var u=i;u>s&&(u=s),Tp(r,e,e+u,e+a,t),a=u}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var Cp=!1;function zl(){Cp||(Cp=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Dp(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var BM=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Dp}return r.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,a=e.length;i<a;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,gs(n,Dp)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e?e=e.slice():e=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),u=0;u<s.length;u++){var l=s[u];t.__dirty&&(l.__dirty|=ue),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(zl(),f.z=0),isNaN(f.z2)&&(zl(),f.z2=0),isNaN(f.zlevel)&&(zl(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,e,n);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var i=rt(this._roots,t);i>=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),Ys;Ys=$.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};function di(){return new Date().getTime()}var NM=(function(r){N(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=di()-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,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Ys(n),!e._paused&&e.update())}Ys(n)},t.prototype.start=function(){this._running||(this._time=di(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=di(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=di()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new rv(e,n.loop);return this.addAnimator(i),i},t})(Fe),FM=300,Gl=$.domSupported,Vl=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=H(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}})(),Mp={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Ap=!1;function dh(r){var t=r.pointerType;return t==="pen"||t==="touch"}function zM(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Hl(r){r&&(r.zrByTouch=!0)}function GM(r,t){return ye(r.dom,new VM(r,t),!0)}function D_(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var VM=(function(){function r(t,e){this.stopPropagation=Mt,this.stopImmediatePropagation=Mt,this.preventDefault=Mt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),Le={mousedown:function(r){r=ye(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=ye(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=ye(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=ye(this.dom,r);var t=r.toElement||r.relatedTarget;D_(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Ap=!0,r=ye(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Ap||(r=ye(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=ye(this.dom,r),Hl(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Le.mousemove.call(this,r),Le.mousedown.call(this,r)},touchmove:function(r){r=ye(this.dom,r),Hl(r),this.handler.processGesture(r,"change"),Le.mousemove.call(this,r)},touchend:function(r){r=ye(this.dom,r),Hl(r),this.handler.processGesture(r,"end"),Le.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<FM&&Le.click.call(this,r)},pointerdown:function(r){Le.mousedown.call(this,r)},pointermove:function(r){dh(r)||Le.mousemove.call(this,r)},pointerup:function(r){Le.mouseup.call(this,r)},pointerout:function(r){dh(r)||Le.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){Le[r]=function(t){t=ye(this.dom,t),this.trigger(r,t)}});var ph={pointermove:function(r){dh(r)||ph.mousemove.call(this,r)},pointerup:function(r){ph.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function HM(r,t){var e=t.domHandlers;$.pointerEventsSupported?A(Vl.pointer,function(n){ys(t,n,function(i){e[n].call(r,i)})}):($.touchEventsSupported&&A(Vl.touch,function(n){ys(t,n,function(i){e[n].call(r,i),zM(t)})}),A(Vl.mouse,function(n){ys(t,n,function(i){i=Vv(i),t.touching||e[n].call(r,i)})}))}function WM(r,t){$.pointerEventsSupported?A(Mp.pointer,e):$.touchEventsSupported||A(Mp.mouse,e);function e(n){function i(a){a=Vv(a),D_(r,a.target)||(a=GM(r,a),t.domHandlers[n].call(r,a))}ys(t,n,i,{capture:!0})}}function ys(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,TM(r.domTarget,t,e,n)}function Wl(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&CM(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Lp=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),YM=(function(r){N(t,r);function t(e,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Lp(e,Le),Gl&&(i._globalHandlerScope=new Lp(document,ph)),HM(i,i._localHandlerScope),i}return t.prototype.dispose=function(){Wl(this._localHandlerScope),Gl&&Wl(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Gl&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?WM(this,n):Wl(n)}},t})(Fe);/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var ms={},Mn={};function UM(r){delete Mn[r]}function XM(r){if(!r)return!1;if(typeof r=="string")return Na(r,1)<Hf;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,i=0;i<n;i++)e+=Na(t[i].color,1);return e/=n,e<Hf}return!1}var $M=(function(){function r(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new BM,o=n.renderer||"canvas";ms[o]||(o=vt(ms)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new ms[o](e,a,n,t),u=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!$.node&&!$.worker&&!u?new YM(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?$.touchEventsSupported:!!f,v=44,c;h&&(c=Q(n.pointerSize,v)),this.handler=new x_(a,s,l,s.root,c),this.animation=new NM({stage:{update:u?null:function(){return i._flush(!0)}}}),u||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=XM(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,n=di();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=di();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Tt&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,UM(this.id))},r})();function gh(r,t){var e=new $M($h(),r,t);return Mn[e.id]=e,e}function ZM(r){r.dispose()}function qM(){for(var r in Mn)Mn.hasOwnProperty(r)&&Mn[r].dispose();Mn={}}function KM(r){return Mn[r]}function M_(r,t){ms[r]=t}var yh;function jM(r){if(typeof yh=="function")return yh(r)}function A_(r){yh=r}var QM="5.6.1";const iE=Object.freeze(Object.defineProperty({__proto__:null,dispose:ZM,disposeAll:qM,getElementSSRData:jM,getInstance:KM,init:gh,registerPainter:M_,registerSSRDataGetter:A_,version:QM},Symbol.toStringTag,{value:"Module"}));var L_="";typeof navigator<"u"&&(L_=navigator.platform||"");var ai="rgba(0, 0, 0, 0.2)";const JM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ai,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ai,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ai,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ai,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ai,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ai,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:L_.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 tA=q();function eA(r,t,e){var n=tA.get(t);if(!n)return e;var i=n(r);return i?e.concat(i):e}var Wo,ta,Pp,Ip="\0_ec_inner",rA=1,Hv=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new mt(a),this._locale=new mt(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){var a=kp(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,kp(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?Pp(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var u=a.getMediaOption(this);u.length&&A(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=q(),l=n&&n.replaceMergeMainTypeMap;gT(this),A(e,function(h,v){h!=null&&(ht.hasClass(v)?v&&(s.push(v),u.set(v,!0)):i[v]=i[v]==null?J(h):st(i[v],h,!0))}),l&&l.each(function(h,v){ht.hasClass(v)&&!u.get(v)&&(s.push(v),u.set(v,!0))}),ht.topologicalTravel(s,ht.getAllClassMainTypes(),f,this);function f(h){var v=eA(this,h,Lt(e[h])),c=a.get(h),d=c?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=Zw(c,v,d);ex(p,h,ht),i[h]=null,a.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;A(p,function(S,w){var b=S.existing,x=S.newOption;if(!x)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var T=h==="series",C=ht.getClass(h,S.keyInfo.subType,!T);if(!C)return;if(h==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===C)b.name=S.keyInfo.name,b.mergeOption(x,this),b.optionUpdated(x,!1);else{var M=k({componentIndex:w},S.keyInfo);b=new C(x,this,this,M),k(b,M),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"&&Wo(this)}this._seriesIndices||Wo(this)},t.prototype.getOption=function(){var e=J(this.option);return A(e,function(n,i){if(ht.hasClass(i)){for(var a=Lt(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!Va(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[Ip],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var i=this._componentsMap.get(e);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(e){var n=e.mainType;if(!n)return[];var i=e.index,a=e.id,o=e.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var u;return i!=null?(u=[],A(Lt(i),function(l){s[l]&&u.push(s[l])})):a!=null?u=Rp("id",a,s):o!=null?u=Rp("name",o,s):u=St(s,function(l){return!!l}),Ep(u,e)},t.prototype.findComponents=function(e){var n=e.query,i=e.mainType,a=s(n),o=a?this.queryComponents(a):St(this._componentsMap.get(i),function(l){return!!l});return u(Ep(o,e));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 e.filter?St(l,e.filter):l}},t.prototype.eachComponent=function(e,n,i){var a=this._componentsMap;if(K(e)){var o=n,s=e;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=W(e)?a.get(e):X(e)?this.findComponents(e):null,l=0;u&&l<u.length;l++){var f=u[l];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=Oe(e,null);return St(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return St(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return St(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){ta(this),A(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];e.call(n,a,i)},this)},t.prototype.eachRawSeries=function(e,n){A(this._componentsMap.get("series"),function(i){i&&e.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,i){ta(this),A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,n,i){return A(this.getSeriesByType(e),n,i)},t.prototype.isSeriesFiltered=function(e){return ta(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){ta(this);var i=[];A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=q(i)},t.prototype.restoreData=function(e){Wo(this);var n=this._componentsMap,i=[];n.each(function(a,o){ht.hasClass(o)&&i.push(o)}),ht.topologicalTravel(i,ht.getAllClassMainTypes(),function(a){A(n.get(a),function(o){o&&(a!=="series"||!nA(o,e))&&o.restoreData()})})},t.internalField=(function(){Wo=function(e){var n=e._seriesIndices=[];A(e._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),e._seriesIndicesMap=q(n)},ta=function(e){},Pp=function(e,n){e.option={},e.option[Ip]=rA,e._componentsMap=q({series:[]}),e._componentsCount=q();var i=n.aria;X(i)&&i.enabled==null&&(i.enabled=!0),iA(n,e._theme.option),st(n,JM,!1),e._mergeOption(n,null)}})(),t})(mt);function nA(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,i=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||i!=null&&r.name!==i}}function iA(r,t){var e=r.color&&!r.colorLayer;A(t,function(n,i){i==="colorLayer"&&e||ht.hasClass(i)||(typeof n=="object"?r[i]=r[i]?st(r[i],n,!1):J(n):r[i]==null&&(r[i]=n))})}function Rp(r,t,e){if(F(t)){var n=q();return A(t,function(a){if(a!=null){var o=Oe(a,null);o!=null&&n.set(a,!0)}}),St(e,function(a){return a&&n.get(a[r])})}else{var i=Oe(t,null);return St(e,function(a){return a&&i!=null&&a[r]===i})}}function Ep(r,t){return t.hasOwnProperty("subType")?St(r,function(e){return e&&e.subType===t.subType}):r}function kp(r){var t=q();return r&&A(Lt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Ut(Hv,Ev);var aA=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],P_=(function(){function r(t){A(aA,function(e){this[e]=tt(t[e],t)},this)}return r})(),oA=/^(min|max)?(.+)$/,sA=(function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(A(Lt(t.series),function(o){o&&o.data&&jt(o.data)&&ws(o.data)}),A(Lt(t.dataset),function(o){o&&o.source&&jt(o.source)&&ws(o.source)})),t=J(t);var i=this._optionBackup,a=uA(t,e,!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},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],J(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=J(n[i.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=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++)lA(i[u].query,e,n)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!hA(o,this._currentMediaIndices)&&(s=H(o,function(f){return J(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},r})();function uA(r,t,e){var n=[],i,a,o=r.baseOption,s=r.timeline,u=r.options,l=r.media,f=!!r.media,h=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&F(l)&&A(l,function(c){c&&c.option&&(c.query?n.push(c):i||(i=c))}),v(a),A(u,function(c){return v(c)}),A(n,function(c){return v(c.option)});function v(c){A(t,function(d){d(c,e)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:i,mediaList:n}}function lA(r,t,e){var n={width:t,height:e,aspectratio:t/e},i=!0;return A(r,function(a,o){var s=o.match(oA);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();fA(n[l],a,u)||(i=!1)}}),i}function fA(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function hA(r,t){return r.join(",")===t.join(",")}var De=A,qa=X,Op=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Yl(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=Op.length;e<n;e++){var i=Op[e],a=t.normal,o=t.emphasis;a&&a[i]&&(r[i]=r[i]||{},r[i].normal?st(r[i].normal,a[i]):r[i].normal=a[i],a[i]=null),o&&o[i]&&(r[i]=r[i]||{},r[i].emphasis?st(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function Vt(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,i=r[t].emphasis;n&&(e?(r[t].normal=r[t].emphasis=null,it(r[t],n)):r[t]=n),i&&(r.emphasis=r.emphasis||{},r.emphasis[t]=i,i.focus&&(r.emphasis.focus=i.focus),i.blurScope&&(r.emphasis.blurScope=i.blurScope))}}function ca(r){Vt(r,"itemStyle"),Vt(r,"lineStyle"),Vt(r,"areaStyle"),Vt(r,"label"),Vt(r,"labelLine"),Vt(r,"upperLabel"),Vt(r,"edgeLabel")}function xt(r,t){var e=qa(r)&&r[t],n=qa(e)&&e.textStyle;if(n)for(var i=0,a=rd.length;i<a;i++){var o=rd[i];n.hasOwnProperty(o)&&(e[o]=n[o])}}function me(r){r&&(ca(r),xt(r,"label"),r.emphasis&&xt(r.emphasis,"label"))}function vA(r){if(qa(r)){Yl(r),ca(r),xt(r,"label"),xt(r,"upperLabel"),xt(r,"edgeLabel"),r.emphasis&&(xt(r.emphasis,"label"),xt(r.emphasis,"upperLabel"),xt(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Yl(t),me(t));var e=r.markLine;e&&(Yl(e),me(e));var n=r.markArea;n&&me(n);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var a=r.links||r.edges;if(a&&!jt(a))for(var o=0;o<a.length;o++)me(a[o]);A(r.categories,function(l){ca(l)})}if(i&&!jt(i))for(var o=0;o<i.length;o++)me(i[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)me(s[o]);if(e=r.markLine,e&&e.data)for(var u=e.data,o=0;o<u.length;o++)F(u[o])?(me(u[o][0]),me(u[o][1])):me(u[o]);r.type==="gauge"?(xt(r,"axisLabel"),xt(r,"title"),xt(r,"detail")):r.type==="treemap"?(Vt(r.breadcrumb,"itemStyle"),A(r.levels,function(l){ca(l)})):r.type==="tree"&&ca(r.leaves)}}function sr(r){return F(r)?r:r?[r]:[]}function Bp(r){return(F(r)?r[0]:r)||{}}function cA(r,t){De(sr(r.series),function(n){qa(n)&&vA(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),De(e,function(n){De(sr(r[n]),function(i){i&&(xt(i,"axisLabel"),xt(i.axisPointer,"label"))})}),De(sr(r.parallel),function(n){var i=n&&n.parallelAxisDefault;xt(i,"axisLabel"),xt(i&&i.axisPointer,"label")}),De(sr(r.calendar),function(n){Vt(n,"itemStyle"),xt(n,"dayLabel"),xt(n,"monthLabel"),xt(n,"yearLabel")}),De(sr(r.radar),function(n){xt(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(sr(r.geo),function(n){qa(n)&&(me(n),De(sr(n.regions),function(i){me(i)}))}),De(sr(r.timeline),function(n){me(n),Vt(n,"label"),Vt(n,"itemStyle"),Vt(n,"controlStyle",!0);var i=n.data;F(i)&&A(i,function(a){X(a)&&(Vt(a,"label"),Vt(a,"itemStyle"))})}),De(sr(r.toolbox),function(n){Vt(n,"iconStyle"),De(n.feature,function(i){Vt(i,"iconStyle")})}),xt(Bp(r.axisPointer),"label"),xt(Bp(r.tooltip).axisPointer,"label")}function dA(r,t){for(var e=t.split(","),n=r,i=0;i<e.length&&(n=n&&n[e[i]],n!=null);i++);return n}function pA(r,t,e,n){for(var i=t.split(","),a=r,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]]=e)}function Np(r){r&&A(gA,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var gA=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],yA=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ul=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ea(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Ul.length;e++){var n=Ul[e][1],i=Ul[e][0];t[n]!=null&&(t[i]=t[n])}}function Fp(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function zp(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function mA(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function I_(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&I_(r[e].children,t)}function R_(r,t){cA(r,t),r.series=Lt(r.series),A(r.series,function(e){if(X(e)){var n=e.type;if(n==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(n==="pie"||n==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),Fp(e.label);var i=e.data;if(i&&!jt(i))for(var a=0;a<i.length;a++)Fp(i[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var o=dA(e,"pointer.color");o!=null&&pA(e,"itemStyle.color",o)}else if(n==="bar"){ea(e),ea(e.backgroundStyle),ea(e.emphasis);var i=e.data;if(i&&!jt(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(ea(i[a]),ea(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),zp(e),I_(e.data,zp)}else n==="graph"||n==="sankey"?mA(e):n==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&it(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Np(e)}}),r.dataRange&&(r.visualMap=r.dataRange),A(yA,function(e){var n=r[e];n&&(F(n)||(n=[n]),A(n,function(i){Np(i)}))})}function _A(r){var t=q();r.eachSeries(function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=e.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:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(SA)}function SA(r){A(r,function(t,e){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=e-1;g>=0;g--){var y=r[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=Hw(v,m),p=m;break}}}return n[0]=v,n[1]=p,n})})}var he=(function(){function r(){this.group=new Tt,this.uid=Du("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r})();jh(he);au(he);var Gp=gt(),Vp={itemStyle:Ea(a0,!0),lineStyle:Ea(i0,!0)},bA={lineStyle:"stroke",itemStyle:"fill"};function E_(r,t){var e=r.visualStyleMapper||Vp[t];return e||(console.warn("Unknown style type '"+t+"'."),Vp.itemStyle)}function k_(r,t){var e=r.visualDrawType||bA[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var wA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=E_(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var u=k_(r,n),l=o[u],f=K(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[u]||(o[u]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||K(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||K(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",u),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var p=r.getDataParams(d),g=k({},o);g[u]=f(p),c.setItemVisual(d,"style",g)}}}},ra=new mt,xA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=E_(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){ra.option=u[n];var l=i(ra),f=o.ensureUniqueItemVisual(s,"style");k(f,l),ra.option.decal&&(o.setItemVisual(s,"decal",ra.option.decal),ra.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},TA={performRawSeries:!0,overallReset:function(r){var t=q();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Gp(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=Gp(e).scope,s=e.visualStyleAccessPath||"itemStyle",u=k_(e,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]=e.getColorFromPalette(c,o,d)}})}})}},Yo=Math.PI;function CA(r,t){t=t||{},it(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Tt,n=new Ct({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new Pt({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 Ct({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new fo({shape:{startAngle:-Yo/2,endAngle:-Yo/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:Yo*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Yo*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(r.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=r.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:r.getWidth(),height:r.getHeight()})},e.resize(),e}var O_=(function(){function r(t,e,n,i){this._stageTaskMap=q(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&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}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.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}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=q();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}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;A(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";Ne(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;A(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&&e.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},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=q(),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)||Ma({plan:PA,reset:IA,count:EA}));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)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||Ma({reset:DA});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=q(),l=t.seriesType,f=t.getTargetSeries,h=!0,v=!1,c="";Ne(!t.createOnAllSeries,c),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):(h=!1,A(n.getSeries(),d));function d(p){var g=p.uid,y=u.set(g,s&&s.get(g)||(v=!0,Ma({reset:MA,onDirty:LA})));y.context={model:p,overallProgress:h},y.agent=o,y.__block=h,a._pipe(p,y)}v&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return K(t)&&(t={overallReset:t,seriesType:kA(t)}),t.uid=Du("stageHandler"),e&&(t.visualType=e),t},r})();function DA(r){r.overallReset(r.ecModel,r.api,r.payload)}function MA(r){return r.overallProgress&&AA}function AA(){this.agent.dirty(),this.getDownstream().dirty()}function LA(){this.agent&&this.agent.dirty()}function PA(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function IA(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Lt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?H(t,function(e,n){return B_(n)}):RA}var RA=B_(0);function B_(r){return function(t,e){var n=e.data,i=e.resetDefines[r];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 EA(r){return r.data.count()}function kA(r){Us=null;try{r(Ka,N_)}catch{}return Us}var Ka={},N_={},Us;F_(Ka,Hv);F_(N_,P_);Ka.eachSeriesByType=Ka.eachRawSeriesByType=function(r){Us=r};Ka.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Us=r.subType)};function F_(r,t){for(var e in t.prototype)r[e]=Mt}var Hp=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const OA={color:Hp,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Hp]};var zt="#B9B8CE",Wp="#100C2A",Uo=function(){return{axisLine:{lineStyle:{color:zt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Yp=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],z_={darkMode:!0,color:Yp,backgroundColor:Wp,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:zt},pageTextStyle:{color:zt}},textStyle:{color:zt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:zt}},dataZoom:{borderColor:"#71708A",textStyle:{color:zt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:zt}},timeline:{lineStyle:{color:zt},label:{color:zt},controlStyle:{color:zt,borderColor:zt}},calendar:{itemStyle:{color:Wp},dayLabel:{color:zt},monthLabel:{color:zt},yearLabel:{color:zt}},timeAxis:Uo(),logAxis:Uo(),valueAxis:Uo(),categoryAxis:Uo(),line:{symbol:"circle"},graph:{color:Yp},gauge:{title:{color:zt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:zt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};z_.categoryAxis.splitLine.show=!1;var BA=(function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},i={};if(W(t)){var a=Ze(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(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"&&(e.mainType=d,e[v.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){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=e.cptQuery,l=e.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,e.otherQuery,i,a));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),mh=["symbol","symbolSize","symbolRotate","symbolOffset"],Up=mh.concat(["symbolKeepAspect"]),NA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<mh.length;o++){var s=mh[o],u=r.get(s);K(u)?(a=!0,i[s]=u):n[s]=u}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(k({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var l=vt(i);function f(h,v){for(var c=r.getRawValue(v),d=r.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}}},FA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<Up.length;s++){var u=Up[s],l=o.getShallow(u,!0);l!=null&&i.setItemVisual(a,u,l)}}return{dataEach:e.hasItemOption?n:null}}};function zA(r,t,e){switch(e){case"color":var n=r.getItemVisual(t,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function G_(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function da(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var GA=Math.round(Math.random()*9),VA=typeof Object.defineProperty=="function",HA=(function(){function r(){this._id="__ec_inner_"+GA++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var n=this._guard(t);return VA?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r})();function An(r){return isFinite(r)}function WA(r,t,e){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*e.width+e.x,i=i*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),n=An(n)?n:0,i=An(i)?i:1,a=An(a)?a:0,o=An(o)?o:0;var s=r.createLinearGradient(n,a,i,o);return s}function YA(r,t,e){var n=e.width,i=e.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+e.x,s=s*i+e.y,u=u*a),o=An(o)?o:.5,s=An(s)?s:.5,u=u>=0&&An(u)?u:.5;var l=r.createRadialGradient(o,s,0,o,s,u);return l}function _h(r,t,e){for(var n=t.type==="radial"?YA(r,t,e):WA(r,t,e),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function UA(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function Xo(r){return parseInt(r,10)}function $o(r,t,e){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[n]!=null&&e[n]!=="auto")return parseFloat(e[n]);var s=document.defaultView.getComputedStyle(r);return(r[i]||Xo(s[n])||Xo(r.style[n]))-(Xo(s[a])||0)-(Xo(s[o])||0)|0}function XA(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:lt(r)?[r]:F(r)?r:null}function V_(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&XA(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=H(e,function(a){return a/i}),n/=i)}return[e,n]}var $A=new Bn(!0);function Xs(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Xp(r){return typeof r=="string"&&r!=="none"}function $s(r){var t=r.fill;return t!=null&&t!=="none"}function $p(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function Zp(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function Sh(r,t,e){var n=Xy(t.image,t.__image,e);if(ou(n)){var i=r.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)*Hy),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function ZA(r,t,e,n){var i,a=Xs(e),o=$s(e),s=e.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||$A,h=t.__dirty;if(!n){var v=e.fill,c=e.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?_h(r,v,b):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=h?_h(r,c,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?Sh(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(w=h||!t.__canvasStrokePattern?Sh(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(w?r.strokeStyle=w:a=!1)}var x=t.getGlobalScale();f.setScale(x[0],x[1],t.segmentIgnoreThreshold);var T,C;r.setLineDash&&e.lineDash&&(i=V_(t),T=i[0],C=i[1]);var M=!0;(l||h&vi)&&(f.setDPR(r.dpr),u?f.setContext(null):(f.setContext(r),M=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),M&&f.rebuildPath(r,u?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),n||(e.strokeFirst?(a&&Zp(r,e),o&&$p(r,e)):(o&&$p(r,e),a&&Zp(r,e))),T&&r.setLineDash([])}function qA(r,t,e){var n=t.__image=Xy(e.image,t.__image,t,t.onload);if(!(!n||!ou(n))){var i=e.x||0,a=e.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),e.sWidth&&e.sHeight){var l=e.sx||0,f=e.sy||0;r.drawImage(n,l,f,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var l=e.sx,f=e.sy,h=o-l,v=s-f;r.drawImage(n,l,f,h,v,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function KA(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||On,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=V_(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Xs(e)&&r.strokeText(i,e.x,e.y),$s(e)&&r.fillText(i,e.x,e.y)):($s(e)&&r.fillText(i,e.x,e.y),Xs(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var qp=["shadowBlur","shadowOffsetX","shadowOffsetY"],Kp=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function H_(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){ie(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?In.opacity:o}(n||t.blend!==e.blend)&&(a||(ie(r,i),a=!0),r.globalCompositeOperation=t.blend||In.blend);for(var s=0;s<qp.length;s++){var u=qp[s];(n||t[u]!==e[u])&&(a||(ie(r,i),a=!0),r[u]=r.dpr*(t[u]||0))}return(n||t.shadowColor!==e.shadowColor)&&(a||(ie(r,i),a=!0),r.shadowColor=t.shadowColor||In.shadowColor),a}function jp(r,t,e,n,i){var a=ja(t,i.inHover),o=n?null:e&&ja(e,i.inHover)||{};if(a===o)return!1;var s=H_(r,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(ie(r,i),s=!0),Xp(a.fill)&&(r.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(ie(r,i),s=!0),Xp(a.stroke)&&(r.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(ie(r,i),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==l&&(s||(ie(r,i),s=!0),r.lineWidth=l)}for(var f=0;f<Kp.length;f++){var h=Kp[f],v=h[0];(n||a[v]!==o[v])&&(s||(ie(r,i),s=!0),r[v]=a[v]||h[1])}return s}function jA(r,t,e,n,i){return H_(r,ja(t,i.inHover),e&&ja(e,i.inHover),n,i)}function W_(r,t){var e=t.transform,n=r.dpr||1;e?r.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):r.setTransform(n,0,0,n,0,0)}function QA(r,t,e){for(var n=!1,i=0;i<r.length;i++){var a=r[i];n=n||a.isZeroArea(),W_(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=n}function JA(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var Qp=1,Jp=2,tg=3,eg=4;function tL(r){var t=$s(r),e=Xs(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function ie(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function ja(r,t){return t&&r.__hoverStyle||r.style}function Y_(r,t){Ln(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ln(r,t,e,n){var i=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~ue,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,u=!1;if((!o||UA(a,o))&&(o&&o.length&&(ie(r,e),r.restore(),u=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(ie(r,e),r.save(),QA(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=e.prevEl;l||(u=s=!0);var f=t instanceof ft&&t.autoBatch&&tL(t.style);s||JA(i,l.transform)?(ie(r,e),W_(r,t)):f||ie(r,e);var h=ja(t,e.inHover);t instanceof ft?(e.lastDrawType!==Qp&&(u=!0,e.lastDrawType=Qp),jp(r,t,l,u,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),ZA(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof Rs?(e.lastDrawType!==tg&&(u=!0,e.lastDrawType=tg),jp(r,t,l,u,e),KA(r,t,h)):t instanceof Je?(e.lastDrawType!==Jp&&(u=!0,e.lastDrawType=Jp),jA(r,t,l,u,e),qA(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==eg&&(u=!0,e.lastDrawType=eg),eL(r,t,e)),f&&n&&ie(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function eL(r,t,e){var n=t.getDisplayables(),i=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var u=n[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),Ln(r,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(),Ln(r,u,a,l===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var Xl=new HA,rg=new io(100),ng=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Zs(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";r.dirty&&Xl.delete(r);var a=Xl.get(r);if(a)return a;var o=it(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/e,Xl.set(r,s),r.dirty=!1,s;function u(l){for(var f=[e],h=!0,v=0;v<ng.length;++v){var c=o[ng[v]];if(c!=null&&!F(c)&&!W(c)&&!lt(c)&&typeof c!="boolean"){h=!1;break}f.push(c)}var d;if(h){d=f.join(",")+(i?"-svg":"");var p=rg.get(d);p&&(i?l.svgElement=p:l.image=p)}var g=X_(o.dashArrayX),y=rL(o.dashArrayY),m=U_(o.symbol),_=nL(g),S=$_(y),w=!i&&gr.createCanvas(),b=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=C(),T;w&&(w.width=x.width*e,w.height=x.height*e,T=w.getContext("2d")),M(),h&&rg.put(d,w||b),l.image=w,l.svgElement=b,l.svgWidth=x.width,l.svgHeight=x.height;function C(){for(var D=1,P=0,R=_.length;P<R;++P)D=td(D,_[P]);for(var L=1,P=0,R=m.length;P<R;++P)L=td(L,m[P].length);D*=L;var I=S*_.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function M(){T&&(T.clearRect(0,0,w.width,w.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,w.width,w.height)));for(var D=0,P=0;P<y.length;++P)D+=y[P];if(D<=0)return;for(var R=-S,L=0,I=0,E=0;R<x.height;){if(L%2===0){for(var z=I/2%m.length,O=0,B=0,V=0;O<x.width*2;){for(var Y=0,P=0;P<g[E].length;++P)Y+=g[E][P];if(Y<=0)break;if(B%2===0){var U=(1-o.symbolSize)*.5,et=O+g[E][B]*U,ct=R+y[L]*U,yt=g[E][B]*o.symbolSize,Jt=y[L]*o.symbolSize,ve=V/2%m[z].length;se(et,ct,yt,Jt,m[z][ve])}O+=g[E][B],++V,++B,B===g[E].length&&(B=0)}++E,E===g.length&&(E=0)}R+=y[L],++I,++L,L===y.length&&(L=0)}function se(Rt,wt,Z,nt,Ge){var Dt=i?1:e,br=jr(Ge,Rt*Dt,wt*Dt,Z*Dt,nt*Dt,o.color,o.symbolKeepAspect);if(i){var rr=n.painter.renderOneToVNode(br);rr&&b.children.push(rr)}else Y_(T,br)}}}}function U_(r){if(!r||r.length===0)return[["rect"]];if(W(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!W(r[e])){t=!1;break}if(t)return U_([r]);for(var n=[],e=0;e<r.length;++e)W(r[e])?n.push([r[e]]):n.push(r[e]);return n}function X_(r){if(!r||r.length===0)return[[0,0]];if(lt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,n=0;n<r.length;++n)if(!lt(r[n])){e=!1;break}if(e)return X_([r]);for(var i=[],n=0;n<r.length;++n)if(lt(r[n])){var t=Math.ceil(r[n]);i.push([t,t])}else{var t=H(r[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function rL(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(lt(r)){var t=Math.ceil(r);return[t,t]}var e=H(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function nL(r){return H(r,function(t){return $_(t)})}function $_(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function iL(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var n=e.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var u=n.ensureUniqueItemVisual(o,"style");u.decal=Zs(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Zs(i,t)}}})}var Pe=new Fe,Z_={};function aL(r,t){Z_[r]=t}function q_(r){return Z_[r]}var aE="5.6.0",oE={zrender:"5.6.1"},oL=1,sL=800,uL=900,lL=1e3,fL=2e3,hL=5e3,K_=1e3,vL=1100,Wv=2e3,j_=3e3,cL=4e3,Ou=4500,dL=4600,pL=5e3,gL=6e3,Q_=7e3,yL={PROCESSOR:{FILTER:lL,SERIES_FILTER:sL,STATISTIC:hL},VISUAL:{LAYOUT:K_,PROGRESSIVE_LAYOUT:vL,GLOBAL:Wv,CHART:j_,POST_CHART_LAYOUT:dL,COMPONENT:cL,BRUSH:pL,CHART_ITEM:Ou,ARIA:gL,DECAL:Q_}},Ft="__flagInMainProcess",ee="__pendingUpdate",$l="__needsUpdateStatus",ig=/^[a-zA-Z0-9_]+$/,Zl="__connectUpdateStatus",ag=0,mL=1,_L=2;function J_(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return e1(this,r,t)}}function t1(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return e1(this,r,t)}}function e1(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Fe.prototype[t].apply(r,e)}var r1=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Fe),n1=r1.prototype;n1.on=t1("on");n1.off=t1("off");var oi,ql,Zo,Lr,Kl,jl,Ql,na,ia,og,sg,Jl,ug,qo,lg,i1,ce,fg,qs=(function(r){N(t,r);function t(e,n,i){var a=r.call(this,new BA)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},W(n)&&(n=a1[n]),a._dom=e;var o="canvas",s="auto",u=!1;i.ssr&&A_(function(v){var c=at(v),d=c.dataIndex;if(d!=null){var p=q();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=gh(e,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Q(i.useDirtyRect,u),useCoarsePointer:Q(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Gv(tt(l.flush,l),17),n=J(n),n&&R_(n,!0),a._theme=n,a._locale=sC(i.locale||L0),a._coordSysMgr=new vo;var f=a._api=lg(a);function h(v,c){return v.__prio-c.__prio}return gs(js,h),gs(bh,h),a._scheduler=new O_(a,f,bh,js),a._messageCenter=new r1,a._initEvents(),a.resize=tt(a.resize,a),l.animation.on("frame",a._onframe,a),og(l,a),sg(l,a),ws(a),a}return t.prototype._onframe=function(){if(!this._disposed){fg(this);var e=this._scheduler;if(this[ee]){var n=this[ee].silent;this[Ft]=!0;try{oi(this),Lr.update.call(this,null,this[ee].updateParams)}catch(u){throw this[Ft]=!1,this[ee]=null,u}this._zr.flush(),this[Ft]=!1,this[ee]=null,na.call(this,n),ia.call(this,n)}else if(e.unfinished){var i=oL,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),jl(this,a),e.performVisualTasks(a),qo(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,i){if(!this[Ft]){if(this._disposed){this.id;return}var a,o,s;if(X(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ft]=!0,!this._model||n){var u=new sA(this._api),l=this._theme,f=this._model=new Hv;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(e,{replaceMerge:o},wh);var h={seriesTransition:s,optionChanged:!0};if(i)this[ee]={silent:a,updateParams:h},this[Ft]=!1,this.getZr().wakeUp();else{try{oi(this),Lr.update.call(this,null,h)}catch(v){throw this[ee]=null,this[Ft]=!1,v}this._ssr||this._zr.flush(),this[ee]=null,this[Ft]=!1,na.call(this,a),ia.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||$.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if($.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return A(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;A(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(e).toDataURL("image/"+(e&&e.type||"png"));return A(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Qs[i]){var u=s,l=s,f=-s,h=-s,v=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();A(kn,function(_,S){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(J(e)),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=gr.createCanvas(),y=gh(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return A(v,function(_){var S=_.left-u,w=_.top-l;m+='<g transform="translate('+S+","+w+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new Ct({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),A(v,function(_){var S=new Je({style:{x:_.left*c-u,y:_.top*c-l,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Kl(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Kl(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var i=this._model,a,o=hl(i,e);return A(o,function(s,u){u.indexOf("Models")>=0&&A(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(e,n){var i=this._model,a=hl(i,e,{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?zA(s,u,n):G_(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;A(SL,function(n){var i=function(a){var o=e.getModel(),s=a.target,u,l=n==="globalout";if(l?u={}:s&&da(s,function(d){var p=at(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return u=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return u=k({},p.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=a,u.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:v,view:c},e.trigger(n,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),A(Aa,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),A(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),tM(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&Dm(this.getDom(),Uv,"");var n=this,i=n._api,a=n._model;A(n._componentsViews,function(o){o.dispose(a,i)}),A(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 kn[n.id]},t.prototype.resize=function(e){if(!this[Ft]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[ee]&&(a==null&&(a=this[ee].silent),i=!0,this[ee]=null),this[Ft]=!0;try{i&&oi(this),Lr.update.call(this,{type:"resize",animation:k({duration:0},e&&e.animation)})}catch(o){throw this[Ft]=!1,o}this[Ft]=!1,na.call(this,a),ia.call(this,a)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(X(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!xh[e]){var i=xh[e](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(e){var n=k({},e);return n.type=Aa[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(X(n)||(n={silent:!!n}),!!Ks[e.type]&&this._model){if(this[Ft]){this._pendingActions.push(e);return}var i=n.silent;Ql.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&$.browser.weChat&&this._throttledZrFlush(),na.call(this,i),ia.call(this,i)}},t.prototype.updateLabelLayout=function(){Pe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){oi=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),ql(h,!0),ql(h,!1),v.plan()},ql=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 T="_ec_"+b.id+"_"+b.type,C=!x&&g[T];if(!C){var M=Ze(b.type),D=v?he.getClass(M.main,M.sub):Bt.getClass(M.sub);C=new D,C.init(c,m),g[T]=C,p.push(C),y.add(C.group)}b.__viewId=C.__id=T,C.__alive=!0,C.__model=b,C.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!v&&d.prepareView(C,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)}},Zo=function(h,v,c,d,p){var g=h._model;if(g.setUpdatePayload(c),!d){A([].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=q(),A(Lt(_),function(b){var x=Oe(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(hd(c))if(b instanceof Yt)c.type===Rn&&!c.notBlur&&!b.get(["emphasis","disabled"])&&gx(b,c,h._api);else{var T=hv(b.mainType,b.componentIndex,c.name,h._api),C=T.focusSelf,M=T.dispatchers;c.type===Rn&&C&&!c.notBlur&&Zf(b.mainType,b.componentIndex,h._api),M&&A(M,function(D){c.type===Rn?Ha(D):Wa(D)})}else Kf(c)&&b instanceof Yt&&(_x(b,c,h._api),ld(b),ce(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)}},Lr={prepareAndUpdate:function(h){oi(this),Lr.update.call(this,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),jl(this,c),g.update(c,d),e(c),y.performVisualTasks(c,h),Jl(this,c,d,h,v);var m=c.get("backgroundColor")||"transparent",_=c.get("darkMode");p.setBackgroundColor(m),_!=null&&_!=="auto"&&p.setDarkMode(_),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=q();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)}),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:g}),qo(this,c,d,h,{},g),Pe.trigger("afterupdate",c,d)}},updateView:function(h){var v=this._model;v&&(v.setUpdatePayload(h),Bt.markUpdateMethod(h,"updateView"),e(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0}),Jl(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()}),Bt.markUpdateMethod(h,"updateVisual"),e(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){Lr.update.call(this,h)}},Kl=function(h,v,c,d){if(h._disposed){h.id;return}for(var p=h._model,g=h._coordSysMgr.getCoordinateSystems(),y,m=hl(p,c),_=0;_<g.length;_++){var S=g[_];if(S[v]&&(y=S[v](p,m,d))!=null)return y}},jl=function(h,v){var c=h._chartsMap,d=h._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,c[p.__viewId])})},Ql=function(h,v){var c=this,d=this.getModel(),p=h.type,g=h.escapeConnect,y=Ks[p],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),w=_[0]!=null&&Ze(_[0]);this[Ft]=!0;var b=[h],x=!1;h.batch&&(x=!0,b=H(h.batch,function(L){return L=it(k({},L),h),L.batch=null,L}));var T=[],C,M=Kf(h),D=hd(h);if(D&&Bm(this._api),A(b,function(L){if(C=y.action(L,c._model,c._api),C=C||k({},L),C.type=m.event||C.type,T.push(C),D){var I=ov(h),E=I.queryOptionMap,z=I.mainTypeSpecified,O=z?E.keys()[0]:"series";Zo(c,S,L,O),ce(c)}else M?(Zo(c,S,L,"series"),ce(c)):w&&Zo(c,S,L,w.main,w.sub)}),S!=="none"&&!D&&!M&&!w)try{this[ee]?(oi(this),Lr.update.call(this,h),this[ee]=null):Lr[S].call(this,h)}catch(L){throw this[Ft]=!1,L}if(x?C={type:m.event||p,escapeConnect:g,batch:T}:C=T[0],this[Ft]=!1,!v){var P=this._messageCenter;if(P.trigger(C.type,C),M){var R={type:"selectchanged",escapeConnect:g,selected:Sx(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};P.trigger(R.type,R)}}},na=function(h){for(var v=this._pendingActions;v.length;){var c=v.shift();Ql.call(this,c,h)}},ia=function(h){!h&&this.trigger("updated")},og=function(h,v){h.on("rendered",function(c){v.trigger("rendered",c),h.animation.isFinished()&&!v[ee]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},sg=function(h,v){h.on("mouseover",function(c){var d=c.target,p=da(d,qf);p&&(yx(p,c,v._api),ce(v))}).on("mouseout",function(c){var d=c.target,p=da(d,qf);p&&(mx(p,c,v._api),ce(v))}).on("click",function(c){var d=c.target,p=da(d,function(m){return at(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=at(p);v._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(v){v.clearColorPalette()})}function n(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;gs(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),A(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)})}}Jl=function(h,v,c,d,p){n(v),ug(h,v,c,d,p),A(h._chartsViews,function(g){g.__alive=!1}),qo(h,v,c,d,p),A(h._chartsViews,function(g){g.__alive||g.remove(v,c)})},ug=function(h,v,c,d,p,g){A(g||h._componentsViews,function(y){var m=y.__model;l(m,y),y.render(m,v,c,d),s(m,y),f(m,y)})},qo=function(h,v,c,d,p,g){var y=h._scheduler;p=k(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"),o(_,S),ld(_)}),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];s(_,S),f(_,S)}),a(h,v),Pe.trigger("series:afterupdate",v,c,p)},ce=function(h){h[$l]=!0,h.getZr().wakeUp()},fg=function(h){h[$l]&&(h.getZr().storage.traverse(function(v){Ta(v)||i(v)}),h[$l]=!1)};function i(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===cu&&h.states.emphasis?v.push("emphasis"):h.hoverState===vu&&h.states.blur&&v.push("blur"),h.useStates(v)}function a(h,v){var c=h._zr,d=c.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>v.get("hoverLayerThreshold")&&!$.node&&!$.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 o(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,d=h.get("zlevel")||0;v.eachRendered(function(p){return u(p,c,d,-1/0),!0})}}function u(h,v,c,d){var p=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_<m.length;_++)d=Math.max(u(m[_],v,c,d),d);else h.z=v,h.zlevel=c,d=Math.max(h.z2,d);if(p&&(p.z=v,p.zlevel=c,isFinite(d)&&(p.z2=d+2)),g){var S=h.textGuideLineConfig;g.z=v,g.zlevel=c,isFinite(d)&&(g.z2=d+(S&&S.showAbove?1:-1))}return d}function l(h,v){v.eachRendered(function(c){if(!Ta(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(Ta(y))return;if(y instanceof ft&&Dx(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&&i(y)}})}lg=function(h){return new((function(v){N(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){Ha(d,p),ce(h)},c.prototype.leaveEmphasis=function(d,p){Wa(d,p),ce(h)},c.prototype.enterBlur=function(d){Rm(d),ce(h)},c.prototype.leaveBlur=function(d){fv(d),ce(h)},c.prototype.enterSelect=function(d){Em(d),ce(h)},c.prototype.leaveSelect=function(d){km(d),ce(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})(P_))(h)},i1=function(h){function v(c,d){for(var p=0;p<c.length;p++){var g=c[p];g[Zl]=d}}A(Aa,function(c,d){h._messageCenter.on(d,function(p){if(Qs[h.group]&&h[Zl]!==ag){if(p&&p.escapeConnect)return;var g=h.makeActionFromEvent(p),y=[];A(kn,function(m){m!==h&&m.group===h.group&&y.push(m)}),v(y,ag),A(y,function(m){m[Zl]!==mL&&m.dispatchAction(g)}),v(y,_L)}})})}})(),t})(Fe),Yv=qs.prototype;Yv.on=J_("on");Yv.off=J_("off");Yv.one=function(r,t,e){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(r,i)}this.on.call(this,r,i,e)};var SL=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Ks={},Aa={},bh=[],wh=[],js=[],a1={},xh={},kn={},Qs={},bL=+new Date-0,wL=+new Date-0,Uv="_echarts_instance_";function sE(r,t,e){var n=!(e&&e.ssr);if(n){var i=o1(r);if(i)return i}var a=new qs(r,t,e);return a.id="ec_"+bL++,kn[a.id]=a,n&&Dm(r,Uv,a.id),i1(a),Pe.trigger("afterinit",a),a}function uE(r){if(F(r)){var t=r;r=null,A(t,function(e){e.group!=null&&(r=e.group)}),r=r||"g_"+wL++,A(t,function(e){e.group=r})}return Qs[r]=!0,r}function xL(r){Qs[r]=!1}var lE=xL;function fE(r){W(r)?r=kn[r]:r instanceof qs||(r=o1(r)),r instanceof qs&&!r.isDisposed()&&r.dispose()}function o1(r){return kn[ix(r,Uv)]}function hE(r){return kn[r]}function s1(r,t){a1[r]=t}function u1(r){rt(wh,r)<0&&wh.push(r)}function l1(r,t){$v(bh,r,t,fL)}function TL(r){Xv("afterinit",r)}function CL(r){Xv("afterupdate",r)}function Xv(r,t){Pe.on(r,t)}function Yn(r,t,e){K(t)&&(e=t,t="");var n=X(r)?r.type:[r,r={event:t}][0];r.event=(r.event||n).toLowerCase(),t=r.event,!Aa[t]&&(Ne(ig.test(n)&&ig.test(t)),Ks[n]||(Ks[n]={action:e,actionInfo:r}),Aa[t]=n)}function DL(r,t){vo.register(r,t)}function vE(r){var t=vo.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function ML(r,t){$v(js,r,t,K_,"layout")}function Un(r,t){$v(js,r,t,j_,"visual")}var hg=[];function $v(r,t,e,n,i){if((K(t)||X(t))&&(e=t,t=n),!(rt(hg,e)>=0)){hg.push(e);var a=O_.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function f1(r,t){xh[r]=t}function cE(r){WS({createCanvas:r})}function AL(r,t,e){var n=q_("registerMap");n&&n(r,t,e)}function dE(r){var t=q_("getMap");return t&&t(r)}var LL=RC;Un(Wv,wA);Un(Ou,xA);Un(Ou,TA);Un(Wv,NA);Un(Ou,FA);Un(Q_,iL);u1(R_);l1(uL,_A);f1("default",CA);Yn({type:Rn,event:Rn,update:Rn},Mt);Yn({type:hs,event:hs,update:hs},Mt);Yn({type:ba,event:ba,update:ba},Mt);Yn({type:vs,event:vs,update:vs},Mt);Yn({type:wa,event:wa,update:wa},Mt);s1("light",OA);s1("dark",z_);var pE={},vg=[],PL={registerPreprocessor:u1,registerProcessor:l1,registerPostInit:TL,registerPostUpdate:CL,registerUpdateLifecycle:Xv,registerAction:Yn,registerCoordinateSystem:DL,registerLayout:ML,registerVisual:Un,registerTransform:LL,registerLoading:f1,registerMap:AL,registerImpl:aL,PRIORITY:yL,ComponentModel:ht,ComponentView:he,SeriesModel:Yt,ChartView:Bt,registerComponentModel:function(r){ht.registerClass(r)},registerComponentView:function(r){he.registerClass(r)},registerSeriesModel:function(r){Yt.registerClass(r)},registerChartView:function(r){Bt.registerClass(r)},registerSubTypeDefaulter:function(r,t){ht.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){M_(r,t)}};function Gn(r){if(F(r)){A(r,function(t){Gn(t)});return}rt(vg,r)>=0||(vg.push(r),K(r)&&(r={install:r}),r.install(PL))}var IL=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t})(ht),h1=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r})(),Th=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ee).models[0]},t.type="cartesian2dAxis",t})(ht);Ut(Th,h1);var v1={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},RL=st({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},v1),Zv=st({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},v1),EL=st({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Zv),kL=it({logBase:10},Zv);const OL={category:RL,value:Zv,time:EL,log:kL};var BL=0,Ch=(function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++BL}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&H(n,NL);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!W(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=q(this.categories))},r})();function NL(r){return X(r)&&r.value!=null?r.value:r+""}var FL={value:1,category:1,time:1,log:1};function cg(r,t,e,n){A(FL,function(i,a){var o=st(st({},OL[a],!0),n,!0),s=(function(u){N(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=$a(this),c=v?Iu(f):{},d=h.getTheme();st(f,d.get(a+"Axis")),st(f,this.getDefaultOption()),f.type=dg(f),v&&Ci(f,c,v)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Ch.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.type=t+"Axis."+a,l.defaultOption=o,l})(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",dg)}function dg(r){return r.type||(r.data?"category":"value")}var er=(function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r})();au(er);function Dh(r){return r.type==="interval"||r.type==="log"}function zL(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=iv(a/t,!0);e!=null&&o<e&&(o=i.interval=e),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=c1(o),u=i.niceTickExtent=[bt(Math.ceil(r[0]/o)*o,s),bt(Math.floor(r[1]/o)*o,s)];return GL(u,r),i}function tf(r){var t=Math.pow(10,hu(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,bt(e*t)}function c1(r){return Re(r)+2}function pg(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function GL(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),pg(r,0,t),pg(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Bu(r,t){return r>=t[0]&&r<=t[1]}function Nu(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Fu(r,t){return r*(t[1]-t[0])+t[0]}var qv=(function(r){N(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Ch({})),F(i)&&(i=new Ch({categories:H(i,function(a){return X(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:W(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Bu(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Nu(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Fu(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,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(e){var n=this._ticksByOrdinalNumber;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getRawOrdinalNumber=function(e){var n=this._ordinalNumbersByTick;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var n=this.getRawOrdinalNumber(e.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(er);er.registerClass(qv);var bn=bt,ki=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Bu(e,this._extent)},t.prototype.normalize=function(e){return Nu(e,this._extent)},t.prototype.scale=function(e){return Fu(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=c1(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var u=1e4;i[0]<a[0]&&(e?s.push({value:bn(a[0]-n,o)}):s.push({value:i[0]}));for(var l=a[0];l<=a[1]&&(s.push({value:l}),l=bn(l+n,o),l!==s[s.length-1].value);)if(s.length>u)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:bn(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],u=n[o-1],l=0,f=[],h=s.value-u.value,v=h/e;l<e-1;){var c=bn(u.value+(l+1)*v);c>a[0]&&c<a[1]&&f.push(c),l++}i.push(f)}return i},t.prototype.getLabel=function(e,n){if(e==null)return"";var i=n&&n.precision;i==null?i=Re(e.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=bn(e.value,i,!0);return Lv(a)},t.prototype.calcNiceTicks=function(e,n,i){e=e||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=zL(a,e,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);e.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.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(n[0]=bn(Math.floor(n[0]/o)*o)),e.fixMax||(n[1]=bn(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(e,n){this._niceExtent=[e,n]},t.type="interval",t})(er);er.registerClass(ki);var VL=function(r,t,e,n){for(;e<n;){var i=e+n>>>1;r[i][1]<t?e=i+1:n=i}return e},d1=(function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="time",n}return t.prototype.getLabel=function(e){var n=this.getSetting("useUTC");return co(e.value,Gd[hC(_i(this._minLevelUnit))]||Gd.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return vC(e,n,i,o,a)},t.prototype.getTicks=function(){var e=this._interval,n=this._extent,i=[];if(!e)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=ZL(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1]&&(n[0]-=be,n[1]+=be),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]-be}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,n,i){e=e||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/e,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Ko.length,u=Math.min(VL(Ko,this._approxInterval,0,s),s-1);this._interval=Ko[u][1],this._minLevelUnit=Ko[Math.max(u-1,0)][0]},t.prototype.parse=function(e){return lt(e)?e:+xe(e)},t.prototype.contain=function(e){return Bu(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Nu(this.parse(e),this._extent)},t.prototype.scale=function(e){return Fu(e,this._extent)},t.type="time",t})(ki),Ko=[["second",Dv],["minute",Mv],["hour",Ca],["quarter-day",Ca*6],["half-day",Ca*12],["day",be*1.2],["half-week",be*3.5],["week",be*7],["month",be*31],["quarter",be*95],["half-year",zd/2],["year",zd]];function HL(r,t,e,n){var i=xe(t),a=xe(e),o=function(d){return Vd(i,d,n)===Vd(a,d,n)},s=function(){return o("year")},u=function(){return s()&&o("month")},l=function(){return u()&&o("day")},f=function(){return l()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return u();case"day":return l();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function WL(r,t){return r/=be,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function YL(r){var t=30*be;return r/=t,r>6?6:r>3?3:r>2?2:1}function UL(r){return r/=Ca,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function gg(r,t){return r/=t?Mv:Dv,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function XL(r){return iv(r,!0)}function $L(r,t,e){var n=new Date(r);switch(_i(t)){case"year":case"month":n[E0(e)](0);case"day":n[k0(e)](1);case"hour":n[O0(e)](0);case"minute":n[B0(e)](0);case"second":n[N0(e)](0),n[F0(e)](0)}return n.getTime()}function ZL(r,t,e,n){var i=1e4,a=I0,o=0;function s(M,D,P,R,L,I,E){for(var z=new Date(D),O=D,B=z[R]();O<P&&O<=n[1];)E.push({value:O}),B+=M,z[L](B),O=z.getTime();E.push({value:O,notAdd:!0})}function u(M,D,P){var R=[],L=!D.length;if(!HL(_i(M),n[0],n[1],e)){L&&(D=[{value:$L(new Date(n[0]),M,e)},{value:n[1]}]);for(var I=0;I<D.length-1;I++){var E=D[I].value,z=D[I+1].value;if(E!==z){var O=void 0,B=void 0,V=void 0,Y=!1;switch(M){case"year":O=Math.max(1,Math.round(t/be/365)),B=Av(e),V=cC(e);break;case"half-year":case"quarter":case"month":O=YL(t),B=Si(e),V=E0(e);break;case"week":case"half-week":case"day":O=WL(t),B=Mu(e),V=k0(e),Y=!0;break;case"half-day":case"quarter-day":case"hour":O=UL(t),B=Xa(e),V=O0(e);break;case"minute":O=gg(t,!0),B=Au(e),V=B0(e);break;case"second":O=gg(t,!1),B=Lu(e),V=N0(e);break;case"millisecond":O=XL(t),B=Pu(e),V=F0(e);break}s(O,E,z,B,V,Y,R),M==="year"&&P.length>1&&I===0&&P.unshift({value:P[0].value-O})}}for(var I=0;I<R.length;I++)P.push(R[I]);return R}}for(var l=[],f=[],h=0,v=0,c=0;c<a.length&&o++<i;++c){var d=_i(a[c]);if(fC(a[c])){u(a[c],l[l.length-1]||[],f);var p=a[c+1]?_i(a[c+1]):null;if(d!==p){if(f.length){v=h,f.sort(function(M,D){return M.value-D.value});for(var g=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(g.push(f[y]),m>=n[0]&&m<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&v>_/1.5||(l.push(g),h>_||r===a[c]))break}f=[]}}}for(var S=St(H(l,function(M){return St(M,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(M){return M.length>0}),w=[],b=S.length-1,c=0;c<S.length;++c)for(var x=S[c],T=0;T<x.length;++T)w.push({value:x[T].value,level:b-c});w.sort(function(M,D){return M.value-D.value});for(var C=[],c=0;c<w.length;++c)(c===0||w[c].value!==w[c-1].value)&&C.push(w[c]);return C}er.registerClass(d1);var yg=er.prototype,La=ki.prototype,qL=bt,KL=Math.floor,jL=Math.ceil,jo=Math.pow,Me=Math.log,Kv=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new ki,e._interval=0,e}return t.prototype.getTicks=function(e){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=La.getTicks.call(this,e);return H(o,function(s){var u=s.value,l=bt(jo(this.base,u));return l=u===i[0]&&this._fixMin?Qo(l,a[0]):l,l=u===i[1]&&this._fixMax?Qo(l,a[1]):l,{value:l}},this)},t.prototype.setExtent=function(e,n){var i=Me(this.base);e=Me(Math.max(0,e))/i,n=Me(Math.max(0,n))/i,La.setExtent.call(this,e,n)},t.prototype.getExtent=function(){var e=this.base,n=yg.getExtent.call(this);n[0]=jo(e,n[0]),n[1]=jo(e,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=Qo(n[0],a[0])),this._fixMax&&(n[1]=Qo(n[1],a[1])),n},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var n=this.base;e[0]=Me(e[0])/Me(n),e[1]=Me(e[1])/Me(n),yg.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(e){e=e||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=Sm(i),o=e/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[bt(jL(n[0]/a)*a),bt(KL(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){La.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Me(e)/Me(this.base),Bu(e,this._extent)},t.prototype.normalize=function(e){return e=Me(e)/Me(this.base),Nu(e,this._extent)},t.prototype.scale=function(e){return e=Fu(e,this._extent),jo(this.base,e)},t.type="log",t})(er),p1=Kv.prototype;p1.getMinorTicks=La.getMinorTicks;p1.getLabel=La.getLabel;function Qo(r,t){return qL(r,Re(t))}er.registerClass(Kv);var QL=(function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=e.get("min",!0);a==null&&(a=e.get("startValue",!0));var o=this._modelMinRaw=a;K(o)?this._modelMinNum=Jo(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=Jo(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(K(s)?this._modelMaxNum=Jo(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=Jo(t,s)),i)this._axisDataLen=e.getCategories().length;else{var u=e.get("boundaryGap"),l=F(u)?u:[u||0,u||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[$r(l[0],1),$r(l[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,l=s!=null,f=u!=null;s==null&&(s=t?i?0:NaN:e-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=Ra(s)||Ra(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}},r.prototype.modifyDataMinMax=function(t,e){this[t2[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=JL[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r})(),JL={min:"_determinedMin",max:"_determinedMax"},t2={min:"_dataMin",max:"_dataMax"};function e2(r,t,e){var n=r.rawExtentInfo;return n||(n=new QL(r,t,e),r.rawExtentInfo=n,n)}function Jo(r,t){return t==null?null:Ra(t)?NaN:r.parse(t)}function g1(r,t){var e=r.type,n=e2(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=s_("bar",o),u=!1;if(A(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=u_(s),f=r2(i,a,t,l);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function r2(r,t,e,n){var i=e.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=OD(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;A(o,function(c){s=Math.min(c.offset,s)});var u=-1/0;A(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-r,h=1-(s+u)/a,v=f/h-f;return t+=v*(u/l),r-=v*(s/l),{min:r,max:t}}function Mh(r,t){var e=t,n=g1(r,e),i=n.extent,a=e.get("splitNumber");r instanceof Kv&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),u=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?e.get("minInterval"):null,maxInterval:u?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function y1(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new qv({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new d1({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(er.getClass(t)||ki)}}function n2(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function Oi(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?(function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}})(t):W(t)?(function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a??"");return o}})(t):K(t)?(function(n){return function(i,a){return e!=null&&(a=i.value-e),n(jv(r,i),a,i.level!=null?{level:i.level}:null)}})(t):function(n){return r.scale.getLabel(n)}}function jv(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function i2(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof qv?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=Oi(r),u,l=1;i>40&&(l=Math.ceil(i/40));for(var f=0;f<i;f+=l){var h=n?n[f]:{value:a[0]+f},v=s(h,f),c=o.getTextRect(v),d=a2(c,o.get("rotate")||0);u?u.union(d):u=d}return u}}function a2(r,t){var e=t*Math.PI/180,n=r.width,i=r.height,a=n*Math.abs(Math.cos(e))+Math.abs(i*Math.sin(e)),o=n*Math.abs(Math.sin(e))+Math.abs(i*Math.cos(e)),s=new ot(r.x,r.y,a,o);return s}function Qv(r){var t=r.get("interval");return t??"auto"}function m1(r){return r.type==="category"&&Qv(r.getLabelModel())===0}function o2(r,t){var e={};return A(r.mapDimensionsAll(t),function(n){e[xv(r,n)]=!0}),vt(e)}var s2=(function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return H(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),St(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r})(),Ah=["x","y"];function mg(r){return r.type==="interval"||r.type==="time"}var u2=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Ah,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!mg(e)||!mg(n))){var i=e.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=Ai([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var i=this.dataToPoint(e),a=this.dataToPoint(n),o=this.getArea(),s=new ot(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return At(i,e,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(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),u=i.parse(e[0]),l=a.parse(e[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(e,n){var i=[];if(this._invTransform)return At(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-e,o=Math.min(i[0],i[1])-e,s=Math.max(n[0],n[1])-a+e,u=Math.max(i[0],i[1])-o+e;return new ot(a,o,s,u)},t})(s2),Qa=gt();function _1(r,t){var e=H(t,function(n){return r.scale.parse(n)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function l2(r){var t=r.getLabelModel().get("customValues");if(t){var e=Oi(r),n=r.scale.getExtent(),i=_1(r,t),a=St(i,function(o){return o>=n[0]&&o<=n[1]});return{labels:H(a,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?h2(r):c2(r)}function f2(r,t){var e=r.getTickModel().get("customValues");if(e){var n=r.scale.getExtent(),i=_1(r,e);return{ticks:St(i,function(a){return a>=n[0]&&a<=n[1]})}}return r.type==="category"?v2(r,t):{ticks:H(r.scale.getTicks(),function(a){return a.value})}}function h2(r){var t=r.getLabelModel(),e=S1(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function S1(r,t){var e=b1(r,"labels"),n=Qv(t),i=w1(e,n);if(i)return i;var a,o;return K(n)?a=C1(r,n):(o=n==="auto"?d2(r):n,a=T1(r,o)),x1(e,n,{labels:a,labelCategoryInterval:o})}function v2(r,t){var e=b1(r,"ticks"),n=Qv(t),i=w1(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),K(n))a=C1(r,n,!0);else if(n==="auto"){var s=S1(r,r.getLabelModel());o=s.labelCategoryInterval,a=H(s.labels,function(u){return u.tickValue})}else o=n,a=T1(r,o,!0);return x1(e,n,{ticks:a,tickCategoryInterval:o})}function c2(r){var t=r.scale.getTicks(),e=Oi(r);return{labels:H(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function b1(r,t){return Qa(r)[t]||(Qa(r)[t]=[])}function w1(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function x1(r,t,e){return r.push({key:t,value:e}),e}function d2(r){var t=Qa(r).autoInterval;return t??(Qa(r).autoInterval=r.calculateCategoryInterval())}function p2(r){var t=g2(r),e=Oi(r),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var u=a[0],l=r.dataToCoord(u+1)-r.dataToCoord(u),f=Math.abs(l*Math.cos(n)),h=Math.abs(l*Math.sin(n)),v=0,c=0;u<=a[1];u+=s){var d=0,p=0,g=Qh(e({value:u}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,v=Math.max(v,d,7),c=Math.max(c,p,7)}var y=v/f,m=c/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Qa(r.model),w=r.getExtent(),b=S.lastAutoInterval,x=S.lastTickCount;return b!=null&&x!=null&&Math.abs(b-_)<=1&&Math.abs(x-o)<=1&&b>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=b:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function g2(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function T1(r,t,e){var n=Oi(r),i=r.scale,a=i.getExtent(),o=r.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=m1(r),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(e?g:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:g})}return s}function C1(r,t,e){var n=r.scale,i=Oi(r),a=[];return A(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;t(o.value,s)&&a.push(e?u:{formattedLabel:i(o),rawLabel:s,tickValue:u})}),a}var _g=[0,1],y2=(function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return mm(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Sg(n,i.count())),xi(t,_g,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Sg(n,i.count()));var a=xi(t,n,_g,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=f2(this,e),i=n.ticks,a=H(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return m2(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=H(n,function(a){return H(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return l2(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return p2(this)},r})();function Sg(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function m2(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var u=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/u;A(t,function(c){c.coord-=l/2});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s,tickValue:f[1]+1},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]}),v(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&v(o.coord,a[1])&&t.push({coord:a[1]});function v(c,d){return c=bt(c),d=bt(d),h?c>d:c<d}}var _2=(function(r){N(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(y2);function Lh(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,u=o?"onZero":s,l=i.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,d=l==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(p,d[1]),d[0])}a.position=[l==="y"?d[v[u]]:h[0],l==="x"?d[v[u]]:h[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?d[v[s]]-d[v.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),yr(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=u==="top"?-y:y,a.z2=1,a}function bg(r){return r.get("coordinateSystem")==="cartesian2d"}function wg(r){var t={xAxisModel:null,yAxisModel:null};return A(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,Ee).models[0];t[n]=a}),t}var ef=Math.log;function S2(r,t,e){var n=ki.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),u=g1(r,t),l=u.extent,f=u.fixMin,h=u.fixMax;if(r.type==="log"){var v=ef(r.base);l=[ef(l[0])/v,ef(l[1])/v]}r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=n.getExtent.call(r);f&&(l[0]=c[0]),h&&(l[1]=c[1]);var d=n.getInterval.call(r),p=l[0],g=l[1];if(f&&h)d=(g-p)/o;else if(f)for(g=l[0]+d*o;g<l[1]&&isFinite(g)&&isFinite(l[1]);)d=tf(d),g=l[0]+d*o;else if(h)for(p=l[1]-d*o;p>l[0]&&isFinite(p)&&isFinite(l[0]);)d=tf(d),p=l[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=tf(d));var m=d*o;g=Math.ceil(l[1]/d)*d,p=bt(g-m),p<0&&l[0]>=0?(p=0,g=bt(m)):g>0&&l[1]<=0&&(g=0,p=-bt(m))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(r,p+d*_,g+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,g-d)}var b2=(function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ah,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,u=vt(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;Dh(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(c):(Mh(p,d),Dh(p)&&(s=c))}f.length&&(s||(s=f.pop(),Mh(s.scale,s.model)),A(f,function(g){S2(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};A(n.x,function(o){xg(n,"y",o,a)}),A(n.y,function(o){xg(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=zn(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;u(),a&&(A(s,function(l){if(!l.model.get(["axisLabel","inside"])){var f=i2(l);if(f){var h=l.isHorizontal()?"height":"width",v=l.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,l.position==="top"?o.y+=f.height+v:l.position==="left"&&(o.x+=f.width+v)}}}),u()),A(this._coordsList,function(l){l.calcAffineTransform()});function u(){A(s,function(l){var f=l.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=l.inverse?1:0;l.setExtent(h[v],h[1-v]),w2(l,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}X(t)&&(e=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===e)return a[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",Ee).models[0],i=t.yAxisModel||e&&e.getReferringComponents("yAxis",Ee).models[0],a=t.gridModel,o=this._coordsList,s,u;if(e)s=e.coordinateSystem,rt(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}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},u={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,A(s.x,function(f,h){A(s.y,function(v,c){var d="x"+h+"y"+c,p=new u2(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(rf(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 _2(f,y1(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]++}}}},r.prototype._updateScale=function(t,e){A(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(bg(i)){var a=wg(i),o=a.xAxisModel,s=a.yAxisModel;if(!rf(o,e)||!rf(s,e))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){A(o2(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return A(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);rt(e,a)<0&&e.push(a),rt(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,a){var o=new r(i,t,e);o.name="grid_"+a,o.resize(i,e,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(bg(i)){var a=wg(i),o=a.xAxisModel,s=a.yAxisModel,u=o.getCoordSysModel(),l=u.coordinateSystem;i.coordinateSystem=l.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=Ah,r})();function rf(r,t){return r.getCoordSysModel()===t}function xg(r,t,e,n){e.getAxesOnZeroOf=function(){return a?[a]:[]};var i=r[t],a,o=e.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)Tg(i[u])&&(a=i[u]);else for(var l in i)if(i.hasOwnProperty(l)&&Tg(i[l])&&!n[f(i[l])]){a=i[l];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function Tg(r){return r&&r.type!=="category"&&r.type!=="time"&&n2(r)}function w2(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+t}:function(i){return n-i+t},r.toLocalCoord=r.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}var zr=Math.PI,Xr=(function(){function r(t,e){this.group=new Tt,this.opt=e,this.axisModel=t,it(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Tt({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(t){return!!Cg[t]},r.prototype.add=function(t){Cg[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,n){var i=nv(e-t),a,o;return Fa(i)?(o=n>0?"top":"bottom",a="center"):Fa(i-zr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<zr?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r})(),Cg={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],u=[a[1],0],l=s[0]>u[0];o&&(At(s,s,o),At(u,u,o));var f=k({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Qe({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ua(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var v=t.get(["axisLine","symbol"]);if(v!=null){var c=t.get(["axisLine","symbolSize"]);W(v)&&(v=[v,v]),(W(c)||lt(c))&&(c=[c,c]);var d=Ru(t.get(["axisLine","symbolOffset"])||0,c),p=c[0],g=c[1];A([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(y,m){if(v[m]!=="none"&&v[m]!=null){var _=jr(v[m],-p/2,-g/2,p,g,f.stroke,!0),S=y.r+y.offset,w=l?u:s;_.attr({rotation:y.rotate,x:w[0]+S*Math.cos(r.rotation),y:w[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var i=C2(e,n,t,r),a=M2(e,n,t,r);if(T2(t,a,i),D2(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=uM(H(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));hM(o)}},axisName:function(r,t,e,n){var i=yr(r.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,l=t.axis.getExtent(),f=l[0]>l[1]?-1:1,h=[a==="start"?l[0]-f*u:a==="end"?l[1]+f*u:(l[0]+l[1])/2,Mg(a)?r.labelOffset+o*u:0],v,c=t.get("nameRotate");c!=null&&(c=c*zr/180);var d;Mg(a)?v=Xr.innerTextLayout(r.rotation,c??r.rotation,o):(v=x2(r.rotation,a,c||0,l),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=yr(r.nameTruncateMaxWidth,g.maxWidth,d),_=new Pt({x:h[0],y:h[1],rotation:v.rotation,silent:Xr.isLabelSilent(t),style:mr(s,{text:i,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(Su({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=Xr.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,at(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function x2(r,t,e,n){var i=nv(e-r),a,o,s=n[0]>n[1],u=t==="start"&&!s||t!=="start"&&s;return Fa(i-zr/2)?(o=u?"bottom":"top",a="center"):Fa(i-zr*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",i<zr*1.5&&i>zr/2?a=u?"left":"right":a=u?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function T2(r,t,e){if(!m1(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],u=t[t.length-2],l=e[0],f=e[1],h=e[e.length-1],v=e[e.length-2];n===!1?(de(a),de(l)):Dg(a,o)&&(n?(de(o),de(f)):(de(a),de(l))),i===!1?(de(s),de(h)):Dg(u,s)&&(i?(de(u),de(v)):(de(s),de(h)))}}function de(r){r&&(r.ignore=!0)}function Dg(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=ao([]);return uu(i,i,-r.rotation),e.applyTransform(Vr([],i,r.getLocalTransform())),n.applyTransform(Vr([],i,t.getLocalTransform())),e.intersect(n)}}function Mg(r){return r==="middle"||r==="center"}function D1(r,t,e,n,i){for(var a=[],o=[],s=[],u=0;u<r.length;u++){var l=r[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=e,t&&(At(o,o,t),At(s,s,t));var f=new Qe({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ua(f.shape,f.style.lineWidth),f.anid=i+"_"+r[u].tickValue,a.push(f)}return a}function C2(r,t,e,n){var i=e.axis,a=e.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),u=n.tickDirection*a.get("length"),l=i.getTicksCoords(),f=D1(l,t.transform,u,it(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function D2(r,t,e,n){var i=e.axis,a=e.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),u=n*a.get("length"),l=it(s.getLineStyle(),it(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=D1(o[f],t.transform,u,l,"minorticks_"+f),v=0;v<h.length;v++)r.add(h[v])}}function M2(r,t,e,n){var i=e.axis,a=yr(n.axisLabelShow,e.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),u=i.getViewLabels(),l=(yr(n.labelRotate,o.get("rotate"))||0)*zr/180,f=Xr.innerTextLayout(n.rotation,l,n.labelDirection),h=e.getCategories&&e.getCategories(!0),v=[],c=Xr.isLabelSilent(e),d=e.get("triggerEvent");return A(u,function(p,g){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,m=p.formattedLabel,_=p.rawLabel,S=o;if(h&&h[y]){var w=h[y];X(w)&&w.textStyle&&(S=new mt(w.textStyle,o,e.ecModel))}var b=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),x=i.dataToCoord(y),T=S.getShallow("align",!0)||f.textAlign,C=Q(S.getShallow("alignMinLabel",!0),T),M=Q(S.getShallow("alignMaxLabel",!0),T),D=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,P=Q(S.getShallow("verticalAlignMinLabel",!0),D),R=Q(S.getShallow("verticalAlignMaxLabel",!0),D),L=new Pt({x,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:c,z2:10+(p.level||0),style:mr(S,{text:m,align:g===0?C:g===u.length-1?M:T,verticalAlign:g===0?P:g===u.length-1?R:D,fill:K(b)?b(i.type==="category"?_:i.type==="value"?y+"":y,g):b})});if(L.anid="label_"+y,Su({el:L,componentModel:e,itemName:m,formatterParamsExtra:{isTruncated:function(){return L.isTruncated},value:_,tickIndex:g}}),d){var I=Xr.makeAxisEventDataBase(e);I.targetType="axisLabel",I.value=_,I.tickIndex=g,i.type==="category"&&(I.dataIndex=y),at(L).eventData=I}t.add(L),L.updateTransform(),v.push(L),r.add(L),L.decomposeTransform()}),v}}function A2(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return L2(e,r,t),e.seriesInvolved&&I2(e,r),e}function L2(r,t,e){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];A(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=Ja(s.model),l=r.coordSysAxesInfo[u]={};r.coordSysMap[u]=s;var f=s.model,h=f.getModel("tooltip",n);if(A(s.getAxes(),ut(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)&&A(d.baseAxes,ut(p,c?"cross":!0,v)),c&&A(d.otherAxes,ut(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Ph(_))){y==null&&(y=_.get("triggerTooltip")),_=g?P2(m,h,i,t,g,y):_;var w=_.get("snap"),b=_.get("triggerEmphasis"),x=Ja(m.model),T=y||w||m.type==="category",C=r.axesInfo[x]={key:x,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:b,involveSeries:T,snap:w,useHandle:Ph(_),seriesModels:[],linkGroup:null};l[x]=C,r.seriesInvolved=r.seriesInvolved||T;var M=R2(a,m);if(M!=null){var D=o[M]||(o[M]={axesInfo:{}});D.axesInfo[x]=C,D.mapper=a[M].mapper,C.linkGroup=D}}}})}function P2(r,t,e,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};A(s,function(v){u[v]=J(o.get(v))}),u.snap=r.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&&it(l,h.textStyle)}}return r.model.getModel("axisPointer",new mt(u,e,n))}function I2(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||A(r.coordSysAxesInfo[Ja(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function R2(r,t){for(var e=t.model,n=t.dim,i=0;i<r.length;i++){var a=r[i]||{};if(nf(a[n+"AxisId"],e.id)||nf(a[n+"AxisIndex"],e.componentIndex)||nf(a[n+"AxisName"],e.name))return i}}function nf(r,t){return r==="all"||F(r)&&rt(r,t)>=0||r===t}function E2(r){var t=Jv(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=Ph(e);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 Jv(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ja(r)]}function k2(r){var t=Jv(r);return t&&t.axisPointerModel}function Ph(r){return!!r.get(["handle","show"])}function Ja(r){return r.type+"||"+r.id}var Ag={},M1=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this.axisPointerClass&&E2(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},t.prototype.updateAxisPointer=function(e,n,i,a){this._doUpdateAxisPointerClass(e,i,!1)},t.prototype.remove=function(e,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=k2(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){Ag[e]=n},t.getAxisPointerClass=function(e){return e&&Ag[e]},t.type="axis",t})(he),Ih=gt();function O2(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),u=n.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,clamp:!0});if(l.length){var f=s.length,h=Ih(r).splitAreaColors,v=q(),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 Ct({anid:x!=null?"area_"+x:null,shape:{x:_,y:S,width:w,height:b},style:it({fill:s[c]},y),autoBatch:!0,silent:!0})),c=(c+1)%f}Ih(r).splitAreaColors=v}}}function B2(r){Ih(r).splitAreaColors=null}var N2=["axisLine","axisTickLabel","axisName"],F2=["splitArea","splitLine","minorSplitLine"],A1=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Tt,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),u=Lh(s,e),l=new Xr(e,k({handleAutoShown:function(h){for(var v=s.coordinateSystem.getCartesians(),c=0;c<v.length;c++)if(Dh(v[c].getOtherAxis(e.axis).scale))return!0;return!1}},u));A(N2,l.add,l),this._axisGroup.add(l.getGroup()),A(F2,function(h){e.get([h,"show"])&&z2[h](this,this._axisGroup,e,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||Qm(o,this._axisGroup,e),r.prototype.render.call(this,e,n,i,a)}},t.prototype.remove=function(){B2(this)},t.type="cartesianAxis",t})(M1),z2={splitLine:function(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color"),u=a.get("showMinLine")!==!1,l=a.get("showMaxLine")!==!1;s=F(s)?s:[s];for(var f=n.coordinateSystem.getRect(),h=i.isHorizontal(),v=0,c=i.getTicksCoords({tickModel:a}),d=[],p=[],g=o.getLineStyle(),y=0;y<c.length;y++){var m=i.toGlobalCoord(c[y].coord);if(!(y===0&&!u||y===c.length-1&&!l)){var _=c[y].tickValue;h?(d[0]=m,d[1]=f.y,p[0]=m,p[1]=f.y+f.height):(d[0]=f.x,d[1]=m,p[0]=f.x+f.width,p[1]=m);var S=v++%s.length,w=new Qe({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:it({stroke:s[S]},g),silent:!0});Ua(w.shape,g.lineWidth),t.add(w)}}}},minorSplitLine:function(r,t,e,n){var i=e.axis,a=e.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),u=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var f=[],h=[],v=o.getLineStyle(),c=0;c<l.length;c++)for(var d=0;d<l[c].length;d++){var p=i.toGlobalCoord(l[c][d].coord);u?(f[0]=p,f[1]=s.y,h[0]=p,h[1]=s.y+s.height):(f[0]=s.x,f[1]=p,h[0]=s.x+s.width,h[1]=p);var g=new Qe({anid:"minor_line_"+l[c][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:v,silent:!0});Ua(g.shape,v.lineWidth),t.add(g)}},splitArea:function(r,t,e,n){O2(r,t,e,n)}},L1=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t})(A1),G2=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=L1.type,e}return t.type="yAxis",t})(A1),V2=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,n){this.group.removeAll(),e.get("show")&&this.group.add(new Ct({shape:e.coordinateSystem.getRect(),style:it({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(he),Lg={offset:0};function H2(r){r.registerComponentView(V2),r.registerComponentModel(IL),r.registerCoordinateSystem("cartesian2d",b2),cg(r,"x",Th,Lg),cg(r,"y",Th,Lg),r.registerComponentView(L1),r.registerComponentView(G2),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Pg="\0_ec_interaction_mutex";function Ig(r,t){return!!W2(r)[t]}function W2(r){return r[Pg]||(r[Pg]={})}Yn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Mt);var Y2=(function(r){N(t,r);function t(e){var n=r.call(this)||this;n._zr=e;var i=tt(n._mousedownHandler,n),a=tt(n._mousemoveHandler,n),o=tt(n._mouseupHandler,n),s=tt(n._mousewheelHandler,n),u=tt(n._pinchHandler,n);return n.enable=function(l,f){this.disable(),this._opt=it(J(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),l==null&&(l=!0),(l===!0||l==="move"||l==="pan")&&(e.on("mousedown",i),e.on("mousemove",a),e.on("mouseup",o)),(l===!0||l==="scale"||l==="zoom")&&(e.on("mousewheel",s),e.on("pinch",u))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",a),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",u)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!Sp(e)){for(var n=e.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=e.offsetX,a=e.offsetY;this.pointerChecker&&this.pointerChecker(e,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!_s("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||Ig(this._zr,"globalPan"))){var n=e.offsetX,i=e.offsetY,a=this._x,o=this._y,s=n-a,u=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&ku(e.event),P1(this,"pan","moveOnMouseMove",e,{dx:s,dy:u,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){Sp(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var n=_s("zoomOnMouseWheel",e,this._opt),i=_s("moveOnMouseWheel",e,this._opt),a=e.wheelDelta,o=Math.abs(a),s=e.offsetX,u=e.offsetY;if(!(a===0||!n&&!i)){if(n){var l=o>3?1.4:o>1?1.2:1.1,f=a>0?l:1/l;af(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:u,isAvailableBehavior:null})}if(i){var h=Math.abs(a),v=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);af(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:v,originX:s,originY:u,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!Ig(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;af(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t})(Fe);function af(r,t,e,n,i){r.pointerChecker&&r.pointerChecker(n,i.originX,i.originY)&&(ku(n.event),P1(r,t,e,n,i))}function P1(r,t,e,n,i){i.isAvailableBehavior=tt(_s,null,e,n),r.trigger(t,i)}function _s(r,t,e){var n=e[r];return!r||n&&(!W(n)||t.event[n+"Key"])}function U2(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function X2(r,t,e,n){var i=r.target,a=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,a){var s=a.min||0,u=a.max||1/0;o=Math.max(Math.min(u,o),s)}var l=o/r.zoom;r.zoom=o,i.x-=(e-i.x)*(l-1),i.y-=(n-i.y)*(l-1),i.scaleX*=l,i.scaleY*=l,i.dirty()}var $2={axisPointer:1,tooltip:1,brush:1};function Z2(r,t,e){var n=t.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==e&&!$2.hasOwnProperty(n.mainType)&&i&&i.model!==e}var q2=1e-8;function Rg(r,t){return Math.abs(r-t)<q2}function Eg(r,t,e){var n=0,i=r[0];if(!i)return!1;for(var a=1;a<r.length;a++){var o=r[a];n+=lr(i[0],i[1],o[0],o[1],t,e),i=o}var s=r[0];return(!Rg(i[0],s[0])||!Rg(i[1],s[1]))&&(n+=lr(i[0],i[1],s[0],s[1],t,e)),n!==0}var K2=[];function of(r,t){for(var e=0;e<r.length;e++)At(r[e],r[e],t)}function kg(r,t,e,n){for(var i=0;i<r.length;i++){var a=r[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Er(t,t,a),kr(e,e,a))}}function j2(r){for(var t=0,e=0,n=0,i=r.length,a=r[i-1][0],o=r[i-1][1],s=0;s<i;s++){var u=r[s][0],l=r[s][1],f=a*l-u*o;t+=f,e+=(a+u)*f,n+=(o+l)*f,a=u,o=l}return t?[e/t/3,n/t/3,t]:[r[0][0]||0,r[0][1]||0]}var I1=(function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r})(),Og=(function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r})(),Bg=(function(){function r(t){this.type="linestring",this.points=t}return r})(),Q2=(function(r){N(t,r);function t(e,n,i){var a=r.call(this,e)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var e=this.geometries,n,i=0,a=0;a<e.length;a++){var o=e[a],s=o.exterior,u=s&&s.length;u>i&&(n=o,i=u)}if(n)return j2(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?kg(s.exterior,i,a,e):A(s.points,function(u){kg(u,i,a,e)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new ot(i[0],i[1],a[0]-i[0],a[1]-i[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(e[0],e[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(Eg(u,e[0],e[1])){for(var f=0;f<(l?l.length:0);f++)if(Eg(l[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var u=new ot(e,n,i,a),l=o.calculateTransform(u),f=this.geometries,h=0;h<f.length;h++){var v=f[h];v.type==="polygon"?(of(v.exterior,l),A(v.interiors,function(c){of(c,l)})):A(v.points,function(c){of(c,l)})}o=this._rect,o.copy(u),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t})(I1);(function(r){N(t,r);function t(e,n){var i=r.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,n=e.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=ao(K2),o=e;o&&!o.isGeoSVGGraphicRoot;)Vr(a,o.getLocalTransform(),a),o=o.parent;return Ai(a,a),At(i,i,a),i},t})(I1);function J2(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var n=t.features;return A(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=R1(s,o,e);break;case"Polygon":sf(s,o,e);break;case"MultiLineString":sf(s,o,e);break;case"MultiPolygon":A(s,function(u,l){return sf(u,o[l],e)})}}),t.UTF8Encoding=!1,t}function sf(r,t,e){for(var n=0;n<r.length;n++)r[n]=R1(r[n],t[n],e)}function R1(r,t,e){for(var n=[],i=t[0],a=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,u=r.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/e,u/e])}return n}function gE(r,t){return r=J2(r),H(St(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,i=e.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Og(o[0],o.slice(1)));break;case"MultiPolygon":A(i.coordinates,function(u){u[0]&&a.push(new Og(u[0],u.slice(1)))});break;case"LineString":a.push(new Bg([i.coordinates]));break;case"MultiLineString":a.push(new Bg(i.coordinates))}var s=new Q2(n[t||"name"],a,n.cp);return s.properties=n,s})}var Ng=At,E1=(function(r){N(t,r);function t(e){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Cn,n._rawTransformable=new Cn,n.name=e,n}return t.prototype.setBoundingRect=function(e,n,i,a){return this._rect=new ot(e,n,i,a),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,n,i,a){this._transformTo(e,n,i,a),this._viewRect=new ot(e,n,i,a)},t.prototype._transformTo=function(e,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ot(e,n,i,a));var u=s.parent;s.parent=null,s.decomposeTransform(),s.parent=u,this._updateTransform()},t.prototype.setCenter=function(e,n){e&&(this._center=[pt(e[0],n.getWidth()),pt(e[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var n=this.zoomLimit;n&&(n.max!=null&&(e=Math.min(n.max,e)),n.min!=null&&(e=Math.max(n.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),n=e.x+e.width/2,i=e.y+e.height/2;return[n,i]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=At([],a,e),i=At([],i,e),n.originX=a[0],n.originY=a[1],n.x=i[0]-a[0],n.y=i[1]-a[1],n.scaleX=n.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,n=this._rawTransformable;n.parent=e,e.updateTransform(),n.updateTransform(),su(this.transform||(this.transform=[]),n.transform||vr()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Ai(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,n=this._roamTransformable,i=new Cn;return i.transform=n.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,n,i){var a=n?this._rawTransform:this.transform;return i=i||[],a?Ng(i,e,a):Gt(i,e)},t.prototype.pointToData=function(e){var n=this.invTransform;return n?Ng([],e,n):[e[0],e[1]]},t.prototype.convertToPixel=function(e,n,i){var a=Fg(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(e,n,i){var a=Fg(n);return a===this?a.pointToData(i):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t})(Cn);function Fg(r){var t=r.seriesModel;return t?t.coordinateSystem:null}function zg(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function tP(r,t,e,n){var i=r.getZoom(),a=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(a):r.dataToPoint(a);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(zg(r,s),n)),o!=null){r.scaleX*=o,r.scaleY*=o;var u=(t.originX-r.x)*(o-1),l=(t.originY-r.y)*(o-1);r.x-=u,r.y-=l,r.updateTransform(),r.setCenter(zg(r,s),n),r.setZoom(o*i)}return{center:r.getCenter(),zoom:r.getZoom()}}var we=gt();function eP(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,k1(t,e,r),A(e,function(n){A(t.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,ut(rP,r))})}),t.wrapMethod("cloneShallow",ut(iP,r)),A(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,ut(nP,r))}),Ne(e[t.dataType]===t)}function rP(r,t){if(sP(this)){var e=k({},we(this).datas);e[this.dataType]=t,k1(t,e,r)}else tc(t,this.dataType,we(this).mainData,r);return t}function nP(r,t){return r.struct&&r.struct.update(),t}function iP(r,t){return A(we(t).datas,function(e,n){e!==t&&tc(e.cloneShallow(),n,t,r)}),t}function aP(r){var t=we(this).mainData;return r==null||t==null?t:we(t).datas[r]}function oP(){var r=we(this).mainData;return r==null?[{data:r}]:H(vt(we(r).datas),function(t){return{type:t,data:we(r).datas[t]}})}function sP(r){return we(r).mainData===r}function k1(r,t,e){we(r).datas={},A(t,function(n,i){tc(n,i,r,e)})}function tc(r,t,e,n){we(e).datas[t]=r,we(r).mainData=e,r.dataType=t,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=r),r.getLinkedData=aP,r.getLinkedDataAll=oP}function uP(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),i=e.getGraph(),a=i.data,o=n.mapArray(n.getName);a.filterSelf(function(s){var u=a.getItemModel(s),l=u.getShallow("category");if(l!=null){lt(l)&&(l=o[l]);for(var f=0;f<t.length;f++)if(!t[f].isSelected(l))return!1}return!0})})}function lP(r){var t={};r.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),i=e.getData(),a={};n.each(function(o){var s=n.getName(o);a["ec-"+s]=o;var u=n.getItemModel(o),l=u.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e.getColorFromPalette(s,t)),n.setItemVisual(o,"style",l);for(var f=["symbol","symbolSize","symbolKeepAspect"],h=0;h<f.length;h++){var v=u.getShallow(f[h],!0);v!=null&&n.setItemVisual(o,f[h],v)}}),n.count()&&i.each(function(o){var s=i.getItemModel(o),u=s.getShallow("category");if(u!=null){W(u)&&(u=a["ec-"+u]);var l=n.getItemVisual(u,"style"),f=i.ensureUniqueItemVisual(o,"style");k(f,l);for(var h=["symbol","symbolSize","symbolKeepAspect"],v=0;v<h.length;v++)i.setItemVisual(o,h[v],n.getItemVisual(u,h[v]))}})})}function ts(r){return r instanceof Array||(r=[r,r]),r}function fP(r){r.eachSeriesByType("graph",function(t){var e=t.getGraph(),n=t.getEdgeData(),i=ts(t.get("edgeSymbol")),a=ts(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),u=e.getEdgeByIndex(o),l=ts(s.getShallow("symbol",!0)),f=ts(s.getShallow("symbolSize",!0)),h=s.getModel("lineStyle").getLineStyle(),v=n.ensureUniqueItemVisual(o,"style");switch(k(v,h),v.stroke){case"source":{var c=u.node1.getVisual("style");v.stroke=c&&c.fill;break}case"target":{var c=u.node2.getVisual("style");v.stroke=c&&c.fill;break}}l[0]&&u.setVisual("fromSymbol",l[0]),l[1]&&u.setVisual("toSymbol",l[1]),f[0]&&u.setVisual("fromSymbolSize",f[0]),f[1]&&u.setVisual("toSymbolSize",f[1])})})}var Rh="-->",zu=function(r){return r.get("autoCurveness")||null},O1=function(r,t){var e=zu(r),n=20,i=[];if(lt(e))n=e;else if(F(e)){r.__curvenessList=e;return}t>n&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=i},to=function(r,t,e){var n=[r.id,r.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[e.uid,n,i].join(Rh)},B1=function(r){var t=r.split(Rh);return[t[0],t[2],t[1]].join(Rh)},hP=function(r,t){var e=to(r.node1,r.node2,t);return t.__edgeMap[e]},vP=function(r,t){var e=Eh(to(r.node1,r.node2,t),t),n=Eh(to(r.node2,r.node1,t),t);return e+n},Eh=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function cP(r){zu(r)&&(r.__curvenessList=[],r.__edgeMap={},O1(r))}function dP(r,t,e,n){if(zu(e)){var i=to(r,t,e),a=e.__edgeMap,o=a[B1(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(n)}}function ec(r,t,e,n){var i=zu(t),a=F(i);if(!i)return null;var o=hP(r,t);if(!o)return null;for(var s=-1,u=0;u<o.length;u++)if(o[u]===e){s=u;break}var l=vP(r,t);O1(t,l),r.lineStyle=r.lineStyle||{};var f=to(r.node1,r.node2,t),h=t.__curvenessList,v=a||l%2?0:1;if(o.isForward)return h[v+s];var c=B1(f),d=Eh(c,t),p=h[s+d+v];return n?a?i&&i[0]===0?(d+v)%2?p:-p:((d%2?0:1)+v)%2?p:-p:(d+v)%2?p:-p:h[s+d+v]}function N1(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(n){var i=n.getModel();n.setLayout([+i.get("x"),+i.get("y")])}),rc(e,r)}}function rc(r,t){r.eachEdge(function(e,n){var i=qe(e.getModel().get(["lineStyle","curveness"]),-ec(e,t,n,!0),0),a=Ke(e.node1.getLayout()),o=Ke(e.node2.getLayout()),s=[a,o];+i&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),e.setLayout(s)})}function pP(r,t){r.eachSeriesByType("graph",function(e){var n=e.get("layout"),i=e.coordinateSystem;if(i&&i.type!=="view"){var a=e.getData(),o=[];A(i.dimensions,function(v){o=o.concat(a.mapDimensionsAll(v))});for(var s=0;s<a.count();s++){for(var u=[],l=!1,f=0;f<o.length;f++){var h=a.get(o[f],s);isNaN(h)||(l=!0),u.push(h)}l?a.setItemLayout(s,i.dataToPoint(u)):a.setItemLayout(s,[NaN,NaN])}rc(a.graph,e)}else(!n||n==="none")&&N1(e)})}function pa(r){var t=r.coordinateSystem;if(t.type!=="view")return 1;var e=r.option.nodeScaleRatio,n=t.scaleX,i=t.getZoom(),a=(i-1)*e+1;return a/n}function ga(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var Gg=Math.PI,uf=[];function nc(r,t,e,n){var i=r.coordinateSystem;if(!(i&&i.type!=="view")){var a=i.getBoundingRect(),o=r.getData(),s=o.graph,u=a.width/2+a.x,l=a.height/2+a.y,f=Math.min(a.width,a.height)/2,h=o.count();if(o.setLayout({cx:u,cy:l}),!!h){if(e){var v=i.pointToData(n),c=v[0],d=v[1],p=[c-u,d-l];Vn(p,p),ya(p,p,f),e.setLayout([u+p[0],l+p[1]],!0);var g=r.get(["circular","rotateLabel"]);F1(e,g,u,l)}gP[t](r,s,o,f,u,l,h),s.eachEdge(function(y,m){var _=qe(y.getModel().get(["lineStyle","curveness"]),ec(y,r,m),0),S=Ke(y.node1.getLayout()),w=Ke(y.node2.getLayout()),b,x=(S[0]+w[0])/2,T=(S[1]+w[1])/2;+_&&(_*=3,b=[u*_+x*(1-_),l*_+T*(1-_)]),y.setLayout([S,w,b])})}}}var gP={value:function(r,t,e,n,i,a,o){var s=0,u=e.getSum("value"),l=Math.PI*2/(u||o);t.eachNode(function(f){var h=f.getValue("value"),v=l*(u?h:1)/2;s+=v,f.setLayout([n*Math.cos(s)+i,n*Math.sin(s)+a]),s+=v})},symbolSize:function(r,t,e,n,i,a,o){var s=0;uf.length=o;var u=pa(r);t.eachNode(function(h){var v=ga(h);isNaN(v)&&(v=2),v<0&&(v=0),v*=u;var c=Math.asin(v/2/n);isNaN(c)&&(c=Gg/2),uf[h.dataIndex]=c,s+=c*2});var l=(2*Gg-s)/o/2,f=0;t.eachNode(function(h){var v=l+uf[h.dataIndex];f+=v,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([n*Math.cos(f)+i,n*Math.sin(f)+a]),f+=v})}};function F1(r,t,e,n){var i=r.getGraphicEl();if(i){var a=r.getModel(),o=a.get(["label","rotate"])||0,s=i.getSymbolPath();if(t){var u=r.getLayout(),l=Math.atan2(u[1]-n,u[0]-e);l<0&&(l=Math.PI*2+l);var f=u[0]<e;f&&(l=l-Math.PI);var h=f?"left":"right";s.setTextConfig({rotation:-l,position:h,origin:"center"});var v=s.ensureState("emphasis");k(v.textConfig||(v.textConfig={}),{position:h})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function yP(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&nc(t,"symbolSize")})}var si=Cs;function mP(r,t,e){for(var n=r,i=t,a=e.rect,o=a.width,s=a.height,u=[a.x+o/2,a.y+s/2],l=e.gravity==null?.1:e.gravity,f=0;f<n.length;f++){var h=n[f];h.p||(h.p=Jr(o*(Math.random()-.5)+u[0],s*(Math.random()-.5)+u[1])),h.pp=Ke(h.p),h.edges=null}var v=e.friction==null?.6:e.friction,c=v,d,p;return{warmUp:function(){c=v*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(n,i);for(var y=[],m=n.length,_=0;_<i.length;_++){var S=i[_];if(!S.ignoreForceLayout){var w=S.n1,b=S.n2;Rr(y,b.p,w.p);var x=ka(y)-S.d,T=b.w/(w.w+b.w);isNaN(T)&&(T=0),Vn(y,y),!w.fixed&&si(w.p,w.p,y,T*x*c),!b.fixed&&si(b.p,b.p,y,-(1-T)*x*c)}}for(var _=0;_<m;_++){var C=n[_];C.fixed||(Rr(y,u,C.p),si(C.p,C.p,y,l*c))}for(var _=0;_<m;_++)for(var w=n[_],M=_+1;M<m;M++){var b=n[M];Rr(y,b.p,w.p);var x=ka(y);x===0&&(Qy(y,Math.random()-.5,Math.random()-.5),x=1);var D=(w.rep+b.rep)/x/x;!w.fixed&&si(w.pp,w.pp,y,D),!b.fixed&&si(b.pp,b.pp,y,-D)}for(var P=[],_=0;_<m;_++){var C=n[_];C.fixed||(Rr(P,C.p,C.pp),si(C.p,C.p,P,c),Gt(C.pp,C.p))}c=c*.992;var R=c<.01;p&&p(n,i,R),g&&g(R)}}}function _P(r){r.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},i=t.getGraph(),a=i.data,o=i.edgeData,s=t.getModel("force"),u=s.get("initLayout");t.preservedPoints?a.each(function(_){var S=a.getId(_);a.setItemLayout(_,n[S]||[NaN,NaN])}):!u||u==="none"?N1(t):u==="circular"&&nc(t,"value");var l=a.getDataExtent("value"),f=o.getDataExtent("value"),h=s.get("repulsion"),v=s.get("edgeLength"),c=F(h)?h:[h,h],d=F(v)?v:[v,v];d=[d[1],d[0]];var p=a.mapArray("value",function(_,S){var w=a.getItemLayout(S),b=xi(_,l,c);return isNaN(b)&&(b=(c[0]+c[1])/2),{w:b,rep:b,fixed:a.getItemModel(S).get("fixed"),p:!w||isNaN(w[0])||isNaN(w[1])?null:w}}),g=o.mapArray("value",function(_,S){var w=i.getEdgeByIndex(S),b=xi(_,f,d);isNaN(b)&&(b=(d[0]+d[1])/2);var x=w.getModel(),T=qe(w.getModel().get(["lineStyle","curveness"]),-ec(w,t,S,!0),0);return{n1:p[w.node1.dataIndex],n2:p[w.node2.dataIndex],d:b,curveness:T,ignoreForceLayout:x.get("ignoreForceLayout")}}),y=e.getBoundingRect(),m=mP(p,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var w=0,b=_.length;w<b;w++)_[w].fixed&&Gt(_[w].p,i.getNodeByIndex(w).getLayout())}),m.afterStep(function(_,S,w){for(var b=0,x=_.length;b<x;b++)_[b].fixed||i.getNodeByIndex(b).setLayout(_[b].p),n[a.getId(b)]=_[b].p;for(var b=0,x=S.length;b<x;b++){var T=S[b],C=i.getEdgeByIndex(b),M=T.n1.p,D=T.n2.p,P=C.getLayout();P=P?P.slice():[],P[0]=P[0]||[],P[1]=P[1]||[],Gt(P[0],M),Gt(P[1],D),+T.curveness&&(P[2]=[(M[0]+D[0])/2-(M[1]-D[1])*T.curveness,(M[1]+D[1])/2-(D[0]-M[0])*T.curveness]),C.setLayout(P)}}),t.forceLayout=m,t.preservedPoints=n,m.step()}else t.forceLayout=null})}function SP(r,t,e){var n=k(r.getBoxLayoutParams(),{aspect:e});return zn(n,{width:t.getWidth(),height:t.getHeight()})}function bP(r,t){var e=[];return r.eachSeriesByType("graph",function(n){var i=n.get("coordinateSystem");if(!i||i==="view"){var a=n.getData(),o=a.mapArray(function(g){var y=a.getItemModel(g);return[+y.get("x"),+y.get("y")]}),s=[],u=[];hw(o,s,u),u[0]-s[0]===0&&(u[0]+=1,s[0]-=1),u[1]-s[1]===0&&(u[1]+=1,s[1]-=1);var l=(u[0]-s[0])/(u[1]-s[1]),f=SP(n,t,l);isNaN(l)&&(s=[f.x,f.y],u=[f.x+f.width,f.y+f.height]);var h=u[0]-s[0],v=u[1]-s[1],c=f.width,d=f.height,p=n.coordinateSystem=new E1;p.zoomLimit=n.get("scaleLimit"),p.setBoundingRect(s[0],s[1],h,v),p.setViewRect(f.x,f.y,c,d),p.setCenter(n.get("center"),t),p.setZoom(n.get("zoom")),e.push(p)}}),e}var Vg=Qe.prototype,lf=lo.prototype,z1=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(z1);function ff(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var wP=(function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new z1},t.prototype.buildPath=function(e,n){ff(n)?Vg.buildPath.call(this,e,n):lf.buildPath.call(this,e,n)},t.prototype.pointAt=function(e){return ff(this.shape)?Vg.pointAt.call(this,e):lf.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var n=this.shape,i=ff(n)?[n.x2-n.x1,n.y2-n.y1]:lf.tangentAt.call(this,e);return Vn(i,i)},t})(ft),hf=["fromSymbol","toSymbol"];function Hg(r){return"_"+r+"Type"}function Wg(r,t,e){var n=t.getItemVisual(e,r);if(!n||n==="none")return n;var i=t.getItemVisual(e,r+"Size"),a=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),u=Bv(i),l=Ru(o||0,u);return n+u+l+(a||"")+(s||"")}function Yg(r,t,e){var n=t.getItemVisual(e,r);if(!(!n||n==="none")){var i=t.getItemVisual(e,r+"Size"),a=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),u=Bv(i),l=Ru(o||0,u),f=jr(n,-u[0]/2+l[0],-u[1]/2+l[1],u[0],u[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=r,f}}function xP(r){var t=new wP({name:"line",subPixelOptimize:!0});return kh(t.shape,r),t}function kh(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var TP=(function(r){N(t,r);function t(e,n,i){var a=r.call(this)||this;return a._createLine(e,n,i),a}return t.prototype._createLine=function(e,n,i){var a=e.hostModel,o=e.getItemLayout(n),s=xP(o);s.shape.percent=0,ae(s,{shape:{percent:1}},a,n),this.add(s),A(hf,function(u){var l=Yg(u,e,n);this.add(l),this[Hg(u)]=Wg(u,e,n)},this),this._updateCommonStl(e,n,i)},t.prototype.updateData=function(e,n,i){var a=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(n),u={shape:{}};kh(u.shape,s),It(o,u,a,n),A(hf,function(l){var f=Wg(l,e,n),h=Hg(l);if(this[h]!==f){this.remove(this.childOfName(l));var v=Yg(l,e,n);this.add(v)}this[h]=f},this),this._updateCommonStl(e,n,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,n,i){var a=e.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,u=i&&i.blurLineStyle,l=i&&i.selectLineStyle,f=i&&i.labelStatesModels,h=i&&i.emphasisDisabled,v=i&&i.focus,c=i&&i.blurScope;if(!i||e.hasItemOption){var d=e.getItemModel(n),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),u=d.getModel(["blur","lineStyle"]).getLineStyle(),l=d.getModel(["select","lineStyle"]).getLineStyle(),h=p.get("disabled"),v=p.get("focus"),c=p.get("blurScope"),f=Wn(d)}var g=e.getItemVisual(n,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=u,o.ensureState("select").style=l,A(hf,function(b){var x=this.childOfName(b);if(x){x.setColor(y),x.style.opacity=g.opacity;for(var T=0;T<oe.length;T++){var C=oe[T],M=o.getState(C);if(M){var D=M.style||{},P=x.ensureState(C),R=P.style||(P.style={});D.stroke!=null&&(R[x.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(R.opacity=D.opacity)}}x.markRedraw()}},this);var m=a.getRawValue(n);Ii(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(b,x){return a.getFormattedLabel(b,x,e.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?e.getName(n):isFinite(m)?bt(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var w=S.get("distance");F(w)||(w=[w,w]),_.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),Zr(this,v,c,h)},t.prototype.highlight=function(){Ha(this)},t.prototype.downplay=function(){Wa(this)},t.prototype.updateLayout=function(e,n){this.setLinePoints(e.getItemLayout(n))},t.prototype.setLinePoints=function(e){var n=this.childOfName("line");kh(n.shape,e),n.dirty()},t.prototype.beforeUpdate=function(){var e=this,n=e.childOfName("fromSymbol"),i=e.childOfName("toSymbol"),a=e.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var u=e.childOfName("line");if(!this.__dirty&&!u.__dirty)return;var l=u.shape.percent,f=u.pointAt(0),h=u.pointAt(l),v=Rr([],h,f);Vn(v,v);function c(M,D){var P=M.__specifiedRotation;if(P==null){var R=u.tangentAt(D);M.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(R[1],R[0]))}else M.attr("rotation",P)}if(n&&(n.setPosition(f),c(n,0),n.scaleX=n.scaleY=o*l,n.markRedraw()),i&&(i.setPosition(h),c(i,1),i.scaleX=i.scaleY=o*l,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var d=void 0,p=void 0,g=a.__labelDistance,y=g[0]*o,m=g[1]*o,_=l/2,S=u.tangentAt(_),w=[S[1],-S[0]],b=u.pointAt(_);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var x=S[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var T=-Math.atan2(S[1],S[0]);h[0]<f[0]&&(T=Math.PI+T),a.rotation=T}var C=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=m,p="top";break;default:C=0,p="middle"}switch(a.__position){case"end":a.x=v[0]*y+h[0],a.y=v[1]*m+h[1],d=v[0]>.8?"left":v[0]<-.8?"right":"center",p=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":a.x=-v[0]*y+f[0],a.y=-v[1]*m+f[1],d=v[0]>.8?"right":v[0]<-.8?"left":"center",p=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=y*x+f[0],a.y=f[1]+C,d=S[0]<0?"right":"left",a.originX=-y*x,a.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+C,d="center",a.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-y*x+h[0],a.y=h[1]+C,d=S[0]>=0?"right":"left",a.originX=y*x,a.originY=-C;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||d})}},t})(Tt),G1=(function(){function r(t){this.group=new Tt,this._LineCtor=t||TP}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=Ug(t);t.diff(a).add(function(s){e._doAdd(t,s,o)}).update(function(s,u){e._doUpdate(a,t,u,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ug(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(s){!s.isGroup&&!CP(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var a=e.getItemLayout(i);if(vf(a)){var o=new this._LineCtor(e,i,this._seriesScope);o.traverse(n),this.group.add(o),e.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){Pi(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,n){var i=t.getItemLayout(e);if(vf(i)){var a=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,a),this.group.add(a)}},r.prototype._doUpdate=function(t,e,n,i,a){var o=t.getItemGraphicEl(n);if(!vf(e.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(e,i,a):o=new this._LineCtor(e,i,a),e.setItemGraphicEl(i,o),this.group.add(o)},r})();function CP(r){return r.animators&&r.animators.length>0}function Ug(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Wn(t)}}function Xg(r){return isNaN(r[0])||isNaN(r[1])}function vf(r){return r&&!Xg(r[0])&&!Xg(r[1])}var cf=[],df=[],pf=[],ui=qt,gf=Hr,$g=Math.abs;function Zg(r,t,e){for(var n=r[0],i=r[1],a=r[2],o=1/0,s,u=e*e,l=.1,f=.1;f<=.9;f+=.1){cf[0]=ui(n[0],i[0],a[0],f),cf[1]=ui(n[1],i[1],a[1],f);var h=$g(gf(cf,t)-u);h<o&&(o=h,s=f)}for(var v=0;v<32;v++){var c=s+l;df[0]=ui(n[0],i[0],a[0],s),df[1]=ui(n[1],i[1],a[1],s),pf[0]=ui(n[0],i[0],a[0],c),pf[1]=ui(n[1],i[1],a[1],c);var h=gf(df,t)-u;if($g(h)<.01)break;var d=gf(pf,t)-u;l/=2,h<0?d>=0?s=s+l:s=s-l:d>=0?s=s-l:s=s+l}return s}function yf(r,t){var e=[],n=Oa,i=[[],[],[]],a=[[],[]],o=[];t/=2,r.eachEdge(function(s,u){var l=s.getLayout(),f=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");l.__original||(l.__original=[Ke(l[0]),Ke(l[1])],l[2]&&l.__original.push(Ke(l[2])));var v=l.__original;if(l[2]!=null){if(Gt(i[0],v[0]),Gt(i[1],v[2]),Gt(i[2],v[1]),f&&f!=="none"){var c=ga(s.node1),d=Zg(i,v[0],c*t);n(i[0][0],i[1][0],i[2][0],d,e),i[0][0]=e[3],i[1][0]=e[4],n(i[0][1],i[1][1],i[2][1],d,e),i[0][1]=e[3],i[1][1]=e[4]}if(h&&h!=="none"){var c=ga(s.node2),d=Zg(i,v[1],c*t);n(i[0][0],i[1][0],i[2][0],d,e),i[1][0]=e[1],i[2][0]=e[2],n(i[0][1],i[1][1],i[2][1],d,e),i[1][1]=e[1],i[2][1]=e[2]}Gt(l[0],i[0]),Gt(l[1],i[2]),Gt(l[2],i[1])}else{if(Gt(a[0],v[0]),Gt(a[1],v[1]),Rr(o,a[1],a[0]),Vn(o,o),f&&f!=="none"){var c=ga(s.node1);Cs(a[0],a[0],o,c*t)}if(h&&h!=="none"){var c=ga(s.node2);Cs(a[1],a[1],o,-c*t)}Gt(l[0],a[0]),Gt(l[1],a[1])}})}function qg(r){return r.type==="view"}var DP=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){var i=new q0,a=new G1,o=this.group;this._controller=new Y2(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(e,n,i){var a=this,o=e.coordinateSystem;this._model=e;var s=this._symbolDraw,u=this._lineDraw,l=this.group;if(qg(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?l.attr(f):It(l,f,e)}yf(e.getGraph(),pa(e));var h=e.getData();s.updateData(h);var v=e.getEdgeData();u.updateData(v),this._updateNodeAndLinkScale(),this._updateController(e,n,i),clearTimeout(this._layoutTimeout);var c=e.forceLayout,d=e.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,d);var p=e.get("layout");h.graph.eachNode(function(_){var S=_.dataIndex,w=_.getGraphicEl(),b=_.getModel();if(w){w.off("drag").off("dragend");var x=b.get("draggable");x&&w.on("drag",function(C){switch(p){case"force":c.warmUp(),!a._layouting&&a._startForceLayoutIteration(c,d),c.setFixed(S),h.setItemLayout(S,[w.x,w.y]);break;case"circular":h.setItemLayout(S,[w.x,w.y]),_.setLayout({fixed:!0},!0),nc(e,"symbolSize",_,[C.offsetX,C.offsetY]),a.updateLayout(e);break;case"none":default:h.setItemLayout(S,[w.x,w.y]),rc(e.getGraph(),e),a.updateLayout(e);break}}).on("dragend",function(){c&&c.setUnfixed(S)}),w.setDraggable(x,!!b.get("cursor"));var T=b.get(["emphasis","focus"]);T==="adjacency"&&(at(w).focus=_.getAdjacentDataIndices())}}),h.graph.eachEdge(function(_){var S=_.getGraphicEl(),w=_.getModel().get(["emphasis","focus"]);S&&w==="adjacency"&&(at(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),y=h.getLayout("cx"),m=h.getLayout("cy");h.graph.eachNode(function(_){F1(_,g,y,m)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,n){var i=this;(function a(){e.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(e,n,i){var a=this,o=this._controller,s=this._controllerHost,u=this.group;if(o.setPointerChecker(function(l,f,h){var v=u.getBoundingRect();return v.applyTransform(u.transform),v.contain(f,h)&&!Z2(l,i,e)}),!qg(e.coordinateSystem)){o.disable();return}o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(l){U2(s,l.dx,l.dy),i.dispatchAction({seriesId:e.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){X2(s,l.scale,l.originX,l.originY),i.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY}),a._updateNodeAndLinkScale(),yf(e.getGraph(),pa(e)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),i=pa(e);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(e){yf(e.getGraph(),pa(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t})(Bt);function li(r){return"_EC_"+r}var MP=(function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var n=this._nodesMap;if(!n[li(t)]){var i=new xn(t,e);return i.hostGraph=this,this.nodes.push(i),n[li(t)]=i,i}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[li(t)]},r.prototype.addEdge=function(t,e,n){var i=this._nodesMap,a=this._edgesMap;if(lt(t)&&(t=this.nodes[t]),lt(e)&&(e=this.nodes[e]),t instanceof xn||(t=i[li(t)]),e instanceof xn||(e=i[li(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new V1(t,e,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),a[o]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof xn&&(t=t.id),e instanceof xn&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&t.call(e,n[a],a)},r.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(e,n[a],a)},r.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof xn||(e=this._nodesMap[li(e)]),!!e){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,e,null))for(var s=[e];s.length;)for(var u=s.shift(),l=u[a],o=0;o<l.length;o++){var f=l[o],h=f.node1===u?f.node2:f.node1;if(!h.__visited){if(t.call(i,h,u))return;s.push(h),h.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=t.count();a<o;a++)n[t.getRawIndex(a)].dataIndex=a;e.filterSelf(function(s){var u=i[e.getRawIndex(s)];return u.node1.dataIndex>=0&&u.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=e.count();a<o;a++)i[e.getRawIndex(a)].dataIndex=a},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,n=this.edges,i=0;i<e.length;i++)t.addNode(e[i].id,e[i].dataIndex);for(var i=0;i<n.length;i++){var a=n[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},r})(),xn=(function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=e??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},r.prototype.getTrajectoryDataIndices=function(){for(var t=q(),e=q(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var u=a[s];s++,e.set(u.dataIndex,!0);for(var l=0;l<u.inEdges.length;l++)t.set(u.inEdges[l].dataIndex,!0),a.push(u.inEdges[l].node1)}for(s=0;s<o.length;){var f=o[s];s++,e.set(f.dataIndex,!0);for(var l=0;l<f.outEdges.length;l++)t.set(f.outEdges[l].dataIndex,!0),o.push(f.outEdges[l].node2)}}}return{edge:t.keys(),node:e.keys()}},r})(),V1=(function(){function r(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=n??-1}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=q(),e=q();t.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],a=0;a<n.length;){var o=n[a];a++,e.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(a=0;a<i.length;){var u=i[a];a++,e.set(u.dataIndex,!0);for(var s=0;s<u.outEdges.length;s++)t.set(u.outEdges[s].dataIndex,!0),i.push(u.outEdges[s].node2)}return{edge:t.keys(),node:e.keys()}},r})();function H1(r,t){return{getValue:function(e){var n=this[r][t];return n.getStore().get(n.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,n){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,n)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,n){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,n)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}Ut(xn,H1("hostGraph","data"));Ut(V1,H1("hostGraph","edgeData"));function AP(r,t,e,n,i){for(var a=new MP(n),o=0;o<r.length;o++)a.addNode(yr(r[o].id,r[o].name,o),o);for(var s=[],u=[],l=0,o=0;o<t.length;o++){var f=t[o],h=f.source,v=f.target;a.addEdge(h,v,l)&&(u.push(f),s.push(yr(Oe(f.id,null),h+" > "+v)),l++)}var c=e.get("coordinateSystem"),d;if(c==="cartesian2d"||c==="polar")d=Ei(r,e);else{var p=vo.get(c),g=p?p.dimensions||[]:[];rt(g,"value")<0&&g.concat(["value"]);var y=Cu(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new Ur(y,e),d.initData(r)}var m=new Ur(["value"],e);return m.initData(u,s),i&&i(d,m),eP({mainData:d,struct:a,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var LP=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new b_(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Ga(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,n){var i=e.edges||e.links||[],a=e.data||e.nodes||[],o=this;if(a&&i){cP(this);var s=AP(a,i,this,!0,u);return A(s.edges,function(l){dP(l.node1,l.node2,this,l.dataIndex)},this),s.data}function u(l,f){l.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var h=mt.prototype.getModel;function v(d,p){var g=h.call(this,d,p);return g.resolveParentPath=c,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=c,d.getModel=v,d});function c(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(e,i),s=a.graph.getEdgeByIndex(e),u=a.getName(s.node1.dataIndex),l=a.getName(s.node2.dataIndex),f=[];return u!=null&&f.push(u),l!=null&&f.push(l),Kr("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var h=$0({series:this,dataIndex:e,multipleSeries:n});return h},t.prototype._updateCategoriesData=function(){var e=H(this.option.categories||[],function(i){return i.value!=null?i:k({value:0},i)}),n=new Ur(["value"],this);n.initData(e),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t})(Yt),PP={type:"graphRoam",event:"graphRoam",update:"none"};function yE(r){r.registerChartView(DP),r.registerSeriesModel(LP),r.registerProcessor(uP),r.registerVisual(lP),r.registerVisual(fP),r.registerLayout(pP),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,yP),r.registerLayout(_P),r.registerCoordinateSystem("graphView",{dimensions:E1.dimensions,create:bP}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Mt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Mt),r.registerAction(PP,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=tP(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var IP=(function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var n,i=e.getComponent("xAxis",this.get("xAxisIndex")),a=e.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),u;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),u=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),u=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var l=["x","y"],f=t.layout==="horizontal"?0:1,h=this._baseAxisDim=l[f],v=l[1-f],c=[i,a],d=c[f].get("type"),p=c[1-f].get("type"),g=t.data;if(g&&u){var y=[];A(g,function(S,w){var b;F(S)?(b=S.slice(),S.unshift(w)):F(S.value)?(b=k({},S),b.value=b.value.slice(),S.value.unshift(w)):b=S,y.push(b)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:th(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:th(p),dimsDef:m.slice()}];return S_(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:ut(f0,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r})(),W1=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t})(Yt);Ut(W1,IP,!0);var RP=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var u=e.get("layout")==="horizontal"?1:0;a.diff(s).add(function(l){if(a.hasValue(l)){var f=a.getItemLayout(l),h=Kg(f,a,l,u,!0);a.setItemGraphicEl(l,h),o.add(h)}}).update(function(l,f){var h=s.getItemGraphicEl(f);if(!a.hasValue(l)){o.remove(h);return}var v=a.getItemLayout(l);h?(mu(h),Y1(v,h,a,l)):h=Kg(v,a,l,u),o.add(h),a.setItemGraphicEl(l,h)}).remove(function(l){var f=s.getItemGraphicEl(l);f&&o.remove(f)}).execute(),this._data=a},t.prototype.remove=function(e){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t})(Bt),EP=(function(){function r(){}return r})(),kP=(function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new EP},t.prototype.buildPath=function(e,n){var i=n.points,a=0;for(e.moveTo(i[a][0],i[a][1]),a++;a<4;a++)e.lineTo(i[a][0],i[a][1]);for(e.closePath();a<i.length;a++)e.moveTo(i[a][0],i[a][1]),a++,e.lineTo(i[a][0],i[a][1])},t})(ft);function Kg(r,t,e,n,i){var a=r.ends,o=new kP({shape:{points:i?OP(a,n,r):a}});return Y1(r,o,t,e,i),o}function Y1(r,t,e,n,i){var a=e.hostModel,o=r0[i?"initProps":"updateProps"];o(t,{shape:{points:r.ends}},a,n),t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(n),u=s.getModel("emphasis");Ya(t,s),Zr(t,u.get("focus"),u.get("blurScope"),u.get("disabled"))}function OP(r,t,e){return H(r,function(n){return n=n.slice(),n[t]=e.initBaseline,n})}var Pa=A;function BP(r){var t=NP(r);Pa(t,function(e){var n=e.seriesModels;n.length&&(FP(e),Pa(n,function(i,a){zP(i,e.boxOffsetList[a],e.boxWidthList[a])}))})}function NP(r){var t=[],e=[];return r.eachSeriesByType("boxplot",function(n){var i=n.getBaseAxis(),a=rt(e,i);a<0&&(a=e.length,e[a]=i,t[a]={axis:i,seriesModels:[]}),t[a].seriesModels.push(n)}),t}function FP(r){var t=r.axis,e=r.seriesModels,n=e.length,i=r.boxWidthList=[],a=r.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var u=0;Pa(e,function(d){u=Math.max(u,d.getData().count())});var l=t.getExtent();s=Math.abs(l[1]-l[0])/u}Pa(e,function(d){var p=d.get("boxWidth");F(p)||(p=[p,p]),o.push([pt(p[0],s)||0,pt(p[1],s)||0])});var f=s*.8-2,h=f/n*.3,v=(f-h*(n-1))/n,c=v/2-f/2;Pa(e,function(d,p){a.push(c),c+=h+v,i.push(Math.min(Math.max(v,o[p][0]),o[p][1]))})}function zP(r,t,e){var n=r.coordinateSystem,i=r.getData(),a=e/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,u=["x","y"],l=i.mapDimension(u[o]),f=i.mapDimensionsAll(u[s]);if(l==null||f.length<5)return;for(var h=0;h<i.count();h++){var v=i.get(l,h),c=_(v,f[2],h),d=_(v,f[0],h),p=_(v,f[1],h),g=_(v,f[3],h),y=_(v,f[4],h),m=[];S(m,p,!1),S(m,g,!0),m.push(d,p,y,g),w(m,d),w(m,y),w(m,c),i.setItemLayout(h,{initBaseline:c[s],ends:m})}function _(b,x,T){var C=i.get(x,T),M=[];M[o]=b,M[s]=C;var D;return isNaN(b)||isNaN(C)?D=[NaN,NaN]:(D=n.dataToPoint(M),D[o]+=t),D}function S(b,x,T){var C=x.slice(),M=x.slice();C[o]+=a,M[o]-=a,T?b.push(C,M):b.push(M,C)}function w(b,x){var T=x.slice(),C=x.slice();T[o]-=a,C[o]+=a,b.push(T,C)}}function GP(r,t){t=t||{};for(var e=[],n=[],i=t.boundIQR,a=i==="none"||i===0,o=0;o<r.length;o++){var s=gm(r[o].slice()),u=fs(s,.25),l=fs(s,.5),f=fs(s,.75),h=s[0],v=s[s.length-1],c=(i??1.5)*(f-u),d=a?h:Math.max(h,u-c),p=a?v:Math.min(v,f+c),g=t.itemNameFormatter,y=K(g)?g({value:o}):W(g)?g.replace("{value}",o+""):o+"";e.push([y,d,u,l,f,p]);for(var m=0;m<s.length;m++){var _=s[m];if(_<d||_>p){var S=[y,_];n.push(S)}}}return{boxData:e,outliers:n}}var VP={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Qt){var n="";Ht(n)}var i=GP(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function mE(r){r.registerSeriesModel(W1),r.registerChartView(RP),r.registerLayout(BP),r.registerTransform(VP)}var jg={color:"fill",borderColor:"stroke"},HP={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},dr=gt(),WP=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,n){return Ei(null,this)},t.prototype.getDataParams=function(e,n,i){var a=r.prototype.getDataParams.call(this,e,n);return i&&(a.info=dr(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t})(Yt);function YP(r,t){return t=t||[0,0],H(["x","y"],function(e,n){var i=this.getAxis(e),a=t[n],o=r[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function UP(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:tt(YP,r)}}}function XP(r,t){return t=t||[0,0],H([0,1],function(e){var n=t[e],i=r[e]/2,a=[],o=[];return a[e]=n-i,o[e]=n+i,a[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(a)[e]-this.dataToPoint(o)[e])},this)}function $P(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:tt(XP,r)}}}function ZP(r,t){var e=this.getAxis(),n=t instanceof Array?t[0]:t,i=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(n-i)-e.dataToCoord(n+i))}function qP(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:tt(ZP,r)}}}function KP(r,t){return t=t||[0,0],H(["Radius","Angle"],function(e,n){var i="get"+e+"Axis",a=this[i](),o=t[n],s=r[n]/2,u=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return e==="Angle"&&(u=u*Math.PI/180),u},this)}function jP(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=e.dataToAngle(i[1]),s=r.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:tt(KP,r)}}}function QP(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(n,i){return r.dataToPoint(n,i)}}}}function JP(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||G(r,"text")))}function tI(r,t,e){var n=r,i,a,o;if(t==="text")o=n;else{o={},G(n,"text")&&(o.text=n.text),G(n,"rich")&&(o.rich=n.rich),G(n,"textFill")&&(o.fill=n.textFill),G(n,"textStroke")&&(o.stroke=n.textStroke),G(n,"fontFamily")&&(o.fontFamily=n.fontFamily),G(n,"fontSize")&&(o.fontSize=n.fontSize),G(n,"fontStyle")&&(o.fontStyle=n.fontStyle),G(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=G(n,"textPosition");e?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),G(n,"textPosition")&&(i.position=n.textPosition),G(n,"textOffset")&&(i.offset=n.textOffset),G(n,"textRotation")&&(i.rotation=n.textRotation),G(n,"textDistance")&&(i.distance=n.textDistance)}return Qg(o,r),A(o.rich,function(u){Qg(u,u)}),{textConfig:i,textContent:a}}function Qg(r,t){t&&(t.font=t.textFont||t.font,G(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),G(t,"textAlign")&&(r.align=t.textAlign),G(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),G(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),G(t,"textWidth")&&(r.width=t.textWidth),G(t,"textHeight")&&(r.height=t.textHeight),G(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),G(t,"textPadding")&&(r.padding=t.textPadding),G(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),G(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),G(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),G(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),G(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),G(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),G(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function Jg(r,t,e){var n=r;n.textPosition=n.textPosition||e.position||"inside",e.offset!=null&&(n.textOffset=e.offset),e.rotation!=null&&(n.textRotation=e.rotation),e.distance!=null&&(n.textDistance=e.distance);var i=n.textPosition.indexOf("inside")>=0,a=r.fill||"#000";ty(n,t);var o=n.textFill==null;return i?o&&(n.textFill=e.insideFill||"#fff",!n.textStroke&&e.insideStroke&&(n.textStroke=e.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||e.outsideFill||"#000"),!n.textStroke&&e.outsideStroke&&(n.textStroke=e.outsideStroke)),n.text=t.text,n.rich=t.rich,A(t.rich,function(s){ty(s,s)}),n}function ty(r,t){t&&(G(t,"fill")&&(r.textFill=t.fill),G(t,"stroke")&&(r.textStroke=t.fill),G(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),G(t,"font")&&(r.font=t.font),G(t,"fontStyle")&&(r.fontStyle=t.fontStyle),G(t,"fontWeight")&&(r.fontWeight=t.fontWeight),G(t,"fontSize")&&(r.fontSize=t.fontSize),G(t,"fontFamily")&&(r.fontFamily=t.fontFamily),G(t,"align")&&(r.textAlign=t.align),G(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),G(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),G(t,"width")&&(r.textWidth=t.width),G(t,"height")&&(r.textHeight=t.height),G(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),G(t,"padding")&&(r.textPadding=t.padding),G(t,"borderColor")&&(r.textBorderColor=t.borderColor),G(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),G(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),G(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),G(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),G(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),G(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),G(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),G(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),G(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),G(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var U1={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},ey=vt(U1);Be(je,function(r,t){return r[t]=1,r},{});je.join(", ");var Js=["","style","shape","extra"],Di=gt();function ic(r,t,e,n,i){var a=r+"Animation",o=cv(r,n,i)||{},s=Di(t).userDuring;return o.duration>0&&(o.during=s?tt(sI,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),k(o,e[a]),o}function eI(r,t,e,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=e.isAnimationEnabled(),u=Di(r),l=t.style;u.userDuring=t.during;var f={},h={};if(lI(r,t,h),ny("shape",t,h),ny("extra",t,h),!a&&s&&(uI(r,t,f),ry("shape",r,t,f),ry("extra",r,t,f),fI(r,t,l,f)),h.style=l,nI(r,h,o),aI(r,t),s)if(a){var v={};A(Js,function(d){var p=d?t[d]:t;p&&p.enterFrom&&(d&&(v[d]=v[d]||{}),k(d?v[d]:v,p.enterFrom))});var c=ic("enter",r,t,e,i);c.duration>0&&r.animateFrom(v,c)}else iI(r,t,i||0,e,f);rI(r,t),l?r.dirty():r.markRedraw()}function rI(r,t){for(var e=Di(r).leaveToProps,n=0;n<Js.length;n++){var i=Js[n],a=i?t[i]:t;a&&a.leaveTo&&(e||(e=Di(r).leaveToProps={}),i&&(e[i]=e[i]||{}),k(i?e[i]:e,a.leaveTo))}}function ac(r,t,e,n){if(r){var i=r.parent,a=Di(r).leaveToProps;if(a){var o=ic("update",r,t,e,0);o.done=function(){i.remove(r)},r.animateTo(a,o)}else i.remove(r)}}function bi(r){return r==="all"}function nI(r,t,e){var n=t.style;if(!r.isGroup&&n){if(e){r.useStyle({});for(var i=r.animators,a=0;a<i.length;a++){var o=i[a];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}t&&(t.style=null,t&&r.attr(t),t.style=n)}function iI(r,t,e,n,i){if(i){var a=ic("update",r,t,n,e);a.duration>0&&r.animateFrom(i,a)}}function aI(r,t){G(t,"silent")&&(r.silent=t.silent),G(t,"ignore")&&(r.ignore=t.ignore),r instanceof Hn&&G(t,"invisible")&&(r.invisible=t.invisible),r instanceof ft&&G(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var Ue={},oI={setTransform:function(r,t){return Ue.el[r]=t,this},getTransform:function(r){return Ue.el[r]},setShape:function(r,t){var e=Ue.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=Ue.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=Ue.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=Ue.el.style;if(t)return t[r]},setExtra:function(r,t){var e=Ue.el.extra||(Ue.el.extra={});return e[r]=t,this},getExtra:function(r){var t=Ue.el.extra;if(t)return t[r]}};function sI(){var r=this,t=r.el;if(t){var e=Di(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}Ue.el=t,n(oI)}}function ry(r,t,e,n){var i=e[r];if(i){var a=t[r],o;if(a){var s=e.transition,u=i.transition;if(u)if(!o&&(o=n[r]={}),bi(u))k(o,a);else for(var l=Lt(u),f=0;f<l.length;f++){var h=l[f],v=a[h];o[h]=v}else if(bi(s)||rt(s,r)>=0){!o&&(o=n[r]={});for(var c=vt(a),f=0;f<c.length;f++){var h=c[f],v=a[h];hI(i[h],v)&&(o[h]=v)}}}}}function ny(r,t,e){var n=t[r];if(n)for(var i=e[r]={},a=vt(n),o=0;o<a.length;o++){var s=a[o];i[s]=_a(n[s])}}function uI(r,t,e){for(var n=t.transition,i=bi(n)?je:Lt(n||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function lI(r,t,e){for(var n=0;n<ey.length;n++){var i=ey[n],a=U1[i],o=t[i];o&&(e[a[0]]=o[0],e[a[1]]=o[1])}for(var n=0;n<je.length;n++){var s=je[n];t[s]!=null&&(e[s]=t[s])}}function fI(r,t,e,n){if(e){var i=r.style,a;if(i){var o=e.transition,s=t.transition;if(o&&!bi(o)){var u=Lt(o);!a&&(a=n.style={});for(var l=0;l<u.length;l++){var f=u[l],h=i[f];a[f]=h}}else if(r.getAnimationStyleProps&&(bi(s)||bi(o)||rt(s,"style")>=0)){var v=r.getAnimationStyleProps(),c=v?v.style:null;if(c){!a&&(a=n.style={});for(var d=vt(e),l=0;l<d.length;l++){var f=d[l];if(c[f]){var h=i[f];a[f]=h}}}}}}}function hI(r,t){return Wt(r)?r!==t:r!=null&&isFinite(r)}var X1=gt(),vI=["percent","easing","shape","style","extra"];function cI(r){r.stopAnimation("keyframe"),r.attr(X1(r))}function $1(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(F(t)){A(t,function(s){$1(r,s,e)});return}var n=t.keyframes,i=t.duration;if(e&&i==null){var a=cv("enter",e,0);i=a&&a.duration}if(!(!n||!i)){var o=X1(r);A(Js,function(s){if(!(s&&!r[s])){var u;n.sort(function(l,f){return l.percent-f.percent}),A(n,function(l){var f=r.animators,h=s?l[s]:l;if(h){var v=vt(h);if(s||(v=St(v,function(p){return rt(vI,p)<0})),!!v.length){u||(u=r.animate(s,t.loop,!0),u.scope="keyframe");for(var c=0;c<f.length;c++)f[c]!==u&&f[c].targetName===u.targetName&&f[c].stopTracks(v);s&&(o[s]=o[s]||{});var d=s?o[s]:o;A(v,function(p){d[p]=((s?r[s]:r)||{})[p]}),u.whenWithKeys(i*l.percent,h,v,l.easing)}}}),u&&u.delay(t.delay||0).duration(i).start(t.easing)}})}}}var pr="emphasis",Gr="normal",oc="blur",sc="select",Qr=[Gr,pr,oc,sc],mf={normal:["itemStyle"],emphasis:[pr,"itemStyle"],blur:[oc,"itemStyle"],select:[sc,"itemStyle"]},_f={normal:["label"],emphasis:[pr,"label"],blur:[oc,"label"],select:[sc,"label"]},dI=["x","y"],pI="e\0\0",pe={normal:{},emphasis:{},blur:{},select:{}},gI={cartesian2d:UP,geo:$P,single:qP,polar:jP,calendar:QP};function Oh(r){return r instanceof ft}function Bh(r){return r instanceof Hn}function yI(r,t){t.copyTransform(r),Bh(t)&&Bh(r)&&(t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t.invisible=r.invisible,t.ignore=r.ignore,Oh(t)&&Oh(r)&&t.setShape(r.shape))}var mI=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this._progressiveEls=null;var o=this._data,s=e.getData(),u=this.group,l=iy(e,s,n,i);o||u.removeAll(),s.diff(o).add(function(h){Sf(i,null,h,l(h,a),e,u,s)}).remove(function(h){var v=o.getItemGraphicEl(h);v&&ac(v,dr(v).option,e)}).update(function(h,v){var c=o.getItemGraphicEl(v);Sf(i,c,h,l(h,a),e,u,s)}).execute();var f=e.get("clip",!0)?n_(e.coordinateSystem,!1,e):null;f?u.setClipPath(f):u.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,n,i){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,n,i,a,o){var s=n.getData(),u=iy(n,s,i,a),l=this._progressiveEls=[];function f(c){c.isGroup||(c.incremental=!0,c.ensureState("emphasis").hoverLayer=!0)}for(var h=e.start;h<e.end;h++){var v=Sf(null,null,h,u(h,o),n,this.group,s);v&&(v.traverse(f),l.push(v))}},t.prototype.eachRendered=function(e){Pi(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,n,i,a){var o=n.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},t.type="custom",t})(Bt);function uc(r){var t=r.type,e;if(t==="path"){var n=r.shape,i=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=K1(n);e=ho(a,null,i,n.layout||"center"),dr(e).customPathData=a}else if(t==="image")e=new Je({}),dr(e).customImagePath=r.style.image;else if(t==="text")e=new Pt({});else if(t==="group")e=new Tt;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=pv(t);if(!o){var s="";Ht(s)}e=new o}return dr(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function lc(r,t,e,n,i,a,o){cI(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=dI);var u=n&&n.style;if(u){if(t.type==="text"){var l=u;G(l,"textFill")&&(l.fill=l.textFill),G(l,"textStroke")&&(l.stroke=l.textStroke)}var f=void 0,h=Oh(t)?u.decal:null;r&&h&&(h.dirty=!0,f=Zs(h,r)),u.__decalPattern=f}if(Bh(t)&&u){var f=u.__decalPattern;f&&(u.decal=f)}eI(t,n,a,{dataIndex:e,isInit:o,clearStyle:!0}),$1(t,n.keyframeAnimation,a)}function Z1(r,t,e,n,i){var a=t.isGroup?null:t,o=i&&i[r].cfg;if(a){var s=a.ensureState(r);if(n===!1){var u=a.getState(r);u&&(u.style=null)}else s.style=n||null;o&&(s.textConfig=o),Im(a)}}function _I(r,t,e){if(!r.isGroup){var n=r,i=e.currentZ,a=e.currentZLevel;n.z=i,n.zlevel=a;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<Qr.length;s++)SI(n,t,Qr[s])}}function SI(r,t,e){var n=e===Gr,i=n?t:tu(t,e),a=i?i.z2:null,o;a!=null&&(o=n?r:r.ensureState(e),o.z2=a||0)}function iy(r,t,e,n){var i=r.get("renderItem"),a=r.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):gI[a.type](a));for(var s=it({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:b,ordinalRawValue:w,styleEmphasis:x,visual:M,barLayout:D,currentSeriesIndices:P,font:R},o.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:bI(r.getData())},l,f,h={},v={},c={},d={},p=0;p<Qr.length;p++){var g=Qr[p];c[g]=r.getModel(mf[g]),d[g]=r.getModel(_f[g])}function y(L){return L===l?f||(f=t.getItemModel(L)):t.getItemModel(L)}function m(L,I){return t.hasItemOption?L===l?h[I]||(h[I]=y(L).getModel(mf[I])):y(L).getModel(mf[I]):c[I]}function _(L,I){return t.hasItemOption?L===l?v[I]||(v[I]=y(L).getModel(_f[I])):y(L).getModel(_f[I]):d[I]}return function(L,I){return l=L,f=null,h={},v={},i&&i(it({dataIndexInside:L,dataIndex:t.getRawIndex(L),actionType:I?I.type:null},u),s)};function S(L,I){return I==null&&(I=l),t.getStore().get(t.getDimensionIndex(L||0),I)}function w(L,I){I==null&&(I=l),L=L||0;var E=t.getDimensionInfo(L);if(!E){var z=t.getDimensionIndex(L);return z>=0?t.getStore().get(z,I):void 0}var O=t.get(E.name,I),B=E&&E.ordinalMeta;return B?B.categories[O]:O}function b(L,I){I==null&&(I=l);var E=t.getItemVisual(I,"style"),z=E&&E.fill,O=E&&E.opacity,B=m(I,Gr).getItemStyle();z!=null&&(B.fill=z),O!=null&&(B.opacity=O);var V={inheritColor:W(z)?z:"#000"},Y=_(I,Gr),U=mr(Y,null,V,!1,!0);U.text=Y.getShallow("show")?Q(r.getFormattedLabel(I,Gr),Za(t,I)):null;var et=Gs(Y,V,!1);return C(L,B),B=Jg(B,U,et),L&&T(B,L),B.legacy=!0,B}function x(L,I){I==null&&(I=l);var E=m(I,pr).getItemStyle(),z=_(I,pr),O=mr(z,null,null,!0,!0);O.text=z.getShallow("show")?qe(r.getFormattedLabel(I,pr),r.getFormattedLabel(I,Gr),Za(t,I)):null;var B=Gs(z,null,!0);return C(L,E),E=Jg(E,O,B),L&&T(E,L),E.legacy=!0,E}function T(L,I){for(var E in I)G(I,E)&&(L[E]=I[E])}function C(L,I){L&&(L.textFill&&(I.textFill=L.textFill),L.textPosition&&(I.textPosition=L.textPosition))}function M(L,I){if(I==null&&(I=l),G(jg,L)){var E=t.getItemVisual(I,"style");return E?E[jg[L]]:null}if(G(HP,L))return t.getItemVisual(I,L)}function D(L){if(a.type==="cartesian2d"){var I=a.getBaseAxis();return ED(it({axis:I},L))}}function P(){return e.getCurrentSeriesIndices()}function R(L){return n0(L,e)}}function bI(r){var t={};return A(r.dimensions,function(e){var n=r.getDimensionInfo(e);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Sf(r,t,e,n,i,a,o){if(!n){a.remove(t);return}var s=fc(r,t,e,n,i,a);return s&&o.setItemGraphicEl(e,s),s&&Zr(s,n.focus,n.blurScope,n.emphasisDisabled),s}function fc(r,t,e,n,i,a){var o=-1,s=t;t&&q1(t,n,i)&&(o=rt(a.childrenRef(),t),t=null);var u=!t,l=t;l?l.clearStates():(l=uc(n),s&&yI(s,l)),n.morph===!1?l.disableMorphing=!0:l.disableMorphing&&(l.disableMorphing=!1),pe.normal.cfg=pe.normal.conOpt=pe.emphasis.cfg=pe.emphasis.conOpt=pe.blur.cfg=pe.blur.conOpt=pe.select.cfg=pe.select.conOpt=null,pe.isLegacy=!1,xI(l,e,n,i,u,pe),wI(l,e,n,i,u),lc(r,l,e,n,pe,i,u),G(n,"info")&&(dr(l).info=n.info);for(var f=0;f<Qr.length;f++){var h=Qr[f];if(h!==Gr){var v=tu(n,h),c=hc(n,v,h);Z1(h,l,v,c,pe)}}return _I(l,n,i),n.type==="group"&&TI(r,l,e,n,i),o>=0?a.replaceAt(l,o):a.add(l),l}function q1(r,t,e){var n=dr(r),i=t.type,a=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&AI(a)&&K1(a)!==n.customPathData||i==="image"&&G(o,"image")&&o.image!==n.customImagePath}function wI(r,t,e,n,i){var a=e.clipPath;if(a===!1)r&&r.getClipPath()&&r.removeClipPath();else if(a){var o=r.getClipPath();o&&q1(o,a,n)&&(o=null),o||(o=uc(a),r.setClipPath(o)),lc(null,o,t,a,null,n,i)}}function xI(r,t,e,n,i,a){if(!r.isGroup){ay(e,null,a),ay(e,pr,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,u=a.blur.conOpt,l=a.select.conOpt;if(o!=null||s!=null||l!=null||u!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=uc(o),r.setTextContent(f)),lc(null,f,t,o,null,n,i);for(var h=o&&o.style,v=0;v<Qr.length;v++){var c=Qr[v];if(c!==Gr){var d=a[c].conOpt;Z1(c,f,d,hc(o,d,c),null)}}h?f.dirty():f.markRedraw()}}}}function ay(r,t,e){var n=t?tu(r,t):r,i=t?hc(r,n,pr):r.style,a=r.type,o=n?n.textConfig:null,s=r.textContent,u=s?t?tu(s,t):s:null;if(i&&(e.isLegacy||JP(i,a,!!o,!!u))){e.isLegacy=!0;var l=tI(i,a,!t);!o&&l.textConfig&&(o=l.textConfig),!u&&l.textContent&&(u=l.textContent)}if(!t&&u){var f=u;!f.type&&(f.type="text")}var h=t?e[t]:e.normal;h.cfg=o,h.conOpt=u}function tu(r,t){return t?r?r[t]:null:r}function hc(r,t,e){var n=t&&t.style;return n==null&&e===pr&&r&&(n=r.styleEmphasis),n}function TI(r,t,e,n,i){var a=n.children,o=a?a.length:0,s=n.$mergeChildren,u=s==="byName"||n.diffChildrenByName,l=s===!1;if(!(!o&&!u&&!l)){if(u){DI({api:r,oldChildren:t.children()||[],newChildren:a||[],dataIndex:e,seriesModel:i,group:t});return}l&&t.removeAll();for(var f=0;f<o;f++){var h=a[f],v=t.childAt(f);h?(h.ignore==null&&(h.ignore=!1),fc(r,v,e,h,i,t)):v.ignore=!0}for(var c=t.childCount()-1;c>=f;c--){var d=t.childAt(c);CI(t,d,i)}}}function CI(r,t,e){t&&ac(t,dr(r).option,e)}function DI(r){new o0(r.oldChildren,r.newChildren,oy,oy,r).add(sy).update(sy).remove(MI).execute()}function oy(r,t){var e=r&&r.name;return e??pI+t}function sy(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,i=t!=null?e.oldChildren[t]:null;fc(e.api,i,e.dataIndex,n,e.seriesModel,e.group)}function MI(r){var t=this.context,e=t.oldChildren[r];e&&ac(e,dr(e).option,t.seriesModel)}function K1(r){return r&&(r.pathData||r.d)}function AI(r){return r&&(G(r,"pathData")||G(r,"d"))}function _E(r){r.registerChartView(mI),r.registerSeriesModel(WP)}var Tn=gt(),uy=J,bf=tt,LI=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,i){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,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,e,n);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new Tt,this.createPointerEl(s,l,t,e),this.createLabelEl(s,l,t,e),n.getZr().add(s);else{var v=ut(ly,e,h);this.updatePointerEl(s,l,v),this.updateLabelEl(s,l,v,e)}hy(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,a=i.type==="category",o=e.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=Jv(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=Tn(t).pointerEl=new r0[a.type](uy(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=Tn(t).labelEl=new Pt(uy(e.label));t.add(a),fy(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=Tn(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=Tn(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),fy(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.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=_u(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){ku(l.event)},onmousedown:bf(this._onHandleDragMove,this,0,0),drift:bf(this._onHandleDragMove,this),ondragend:bf(this._onHandleDragEnd,this)}),n.add(i)),hy(i,e,!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,v_(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){ly(this._axisPointerModel,!e&&this._moveAnimation,this._handle,wf(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(wf(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(wf(i)),Tn(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),vh(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r})();function ly(r,t,e,n){j1(Tn(e).lastProp,n)||(Tn(e).lastProp=n,t?It(e,n,r):(e.stopAnimation(),e.attr(n)))}function j1(r,t){if(X(r)&&X(t)){var e=!0;return A(t,function(n,i){e=e&&j1(r[i],n)}),!!e}else return r===t}function fy(r,t){r[t.get(["label","show"])?"show":"hide"]()}function wf(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function hy(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}function PI(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function II(r,t,e,n,i){var a=e.get("value"),o=Q1(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),u=po(s.get("padding")||0),l=s.getFont(),f=Qh(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),RI(h,v,c,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:mr(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:g}),z2:10}}function RI(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Q1(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:jv(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(n,function(u){var l=e.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),W(o)?a=o.replace("{value}",a):K(o)&&(a=o(s))}return a}function J1(r,t,e){var n=vr();return uu(n,n,e.rotation),xs(n,n,e.position),mv([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function EI(r,t,e,n,i,a){var o=Xr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),II(t,n,i,a,{position:J1(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function kI(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function OI(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var BI=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,u=s.grid,l=a.get("type"),f=vy(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var v=PI(a),c=NI[l](s,h,f);c.style=v,e.graphicKey=c.type,e.pointer=c}var d=Lh(u.model,i);EI(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=Lh(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=J1(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,u=o.getGlobalExtent(!0),l=vy(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.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:e.rotation,cursorPoint:c,tooltipOption:d[f]}},t})(LI);function vy(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var NI={line:function(r,t,e){var n=kI([t,e[0]],[t,e[1]],cy(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:OI([t-n/2,e[0]],[n,i],cy(r))}}};function cy(r){return r.dim==="x"?0:1}var FI=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t})(ht),hr=gt(),zI=A;function tS(r,t,e){if(!$.node){var n=t.getZr();hr(n).records||(hr(n).records={}),GI(n,t);var i=hr(n).records[r]||(hr(n).records[r]={});i.handler=e}}function GI(r,t){if(hr(r).initialized)return;hr(r).initialized=!0,e("click",ut(dy,"click")),e("mousemove",ut(dy,"mousemove")),e("globalout",HI);function e(n,i){r.on(n,function(a){var o=WI(t);zI(hr(r).records,function(s){s&&i(s,a,o.dispatchAction)}),VI(o.pendings,t)})}}function VI(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function HI(r,t,e){r.handler("leave",null,e)}function dy(r,t,e,n){t.handler(r,e,n)}function WI(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Nh(r,t){if(!$.node){var e=t.getZr(),n=(hr(e).records||{})[r];n&&(hr(e).records[r]=null)}}var YI=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";tS("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(e,n){Nh("axisPointer",n)},t.prototype.dispose=function(e,n){Nh("axisPointer",n)},t.type="axisPointer",t})(he);function eS(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Nn(a,r);if(o==null||o<0||F(o))return{point:[]};var s=a.getItemGraphicEl(o),u=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(r.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),e=u.dataToPoint(p)||[]}else e=u.dataToPoint(a.getValues(H(u.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var py=gt();function UI(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||tt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Ss(i)&&(i=eS({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=Ss(i),l=a.axesInfo,f=s.axesInfo,h=n==="leave"||Ss(i),v={},c={},d={list:[],map:{}},p={showPointer:ut($I,c),showTooltip:ut(ZI,d)};A(s.coordSysMap,function(y,m){var _=u||y.containPoint(i);A(s.coordSysAxesInfo[m],function(S,w){var b=S.axis,x=QI(l,S);if(!h&&_&&(!l||x)){var T=x&&x.value;T==null&&!u&&(T=b.pointToData(i)),T!=null&&gy(S,T,p,!1,v)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&A(_.axesInfo,function(S,w){var b=c[w];if(S!==y&&b){var x=b.value;_.mapper&&(x=y.axis.scale.parse(_.mapper(x,yy(S),yy(y)))),g[y.key]=x}})}),A(g,function(y,m){gy(f[m],y,p,!0,v)}),qI(c,f,v),KI(d,i,r,o),jI(f,o,e),v}}function gy(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=XI(t,r),s=o.payloadBatch,u=o.snapToValue;s[0]&&i.seriesIndex==null&&k(i,s[0]),!n&&r.snap&&a.containData(u)&&u!=null&&(t=u),e.showPointer(r,t,s),e.showTooltip(r,o,u)}}function XI(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(n),h,v;if(u.getAxisTooltipData){var c=u.getAxisTooltipData(f,r,e);v=c.dataIndices,h=c.nestestValue}else{if(v=u.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!v.length)return;h=u.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var d=r-h,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=h,a.length=0),A(v,function(g){a.push({seriesIndex:u.seriesIndex,dataIndexInside:g,dataIndex:u.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function $I(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function ZI(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var u=t.coordSys.model,l=Ja(u),f=r.map[l];f||(f=r.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},r.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 qI(r,t,e){var n=e.axesInfo=[];A(t,function(i,a){var o=i.axisPointerModel.option,s=r[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 KI(r,t,e,n){if(Ss(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function jI(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=py(n)[i]||{},o=py(n)[i]={};A(r,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&l.triggerEmphasis&&A(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],u=[];A(a,function(l,f){!o[f]&&u.push(l)}),A(o,function(l,f){!a[f]&&s.push(l)}),u.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function QI(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function yy(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function Ss(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function rS(r){M1.registerAxisPointerClass("CartesianAxisPointer",BI),r.registerComponentModel(FI),r.registerComponentView(YI),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!F(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=A2(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},UI)}function SE(r){Gn(H2),Gn(rS)}function JI(r,t){var e=po(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new Ct({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var tR=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t})(ht);function nS(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function iS(r){if($.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var aS=iS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),eR=iS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function oS(r,t){if(!r)return t;t=Pv(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function rR(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var nR=oS(eR,"transition"),vc=oS(aS,"transform"),iR="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+($.transform3dSupported?"will-change:transform;":"");function aR(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function oR(r,t,e){if(!W(e)||e==="inside")return"";var n=r.get("backgroundColor"),i=r.get("borderWidth");t=Fn(t);var a=aR(e),o=Math.max(Math.round(i)*1.5,6),s="",u=vc+":",l;rt(["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 sR(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=$.transformSupported?","+vc+n:",left"+n+",top"+n),nR+":"+i}function my(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!$.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=$.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+vc+":"+o+";":[["top",0],["left",0],[aS,o]]}function uR(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont());var i=Q(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+i+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,u=r.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),A(["decoration","align"],function(l){var f=r.get(l);f&&t.push("text-"+l+":"+f)}),t.join(";")}function lR(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),u=r.get("shadowOffsetX"),l=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=X0(r,"html"),v=u+"px "+l+"px "+o+"px "+s;return n.push("box-shadow:"+v),t&&i&&n.push(sR(i,e)),a&&n.push("background-color:"+a),A(["width","color","radius"],function(c){var d="border-"+c,p=Pv(d),g=r.get(p);g!=null&&n.push(d+":"+g+(c==="color"?"":"px"))}),n.push(uR(f)),h!=null&&n.push("padding:"+po(h).join("px ")+"px"),n.join(";")+";"}function _y(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&tC(r,o,e,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var fR=(function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,$.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=e.appendTo,o=a&&(W(a)?document.querySelector(a):wi(a)?a:K(a)&&a(t.getDom()));_y(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();ye(f,u,!0),l.dispatch("mousemove",u)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=rR(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=iR+lR(t,!this._firstShow,this._longHide)+my(a[0],a[1],!0)+("border-color:"+Fn(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(W(a)&&n.get("trigger")==="item"&&!nS(n)&&(s=oR(n,i,a)),W(t))o.innerHTML=t+s;else if(t){o.innerHTML="",F(t)||(t=[t]);for(var u=0;u<t.length;u++)wi(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)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(_y(n,this._zr,this._container,t,e),n[0]!=null&&n[1]!=null){var i=this.el.style,a=my(n[0],n[1]);A(a,function(o){i[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",$.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(tt(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r})(),hR=(function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),by(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,n,i,a){var o=this;X(t)&&Ht(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Pt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:X0(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=n.get(l)}),A(["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})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=Sy(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},r.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;by(i,this._zr,t,e),t=i[0],e=i[1];var a=n.style,o=Ir(a.borderWidth||0),s=Sy(a);n.x=t+o+s.left,n.y=e+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(tt(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Ir(r){return Math.max(0,r)}function Sy(r){var t=Ir(r.shadowBlur||0),e=Ir(r.shadowOffsetX||0),n=Ir(r.shadowOffsetY||0);return{left:Ir(t-e),right:Ir(t+e),top:Ir(t-n),bottom:Ir(t+n)}}function by(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var vR=new Ct({shape:{x:-1,y:-1,width:2,height:2}}),cR=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){if(!($.node||!n.getDom())){var i=e.getComponent("tooltip"),a=this._renderMode=ax(i.get("renderMode"));this._tooltipContent=a==="richText"?new hR(n):new fR(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(e,n,i){if(!($.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?v_(this,"_updatePosition",50,"fixRate"):vh(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");tS("itemTooltip",this._api,tt(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 e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.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(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||$.node||!i.getDom())){var o=wy(a,i);this._ticket="";var s=a.dataByCoordSys,u=yR(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=vR;f.x=a.x,f.y=a.y,f.update(),at(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(e,n,i,a))return;var h=eS(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(e,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(wy(a,i))},t.prototype._manuallyAxisShowTip=function(e,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=aa([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(e,n){var i=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){var s=at(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var u,l;da(i,function(f){if(at(f).dataIndex!=null)return u=f,!0;if(at(f).tooltipConfig!=null)return l=f,!0},!0),u?this._showSeriesItemTooltip(e,u,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=tt(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=aa([n.tooltipOption],a),u=this._renderMode,l=[],f=Kr("section",{blocks:[],noHeader:!0}),h=[],v=new Ml;A(e,function(m){A(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var b=Q1(w,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=Kr("section",{header:b,noHeader:!Ie(b),sortBlocks:!0,blocks:[]});f.blocks.push(x),A(_.seriesDataIndices,function(T){var C=i.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=C.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=jv(S.axis,{value:w}),D.axisValueLabel=b,D.marker=v.makeTooltipMarker("item",Fn(D.color),u);var P=Yd(C.formatTooltip(M,!0,null)),R=P.frag;if(R){var L=aa([C],a).get("valueFormatter");x.blocks.push(L?k({valueFormatter:L},R):R)}P.text&&h.push(P.text),l.push(D)}})}})}),f.blocks.reverse(),h.reverse();var c=n.position,d=s.get("order"),p=$d(f,v,u,d,i.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=u==="richText"?`

`:"<br/>",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,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(e,n,i){var a=this._ecModel,o=at(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=e.positionDefault,p=aa([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 Ml;y.marker=m.makeTooltipMarker("item",Fn(y.color),c);var _=Yd(l.formatTooltip(f,!1,h)),S=p.get("order"),w=p.get("valueFormatter"),b=_.frag,x=b?$d(w?k({valueFormatter:w},b):b,m,c,S,a.get("useUTC"),p.get("textStyle")):_.text,T="item_"+l.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,x,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=this._renderMode==="html",o=at(n),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(W(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=J(u),u.content=Kt(u.content));var h=[u],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:u.content});var c=e.positionDefault,d=aa(h,this._tooltipModel,c?{position:c}:null),p=d.get("content"),g=Math.random()+"",y=new Ml;this._showOrMove(d,function(){var m=J(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,u,l,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var v=e.get("formatter");u=u||e.get("position");var c=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),p=d.color;if(v)if(W(v)){var g=e.ecModel.get("useUTC"),y=F(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=co(y.axisValue,c,g)),c=Iv(c,i,!0)}else if(K(v)){var _=tt(function(S,w){S===this._ticket&&(h.setContent(w,f,e,p,u),this._updatePosition(e,u,o,s,h,i,l))},this);this._ticket=a,c=v(i,a,_)}else c=v;h.setContent(c,f,e,p,u),h.show(e,p),this._updatePosition(e,u,o,s,h,i,l)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||F(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!F(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var h=o.getSize(),v=e.get("align"),c=e.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),K(n)&&(n=n([i,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),F(n))i=pt(n[0],l),a=pt(n[1],f);else if(X(n)){var p=n;p.width=h[0],p.height=h[1];var g=zn(p,{width:l,height:f});i=g.x,a=g.y,v=null,c=null}else if(W(n)&&u){var y=gR(n,d,h,e.get("borderWidth"));i=y[0],a=y[1]}else{var y=dR(i,a,o,l,f,v?null:20,c?null:20);i=y[0],a=y[1]}if(v&&(i-=xy(v)?h[0]/2:v==="right"?h[0]:0),c&&(a-=xy(c)?h[1]/2:c==="bottom"?h[1]:0),nS(e)){var y=pR(i,a,o,l,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&A(i,function(s,u){var l=s.dataByAxis||[],f=e[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&A(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&&A(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&A(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){$.node||!n.getDom()||(vh(this,"_updatePosition"),this._tooltipContent.dispose(),Nh("itemTooltip",n))},t.type="tooltip",t})(he);function aa(r,t,e){var n=t.ecModel,i;e?(i=new mt(e,n,n),i=new mt(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof mt&&(o=o.get("tooltip",!0)),W(o)&&(o={formatter:o}),o&&(i=new mt(o,i,n)))}return i}function wy(r,t){return r.dispatchAction||tt(t.dispatchAction,t)}function dR(r,t,e,n,i,a,o){var s=e.getSize(),u=s[0],l=s[1];return a!=null&&(r+u+a+2>n?r-=u+a:r+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[r,t]}function pR(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function gR(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=t.width,f=t.height;switch(r){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 xy(r){return r==="center"||r==="middle"}function yR(r,t,e){var n=ov(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=so(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=at(l).tooltipConfig;if(f&&f.name===r.name)return u=l,!0}),u)return{componentMainType:i,componentIndex:o.componentIndex,el:u}}}}function bE(r){Gn(rS),r.registerComponentModel(tR),r.registerComponentView(cR),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Mt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Mt)}function mR(r,t){if(!r)return!1;for(var e=F(r)?r:[r],n=0;n<e.length;n++)if(e[n]&&e[n][t])return!0;return!1}function es(r){Ga(r,"label",["show"])}var rs=gt(),eo=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),this._mergeOption(e,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if($.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,n){this._mergeOption(e,n,!1,!1)},t.prototype._mergeOption=function(e,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var u=s.get(this.mainType,!0),l=rs(s)[o];if(!u||!u.data){rs(s)[o]=null;return}l?l._mergeOption(u,n,!0):(a&&es(u),A(u.data,function(f){f instanceof Array?(es(f[0]),es(f[1])):es(f)}),l=this.createMarkerModelFromSeries(u,this,n),k(l,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),l.__hostSeries=s),rs(s)[o]=l},this)},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=this.getRawValue(e),s=a.getName(e);return Kr("section",{header:this.name,blocks:[Kr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,n){var i=kv.prototype.getDataParams.call(this,e,n),a=this.__hostSeries;return a&&(i.seriesId=a.id,i.seriesName=a.name,i.seriesType=a.subType),i},t.getMarkerModelFromSeries=function(e,n){return rs(e)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t})(ht);Ut(eo,kv.prototype);function _R(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function SR(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function ns(r,t,e,n,i,a){var o=[],s=qr(t,n),u=s?t.getCalculationInfo("stackResultDimension"):n,l=cc(t,u,r),f=t.indicesOfNearest(u,l)[0];o[i]=t.get(e,f),o[a]=t.get(u,f);var h=t.get(n,f),v=Re(t.get(n,f));return v=Math.min(v,20),v>=0&&(o[a]=+o[a].toFixed(v)),[o,h]}var xf={min:ut(ns,"min"),max:ut(ns,"max"),average:ut(ns,"average"),median:ut(ns,"median")};function Ty(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,i=n&&n.dimensions;if(!SR(t)&&!F(t.coord)&&F(i)){var a=sS(t,e,n,r);if(t=J(t),t.type&&xf[t.type]&&a.baseAxis&&a.valueAxis){var o=rt(i,a.baseAxis.dim),s=rt(i,a.valueAxis.dim),u=xf[t.type](e,a.baseDataDim,a.valueDataDim,o,s);t.coord=u[0],t.value=u[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!F(i))t.coord=[];else for(var l=t.coord,f=0;f<2;f++)xf[l[f]]&&(l[f]=cc(e,e.mapDimension(i[f]),l[f]));return t}}function sS(r,t,e,n){var i={};return r.valueIndex!=null||r.valueDim!=null?(i.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,i.valueAxis=e.getAxis(bR(n,i.valueDataDim)),i.baseAxis=e.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=e.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function bR(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Cy(r,t){return r&&r.containData&&t.coord&&!_R(t)?r.containData(t.coord):!0}function wR(r,t){return r?function(e,n,i,a){var o=a<2?e.coord&&e.coord[a]:e.value;return yi(o,t[a])}:function(e,n,i,a){return yi(e.value,t[a])}}function cc(r,t,e){if(e==="average"){var n=0,i=0;return r.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var Tf=gt(),xR=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=q()},t.prototype.render=function(e,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){Tf(s).keep=!1}),n.eachSeries(function(s){var u=eo.getMarkerModelFromSeries(s,a.type);u&&a.renderSeries(s,u,n,i)}),o.each(function(s){!Tf(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(e){Tf(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var i=this;A(e,function(a){var o=eo.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(u){u&&(n?Rm(u):fv(u))})}})},t.type="marker",t})(he),TR=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t})(eo),is=gt(),CR=function(r,t,e,n){var i=r.getData(),a;if(F(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,u=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),u=yr(n.yAxis,n.xAxis);else{var l=sS(n,i,t,r);s=l.valueAxis;var f=xv(i,l.valueDataDim);u=cc(i,f,o)}var h=s.dim==="x"?0:1,v=1-h,c=J(n),d={coord:[]};c.type=null,c.coord=[],c.coord[v]=-1/0,d.coord[v]=1/0;var p=e.get("precision");p>=0&&lt(u)&&(u=+u.toFixed(Math.min(p,20))),c.coord[h]=d.coord[h]=u,a=[c,d,{type:o,valueIndex:n.valueIndex,value:u}]}else a=[]}var g=[Ty(r,a[0]),Ty(r,a[1]),k({},a[2])];return g[2].type=g[2].type||null,st(g[2],g[0]),st(g[2],g[1]),g};function eu(r){return!isNaN(r)&&!isFinite(r)}function Dy(r,t,e,n){var i=1-r,a=n.dimensions[r];return eu(t[i])&&eu(e[i])&&t[r]===e[r]&&n.getAxis(a).containData(t[r])}function DR(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(Dy(1,e,n,r)||Dy(0,e,n,r)))return!0}return Cy(r,t[0])&&Cy(r,t[1])}function Cf(r,t,e,n,i){var a=n.coordinateSystem,o=r.getItemModel(t),s,u=pt(o.get("x"),i.getWidth()),l=pt(o.get("y"),i.getHeight());if(!isNaN(u)&&!isNaN(l))s=[u,l];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=a.dimensions,h=r.get(f[0],t),v=r.get(f[1],t);s=a.dataToPoint([h,v])}if(Eu(a,"cartesian2d")){var c=a.getAxis("x"),d=a.getAxis("y"),f=a.dimensions;eu(r.get(f[0],t))?s[0]=c.toGlobalCoord(c.getExtent()[e?0:1]):eu(r.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[e?0:1]))}isNaN(u)||(s[0]=u),isNaN(l)||(s[1]=l)}r.setItemLayout(t,s)}var MR=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,i){n.eachSeries(function(a){var o=eo.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),u=is(o).from,l=is(o).to;u.each(function(f){Cf(u,f,!0,a,i),Cf(l,f,!1,a,i)}),s.each(function(f){s.setItemLayout(f,[u.getItemLayout(f),l.getItemLayout(f)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,i,a){var o=e.coordinateSystem,s=e.id,u=e.getData(),l=this.markerGroupMap,f=l.get(s)||l.set(s,new G1);this.group.add(f.group);var h=AR(o,e,n),v=h.from,c=h.to,d=h.line;is(n).from=v,is(n).to=c,n.setData(d);var p=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");F(p)||(p=[p,p]),F(g)||(g=[g,g]),F(y)||(y=[y,y]),F(m)||(m=[m,m]),h.from.each(function(S){_(v,S,!0),_(c,S,!1)}),d.each(function(S){var w=d.getItemModel(S).getModel("lineStyle").getLineStyle();d.setItemLayout(S,[v.getItemLayout(S),c.getItemLayout(S)]),w.stroke==null&&(w.stroke=v.getItemVisual(S,"style").fill),d.setItemVisual(S,{fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(S,"symbolOffset"),toSymbolRotate:c.getItemVisual(S,"symbolRotate"),toSymbolSize:c.getItemVisual(S,"symbolSize"),toSymbol:c.getItemVisual(S,"symbol"),style:w})}),f.updateData(d),h.line.eachItemGraphicEl(function(S){at(S).dataModel=n,S.traverse(function(w){at(w).dataModel=n})});function _(S,w,b){var x=S.getItemModel(w);Cf(S,w,b,e,a);var T=x.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=G_(u,"color")),S.setItemVisual(w,{symbolKeepAspect:x.get("symbolKeepAspect"),symbolOffset:Q(x.get("symbolOffset",!0),m[b?0:1]),symbolRotate:Q(x.get("symbolRotate",!0),y[b?0:1]),symbolSize:Q(x.get("symbolSize"),g[b?0:1]),symbol:Q(x.get("symbol",!0),p[b?0:1]),style:T})}this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t})(xR);function AR(r,t,e){var n;r?n=H(r&&r.dimensions,function(l){var f=t.getData().getDimensionInfo(t.getData().mapDimension(l))||{};return k(k({},f),{name:l,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new Ur(n,e),a=new Ur(n,e),o=new Ur([],e),s=H(e.get("data"),ut(CR,t,r,e));r&&(s=St(s,ut(DR,r)));var u=wR(!!r,n);return i.initData(H(s,function(l){return l[0]}),null,u),a.initData(H(s,function(l){return l[1]}),null,u),o.initData(H(s,function(l){return l[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function wE(r){r.registerComponentModel(TR),r.registerComponentView(MR),r.registerPreprocessor(function(t){mR(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var LR=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Fh=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,i=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),F(n)&&A(n,function(a,o){W(a)&&(a={type:a}),n[o]=st(a,LR(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<e.length;i++){var a=e[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],i=[];e.eachRawSeries(function(u){var l=u.name;i.push(l);var f;if(u.legendVisualProvider){var h=u.legendVisualProvider,v=h.getAllNames();e.isSeriesFiltered(u)||(i=i.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&av(u)&&n.push(u.name)}),this._availableNames=i;var a=this.get("data")||n,o=q(),s=H(a,function(u){return(W(u)||lt(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new mt(u,this,this.ecModel))},this);this._data=St(s,function(u){return!!u})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;A(a,function(o){n[o.get("name")]=!1})}n[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var n=this.option.selected;n.hasOwnProperty(e)||(n[e]=!0),this[n[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,n=this.option.selected;A(e,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;A(e,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&&rt(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t})(ht),fi=ut,zh=A,as=Tt,uS=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new as),this.group.add(this._selectorGroup=new as),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var u=e.get("selector",!0),l=e.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,i,u,s,l);var f=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},v=e.get("padding"),c=zn(f,h,v),d=this.layoutInner(e,o,c,a,u,l),p=zn(it({width:d.width,height:d.height},f),h,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=JI(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,u){var l=this.getContentGroup(),f=q(),h=n.get("selectedMode"),v=[];i.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),zh(n.getData(),function(c,d){var p=c.get("name");if(!this.newlineDisabled&&(p===""||p===`
`)){var g=new as;g.newline=!0,l.add(g);return}var y=i.getSeriesByName(p)[0];if(!f.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),b=this._createItem(y,p,d,c,n,e,_,w,S,h,a);b.on("click",fi(My,p,null,a,v)).on("mouseover",fi(Gh,y.name,null,a,v)).on("mouseout",fi(Vh,y.name,null,a,v)),i.ssr&&b.eachChild(function(x){var T=at(x);T.seriesIndex=y.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),f.set(p,!0)}else i.eachRawSeries(function(x){if(!f.get(p)&&x.legendVisualProvider){var T=x.legendVisualProvider;if(!T.containName(p))return;var C=T.indexOfName(p),M=T.getItemVisual(C,"style"),D=T.getItemVisual(C,"legendIcon"),P=fe(M.fill);P&&P[3]===0&&(P[3]=.2,M=k(k({},M),{fill:tn(P,"rgba")}));var R=this._createItem(x,p,d,c,n,e,{},M,D,h,a);R.on("click",fi(My,null,p,a,v)).on("mouseover",fi(Gh,null,p,a,v)).on("mouseout",fi(Vh,null,p,a,v)),i.ssr&&R.eachChild(function(L){var I=at(L);I.seriesIndex=x.seriesIndex,I.dataIndex=d,I.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,u)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();zh(e,function(l){var f=l.type,h=new Pt({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"]);Ii(h,{normal:v,emphasis:c},{defaultText:l.title}),ks(h)})},t.prototype._createItem=function(e,n,i,a,o,s,u,l,f,h,v){var c=e.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=PR(f,a,u,l,c,g,v),w=new as,b=a.getModel("textStyle");if(K(e.getLegendIcon)&&(!_||_==="inherit"))w.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var x=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;w.add(IR({itemWidth:d,itemHeight:p,icon:f,iconRotate:x,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,M=o.get("formatter"),D=n;W(M)&&M?D=M.replace("{name}",n??""):K(M)&&(D=M(n));var P=g?b.getTextColor():a.get("inactiveColor");w.add(new Pt({style:mr(b,{text:D,x:T,y:p/2,fill:P,align:C,verticalAlign:"middle"},{inheritColor:P})}));var R=new Ct({shape:w.getBoundingRect(),style:{fill:"transparent"}}),L=a.getModel("tooltip");return L.get("show")&&Su({el:R,componentModel:o,itemName:n,itemTooltipOption:L.option}),w.add(R),w.eachChild(function(I){I.silent=!0}),R.silent=!h,this.getContentGroup().add(w),ks(w),w.__legendDataIndex=i,w},t.prototype.layoutInner=function(e,n,i,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();Da(e.get("orient"),u,e.get("itemGap"),i.width,i.height);var f=u.getBoundingRect(),h=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){Da("horizontal",l,e.get("selectorItemGap",!0));var v=l.getBoundingRect(),c=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?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})(he);function PR(r,t,e,n,i,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),zh(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var u=t.getModel("itemStyle"),l=u.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=u.getShallow("decal");l.decal=!h||h==="inherit"?n.decal:Zs(h,o),l.fill==="inherit"&&(l.fill=n[i]),l.stroke==="inherit"&&(l.stroke=n[f]),l.opacity==="inherit"&&(l.opacity=(i==="fill"?n:e).opacity),s(l,n);var v=t.getModel("lineStyle"),c=v.getLineStyle();if(s(c,e),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 IR(r){var t=r.icon||"roundRect",e=jr(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function My(r,t,e,n){Vh(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Gh(r,t,e,n)}function lS(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;n<i&&!(e=t[n].states.emphasis);)n++;return e&&e.hoverLayer}function Gh(r,t,e,n){lS(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function Vh(r,t,e,n){lS(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}function RR(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function oa(r,t,e){var n=r==="allSelect"||r==="inverseSelect",i={},a=[];e.eachComponent({mainType:"legend",query:t},function(s){n?s[r]():s[r](t.name),Ay(s,i),a.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){A(i,function(u,l){s[u?"select":"unSelect"](l)}),Ay(s,o)}),n?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function Ay(r,t){var e=t||{};return A(r.getData(),function(n){var i=n.get("name");if(!(i===`
`||i==="")){var a=r.isSelected(i);G(e,i)?e[i]=e[i]&&a:e[i]=a}}),e}function ER(r){r.registerAction("legendToggleSelect","legendselectchanged",ut(oa,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ut(oa,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ut(oa,"inverseSelect")),r.registerAction("legendSelect","legendselected",ut(oa,"select")),r.registerAction("legendUnSelect","legendunselected",ut(oa,"unSelect"))}function fS(r){r.registerComponentModel(Fh),r.registerComponentView(uS),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,RR),r.registerSubTypeDefaulter("legend",function(){return"plain"}),ER(r)}var kR=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,n,i){var a=Iu(e);r.prototype.init.call(this,e,n,i),Ly(this,e,a)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),Ly(this,this.option,e)},t.type="legend.scroll",t.defaultOption=M0(Fh.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t})(Fh);function Ly(r,t,e){var n=r.getOrient(),i=[1,1];i[n.index]=0,Ci(t,e,{type:"box",ignoreSize:!!i})}var Py=Tt,Df=["width","height"],Mf=["x","y"],OR=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Py),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Py)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,i,a,o,s,u){var l=this;r.prototype.renderInner.call(this,e,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 Pt({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=_u(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:tt(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(e,n,i,a,o,s){var u=this.getSelectorGroup(),l=e.getOrient().index,f=Df[l],h=Mf[l],v=Df[1-l],c=Mf[1-l];o&&Da("horizontal",u,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=u.getBoundingRect(),g=[-p.x,-p.y],y=J(i);o&&(y[f]=i[f]-p[f]-d);var m=this._layoutContentAndController(e,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(e,n,i,a,o,s,u,l){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;Da(e.get("orient"),f,e.get("itemGap"),a?i.width:null,a?null:i.height),Da("horizontal",v,e.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],_=Q(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.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 Ct({shape:b})),h.__rectSize=b[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(e);return x.pageIndex!=null&&It(f,{x:x.contentPosition[0],y:x.contentPosition[1]},p?e:null),this._updatePageInfoView(e,x),w},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=n[h]!=null,c=i.childOfName(f);c&&(c.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,u=s!=null?s+1:0,l=n.pageCount;a&&o&&a.setStyle("text",W(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=Df[o],u=Mf[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(),T=x[u]+b[u];return{s:T,e:T+x[s],i:b.__legendDataIndex}}}function w(b,x){return b.e>=x&&b.s<=x+a}},t.prototype._findTargetItemIndex=function(e){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===e&&(n=s)}),n??a},t.type="legend.scroll",t})(uS);function BR(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function NR(r){Gn(fS),r.registerComponentModel(kR),r.registerComponentView(OR),BR(r)}function xE(r){Gn(fS),Gn(NR)}function Iy(r,t,e){var n=gr.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",r)),n.width=i*e,n.height=a*e,n}var Af=(function(r){N(t,r);function t(e,n,i){var a=r.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||Is,typeof e=="string"?o=Iy(e,n,i):X(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(Kh(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 e=this.dpr;this.domBack=Iy("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new ot(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new ot(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 T=o[x];if(T.intersect(m)){var C=new ot(0,0,0,0);C.copy(T),C.union(m),o[x]=C,S=!0;break}else if(u){l.copy(m),l.union(T);var M=m.width*m.height,D=T.width*T.height,P=l.width*l.height,R=P-M-D;R<w&&(w=R,b=x)}}if(u&&(o[b].union(m),S=!0),!S){var _=new ot(0,0,0,0);_.copy(m),o.push(_)}u||(u=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var v=e[h];if(v){var c=v.shouldBePainted(i,a,!0,!0),d=v.__isRendered&&(v.__dirty&ue||!c)?v.getPrevPaintRect():null;d&&f(d);var p=c&&(v.__dirty&ue||!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(e,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=n+"px"),a.width=e*i,a.height=n*i,s&&(s.width=e*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(e,n,i){var a=this.dom,o=this.ctx,s=a.width,u=a.height;n=n||this.clearColor;var l=this.motionBlur&&!e,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(ro(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||_h(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else Ny(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=Sh(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&&A(i,function(p){d(p.x*h,p.y*h,p.width*h,p.height*h)})},t})(Fe),Ry=1e5,wn=314159,os=.01,FR=.001;function zR(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function GR(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var VR=(function(){function r(t,e,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=k({},n||{}),this.dpr=n.devicePixelRatio||Is,this._singleCanvas=a,this.root=t;var o=t.style;o&&(Kh(t),t.innerHTML=""),this.storage=e;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 Af(f,this,this.dpr);c.__builtin__=!0,c.initContext(),u[wn]=c,c.zlevel=wn,s.push(wn),this._domRoot=t}else{this._width=$o(t,0,n),this._height=$o(t,1,n);var l=this._domRoot=GR(this._width,this._height);t.appendChild(l)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,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=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),!!e){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Ry)),a||(a=n.ctx,a.save()),Ln(a,s,i,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Ry)},r.prototype.paintOne=function(t,e){Y_(t,e)},r.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,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;Ys(function(){u._paintList(t,e,n,i)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(wn).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},r.prototype._doPaintList=function(t,e,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,e,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 T,C=function(R){var L={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<g.__endIndex;T++){var I=t[T];if(I.__inHover&&(h=!0),i._doPaintEl(I,g,o,R,L,T===g.__endIndex-1),S){var E=Date.now()-w;if(E>15)break}}L.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var M=c.dpr,D=0;D<m.length;++D){var P=m[D];y.save(),y.beginPath(),y.rect(P.x*M,P.y*M,P.width*M,P.height*M),y.clip(),C(P),y.restore()}else y.save(),C(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(f=!1)},c=this,d=0;d<a.length;d++)v(d);return $.wxa&&A(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,n,i,a,o){var s=e.ctx;if(n){var u=t.getPaintRect();(!i||u&&u.intersect(i))&&(Ln(s,t,a,o),t.setPrevPaintRect(u))}else Ln(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=wn);var n=this._layers[t];return n||(n=new Af("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?st(n,this._layerConfig[t],!0):this._layerConfig[t-os]&&st(n,this._layerConfig[t-os],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},r.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,u=-1;if(!n[t]&&zR(e)){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]=e,!e.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,v){h.__dirty=h.__used=!1});function e(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+FR,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(l+(o>0?os:0),this._needsManuallyCompositing),f.__builtin__||nu("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,e(u),a=f),i.__dirty&ue&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}e(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)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?st(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+os){var o=this._layers[a];st(o,n[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(rt(n,t),1))},r.prototype.resize=function(t,e){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),e!=null&&(i.height=e),t=$o(a,0,i),e=$o(a,1,i),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(wn).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[wn].dom;var e=new Af("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,a=e.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];Ln(n,f,o,u===l-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function TE(r){r.registerPainter("canvas",VR)}function HR(r){return Ei(null,r)}var WR={isDimensionStacked:qr,enableDataStack:D0,getStackedDimension:xv};function YR(r,t){var e=t;t instanceof mt||(e=new mt(t));var n=y1(e);return n.setExtent(r[0],r[1]),Mh(n,e),n}function UR(r){Ut(r,h1)}function XR(r,t){return t=t||{},mr(r,null,null,t.state!=="normal")}const CE=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:FT,createList:HR,createScale:YR,createSymbol:jr,createTextStyle:XR,dataStack:WR,enableHoverEmphasis:ks,getECData:at,getLayoutRect:zn,mixinAxisModelCommonMethods:UR},Symbol.toStringTag,{value:"Module"})),DE=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:Ww,asc:gm,getPercentWithPrecision:Vw,getPixelPrecision:mm,getPrecision:Re,getPrecisionSafe:ym,isNumeric:bm,isRadianAroundZero:Fa,linearMap:xi,nice:iv,numericToNumber:za,parseDate:xe,quantile:fs,quantity:Sm,quantityExponent:hu,reformIntervals:Uw,remRadian:nv,round:bt},Symbol.toStringTag,{value:"Module"})),ME=Object.freeze(Object.defineProperty({__proto__:null,format:co,parse:xe},Symbol.toStringTag,{value:"Module"})),AE=Object.freeze(Object.defineProperty({__proto__:null,Arc:fo,BezierCurve:lo,BoundingRect:ot,Circle:uo,CompoundPath:Wm,Ellipse:pu,Group:Tt,Image:Je,IncrementalDisplayable:Xm,Line:Qe,LinearGradient:vv,Polygon:yu,Polyline:Li,RadialGradient:Um,Rect:Ct,Ring:gu,Sector:Sr,Text:Pt,clipPointsByRect:Jm,clipRectByRect:t0,createIcon:_u,extendPath:Zm,extendShape:$m,getShapeClass:pv,getTransform:jm,initProps:ae,makeImage:gv,makePath:ho,mergePath:Km,registerShape:Te,resizePath:yv,updateProps:It},Symbol.toStringTag,{value:"Module"})),LE=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Lv,capitalFirst:gC,encodeHTML:Kt,formatTime:pC,formatTpl:Iv,getTextRect:dC,getTooltipMarker:z0,normalizeCssArray:po,toCamelCase:Pv,truncateText:mb},Symbol.toStringTag,{value:"Module"})),PE=Object.freeze(Object.defineProperty({__proto__:null,bind:tt,clone:J,curry:ut,defaults:it,each:A,extend:k,filter:St,indexOf:rt,inherits:Zh,isArray:F,isFunction:K,isObject:X,isString:W,map:H,merge:st,reduce:Be},Symbol.toStringTag,{value:"Module"}));function IE(r){var t=ht.extend(r);return ht.registerClass(t),t}function RE(r){var t=he.extend(r);return he.registerClass(t),t}function EE(r){var t=Yt.extend(r);return Yt.registerClass(t),t}function kE(r){var t=Bt.extend(r);return Bt.registerClass(t),t}export{Gn as $,y2 as A,Y_ as B,Bt as C,QR as D,DE as E,gE as F,Yn as G,DL as H,ML as I,f1 as J,P0 as K,AL as L,mt as M,TL as N,CL as O,yL as P,u1 as Q,l1 as R,Ur as S,s1 as T,LL as U,Xv as V,Un as W,cE as X,WS as Y,Gv as Z,ME as _,qR as a,PE as a0,JR as a1,aE as a2,jR as a3,iE as a4,eE as a5,rE as a6,nE as a7,mE as a8,yE as a9,_E as aa,SE as ab,bE as ac,xE as ad,wE as ae,TE as af,ht as b,he as c,Yt as d,tE as e,uE as f,pE as g,oE as h,lE as i,xL as j,fE as k,$ as l,kE as m,IE as n,RE as o,EE as p,LE as q,KR as r,vE as s,ZR as t,o1 as u,hE as v,dE as w,AE as x,CE as y,sE as z};
