@manufac/react-components-potli 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/tsc/components/CustomColorPalette/index.js +2 -1
- package/dist/tsc/components/CustomColorPalette/index.js.map +1 -1
- package/dist/tsc/components/CustomColorPalette/index.stories.js +7 -0
- package/dist/tsc/components/CustomColorPalette/index.stories.js.map +1 -0
- package/dist/tsc/components/CustomColorPalette/utils.js +51 -0
- package/dist/tsc/components/CustomColorPalette/utils.js.map +1 -1
- package/dist/tsc/tsconfig.tsbuildinfo +1 -1
- package/dist/types/components/CustomColorPalette/index.d.ts +6 -4
- package/dist/types/components/CustomColorPalette/index.d.ts.map +1 -1
- package/dist/types/components/CustomColorPalette/index.stories.d.ts +6 -0
- package/dist/types/components/CustomColorPalette/index.stories.d.ts.map +1 -0
- package/dist/types/components/CustomColorPalette/utils.d.ts +16 -0
- package/dist/types/components/CustomColorPalette/utils.d.ts.map +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
import*as t from"react";import{createPortal as e,default as n,flushSync as r}from"react-dom";var i={85:(t,e,n)=>{t.exports=n(197)},197:(t,e)=>{var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(t,e,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==e.key&&(i=""+e.key),"key"in e)for(var o in r={},e)"key"!==o&&(r[o]=e[o]);else r=e;return e=r.ref,{$$typeof:n,type:t,key:i,ref:void 0!==e?e:null,props:r}}e.Fragment=r,e.jsx=i,e.jsxs=i}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={exports:{}};return i[t](n,n.exports,a),n.exports}a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};a.r(s),a.d(s,{Arc:()=>Xd,BezierCurve:()=>jd,BoundingRect:()=>ve,Circle:()=>Uh,CompoundPath:()=>Yd,Ellipse:()=>pd,Group:()=>cd,Image:()=>oo,IncrementalDisplayable:()=>cp,Line:()=>Wh,LinearGradient:()=>Zd,OrientedBoundingRect:()=>lp,Path:()=>Qi,Point:()=>Jt,Polygon:()=>Nd,Polyline:()=>Bd,RadialGradient:()=>Qd,Rect:()=>fo,Ring:()=>Pd,Sector:()=>Id,Text:()=>Do,WH:()=>bp,XY:()=>_p,applyTransform:()=>Ep,calcZ2Range:()=>rf,clipPointsByRect:()=>Vp,clipRectByRect:()=>Hp,createIcon:()=>Wp,ensureCopyRect:()=>tf,ensureCopyTransform:()=>ef,expandOrShrinkRect:()=>Xp,extendPath:()=>Cp,extendShape:()=>wp,getShapeClass:()=>Mp,getTransform:()=>Np,groupTransition:()=>Fp,initProps:()=>fp,isBoundingRectAxisAligned:()=>Qp,isElementRemoved:()=>gp,lineLineIntersect:()=>Gp,linePolygonIntersect:()=>jp,makeImage:()=>Ip,makePath:()=>kp,mergePath:()=>Rp,registerShape:()=>Tp,removeElement:()=>mp,removeElementWithFadeOut:()=>vp,resizePath:()=>Pp,retrieveZInfo:()=>nf,setTooltipConfig:()=>qp,subPixelOptimize:()=>Lp,subPixelOptimizeLine:()=>Ap,subPixelOptimizeRect:()=>Op,transformDirection:()=>zp,traverseElements:()=>Kp,traverseUpdateZ:()=>of,updateProps:()=>pp});var l=a(85),u=function(t,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},u(t,e)};function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create,Object.create;var h,d,p="12px sans-serif",f=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<95;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-20)/100;e[r]=i}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),g={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!h){var n=g.createCanvas();h=n&&n.getContext("2d")}if(h)return d!==e&&(d=h.font=e||p),h.measureText(t);t=t||"";var r=/((?:\d+)?\.?\d*)px/.exec(e=e||p),i=r&&+r[1]||12,o=0;if(e.indexOf("mono")>=0)o=i*t.length;else for(var a=0;a<t.length;a++){var s=f[t[a]];o+=null==s?i:s*i}return{width:o}},loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}},m=F(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),y=F(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),v=Object.prototype.toString,x=Array.prototype,_=x.forEach,b=x.filter,w=x.slice,S=x.map,C=function(){}.constructor,T=C?C.prototype:null,M="__proto__",k=2311;function I(){return k++}function D(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function R(t){if(null==t||"object"!=typeof t)return t;var e=t,n=v.call(t);if("[object Array]"===n){if(!ct(t)){e=[];for(var r=0,i=t.length;r<i;r++)e[r]=R(t[r])}}else if(y[n]){if(!ct(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),r=0,i=t.length;r<i;r++)e[r]=t[r]}}else if(!m[n]&&!ct(t)&&!Q(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==M&&(e[a]=R(t[a]));return e}function P(t,e,n){if(!q(e)||!q(t))return n?R(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==M){var i=t[r],o=e[r];!q(o)||!q(i)||G(o)||G(i)||Q(o)||Q(i)||Z(o)||Z(i)||ct(o)||ct(i)?!n&&r in t||(t[r]=R(e[r])):P(i,o,n)}return t}function A(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==M&&(t[n]=e[n]);return t}function O(t,e,n){for(var r=H(e),i=0,o=r.length;i<o;i++){var a=r[i];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}function L(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function N(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else O(t,e,n)}function E(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function z(t,e,n){if(t&&e)if(t.forEach&&t.forEach===_)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function B(t,e,n){if(!t)return[];if(!e)return it(t);if(t.map&&t.map===S)return t.map(e,n);for(var r=[],i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i,t));return r}function F(t,e,n,r){if(t&&e){for(var i=0,o=t.length;i<o;i++)n=e.call(r,n,t[i],i,t);return n}}function V(t,e,n){if(!t)return[];if(!e)return it(t);if(t.filter&&t.filter===b)return t.filter(e,n);for(var r=[],i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function H(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}g.createCanvas;var W=T&&U(T.bind)?T.call.bind(T.bind):function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(w.call(arguments)))}};function j(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(w.call(arguments)))}}function G(t){return Array.isArray?Array.isArray(t):"[object Array]"===v.call(t)}function U(t){return"function"==typeof t}function X(t){return"string"==typeof t}function Y(t){return"[object String]"===v.call(t)}function $(t){return"number"==typeof t}function q(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function Z(t){return!!m[v.call(t)]}function K(t){return!!y[v.call(t)]}function Q(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function J(t){return null!=t.colorStops}function tt(t){return t!=t}function et(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(null!=t[n])return t[n]}function nt(t,e){return null!=t?t:e}function rt(t,e,n){return null!=t?t:null!=e?e:n}function it(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return w.apply(t,e)}function ot(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function at(t,e){if(!t)throw new Error(e)}function st(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var lt="__ec_primitive__";function ut(t){t[lt]=!0}function ct(t){return t[lt]}var ht=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return H(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),dt="function"==typeof Map,pt=function(){function t(e){var n=G(e);this.data=dt?new Map:new ht;var r=this;function i(t,e){n?r.set(t,e):r.set(e,t)}e instanceof t?e.each(i):e&&z(e,i)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(n,r){t.call(e,n,r)})},t.prototype.keys=function(){var t=this.data.keys();return dt?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function ft(t){return new pt(t)}function gt(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&A(n,e),n}function mt(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function yt(t,e){return t.hasOwnProperty(e)}function vt(){}var xt=180/Math.PI,_t=(Number.EPSILON||Math.pow(2,-52),function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}),bt=new function(){this.browser=new _t,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="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(bt.wxa=!0,bt.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?bt.worker=!0:!bt.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(bt.node=!0,bt.svgSupported=!0):function(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document){var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}}(navigator.userAgent,bt);const wt=bt;var St="___EC__COMPONENT__CONTAINER___",Ct="___EC__EXTENDED_CLASS___";function Tt(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function Mt(t,e){t.$constructor=t,t.extend=function(t){var e,n,r=this;return U(n=r)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return c(e,t),e}(r):(e=function(){(t.$constructor||r).apply(this,arguments)},function(t,e){var n=t.prototype;function r(){}for(var i in r.prototype=e.prototype,t.prototype=new r,n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}(e,this)),A(e.prototype,t),e[Ct]=!0,e.extend=this.extend,e.superCall=Dt,e.superApply=Rt,e.superClass=r,e}}function kt(t,e){t.extend=e.extend}var It=Math.round(10*Math.random());function Dt(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function Rt(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Pt(t){var e={};t.registerClass=function(t){var n,r=t.type||t.prototype.type;if(r){at(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),t.prototype.type=r;var i=Tt(r);if(i.sub){if(i.sub!==St){var o=function(t){var n=e[t.main];return n&&n[St]||((n=e[t.main]={})[St]=!0),n}(i);o[i.sub]=t}}else e[i.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[St]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var n=Tt(t),r=[],i=e[n.main];return i&&i[St]?z(i,function(t,e){e!==St&&r.push(t)}):r.push(i),r},t.hasClass=function(t){var n=Tt(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return z(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var n=Tt(t),r=e[n.main];return r&&r[St]}}function At(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,i){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(r&&L(r,s)>=0||i&&L(i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var Ot=At([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Lt=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Ot(this,t,e)},t}(),Nt=function(t,e){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Nt(t,e)};function Et(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Nt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create,Object.create;var zt=function(t){this.value=t},Bt=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new zt(t);return this.insertEntry(e),e},t.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++},t.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--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Ft=function(){function t(t){this._list=new Bt,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,i=null;if(null==r[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new zt(e),a.key=t,n.insertEntry(a),r[t]=a}return i},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const Vt=Ft;var Ht=new Vt(50);function Wt(t){if("string"==typeof t){var e=Ht.get(t);return e&&e.image}return t}function jt(t,e,n,r,i){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Ht.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?!Ut(e=o.image)&&o.pending.push(a):((e=g.loadImage(t,Gt,Gt)).__zrImageSrc=t,Ht.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Gt(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Ut(t){return t&&t.width&&t.height}function Xt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Yt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function $t(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function qt(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Zt(t,e,n,r){void 0===r&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=i*h+s*c,t[1]=-i*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-r[0])+c*(u-r[1])+r[0],t[5]=h*(u-r[1])-c*(a-r[0])+r[1],t}function Kt(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}var Qt=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.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}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}();const Jt=Qt;var te=Math.min,ee=Math.max,ne=Math.abs,re=["x","y"],ie=["width","height"],oe=new Jt,ae=new Jt,se=new Jt,le=new Jt,ue=ye(),ce=ue.minTv,he=ue.maxTv,de=[0,0],pe=function(){function t(e,n,r,i){t.set(this,e,n,r,i)}return t.set=function(t,e,n,r,i){return r<0&&(e+=r,r=-r),i<0&&(n+=i,i=-i),t.x=e,t.y=n,t.width=r,t.height=i,t},t.prototype.union=function(t){var e=te(t.x,this.x),n=te(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ee(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ee(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,i=[1,0,0,1,0,0];return qt(i,i,[-e.x,-e.y]),function(t,e,n){var r=n[0],i=n[1];t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i}(i,i,[n,r]),qt(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n,r){return t.intersect(this,e,n,r)},t.intersect=function(e,n,r,i){r&&Jt.set(r,0,0);var o=i&&i.outIntersectRect||null,a=i&&i.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!e||!n)return!1;e instanceof t||(e=t.set(fe,e.x,e.y,e.width,e.height)),n instanceof t||(n=t.set(ge,n.x,n.y,n.width,n.height));var s=!!r;ue.reset(i,s);var l=ue.touchThreshold,u=e.x+l,c=e.x+e.width-l,h=e.y+l,d=e.y+e.height-l,p=n.x+l,f=n.x+n.width-l,g=n.y+l,m=n.y+n.height-l;if(u>c||h>d||p>f||g>m)return!1;var y=!(c<p||f<u||d<g||m<h);return(s||o)&&(de[0]=1/0,de[1]=0,me(u,c,p,f,0,s,o,a),me(h,d,g,m,1,s,o,a),s&&Jt.copy(r,y?ue.useDir?ue.dirMinTv:ce:he)),y},t.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},t.prototype.contain=function(e,n){return t.contain(this,e,n)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}oe.x=se.x=n.x,oe.y=le.y=n.y,ae.x=le.x=n.x+n.width,ae.y=se.y=n.y+n.height,oe.transform(r),le.transform(r),ae.transform(r),se.transform(r),e.x=te(oe.x,ae.x,se.x,le.x),e.y=te(oe.y,ae.y,se.y,le.y);var l=ee(oe.x,ae.x,se.x,le.x),u=ee(oe.y,ae.y,se.y,le.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),fe=new pe(0,0,0,0),ge=new pe(0,0,0,0);function me(t,e,n,r,i,o,a,s){var l=ne(e-n),u=ne(r-t),c=te(l,u),h=re[i],d=re[1-i],p=ie[i];e<n||r<t?l<u?(o&&(he[h]=-l),s&&(a[h]=e,a[p]=0)):(o&&(he[h]=u),s&&(a[h]=t,a[p]=0)):(a&&(a[h]=ee(t,n),a[p]=te(e,r)-a[h]),o&&(c<de[0]||ue.useDir)&&(de[0]=te(c,de[0]),(l<u||!ue.bidirectional)&&(ce[h]=l,ce[d]=0,ue.useDir&&ue.calcDirMTV()),(l>=u||!ue.bidirectional)&&(ce[h]=-u,ce[d]=0,ue.useDir&&ue.calcDirMTV())))}function ye(){var t=0,e=new Jt,n=new Jt,r={minTv:new Jt,maxTv:new Jt,useDir:!1,dirMinTv:new Jt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){r.touchThreshold=0,i&&null!=i.touchThreshold&&(r.touchThreshold=ee(0,i.touchThreshold)),r.negativeSize=!1,o&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&null!=i.direction&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),t=i.direction,r.bidirectional=null==i.bidirectional||!!i.bidirectional,r.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var o=r.minTv,a=r.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(t),u=Math.cos(t),c=l*o.y+u*o.x;i(c)?i(o.x)&&i(o.y)&&a.set(0,0):(n.x=s*u/c,n.y=s*l/c,i(n.x)&&i(n.y)?a.set(0,0):(r.bidirectional||e.dot(n)>0)&&n.len()<a.len()&&a.copy(n))}};function i(t){return ne(t)<1e-10}return r}const ve=pe;function xe(t){_e||(_e=new Vt(100)),t=t||p;var e=_e.get(t);return e||(e={font:t,strWidthCache:new Vt(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:g.measureText("国",t).width,asciiCharWidth:g.measureText("a",t).width},_e.put(t,e)),e}var _e,be=0;function we(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(be>=5)){t=t||p;for(var e=[],n=+new Date,r=0;r<=127;r++)e[r]=g.measureText(String.fromCharCode(r),t).width;var i=+new Date-n;return i>16?be=5:i>2&&be++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Se(t,e){var n=t.strWidthCache,r=n.get(e);return null==r&&(r=g.measureText(e,t.font).width,n.put(e,r)),r}function Ce(t,e,n,r){var i=Se(xe(e),t),o=Ie(e),a=Me(0,i,n),s=ke(0,o,r);return new ve(a,s,i,o)}function Te(t,e,n,r){var i=((t||"")+"").split("\n");if(1===i.length)return Ce(i[0],e,n,r);for(var o=new ve(0,0,0,0),a=0;a<i.length;a++){var s=Ce(i[a],e,n,r);0===a?o.copy(s):o.union(s)}return o}function Me(t,e,n,r){return"right"===n?r?t+=e:t-=e:"center"===n&&(r?t+=e/2:t-=e/2),t}function ke(t,e,n,r){return"middle"===n?r?t+=e/2:t-=e/2:"bottom"===n&&(r?t+=e:t-=e),t}function Ie(t){return xe(t).stWideCharWidth}function De(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Re(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=De(r[0],n.width),u+=De(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var Pe=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Ae(t,e,n,r,i,o){if(!n)return t.text="",void(t.isTruncated=!1);var a=(e+"").split("\n");o=Oe(n,r,i,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)Le(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}function Oe(t,e,n,r){var i=A({},r=r||{});n=nt(n,"..."),i.maxIterations=nt(r.maxIterations,2);var o=i.minChar=nt(r.minChar,0),a=i.fontMeasureInfo=xe(e),s=a.asciiCharWidth;i.placeholder=nt(r.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<o&&l>=s;u++)l-=s;var c=Se(a,n);return c>l&&(n="",c=0),l=t-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=l,i.containerWidth=t,i}function Le(t,e,n){var r=n.containerWidth,i=n.contentWidth,o=n.fontMeasureInfo;if(!r)return t.textLine="",void(t.isTruncated=!1);var a=Se(o,e);if(a<=r)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(a<=i||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?Ne(e,i,o):a>0?Math.floor(e.length*i/a):0;a=Se(o,e=e.substr(0,l))}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function Ne(t,e,n){for(var r=0,i=0,o=t.length;i<o&&r<e;i++)r+=we(n,t.charCodeAt(i));return i}var Ee=function(){},ze=function(t){this.tokens=[],t&&(this.tokens=t)},Be=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function Fe(t,e,n,r,i){var o,a,s=""===e,l=i&&n.rich[i]||{},u=t.lines,c=l.font||n.font,h=!1;if(r){var d=l.padding,p=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var f=De(l.width,r.width)+p;u.length>0&&f+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=f}else{var g=We(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}o||(o=e.split("\n"));for(var m=xe(c),y=0;y<o.length;y++){var v=o[y],x=new Ee;if(x.styleName=i,x.text=v,x.isLineHolder=!v&&!s,"number"==typeof l.width?x.width=l.width:x.width=a?a[y]:Se(m,v),y||h)u.push(new ze([x]));else{var _=(u[u.length-1]||(u[0]=new ze)).tokens,b=_.length;1===b&&_[0].isLineHolder?_[0]=x:(v||!b||s)&&_.push(x)}}}var Ve=F(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function He(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!Ve[t]}function We(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=xe(e),d=0;d<t.length;d++){var p=t.charAt(d);if("\n"!==p){var f=we(h,p.charCodeAt(0)),g=!r&&!He(p);(o.length?c+f>n:i+c+f>n)?c?(s||l)&&(g?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=p,s="",c=u+=f):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=f)):g?(o.push(l),a.push(u),l=p,u=f):(o.push(p),a.push(f)):(c+=f,g?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}function je(t,e,n,r,i,o){if(t.baseX=n,t.baseY=r,t.outerWidth=t.outerHeight=null,e){var a=2*e.width,s=2*e.height;ve.set(Ge,Me(n,a,i),ke(r,s,o),a,s),ve.intersect(e,Ge,null,Ue);var l=Ue.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Me(l.x,l.width,i,!0),t.baseY=ke(l.y,l.height,o,!0)}}var Ge=new ve(0,0,0,0),Ue={outIntersectRect:{},clamp:!0};function Xe(t){return null!=t?t+="":t=""}function Ye(t,e,n,r){var i=new ve(Me(t.x||0,e,t.textAlign),ke(t.y||0,n,t.textBaseline),e,n),o=null!=r?r:$e(t)?t.lineWidth:0;return o>0&&(i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o),i}function $e(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}function qe(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function Ze(t){return[t[0],t[1]]}function Ke(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Qe(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Je(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function tn(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var en=tn,nn=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function rn(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function on(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function an(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var sn=Xt;function ln(t){return t>5e-5||t<-5e-5}var un=[],cn=[],hn=[1,0,0,1,0,0],dn=Math.abs,pn=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return ln(this.rotation)||ln(this.x)||ln(this.y)||ln(this.scaleX-1)||ln(this.scaleY-1)||ln(this.skewX)||ln(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):sn(n),t&&(e?$t(n,t,n):Yt(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(sn(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(un);var n=un[0]<0?-1:1,r=un[1]<0?-1:1,i=((un[0]-n)*e+n)/un[0]||0,o=((un[1]-r)*e+r)/un[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Kt(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.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],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],$t(cn,t.invTransform,e),e=cn);var n=this.originX,r=this.originY;(n||r)&&(hn[4]=n,hn[5]=r,$t(cn,e,hn),cn[4]-=n,cn[5]-=r,e=cn),this.setLocalTransform(e)}},t.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)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&rn(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&rn(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&dn(t[0]-1)>1e-10&&dn(t[3]-1)>1e-10?Math.sqrt(dn(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){gn(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var p=n+a,f=r+s;e[4]=-p*i-h*f*o,e[5]=-f*o-d*p*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=d*i,e[2]=h*o,l&&Zt(e,e,l),e[4]+=n+u,e[5]+=r+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),fn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function gn(t,e){for(var n=0;n<fn.length;n++){var r=fn[n];t[r]=e[r]}}const mn=pn;var yn={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-yn.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*yn.bounceIn(2*t):.5*yn.bounceOut(2*t-1)+.5}};const vn=yn;var xn=Math.pow,_n=Math.sqrt,bn=1e-4,wn=_n(3),Sn=1/3,Cn=qe(),Tn=qe(),Mn=qe();function kn(t){return t>-1e-8&&t<1e-8}function In(t){return t>1e-8||t<-1e-8}function Dn(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function Rn(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function Pn(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,p=0;if(kn(c)&&kn(h))kn(s)?o[0]=0:(C=-l/s)>=0&&C<=1&&(o[p++]=C);else{var f=h*h-4*c*d;if(kn(f)){var g=h/c,m=-g/2;(C=-s/a+g)>=0&&C<=1&&(o[p++]=C),m>=0&&m<=1&&(o[p++]=m)}else if(f>0){var y=_n(f),v=c*s+1.5*a*(-h+y),x=c*s+1.5*a*(-h-y);(C=(-s-((v=v<0?-xn(-v,Sn):xn(v,Sn))+(x=x<0?-xn(-x,Sn):xn(x,Sn))))/(3*a))>=0&&C<=1&&(o[p++]=C)}else{var _=(2*c*s-3*a*h)/(2*_n(c*c*c)),b=Math.acos(_)/3,w=_n(c),S=Math.cos(b),C=(-s-2*w*S)/(3*a),T=(m=(-s+w*(S+wn*Math.sin(b)))/(3*a),(-s+w*(S-wn*Math.sin(b)))/(3*a));C>=0&&C<=1&&(o[p++]=C),m>=0&&m<=1&&(o[p++]=m),T>=0&&T<=1&&(o[p++]=T)}}return p}function An(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(kn(a))In(o)&&(c=-s/o)>=0&&c<=1&&(i[l++]=c);else{var u=o*o-4*a*s;if(kn(u))i[0]=-o/(2*a);else if(u>0){var c,h=_n(u),d=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}function On(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function Ln(t,e,n,r,i,o,a,s,l){for(var u=t,c=e,h=0,d=1/l,p=1;p<=l;p++){var f=p*d,g=Dn(t,n,i,a,f),m=Dn(e,r,o,s,f),y=g-u,v=m-c;h+=Math.sqrt(y*y+v*v),u=g,c=m}return h}function Nn(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function En(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function zn(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function Bn(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function Fn(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,p=Nn(t,n,i,d),f=Nn(e,r,o,d),g=p-s,m=f-l;u+=Math.sqrt(g*g+m*m),s=p,l=f}return u}var Vn=/cubic-bezier\(([0-9,\.e ]+)\)/;function Hn(t){var e=t&&Vn.exec(t);if(e){var n=e[1].split(","),r=+st(n[0]),i=+st(n[1]),o=+st(n[2]),a=+st(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:Pn(0,r,o,1,t,s)&&Dn(0,i,a,1,s[0])}}}const Wn=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||vt,this.ondestroy=t.ondestroy||vt,this.onrestart=t.onrestart||vt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=U(t)?t:vn[t]||Hn(t)},t}();var jn={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 Gn(t){return(t=Math.round(t))<0?0:t>255?255:t}function Un(t){return t<0?0:t>1?1:t}function Xn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Gn(parseFloat(e)/100*255):Gn(parseInt(e,10))}function Yn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Un(parseFloat(e)/100):Un(parseFloat(e))}function $n(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function qn(t,e,n){return t+(e-t)*n}function Zn(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function Kn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Qn=new Vt(20),Jn=null;function tr(t,e){Jn&&Kn(Jn,e),Jn=Qn.put(t,Jn||e.slice())}function er(t,e){if(t){e=e||[];var n=Qn.get(t);if(n)return Kn(e,n);var r=(t+="").replace(/ /g,"").toLowerCase();if(r in jn)return Kn(e,jn[r]),tr(t,e),e;var i,o=r.length;if("#"===r.charAt(0))return 4===o||5===o?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(Zn(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===o?parseInt(r.slice(4),16)/15:1),tr(t,e),e):void Zn(e,0,0,0,1):7===o||9===o?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(Zn(e,(16711680&i)>>16,(65280&i)>>8,255&i,9===o?parseInt(r.slice(7),16)/255:1),tr(t,e),e):void Zn(e,0,0,0,1):void 0;var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?Zn(e,+u[0],+u[1],+u[2],1):Zn(e,0,0,0,1);c=Yn(u.pop());case"rgb":return u.length>=3?(Zn(e,Xn(u[0]),Xn(u[1]),Xn(u[2]),3===u.length?c:Yn(u[3])),tr(t,e),e):void Zn(e,0,0,0,1);case"hsla":return 4!==u.length?void Zn(e,0,0,0,1):(u[3]=Yn(u[3]),nr(u,e),tr(t,e),e);case"hsl":return 3!==u.length?void Zn(e,0,0,0,1):(nr(u,e),tr(t,e),e);default:return}}Zn(e,0,0,0,1)}}function nr(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Yn(t[1]),i=Yn(t[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return Zn(e=e||[],Gn(255*$n(a,o,n+1/3)),Gn(255*$n(a,o,n)),Gn(255*$n(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function rr(t,e){var n=er(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return ar(n,4===n.length?"rgba":"rgb")}}function ir(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=er(e[i]),s=er(e[o]),l=r-i,u=ar([Gn(qn(a[0],s[0],l)),Gn(qn(a[1],s[1],l)),Gn(qn(a[2],s[2],l)),Un(qn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function or(t,e,n,r){var i,o=er(t);if(t)return o=function(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,d=((s-o)/6+l/2)/l;r===s?e=d-h:i===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(o),null!=e&&(o[0]=(i=U(e)?e(o[0]):e,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(o[1]=Yn(U(n)?n(o[1]):n)),null!=r&&(o[2]=Yn(U(r)?r(o[2]):r)),ar(nr(o),"rgba")}function ar(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function sr(t,e){var n=er(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var lr=new Vt(100);function ur(t){if(X(t)){var e=lr.get(t);return e||(e=rr(t,-.1),lr.put(t,e)),e}if(J(t)){var n=A({},t);return n.colorStops=B(t.colorStops,function(t){return{offset:t.offset,color:rr(t.color,-.1)}}),n}return t}Math.round,wt.hasGlobalWindow&&U(window.btoa);var cr=Array.prototype.slice;function hr(t,e,n){return(e-t)*n+t}function dr(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=hr(e[o],n[o],r);return t}function pr(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function fr(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function gr(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function mr(t,e,n){var r=t,i=e;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a)if(o>a)r.length=a;else for(var s=o;s<a;s++)r.push(1===n?i[s]:cr.call(i[s]));var l=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var u=0;u<l;u++)isNaN(r[s][u])&&(r[s][u]=i[s][u])}}function yr(t){if(E(t)){var e=t.length;if(E(t[0])){for(var n=[],r=0;r<e;r++)n.push(cr.call(t[r]));return n}return cr.call(t)}return t}function vr(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function xr(t){return 4===t||5===t}function _r(t){return 1===t||2===t}var br=[0,0,0,0],wr=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=6,s=e;if(E(e)){var l=function(t){return E(t&&t[0])?2:1}(e);a=l,(1===l&&!$(e[0])||2===l&&!$(e[0][0]))&&(o=!0)}else if($(e)&&!tt(e))a=0;else if(X(e))if(isNaN(+e)){var u=er(e);u&&(s=u,a=3)}else a=0;else if(J(e)){var c=A({},s);c.colorStops=B(e.colorStops,function(t){return{offset:t.offset,color:er(t.color)}}),"linear"===e.type?a=4:"radial"===e.type&&(a=5),s=c}0===i?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=U(n)?n:vn[n]||Hn(n)),r.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=_r(r),l=xr(r),u=0;u<i;u++){var c=n[u],h=c.value,d=o.value;c.percent=c.time/t,a||(s&&u!==i-1?mr(h,d,r):l&&gr(h.colorStops,d.colorStops))}if(!a&&5!==r&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var p=n[0].value;for(u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-p:3===r?n[u].additiveValue=pr([],n[u].value,p,-1):_r(r)&&(n[u].additiveValue=1===r?pr([],n[u].value,p,-1):fr([],n[u].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=3===s,d=this._lastFr,p=Math.min;if(1===u)r=i=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=p(d+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=p(n,u-2)}else{for(n=d;n<u&&!(l[n].percent>e);n++);n=p(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var f=i.percent-r.percent,g=0===f?1:p((e-r.percent)/f,1);i.easingFunc&&(g=i.easingFunc(g));var m=o?this._additiveValue:h?br:t[c];if(!_r(s)&&!h||m||(m=this._additiveValue=[]),this.discrete)t[c]=g<1?r.rawValue:i.rawValue;else if(_r(s))1===s?dr(m,r[a],i[a],g):function(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=hr(e[a][s],n[a][s],r)}}(m,r[a],i[a],g);else if(xr(s)){var y=r[a],v=i[a],x=4===s;t[c]={type:x?"linear":"radial",x:hr(y.x,v.x,g),y:hr(y.y,v.y,g),colorStops:B(y.colorStops,function(t,e){var n=v.colorStops[e];return{offset:hr(t.offset,n.offset,g),color:vr(dr([],t.color,n.color,g))}}),global:v.global},x?(t[c].x2=hr(y.x2,v.x2,g),t[c].y2=hr(y.y2,v.y2,g)):t[c].r=hr(y.r,v.r,g)}else if(h)dr(m,r[a],i[a],g),o||(t[c]=vr(m));else{var _=hr(r[a],i[a],g);o?this._additiveValue=_:t[c]=_}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;0===e?t[n]=t[n]+r:3===e?(er(t[n],br),pr(br,br,r,1),t[n]=vr(br)):1===e?pr(t[n],t[n],r,1):2===e&&fr(t[n],t[n],r,1)},t}(),Sr=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?D("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,H(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new wr(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,3===u.valType&&l&&(l=vr(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,yr(l),r),this._trackKeys.push(a)}s.addKeyframe(t,yr(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.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)},t.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)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new Wn({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var r=e._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return B(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var i=e[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[i]=yr(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||H(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();const Cr=Sr;var Tr=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a<i[t].length;a++)if(i[t][a].h===n)return this;var s={h:n,query:e,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[t].length-1,u=i[t][l];return u&&u.callAtLast?i[t].splice(l,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.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 r=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.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)}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=e[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}();const Mr=Tr;var kr=1;wt.hasGlobalWindow&&(kr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ir=kr,Dr="#333",Rr="#ccc",Pr="__zr_normal__",Ar=fn.concat(["ignore"]),Or=F(fn,function(t,e){return t[e]=!0,t},{ignore:!1}),Lr={},Nr=new ve(0,0,0,0),Er=[],zr=function(){function t(t){this.id=I(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;i.copyTransform(e);var u=null!=n.position,c=n.autoOverflowArea,h=void 0;if((c||u)&&(h=Nr,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),r||h.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(Lr,n,h):Re(Lr,n,h),i.x=Lr.x,i.y=Lr.y,o=Lr.align,a=Lr.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var p=void 0,f=void 0;"center"===d?(p=.5*h.width,f=.5*h.height):(p=De(d[0],h.width),f=De(d[1],h.height)),l=!0,i.originX=-i.x+p+(r?0:h.x),i.originY=-i.y+f+(r?0:h.y)}}null!=n.rotation&&(i.rotation=n.rotation);var g=n.offset;g&&(i.x+=g[0],i.y+=g[1],l||(i.originX=-g[0],i.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=m.overflowRect=m.overflowRect||new ve(0,0,0,0);i.getLocalTransform(Er),Kt(Er,Er),ve.copy(y,h),y.applyTransform(Er)}else m.overflowRect=null;var v=void 0,x=void 0,_=void 0;(null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside)&&this.canBeInsideText()?(v=n.insideFill,x=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=x&&"auto"!==x||(x=this.getInsideTextStroke(v),_=!0)):(v=n.outsideFill,x=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=x&&"auto"!==x||(x=this.getOutsideStroke(v),_=!0)),(v=v||"#000")===m.fill&&x===m.stroke&&_===m.autoStroke&&o===m.align&&a===m.verticalAlign||(s=!0,m.fill=v,m.stroke=x,m.autoStroke=_,m.align=o,m.verticalAlign=a,e.setDefaultTextStyle(m)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Rr:Dr},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&er(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,ar(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},A(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(q(t))for(var n=H(t),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,t[i])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==Pr)){var o=r.targetName,a=o?e[o]:e;r.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Ar)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null==t[i]||i in e||(e[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Pr,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===Pr;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(L(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(t,e,n,l),c&&c.useState(t,e,n,l),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}D("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(t[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=L(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=L(r,t),o=L(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r];A(n,i),i.textConfig&&A(e=e||{},i.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,r,i,o){var a=!(e&&r);e&&e.textConfig?(this.textConfig=A({},r?this.textConfig:n.textConfig),A(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Ar.length;u++){var c=Ar[u],h=i&&Or[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var d=this.animators[u],p=d.targetName;d.getLoop()||d.__changeFinalValue(p?(e||n)[p]:e||n)}l&&this._transitionState(t,s,o)},t.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}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new mn,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),A(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.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)}},t.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)}},t.prototype.animate=function(t,e,n){var r=t?this[t]:this,i=new Cr(r,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},t.prototype.addAnimator=function(t,e){var n=this.__zr,r=this;t.during(function(){r.updateDuringAnimation(e)}).done(function(){var e=r.animators,n=L(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){Br(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Br(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=Br(this,e,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function n(t,n,r,i){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}Object.defineProperty(e,t,{get:function(){return this[n]||o(this,this[n]=[]),this[n]},set:function(t){this[r]=t[0],this[i]=t[1],this[n]=t,o(this,t)}})}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function Br(t,e,n,r,i){var o=[];Hr(t,"",t,e,n=n||{},r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var d=0;d<o.length;d++){var p=o[d];c&&p.done(c),h&&p.aborted(h),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function Fr(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function Vr(t,e,n){if(E(e[n]))if(E(t[n])||(t[n]=[]),K(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),Fr(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(E(i[0]))for(var s=i[0].length,l=0;l<a;l++)o[l]?Fr(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else Fr(o,i,a);o.length=i.length}else t[n]=e[n]}function Hr(t,e,n,r,i,o,a,s){for(var l=H(r),u=i.duration,c=i.delay,h=i.additive,d=i.setToFinal,p=!q(o),f=t.animators,g=[],m=0;m<l.length;m++){var y=l[m],v=r[y];if(null!=v&&null!=n[y]&&(p||o[y]))if(!q(v)||E(v)||J(v))g.push(y);else{if(e){s||(n[y]=v,t.updateDuringAnimation(e));continue}Hr(t,y,n[y],v,i,o&&o[y],a,s)}else s||(n[y]=v,t.updateDuringAnimation(e),g.push(y))}var x=g.length;if(!h&&x)for(var _=0;_<f.length;_++)if((w=f[_]).targetName===e&&w.stopTracks(g)){var b=L(f,w);f.splice(b,1)}if(i.force||(g=V(g,function(t){return!((e=r[t])===(i=n[t])||E(e)&&E(i)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}(e,i));var e,i}),x=g.length),x>0||i.force&&!a.length){var w,S=void 0,C=void 0,T=void 0;if(s)for(C={},d&&(S={}),_=0;_<x;_++)C[y=g[_]]=n[y],d?S[y]=r[y]:n[y]=r[y];else if(d)for(T={},_=0;_<x;_++)T[y=g[_]]=yr(n[y]),Vr(n,r,y);(w=new Cr(n,!1,!1,h?V(f,function(t){return t.targetName===e}):null)).targetName=e,i.scope&&(w.scope=i.scope),d&&S&&w.whenWithKeys(0,S,g),T&&w.whenWithKeys(0,T,g),w.whenWithKeys(null==u?500:u,s?C:r,g).delay(c||0),t.addAnimator(w,e),a.push(w)}}N(zr,Mr),N(zr,mn);const Wr=zr;var jr="__zr_style_"+Math.round(10*Math.random()),Gr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ur={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Gr[jr]=!0;var Xr=["z","z2","invisible"],Yr=["invisible"],$r=function(t){function e(e){return t.call(this,e)||this}var n;return Et(e,t),e.prototype._init=function(e){for(var n=H(e),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,r){var i,o,a,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(i=this,o=t,a=e,qr.copy(i.getBoundingRect()),i.transform&&qr.applyTransform(i.transform),Zr.width=o,Zr.height=a,!qr.intersect(Zr))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length)for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1;if(r&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ve(0,0,0,0)),e?ve.applyTransform(t,n,e):t.copy(n),(i||o||a)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(a),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+a-i));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new ve(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:A(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return gt(Gr,t)},e.prototype.useStyle=function(t){t[jr]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[jr]},e.prototype._innerSaveToNormal=function(e){t.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,Xr)},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=H(u),h=0;h<c.length;h++)(p=c[h])in s&&(s[p]=s[p],this.style[p]=u[p]);var d=H(s);for(h=0;h<d.length;h++){var p=d[h];this.style[p]=this.style[p]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?Yr:Xr;for(h=0;h<f.length;h++)p=f[h],n&&null!=n[p]?this[p]=n[p]:l&&null!=r[p]&&(this[p]=r[p])},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},e.prototype._mergeStyle=function(t,e){return A(t,e),t},e.prototype.getAnimationStyleProps=function(){return Ur},e.initDefaultProps=((n=e.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=3)),e}(Wr),qr=new ve(0,0,0,0),Zr=new ve(0,0,0,0);const Kr=$r;var Qr=Math.min,Jr=Math.max,ti=Math.sin,ei=Math.cos,ni=2*Math.PI,ri=qe(),ii=qe(),oi=qe();function ai(t,e,n,r,i,o){i[0]=Qr(t,n),i[1]=Qr(e,r),o[0]=Jr(t,n),o[1]=Jr(e,r)}var si=[],li=[];function ui(t,e,n,r,i,o,a,s,l,u){var c=An,h=Dn,d=c(t,n,i,a,si);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var f=h(t,n,i,a,si[p]);l[0]=Qr(f,l[0]),u[0]=Jr(f,u[0])}for(d=c(e,r,o,s,li),p=0;p<d;p++){var g=h(e,r,o,s,li[p]);l[1]=Qr(g,l[1]),u[1]=Jr(g,u[1])}l[0]=Qr(t,l[0]),u[0]=Jr(t,u[0]),l[0]=Qr(a,l[0]),u[0]=Jr(a,u[0]),l[1]=Qr(e,l[1]),u[1]=Jr(e,u[1]),l[1]=Qr(s,l[1]),u[1]=Jr(s,u[1])}function ci(t,e,n,r,i,o,a,s){var l=zn,u=Nn,c=Jr(Qr(l(t,n,i),1),0),h=Jr(Qr(l(e,r,o),1),0),d=u(t,n,i,c),p=u(e,r,o,h);a[0]=Qr(t,i,d),a[1]=Qr(e,o,p),s[0]=Jr(t,i,d),s[1]=Jr(e,o,p)}function hi(t,e,n,r,i,o,a,s,l){var u=on,c=an,h=Math.abs(i-o);if(h%ni<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(ri[0]=ei(i)*n+t,ri[1]=ti(i)*r+e,ii[0]=ei(o)*n+t,ii[1]=ti(o)*r+e,u(s,ri,ii),c(l,ri,ii),(i%=ni)<0&&(i+=ni),(o%=ni)<0&&(o+=ni),i>o&&!a?o+=ni:i<o&&a&&(i+=ni),a){var d=o;o=i,i=d}for(var p=0;p<o;p+=Math.PI/2)p>i&&(oi[0]=ei(p)*n+t,oi[1]=ti(p)*r+e,u(s,oi,s),c(l,oi,l))}var di={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},pi=[],fi=[],gi=[],mi=[],yi=[],vi=[],xi=Math.min,_i=Math.max,bi=Math.cos,wi=Math.sin,Si=Math.abs,Ci=Math.PI,Ti=2*Ci,Mi="undefined"!=typeof Float32Array,ki=[];function Ii(t){return Math.round(t/Ci*1e8)/1e8%2*Ci}var Di=function(){function t(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=[])}var e;return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=Si(n/Ir/t)||0,this._uy=Si(n/Ir/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(di.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Si(t-this._xi),r=Si(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(di.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(di.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(di.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),ki[0]=r,ki[1]=i,function(t,e){var n=Ii(t[0]);n<0&&(n+=Ti);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=Ti?i=n+Ti:e&&n-i>=Ti?i=n-Ti:!e&&n>i?i=n+(Ti-Ii(n-i)):e&&n<i&&(i=n-(Ti-Ii(i-n))),t[0]=n,t[1]=i}(ki,o),r=ki[0];var a=(i=ki[1])-r;return this.addData(di.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=bi(i)*n+t,this._yi=wi(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(di.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(di.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){if(this._saveData){var e=t.length;this.data&&this.data.length===e||!Mi||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},t.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;i<e;i++)n+=t[i].len();var o=this.data;if(Mi&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(r+n),r>0&&o))for(var a=0;a<r;a++)this.data[a]=o[a];for(i=0;i<e;i++){var s=t[i].data;for(a=0;a<s.length;a++)this.data[r++]=s[a]}this._len=r}},t.prototype.addData=function(t,e,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Mi&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){gi[0]=gi[1]=yi[0]=yi[1]=Number.MAX_VALUE,mi[0]=mi[1]=vi[0]=vi[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(i=n=e[t],o=r=e[t+1]),a){case di.M:n=i=e[t++],r=o=e[t++],yi[0]=i,yi[1]=o,vi[0]=i,vi[1]=o;break;case di.L:ai(n,r,e[t],e[t+1],yi,vi),n=e[t++],r=e[t++];break;case di.C:ui(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],yi,vi),n=e[t++],r=e[t++];break;case di.Q:ci(n,r,e[t++],e[t++],e[t],e[t+1],yi,vi),n=e[t++],r=e[t++];break;case di.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],d=e[t++],p=e[t++]+d;t+=1;var f=!e[t++];s&&(i=bi(d)*c+l,o=wi(d)*h+u),hi(l,u,c,h,d,p,f,yi,vi),n=bi(p)*c+l,r=wi(p)*h+u;break;case di.R:ai(i=n=e[t++],o=r=e[t++],i+e[t++],o+e[t++],yi,vi);break;case di.Z:n=i,r=o}on(gi,gi,yi),an(mi,mi,vi)}return 0===t&&(gi[0]=gi[1]=mi[0]=mi[1]=0),new ve(gi[0],gi[1],mi[0]-gi[0],mi[1]-gi[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var d=t[h++],p=1===h;p&&(a=i=t[h],s=o=t[h+1]);var f=-1;switch(d){case di.M:i=a=t[h++],o=s=t[h++];break;case di.L:var g=t[h++],m=(x=t[h++])-o;(Si(D=g-i)>n||Si(m)>r||h===e-1)&&(f=Math.sqrt(D*D+m*m),i=g,o=x);break;case di.C:var y=t[h++],v=t[h++],x=(g=t[h++],t[h++]),_=t[h++],b=t[h++];f=Ln(i,o,y,v,g,x,_,b,10),i=_,o=b;break;case di.Q:f=Fn(i,o,y=t[h++],v=t[h++],g=t[h++],x=t[h++],10),i=g,o=x;break;case di.A:var w=t[h++],S=t[h++],C=t[h++],T=t[h++],M=t[h++],k=t[h++],I=k+M;h+=1,p&&(a=bi(M)*C+w,s=wi(M)*T+S),f=_i(C,T)*xi(Ti,Math.abs(k)),i=bi(I)*C+w,o=wi(I)*T+S;break;case di.R:a=i=t[h++],s=o=t[h++],f=2*t[h++]+2*t[h++];break;case di.Z:var D=a-i;m=s-o,f=Math.sqrt(D*D+m*m),i=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c,h,d=this.data,p=this._ux,f=this._uy,g=this._len,m=e<1,y=0,v=0,x=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var _=0;_<g;){var b=d[_++],w=1===_;switch(w&&(n=i=d[_],r=o=d[_+1]),b!==di.L&&x>0&&(t.lineTo(c,h),x=0),b){case di.M:n=i=d[_++],r=o=d[_++],t.moveTo(i,o);break;case di.L:a=d[_++],s=d[_++];var S=Si(a-i),C=Si(s-o);if(S>p||C>f){if(m){if(y+($=l[v++])>u){var T=(u-y)/$;t.lineTo(i*(1-T)+a*T,o*(1-T)+s*T);break t}y+=$}t.lineTo(a,s),i=a,o=s,x=0}else{var M=S*S+C*C;M>x&&(c=a,h=s,x=M)}break;case di.C:var k=d[_++],I=d[_++],D=d[_++],R=d[_++],P=d[_++],A=d[_++];if(m){if(y+($=l[v++])>u){On(i,k,D,P,T=(u-y)/$,pi),On(o,I,R,A,T,fi),t.bezierCurveTo(pi[1],fi[1],pi[2],fi[2],pi[3],fi[3]);break t}y+=$}t.bezierCurveTo(k,I,D,R,P,A),i=P,o=A;break;case di.Q:if(k=d[_++],I=d[_++],D=d[_++],R=d[_++],m){if(y+($=l[v++])>u){Bn(i,k,D,T=(u-y)/$,pi),Bn(o,I,R,T,fi),t.quadraticCurveTo(pi[1],fi[1],pi[2],fi[2]);break t}y+=$}t.quadraticCurveTo(k,I,D,R),i=D,o=R;break;case di.A:var O=d[_++],L=d[_++],N=d[_++],E=d[_++],z=d[_++],B=d[_++],F=d[_++],V=!d[_++],H=N>E?N:E,W=Si(N-E)>.001,j=z+B,G=!1;if(m&&(y+($=l[v++])>u&&(j=z+B*(u-y)/$,G=!0),y+=$),W&&t.ellipse?t.ellipse(O,L,N,E,F,z,j,V):t.arc(O,L,H,z,j,V),G)break t;w&&(n=bi(z)*N+O,r=wi(z)*E+L),i=bi(j)*N+O,o=wi(j)*E+L;break;case di.R:n=i=d[_],r=o=d[_+1],a=d[_++],s=d[_++];var U=d[_++],X=d[_++];if(m){if(y+($=l[v++])>u){var Y=u-y;t.moveTo(a,s),t.lineTo(a+xi(Y,U),s),(Y-=U)>0&&t.lineTo(a+U,s+xi(Y,X)),(Y-=X)>0&&t.lineTo(a+_i(U-Y,0),s+X),(Y-=U)>0&&t.lineTo(a,s+_i(X-Y,0));break t}y+=$}t.rect(a,s,U,X);break;case di.Z:if(m){var $;if(y+($=l[v++])>u){T=(u-y)/$,t.lineTo(i*(1-T)+n*T,o*(1-T)+r*T);break t}y+=$}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=di,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();const Ri=Di;function Pi(t,e,n,r,i,o,a){if(0===i)return!1;var s,l=i;if(a>e+l&&a>r+l||a<e-l&&a<r-l||o>t+l&&o>n+l||o<t-l&&o<n-l)return!1;if(t===n)return Math.abs(o-t)<=l/2;var u=(s=(e-r)/(t-n))*o-a+(t*r-n*e)/(t-n);return u*u/(s*s+1)<=l/2*l/2}function Ai(t,e,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>r+h&&c>o+h&&c>s+h||c<e-h&&c<r-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>i+h&&u>a+h||u<t-h&&u<n-h&&u<i-h&&u<a-h)return!1;var d=function(t,e,n,r,i,o,a,s,l,u){var c,h,d,p,f,g=.005,m=1/0;Cn[0]=l,Cn[1]=u;for(var y=0;y<1;y+=.05)Tn[0]=Dn(t,n,i,a,y),Tn[1]=Dn(e,r,o,s,y),(p=nn(Cn,Tn))<m&&(c=y,m=p);m=1/0;for(var v=0;v<32&&!(g<bn);v++)h=c-g,d=c+g,Tn[0]=Dn(t,n,i,a,h),Tn[1]=Dn(e,r,o,s,h),p=nn(Tn,Cn),h>=0&&p<m?(c=h,m=p):(Mn[0]=Dn(t,n,i,a,d),Mn[1]=Dn(e,r,o,s,d),f=nn(Mn,Cn),d<=1&&f<m?(c=d,m=f):g*=.5);return _n(m)}(t,e,n,r,i,o,a,s,u,c);return d<=h/2}function Oi(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>r+u&&l>o+u||l<e-u&&l<r-u&&l<o-u||s>t+u&&s>n+u&&s>i+u||s<t-u&&s<n-u&&s<i-u)return!1;var c=function(t,e,n,r,i,o,a,s){var l,u=.005,c=1/0;Cn[0]=a,Cn[1]=s;for(var h=0;h<1;h+=.05)Tn[0]=Nn(t,n,i,h),Tn[1]=Nn(e,r,o,h),(g=nn(Cn,Tn))<c&&(l=h,c=g);c=1/0;for(var d=0;d<32&&!(u<bn);d++){var p=l-u,f=l+u;Tn[0]=Nn(t,n,i,p),Tn[1]=Nn(e,r,o,p);var g=nn(Tn,Cn);if(p>=0&&g<c)l=p,c=g;else{Mn[0]=Nn(t,n,i,f),Mn[1]=Nn(e,r,o,f);var m=nn(Mn,Cn);f<=1&&m<c?(l=f,c=m):u*=.5}}return _n(c)}(t,e,n,r,i,o,s,l);return c<=u/2}var Li=2*Math.PI;function Ni(t){return(t%=Li)<0&&(t+=Li),t}var Ei=2*Math.PI;function zi(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%Ei<1e-4)return!0;if(o){var h=r;r=Ni(i),i=Ni(h)}else r=Ni(r),i=Ni(i);r>i&&(i+=Ei);var d=Math.atan2(l,s);return d<0&&(d+=Ei),d>=r&&d<=i||d+Ei>=r&&d+Ei<=i}function Bi(t,e,n,r,i,o){if(o>e&&o>r||o<e&&o<r)return 0;if(r===e)return 0;var a=(o-e)/(r-e),s=r<e?1:-1;1!==a&&0!==a||(s=r<e?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}var Fi=Ri.CMD,Vi=2*Math.PI,Hi=[-1,-1,-1],Wi=[-1,-1];function ji(){var t=Wi[0];Wi[0]=Wi[1],Wi[1]=t}function Gi(t,e,n,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||u<e&&u<r&&u<o&&u<s)return 0;var c=Pn(e,r,o,s,u,Hi);if(0===c)return 0;for(var h=0,d=-1,p=void 0,f=void 0,g=0;g<c;g++){var m=Hi[g],y=0===m||1===m?.5:1;Dn(t,n,i,a,m)<l||(d<0&&(d=An(e,r,o,s,Wi),Wi[1]<Wi[0]&&d>1&&ji(),p=Dn(e,r,o,s,Wi[0]),d>1&&(f=Dn(e,r,o,s,Wi[1]))),2===d?m<Wi[0]?h+=p<e?y:-y:m<Wi[1]?h+=f<p?y:-y:h+=s<f?y:-y:m<Wi[0]?h+=p<e?y:-y:h+=s<p?y:-y)}return h}function Ui(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var l=function(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(kn(o))In(a)&&(c=-s/a)>=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*o*s;if(kn(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,h=_n(u),d=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}(e,r,o,s,Hi);if(0===l)return 0;var u=zn(e,r,o);if(u>=0&&u<=1){for(var c=0,h=Nn(e,r,o,u),d=0;d<l;d++){var p=0===Hi[d]||1===Hi[d]?.5:1;Nn(t,n,i,Hi[d])<a||(Hi[d]<u?c+=h<e?p:-p:c+=o<h?p:-p)}return c}return p=0===Hi[0]||1===Hi[0]?.5:1,Nn(t,n,i,Hi[0])<a?0:o<e?p:-p}function Xi(t,e,n,r,i,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Hi[0]=-l,Hi[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Vi-1e-4){r=0,i=Vi;var c=o?1:-1;return a>=Hi[0]+t&&a<=Hi[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Vi,i+=Vi);for(var d=0,p=0;p<2;p++){var f=Hi[p];if(f+t>a){var g=Math.atan2(s,f);c=o?1:-1,g<0&&(g=Vi+g),(g>=r&&g<=i||g+Vi>=r&&g+Vi<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function Yi(t,e,n,r,i){for(var o,a,s,l,u=t.data,c=t.len(),h=0,d=0,p=0,f=0,g=0,m=0;m<c;){var y=u[m++],v=1===m;switch(y===Fi.M&&m>1&&(n||(h+=Bi(d,p,f,g,r,i))),v&&(f=d=u[m],g=p=u[m+1]),y){case Fi.M:d=f=u[m++],p=g=u[m++];break;case Fi.L:if(n){if(Pi(d,p,u[m],u[m+1],e,r,i))return!0}else h+=Bi(d,p,u[m],u[m+1],r,i)||0;d=u[m++],p=u[m++];break;case Fi.C:if(n){if(Ai(d,p,u[m++],u[m++],u[m++],u[m++],u[m],u[m+1],e,r,i))return!0}else h+=Gi(d,p,u[m++],u[m++],u[m++],u[m++],u[m],u[m+1],r,i)||0;d=u[m++],p=u[m++];break;case Fi.Q:if(n){if(Oi(d,p,u[m++],u[m++],u[m],u[m+1],e,r,i))return!0}else h+=Ui(d,p,u[m++],u[m++],u[m],u[m+1],r,i)||0;d=u[m++],p=u[m++];break;case Fi.A:var x=u[m++],_=u[m++],b=u[m++],w=u[m++],S=u[m++],C=u[m++];m+=1;var T=!!(1-u[m++]);o=Math.cos(S)*b+x,a=Math.sin(S)*w+_,v?(f=o,g=a):h+=Bi(d,p,o,a,r,i);var M=(r-x)*w/b+x;if(n){if(zi(x,_,w,S,S+C,T,e,M,i))return!0}else h+=Xi(x,_,w,S,S+C,T,M,i);d=Math.cos(S+C)*b+x,p=Math.sin(S+C)*w+_;break;case Fi.R:if(f=d=u[m++],g=p=u[m++],o=f+u[m++],a=g+u[m++],n){if(Pi(f,g,o,g,e,r,i)||Pi(o,g,o,a,e,r,i)||Pi(o,a,f,a,e,r,i)||Pi(f,a,f,g,e,r,i))return!0}else h+=Bi(o,g,o,a,r,i),h+=Bi(f,a,f,g,r,i);break;case Fi.Z:if(n){if(Pi(d,p,f,g,e,r,i))return!0}else h+=Bi(d,p,f,g,r,i);d=f,p=g}}return n||(s=p,l=g,Math.abs(s-l)<1e-4)||(h+=Bi(d,p,f,g,r,i)||0),0!==h}var $i=O({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Gr),qi={style:O({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ur.style)},Zi=fn.concat(["invisible","culling","z","z2","zlevel","parent"]),Ki=function(t){function e(e){return t.call(this,e)||this}var n;return Et(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<Zi.length;++s)i[Zi[s]]=this[Zi[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=H(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=e[o];"style"===o?this.style?A(this.style,a):this.useStyle(a):"shape"===o?A(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(X(t)){var e=sr(t,0);return e>.5?Dr:e>.2?"#eee":Rr}if(t)return Rr}return Dr},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(X(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==sr(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Ri(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||4&this.__dirty)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,r){return Yi(t,e,!0,n,r)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return Yi(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:A(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return gt($i,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=A({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=A({},r.shape),A(s,n.shape)):(s=A({},i?this.shape:r.shape),A(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=A({},this.shape);for(var u={},c=H(s),h=0;h<c.length;h++){var d=c[h];"object"==typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},e.prototype.getAnimationStyleProps=function(){return qi},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var r=e.call(this,n)||this;return t.init&&t.init.call(r,n),r}return Et(n,e),n.prototype.getDefaultStyle=function(){return R(t.style)},n.prototype.getDefaultShape=function(){return R(t.shape)},n}(e);for(var r in t)"function"==typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),e}(Kr);const Qi=Ki;var Ji=O({strokeFirst:!0,font:p,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},$i),to=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Et(e,t),e.prototype.hasStroke=function(){return $e(this.style)},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return gt(Ji,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t,e,n;return this._rect||(this._rect=(e=Xe((t=this.style).text),Ye(t,Se(xe(n=t.font),e),Ie(n),null))),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(Kr);to.prototype.type="tspan";const eo=to;var no=O({x:0,y:0},Gr),ro={style:O({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ur.style)},io=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Et(e,t),e.prototype.createStyle=function(t){return gt(no,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r,i=(r=e.image)&&"string"!=typeof r&&r.width&&r.height?e.image:this.__image;if(!i)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?i[t]:i[t]/i[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return ro},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ve(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Kr);io.prototype.type="image";const oo=io;var ao=Math.round;function so(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(ao(2*r)===ao(2*i)&&(t.x1=t.x2=uo(r,s,!0)),ao(2*o)===ao(2*a)&&(t.y1=t.y2=uo(o,s,!0)),t):t}}function lo(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=uo(r,s,!0),t.y=uo(i,s,!0),t.width=Math.max(uo(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(uo(i+a,s,!1)-t.y,0===a?0:1),t):t}}function uo(t,e,n){if(!e)return t;var r=ao(2*t);return(r+ao(e))%2==0?r/2:(r+(n?1:-1))/2}var co=function(){this.x=0,this.y=0,this.width=0,this.height=0},ho={},po=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultShape=function(){return new co},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=lo(ho,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?function(t,e){var n,r,i,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>u&&(n*=u/(a=n+r),r*=u/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Qi);po.prototype.type="rect";const fo=po;var go={fill:"#000"},mo={},yo={style:O({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},Ur.style)},vo=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=go,n.attr(e),n}return Et(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.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}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,So(t=this.style),z(t.rich,So),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new ve(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var o=e[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(r=r||t.clone()).union(t)):(r=r||a.clone()).union(a)}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||go},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return A(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,e){for(var n=H(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},A(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return yo},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||p,n=t.padding,r=this._defaultStyle,i=t.x||0,o=t.y||0,a=t.align||r.align||"left",s=t.verticalAlign||r.verticalAlign||"top";je(mo,r.overflowRect,i,o,a,s),i=mo.baseX,o=mo.baseY;var l=function(t,e,n,r){var i=Xe(t),o=e.overflow,a=e.padding,s=a?a[1]+a[3]:0,l=a?a[0]+a[2]:0,u=e.font,c="truncate"===o,h=Ie(u),d=nt(e.lineHeight,h),p="truncate"===e.lineOverflow,f=!1,g=e.width;null==g&&null!=n&&(g=n-s);var m,y=e.height;null==y&&null!=r&&(y=r-l);var v=(m=null==g||"break"!==o&&"breakAll"!==o?i?i.split("\n"):[]:i?We(i,e.font,g,"breakAll"===o,0).lines:[]).length*d;if(null==y&&(y=v),v>y&&p){var x=Math.floor(y/d);f=f||m.length>x,v=(m=m.slice(0,x)).length*d}if(i&&c&&null!=g)for(var _=Oe(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;w<m.length;w++)Le(b,m[w],_),m[w]=b.textLine,f=f||b.isTruncated;var S=y,C=0,T=xe(u);for(w=0;w<m.length;w++)C=Math.max(Se(T,m[w]),C);null==g&&(g=C);var M=g;return{lines:m,height:y,outerWidth:M+=s,outerHeight:S+=l,lineHeight:d,calculatedLineHeight:h,contentWidth:C,contentHeight:v,width:g,isTruncated:f}}(ko(t),t,mo.outerWidth,mo.outerHeight),u=Io(t),c=!!t.backgroundColor,h=l.outerHeight,d=l.outerWidth,f=l.lines,g=l.lineHeight;this.isTruncated=!!l.isTruncated;var m=i,y=ke(o,l.contentHeight,s);if(u||n){var v=Me(i,d,a),x=ke(o,h,s);u&&this._renderBackground(t,t,v,x,d,h)}y+=g/2,n&&(m=Mo(i,a,n),"top"===s?y+=n[0]:"bottom"===s&&(y-=n[2]));for(var _=0,b=!1,w=!1,S=(To("fill"in t?t.fill:(w=!0,r.fill))),C=(Co("stroke"in t?t.stroke:c||r.autoStroke&&!w?null:(_=2,b=!0,r.stroke))),T=t.textShadowBlur>0,M=0;M<f.length;M++){var k=this._getOrCreateChild(eo),I=k.createStyle();k.useStyle(I),I.text=f[M],I.x=m,I.y=y,a&&(I.textAlign=a),I.textBaseline="middle",I.opacity=t.opacity,I.strokeFirst=!0,T&&(I.shadowBlur=t.textShadowBlur||0,I.shadowColor=t.textShadowColor||"transparent",I.shadowOffsetX=t.textShadowOffsetX||0,I.shadowOffsetY=t.textShadowOffsetY||0),I.stroke=C,I.fill=S,C&&(I.lineWidth=t.lineWidth||_,I.lineDash=t.lineDash,I.lineDashOffset=t.lineDashOffset||0),I.font=e,wo(I,t),y+=g,k.setBoundingRect(Ye(I,l.contentWidth,l.calculatedLineHeight,b?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,n=t.align||e.align,r=t.verticalAlign||e.verticalAlign,i=t.x||0,o=t.y||0;je(mo,e.overflowRect,i,o,n,r),i=mo.baseX,o=mo.baseY;var a=function(t,e,n,r,i){var o=new Be,a=Xe(t);if(!a)return o;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=e.width;null==c&&null!=n&&(c=n-l);var h=e.height;null==h&&null!=r&&(h=r-u);for(var d,p=e.overflow,f="break"!==p&&"breakAll"!==p||null==c?null:{width:c,accumWidth:0,breakAll:"breakAll"===p},g=Pe.lastIndex=0;null!=(d=Pe.exec(a));){var m=d.index;m>g&&Fe(o,a.substring(g,m),e,f),Fe(o,d[2],e,f,d[1]),g=Pe.lastIndex}g<a.length&&Fe(o,a.substring(g,a.length),e,f);var y=[],v=0,x=0,_="truncate"===p,b="truncate"===e.lineOverflow,w={};function S(t,e,n){t.width=e,t.lineHeight=n,v+=n,x=Math.max(x,e)}t:for(var C=0;C<o.lines.length;C++){for(var T=o.lines[C],M=0,k=0,I=0;I<T.tokens.length;I++){var D=(V=T.tokens[I]).styleName&&e.rich[V.styleName]||{},R=V.textPadding=D.padding,P=R?R[1]+R[3]:0,A=V.font=D.font||e.font;V.contentHeight=Ie(A);var O=nt(D.height,V.contentHeight);if(V.innerHeight=O,R&&(O+=R[0]+R[2]),V.height=O,V.lineHeight=rt(D.lineHeight,e.lineHeight,O),V.align=D&&D.align||i,V.verticalAlign=D&&D.verticalAlign||"middle",b&&null!=h&&v+V.lineHeight>h){var L=o.lines.length;I>0?(T.tokens=T.tokens.slice(0,I),S(T,k,M),o.lines=o.lines.slice(0,C+1)):o.lines=o.lines.slice(0,C),o.isTruncated=o.isTruncated||o.lines.length<L;break t}var N=D.width,E=null==N||"auto"===N;if("string"==typeof N&&"%"===N.charAt(N.length-1))V.percentWidth=N,y.push(V),V.contentWidth=Se(xe(A),V.text);else{if(E){var z=D.backgroundColor,B=z&&z.image;B&&Ut(B=Wt(B))&&(V.width=Math.max(V.width,B.width*O/B.height))}var F=_&&null!=c?c-k:null;null!=F&&F<V.width?!E||F<P?(V.text="",V.width=V.contentWidth=0):(Ae(w,V.text,F-P,A,e.ellipsis,{minChar:e.truncateMinChar}),V.text=w.text,o.isTruncated=o.isTruncated||w.isTruncated,V.width=V.contentWidth=Se(xe(A),V.text)):V.contentWidth=Se(xe(A),V.text)}V.width+=P,k+=V.width,D&&(M=Math.max(M,V.lineHeight))}S(T,k,M)}for(o.outerWidth=o.width=nt(c,x),o.outerHeight=o.height=nt(h,v),o.contentHeight=v,o.contentWidth=x,o.outerWidth+=l,o.outerHeight+=u,C=0;C<y.length;C++){var V,H=(V=y[C]).percentWidth;V.width=parseInt(H,10)/100*o.width}return o}(ko(t),t,mo.outerWidth,mo.outerHeight,n),s=a.width,l=a.outerWidth,u=a.outerHeight,c=t.padding;this.isTruncated=!!a.isTruncated;var h=Me(i,l,n),d=ke(o,u,r),p=h,f=d;c&&(p+=c[3],f+=c[0]);var g=p+s;Io(t)&&this._renderBackground(t,t,h,d,l,u);for(var m=!!t.backgroundColor,y=0;y<a.lines.length;y++){for(var v=a.lines[y],x=v.tokens,_=x.length,b=v.lineHeight,w=v.width,S=0,C=p,T=g,M=_-1,k=void 0;S<_&&(!(k=x[S]).align||"left"===k.align);)this._placeToken(k,t,b,f,C,"left",m),w-=k.width,C+=k.width,S++;for(;M>=0&&"right"===(k=x[M]).align;)this._placeToken(k,t,b,f,T,"right",m),w-=k.width,T-=k.width,M--;for(C+=(s-(C-p)-(g-T)-w)/2;S<=M;)k=x[S],this._placeToken(k,t,b,f,C+k.width/2,"center",m),C+=k.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2),!t.isLineHolder&&Io(s)&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,h=t.textPadding;h&&(i=Mo(i,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var d=this._getOrCreateChild(eo),f=d.createStyle();d.useStyle(f);var g=this._defaultStyle,m=!1,y=0,v=!1,x=To("fill"in s?s.fill:"fill"in e?e.fill:(m=!0,g.fill)),_=Co("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||g.autoStroke&&!m?null:(y=2,v=!0,g.stroke)),b=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=i,f.y=u,b&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||p,f.opacity=rt(s.opacity,e.opacity,1),wo(f,s),_&&(f.lineWidth=rt(s.lineWidth,e.lineWidth,y),f.lineDash=nt(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=_),x&&(f.fill=x),d.setBoundingRect(Ye(f,t.contentWidth,t.contentHeight,v?0:null))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,d=u&&u.image,p=u&&!d,f=t.borderRadius,g=this;if(p||t.lineHeight||c&&h){(a=this._getOrCreateChild(fo)).useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=r,m.width=i,m.height=o,m.r=f,a.dirtyShape()}if(p)(l=a.style).fill=u||null,l.fillOpacity=nt(t.fillOpacity,1);else if(d){(s=this._getOrCreateChild(oo)).onload=function(){g.dirtyStyle()};var y=s.style;y.image=u.image,y.x=n,y.y=r,y.width=i,y.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=nt(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var v=(a||s).style;v.shadowBlur=t.shadowBlur||0,v.shadowColor=t.shadowColor||"transparent",v.shadowOffsetX=t.shadowOffsetX||0,v.shadowOffsetY=t.shadowOffsetY||0,v.opacity=rt(t.opacity,e.opacity,1)},e.makeFont=function(t){var e,n="";return function(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}(t)&&(n=[t.fontStyle,t.fontWeight,(e=t.fontSize,"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e),t.fontFamily||"sans-serif"].join(" ")),n&&st(n)||t.textFont||t.font},e}(Kr),xo={left:!0,right:1,center:1},_o={top:1,bottom:1,middle:1},bo=["fontStyle","fontWeight","fontSize","fontFamily"];function wo(t,e){for(var n=0;n<bo.length;n++){var r=bo[n],i=e[r];null!=i&&(t[r]=i)}}function So(t){if(t){t.font=vo.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||xo[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||_o[n]?n:"top",t.padding&&(t.padding=ot(t.padding))}}function Co(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function To(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Mo(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function ko(t){var e=t.text;return null!=e&&(e+=""),e}function Io(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const Do=vo;var Ro=Math.min,Po=Math.max,Ao=Math.abs;function Oo(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}var Lo=function(t,e,n){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return No(t,e,n)};function No(t,e,n){return X(t)?(r=t,r.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e+(n||0):parseFloat(t):null==t?NaN:+t;var r}function Eo(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function zo(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return function(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}(t)}function Bo(t,e){var n=Math.max(zo(t),zo(e)),r=t+e;return n>20?r:Eo(r,n)}function Fo(t){var e=2*Math.PI;return(t%e+e)%e}function Vo(t){return t>-1e-4&&t<1e-4}var Ho=/^(?:(\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 Wo(t){if(t instanceof Date)return t;if(X(t)){var e=Ho.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function jo(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Go(t,e){var n=jo(t),r=Math.pow(10,n),i=t/r;return t=(e?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+t.toFixed(n<0?-n:0):t}function Uo(t){var e=parseFloat(t);return e==t&&(0!==e||!X(t)||t.indexOf("x")<=0)?e:NaN}function Xo(){return Math.round(9*Math.random())}function Yo(t,e){return 0===e?t:Yo(e,t%e)}function $o(t,e){return null==t?e:null==e?t:t*e/Yo(t,e)}function qo(t,e,n){return(e-t)*n+t}var Zo="series\0";function Ko(t){return t instanceof Array?t:null==t?[]:[t]}function Qo(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var Jo=["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 ta(t){return!q(t)||G(t)||t instanceof Date?t:t.value}function ea(t){return q(t)&&!(t instanceof Array)}function na(t,e,n){var r=ia(e[t],null),i=ia(n[t],null);return null!=r&&null!=i&&r===i}function ra(t){return ia(t,"")}function ia(t,e){return null==t?e:X(t)?t:$(t)||Y(t)?t+"":e}function oa(t){var e=t.name;return!(!e||!e.indexOf(Zo))}function aa(t){return t&&null!=t.id&&0===ra(t.id).indexOf("\0_ec_\0")}function sa(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?G(e.dataIndex)?B(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?G(e.name)?B(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function la(){var t="__ec_inner_"+ua++;return function(e){return e[t]||(e[t]={})}}var ua=Xo();function ca(t,e,n){var r=ha(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each(function(e,r){var i=pa(t,r,e,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]}),a}function ha(t,e){var n;if(X(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=ft(),o={},a=!1;return z(n,function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();!s||!l||e&&e.includeMainTypes&&L(e.includeMainTypes,s)<0||(a=a||!!s,(i.get(s)||i.set(s,{}))[l]=t)}else o[n]=t}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var da={useDefault:!0,enableAll:!1,enableNone:!1};function pa(t,e,n,r){r=r||da;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}if("none"===i||!1===i){if(r.enableNone)return s.models=[],s;i=-1}return"all"===i&&(i=r.enableAll?o=a=null:-1),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s}function fa(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}!function(){function t(){}t.prototype.reset=function(t,e,n,r){return this._list=t,this._step=r=r||1,this._idx=e,this._end=null!=n?n:r>0?t.length:0,this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0)}}();var ga=la(),ma=1,ya={},va=la(),xa=la(),_a=["emphasis","blur","select"],ba=["normal","emphasis","blur","select"],wa="highlight",Sa="downplay",Ca="select",Ta="unselect",Ma="toggleSelect",ka="selectchanged";function Ia(t){return null!=t&&"none"!==t}function Da(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Ra(t){Da(t,"emphasis",2)}function Pa(t){2===t.hoverState&&Da(t,"normal",0)}function Aa(t){Da(t,"blur",1)}function Oa(t){1===t.hoverState&&Da(t,"normal",0)}function La(t){t.selected=!0}function Na(t){t.selected=!1}function Ea(t,e,n){e(t,n)}function za(t,e,n){Ea(t,e,n),t.isGroup&&t.traverse(function(t){Ea(t,e,n)})}function Ba(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function Fa(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,r){var i=n&&L(n,"select")>=0,o=!1;if(t instanceof Qi){var a=va(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Ia(s)||Ia(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(o=!0,r=A({},r),(u=A({},u)).fill=s):!Ia(u.fill)&&Ia(s)?(o=!0,r=A({},r),(u=A({},u)).fill=ur(s)):!Ia(u.stroke)&&Ia(l)&&(o||(r=A({},r),u=A({},u)),u.stroke=ur(l)),r.style=u}}if(r&&null==r.z2){o||(r=A({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:10)}return r}(this,0,e,n);if("blur"===t)return function(t,e,n){var r=L(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:function(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=A({},n),a=A({opacity:r?i:.1*o.opacity},a),n.style=a),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=A({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:9)}return n}(this,0,n)}return n}function Va(t){t.stateProxy=Fa;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Fa),n&&(n.stateProxy=Fa)}function Ha(t,e){!$a(t,e)&&!t.__highByOuter&&za(t,Ra)}function Wa(t,e){!$a(t,e)&&!t.__highByOuter&&za(t,Pa)}function ja(t,e){t.__highByOuter|=1<<(e||0),za(t,Ra)}function Ga(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&za(t,Pa)}function Ua(t){za(t,Oa)}function Xa(t){za(t,La)}function Ya(t){za(t,Na)}function $a(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function qa(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(e,i){var o=xa(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse(function(t){Oa(t)}),a&&n.push(i)),o.isBlured=!1}),z(r,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function Za(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&Ua(r)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=i.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(t){var i=a===t,u=t.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!i||"coordinateSystem"===n&&!(u&&s?u===s:i)||"series"===e&&i)){if(r.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&i&&"self"===e||Aa(t)}),E(e))o(t.getData(),e);else if(q(e))for(var c=H(e),h=0;h<c.length;h++)o(t.getData(c[h]),e[c[h]]);l.push(t),xa(t).isBlured=!0}}),i.eachComponent(function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}})}}function Ka(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){xa(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(t){Aa(t)})}}}function Qa(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var o=r.getModel().getComponent(t,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===ga(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function Ja(t){z(t.getAllData(),function(e){var n=e.data,r=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,r)?Xa(e):Ya(e)})})}function ts(t){var e=[];return t.eachSeries(function(t){z(t.getAllData(),function(n){n.data;var r=n.type,i=t.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}})}),e}function es(t,e,n,r){r?function(t){os(t,!1)}(t):function(t,e,n){os(t,!0),za(t,Va),function(t,e,n){var r=ga(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}(t,e,n)}(t,e,n)}var ns=["emphasis","blur","select"],rs={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function is(t,e,n,r){n=n||"itemStyle";for(var i=0;i<ns.length;i++){var o=ns[i],a=e.getModel([o,n]);t.ensureState(o).style=r?r(a):a[rs[n]]()}}function os(t,e){var n=!1===e,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function as(t){return!(!t||!t.__highDownDispatcher)}function ss(t){var e=t.type;return e===Ca||e===Ta||e===Ma}function ls(t){var e=t.type;return e===wa||e===Sa}var us={};function cs(t,e,n){var r,i=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=U(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:r},u=0;u<_a.length;u++){var c=_a[u],h=e[c];l[c]=nt(i?i.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,r)}return l}function hs(t,e,n,r){n=n||us;for(var i=t instanceof Do,o=!1,a=0;a<ba.length;a++)if((d=e[ba[a]])&&d.getShallow("show")){o=!0;break}var s=i?t:t.getTextContent();if(o){i||(s||(s=new Do,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=cs(n,e),u=e.normal,c=!!u.getShallow("show"),h=ps(u,r&&r.normal,n,!1,!i);for(h.text=l.normal,i||t.setTextConfig(fs(u,n,!1)),a=0;a<_a.length;a++){var d,p=_a[a];if(d=e[p]){var f=s.ensureState(p),g=!!nt(d.getShallow("show"),c);g!==c&&(f.ignore=!g),f.style=ps(d,r&&r[p],n,!0,!i),f.style.text=l[p],i||(t.ensureState(p).textConfig=fs(d,n,!0))}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(h.x=s.style.x),null!=s.style.y&&(h.y=s.style.y),s.ignore=!c,s.useStyle(h),s.dirty(),n.enableTextSetter&&(xs(s).setLabelText=function(t){var r=cs(n,e,t);!function(t,e){for(var n=0;n<_a.length;n++){var r=_a[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}(s,r)})}else s&&(s.ignore=!0);t.dirty()}function ds(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<_a.length;r++){var i=_a[r];n[i]=t.getModel([i,e])}return n}function ps(t,e,n,r,i){var o={};return function(t,e,n,r,i){n=n||us;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||us).rich;if(n){e=e||{};for(var r=H(n),i=0;i<r.length;i++)e[r[i]]=1}t=t.parentModel}return e}(e);if(l){o={};var u="richInheritPlainLabel",c=nt(e.get(u),a?a.get(u):void 0);for(var h in l)if(l.hasOwnProperty(h)){var d=e.getModel(["rich",h]);vs(o[h]={},d,s,e,c,n,r,i,!1,!0)}}o&&(t.rich=o);var p=e.get("overflow");p&&(t.overflow=p);var f=e.get("lineOverflow");f&&(t.lineOverflow=f);var g=t,m=e.get("minMargin");if(null!=m)m=$(m)?m/2:0,g.margin=[m,m,m,m],g.__marginType=_s.minMargin;else{var y=e.get("textMargin");null!=y&&(g.margin=ot(y),g.__marginType=_s.textMargin)}vs(t,e,s,null,null,n,r,i,!0,!1)}(o,t,n,r,i),e&&A(o,e),o}function fs(t,e,n){e=e||{};var r,i={},o=t.getShallow("rotate"),a=nt(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(r=t.getShallow("position")||(n?null:"inside"))&&(r=e.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(i.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(i.layoutRect=e.layoutRect),i}var gs=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],ms=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],ys=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function vs(t,e,n,r,i,o,a,s,l,u){n=!a&&n||us;var c=o&&o.inheritColor,h=e.getShallow("color"),d=e.getShallow("textBorderColor"),p=nt(e.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==d&&"auto"!==d||(d=c||null),s||(h=h||n.color,d=d||n.textBorderColor),null!=h&&(t.fill=h),null!=d&&(t.stroke=d);var f=nt(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var g=nt(e.getShallow("textBorderType"),n.textBorderType);null!=g&&(t.lineDash=g);var m=nt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=m&&(t.lineDashOffset=m),a||null!=p||u||(p=o&&o.defaultOpacity),null!=p&&(t.opacity=p),a||s||null==t.fill&&o.inheritColor&&(t.fill=o.inheritColor);for(var y=0;y<gs.length;y++){var v=gs[y];null!=(_=!1!==i&&r?rt(e.getShallow(v),r.getShallow(v),n[v]):nt(e.getShallow(v),n[v]))&&(t[v]=_)}for(y=0;y<ms.length;y++)v=ms[y],null!=(_=e.getShallow(v))&&(t[v]=_);if(null==t.verticalAlign){var x=e.getShallow("baseline");null!=x&&(t.verticalAlign=x)}if(!l||!o.disableBox){for(y=0;y<ys.length;y++){var _;v=ys[y],null!=(_=e.getShallow(v))&&(t[v]=_)}var b=e.getShallow("borderType");null!=b&&(t.borderDash=b),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}var xs=la(),_s={minMargin:1,textMargin:2},bs=["textStyle","color"],ws=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Ss=new Do;const Cs=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(bs):null)},t.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},n=(e=this.ecModel)&&e.getModel("textStyle"),st([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "));var t,e,n},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<ws.length;n++)e[ws[n]]=this.getShallow(ws[n]);return Ss.useStyle(e),Ss.update(),Ss.getBoundingRect()},t}();var Ts,Ms,ks=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Is=At(ks),Ds=function(){function t(){}return t.prototype.getLineStyle=function(t){return Is(this,t)},t}(),Rs=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Ps=At(Rs),As=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Ps(this,t,e)},t}(),Os=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},t.prototype.mergeOption=function(t,e){P(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null;return new t(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(R(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!wt.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var r=0;r<t.length&&(!t[r]||null!=(n=n&&"object"==typeof n?n[t[r]]:null));r++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();Mt(Os),Ts=Os,Ms=["__\0is_clz",It++].join("_"),Ts.prototype[Ms]=!0,Ts.isInstance=function(t){return!(!t||!t[Ms])},N(Os,Ds),N(Os,As),N(Os,Lt),N(Os,Cs);const Ls=Os;function Ns(t){return null==t?0:t.length||1}function Es(t){return t}var zs=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Es,this._newKeyGetter=r||Es,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=r[o],s=n[a],l=Ns(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=Ns(l),h=Ns(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),r[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[r],o=Ns(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[r](t[o],o);if(i||(n[o]=a),e){var s=e[a],l=Ns(s);0===l?(e[a]=o,i&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}();const Bs=zs;var Fs=ft(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Vs="original",Hs="arrayRows",Ws="objectRows",js="keyedColumns",Gs="typedArray",Us="unknown",Xs="column",Ys="row",$s=la();function qs(t,e,n){var r={},i=Zs(e);if(!i||!t)return r;var o,a,s=[],l=[],u=e.ecModel,c=$s(u).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;z(t=t.slice(),function(e,n){var i=q(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=f(i)),r[i.name]=[]});var d=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function p(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function f(t){var e=t.dimsDef;return e?e.length:1}return z(t,function(t,e){var n=t.name,i=f(t);if(null==o){var a=d.valueWayDim;p(r[n],a,i),p(l,a,i),d.valueWayDim+=i}else o===e?(p(r[n],0,i),p(s,0,i)):(a=d.categoryWayDim,p(r[n],a,i),p(l,a,i),d.categoryWayDim+=i)}),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function Zs(t){if(!t.get("data",!0))return pa(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},da).models[0]}function Ks(t,e){return function(t,e,n,r,i,o){var a,s,l;if(K(t))return 3;if(r){var u=r[o];q(u)?(s=u.name,l=u.type):X(u)&&(s=u)}if(null!=l)return"ordinal"===l?1:3;if(e===Hs){var c=t;if(n===Ys){for(var h=c[o],d=0;d<(h||[]).length&&d<5;d++)if(null!=(a=v(h[i+d])))return a}else for(d=0;d<c.length&&d<5;d++){var p=c[i+d];if(p&&null!=(a=v(p[o])))return a}}else if(e===Ws){var f=t;if(!s)return 3;for(d=0;d<f.length&&d<5;d++)if((m=f[d])&&null!=(a=v(m[s])))return a}else if(e===js){if(!s)return 3;if(!(h=t[s])||K(h))return 3;for(d=0;d<h.length&&d<5;d++)if(null!=(a=v(h[d])))return a}else if(e===Vs){var g=t;for(d=0;d<g.length&&d<5;d++){var m,y=ta(m=g[d]);if(!G(y))return 3;if(null!=(a=v(y[o])))return a}}function v(t){var e=X(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?2:3:e&&"-"!==t?1:void 0}return 3}(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}var Qs=function(t){this.data=t.data||(t.sourceFormat===js?{}:[]),this.sourceFormat=t.sourceFormat||Us,this.seriesLayoutBy=t.seriesLayoutBy||Xs,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 r=e[n];null==r.type&&1===Ks(this,n)&&(r.type="ordinal")}};function Js(t){return t instanceof Qs}function tl(t,e,n){n=n||nl(t);var r=e.seriesLayoutBy,i=function(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:rl(i),startIndex:a,dimensionsDetectedCount:o};if(e===Hs){var s=t;"auto"===r||null==r?il(function(t){null!=t&&"-"!==t&&(X(t)?null==a&&(a=1):a=0)},n,s,10):a=$(r)?r:r?1:0,i||1!==a||(i=[],il(function(t,e){i[e]=null!=t?t+"":""},n,s,1/0)),o=i?i.length:n===Ys?s.length:s[0]?s[0].length:null}else if(e===Ws)i||(i=function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return H(e)}(t));else if(e===js)i||(i=[],z(t,function(t,e){i.push(e)}));else if(e===Vs){var l=ta(t[0]);o=G(l)&&l.length||1}return{startIndex:a,dimensionsDefine:rl(i),dimensionsDetectedCount:o}}(t,n,r,e.sourceHeader,e.dimensions);return new Qs({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:R(e)})}function el(t){return new Qs({data:t,sourceFormat:K(t)?Gs:Vs})}function nl(t){var e=Us;if(K(t))e=Gs;else if(G(t)){0===t.length&&(e=Hs);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(null!=i){if(G(i)||K(i)){e=Hs;break}if(q(i)){e=Ws;break}}}}else if(q(t))for(var o in t)if(yt(t,o)&&E(t[o])){e=js;break}return e}function rl(t){if(t){var e=ft();return B(t,function(t,n){var r={name:(t=q(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=e.get(r.name);return i?r.name+="-"+i.count++:e.set(r.name,{count:1}),r})}}function il(t,e,n,r){if(e===Ys)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)t(o[i],i)}}function ol(t){var e=t.sourceFormat;return e===Ws||e===js}var al,sl,ll,ul,cl,hl,dl={},pl="undefined"!=typeof console&&console.warn&&console.log;function fl(t,e){!function(t,e,n){if(pl){if(n){if(dl[e])return;dl[e]=!0}console[t]("[ECharts] "+e)}}("error",t,e)}function gl(t){throw new Error(t)}var ml=function(){function t(t,e){var n=Js(t)?t:el(t);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===Gs&&(this._offset=0,this._dimSize=e,this._data=r),hl(this,r,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;hl=function(t,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;if(A(t,cl[kl(a,s)]),a===Gs)t.getItem=e,t.count=r,t.fillStorage=n;else{var c=_l(a,s);t.getItem=W(c,null,i,l,u);var h=Sl(a,s);t.count=W(h,null,i,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,o=0;o<r;o++)e[o]=n[i+o];return e},n=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],d=0;d<c;d++){var p=i[d*o+a];h[t+d]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[Hs+"_"+Xs]={pure:!0,appendData:i},t[Hs+"_"+Ys]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ws]={pure:!0,appendData:i},t[js]={pure:!0,appendData:function(t){var e=this._data;z(t,function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])})}},t[Vs]={appendData:i},t[Gs]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},cl=t}(),t}(),yl=function(t){G(t)||fl("series.data or dataset.source must be an array.")},vl=((al={})[Hs+"_"+Xs]=yl,al[Hs+"_"+Ys]=yl,al[Ws]=yl,al[js]=function(t,e){for(var n=0;n<e.length;n++)null==e[n].name&&fl("dimension name must not be null/undefined.")},al[Vs]=yl,function(t,e,n,r){return t[r]}),xl=((sl={})[Hs+"_"+Xs]=function(t,e,n,r){return t[r+e]},sl[Hs+"_"+Ys]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},sl[Ws]=vl,sl[js]=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name,l=null!=s?t[s]:null;o[a]=l?l[r]:null}return o},sl[Vs]=vl,sl);function _l(t,e){return xl[kl(t,e)]}var bl=function(t,e,n){return t.length},wl=((ll={})[Hs+"_"+Xs]=function(t,e,n){return Math.max(0,t.length-e)},ll[Hs+"_"+Ys]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},ll[Ws]=bl,ll[js]=function(t,e,n){var r=n[0].name,i=null!=r?t[r]:null;return i?i.length:0},ll[Vs]=bl,ll);function Sl(t,e){return wl[kl(t,e)]}var Cl=function(t,e,n){return t[e]},Tl=((ul={})[Hs]=Cl,ul[Ws]=function(t,e,n){return t[n]},ul[js]=Cl,ul[Vs]=function(t,e,n){var r=ta(t);return r instanceof Array?r[e]:r},ul[Gs]=Cl,ul);function Ml(t){return Tl[t]}function kl(t,e){return t===Hs?t+"_"+e:t}function Il(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return Ml(o)(r,a,s)}var l=r;return o===Vs&&(l=ta(r)),l}}}var Dl=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function Rl(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}const Pl=function(t){this.otherDims={},null!=t&&A(this,t)};function Al(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||$(t)||null==t||"-"===t||(t=+Wo(t)),null==t||""===t?NaN:Number(t))}ft({number:function(t){return parseFloat(t)},time:function(t){return+Wo(t)},trim:function(t){return X(t)?st(t):t}});var Ol,Ll=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=$(t)?t:Uo(t),r=$(e)?e:Uo(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=X(t),s=X(e);a&&(n=s?t:0),s&&(r=a?e:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},t}(),Nl="undefined",El=typeof Uint32Array===Nl?Array:Uint32Array,zl=typeof Uint16Array===Nl?Array:Uint16Array,Bl=typeof Int32Array===Nl?Array:Int32Array,Fl=typeof Float64Array===Nl?Array:Float64Array,Vl={float:Fl,int:Bl,ordinal:Array,number:Array,time:Fl};function Hl(t){return t>65535?El:zl}function Wl(){return[1/0,-1/0]}function jl(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Gl(t,e,n,r,i){var o=Vl[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}var Ul=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ft()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=Ol[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],ol(r),this._dimensions=B(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new Vl[e||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=[1/0,-1/0]);for(var s=i[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<i;l++)Gl(n,l,(p=r[l]).type,s,!0);for(var u=[],c=a;c<s;c++)for(var h=c-a,d=0;d<i;d++){var p=r[d],f=Ol.arrayRows.call(this,t[h]||u,p.property,h,d);n[d][c]=f;var g=o[d];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=B(o,function(t){return t.property}),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=Wl()),Gl(i,u,c.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var h=[],d=t;d<e;d++){h=r.getItem(d,h);for(var p=0;p<a;p++){var f=i[p],g=this._dimValueGetter(h,l[p],d,p);f[d]=g;var m=s[p];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.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},t.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,r=this.count();n<r;n++){var i=this.get(t,n);isNaN(i)||(e+=i)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.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(null!=n&&n<this._count&&n===t)return t;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(e[o]<t)r=o+1;else{if(!(e[o]>t))return o;i=o-1}}return-1},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i<r;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else for(t=new(n=Hl(this._rawCount))(this.count()),i=0;i<t.length;i++)t[i]=i;return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Hl(n._rawCount))(r),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<r;c++){var h=void 0,d=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a)h=e(u[l][d],c);else{for(var p=0;p<a;p++)o[p]=u[t[p]][d];o[p]=c,h=e.apply(null,o)}h&&(i[s++]=d)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=H(t),i=r.length;if(!i)return this;var o=e.count(),a=new(Hl(e._rawCount))(o),s=0,l=r[0],u=t[l][0],c=t[l][1],h=e._chunks,d=!1;if(!e._indices){var p=0;if(1===i){for(var f=h[r[0]],g=0;g<n;g++)((x=f[g])>=u&&x<=c||isNaN(x))&&(a[s++]=p),p++;d=!0}else if(2===i){f=h[r[0]];var m=h[r[1]],y=t[r[1]][0],v=t[r[1]][1];for(g=0;g<n;g++){var x=f[g],_=m[g];(x>=u&&x<=c||isNaN(x))&&(_>=y&&_<=v||isNaN(_))&&(a[s++]=p),p++}d=!0}}if(!d)if(1===i)for(g=0;g<o;g++){var b=e.getRawIndex(g);((x=h[r[0]][b])>=u&&x<=c||isNaN(x))&&(a[s++]=b)}else for(g=0;g<o;g++){for(var w=!0,S=(b=e.getRawIndex(g),0);S<i;S++){var C=r[S];((x=h[C][b])<t[C][0]||x>t[C][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=Wl();for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),d=0;d<o;d++)s[d]=r[e[d]][h];s[o]=c;var p=n&&n.apply(null,s);if(null!=p)for("object"!=typeof p&&(i[0]=p,p=i),u=0;u<p.length;u++){var f=e[u],g=p[u],m=l[f],y=r[f];y&&(y[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(Hl(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var d=1;d<s-1;d+=u){for(var p=Math.min(d+u,s-1),f=Math.min(d+2*u,s),g=(f+p)/2,m=0,y=p;y<f;y++){var v=a[T=this.getRawIndex(y)];isNaN(v)||(m+=v)}m/=f-p;var x=d,_=Math.min(d+u,s),b=d-1,w=a[c];n=-1,i=x;var S=-1,C=0;for(y=x;y<_;y++){var T;v=a[T=this.getRawIndex(y)],isNaN(v)?(C++,S<0&&(S=T)):(r=Math.abs((b-g)*(v-w)-(b-y)*(m-w)))>n&&(n=r,i=T)}C>0&&C<_-x&&(h[l++]=Math.min(S,i),i=Math.max(S,i)),h[l++]=i,c=i}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),r=n._chunks,i=Math.floor(1/e),o=r[t],a=this.count(),s=new(Hl(this._rawCount))(2*Math.ceil(a/i)),l=0,u=0;u<a;u+=i){var c=u,h=o[this.getRawIndex(c)],d=u,p=o[this.getRawIndex(d)],f=i;u+i>a&&(f=a-u);for(var g=0;g<f;g++){var m=o[this.getRawIndex(u+g)];m<h&&(h=m,c=u+g),m>p&&(p=m,d=u+g)}var y=this.getRawIndex(c),v=this.getRawIndex(d);c<d?(s[l++]=y,s[l++]=v):(s[l++]=v,s[l++]=y)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=i._rawExtent[t]=[1/0,-1/0],h=new(Hl(this._rawCount))(Math.ceil(u/s)),d=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var m=n(a),y=this.getRawIndex(Math.min(p+r(a,m)||0,u-1));l[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[d++]=y}return i._count=d,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return r=[o,a],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r=new t,i=this._chunks,o=e&&F(e,function(t,e){return t[e]=!0,t},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?jl(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=R(this._extent),t._rawExtent=R(this._rawExtent)},t.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 r=0;r<n;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return Al(t[r],this._dimensions[r])}Ol={arrayRows:t,objectRows:function(t,e,n,r){return Al(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return Al(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}();const Xl=Ul;var Yl=la(),$l={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ql=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Ql(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return nt(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=ol(this.source),n=!Jl(t),r="",i=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}i.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=$l[l]||"f",u&&(r+=u.uid),r+="$"}var d=this.source;return{dimensions:i,hash:[d.seriesLayoutBy,d.startIndex,r].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(e);o&&(r=o.name)}t.push(r)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function Zl(t){return t instanceof ql}function Kl(t){for(var e=ft(),n=0;n<(t||[]).length;n++){var r=t[n],i=q(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function Ql(t){var e=Yl(t);return e.dimNameMap||(e.dimNameMap=Kl(t.dimensionsDefine))}function Jl(t){return t>30}var tu,eu,nu,ru,iu,ou,au,su=q,lu=B,uu="undefined"==typeof Int32Array?Array:Int32Array,cu=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],hu=["_approximateExtent"],du=function(){function t(t,e){var n;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 r=!1;Zl(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=X(c)?new Pl({name:c}):c instanceof Pl?c:new Pl(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};o.push(d),i[d]=h,null!=l[d]&&(s=!0),h.createInvertedIndices&&(a[d]=[]);var f=u;$(h.storeDimIndex)&&(f=h.storeDimIndex),0===p.itemName&&(this._nameDimIdx=f),0===p.itemId&&(this._idDimIdx=f),r&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=ft();z(o,function(t){g.set(i[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if($(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i=this;if(t instanceof Xl&&(r=t),!r){var o=this.dimensions,a=Js(t)||E(t)?new ml(t,o.length):t;r=new Xl;var s=lu(o,function(t){return{type:i._dimInfos[t].type,property:t}});r.initData(a,s,n)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(t,e){var n={},r=n.encode={},i=ft(),o=[],a=[],s={};z(t.dimensions,function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){var c=l.coordDimIndex;Rl(r,u)[c]=e,l.isExtraCoord||(i.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),Rl(s,u)[c]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}Fs.each(function(t,e){var n=Rl(r,e),i=l.otherDims[e];null!=i&&!1!==i&&(n[i]=l.name)})});var l=[],u={};i.each(function(t,e){var n=r[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=B(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var h=r.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new Dl(s,e),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=e[s],o&&au(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Gs&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===Vs&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&ea(s)&&(this.hasItemOption=!0),s){var l=s.name;null==r[a]&&null!=l&&(r[a]=ia(l,null));var u=s.id;null==i[a]&&null!=u&&(i[a]=ia(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)au(this,a);tu(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){su(t)?A(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=nu(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return eu(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.get(r.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.getByRawIndex(r.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return G(t)?r.getValues(lu(t,function(t){return n._getStoreDimIndex(t)}),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;n<r;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],r=n&&n[e];return null==r||isNaN(r)?-1:r},t.prototype.each=function(t,e,n){U(t)&&(n=e,e=t,t=[]);var r=n||this,i=lu(ru(t),this._getStoreDimIndex,this);this._store.each(i,r?W(e,r):e)},t.prototype.filterSelf=function(t,e,n){U(t)&&(n=e,e=t,t=[]);var r=n||this,i=lu(ru(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?W(e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={},r=H(t),i=[];return z(r,function(r){var o=e._getStoreDimIndex(r);n[o]=t[r],i.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){U(t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=lu(ru(t),this._getStoreDimIndex,this),a=ou(this);return a._store=this._store.map(o,i?W(e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=n||r||this,o=lu(ru(t),this._getStoreDimIndex,this);this._store.modify(o,i?W(e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=ou(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.minmaxDownSample=function(t,e){var n=ou(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=ou(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Ls(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new Bs(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return eu(t,e)},function(t){return eu(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},su(t)?A(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(G(i=this.getVisual(e))?i=i.slice():su(i)&&(i=A({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,su(e)?A(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){su(t)?A(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?A(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){!function(t,e,n,r){if(r){var i=ga(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,i.ssrType="chart","group"===r.type&&r.traverse(function(r){var i=ga(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e,i.ssrType="chart"})}}(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){z(this._graphicEls,function(n,r){n&&t&&t.call(e,n,r)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:lu(this.dimensions,this._getDimInfo,this),this.hostModel)),iu(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];U(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(it(arguments)))})},t.internalField=(tu=function(t){var e=t._invertedIndicesMap;z(e,function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new uu(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}})},nu=function(t,e,n){return ia(t._getCategory(e,n),null)},eu=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=nu(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},ru=function(t){return G(t)||(t=null!=t?[t]:[]),t},ou=function(e){var n=new t(e._schema?e._schema:lu(e.dimensions,e._getDimInfo,e),e.hostModel);return iu(n,e),n},iu=function(t,e){z(cu.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,z(hu,function(n){t[n]=R(e[n])}),t._calculationInfo=A({},e._calculationInfo)},void(au=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=r[e];if(null==a&&null!=i&&(n[e]=a=nu(t,i,e)),null==s&&null!=o&&(r[e]=s=nu(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[e]=s}})),t}();const pu=du;function fu(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}var gu={},mu={},yu=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(t,e){function n(n,r){var i=[];return z(n,function(n,r){var o=n.create(t,e);i=i.concat(o||[])}),i}this._nonSeriesBoxMasterList=n(gu),this._normalMasterList=n(mu)},t.prototype.update=function(t,e){z(this._normalMasterList,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(t,e){"matrix"!==t&&"calendar"!==t?mu[t]=e:gu[t]=e},t.get=function(t){return mu[t]||gu[t]},t}(),vu=ft();const xu=yu;var _u=function(t){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=t},bu={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",da).models[0],o=t.getReferringComponents("yAxis",da).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),wu(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),wu(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",da).models[0];e.coordSysDims=["single"],n.set("single",i),wu(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",da).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),wu(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),wu(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();z(o.parallelAxisIndex,function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),wu(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})},matrix:function(t,e,n,r){var i=t.getReferringComponents("matrix",da).models[0];e.coordSysDims=["x","y"];var o=i.getDimensionModel("x"),a=i.getDimensionModel("y");n.set("x",o),n.set("y",a),r.set("x",o),r.set("y",a)}};function wu(t){return"category"===t.get("type")}function Su(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}const Cu=function(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=el(t)):o=(r=i.getSource()).sourceFormat===Vs;var a=function(t){var e=t.get("coordinateSystem"),n=new _u(e),r=bu[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,r=t.get("coordinateSystem"),i=xu.get(r);return e&&e.coordSysDims&&(n=B(e.coordSysDims,function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"}(i)}return n})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=U(l)?l:l?j(qs,s,e):null,c=function(t,e){Js(t)||(t=el(t));var n=(e=e||{}).coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=ft(),o=[],a=function(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return z(e,function(t){var e;q(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))}),i}(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Jl(a),l=r===t.dimensionsDefine,u=l?Ql(t):Kl(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=ft(c),d=new Bl(a),p=0;p<d.length;p++)d[p]=-1;function f(t){var e=d[t];if(e<0){var n=r[t],i=q(n)?n:{name:n},a=new Pl,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return d[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(p=0;p<a;p++)f(p);h.each(function(t,e){var n=Ko(t).slice();if(1===n.length&&!X(n[0])&&n[0]<0)h.set(e,!1);else{var r=h.set(e,[]);z(n,function(t,n){var i=X(t)?u.get(t):t;null!=i&&i<a&&(r[n]=i,m(f(i),e,n))})}});var g=0;function m(t,e,n){null!=Fs.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,i.set(e,!0))}z(n,function(t){var e,n,r,i;if(X(t))e=t,i={};else{e=(i=t).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=A({},i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=h.get(e);if(!1!==s){if(!(s=Ko(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}z(s,function(t,o){var a=f(t);if(l&&null!=i.type&&(a.type=i.type),m(O(a,i),e,o),null==a.name&&n){var s=n[o];!q(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&O(a.otherDims,r)})}});var y=e.generateCoord,v=e.generateCoordCount,x=null!=v;v=y?v||1:0;var _=y||"value";function b(t){null==t.name&&(t.name=t.coordDim)}if(s)z(o,function(t){b(t)}),o.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var w=0;w<a;w++){var S=f(w);null==S.coordDim&&(S.coordDim=fu(_,i,x),S.coordDimIndex=0,(!y||v<=0)&&(S.isExtraCoord=!0),v--),b(S),null!=S.type||1!==Ks(t,w)&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(t){for(var e=ft(),n=0;n<t.length;n++){var r=t[n],i=r.name,o=e.get(i)||0;o>0&&(r.name=i+(o-1)),o++,e.set(i,o)}}(o),new ql({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=function(t,e,n){var r,i;return n&&z(t,function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)}),i||null==r||(t[r].otherDims.itemName=0),r}(c.dimensions,n.createInvertedIndices,a),d=o?null:i.getSharedDataStore(c),p=function(t,e,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!Zl(t.schema)}(e)?(i=e.schema,r=i.dimensions,o=e.store):r=e;var l,u,c,h,d=!(!t||!t.get("stack"));if(z(r,function(t,e){X(t)&&(r[e]=t={name:t}),d&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,f=u.type,g=0;z(r,function(t){t.coordDim===p&&g++});var m={name:c,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(m.storeDimIndex=o.ensureCalculationDimension(h,f),y.storeDimIndex=o.ensureCalculationDimension(c,f)),i.appendCalculationDimension(m),i.appendCalculationDimension(y)):(r.push(m),r.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}(e,{schema:c,store:d}),f=new pu(c,e);f.setCalculationInfo(p);var g=null!=h&&function(t){if(t.sourceFormat===Vs)return!G(ta(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[])))}(r)?function(t,e,n,r){return r===h?n:this.defaultDimValueGetter(t,e,n,r)}:null;return f.hasItemOption=!1,f.initData(o?r:d,null,g),f};var Tu=Math.round(10*Math.random());function Mu(t){return[t||"",Tu++].join("_")}var ku=Math.log(2);function Iu(t,e,n,r,i,o){var a=r+"-"+i,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~i)/ku);return t[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var h=0,d=0,p=0;d<s;d++){var f=1<<d;f&i||(h+=(p%2?-1:1)*t[n][d]*Iu(t,e-1,c,u,i|f,o),p++)}return o[a]=h,h}function Du(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},i=Iu(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Iu(n,7,0===a?1:0,1<<a,1<<s,r)/i*e[a];return function(t,e,n){var r=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/r,t[1]=(e*o[3]+n*o[4]+o[5])/r}}}var Ru="___zrEVENTSAVED",Pu=[];function Au(t,e,n,r,i){if(e.getBoundingClientRect&&wt.domSupported&&!Ou(e)){var o=e[Ru]||(e[Ru]={}),a=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[s]+":0",i[l]+":0",r[1-s]+":auto",i[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return e.clearMarkers=function(){z(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})},n}(e,o),s=function(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,d=c.left,p=c.top;a.push(d,p),l=l&&o&&d===o[h]&&p===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?Du(s,a):Du(a,s))}(a,o,i);if(s)return s(t,n,r),!0}return!1}function Ou(t){return"CANVAS"===t.nodeName.toUpperCase()}var Lu=/([&<>"'])/g,Nu={"&":"&","<":"<",">":">",'"':""","'":"'"};function Eu(t){return null==t?"":(t+"").replace(Lu,function(t,e){return Nu[e]})}var zu="ZH",Bu="EN",Fu=Bu,Vu={},Hu={},Wu=wt.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||Fu).toUpperCase().indexOf(zu)>-1?zu:Fu;function ju(t,e){t=t.toUpperCase(),Hu[t]=new Ls(e),Vu[t]=e}ju(Bu,{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:". "}}}}),ju(zu,{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:""}}}});function Gu(){return null}var Uu=36e5,Xu=864e5,Yu=31536e6,$u={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},qu={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Zu="{yyyy}-{MM}-{dd}",Ku={year:"{yyyy}",month:"{yyyy}-{MM}",day:Zu,hour:Zu+" "+qu.hour,minute:Zu+" "+qu.minute,second:Zu+" "+qu.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Qu=["year","month","day","hour","minute","second","millisecond"],Ju=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function tc(t,e){return"0000".substr(0,e-(t+="").length)+t}function ec(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function nc(t){return t===ec(t)}function rc(t,e,n,r){var i=Wo(t),o=i[ac(n)](),a=i[sc(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[lc(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[uc(n)](),h=(c-1)%12+1,d=i[cc(n)](),p=i[hc(n)](),f=i[dc(n)](),g=c>=12?"pm":"am",m=g.toUpperCase(),y=r instanceof Ls?r:function(t){return Hu[t]}(r||Wu)||Hu[Fu],v=y.getModel("time"),x=v.get("month"),_=v.get("monthAbbr"),b=v.get("dayOfWeek"),w=v.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,tc(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[a-1]).replace(/{MMM}/g,_[a-1]).replace(/{MM}/g,tc(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,tc(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,tc(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,tc(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,tc(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,tc(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,tc(f,3)).replace(/{S}/g,f+"")}function ic(t,e){var n=Wo(t),r=n[sc(e)]()+1,i=n[lc(e)](),o=n[uc(e)](),a=n[cc(e)](),s=n[hc(e)](),l=0===n[dc(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,d=h&&1===i;return d&&1===r?"year":d?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function oc(t,e,n){switch(e){case"year":t[fc(n)](0);case"month":t[gc(n)](1);case"day":t[mc(n)](0);case"hour":t[yc(n)](0);case"minute":t[vc(n)](0);case"second":t[xc(n)](0)}return t}function ac(t){return t?"getUTCFullYear":"getFullYear"}function sc(t){return t?"getUTCMonth":"getMonth"}function lc(t){return t?"getUTCDate":"getDate"}function uc(t){return t?"getUTCHours":"getHours"}function cc(t){return t?"getUTCMinutes":"getMinutes"}function hc(t){return t?"getUTCSeconds":"getSeconds"}function dc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function pc(t){return t?"setUTCFullYear":"setFullYear"}function fc(t){return t?"setUTCMonth":"setMonth"}function gc(t){return t?"setUTCDate":"setDate"}function mc(t){return t?"setUTCHours":"setHours"}function yc(t){return t?"setUTCMinutes":"setMinutes"}function vc(t){return t?"setUTCSeconds":"setSeconds"}function xc(t){return t?"setUTCMilliseconds":"setMilliseconds"}function _c(t){if(isNaN(Uo(t)))return X(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function bc(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var wc=ot;function Sc(t,e,n){function r(t){return t&&st(t)?t:"-"}function i(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Wo(t):t;if(!isNaN(+s))return rc(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return Y(t)?r(t):$(t)&&i(t)?t+"":"-";var l=Uo(t);return i(l)?_c(l):Y(t)?r(t):"boolean"==typeof t?t+"":"-"}var Cc=["a","b","c","d","e","f","g"],Tc=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Mc(t,e,n){G(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=Cc[o];t=t.replace(Tc(a),Tc(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(Tc(Cc[l],s),n?Eu(u):u)}return t}function kc(t,e){return e=e||"transparent",X(t)?t:q(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Ic(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Dc=z,Rc=["left","right","top","bottom","width","height"],Pc=[["width","left","right"],["height","top","bottom"]];function Ac(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild(function(l,u){var c,h,d=l.getBoundingRect(),p=e.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);(c=o+g)>r||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(f?-f.y+d.y:0);(h=a+m)>i||l.newline?(o+=s+n,a=0,h=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)})}function Oc(t,e,n){n=wc(n||0);var r=e.width,i=e.height,o=Lo(t.left,r),a=Lo(t.top,i),s=Lo(t.right,r),l=Lo(t.bottom,i),u=Lo(t.width,r),c=Lo(t.height,i),h=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(c)&&(c=i-l-h-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=r-s-u-d),isNaN(a)&&(a=i-l-c-h),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-d}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-h}o=o||0,a=a||0,isNaN(u)&&(u=r-d-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var f=new ve((e.x||0)+o+n[3],(e.y||0)+a+n[0],u,c);return f.margin=n,f}j(Ac,"vertical"),j(Ac,"horizontal");var Lc=1,Nc=2;function Ec(t,e,n){var r,i,o,a,s=t.boxCoordinateSystem;if(s){var l=function(t){var e=t.getShallow("coord",!0),n=1;if(null==e){var r=vu.get(t.type);r&&r.getCoord2&&(n=2,e=r.getCoord2(t))}return{coord:e,from:n}}(t),u=l.coord,c=l.from;if(s.dataToLayout){o=Lc,a=c;var h=s.dataToLayout(u);r=h.contentRect||h.rect}else n&&n.enableLayoutOnlyByCenter&&s.dataToPoint&&(o=Nc,a=c,i=s.dataToPoint(u))}return null==o&&(o=Lc),o===Lc&&(r||(r={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[r.x+r.width/2,r.y+r.height/2]),{type:o,refContainer:r,refPoint:i,boxCoordFrom:a}}function zc(t){var e=t.layoutMode||t.constructor.layoutMode;return q(e)?e:e?{type:e}:null}function Bc(t,e,n){var r=n&&n.ignoreSize;!G(r)&&(r=[r,r]);var i=a(Pc[0],0),o=a(Pc[1],1);function a(n,i){var o={},a=0,l={},u=0;if(Dc(n,function(e){l[e]=t[e]}),Dc(n,function(t){yt(e,t)&&(o[t]=l[t]=e[t]),s(o,t)&&a++,s(l,t)&&u++}),r[i])return s(e,n[1])?l[n[2]]=null:s(e,n[2])&&(l[n[1]]=null),l;if(2!==u&&a){if(a>=2)return o;for(var c=0;c<n.length;c++){var h=n[c];if(!yt(o,h)&&yt(t,h)){o[h]=t[h];break}}return o}return l}function s(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,n){Dc(t,function(t){e[t]=n[t]})}l(Pc[0],t,i),l(Pc[1],t,o)}function Fc(t){return function(t,e){return e&&t&&Dc(Rc,function(n){yt(e,n)&&(t[n]=e[n])}),t}({},t)}var Vc=la(),Hc=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=Mu("ec_cpt_model"),i}var n;return c(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=zc(this),r=n?Fc(t):{};P(t,e.getTheme().get(this.mainType)),P(t,this.getDefaultOption()),n&&Bc(t,r,n)},e.prototype.mergeOption=function(t,e){P(this.option,t,!0);var n=zc(this);n&&Bc(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t[Ct])}(t))return t.defaultOption;var e=Vc(this);if(!e.defaultOption){for(var n=[],r=t;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=P(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return pa(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){return e=!1,{left:(t=this).getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)};var t,e},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(Ls);kt(Hc,Ls),Pt(Hc),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=Tt(t);e[r.main]=n},t.determineSubType=function(n,r){var i=r.type;if(!i){var o=Tt(n).main;t.hasSubTypes(n)&&e[o]&&(i=e[o](r))}return i}}(Hc),function(){function t(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}Hc.topologicalTravel=function(e,n,r,i){if(e.length){var o=function(e){var n={},r=[];return z(e,function(i){var o,a,s=t(n,i),l=function(t,e){var n=[];return z(t,function(t){L(e,t)>=0&&n.push(t)}),n}(s.originalDeps=(o=i,a=[],z(Hc.getClassesByMainType(o),function(t){a=a.concat(t.dependencies||t.prototype.dependencies||[])}),a=B(a,function(t){return Tt(t).main}),"dataset"!==o&&L(a,"dataset")<=0&&a.unshift("dataset"),a),e);s.entryCount=l.length,0===s.entryCount&&r.push(i),z(l,function(e){L(s.predecessor,e)<0&&s.predecessor.push(e);var r=t(n,e);L(r.successor,e)<0&&r.successor.push(i)})}),{graph:n,noEntryList:r}}(n),a=o.graph,s=o.noEntryList,l={};for(z(e,function(t){l[t]=!0});s.length;){var u=s.pop(),c=a[u],h=!!l[u];h&&(r.call(i,u,c.originalDeps.slice()),delete l[u]),z(c.successor,h?p:d)}z(l,function(){throw new Error("")})}function d(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function p(t){l[t]=!0,d(t)}}}();const Wc=Hc;var jc=la(),Gc=(la(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=Ko(this.get("color",!0)),i=this.get("colorLayer",!0);return function(t,e,n,r,i,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?function(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}(r,a):n;if((c=c||n)&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}(this,jc,r,i,t,e,n)},t.prototype.clearColorPalette=function(){!function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,jc)},t}());var Uc=/\{@(.+?)\}/g,Xc=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,r,i,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);return o&&(s.value=o.interpolatedValue),null!=r&&G(s.value)&&(s.value=s.value[r]),i||(i=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),U(i)?(s.status=e,s.dimensionIndex=r,i(s)):X(i)?Mc(i,s).replace(Uc,function(e,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=Il(a,t,i);if(o&&G(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return Il(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function Yc(t){var e,n;return q(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function $c(t){return new qc(t)}var qc=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(o||d<p)){var f=this._progress;if(G(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],d,p,l,u);else this._doProgress(f,d,p,l,u)}this._dueIndex=p;var m=null!=this._settedOutputEnd?this._settedOutputEnd:p;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){Zc.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Zc.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),G(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),Zc=function(){var t,e,n,r,i,o={reset:function(l,u,c,h){e=l,t=u,n=c,r=h,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%i*n+Math.ceil(e/i),a=e>=t?null:o<r?o:e;return e++,a}}(),Kc=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Al(t,e)},t}();function Qc(t){return ih(t.sourceFormat)||gl(""),t.data}function Jc(t){var e=t.sourceFormat,n=t.data;if(ih(e)||gl(""),e===Hs){for(var r=[],i=0,o=n.length;i<o;i++)r.push(n[i].slice());return r}if(e===Ws){for(r=[],i=0,o=n.length;i<o;i++)r.push(A({},n[i]));return r}}function th(t,e,n){if(null!=n)return $(n)||!isNaN(n)&&!yt(e,n)?t[n]:yt(e,n)?e[n]:void 0}function eh(t){return R(t)}var nh=ft();function rh(t,e,n,r){e.length||gl(""),q(t)||gl("");var i=t.type,o=nh.get(i);o||gl("");var a=B(e,function(t){return function(t,e){var n=new Kc,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==Xs&&gl("");var a=[],s={},l=t.dimensionsDefine;if(l)z(l,function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};a.push(r),null!=n&&(yt(s,n)&&gl(""),s[n]=r)});else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var c=_l(i,Xs);e.__isBuiltIn&&(n.getRawDataItem=function(t){return c(r,o,a,t)},n.getRawData=W(Qc,null,t)),n.cloneRawData=W(Jc,null,t);var h=Sl(i,Xs);n.count=W(h,null,r,o,a);var d=Ml(i);n.retrieveValue=function(t,e){var n=c(r,o,a,t);return p(n,e)};var p=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];return n?d(t,e,n.name):void 0}};return n.getDimensionInfo=W(th,null,a,s),n.cloneAllDimensionInfo=W(eh,null,a),n}(t,o)});return B(Ko(o.transform({upstream:a[0],upstreamList:a,config:R(t.config)})),function(t,n){var r;q(t)||gl(""),t.data||gl(""),ih(nl(t.data))||gl("");var i=e[0];if(i&&0===n&&!t.dimensions){var o=i.startIndex;o&&(t.data=i.data.slice(0,o).concat(t.data)),r={seriesLayoutBy:Xs,sourceHeader:o,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:Xs,sourceHeader:0,dimensions:t.dimensions};return tl(t.data,r,null)})}function ih(t){return t===Hs||t===Ws}var oh=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(ah(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=K(a=o.get("data",!0))?Gs:Vs,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=nt(c.seriesLayoutBy,h.seriesLayoutBy)||null,p=nt(c.sourceHeader,h.sourceHeader),f=nt(c.dimensions,h.dimensions);t=d!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||f?[tl(a,{seriesLayoutBy:d,sourceHeader:p,dimensions:f},s)]:[]}else{var g=n;if(i){var m=this._applyTransform(r);t=m.sourceList,e=m.upstreamSignList}else t=[tl(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);null!=i&&1!==t.length&&sh("");var o,a=[],s=[];return z(t,function(t){t.prepareSource();var e=t.getSource(i||0);null==i||e||sh(""),a.push(e),s.push(t._getVersionSign())}),r?e=function(t,e){var n=Ko(t),r=n.length;r||gl("");for(var i=0,o=r;i<o;i++)e=rh(n[i],e),i!==o-1&&(e.length=Math.max(e.length,1));return e}(r,a,n.componentIndex):null!=i&&(e=[(o=a[0],new Qs({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:R(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:s}},t.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}},t.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},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];ah(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new Xl).initData(new ml(e,t.length),t),i[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(ah(t)){var e=Zs(t);return e?[e.getSourceManager()]:[]}return B(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?pa(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},da).models:[]}(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(ah(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function ah(t){return"series"===t.mainType}function sh(t){throw new Error(t)}var lh={color:{},darkColor:{},size:{}},uh=lh.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var ch in A(uh,{primary:uh.neutral80,secondary:uh.neutral70,tertiary:uh.neutral60,quaternary:uh.neutral50,disabled:uh.neutral20,border:uh.neutral30,borderTint:uh.neutral20,borderShade:uh.neutral40,background:uh.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:uh.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:uh.neutral70,axisLineTint:uh.neutral40,axisTick:uh.neutral70,axisTickMinor:uh.neutral60,axisLabel:uh.neutral70,axisSplitLine:uh.neutral15,axisMinorSplitLine:uh.neutral05}),uh)if(uh.hasOwnProperty(ch)){var hh=uh[ch];"theme"===ch?lh.darkColor.theme=uh.theme.slice():"highlight"===ch?lh.darkColor.highlight="rgba(255,231,130,0.4)":0===ch.indexOf("accent")?lh.darkColor[ch]=or(hh,null,function(t){return.5*t},function(t){return Math.min(1,1.3-t)}):lh.darkColor[ch]=or(hh,null,function(t){return.9*t},function(t){return 1-Math.pow(t,1.5)})}lh.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const dh=lh;function ph(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+Eu(e+"")+"px"}function fh(t,e){var n=t.color||dh.color.tertiary,r=t.fontSize||12,i=t.fontWeight||"400",o=t.color||dh.color.secondary,a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Eu(r+"")+"px;color:"+Eu(n)+";font-weight:"+Eu(i+""),valueStyle:"font-size:"+Eu(a+"")+"px;color:"+Eu(o)+";font-weight:"+Eu(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var gh=[0,10,20,30],mh=["","\n","\n\n","\n\n\n"];function yh(t,e){return e.type=t,e}function vh(t){return"section"===t.type}function xh(t){return vh(t)?bh:wh}function _h(t){if(vh(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return z(t.blocks,function(t){var n=_h(t);n>=e&&(e=n+ +(r&&(!n||vh(t)&&!t.noHeader)))}),e}return 0}function bh(t,e,n,r){var i,o=e.noHeader,a=(i=_h(e),{html:gh[i],richText:mh[i]}),s=[],l=e.blocks||[];at(!l||G(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(yt(c,u)){var h=new Ll(c[u],null);l.sort(function(t,e){return h.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===u&&l.reverse()}z(l,function(n,i){var o=e.valueFormatter,l=xh(n)(o?A(A({},t),{valueFormatter:o}):t,n,i>0?a.html:0,r);null!=l&&s.push(l)});var d="richText"===t.renderMode?s.join(a.richText):Ch(r,s.join(""),o?n:a.html);if(o)return d;var p=Sc(e.header,"ordinal",t.useUTC),f=fh(r,t.renderMode).nameStyle,g=ph(r);return"richText"===t.renderMode?Th(t,p,f)+a.richText+d:Ch(r,'<div style="'+f+";"+g+';">'+Eu(p)+"</div>"+d,n)}function wh(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return B(t=G(t)?t:[t],function(t,e){return Sc(t,G(p)?p[e]:p,u)})};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||dh.color.secondary,i),d=o?"":Sc(l,"ordinal",u),p=e.valueType,f=a?[]:c(e.value,e.dataIndex),g=!s||!o,m=!s&&o,y=fh(r,i),v=y.nameStyle,x=y.valueStyle;return"richText"===i?(s?"":h)+(o?"":Th(t,d,v))+(a?"":function(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(G(e)?e.join(" "):e,o)}(t,f,g,m,x)):Ch(r,(s?"":h)+(o?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+Eu(t)+"</span>"}(d,!s,v))+(a?"":function(t,e,n,r){return'<span style="'+(e?"float:right;margin-left:"+(n?"10px":"20px"):"")+";"+r+'">'+B(t=G(t)?t:[t],function(t){return Eu(t)}).join(" ")+"</span>"}(f,g,m,x)),n)}}function Sh(t,e,n,r,i,o){if(t)return xh(t)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Ch(t,e,n){return'<div style="margin: '+n+"px 0 0;"+ph(t)+';">'+e+'<div style="clear:both"></div></div>'}function Th(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Mh(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var kh=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Xo()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=function(t,e){var n=X(t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var o=n.renderMode||"html";return r?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Eu(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Eu(r)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}({color:e,type:t,renderMode:n,markerId:r});return X(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};G(e)?z(e,function(t){return A(n,t)}):A(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();var Ih=la();function Dh(t,e){return t.getName(e)||t.getId(e)}var Rh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var n;return c(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=$c({count:Ah,reset:Oh}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Ih(this).sourceManager=new oh(this)).prepareSource();var r=this.getInitialData(t,n);Nh(r,this),this.dataTask.context.data=r,Ih(this).dataBeforeProcessed=r,Ph(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=zc(this),r=n?Fc(t):{},i=this.subType;Wc.hasClass(i)&&(i+="Series"),P(t,e.getTheme().get(this.subType)),P(t,this.getDefaultOption()),Qo(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Bc(t,r,n)},e.prototype.mergeOption=function(t,e){t=P(this.option,t,!0),this.fillDataTextStyle(t.data);var n=zc(this);n&&Bc(this.option,t,n);var r=Ih(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Nh(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Ih(this).dataBeforeProcessed=i,Ph(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!K(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Qo(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=zh(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return Ih(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=zh(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}Ih(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return ft(t)},e.prototype.getSourceManager=function(){return Ih(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Ih(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,e,n,r){var i=this.getData(),o=this.coordinateSystem,a=o&&o.getAxis(t);if(!o||!a)return[];var s=a.dataToCoord(n);null==r&&(r=1/0);var l=[],u=1/0,c=-1,h=0;return i.each(e,function(t,e){var n=a.dataToCoord(t),i=s-n,o=Math.abs(i);o<=r&&((o<u||o===u&&i>=0&&c<0)&&(u=o,c=i,h=0),i===c&&(l[h++]=e))}),l.length=h,l},e.prototype.formatTooltip=function(t,e,n){return function(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=G(h),p=function(t,e){return kc(t.getData().getItemVisual(e,"style")[t.visualDrawType])}(o,a);if(c>1||d&&!c){var f=function(t,e,n,r,i){var o=e.getData(),a=F(t,function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName},!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(yh("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?z(r,function(t){c(Il(o,n,t),t)}):z(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,p);e=f.inlineValues,n=f.inlineValueTypes,r=f.blocks,i=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=Il(l,a,u[0]),n=g.type}else i=e=d?h[0]:h;var m=oa(o),y=m&&o.name||"",v=l.getName(a),x=s?y:v;return yh("section",{header:y,noHeader:s||!m,sortParam:i,blocks:[yh("nameValue",{markerType:"item",markerColor:p,name:x,noName:!st(x),value:e,valueType:n,dataIndex:a})].concat(r||[])})}({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(wt.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=Gc.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=Dh(i,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=H(t),n=[],r=0;r<e.length;r++){var i=t[e[r]];i>=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[Dh(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){q(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=e[l];s[h=Dh(t,u)]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=Dh(t,c);i.selectedMap=((n={})[h]=!0,n),this._selectedDataIndicesMap=((r={})[h]=t.getRawIndex(c),r)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return Wc.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(Wc);function Ph(t){var e=t.name;oa(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return z(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)}),r.join(" ")}(t)||e)}function Ah(t){return t.model.getRawData().count()}function Oh(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Lh}function Lh(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Nh(t,e){z(function(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];var i=t.length;for(r=0;r<e.length;r++)n[r+i]=e[r];return n}(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,j(Eh,e))})}function Eh(t,e){var n=zh(t);return n&&n.setOutputEnd((e||this).count()),e}function zh(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}N(Rh,Xc),N(Rh,Gc),kt(Rh,Wc);const Bh=Rh;var Fh={},Vh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Hh=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Vh},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=so(Fh,e,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),t.lineTo(i,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(Qi);Hh.prototype.type="line";const Wh=Hh;var jh=function(){this.cx=0,this.cy=0,this.r=0},Gh=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultShape=function(){return new jh},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(Qi);Gh.prototype.type="circle";const Uh=Gh;var Xh=Ri.CMD,Yh=[[],[],[]],$h=Math.sqrt,qh=Math.atan2,Zh=Math.sqrt,Kh=Math.sin,Qh=Math.cos,Jh=Math.PI;function td(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ed(t,e){return(t[0]*e[0]+t[1]*e[1])/(td(t)*td(e))}function nd(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ed(t,e))}function rd(t,e,n,r,i,o,a,s,l,u,c){var h=l*(Jh/180),d=Qh(h)*(t-n)/2+Kh(h)*(e-r)/2,p=-1*Kh(h)*(t-n)/2+Qh(h)*(e-r)/2,f=d*d/(a*a)+p*p/(s*s);f>1&&(a*=Zh(f),s*=Zh(f));var g=(i===o?-1:1)*Zh((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,m=g*a*p/s,y=g*-s*d/a,v=(t+n)/2+Qh(h)*m-Kh(h)*y,x=(e+r)/2+Kh(h)*m+Qh(h)*y,_=nd([1,0],[(d-m)/a,(p-y)/s]),b=[(d-m)/a,(p-y)/s],w=[(-1*d-m)/a,(-1*p-y)/s],S=nd(b,w);if(ed(b,w)<=-1&&(S=Jh),ed(b,w)>=1&&(S=0),S<0){var C=Math.round(S/Jh*1e6)/1e6;S=2*Jh+C%2*Jh}c.addData(u,v,x,a,s,_,S,h,o)}var id=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,od=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,ad=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Et(e,t),e.prototype.applyTransform=function(t){},e}(Qi);function sd(t){return null!=t.setData}function ld(t,e){var n=function(t){var e=new Ri;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=Ri.CMD,l=t.match(id);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,p=c.match(od)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);for(var m=0;m<f;){var y=void 0,v=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,C=r,T=i,M=void 0,k=void 0;switch(h){case"l":r+=p[m++],i+=p[m++],d=s.L,e.addData(d,r,i);break;case"L":r=p[m++],i=p[m++],d=s.L,e.addData(d,r,i);break;case"m":r+=p[m++],i+=p[m++],d=s.M,e.addData(d,r,i),o=r,a=i,h="l";break;case"M":r=p[m++],i=p[m++],d=s.M,e.addData(d,r,i),o=r,a=i,h="L";break;case"h":r+=p[m++],d=s.L,e.addData(d,r,i);break;case"H":r=p[m++],d=s.L,e.addData(d,r,i);break;case"v":i+=p[m++],d=s.L,e.addData(d,r,i);break;case"V":i=p[m++],d=s.L,e.addData(d,r,i);break;case"C":d=s.C,e.addData(d,p[m++],p[m++],p[m++],p[m++],p[m++],p[m++]),r=p[m-2],i=p[m-1];break;case"c":d=s.C,e.addData(d,p[m++]+r,p[m++]+i,p[m++]+r,p[m++]+i,p[m++]+r,p[m++]+i),r+=p[m-2],i+=p[m-1];break;case"S":y=r,v=i,M=e.len(),k=e.data,n===s.C&&(y+=r-k[M-4],v+=i-k[M-3]),d=s.C,C=p[m++],T=p[m++],r=p[m++],i=p[m++],e.addData(d,y,v,C,T,r,i);break;case"s":y=r,v=i,M=e.len(),k=e.data,n===s.C&&(y+=r-k[M-4],v+=i-k[M-3]),d=s.C,C=r+p[m++],T=i+p[m++],r+=p[m++],i+=p[m++],e.addData(d,y,v,C,T,r,i);break;case"Q":C=p[m++],T=p[m++],r=p[m++],i=p[m++],d=s.Q,e.addData(d,C,T,r,i);break;case"q":C=p[m++]+r,T=p[m++]+i,r+=p[m++],i+=p[m++],d=s.Q,e.addData(d,C,T,r,i);break;case"T":y=r,v=i,M=e.len(),k=e.data,n===s.Q&&(y+=r-k[M-4],v+=i-k[M-3]),r=p[m++],i=p[m++],d=s.Q,e.addData(d,y,v,r,i);break;case"t":y=r,v=i,M=e.len(),k=e.data,n===s.Q&&(y+=r-k[M-4],v+=i-k[M-3]),r+=p[m++],i+=p[m++],d=s.Q,e.addData(d,y,v,r,i);break;case"A":x=p[m++],_=p[m++],b=p[m++],w=p[m++],S=p[m++],rd(C=r,T=i,r=p[m++],i=p[m++],w,S,x,_,b,d=s.A,e);break;case"a":x=p[m++],_=p[m++],b=p[m++],w=p[m++],S=p[m++],rd(C=r,T=i,r+=p[m++],i+=p[m++],w,S,x,_,b,d=s.A,e)}}"z"!==h&&"Z"!==h||(d=s.Z,e.addData(d),r=o,i=a),n=d}return e.toStatic(),e}(t),r=A({},e);return r.buildPath=function(t){var e,r=sd(t);r&&t.canSave()?(t.appendPath(n),(e=t.getContext())&&t.rebuildPath(e,1)):(e=r?t.getContext():t)&&n.rebuildPath(e,1)},r.applyTransform=function(t){!function(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=Xh.M,h=Xh.C,d=Xh.L,p=Xh.R,f=Xh.A,g=Xh.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:case d:r=1;break;case h:r=3;break;case g:r=2;break;case f:var m=e[4],y=e[5],v=$h(e[0]*e[0]+e[1]*e[1]),x=$h(e[2]*e[2]+e[3]*e[3]),_=qh(-e[1]/x,e[0]/v);l[i]*=v,l[i++]+=m,l[i]*=x,l[i++]+=y,l[i++]*=v,l[i++]*=x,l[i++]+=_,l[i++]+=_,o=i+=2;break;case p:s[0]=l[i++],s[1]=l[i++],rn(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],rn(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var b=Yh[a];b[0]=l[i++],b[1]=l[i++],rn(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}(n,t),this.dirtyShape()},r}var ud=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return Et(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,r=n.indexOf(e);r>=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=L(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=L(n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(e)},e.prototype.getBoundingRect=function(t){for(var e=new ve(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(ve.applyTransform(e,s,l),(i=i||e.clone()).union(e)):(i=i||s.clone()).union(s)}}return i||e},e}(Wr);ud.prototype.type="group";const cd=ud;var hd=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},dd=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultShape=function(){return new hd},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),t.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),t.closePath()},e}(Qi);dd.prototype.type="ellipse";const pd=dd;var fd=Math.PI,gd=2*fd,md=Math.sin,yd=Math.cos,vd=Math.acos,xd=Math.atan2,_d=Math.abs,bd=Math.sqrt,wd=Math.max,Sd=Math.min,Cd=1e-4;function Td(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/bd(s*s+l*l),c=u*l,h=-u*s,d=t+c,p=e+h,f=n+c,g=r+h,m=(d+f)/2,y=(p+g)/2,v=f-d,x=g-p,_=v*v+x*x,b=i-o,w=d*g-f*p,S=(x<0?-1:1)*bd(wd(0,b*b*_-w*w)),C=(w*x-v*S)/_,T=(-w*v-x*S)/_,M=(w*x+v*S)/_,k=(-w*v+x*S)/_,I=C-m,D=T-y,R=M-m,P=k-y;return I*I+D*D>R*R+P*P&&(C=M,T=k),{cx:C,cy:T,x0:-c,y0:-h,x1:C*(i/b-1),y1:T*(i/b-1)}}var Md=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},kd=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultShape=function(){return new Md},e.prototype.buildPath=function(t,e){!function(t,e){var n,r=wd(e.r,0),i=wd(e.r0||0,0),o=r>0;if(o||i>0){if(o||(r=i,i=0),i>r){var a=r;r=i,i=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,c=e.cy,h=!!e.clockwise,d=_d(l-s),p=d>gd&&d%gd;if(p>Cd&&(d=p),r>Cd)if(d>gd-Cd)t.moveTo(u+r*yd(s),c+r*md(s)),t.arc(u,c,r,s,l,!h),i>Cd&&(t.moveTo(u+i*yd(l),c+i*md(l)),t.arc(u,c,i,l,s,h));else{var f=void 0,g=void 0,m=void 0,y=void 0,v=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,C=void 0,T=void 0,M=void 0,k=void 0,I=void 0,D=void 0,R=r*yd(s),P=r*md(s),A=i*yd(l),O=i*md(l),L=d>Cd;if(L){var N=e.cornerRadius;N&&(n=function(t){var e;if(G(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(N),f=n[0],g=n[1],m=n[2],y=n[3]);var E=_d(r-i)/2;if(v=Sd(E,m),x=Sd(E,y),_=Sd(E,f),b=Sd(E,g),C=w=wd(v,x),T=S=wd(_,b),(w>Cd||S>Cd)&&(M=r*yd(l),k=r*md(l),I=i*yd(s),D=i*md(s),d<fd)){var z=function(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,d=h*l-c*u;if(!(d*d<Cd))return[t+(d=(c*(e-o)-h*(t-i))/d)*l,e+d*u]}(R,P,I,D,M,k,A,O);if(z){var B=R-z[0],F=P-z[1],V=M-z[0],H=k-z[1],W=1/md(vd((B*V+F*H)/(bd(B*B+F*F)*bd(V*V+H*H)))/2),j=bd(z[0]*z[0]+z[1]*z[1]);C=Sd(w,(r-j)/(W+1)),T=Sd(S,(i-j)/(W-1))}}}if(L)if(C>Cd){var U=Sd(m,C),X=Sd(y,C),Y=Td(I,D,R,P,r,U,h),$=Td(M,k,A,O,r,X,h);t.moveTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),C<w&&U===X?t.arc(u+Y.cx,c+Y.cy,C,xd(Y.y0,Y.x0),xd($.y0,$.x0),!h):(U>0&&t.arc(u+Y.cx,c+Y.cy,U,xd(Y.y0,Y.x0),xd(Y.y1,Y.x1),!h),t.arc(u,c,r,xd(Y.cy+Y.y1,Y.cx+Y.x1),xd($.cy+$.y1,$.cx+$.x1),!h),X>0&&t.arc(u+$.cx,c+$.cy,X,xd($.y1,$.x1),xd($.y0,$.x0),!h))}else t.moveTo(u+R,c+P),t.arc(u,c,r,s,l,!h);else t.moveTo(u+R,c+P);i>Cd&&L?T>Cd?(U=Sd(f,T),Y=Td(A,O,M,k,i,-(X=Sd(g,T)),h),$=Td(R,P,I,D,i,-U,h),t.lineTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),T<S&&U===X?t.arc(u+Y.cx,c+Y.cy,T,xd(Y.y0,Y.x0),xd($.y0,$.x0),!h):(X>0&&t.arc(u+Y.cx,c+Y.cy,X,xd(Y.y0,Y.x0),xd(Y.y1,Y.x1),!h),t.arc(u,c,i,xd(Y.cy+Y.y1,Y.cx+Y.x1),xd($.cy+$.y1,$.cx+$.x1),h),U>0&&t.arc(u+$.cx,c+$.cy,U,xd($.y1,$.x1),xd($.y0,$.x0),!h))):(t.lineTo(u+A,c+O),t.arc(u,c,i,l,s,h)):t.lineTo(u+A,c+O)}else t.moveTo(u,c);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Qi);kd.prototype.type="sector";const Id=kd;var Dd=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Rd=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultShape=function(){return new Dd},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(Qi);Rd.prototype.type="ring";const Pd=Rd;function Ad(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=function(t,e,n,r){var i,o,a,s,l=[],u=[],c=[],h=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=t.length;d<p;d++)on(a,a,t[d]),an(s,s,t[d]);on(a,a,r[0]),an(s,s,r[1])}for(d=0,p=t.length;d<p;d++){var f=t[d];if(n)i=t[d?d-1:p-1],o=t[(d+1)%p];else{if(0===d||d===p-1){l.push(Ze(t[d]));continue}i=t[d-1],o=t[d+1]}Qe(u,o,i),Je(u,u,e);var g=tn(f,i),m=tn(f,o),y=g+m;0!==y&&(g/=y,m/=y),Je(c,u,-g),Je(h,u,m);var v=Ke([],f,c),x=Ke([],f,h);r&&(an(v,v,a),on(v,v,s),an(x,x,a),on(x,x,s)),l.push(v),l.push(x)}return n&&l.push(l.shift()),l}(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]),s=1;for(var h=i.length;s<h;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}var Od=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Ld=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultShape=function(){return new Od},e.prototype.buildPath=function(t,e){Ad(t,e,!0)},e}(Qi);Ld.prototype.type="polygon";const Nd=Ld;var Ed=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},zd=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Ed},e.prototype.buildPath=function(t,e){Ad(t,e,!1)},e}(Qi);zd.prototype.type="polyline";const Bd=zd;var Fd=[],Vd=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Hd(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?Rn:Dn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Rn:Dn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?En:Nn)(t.x1,t.cpx1,t.x2,e),(n?En:Nn)(t.y1,t.cpy1,t.y2,e)]}var Wd=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Vd},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,r),null==l||null==u?(c<1&&(Bn(n,a,i,c,Fd),a=Fd[1],i=Fd[2],Bn(r,s,o,c,Fd),s=Fd[1],o=Fd[2]),t.quadraticCurveTo(a,s,i,o)):(c<1&&(On(n,a,l,i,c,Fd),a=Fd[1],l=Fd[2],i=Fd[3],On(r,s,u,o,c,Fd),s=Fd[1],u=Fd[2],o=Fd[3]),t.bezierCurveTo(a,s,l,u,i,o)))},e.prototype.pointAt=function(t){return Hd(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Hd(this.shape,t,!0);return function(t,e){var n=function(t){return Math.sqrt(function(t){return t[0]*t[0]+t[1]*t[1]}(t))}(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}(e,e)},e}(Qi);Wd.prototype.type="bezier-curve";const jd=Wd;var Gd=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Ud=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Gd},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},e}(Qi);Ud.prototype.type="arc";const Xd=Ud;const Yd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return Et(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Qi.prototype.getBoundingRect.call(this)},e}(Qi);var $d=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}();const qd=$d,Zd=function(t){function e(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return Et(e,t),e}(qd);var Kd=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return Et(e,t),e}(qd);const Qd=Kd;var Jd=Math.min,tp=Math.max,ep=Math.abs,np=[0,0],rp=[0,0],ip=ye(),op=ip.minTv,ap=ip.maxTv,sp=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Jt;for(n=0;n<2;n++)this._axes[n]=new Jt;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width,s=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),e)for(var l=0;l<4;l++)n[l].transform(e);for(Jt.sub(r[0],n[1],n[0]),Jt.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize(),l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},t.prototype.intersect=function(t,e,n){var r=!0,i=!e;return e&&Jt.set(e,0,0),ip.reset(n,!i),!this._intersectCheckOneSide(this,t,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(t,this,i,-1)&&(r=!1,i)||i||ip.negativeSize||Jt.copy(e,r?ip.useDir?ip.dirMinTv:op:ap),r},t.prototype._intersectCheckOneSide=function(t,e,n,r){for(var i=!0,o=0;o<2;o++){var a=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,np),t._getProjMinMaxOnAxis(o,e._corners,rp),ip.negativeSize||np[1]<rp[0]||np[0]>rp[1]){if(i=!1,ip.negativeSize||n)return i;var s=ep(rp[0]-np[1]),l=ep(np[0]-rp[1]);Jd(s,l)>ap.len()&&(s<l?Jt.scale(ap,a,-s*r):Jt.scale(ap,a,l*r))}else n||(s=ep(rp[0]-np[1]),l=ep(np[0]-rp[1]),(ip.useDir||Jd(s,l)<op.len())&&((s<l||!ip.bidirectional)&&(Jt.scale(op,a,s*r),ip.useDir&&ip.calcDirMTV()),(s>=l||!ip.bidirectional)&&(Jt.scale(op,a,-l*r),ip.useDir&&ip.calcDirMTV())))}return i},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=Jd(u,a),s=tp(u,s)}n[0]=a+ip.touchThreshold,n[1]=s-ip.touchThreshold,ip.negativeSize=n[1]<n[0]},t}();const lp=sp;var up=[];const cp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return Et(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new ve(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(up)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(t,e))return!0;return!1},e}(Kr);var hp=la();function dp(t,e,n,r,i,o,a){var s,l=!1;U(i)?(a=o,o=i,i=null):q(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=function(t,e,n,r,i){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return r?(l=nt(r.duration,200),u=nt(r.easing,"cubicOut"),c=0):(l=e.getShallow(s?"animationDurationUpdate":"animationDuration"),u=e.getShallow(s?"animationEasingUpdate":"animationEasing"),c=e.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),U(c)&&(c=c(n,i)),U(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}(t,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var h={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,h):e.animateTo(n,h)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function pp(t,e,n,r,i,o){dp("update",t,e,n,r,i,o)}function fp(t,e,n,r,i,o){dp("enter",t,e,n,r,i,o)}function gp(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function mp(t,e,n,r,i,o){gp(t)||dp("leave",t,e,n,r,i,o)}function yp(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),mp(t,{style:{opacity:0}},e,n,r)}function vp(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||yp(t,e,n,r)}):yp(t,e,n,r)}var xp={},_p=["x","y"],bp=["width","height"];function wp(t){return Qi.extend(t)}var Sp=function(t,e){var n=ld(t,e);return function(t){function e(e){var r=t.call(this,e)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return Et(e,t),e}(ad)};function Cp(t,e){return Sp(t,e)}function Tp(t,e){xp[t]=e}function Mp(t){if(xp.hasOwnProperty(t))return xp[t]}function kp(t,e,n,r){var i=function(t,e){return new ad(ld(t,e))}(t,e);return n&&("center"===r&&(n=Dp(n,i.getBoundingRect())),Pp(i,n)),i}function Ip(t,e,n){var r=new oo({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var i={width:t.width,height:t.height};r.setStyle(Dp(e,i))}}});return r}function Dp(t,e){var n,r=e.width/e.height,i=t.height*r;return n=i<=t.width?t.height:(i=t.width)/r,{x:t.x+t.width/2-i/2,y:t.y+t.height/2-n/2,width:i,height:n}}var Rp=function(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new Qi(e);return a.createPathProxy(),a.buildPath=function(t){if(sd(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function Pp(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function Ap(t,e){return so(t,t,{lineWidth:e}),t}function Op(t,e){return lo(t,t,e),t}var Lp=uo;function Np(t,e){for(var n=Xt([]);t&&t!==e;)$t(n,t.getLocalTransform(),n),t=t.parent;return n}function Ep(t,e,n){return e&&!E(e)&&(e=mn.getLocalTransform(e)),n&&(e=Kt([],e)),rn([],t,e)}function zp(t,e,n){var r=0===e[4]||0===e[5]||0===e[0]?1:Ao(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:Ao(2*e[4]/e[2]),o=["left"===t?-r:"right"===t?r:0,"top"===t?-i:"bottom"===t?i:0];return o=Ep(o,e,n),Ao(o[0])>Ao(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Bp(t){return!t.isGroup}function Fp(t,e,n){if(t&&e){var r,i=(r={},t.traverse(function(t){Bp(t)&&t.anid&&(r[t.anid]=t)}),r);e.traverse(function(t){if(Bp(t)&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),pp(t,r,n,ga(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=R(t.shape)),e}}function Vp(t,e){return B(t,function(t){var n=t[0];n=Po(n,e.x),n=Ro(n,e.x+e.width);var r=t[1];return r=Po(r,e.y),[n,r=Ro(r,e.y+e.height)]})}function Hp(t,e){var n=Po(t.x,e.x),r=Ro(t.x+t.width,e.x+e.width),i=Po(t.y,e.y),o=Ro(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function Wp(t,e,n){var r=A({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),O(i,n),new oo(r)):kp(t.replace("path://",""),r,n,"center")}function jp(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Gp(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function Gp(t,e,n,r,i,o,a,s){var l,u=n-t,c=r-e,h=a-i,d=s-o,p=Up(h,d,u,c);if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=t-i,g=e-o,m=Up(f,g,u,c)/p;if(m<0||m>1)return!1;var y=Up(f,g,h,d)/p;return!(y<0||y>1)}function Up(t,e,n,r){return t*r-n*e}function Xp(t,e,n,r,i){return null==e||($(e)?Yp[0]=Yp[1]=Yp[2]=Yp[3]=e:(Yp[0]=e[0],Yp[1]=e[1],Yp[2]=e[2],Yp[3]=e[3]),r&&(Yp[0]=Po(0,Yp[0]),Yp[1]=Po(0,Yp[1]),Yp[2]=Po(0,Yp[2]),Yp[3]=Po(0,Yp[3])),n&&(Yp[0]=-Yp[0],Yp[1]=-Yp[1],Yp[2]=-Yp[2],Yp[3]=-Yp[3]),$p(t,Yp,"x","width",3,1,i&&i[0]||0),$p(t,Yp,"y","height",0,2,i&&i[1]||0)),t}var Yp=[0,0,0,0];function $p(t,e,n,r,i,o,a){var s=e[o]+e[i],l=t[r];t[r]+=s,a=Po(0,Ro(a,l)),t[r]<a?(t[r]=a,t[n]+=e[i]>=0?-e[i]:e[o]>=0?l+e[o]:Ao(s)>1e-8?(l-a)*e[i]/s:0):t[n]-=e[i]}function qp(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=X(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&z(H(l),function(t){yt(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=ga(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:O({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Zp(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Kp(t,e){if(t)if(G(t))for(var n=0;n<t.length;n++)Zp(t[n],e);else Zp(t,e)}function Qp(t){return!t||Ao(t[1])<Jp&&Ao(t[2])<Jp||Ao(t[0])<Jp&&Ao(t[3])<Jp}var Jp=1e-5;function tf(t,e){return t?ve.copy(t,e):e.clone()}function ef(t,e){return e?Yt(t||[1,0,0,1,0,0],e):void 0}function nf(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function rf(t){var e=-1/0,n=1/0;function r(t){if(t&&!t.isGroup){var e=t.currentStates;if(e.length)for(var n=0;n<e.length;n++)i(t.states[e[n]]);i(t)}}function i(t){if(t){var r=t.z2;r>e&&(e=r),r<n&&(n=r)}}return Zp(t,function(t){r(t),r(t.getTextContent()),r(t.getTextGuideLine())}),n>e&&(n=e=0),{min:n,max:e}}function of(t,e,n){af(t,e,n,-1/0)}function af(t,e,n,r){if(t.ignoreModelZ)return r;var i=t.getTextContent(),o=t.getTextGuideLine();if(t.isGroup)for(var a=t.childrenRef(),s=0;s<a.length;s++)r=Po(af(a[s],e,n,r),r);else t.z=e,t.zlevel=n,r=Po(t.z2||0,r);if(i&&(i.z=e,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),o){var l=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(r)&&(o.z2=r+(l&&l.showAbove?1:-1))}return r}Tp("circle",Uh),Tp("ellipse",pd),Tp("sector",Id),Tp("ring",Pd),Tp("polygon",Nd),Tp("polyline",Bd),Tp("rect",fo),Tp("line",Wh),Tp("bezierCurve",jd),Tp("arc",Xd);var sf=Qi.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),lf=Qi.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),uf=Qi.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),p=.6*a,f=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*p,l+s+d*p,n,r-f,n,r),t.bezierCurveTo(n,r-f,n-c+h*p,l+s+d*p,n-c,l+s),t.closePath()}}),cf=Qi.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),hf={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},df={};z({line:Wh,rect:fo,roundRect:fo,square:fo,circle:Uh,diamond:lf,pin:uf,arrow:cf,triangle:sf},function(t,e){df[e]=new t});var pf=Qi.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=Re(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=df[r];i||(i=df[r="rect"]),hf[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function ff(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||dh.color.neutral00,n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function gf(t,e,n,r,i,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?Ip(t.slice(8),new ve(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?kp(t.slice(7),{},new ve(e,n,r,i),a?"center":"cover"):new pf({shape:{symbolType:t,x:e,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=ff,o&&s.setColor(o),s}function mf(t,e){if(null!=t)return G(t)||(t=[t,t]),[Lo(t[0],e[0])||0,Lo(nt(t[1],t[0]),e[1])||0]}const yf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return c(e,t),e.prototype.getInitialData=function(t){return Cu(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new cd,n=gf("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*t.itemHeight,s=gf(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?i:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill=dh.color.neutral00,s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Bh);function vf(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Il(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(Il(t,e,n[a]));return o.join(" ")}}var xf=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return c(e,t),e.prototype._createSymbol=function(t,e,n,r,i,o){this.removeAll();var a=gf(t,-1,-1,2,2,null,o);a.attr({z2:nt(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),a.drift=_f,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ja(this.childAt(0))},e.prototype.downplay=function(){Ga(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var o,a=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=e.getSymbolZ2(t,n),c=a!==this._symbolType,h=i&&i.disableAnimation;if(c){var d=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,t,n,l,u,d)}else{(f=this.childAt(0)).silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};h?f.attr(p):pp(f,p,s,n),hp(o=f).oldStyle=o.style}if(this._updateCommon(t,n,l,r,i),c){var f=this.childAt(0);h||(p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}},f.scaleX=f.scaleY=0,f.style.opacity=0,fp(f,p,s,n))}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,u,c,h,d,p,f=this.childAt(0),g=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,h=r.labelStatesModels,d=r.hoverScale,p=r.cursorStyle,c=r.emphasisDisabled),!r||t.hasItemOption){var m=r&&r.itemModel?r.itemModel:t.getItemModel(e),y=m.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),h=ds(m),d=y.getShallow("scale"),p=m.getShallow("cursor")}var v=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(v||0)*Math.PI/180||0);var x=mf(t.getItemVisual(e,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),p&&f.attr("cursor",p);var _=t.getItemVisual(e,"style"),b=_.fill;if(f instanceof oo){var w=f.style;f.useStyle(A({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(A({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,i&&i.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),C=this._z2;null!=S?null==C&&(this._z2=f.z2,f.z2+=S):null!=C&&(f.z2=C,this._z2=null);var T=i&&i.useNameLabel;hs(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return T?t.getName(e):vf(t,e)},inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=f.ensureState("emphasis");M.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var k=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;M.scaleX=this._sizeX*k,M.scaleY=this._sizeY*k,this.setSymbolScale(1),es(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=ga(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&mp(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();mp(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return G(n=t.getItemVisual(e,"symbolSize"))||(n=[+n,+n]),[n[0]||0,n[1]||0];var n},e.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")},e}(cd);function _f(t,e){this.parent.drift(t,e)}const bf=xf;function wf(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function Sf(t){return null==t||q(t)||(t={isIgnore:t}),t||{}}function Cf(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:ds(e),cursorStyle:e.get("cursor")}}var Tf=function(){function t(t){this.group=new cd,this._SymbolCtor=t||bf}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Sf(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Cf(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add(function(r){var i=u(r);if(wf(t,i,r,e)){var a=new o(t,r,s,l);a.setPosition(i),t.setItemGraphicEl(r,a),n.add(a)}}).update(function(c,h){var d=i.getItemGraphicEl(h),p=u(c);if(wf(t,p,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),(d=new o(t,c,s,l)).setPosition(p);else{d.updateData(t,c,s,l);var m={x:p[0],y:p[1]};a?d.attr(m):pp(d,m,r)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)}).remove(function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},r)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Cf(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Sf(n);for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(wf(e,o,i,n)){var a=new this._SymbolCtor(e,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){Kp(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()},t}();const Mf=Tf;function kf(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),o=function(t,e){var n=0,r=t.scale.getExtent();return"start"===e?n=r[0]:"end"===e?n=r[1]:$(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}(i,n),a=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=B(t.dimensions,function(t){return e.mapDimension(t)}),d=!1,p=e.getCalculationInfo("stackResultDimension");return Su(e,h[0])&&(d=!0,h[0]=p),Su(e,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function If(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}var Df="undefined"!=typeof Float32Array,Rf=Df?Float32Array:Array;function Pf(t){return G(t)?Df?new Float32Array(t):t:new Rf(t)}var Af=Math.min,Of=Math.max;function Lf(t,e){return isNaN(t)||isNaN(e)}function Nf(t,e,n,r,i,o,a,s,l){for(var u,c,h,d,p,f,g=n,m=0;m<r;m++){var y=e[2*g],v=e[2*g+1];if(g>=i||g<0)break;if(Lf(y,v)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,v),h=y,d=v;else{var x=y-u,_=v-c;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===y&&S===v&&m<r;)m++,g+=o,w=e[2*(b+=o)],S=e[2*b+1],x=(y=e[2*g])-u,_=(v=e[2*g+1])-c;var C=m+1;if(l)for(;Lf(w,S)&&C<r;)C++,w=e[2*(b+=o)],S=e[2*b+1];var T=.5,M=0,k=0,I=void 0,D=void 0;if(C>=r||Lf(w,S))p=y,f=v;else{M=w-u,k=S-c;var R=y-u,P=w-y,A=v-c,O=S-v,L=void 0,N=void 0;if("x"===s){var E=M>0?1:-1;p=y-E*(L=Math.abs(R))*a,f=v,I=y+E*(N=Math.abs(P))*a,D=v}else if("y"===s){var z=k>0?1:-1;p=y,f=v-z*(L=Math.abs(A))*a,I=y,D=v+z*(N=Math.abs(O))*a}else L=Math.sqrt(R*R+A*A),p=y-M*a*(1-(T=(N=Math.sqrt(P*P+O*O))/(N+L))),f=v-k*a*(1-T),D=v+k*a*T,I=Af(I=y+M*a*T,Of(w,y)),D=Af(D,Of(S,v)),I=Of(I,Af(w,y)),f=v-(k=(D=Of(D,Af(S,v)))-v)*L/N,p=Af(p=y-(M=I-y)*L/N,Of(u,y)),f=Af(f,Of(c,v)),I=y+(M=y-(p=Of(p,Af(u,y))))*N/L,D=v+(k=v-(f=Of(f,Af(c,v))))*N/L}t.bezierCurveTo(h,d,p,f,y,v),h=I,d=D}else t.lineTo(y,v)}u=y,c=v,g+=o}return m}var Ef=function(){this.smooth=0,this.smoothConstraint=!0},zf=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return c(e,t),e.prototype.getDefaultStyle=function(){return{stroke:dh.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Ef},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0&&Lf(n[2*i-2],n[2*i-1]);i--);for(;r<i&&Lf(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=Nf(t,n,r,i,i,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,o=Ri.CMD,a="x"===e,s=[],l=0;l<i.length;){var u=void 0,c=void 0,h=void 0,d=void 0,p=void 0,f=void 0,g=void 0;switch(i[l++]){case o.M:n=i[l++],r=i[l++];break;case o.L:if(u=i[l++],c=i[l++],(g=a?(t-n)/(u-n):(t-r)/(c-r))<=1&&g>=0){var m=a?(c-r)*g+r:(u-n)*g+n;return a?[t,m]:[m,t]}n=u,r=c;break;case o.C:u=i[l++],c=i[l++],h=i[l++],d=i[l++],p=i[l++],f=i[l++];var y=a?Pn(n,u,h,p,t,s):Pn(r,c,d,f,t,s);if(y>0)for(var v=0;v<y;v++){var x=s[v];if(x<=1&&x>=0)return m=a?Dn(r,c,d,f,x):Dn(n,u,h,p,x),a?[t,m]:[m,t]}n=p,r=f}}},e}(Qi),Bf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e}(Ef),Ff=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return c(e,t),e.prototype.getDefaultShape=function(){return new Bf},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Lf(n[2*o-2],n[2*o-1]);o--);for(;i<o&&Lf(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=Nf(t,n,i,o,o,1,e.smooth,a,e.connectNulls);Nf(t,r,i+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),i+=s+1,t.closePath()}},e}(Qi);function Vf(){var t=la();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var Hf=la(),Wf=Vf(),jf=function(){function t(){this.group=new cd,this.uid=Mu("viewChart"),this.renderTask=$c({plan:Xf,reset:Yf}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&Uf(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&Uf(i,r,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){Kp(this.group,t)},t.markUpdateMethod=function(t,e){Hf(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function Gf(t,e,n){t&&as(t)&&("emphasis"===e?ja:Ga)(t,n)}function Uf(t,e,n){var r=sa(t,e),i=e&&null!=e.highlightKey?function(t){var e=ya[t];return null==e&&ma<=32&&(e=ya[t]=ma++),e}(e.highlightKey):null;null!=r?z(Ko(r),function(e){Gf(t.getItemGraphicEl(e),n,i)}):t.eachItemGraphicEl(function(t){Gf(t,n,i)})}function Xf(t){return Wf(t.model)}function Yf(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&Hf(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),$f[l]}Mt(jf),Pt(jf);var $f={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const qf=jf;function Zf(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function Kf(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[e,n],[r,i]]}function Qf(t,e){var n=Kf(t),r=n[0],i=n[1],o=Kf(e),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Jf(t){return $(t)?t:t?.5:0}function tg(t,e,n,r,i){var o=n.getBaseAxis(),a="x"===o.dim||"radius"===o.dim?0:1,s=[],l=0,u=[],c=[],h=[],d=[];if(i){for(l=0;l<t.length;l+=2){var p=e||t;isNaN(p[l])||isNaN(p[l+1])||d.push(t[l],t[l+1])}t=d}for(l=0;l<t.length-2;l+=2)switch(h[0]=t[l+2],h[1]=t[l+3],c[0]=t[l],c[1]=t[l+1],s.push(c[0],c[1]),r){case"end":u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var f=(c[a]+h[a])/2,g=[];u[a]=g[a]=f,u[1-a]=c[1-a],g[1-a]=h[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function eg(t,e){return isNaN(t)||isNaN(e)}function ng(t,e){return[t[2*e],t[2*e+1]]}function rg(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<_a.length;e++)if(t.get([_a[e],"endLabel","show"]))return!0;return!1}function ig(t,e,n,r){if(function(t){return"cartesian2d"===t.type}(e)){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=rg(r)?function(n,r){t._endLabelOnDuring(n,r,a,s,o,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=function(t,e,n,r,i){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var h=new fo({shape:{x:a,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),p=d.isHorizontal(),f=d.inverse;p?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g=U(i)?function(t){i(t,h)}:null;fp(h,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return h}(e,n,r,function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return function(t,e,n){var r=t.getArea(),i=Eo(r.r0,1),o=Eo(r.r,1),a=new Id({shape:{cx:Eo(t.cx,1),cy:Eo(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,fp(a,{shape:{endAngle:r.endAngle,r:o}},n)),a}(e,n,r)}var og=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.init=function(){var t=new cd,e=new Mf;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=W(this._changePolyState,this)},e.prototype.render=function(t,e,n){var r=t.coordinateSystem,i=this.group,o=t.getData(),a=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=o.getLayout("points")||[],u="polar"===r.type,c=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,f=this._lineGroup,g=!e.ssr&&t.get("animation"),m=!s.isEmpty(),y=s.get("origin"),v=kf(r,o,y),x=m&&function(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=Pf(2*r),o=0;o<r;o++){var a=If(n,t,e,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(r,o,v),_=t.get("showSymbol"),b=t.get("connectNulls"),w=_&&!u&&function(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!function(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*bf.getSymbolSize(e,a)[t.isHorizontal()?1:0]>r)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return z(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,o,r),S=this._data;S&&S.eachItemGraphicEl(function(t,e){t.__temp&&(i.remove(t),S.setItemGraphicEl(e,null))}),_||h.remove(),i.add(f);var C,T=!u&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(C=r.getArea()).width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var M=function(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count()&&"cartesian2d"===e.type){for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(o){var l=e.getAxis(i),u=B(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=function(t,e){var n,r,i=[],o=t.length;function a(t,e,n){var r=t.coord;return{coord:n,color:ir((n-r)/(e.coord-r),[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}(u,"x"===i?n.getWidth():n.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=d[0].coord-10,g=d[p-1].coord+10,m=g-f;if(m<.001)return"transparent";z(d,function(t){t.offset=(t.coord-f)/m}),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var y=new Zd(0,0,0,0,d,!0);return y[i]=f,y[i+"2"]=g,y}}}(o,r,n)||o.getVisual("style")[o.getVisual("drawType")];if(d&&c.type===r.type&&T===this._step){m&&!p?p=this._newPolygon(l,x):p&&!m&&(f.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(t,r,kc(M));var k=f.getClipPath();k?fp(k,{shape:ig(this,r,!1,t).shape},t):f.setClipPath(ig(this,r,!0,t)),_&&h.updateData(o,{isIgnore:w,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),Zf(this._stackedOnPoints,x)&&Zf(this._points,l)||(g?this._doUpdateAnimation(o,x,r,n,T,y,b):(T&&(x&&(x=tg(x,l,r,T,b)),l=tg(l,null,r,T,b)),d.setShape({points:l}),p&&p.setShape({points:l,stackedOnPoints:x})))}else _&&h.updateData(o,{isIgnore:w,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),g&&this._initSymbolLabelAnimation(o,r,C),T&&(x&&(x=tg(x,l,r,T,b)),l=tg(l,null,r,T,b)),d=this._newPolyline(l),m?p=this._newPolygon(l,x):p&&(f.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(t,r,kc(M)),f.setClipPath(ig(this,r,!0,t));var I=t.getModel("emphasis"),D=I.get("focus"),R=I.get("blurScope"),P=I.get("disabled");d.useStyle(O(a.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"})),is(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),ga(d).seriesIndex=t.seriesIndex,es(d,D,R,P);var A=Jf(t.get("smooth")),L=t.get("smoothMonotone");if(d.setShape({smooth:A,smoothMonotone:L,connectNulls:b}),p){var N=o.getCalculationInfo("stackedOnSeries"),E=0;p.useStyle(O(s.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),N&&(E=Jf(N.get("smooth"))),p.setShape({smooth:A,stackedOnSmooth:E,smoothMonotone:L,connectNulls:b}),is(p,t,"areaStyle"),ga(p).seriesIndex=t.seriesIndex,es(p,D,R,P)}var F=this._changePolyState;o.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=F)}),this._polyline.onHoverStateChange=F,this._data=o,this._coordSys=r,this._stackedOnPoints=x,this._points=l,this._step=T,this._valueOrigin=y,t.get("triggerLineEvent")&&(this.packEventData(t,d),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,e){ga(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=sa(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new bf(i,o)).x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else qf.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=sa(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else qf.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;Ba(this._polyline,t),e&&Ba(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new zf({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Ff({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");U(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=U(u)?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var h=[t.x,t.y],d=void 0,p=void 0,f=void 0;if(n)if(i){var g=n,m=e.pointToCoord(h);r?(d=g.startAngle,p=g.endAngle,f=-m[1]/180*Math.PI):(d=g.r0,p=g.r,f=m[0])}else{var y=n;r?(d=y.x,p=y.x+y.width,f=t.x):(d=y.y+y.height,p=y.y,f=t.y)}var v=p===d?0:(f-d)/(p-d);a&&(v=1-v);var x=U(u)?u(o):l*v+c,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(rg(t)){var i=t.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Do({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e=t.length/2;e>0&&eg(t[2*e-2],t[2*e-1]);e--);return e-1}(a);l>=0&&(hs(o,ds(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?function(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!G(e))return e+"";for(var r=[],i=0;i<n.length;i++){var o=t.getDimensionIndex(n[i]);o>=0&&r.push(e[o])}return r.join(" ")}(i,n):vf(i,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(r,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,y=e.shape,v=m?g?y.x:y.y+y.height:g?y.x+y.width:y.y,x=(g?p:0)*(m?-1:1),_=(g?0:-p)*(m?-1:1),b=g?"x":"y",w=function(t,e,n){for(var r,i,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(i=t[2*u+a],!isNaN(i)&&!isNaN(t[2*u+1-a]))if(0!==u){if(r<=e&&i>=e||r>=e&&i<=e){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(e-r)/(i-r)}}(u,v,b),S=w.range,C=S[1]-S[0],T=void 0;if(C>=1){if(C>1&&!h){var M=ng(u,S[0]);s.attr({x:M[0]+x,y:M[1]+_}),i&&(T=c.getRawValue(S[0]))}else{(M=l.getPointOn(v,b))&&s.attr({x:M[0]+x,y:M[1]+_});var k=c.getRawValue(S[0]),I=c.getRawValue(S[1]);i&&(T=function(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if($(r))return Eo(f=qo(n||0,r,i),o?Math.max(zo(n||0),zo(r)):e);if(X(r))return i<1?n:r;for(var a=[],s=n,l=r,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var h=t.getDimensionInfo(c);if(h&&"ordinal"===h.type)a[c]=(i<1&&s?s:l)[c];else{var d=s&&s[c]?s[c]:0,p=l[c],f=qo(d,p,i);a[c]=Eo(f,o?Math.max(zo(d),zo(p)):e)}}return a}(n,d,k,I,w.t))}r.lastFrameIndex=S[0]}else{var D=1===t||r.lastFrameIndex>0?S[0]:0;M=ng(u,D),i&&(T=c.getRawValue(D)),s.attr({x:M[0]+x,y:M[1]+_})}if(i){var R=xs(s);"function"==typeof R.setLabelText&&R.setLabelText(T)}}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,r,i,o,a){for(var s=function(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}(t,e),l=[],u=[],c=[],h=[],d=[],p=[],f=[],g=kf(i,e,a),m=t.getLayout("points")||[],y=e.getLayout("points")||[],v=0;v<s.length;v++){var x=s[v],_=!0,b=void 0,w=void 0;switch(x.cmd){case"=":b=2*x.idx,w=2*x.idx1;var S=m[b],C=m[b+1],T=y[w],M=y[w+1];(isNaN(S)||isNaN(C))&&(S=T,C=M),l.push(S,C),u.push(T,M),c.push(n[b],n[b+1]),h.push(r[w],r[w+1]),f.push(e.getRawIndex(x.idx1));break;case"+":var k=x.idx,I=g.dataDimsForPoint,D=i.dataToPoint([e.get(I[0],k),e.get(I[1],k)]);w=2*k,l.push(D[0],D[1]),u.push(y[w],y[w+1]);var R=If(g,i,e,k);c.push(R[0],R[1]),h.push(r[w],r[w+1]),f.push(e.getRawIndex(k));break;case"-":_=!1}_&&(d.push(x),p.push(p.length))}p.sort(function(t,e){return f[t]-f[e]});var P=l.length,A=Pf(P),O=Pf(P),L=Pf(P),N=Pf(P),E=[];for(v=0;v<p.length;v++){var z=p[v],B=2*v,F=2*z;A[B]=l[F],A[B+1]=l[F+1],O[B]=u[F],O[B+1]=u[F+1],L[B]=c[F],L[B+1]=c[F+1],N[B]=h[F],N[B+1]=h[F+1],E[v]=d[z]}return{current:A,next:O,stackedOnCurrent:L,stackedOnNext:N,status:E}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,d=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(i&&(d=tg(c.stackedOnCurrent,c.current,n,i,a),h=tg(c.current,null,n,i,a),f=tg(c.stackedOnNext,c.next,n,i,a),p=tg(c.next,null,n,i,a)),Qf(h,p)>3e3||l&&Qf(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:p}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),pp(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),pp(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],y=c.status,v=0;v<y.length;v++)if("="===y[v].cmd){var x=t.getItemGraphicEl(y[v].idx1);x&&m.push({el:x,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<m.length;e++){var n=m[e].el,r=2*m[e].ptIdx;n.x=t[r],n.y=t[r+1],n.markRedraw()}})},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,r){t.__temp&&(e.remove(t),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(qf);const ag=og;var sg={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},lg=function(t){return Math.round(t.length/2)},ug=function(){function t(){this.group=new cd,this.uid=Mu("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Mt(ug),Pt(ug);const cg=ug;var hg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return c(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:dh.size.m,backgroundColor:dh.color.transparent,borderColor:dh.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:dh.color.primary},subtextStyle:{fontSize:12,color:dh.color.quaternary}},e}(Wc),dg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return c(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,i=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=nt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Do({style:ps(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new Do({style:ps(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!d&&!f,h.silent=!p&&!f,d&&l.on("click",function(){Ic(d,"_"+t.get("target"))}),p&&h.on("click",function(){Ic(p,"_"+t.get("subtarget"))}),ga(l).eventData=ga(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(l),c&&r.add(h);var g=r.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var y=Oc(m,Ec(t,n).refContainer,t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),r.x=y.x,r.y=y.y,r.markRedraw();var v={align:a,verticalAlign:s};l.setStyle(v),h.setStyle(v),g=r.getBoundingRect();var x=y.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var b=new fo({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});r.add(b)}},e.type="title",e}(cg),pg={left:0,right:0,top:0,bottom:0},fg=["25%","25%"];const gg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.mergeDefaultAndTheme=function(e,n){var r=Fc(e.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&e.outerBounds&&Bc(e.outerBounds,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Bc(this.option.outerBounds,e.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:pg,outerBoundsContain:"all",outerBoundsClampWidth:fg[0],outerBoundsClampHeight:fg[1],backgroundColor:dh.color.transparent,borderWidth:1,borderColor:dh.color.neutral30},e}(Wc);var mg=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),yg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",da).models[0]},e.type="cartesian2dAxis",e}(Wc);N(yg,mg);var vg={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:dh.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:dh.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:dh.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[dh.color.backgroundTint,dh.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:dh.color.neutral00,borderColor:dh.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},xg=P({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},vg),_g=P({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:dh.color.axisMinorSplitLine,width:1}}},vg);const bg={category:xg,value:_g,time:P({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},_g),log:O({logBase:10},_g)};var wg=0,Sg=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++wg,this._onCollect=t.onCollect}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&B(r,Cg);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!X(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var r=this._getOrCreateMap();return null==(e=r.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ft(this.categories))},t}();function Cg(t){return q(t)&&null!=t.value?t.value:t+""}const Tg=Sg;var Mg={value:1,category:1,time:1,log:1};function kg(t,e,n,r){z(Mg,function(i,o){var a=P(P({},bg[o],!0),r,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return c(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=zc(this),r=n?Fc(t):{};P(t,e.getTheme().get(o+"Axis")),P(t,this.getDefaultOption()),t.type=Ig(t),n&&Bc(t,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Tg.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(t){var e=null;return e?e.updateModelAxisBreak(this,t):{breaks:[]}},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",Ig)}function Ig(t){return t.type||(t.data?"category":"value")}function Dg(t){return"interval"===t.type||"log"===t.type}function Rg(t){var e=Math.pow(10,jo(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Eo(n*e)}function Pg(t){return zo(t)+2}function Ag(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Og(t,e){return t>=e[0]&&t<=e[1]}var Lg=function(){function t(){this.normalize=Ng,this.scale=Eg}return t.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=W(t.normalize,t),this.scale=W(t.scale,t)):(this.normalize=Ng,this.scale=Eg)},t}();function Ng(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Eg(t,e){return t*(e[1]-e[0])+e[0]}function zg(t,e,n){var r=Math.log(t);return[Math.log(n?e[0]:Math.max(0,e[0]))/r,Math.log(n?e[1]:Math.max(0,e[1]))/r]}var Bg=function(){function t(t){this._calculator=new Lg,this._setting=t||{},this._extent=[1/0,-1/0];var e=null;e&&(this._brkCtx=e.createScaleBreakContext(),this._brkCtx.update(this._extent))}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]<e[0]?t[0]:e[0],t[1]>e[1]?t[1]:e[1])},t.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},t.prototype._innerSetExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(t){var e=null;e&&this._innerSetBreak(e.parseAxisBreakOption(t,W(this.parse,this)))},t.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Pt(Bg);const Fg=Bg;var Vg=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new Tg({})),G(r)&&(r=new Tg({categories:B(r,function(t){return q(t)?t.value:t})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return c(e,t),e.prototype.parse=function(t){return null==t?NaN:X(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Og(t,this._extent)&&t>=0&&t<this._ordinalMeta.categories.length},e.prototype.normalize=function(t){return t=this._getTickNumber(t),this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(this._calculator.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i<a;++i){var s=e[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Fg);Fg.registerClass(Vg);const Hg=Vg;var Wg=Eo,jg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return c(e,t),e.prototype.parse=function(t){return null==t||""===t?NaN:Number(t)},e.prototype.contain=function(t){return Og(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Pg(t)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=null,a=[];if(!e)return a;if("only_break"===t.breakTicks&&o)return o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent),a;n[0]<r[0]&&(t.expandToNicedExtent?a.push({value:Wg(r[0]-e,i)}):a.push({value:n[0]}));for(var s=function(t,n){return Math.round((n-t)/e)},l=r[0];l<=r[1];){if(a.push({value:l}),l=Wg(l+e,i),this._brkCtx){var u=this._brkCtx.calcNiceTickMultiple(l,s);u>=0&&(l=Wg(l+u*e,i))}if(a.length>0&&l===a[a.length-1].value)break;if(a.length>1e4)return[]}var c=a.length?a[a.length-1].value:r[1];return n[1]>c&&(t.expandToNicedExtent?a.push({value:Wg(c+e,i)}):a.push({value:n[1]})),o&&o.pruneTicksByBreak(t.pruneByBreak,a,this._brkCtx.breaks,function(t){return t.value},this._interval,this._extent),"none"!==t.breakTicks&&o&&o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent),a},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks({expandToNicedExtent:!0}),n=[],r=this.getExtent(),i=1;i<e.length;i++){var o=e[i],a=e[i-1];if(!a.break&&!o.break){for(var s=0,l=[],u=(o.value-a.value)/t,c=Pg(u);s<t-1;){var h=Wg(a.value+(s+1)*u,c);h>r[0]&&h<r[1]&&l.push(h),s++}var d=Gu();d&&d.pruneTicksByBreak("auto",l,this._getNonTransBreaks(),function(t){return t},this._interval,r),n.push(l)}}return n},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=zo(t.value)||0:"auto"===n&&(n=this._intervalPrecision),_c(Wg(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var r=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(isFinite(i)){i<0&&(i=-i,r.reverse(),this._innerSetExtent(r[0],r[1]),r=this._extent.slice());var o=function(t,e,n,r,i){var o={},a=o.interval=Go(e/n,!0);null!=r&&a<r&&(a=o.interval=r),null!=i&&a>i&&(a=o.interval=i);var s=o.intervalPrecision=Pg(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Ag(t,0,e),Ag(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(o.niceTickExtent=[Eo(Math.ceil(t[0]/a)*a,s),Eo(Math.floor(t[1]/a)*a,s)],t),o}(r,i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent.slice();if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var r=e[1]-e[0];isFinite(r)||(e[0]=0,e[1]=1),this._innerSetExtent(e[0],e[1]),e=this._extent.slice(),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval,o=this._intervalPrecision;t.fixMin||(e[0]=Wg(Math.floor(e[0]/i)*i,o)),t.fixMax||(e[1]=Wg(Math.ceil(e[1]/i)*i,o)),this._innerSetExtent(e[0],e[1])},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(Fg);Fg.registerClass(jg);const Gg=jg;function Ug(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function Xg(t){return t.dim+t.index}function Yg(t){var e=function(t){var e={};z(t,function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[i]?e[i].push(u):e[i]=[u]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort(function(t,e){return t-e});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}(t),n=[];return z(t,function(t){var r,i=t.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var a=i.dim+"_"+i.index,s=e[a],l=Math.abs(o[1]-o[0]),u=i.scale.getExtent(),c=Math.abs(u[1]-u[0]);r=s?l/c*s:l}else{var h=t.getData();r=Math.abs(o[1]-o[0])/h.count()}var d=Lo(t.get("barWidth"),r),p=Lo(t.get("barMaxWidth"),r),f=Lo(t.get("barMinWidth")||(function(t){return t.pipelineContext&&t.pipelineContext.large}(t)?.5:1),r),g=t.get("barGap"),m=t.get("barCategoryGap"),y=t.get("defaultBarGap");n.push({bandWidth:r,barWidth:d,barMaxWidth:p,barMinWidth:f,barGap:g,barCategoryGap:m,defaultBarGap:y,axisKey:Xg(i),stackId:Ug(t)})}),function(t){var e={};z(t,function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:t.defaultBarGap||0,stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)});var n={};return z(e,function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=H(r).length;o=Math.max(35-4*a,15)+"%"}var s=Lo(o,i),l=Lo(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),z(r,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width)r=t.width,e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,u-=r+l*r,c--;else{var r=h;e&&e<r&&(r=Math.min(e,u)),n&&n>r&&(r=n),r!==h&&(t.width=r,u-=r+l*r,c--)}}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,p=0;z(r,function(t,e){t.width||(t.width=h),d=t,p+=t.width*(1+l)}),d&&(p-=d.width*l);var f=-p/2;z(r,function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:f,width:t.width},f+=t.width*(1+l)})}),n}(n)}var $g=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return c(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return rc(t.value,Ku[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(ec(this._minLevelUnit))]||Ku.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC");return function(t,e,n,r,i){var o=null;if(X(n))o=n;else if(U(n)){var a={time:t.time,level:t.time.level},s=null;s&&s.makeAxisLabelFormatterParamBreak(a,t.break),o=n(t.value,e,a)}else{var l=t.time;if(l){var u=n[l.lowerTimeUnit][l.upperTimeUnit];o=u[Math.min(l.level,u.length-1)]||""}else{var c=ic(t.value,i);o=n[c][c][0]}}return rc(new Date(t.value),o,i,r)}(t,e,n,this.getSetting("locale"),r)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,n=this._extent,r=null,i=[];if(!e)return i;var o=this.getSetting("useUTC");var a=ic(n[1],o);i.push({value:n[0],time:{level:0,upperTimeUnit:a,lowerTimeUnit:a}});var s=function(t,e,n,r,i,o){var a=Ju,s=0;function l(t,e,n,i,a,l,u){for(var c=function(t,e){var n=new Date(0);n[t](1);var r=n.getTime();n[t](1+e);var i=n.getTime()-r;return function(t,e){return Math.max(0,Math.round((e-t)/i))}}(a,t),h=e,d=new Date(h);h<n&&h<=r[1]&&(u.push({value:h}),!(s++>1e4));)if(d[a](d[i]()+t),h=d.getTime(),o){var p=o.calcNiceTickMultiple(h,c);p>0&&(d[a](d[i]()+p*t),h=d.getTime())}u.push({value:h,notAdd:!0})}function u(t,i,o){var a=[],s=!i.length;if(!Zg(ec(t),r[0],r[1],n)){s&&(i=[{value:nm(r[0],t,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,h=i[u+1].value;if(c!==h){var d=void 0,p=void 0,f=void 0;switch(t){case"year":d=Math.max(1,Math.round(e/Xu/365)),p=ac(n),f=pc(n);break;case"half-year":case"quarter":case"month":d=Qg(e),p=sc(n),f=fc(n);break;case"week":case"half-week":case"day":d=Kg(e),p=lc(n),f=gc(n);break;case"half-day":case"quarter-day":case"hour":d=Jg(e),p=uc(n),f=mc(n);break;case"minute":d=tm(e,!0),p=cc(n),f=yc(n);break;case"second":d=tm(e,!1),p=hc(n),f=vc(n);break;case"millisecond":d=em(e),p=dc(n),f=xc(n)}h>=r[0]&&c<=r[1]&&l(d,c,h,p,f,0,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u<a.length;u++)o.push(a[u])}}for(var c=[],h=[],d=0,p=0,f=0;f<a.length;++f){var g=ec(a[f]);if(nc(a[f])&&(u(a[f],c[c.length-1]||[],h),g!==(a[f+1]?ec(a[f+1]):null))){if(h.length){p=d,h.sort(function(t,e){return t.value-e.value});for(var m=[],y=0;y<h.length;++y){var v=h[y].value;0!==y&&h[y-1].value===v||(m.push(h[y]),v>=r[0]&&v<=r[1]&&d++)}var x=i/e;if(d>1.5*x&&p>x/1.5)break;if(c.push(m),d>x||t===a[f])break}h=[]}}var _=V(B(c,function(t){return V(t,function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd})}),function(t){return t.length>0}),b=[],w=_.length-1;for(f=0;f<_.length;++f)for(var S=_[f],C=0;C<S.length;++C){var T=ic(S[C].value,n);b.push({value:S[C].value,time:{level:w-f,upperTimeUnit:T,lowerTimeUnit:T}})}b.sort(function(t,e){return t.value-e.value});var M=[];for(f=0;f<b.length;++f)0!==f&&b[f].value===b[f-1].value||M.push(b[f]);return M}(this._minLevelUnit,this._approxInterval,o,n,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(s);var l=ic(n[1],o);i.push({value:n[1],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}});this.getSetting("useUTC");var u=Qu.length-1,c=0;return z(i,function(t){u=Math.min(u,L(Qu,t.time.upperTimeUnit)),c=Math.max(c,t.time.level)}),i},e.prototype.calcNiceExtent=function(t){var e=this.getExtent();if(e[0]===e[1]&&(e[0]-=Xu,e[1]+=Xu),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-Xu}this._innerSetExtent(e[0],e[1]),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var r=this._getExtentSpanWithBreaks();this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var i=qg.length,o=Math.min(function(t,e,n,r){for(;n<r;){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n}(qg,this._approxInterval,0,i),i-1);this._interval=qg[o][1],this._intervalPrecision=Pg(this._interval),this._minLevelUnit=qg[Math.max(o-1,0)][0]},e.prototype.parse=function(t){return $(t)?t:+Wo(t)},e.prototype.contain=function(t){return Og(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.type="time",e}(Gg),qg=[["second",1e3],["minute",6e4],["hour",Uu],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",Yu/2],["year",Yu]];function Zg(t,e,n,r){return oc(new Date(e),t,r).getTime()===oc(new Date(n),t,r).getTime()}function Kg(t,e){return(t/=Xu)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Qg(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function Jg(t){return(t/=Uu)>12?12:t>6?6:t>3.5?4:t>2?2:1}function tm(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function em(t){return Go(t,!0)}function nm(t,e,n){var r=Math.max(0,L(Qu,e)-1);return oc(new Date(t),Qu[r],n).getTime()}Fg.registerClass($g);const rm=$g;var im=Eo,om=Math.floor,am=Math.ceil,sm=Math.pow,lm=Math.log,um=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Gg,e}return c(e,t),e.prototype.getTicks=function(e){e=e||{};var n=this._extent.slice(),r=this._originalScale.getExtent(),i=t.prototype.getTicks.call(this,e),o=this.base,a=this._originalScale._innerGetBreaks(),s=null;return B(i,function(t){var e,i=t.value,l=null,u=sm(o,i);if(i===n[0]&&this._fixMin?l=r[0]:i===n[1]&&this._fixMax&&(l=r[1]),s){var c=s.getTicksLogTransformBreak(t,o,a,cm);e=c.vBreak,null==l&&(l=c.brkRoundingCriterion)}return null!=l&&(u=cm(u,l)),{value:u,break:e}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(e,n){this._originalScale.setExtent(e,n);var r=zg(this.base,[e,n]);t.prototype.setExtent.call(this,r[0],r[1])},e.prototype.getExtent=function(){var e=this.base,n=t.prototype.getExtent.call(this);n[0]=sm(e,n[0]),n[1]=sm(e,n[1]);var r=this._originalScale.getExtent();return this._fixMin&&(n[0]=cm(n[0],r[0])),this._fixMax&&(n[1]=cm(n[1],r[1])),n},e.prototype.unionExtentFromData=function(t,e){this._originalScale.unionExtentFromData(t,e);var n=zg(this.base,t.getApproximateExtent(e),!0);this._innerUnionExtent(n)},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(isFinite(n)&&!(n<=0)){var r,i=(r=n,Math.pow(10,jo(r)));for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[im(am(e[0]/i)*i),im(om(e[1]/i)*i)];this._interval=i,this._intervalPrecision=Pg(i),this._niceExtent=o}},e.prototype.calcNiceExtent=function(e){t.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},e.prototype.contain=function(e){return e=lm(e)/lm(this.base),t.prototype.contain.call(this,e)},e.prototype.normalize=function(e){return e=lm(e)/lm(this.base),t.prototype.normalize.call(this,e)},e.prototype.scale=function(e){return e=t.prototype.scale.call(this,e),sm(this.base,e)},e.prototype.setBreaksFromOption=function(t){var e=null;if(e){var n=e.logarithmicParseBreaksFromOption(t,this.base,W(this.parse,this)),r=n.parsedOriginal,i=n.parsedLogged;this._originalScale._innerSetBreak(r),this._innerSetBreak(i)}},e.type="log",e}(Gg);function cm(t,e){return im(t,zo(e))}Fg.registerClass(um);const hm=um;var dm=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);null==i&&(i=e.get("startValue",!0));var o=this._modelMinRaw=i;U(o)?this._modelMinNum=gm(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=gm(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(U(a)?this._modelMaxNum=gm(t,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=gm(t,a)),r)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=G(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[De(l[0],1),De(l[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?r?0:NaN:e-i[0]*o),null==s&&(s=t?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=tt(a)||tt(s)||t&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[fm[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[pm[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),pm={min:"_determinedMin",max:"_determinedMax"},fm={min:"_dataMin",max:"_dataMax"};function gm(t,e){return null==e?null:tt(e)?NaN:t.parse(e)}function mm(t,e){var n=t.type,r=function(t,e,n){var r=t.rawExtentInfo;return r||(r=new dm(t,e,n),t.rawExtentInfo=r,r)}(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=function(t,e){var n=[];return e.eachSeriesByType(t,function(t){(function(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type})(t)&&n.push(t)}),n}("bar",a),l=!1;if(z(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=Yg(s),c=function(t,e,n,r){var i=n.axis.getExtent(),o=Math.abs(i[1]-i[0]),a=function(t,e){if(t&&e){var n=t[Xg(e)];return n}}(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;z(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;z(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=c/(1-(s+l)/o)-c;return{min:t-=h*(s/u),max:e+=h*(l/u)}}(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function ym(t,e){var n=e,r=mm(t,n),i=r.extent,o=n.get("splitNumber");t instanceof hm&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setBreaksFromOption(Cm(n)),t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function vm(t){var e,n=t.getLabelModel().get("formatter");if("time"===t.type){var r=X(e=n)||U(e)?e:function(t){t=t||{};var e={},n=!0;return z(Qu,function(e){n&&(n=null==t[e])}),z(Qu,function(r,i){var o=t[r];e[r]={};for(var a=null,s=i;s>=0;s--){var l=Qu[s],u=q(o)&&!G(o)?o[l]:o,c=void 0;G(u)?a=(c=u.slice())[0]||"":X(u)?c=[a=u]:(null==a?a=qu[r]:$u[l].test(a)||(a=e[l][l][0]+" "+a),c=[a],n&&(c[1]="{primary|"+a+"}")),e[r][l]=c}}),e}(e);return function(e,n){return t.scale.getFormattedLabel(e,n,r)}}if(X(n))return function(e){var r=t.scale.getLabel(e);return n.replace("{value}",null!=r?r:"")};if(U(n)){if("category"===t.type)return function(e,r){return n(xm(t,e),e.value-t.scale.getExtent()[0],null)};var i=null;return function(e,r){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,e.break)),n(xm(t,e),r,o)}}return function(e){return t.scale.getLabel(e)}}function xm(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function _m(t){var e=t.get("interval");return null==e?"auto":e}function bm(t){return"category"===t.type&&0===_m(t.getLabelModel())}function wm(t){return"middle"===t||"center"===t}function Sm(t){return t.getShallow("show")}function Cm(t){t.get("breaks",!0)}var Tm=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return B(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),V(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),Mm=["x","y"];function km(t){return("interval"===t.type||"time"===t.type)&&!t.hasBreaks()}var Im=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Mm,e}return c(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(km(t)&&km(e)){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,h=i[1]-r[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=Kt([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),r=this.dataToPoint(e),i=this.getArea(),o=new ve(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return rn(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e,n){if(n=n||[],this._invTransform)return rn(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(e[0],e[1])-t,i=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-r+t,a=Math.max(n[0],n[1])-i+t;return new ve(r,i,o,a)},e}(Tm);const Dm=Im;var Rm=la(),Pm=la();function Am(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function Om(t,e){var n=B(e,function(e){return t.scale.parse(e)});return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function Lm(t,e,n){var r,i,o=Em(t),a=_m(e),s=1===n.kind;if(!s){var l=Bm(o,a);if(l)return l}U(a)?r=jm(t,a):(i="auto"===a?function(t,e){if(1===e.kind){var n=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Pm(t).autoInterval=n,!0}),n}var r=Pm(t).autoInterval;return null!=r?r:Pm(t).autoInterval=t.calculateCategoryInterval(e)}(t,n):a,r=Wm(t,i));var u={labels:r,labelCategoryInterval:i};return s?n.out.noPxChangeTryDetermine.push(function(){return Fm(o,a,u),!0}):Fm(o,a,u),u}var Nm=zm("axisTick"),Em=zm("axisLabel");function zm(t){return function(e){return Pm(e)[t]||(Pm(e)[t]={list:[]})}}function Bm(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function Fm(t,e,n){return t.list.push({key:e,value:n}),n}function Vm(t,e,n){return null==Hm(t,e,n)}function Hm(t,e,n){var r=Rm(t.model),i=t.getExtent(),o=r.lastAutoInterval,a=r.lastTickCount;if(null!=o&&null!=a&&Math.abs(o-e)<=1&&Math.abs(a-n)<=1&&o>e&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return o;r.lastTickCount=n,r.lastAutoInterval=e,r.axisExtent0=i[0],r.axisExtent1=i[1]}function Wm(t,e,n){var r=vm(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=bm(t),d=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t,time:void 0,break:void 0})}return p&&f-l!==o[1]&&g(o[1]),s}function jm(t,e,n){var r=t.scale,i=vm(t),o=[];return z(r.getTicks(),function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s,time:void 0,break:void 0})}),o}var Gm=[0,1],Um=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return function(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Ao(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(r.parse(t)),this.onBand&&"ordinal"===r.type&&Xm(n=n.slice(),r.count()),Oo(t,Gm,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&Xm(n=n.slice(),r.count());var i=Oo(t,n,Gm,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=B(function(t,e,n){var r=t.getTickModel().get("customValues");if(r){var i=t.scale.getExtent();return{ticks:V(Om(t,r),function(t){return t>=i[0]&&t<=i[1]})}}return"category"===t.type?function(t,e){var n,r,i=Nm(t),o=_m(e),a=Bm(i,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),U(o))n=jm(t,o,!0);else if("auto"===o){var s=Lm(t,t.getLabelModel(),Am(2));r=s.labelCategoryInterval,n=B(s.labels,function(t){return t.tickValue})}else n=Wm(t,r=o,!0);return Fm(i,o,{ticks:n,tickCategoryInterval:r})}(t,e):{ticks:B(t.scale.getTicks(n),function(t){return t.value})}}(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,r){var i=e.length;if(t.onBand&&!n&&i){var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],e[0].onBand=!0,o=e[1]={coord:s[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;z(e,function(t){t.coord-=u/2,t.onBand=!0});var c=t.scale.getExtent();a=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*a,tickValue:c[1]+1,onBand:!0},e.push(o)}var h=s[0]>s[1];d(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift()),r&&d(s[0],e[0].coord)&&e.unshift({coord:s[0],onBand:!0}),d(s[1],o.coord)&&(r?o.coord=s[1]:e.pop()),r&&d(o.coord,s[1])&&e.push({coord:s[1],onBand:!0})}function d(t,e){return t=Eo(t),e=Eo(e),h?t>e:t<e}}(this,n,e.get("alignWithLabel"),t.clamp),n},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),B(this.scale.getMinorTicks(t),function(t){return B(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(t){return function(t,e){var n=t.getLabelModel().get("customValues");if(n){var r=vm(t),i=t.scale.getExtent();return{labels:B(V(Om(t,n),function(t){return t>=i[0]&&t<=i[1]}),function(e){var n={value:e};return{formattedLabel:r(n),rawLabel:t.scale.getLabel(n),tickValue:e,time:void 0,break:void 0}})}}return"category"===t.type?function(t,e){var n=t.getLabelModel(),r=Lm(t,n,e);return!n.get("show")||t.scale.isBlank()?{labels:[]}:r}(t,e):function(t){var e=t.scale.getTicks(),n=vm(t);return{labels:B(e,function(e,r){return{formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value,time:e.time,break:e.break}})}}(t)}(this,t=t||Am(2)).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(t){return function(t,e){var n=e.kind,r=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),i=vm(t),o=(r.axisRotate-r.labelRotate)/180*Math.PI,a=t.scale,s=a.getExtent(),l=a.count();if(s[1]-s[0]<1)return 0;var u=1;l>40&&(u=Math.max(1,Math.floor(l/40)));for(var c=s[0],h=t.dataToCoord(c+1)-t.dataToCoord(c),d=Math.abs(h*Math.cos(o)),p=Math.abs(h*Math.sin(o)),f=0,g=0;c<=s[1];c+=u){var m,y,v=Te(i({value:c}),r.font,"center","top");m=1.3*v.width,y=1.3*v.height,f=Math.max(f,m,7),g=Math.max(g,y,7)}var x=f/d,_=g/p;isNaN(x)&&(x=1/0),isNaN(_)&&(_=1/0);var b=Math.max(0,Math.floor(Math.min(x,_)));if(1===n)return e.out.noPxChangeTryDetermine.push(W(Vm,null,t,b,l)),b;var w=Hm(t,b,l);return null!=w?w:b}(this,t=t||Am(2))},t}();function Xm(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var Ym=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return c(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Um);const $m=Ym;var qm=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function Zm(t,e,n){n=n||3,e?t.dirty|=n:t.dirty&=~n}function Km(t,e){return e=e||3,null==t.dirty||!!(t.dirty&e)}function Qm(t){if(t)return Km(t)&&function(t,e,n){var r=e.getComputedTransform();t.transform=ef(t.transform,r);var i=t.localRect=tf(t.localRect,e.getBoundingRect()),o=e.style,a=o.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,u=n&&n.marginDefault,c=o.__marginType;null==c&&u&&(a=u,c=_s.textMargin);for(var h=0;h<4;h++)Jm[h]=c===_s.minMargin&&l&&null!=l[h]?l[h]:s&&null!=s[h]?s[h]:a?a[h]:0;c===_s.textMargin&&Xp(i,Jm,!1,!1);var d=t.rect=tf(t.rect,i);r&&d.applyTransform(r),c===_s.minMargin&&Xp(d,Jm,!1,!1),t.axisAligned=Qp(r),(t.label=t.label||{}).ignore=e.ignore,Zm(t,!1),Zm(t,!0,2)}(t,t.label,t),t}var Jm=[0,0,0,0];function ty(t,e){for(var n=0;n<qm.length;n++){var r=qm[n];null==t[r]&&(t[r]=e[r])}return Qm(t)}function ey(t){var e=t.obb;return e&&!Km(t,2)||(t.obb=e=e||new lp,e.fromBoundingRect(t.localRect,t.transform),Zm(t,!1,2)),e}function ny(t,e,n,r){return!(!t||!e)&&!(t.label&&t.label.ignore||e.label&&e.label.ignore)&&!!t.rect.intersect(e.rect,n,r)&&(!(!t.axisAligned||!e.axisAligned)||ey(t).intersect(ey(e),n,r))}var ry=Math.PI,iy=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],oy=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],ay=la(),sy=la(),ly=function(){function t(t){this.recordMap={},this.resolveAxisNameOverlap=t}return t.prototype.ensureRecord=function(t){var e=t.axis.dim,n=t.componentIndex,r=this.recordMap,i=r[e]||(r[e]=[]);return i[n]||(i[n]={ready:{}})},t}(),uy=[1,0,0,1,0,0],cy=new ve(0,0,0,0),hy=function(t,e,n,r,i,o){if(wm(t.nameLocation)){var a=o.stOccupiedRect;a&&dy(function(t,e,n){return t.transform=ef(t.transform,n),t.localRect=tf(t.localRect,e),t.rect=tf(t.rect,e),n&&t.rect.applyTransform(n),t.axisAligned=Qp(n),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}({},a,o.transGroup.transform),r,i)}else py(o.labelInfoList,o.dirVec,r,i)};function dy(t,e,n){var r=new Jt;ny(t,e,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&function(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var n=t.transform;n&&(n[4]+=e.x,n[5]+=e.y);var r=t.rect;r&&(r.x+=e.x,r.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,n)}}(e,r)}function py(t,e,n,r){for(var i=Jt.dot(r,e)>=0,o=0,a=t.length;o<a;o++){var s=t[i?o:a-1-o];s.label.ignore||dy(s,n,r)}}var fy=function(){function t(t,e,n,r){this.group=new cd,this._axisModel=t,this._api=e,this._local={},this._shared=r||new ly(hy),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(t){var e=this._axisModel,n=e.getDefaultOption?e.getDefaultOption():{},r=nt(t.axisName,e.get("name")),i=e.get("nameMoveOverlap");null!=i&&"auto"!==i||(i=nt(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:nt(t.nameDirection,1),tickDirection:nt(t.tickDirection,1),labelDirection:nt(t.labelDirection,1),labelOffset:nt(t.labelOffset,0),silent:nt(t.silent,!0),axisName:r,nameLocation:rt(e.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Ty(r)&&i,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var a=new cd({x:o.position[0],y:o.position[1],rotation:o.rotation});a.updateTransform(),this._transformGroup=a;var s=this._shared.ensureRecord(e);s.transGroup=this._transformGroup,s.dirVec=new Jt(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(t,e){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),z(gy,function(r){t[r]&&my[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,e||{})}),this},t.innerTextLayout=function(t,e,n){var r,i,o=Fo(e-t);return Vo(o)?(i=n>0?"top":"bottom",r="center"):Vo(o-ry)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<ry?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),gy=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],my={axisLine:function(t,e,n,r,i,o,a){var s=r.get(["axisLine","show"]);if("auto"===s&&(s=!0,null!=t.raw.axisLineAutoShow&&(s=!!t.raw.axisLineAutoShow)),s){var l=r.axis.getExtent(),u=o.transform,c=[l[0],0],h=[l[1],0],d=c[0]>h[0];u&&(rn(c,c,u),rn(h,h,u));var p=A({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),f={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get(["axisLine","breakLine"])&&r.axis.scale.hasBreaks())null.buildAxisBreakLine(r,i,o,f);else{var g=new Wh(A({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]}},f));Ap(g.shape,g.style.lineWidth),g.anid="line",i.add(g)}var m=r.get(["axisLine","symbol"]);if(null!=m){var y=r.get(["axisLine","symbolSize"]);X(m)&&(m=[m,m]),(X(y)||$(y))&&(y=[y,y]);var v=mf(r.get(["axisLine","symbolOffset"])||0,y),x=y[0],_=y[1];z([{rotate:t.rotation+Math.PI/2,offset:v[0],r:0},{rotate:t.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],function(e,n){if("none"!==m[n]&&null!=m[n]){var r=gf(m[n],-x/2,-_/2,x,_,p.stroke,!0),o=e.r+e.offset,a=d?h:c;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(t,e,n,r,i,o,a,s){_y(e,i,s)&&yy(t,e,n,r,i,o,a,1)},axisTickLabelDetermine:function(t,e,n,r,i,o,a,s){_y(e,i,s)&&yy(t,e,n,r,i,o,a,2);var l=function(t,e,n,r){var i=r.axis,o=r.getModel("axisTick"),a=o.get("show");if("auto"===a&&(a=!0,null!=t.raw.axisTickAutoShow&&(a=!!t.raw.axisTickAutoShow)),!a||i.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=t.tickDirection*o.get("length"),u=xy(i.getTicksCoords(),n.transform,l,O(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)e.add(u[c]);return u}(t,i,o,r);!function(t,e,n){t.showMinorTicks||z(e,function(t){if(t&&t.label.ignore)for(var e=0;e<n.length;e++){var r=n[e],i=sy(r),o=ay(t.label);if(null!=i.tickValue&&!i.onBand&&i.tickValue===o.tickValue)return void vy(r)}})}(t,e.labelLayoutList,l),function(t,e,n,r,i){var o=r.axis,a=r.getModel("minorTick");if(t.showMinorTicks&&!o.scale.isBlank()){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),u=i*a.get("length"),c=O(l.getLineStyle(),O(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var d=xy(s[h],n.transform,u,c,"minorticks_"+h),p=0;p<d.length;p++)e.add(d[p])}}(t,i,o,r,t.tickDirection)},axisName:function(t,e,n,r,i,o,a,s){var l=n.ensureRecord(r);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(Ty(u)){var c=t.nameLocation,h=t.nameDirection,d=r.getModel("nameTextStyle"),p=r.get("nameGap")||0,f=r.axis.getExtent(),g=r.axis.inverse?-1:1,m=new Jt(0,0),y=new Jt(0,0);"start"===c?(m.x=f[0]-g*p,y.x=-g):"end"===c?(m.x=f[1]+g*p,y.x=g):(m.x=(f[0]+f[1])/2,m.y=t.labelOffset+h*p,y.y=h);var v=[1,0,0,1,0,0];y.transform(Zt(v,v,t.rotation));var x,_,b=r.get("nameRotate");null!=b&&(b=b*ry/180),wm(c)?x=fy.innerTextLayout(t.rotation,null!=b?b:t.rotation,h):(x=function(t,e,n,r){var i,o,a=Fo(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;return Vo(a-ry/2)?(o=l?"bottom":"top",i="center"):Vo(a-1.5*ry)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*ry&&a>ry/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}(t.rotation,c,b||0,f),null!=(_=t.raw.axisNameAvailableWidth)&&(_=Math.abs(_/Math.sin(x.rotation)),!isFinite(_)&&(_=null)));var w=d.getFont(),S=r.get("nameTruncate",!0)||{},C=S.ellipsis,T=et(t.raw.nameTruncateMaxWidth,S.maxWidth,_),M=s.nameMarginLevel||0,k=new Do({x:m.x,y:m.y,rotation:x.rotation,silent:fy.isLabelSilent(r),style:ps(d,{text:u,font:w,overflow:"truncate",width:T,ellipsis:C,fill:d.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:d.get("align")||x.textAlign,verticalAlign:d.get("verticalAlign")||x.textVerticalAlign}),z2:1});if(qp({el:k,componentModel:r,itemName:u}),k.__fullText=u,k.anid="name",r.get("triggerEvent")){var I=fy.makeAxisEventDataBase(r);I.targetType="axisName",I.name=u,ga(k).eventData=I}o.add(k),k.updateTransform(),e.nameEl=k;var D=l.nameLayout=Qm({label:k,priority:k.z2,defaultAttr:{ignore:k.ignore},marginDefault:wm(c)?iy[M]:oy[M]});if(l.nameLocation=c,i.add(k),k.decomposeTransform(),t.shouldNameMoveOverlap&&D){var R=n.ensureRecord(r);n.resolveAxisNameOverlap(t,n,r,D,y,R)}}}};function yy(t,e,n,r,i,o,a,s){by(e)||function(t,e,n,r,i,o){var a=i.axis,s=et(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new cd;n.add(l);var u=Am(r);if(s&&!a.scale.isBlank()){var c=i.getModel("axisLabel"),h=a.getViewLabels(u),d=(et(t.raw.labelRotate,c.get("rotate"))||0)*ry/180,p=fy.innerTextLayout(t.rotation,d,t.labelDirection),f=i.getCategories&&i.getCategories(!0),g=[],m=i.get("triggerEvent"),y=1/0,v=-1/0;z(h,function(t,e){var n,r="ordinal"===a.scale.type?a.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,s=t.formattedLabel,u=t.rawLabel,d=c;if(f&&f[r]){var x=f[r];q(x)&&x.textStyle&&(d=new Ls(x.textStyle,c,i.ecModel))}var _=d.getTextColor()||i.get(["axisLine","lineStyle","color"]),b=d.getShallow("align",!0)||p.textAlign,w=nt(d.getShallow("alignMinLabel",!0),b),S=nt(d.getShallow("alignMaxLabel",!0),b),C=d.getShallow("verticalAlign",!0)||d.getShallow("baseline",!0)||p.textVerticalAlign,T=nt(d.getShallow("verticalAlignMinLabel",!0),C),M=nt(d.getShallow("verticalAlignMaxLabel",!0),C),k=10+((null===(n=t.time)||void 0===n?void 0:n.level)||0);y=Math.min(y,k),v=Math.max(v,k);var I=new Do({x:0,y:0,rotation:0,silent:fy.isLabelSilent(i),z2:k,style:ps(d,{text:s,align:0===e?w:e===h.length-1?S:b,verticalAlign:0===e?T:e===h.length-1?M:C,fill:U(_)?_("category"===a.type?u:"value"===a.type?r+"":r,e):_})});I.anid="label_"+r;var D=ay(I);if(D.break=t.break,D.tickValue=r,D.layoutRotation=p.rotation,qp({el:I,componentModel:i,itemName:s,formatterParamsExtra:{isTruncated:function(){return I.isTruncated},value:u,tickIndex:e}}),m){var R=fy.makeAxisEventDataBase(i);R.targetType="axisLabel",R.value=u,R.tickIndex=e,t.break&&(R.break={start:t.break.parsedBreak.vmin,end:t.break.parsedBreak.vmax}),"category"===a.type&&(R.dataIndex=r),ga(I).eventData=R,t.break&&function(t,e,n,r){n.on("click",function(n){var i={type:"expandAxisBreak",breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(i)})}(i,o,I,t.break)}g.push(I),l.add(I)}),wy(e,B(g,function(t){return{label:t,priority:ay(t).break?t.z2+(v-y+1):t.z2,defaultAttr:{ignore:t.ignore}}}),l,u)}else wy(e,[],l,u)}(t,e,i,s,r,a);var l=e.labelLayoutList;!function(t,e,n,r){var i=e.get(["axisLabel","margin"]);z(n,function(n,o){var a=Qm(n);if(a){var s=a.label,l=ay(s);a.suggestIgnore=s.ignore,s.ignore=!1,gn(Sy,Cy),Sy.x=e.axis.dataToCoord(l.tickValue),Sy.y=t.labelOffset+t.labelDirection*i,Sy.rotation=l.layoutRotation,r.add(Sy),Sy.updateTransform(),r.remove(Sy),Sy.decomposeTransform(),gn(s,Sy),s.markRedraw(),Zm(a,!0),Qm(a)}})}(t,r,l,o),function(t,e,n){var r=null;if(r){var i=r.retrieveAxisBreakPairs(n,function(t){return t&&ay(t.label).break},!0),o=t.get(["breakLabelLayout","moveOverlap"],!0);!0!==o&&"auto"!==o||z(i,function(r){null.adjustBreakLabelPair(t.axis.inverse,e,[Qm(n[r[0]]),Qm(n[r[1]])])})}}(r,t.rotation,l);var u=t.optionHideOverlap;!function(t,e,n){if(!bm(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]),o=e.length;a(r,0,1),a(i,o-1,o-2)}function a(t,r,i){var o=Qm(e[r]),a=Qm(e[i]);if(o&&a)if(!1===t||o.suggestIgnore)vy(o.label);else if(a.suggestIgnore)vy(a.label);else{if(!n){var s=[0,0,0,0];o=ty({marginForce:s},o),a=ty({marginForce:s},a)}ny(o,a,null,{touchThreshold:.1})&&vy(t?a.label:o.label)}}}(r,l,u),u&&function(t){var e=[];function n(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}t.sort(function(t,e){return(e.suggestIgnore?1:0)-(t.suggestIgnore?1:0)||e.priority-t.priority});for(var r=0;r<t.length;r++){var i=Qm(t[r]);if(!i.label.ignore){for(var o=i.label,a=i.labelLine,s=!1,l=0;l<e.length;l++)if(ny(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):e.push(i)}}}(V(l,function(t){return t&&!t.label.ignore})),function(t,e,n,r){var i,o=n.axis,a=e.ensureRecord(n),s=[],l=Ty(t.axisName)&&wm(t.nameLocation);z(r,function(t){var e=Qm(t);if(e&&!e.label.ignore){s.push(e);var n=a.transGroup;l&&(n.transform?Kt(uy,n.transform):Xt(uy),e.transform&&$t(uy,uy,e.transform),ve.copy(cy,e.localRect),cy.applyTransform(uy),i?i.union(cy):ve.copy(i=new ve(0,0,0,0),cy))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",c=a.transGroup[u];if(s.sort(function(t,e){return Math.abs(t.label[u]-c)-Math.abs(e.label[u]-c)}),l&&i){var h=o.getExtent(),d=Math.min(h[0],h[1]),p=Math.max(h[0],h[1])-d;i.union(new ve(d,0,p,1))}a.stOccupiedRect=i,a.labelInfoList=s}(t,n,r,l)}function vy(t){t&&(t.ignore=!0)}function xy(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(rn(a,a,e),rn(s,s,e));var c=new Wh({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Ap(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,o.push(c);var h=sy(c);h.onBand=!!t[l].onBand,h.tickValue=t[l].tickValue}return o}function _y(t,e,n){if(by(t)){var r=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,o=0;o<r.length;o++)i=i&&r[o]();if(i)return!1}r.length&&(e.remove(t.labelGroup),wy(t,null,null,null))}return!0}function by(t){return!!t.labelLayoutList}function wy(t,e,n,r){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=r}var Sy=new fo,Cy=new fo;function Ty(t){return!!t}const My=fy;function ky(t,e,n){n=n||{};var r=e.axis,i={},o=r.getAxesOnZeroOf()[0],a=r.position,s=o?"onZero":a,l=r.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,d="x"===l?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=["y"===l?d[c[s]]:u[0],"x"===l?d[c[s]]:u[3]],i.rotation=Math.PI/2*("x"===l?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],i.labelOffset=o?d[c[a]]-d[c.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),et(n.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var f=e.get(["axisLabel","rotate"]);return i.labelRotate="top"===s?-f:f,i.z2=1,i}function Iy(t){var e={xAxisModel:null,yAxisModel:null};return z(e,function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,da).models[0];e[r]=o}),e}var Dy=[[3,1],[0,2]],Ry=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Mm,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function r(t){var e,n=H(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;Dg(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(ym(l,s),Dg(l)&&(e=a))}i.length&&(e||ym((e=i.pop()).scale,e.model),z(i,function(t){!function(t,e,n){var r=Gg.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,{expandToNicedExtent:!0}),a=i.length-1,s=r.getInterval.call(n),l=mm(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;"log"===t.type&&(u=zg(t.base,u,!0)),t.setBreaksFromOption(Cm(e)),t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=r.getExtent.call(t);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var p=r.getInterval.call(t),f=u[0],g=u[1];if(c&&h)p=(g-f)/a;else if(c)for(g=u[0]+p*a;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=Rg(p),g=u[0]+p*a;else if(h)for(f=u[1]-p*a;f>u[0]&&isFinite(f)&&isFinite(u[0]);)p=Rg(p),f=u[1]-p*a;else{t.getTicks().length-1>a&&(p=Rg(p));var m=p*a;(f=Eo((g=Math.ceil(u[1]/p)*p)-m))<0&&u[0]>=0?(f=0,g=Eo(m)):g>0&&u[1]<=0&&(g=0,f=-Eo(m))}var y=(i[0].value-o[0].value)/s,v=(i[a].value-o[a].value)/s;r.setExtent.call(t,f+p*y,g+p*v),r.setInterval.call(t,p),(y||v)&&r.setNiceExtent.call(t,f+p,g-p)}(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};z(n.x,function(t){Ay(n,"y",t,i)}),z(n.y,function(t){Ay(n,"x",t,i)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=Ec(t,e),i=this._rect=Oc(t.getBoxLayoutParams(),r.refContainer),o=this._axesMap,a=this._coordsList,s=t.get("containLabel");if(Ly(o,i),!n){var l=function(t,e,n,r,i){var o=new ly(By);return z(n,function(n){return z(n,function(n){if(Sm(n.model)){var a=!r;n.axisBuilder=function(t,e,n,r,i,o){for(var a=ky(t,n),s=!1,l=!1,u=0;u<e.length;u++)Dg(e[u].getOtherAxis(n.axis).scale)&&(s=l=!0,"category"===n.axis.type&&n.axis.onBand&&(l=!1));return a.axisLineAutoShow=s,a.axisTickAutoShow=l,a.defaultNameMoveOverlap=o,new My(n,r,a,i)}(t,e,n.model,i,o,a)}})}),o}(i,a,o,s,e),u=void 0;if(s)u=Ey(i.clone(),"axisLabel",null,i,o,l,r);else{var c=function(t,e,n){var r,i=t.get("outerBoundsMode",!0);"same"===i?r=e.clone():null!=i&&"auto"!==i||(r=Oc(t.get("outerBounds",!0)||pg,n.refContainer));var o=t.get("outerBoundsContain",!0);return{outerBoundsRect:r,parsedOuterBoundsContain:null==o||"auto"===o||L(["all","axisLabel"],o)<0?"all":o,outerBoundsClamp:[No(nt(t.get("outerBoundsClampWidth",!0),fg[0]),e.width),No(nt(t.get("outerBoundsClampHeight",!0),fg[1]),e.height)]}}(t,i,r),h=c.outerBoundsRect,d=c.parsedOuterBoundsContain,p=c.outerBoundsClamp;h&&(u=Ey(h,d,p,i,o,l,r))}zy(i,o,2,null,u,r)}z(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}q(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===t||i[r].getAxis("y").index===e)return i[r]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents("xAxis",da).models[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis",da).models[0],a=t.gridModel,s=this._coordsList;return r?L(s,e=r.coordinateSystem)<0&&(e=null):i&&o?e=this.getCartesian(i.componentIndex,o.componentIndex):i?n=this.getAxis("x",i.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,r){if(Py(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new $m(e,function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Hg({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new rm({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Fg.getClass(e)||Gg)}}(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[e][r]=u,s[e]++}}}this._axesMap=a,z(a.x,function(e,n){z(a.y,function(i,o){var a="x"+n+"y"+o,s=new Dm(a);s.master=r,s.model=t,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(e),s.addAxis(i)})})},t.prototype._updateScale=function(t,e){function n(t,e){z(function(t,e){var n={};return z(t.mapDimensionsAll(e),function(e){n[function(t,e){return Su(t,e)?t.getCalculationInfo("stackResultDimension"):e}(t,e)]=!0}),H(n)}(t,e.dim),function(n){e.scale.unionExtentFromData(t,n)})}z(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if(function(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}(t)){var r=Iy(t),i=r.xAxisModel,o=r.yAxisModel;if(!Py(i,e)||!Py(o,e))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}},this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return z(this.getCartesians(),function(r){var i=null!=t&&"auto"!==t?r.getAxis(t):r.getBaseAxis(),o=r.getOtherAxis(i);L(e,i)<0&&e.push(i),L(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var r=[];return e.eachComponent("grid",function(i,o){var a=new t(i,e,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)}),e.eachSeries(function(t){!function(t){var e=t.targetModel,n=t.coordSysType,r=t.coordSysProvider,i=t.isDefaultDataCoordSys,o=function(t){var e=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),r=0;if(e){var i="series"===t.mainType;null==n&&(n=i?"data":"box"),"data"===n?(r=1,i||(r=0)):"box"===n&&(r=2,i||function(t){return!!gu[t]}(e)||(r=0))}return{coordSysType:e,kind:r}}(e),a=o.kind,s=o.coordSysType;if(i&&1!==a&&(a=1,s=n),0===a||s!==n)return!1;var l=r(n,e);l&&(1===a?e.coordinateSystem=l:e.boxCoordinateSystem=l)}({targetModel:t,coordSysType:"cartesian2d",coordSysProvider:function(){var e=Iy(t),n=e.xAxisModel,r=e.yAxisModel;return n.getCoordSysModel().coordinateSystem.getCartesian(n.componentIndex,r.componentIndex)}})}),r},t.dimensions=Mm,t}();function Py(t,e){return t.getCoordSysModel()===e}function Ay(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)Oy(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&Oy(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(t){return t.dim+"_"+t.index}}function Oy(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}(t)}function Ly(t,e){z(t.x,function(t){return Ny(t,e.x,e.width)}),z(t.y,function(t){return Ny(t,e.y,e.height)})}function Ny(t,e,n){var r=[0,n],i=t.inverse?1:0;t.setExtent(r[i],r[1-i]),function(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}(t,e)}function Ey(t,e,n,r,i,o,a){zy(r,i,1,e,!1,a);var s=[0,0,0,0];u(0),u(1),c(r,0,NaN),c(r,1,NaN);var l=null==function(t,e){if(t&&e)for(var n=0,r=t.length;n<r;n++)if(e.call(undefined,t[n],n,t))return t[n]}(s,function(t){return t>0});return Xp(r,s,!0,!0,n),Ly(i,r),l;function u(t){z(i[_p[t]],function(e){if(Sm(e.model)){var n=o.ensureRecord(e.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var a=r[i],s=e.scale.normalize(ay(a.label).tickValue);s=1===t?1-s:s,c(a.rect,t,s),c(a.rect,1-t,NaN)}var l=n.nameLayout;l&&(s=wm(n.nameLocation)?.5:NaN,c(l.rect,t,s),c(l.rect,1-t,NaN))}})}function c(e,n,r){var i=t[_p[n]]-e[_p[n]],o=e[bp[n]]+e[_p[n]]-(t[bp[n]]+t[_p[n]]);i=h(i,1-r),o=h(o,r);var a=Dy[n][0],l=Dy[n][1];s[a]=Po(s[a],i),s[l]=Po(s[l],o)}function h(t,e){return t>0&&!tt(e)&&e>1e-4&&(t/=e),t}}function zy(t,e,n,r,i,o){var a=2===n;z(e,function(e){return z(e,function(e){Sm(e.model)&&(function(t,e,n){var r=ky(e,n);t.updateCfg(r)}(e.axisBuilder,t,e.model),e.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};function l(e){s[_p[1-e]]=t[bp[e]]<=.5*o.refContainer[bp[e]]?0:1-e==1?2:1}l(0),l(1),z(e,function(t,e){return z(t,function(t){Sm(t.model)&&(("all"===r||a)&&t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),a&&t.axisBuilder.build({axisLine:!0}))})})}var By=function(t,e,n,r,i,o){var a="x"===n.axis.dim?"y":"x";hy(t,0,0,r,i,o),wm(t.nameLocation)||z(e.recordMap[a],function(t){t&&t.labelInfoList&&t.dirVec&&py(t.labelInfoList,t.dirVec,r,i)})};const Fy=Ry;function Vy(t,e){return"all"===t||G(t)&&L(t,e)>=0||t===e}function Hy(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[jy(t)]}function Wy(t){return!!t.get(["handle","show"])}function jy(t){return t.type+"||"+t.id}var Gy={};const Uy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return c(e,t),e.prototype.render=function(e,n,r,i){this.axisPointerClass&&function(t){var e=Hy(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=Wy(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},e.prototype.updateAxisPointer=function(t,e,n,r){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,r){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=function(t){var e=Hy(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,r):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){Gy[t]=e},e.getAxisPointerClass=function(t){return t&&Gy[t]},e.type="axis",e}(cg);var Xy=la(),Yy=["splitArea","splitLine","minorSplitLine","breakArea"],$y=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return c(e,t),e.prototype.render=function(e,n,r,i){this.group.removeAll();var o=this._axisGroup;this._axisGroup=new cd,this.group.add(this._axisGroup),Sm(e)&&(this._axisGroup.add(e.axis.axisBuilder.group),z(Yy,function(t){e.get([t,"show"])&&qy[t](this,this._axisGroup,e,e.getCoordSysModel(),r)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Fp(o,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i))},e.prototype.remove=function(){Xy(this).splitAreaColors=null},e.type="cartesianAxis",e}(Uy),qy={splitLine:function(t,e,n,r,i){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=!1!==a.get("showMinLine"),c=!1!==a.get("showMaxLine");l=G(l)?l:[l];for(var h=r.coordinateSystem.getRect(),d=o.isHorizontal(),p=0,f=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],m=[],y=s.getLineStyle(),v=0;v<f.length;v++){var x=o.toGlobalCoord(f[v].coord);if((0!==v||u)&&(v!==f.length-1||c)){var _=f[v].tickValue;d?(g[0]=x,g[1]=h.y,m[0]=x,m[1]=h.y+h.height):(g[0]=h.x,g[1]=x,m[0]=h.x+h.width,m[1]=x);var b=p++%l.length,w=new Wh({anid:null!=_?"line_"+_:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},style:O({stroke:l[b]},y),silent:!0});Ap(w.shape,y.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,n,r,i){var o=n.axis,a=n.getModel("minorSplitLine").getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var c=[],h=[],d=a.getLineStyle(),p=0;p<u.length;p++)for(var f=0;f<u[p].length;f++){var g=o.toGlobalCoord(u[p][f].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g);var m=new Wh({anid:"minor_line_"+u[p][f].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d,silent:!0});Ap(m.shape,d.lineWidth),e.add(m)}},splitArea:function(t,e,n,r,i){!function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,h=Xy(t).splitAreaColors,d=ft(),p=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(null!=g){p=(g+(c-1)*f)%c;break}}var m=i.toGlobalCoord(u[0].coord),y=a.getAreaStyle();for(s=G(s)?s:[s],f=1;f<u.length;f++){var v=i.toGlobalCoord(u[f].coord),x=void 0,_=void 0,b=void 0,w=void 0;i.isHorizontal()?(x=m,_=l.y,b=v-x,w=l.height,m=x+b):(x=l.x,_=m,b=l.width,m=_+(w=v-_));var S=u[f-1].tickValue;null!=S&&d.set(S,p),e.add(new fo({anid:null!=S?"area_"+S:null,shape:{x,y:_,width:b,height:w},style:O({fill:s[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%c}Xy(t).splitAreaColors=d}}}(t,e,n,r)},breakArea:function(t,e,n,r,i){var o=null,a=n.axis.scale;o&&"ordinal"!==a.type&&o.rectCoordBuildBreakAxis(e,t,n,r.coordinateSystem.getRect(),i)}},Zy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return c(e,t),e.type="xAxis",e}($y),Ky=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=Zy.type,e}return c(e,t),e.type="yAxis",e}($y),Qy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return c(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new fo({shape:t.coordinateSystem.getRect(),style:O({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(cg),Jy={offset:0};function tv(t){t.registerComponentView(Qy),t.registerComponentModel(gg),t.registerCoordinateSystem("cartesian2d",Fy),kg(t,"x",yg,Jy),kg(t,"y",yg,Jy),t.registerComponentView(Zy),t.registerComponentView(Ky),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var ev=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,nv=[],rv=wt.browser.firefox&&+wt.browser.version.split(".")[0]<39;function iv(t,e,n,r){return n=n||{},r?ov(t,e,n):rv&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):ov(t,e,n),n}function ov(t,e,n){if(wt.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(Ou(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(Au(nv,t,r,i))return n.zrX=nv[0],void(n.zrY=nv[1])}n.zrX=n.zrY=0}function av(t){return t||window.event}function sv(t,e,n){if(null!=(e=av(e)).zrX)return e;var r=e.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];i&&iv(t,i,e,n)}else{iv(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;return null==n||null==r?e:3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&ev.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function lv(t,e,n,r){t.removeEventListener(e,n,r)}var uv=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},cv="\0__throttleOriginMethod",hv="\0__throttleRate",dv="\0__throttleType";function pv(t,e,n){var r,i,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];r=(new Date).getTime(),o=this,a=t;var p=s||e,f=s||n;s=null,i=r-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(h,p):i>=0?h():c=setTimeout(h,-i),l=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function fv(t,e,n,r){var i=t[e];if(i){var o=i[cv]||i,a=i[dv];if(i[hv]!==n||a!==r){if(null==n||!r)return t[e]=o;(i=t[e]=pv(o,n,"debounce"===r))[cv]=o,i[dv]=r,i[hv]=n}return i}}function gv(t,e){var n=t[e];n&&n[cv]&&(n.clear&&n.clear(),t[e]=n[cv])}var mv=la(),yv=R,vv=W,xv=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,r){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=j(_v,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new cd,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);Cv(a,e,!0),this._renderHandle(i)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),r=t.axis,i="category"===r.type,o=e.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=Hy(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=mv(t).pointerEl=new s[i.type](yv(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=mv(t).labelEl=new Do(yv(e.label));t.add(i),wv(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=mv(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=mv(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),wv(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=Wp(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){uv(t.event)},onmousedown:vv(this._onHandleDragMove,this,0,0),drift:vv(this._onHandleDragMove,this),ondragend:vv(this._onHandleDragEnd,this)}),r.add(i)),Cv(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");G(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,fv(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){_v(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Sv(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(Sv(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(Sv(r)),mv(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),gv(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function _v(t,e,n,r){bv(mv(n).lastProp,r)||(mv(n).lastProp=r,e?pp(n,r,t):(n.stopAnimation(),n.attr(r)))}function bv(t,e){if(q(t)&&q(e)){var n=!0;return z(e,function(e,r){n=n&&bv(t[r],e)}),!!n}return t===e}function wv(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Sv(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Cv(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)})}function Tv(t,e,n,r,i){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:xm(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};z(r,function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&s.seriesData.push(i)}),X(a)?o=a.replace("{value}",o):U(a)&&(o=a(s))}return o}function Mv(t,e,n){var r=[1,0,0,1,0,0];return Zt(r,r,n.rotation),qt(r,r,n.position),Ep([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}var kv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=Iv(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=function(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle()).fill=null:"shadow"===n&&((e=r.getAreaStyle()).stroke=null),e}(r),h=Dv[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}!function(t,e,n,r,i,o){var a=My.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),function(t,e,n,r,i){var o=Tv(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=wc(a.get("padding")||0),l=a.getFont(),u=Te(o,l),c=i.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],p=i.align;"right"===p&&(c[0]-=h),"center"===p&&(c[0]-=h/2);var f=i.verticalAlign;"bottom"===f&&(c[1]-=d),"middle"===f&&(c[1]-=d/2),function(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,d,r);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:ps(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}(e,r,i,o,{position:Mv(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}(e,t,ky(a.getRect(),n),n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=ky(e.axis.grid.getRect(),e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=Mv(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=Iv(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];return h[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(xv);function Iv(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var Dv={line:function(t,e,n){var r,i,o;return{type:"Line",subPixelOptimize:!0,shape:(r=[e,n[0]],i=[e,n[1]],o=Rv(t),{x1:r[o=o||0],y1:r[1-o],x2:i[o],y2:i[1-o]})}},shadow:function(t,e,n){var r,i,o,a=Math.max(1,t.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(r=[e-a/2,n[0]],i=[a,s],o=Rv(t),{x:r[o=o||0],y:r[1-o],width:i[o],height:i[1-o]})}}};function Rv(t){return"x"===t.dim?0:1}const Pv=kv,Av=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return c(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:dh.color.border,width:1,type:"dashed"},shadowStyle:{color:dh.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:dh.color.neutral00,padding:[5,7,5,7],backgroundColor:dh.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:dh.color.accent40,throttle:40}},e}(Wc);var Ov=la(),Lv=z;function Nv(t,e,n){if(!wt.node){var r=e.getZr();Ov(r).records||(Ov(r).records={}),function(t,e){function n(n,r){t.on(n,function(n){var i=function(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}(e);Lv(Ov(t).records,function(t){t&&r(t,n,i.dispatchAction)}),function(t,e){var n,r=t.showTip.length,i=t.hideTip.length;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(i.pendings,e)})}Ov(t).initialized||(Ov(t).initialized=!0,n("click",j(zv,"click")),n("mousemove",j(zv,"mousemove")),n("globalout",Ev))}(r,e),(Ov(r).records[t]||(Ov(r).records[t]={})).handler=n}}function Ev(t,e,n){t.handler("leave",null,n)}function zv(t,e,n,r){e.handler(t,n,r)}function Bv(t,e){if(!wt.node){var n=e.getZr();(Ov(n).records||{})[t]&&(Ov(n).records[t]=null)}}var Fv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return c(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";Nv("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||i.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){Bv("axisPointer",e)},e.prototype.dispose=function(t,e){Bv("axisPointer",e)},e.type="axisPointer",e}(cg);const Vv=Fv;function Hv(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=sa(o,t);if(null==a||a<0||G(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,d="x"===c||"radius"===c?1:0,p=o.mapDimension(h),f=[];f[d]=o.get(p,a),f[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(f)||[]}else r=l.dataToPoint(o.getValues(B(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var Wv=la();function jv(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||W(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){$v(i)&&(i=Hv({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=$v(i),u=o.axesInfo,c=s.axesInfo,h="leave"===r||$v(i),d={},p={},f={list:[],map:{}},g={showPointer:j(Uv,p),showTooltip:j(Xv,f)};z(s.coordSysMap,function(t,e){var n=l||t.containPoint(i);z(s.coordSysAxesInfo[e],function(t,e){var r=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&Gv(t,a,g,!1,d)}})});var m={};return z(c,function(t,e){var n=t.linkGroup;n&&!p[e]&&z(n.axesInfo,function(e,r){var i=p[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,Yv(e),Yv(t)))),m[t.key]=o}})}),z(m,function(t,e){Gv(c[e],t,g,!0,d)}),function(t,e,n){var r=n.axesInfo=[];z(e,function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})})}(p,c,d),function(t,e,n,r){if(!$v(e)&&t.list.length){var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}else r({type:"hideTip"})}(f,i,t,a),function(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=Wv(r)[i]||{},a=Wv(r)[i]={};z(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&z(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t})});var s=[],l=[];z(o,function(t,e){!a[e]&&l.push(t)}),z(a,function(t,e){!o[e]&&s.push(t)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),d}}function Gv(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return z(e.seriesModels,function(e,l){var u,c,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(!(c=e.indicesOfNearest(r,h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var p=t-u,f=Math.abs(p);f<=a&&((f<a||p>=0&&s<0)&&(a=f,s=p,i=u,o.length=0),z(c,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:i}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&A(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function Uv(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function Xv(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=jy(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Yv(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function $v(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function qv(t){Uy.registerAxisPointerClass("CartesianAxisPointer",Pv),t.registerComponentModel(Av),t.registerComponentView(Vv),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!G(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=function(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];z(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=jy(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",r);if(z(n.getAxes(),j(p,!1,null)),n.getTooltipAxes&&r&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),d=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||h)&&z(d.baseAxes,j(p,!h||"cross",c)),h&&z(d.otherAxes,j(p,"cross",!1))}}function p(r,s,c){var h=c.model.getModel("axisPointer",i),d=h.get("show");if(d&&("auto"!==d||r||Wy(h))){null==s&&(s=h.get("triggerTooltip")),h=r?function(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s={};z(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=R(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&O(l,c.textStyle)}}return t.model.getModel("axisPointer",new Ls(s,n,r))}(c,u,i,e,r,s):h;var p=h.get("snap"),f=h.get("triggerEmphasis"),g=jy(c.model),m=s||p||"category"===c.type,y=t.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:f,involveSeries:m,snap:p,useHandle:Wy(h),seriesModels:[],linkGroup:null};l[g]=y,t.seriesInvolved=t.seriesInvolved||m;var v=function(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(Vy(o[r+"AxisId"],n.id)||Vy(o[r+"AxisIndex"],n.componentIndex)||Vy(o[r+"AxisName"],n.name))return i}}(o,c);if(null!=v){var x=a[v]||(a[v]={axesInfo:{}});x.axesInfo[g]=y,x.mapper=o[v].mapper,y.linkGroup=x}}}})}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);n&&n.model&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==e.get(["axisPointer","show"],!0)&&z(t.coordSysAxesInfo[jy(n.model)],function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})})}(n,t),n}(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},jv)}var Zv=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},Kv=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.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 Zv(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new Zv(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Zv(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Zv(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Zv(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Zv(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();const Qv=Kv;var Jv=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o<a;o++){var s=r[o],l=iv(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in ex)if(ex.hasOwnProperty(e)){var n=ex[e](this._track,t);if(n)return n}},t}();function tx(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var ex={pinch:function(t,e){var n=t.length;if(n){var r,i=(t[n-1]||{}).points,o=(t[n-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var a=tx(i)/tx(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},nx="silent";function rx(){uv(this.event)}var ix=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return Et(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Mr),ox=function(t,e){this.x=t,this.y=e},ax=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],sx=new ve(0,0,0,0),lx=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new ox(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new ix,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new Qv(a),a}return Et(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(z(ax,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=hx(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new ox(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new ox(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var r=(t=t||{}).target;if(!r||!r.silent){for(var i="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:rx}}(e,t,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)}))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new ox(t,e);if(cx(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new ve(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(sx.copy(c.getBoundingRect()),c.transform&&sx.applyTransform(c.transform),sx.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,d=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<d;f+=h)if(cx(o,i,t+p*Math.cos(f),e+p*Math.sin(f),n),i.target)return i}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Jv);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new ox;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(Mr);function ux(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||nx}return!1}function cx(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=ux(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==nx)){e.target=a;break}}}function hx(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){lx.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=hx(this,i,o);if("mouseup"===t&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||en(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});const dx=lx;function px(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;i<n&&r(t[i],t[i-1])<0;)i++;!function(t,e,n){for(n--;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}(t,e,i)}else for(;i<n&&r(t[i],t[i-1])>=0;)i++;return i-e}function fx(t,e,n,r,i){for(r===e&&r++;r<n;r++){for(var o,a=t[r],s=e,l=r;s<l;)i(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function gx(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){for(s=r-i;l<s&&o(t,e[n+i+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(t,e[n+i-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function mx(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){for(s=i+1;l<s&&o(t,e[n+i-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(t,e[n+i+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function yx(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var o=0;if(i<32)fx(t,n,r,n+(o=px(t,n,r,e)),e);else{var a=function(t,e){var n,r,i=7,o=0,a=[];function s(s){var l=n[s],u=r[s],c=n[s+1],h=r[s+1];r[s]=u+h,s===o-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),o--;var d=mx(t[c],t,l,u,0,e);l+=d,0!==(u-=d)&&0!==(h=gx(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,r,o,s){var l=0;for(l=0;l<r;l++)a[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0!==--s)if(1!==r){for(var d,p,f,g=i;;){d=0,p=0,f=!1;do{if(e(t[c],a[u])<0){if(t[h++]=t[c++],p++,d=0,0===--s){f=!0;break}}else if(t[h++]=a[u++],d++,p=0,1===--r){f=!0;break}}while((d|p)<g);if(f)break;do{if(0!==(d=mx(t[c],a,u,r,0,e))){for(l=0;l<d;l++)t[h+l]=a[u+l];if(h+=d,u+=d,(r-=d)<=1){f=!0;break}}if(t[h++]=t[c++],0===--s){f=!0;break}if(0!==(p=gx(a[u],t,c,s,0,e))){for(l=0;l<p;l++)t[h+l]=t[c+l];if(h+=p,c+=p,0===(s-=p)){f=!0;break}}if(t[h++]=a[u++],1===--r){f=!0;break}g--}while(d>=7||p>=7);if(f)break;g<0&&(g=0),g+=2}if((i=g)<1&&(i=1),1===r){for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)t[h+l]=a[u+l]}}else{for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else for(l=0;l<r;l++)t[h+l]=a[u+l]}(l,u,c,h):function(n,r,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+r-1,c=s-1,h=o+s-1,d=0,p=0;if(t[h--]=t[u--],0!==--r)if(1!==s){for(var f=i;;){var g=0,m=0,y=!1;do{if(e(a[c],t[u])<0){if(t[h--]=t[u--],g++,m=0,0===--r){y=!0;break}}else if(t[h--]=a[c--],m++,g=0,1===--s){y=!0;break}}while((g|m)<f);if(y)break;do{if(0!==(g=r-mx(a[c],t,n,r,r-1,e))){for(r-=g,p=1+(h-=g),d=1+(u-=g),l=g-1;l>=0;l--)t[p+l]=t[d+l];if(0===r){y=!0;break}}if(t[h--]=a[c--],1===--s){y=!0;break}if(0!==(m=s-gx(t[u],a,0,s,s-1,e))){for(s-=m,p=1+(h-=m),d=1+(c-=m),l=0;l<m;l++)t[p+l]=a[d+l];if(s<=1){y=!0;break}}if(t[h--]=t[u--],0===--r){y=!0;break}f--}while(g>=7||m>=7);if(y)break;f<0&&(f=0),f+=2}if((i=f)<1&&(i=1),1===s){for(p=1+(h-=r),d=1+(u-=r),l=r-1;l>=0;l--)t[p+l]=t[d+l];t[h]=a[c]}else{if(0===s)throw new Error;for(d=h-(s-1),l=0;l<s;l++)t[d+l]=a[l]}}else{for(p=1+(h-=r),d=1+(u-=r),l=r-1;l>=0;l--)t[p+l]=t[d+l];t[h]=a[c]}else for(d=h-(s-1),l=0;l<s;l++)t[d+l]=a[l]}(l,u,c,h))}return n=[],r=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&r[t-1]<r[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,r[o]=e,o+=1}}}(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(i);do{if((o=px(t,n,r,e))<s){var l=i;l>s&&(l=s),fx(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}}var vx=!1;function xx(){vx||(vx=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function _x(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var bx=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=_x}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,i=e.length;r<i;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,yx(n,_x)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath(),i=e&&e.length,o=0,a=t.__clipPaths;if(!t.ignoreClip&&(i||r)){if(a||(a=t.__clipPaths=[]),i)for(var s=0;s<e.length;s++)a[o++]=e[s];for(var l=r,u=t;l;)l.parent=u,l.updateTransform(),a[o++]=l,u=l,l=l.getClipPath()}if(a&&(a.length=o),t.childrenRef){for(var c=t.childrenRef(),h=0;h<c.length;h++){var d=c[h];t.__dirty&&(d.__dirty|=1),this._updateAndAddDisplayable(d,a,n)}t.__dirty=0}else{var p=t;isNaN(p.z)&&(xx(),p.z=0),isNaN(p.z2)&&(xx(),p.z2=0),isNaN(p.zlevel)&&(xx(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,a,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,a,n);var m=t.getTextContent();m&&this._updateAndAddDisplayable(m,a,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var r=L(this._roots,t);r>=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const Sx=bx,Cx=wt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};function Tx(){return(new Date).getTime()}var Mx=function(t){function e(e){var n=t.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 Et(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){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=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=Tx()-this._pausedTime,n=e-this._time,r=this._head;r;){var i=r.next;r.step(e,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,Cx(function e(){t._running&&(Cx(e),!t._paused&&t.update())})},e.prototype.start=function(){this._running||(this._time=Tx(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Tx(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Tx()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Cr(t,e.loop);return this.addAnimator(n),n},e}(Mr);const kx=Mx;var Ix,Dx,Rx=wt.domSupported,Px=(Dx={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Ix=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:B(Ix,function(t){var e=t.replace("mouse","pointer");return Dx.hasOwnProperty(e)?e:t})}),Ax=["mousemove","mouseup"],Ox=["pointermove","pointerup"],Lx=!1;function Nx(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Ex(t){t&&(t.zrByTouch=!0)}function zx(t,e){for(var n=e,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var Bx=function(t,e){this.stopPropagation=vt,this.stopImmediatePropagation=vt,this.preventDefault=vt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Fx={mousedown:function(t){t=sv(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=sv(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=sv(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){zx(this,(t=sv(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Lx=!0,t=sv(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Lx||(t=sv(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Ex(t=sv(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Fx.mousemove.call(this,t),Fx.mousedown.call(this,t)},touchmove:function(t){Ex(t=sv(this.dom,t)),this.handler.processGesture(t,"change"),Fx.mousemove.call(this,t)},touchend:function(t){Ex(t=sv(this.dom,t)),this.handler.processGesture(t,"end"),Fx.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Fx.click.call(this,t)},pointerdown:function(t){Fx.mousedown.call(this,t)},pointermove:function(t){Nx(t)||Fx.mousemove.call(this,t)},pointerup:function(t){Fx.mouseup.call(this,t)},pointerout:function(t){Nx(t)||Fx.mouseout.call(this,t)}};z(["click","dblclick","contextmenu"],function(t){Fx[t]=function(e){e=sv(this.dom,e),this.trigger(t,e)}});var Vx={pointermove:function(t){Nx(t)||Vx.mousemove.call(this,t)},pointerup:function(t){Vx.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Hx(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,function(t,e,n,r){t.addEventListener(e,n,r)}(t.domTarget,e,n,r)}function Wx(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&lv(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var jx=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const Gx=function(t){function e(e,n){var r,i,o,a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=n,a._localHandlerScope=new jx(e,Fx),Rx&&(a._globalHandlerScope=new jx(document,Vx)),r=a,i=a._localHandlerScope,o=i.domHandlers,wt.pointerEventsSupported?z(Px.pointer,function(t){Hx(i,t,function(e){o[t].call(r,e)})}):(wt.touchEventsSupported&&z(Px.touch,function(t){Hx(i,t,function(e){o[t].call(r,e),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}(i)})}),z(Px.mouse,function(t){Hx(i,t,function(e){e=av(e),i.touching||o[t].call(r,e)})})),a}return Et(e,t),e.prototype.dispose=function(){Wx(this._localHandlerScope),Rx&&Wx(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Rx&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){function n(n){Hx(e,n,function(r){r=av(r),zx(t,r.target)||(r=function(t,e){return sv(t.dom,new Bx(t,e),!0)}(t,r),e.domHandlers[n].call(t,r))},{capture:!0})}wt.pointerEventsSupported?z(Ox,n):wt.touchEventsSupported||z(Ax,n)}(this,e):Wx(e)}},e}(Mr);var Ux={},Xx={},Yx=function(){function t(t,e,n){var r=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 i=new Sx,o=n.renderer||"canvas";Ux[o]||(o=H(Ux)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Ux[o](e,i,n,t),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l,u=wt.node||wt.worker||s?null:new Gx(a.getViewportRoot(),a.root),c=n.useCoarsePointer;(null==c||"auto"===c?wt.touchEventsSupported:!!c)&&(l=nt(n.pointerSize,44)),this.handler=new dx(i,a,u,a.root,l),this.animation=new kx({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return sr(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=sr(e[i].color,1);return(n/=r)<.4}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=Tx();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=Tx();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof cd&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;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,t=this.id,delete Xx[t])},t}();function $x(t,e){var n=new Yx(I(),t,e);return Xx[n.id]=n,n}var qx="";"undefined"!=typeof navigator&&(qx=navigator.platform||"");var Zx="rgba(0, 0, 0, 0.2)",Kx=dh.color.theme[0],Qx=or(Kx,null,null,.9);const Jx={darkMode:"auto",colorBy:"series",color:dh.color.theme,gradientColor:[Qx,Kx],aria:{decal:{decals:[{color:Zx,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Zx,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Zx,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Zx,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Zx,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Zx,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qx.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 t_,e_,n_,r_=ft(),i_="\0_ec_inner",o_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new Ls(r),this._locale=new Ls(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=l_(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,l_(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):n_(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&z(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=ft(),s=e&&e.replaceMergeMainTypeMap;$s(this).datasetMap=ft(),z(t,function(t,e){null!=t&&(Wc.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?R(t):P(n[e],t,!0))}),s&&s.each(function(t,e){Wc.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),Wc.topologicalTravel(o,Wc.getAllClassMainTypes(),function(e){var o=function(t,e,n){var r=r_.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}(this,e,Ko(t[e])),a=r.get(e),l=function(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=ft();z(e,function(t,n){q(t)||(e[n]=null)});var s,l,u=function(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<t.length;i++){var o=t[i];o&&null!=o.id&&e.set(o.id,i),r.push({existing:"replaceMerge"===n||aa(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(t,a,n);return(r||i)&&function(t,e,n,r){z(r,function(i,o){if(i&&null!=i.id){var a=ra(i.id),s=n.get(a);if(null!=s){var l=t[s];at(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=e[s],r[o]=null}}})}(u,t,a,e),r&&function(t,e){z(e,function(n,r){if(n&&null!=n.name)for(var i=0;i<t.length;i++){var o=t[i].existing;if(!t[i].newOption&&o&&(null==o.id||null==n.id)&&!aa(n)&&!aa(o)&&na("name",o,n))return t[i].newOption=n,void(e[r]=null)}})}(u,e),r||i?function(t,e,n){z(e,function(e){if(e){for(var r,i=0;(r=t[i])&&(r.newOption||aa(r.existing)||r.existing&&null!=e.id&&!na("id",e,r.existing));)i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}})}(u,e,i):o&&function(t,e){z(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}(u,e),s=u,l=ft(),z(s,function(t){var e=t.existing;e&&l.set(e.id,t)}),z(s,function(t){var e=t.newOption;at(!e||null==e.id||!l.get(e.id)||l.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&l.set(e.id,t),!t.keyInfo&&(t.keyInfo={})}),z(s,function(t,e){var n=t.existing,r=t.newOption,i=t.keyInfo;if(q(r)){if(i.name=null!=r.name?ra(r.name):n?n.name:Zo+e,n)i.id=ra(n.id);else if(null!=r.id)i.id=ra(r.id);else{var o=0;do{i.id="\0"+i.name+"\0"+o++}while(l.get(i.id))}l.set(i.id,t)}}),u}(a,o,a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll");(function(t,e,n){z(t,function(t){var r=t.newOption;q(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,r){return e.type?e.type:n?n.subType:r.determineSubType(t,e)}(e,r,t.existing,n))})})(l,e,Wc),n[e]=null,r.set(e,null),i.set(e,0);var u,c=[],h=[],d=0;z(l,function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=Wc.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(u)return;u=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=A({componentIndex:n},t.keyInfo);A(r=new a(i,this,this,s),s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(c.push(r.option),h.push(r),d++):(c.push(void 0),h.push(void 0))},this),n[e]=c,r.set(e,h),i.set(e,d),"series"===e&&t_(this)},this),this._seriesIndices||t_(this)},e.prototype.getOption=function(){var t=R(this.option);return z(t,function(e,n){if(Wc.hasClass(n)){for(var r=Ko(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!aa(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}}),delete t[i_],t},e.prototype.setTheme=function(t){this._theme=new Ls(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,r=t.index,i=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=r?(n=[],z(Ko(r),function(t){a[t]&&n.push(a[t])})):n=null!=i?a_("id",i,a):null!=o?a_("name",o,a):V(a,function(t){return!!t}),s_(n,t)):[]},e.prototype.findComponents=function(t){var e,n,r,i,o,a=t.query,s=t.mainType,l=(n=s+"Index",r=s+"Id",i=s+"Name",!(e=a)||null==e[n]&&null==e[r]&&null==e[i]?null:{mainType:s,index:e[n],id:e[r],name:e[i]});return o=s_(l?this.queryComponents(l):V(this._componentsMap.get(s),function(t){return!!t}),t),t.filter?V(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(U(t)){var i=e,o=t;r.each(function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&o.call(i,e,r,r.componentIndex)}})}else for(var a=X(t)?r.get(t):q(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=ia(t,null);return V(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return V(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},e.prototype.getSeries=function(){return V(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){e_(this),z(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)},this)},e.prototype.eachRawSeries=function(t,e){z(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,e,n){e_(this),z(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)},this)},e.prototype.eachRawSeriesByType=function(t,e,n){return z(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return e_(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){e_(this);var n=[];z(this._seriesIndices,function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=ft(n)},e.prototype.restoreData=function(t){t_(this);var e=this._componentsMap,n=[];e.each(function(t,e){Wc.hasClass(e)&&n.push(e)}),Wc.topologicalTravel(n,Wc.getAllClassMainTypes(),function(n){z(e.get(n),function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}(e,t)||e.restoreData()})})},e.internalField=(t_=function(t){var e=t._seriesIndices=[];z(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=ft(e)},e_=function(t){},void(n_=function(t,e){t.option={},t.option[i_]=1,t._componentsMap=ft({series:[]}),t._componentsCount=ft();var n=e.aria;q(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;z(e,function(e,r){"colorLayer"===r&&n||"color"===r&&t.color||Wc.hasClass(r)||("object"==typeof e?t[r]=t[r]?P(t[r],e,!1):R(e):null==t[r]&&(t[r]=e))})}(e,t._theme.option),P(e,Jx,!1),t._mergeOption(e,null)})),e}(Ls);function a_(t,e,n){if(G(e)){var r=ft();return z(e,function(t){null!=t&&null!=ia(t,null)&&r.set(t,!0)}),V(n,function(e){return e&&r.get(e[t])})}var i=ia(e,null);return V(n,function(e){return e&&null!=i&&e[t]===i})}function s_(t,e){return e.hasOwnProperty("subType")?V(t,function(t){return t&&t.subType===e.subType}):t}function l_(t){var e=ft();return t&&z(Ko(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}N(o_,Gc);const u_=o_;var c_=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];const h_=function(t){z(c_,function(e){this[e]=W(t[e],t)},this)};var d_=/^(min|max)?(.+)$/,p_=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(z(Ko(t.series),function(t){t&&t.data&&K(t.data)&&ut(t.data)}),z(Ko(t.dataset),function(t){t&&t.source&&K(t.source)&&ut(t.source)})),t=R(t);var r=this._optionBackup,i=function(t,e,n){var r,i,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);function d(t){z(e,function(e){e(t,n)})}return a?(i=a).timeline||(i.timeline=s):((h||c)&&(t.options=t.media=null),i=t),c&&G(u)&&z(u,function(t){t&&t.option&&(t.query?o.push(t):r||(r=t))}),d(i),z(l,function(t){return d(t)}),z(o,function(t){return d(t.option)}),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}(t,e,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],R(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=R(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)f_(o[u].query,r,i)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=B(s,function(t){return R(-1===t?a.option:o[t].option)})),this._currentMediaIndices=s,l},t}();function f_(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return z(t,function(t,e){var n=e.match(d_);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(r[a],t,o)||(i=!1)}}),i}const g_=p_;var m_=z,y_=q,v_=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function x_(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=v_.length;n<r;n++){var i=v_[n],o=e.normal,a=e.emphasis;o&&o[i]&&(t[i]=t[i]||{},t[i].normal?P(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i].emphasis?P(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function __(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,O(t[e],r)):t[e]=r),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function b_(t){__(t,"itemStyle"),__(t,"lineStyle"),__(t,"areaStyle"),__(t,"label"),__(t,"labelLine"),__(t,"upperLabel"),__(t,"edgeLabel")}function w_(t,e){var n=y_(t)&&t[e],r=y_(n)&&n.textStyle;if(r)for(var i=0,o=Jo.length;i<o;i++){var a=Jo[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function S_(t){t&&(b_(t),w_(t,"label"),t.emphasis&&w_(t.emphasis,"label"))}function C_(t){return G(t)?t:t?[t]:[]}function T_(t){return(G(t)?t[0]:t)||{}}function M_(t){t&&z(k_,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var k_=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],I_=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],D_=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function R_(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<D_.length;n++){var r=D_[n][1],i=D_[n][0];null!=e[r]&&(e[i]=e[r])}}function P_(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function A_(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function O_(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&O_(t[n].children,e)}function L_(t,e){(function(t,e){m_(C_(t.series),function(t){y_(t)&&function(t){if(y_(t)){x_(t),b_(t),w_(t,"label"),w_(t,"upperLabel"),w_(t,"edgeLabel"),t.emphasis&&(w_(t.emphasis,"label"),w_(t.emphasis,"upperLabel"),w_(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(x_(e),S_(e));var n=t.markLine;n&&(x_(n),S_(n));var r=t.markArea;r&&S_(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!K(o))for(var a=0;a<o.length;a++)S_(o[a]);z(t.categories,function(t){b_(t)})}if(i&&!K(i))for(a=0;a<i.length;a++)S_(i[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)S_(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)G(l[a])?(S_(l[a][0]),S_(l[a][1])):S_(l[a])}"gauge"===t.type?(w_(t,"axisLabel"),w_(t,"title"),w_(t,"detail")):"treemap"===t.type?(__(t.breadcrumb,"itemStyle"),z(t.levels,function(t){b_(t)})):"tree"===t.type&&b_(t.leaves)}}(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),m_(n,function(e){m_(C_(t[e]),function(t){t&&(w_(t,"axisLabel"),w_(t.axisPointer,"label"))})}),m_(C_(t.parallel),function(t){var e=t&&t.parallelAxisDefault;w_(e,"axisLabel"),w_(e&&e.axisPointer,"label")}),m_(C_(t.calendar),function(t){__(t,"itemStyle"),w_(t,"dayLabel"),w_(t,"monthLabel"),w_(t,"yearLabel")}),m_(C_(t.radar),function(t){w_(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),m_(C_(t.geo),function(t){y_(t)&&(S_(t),m_(C_(t.regions),function(t){S_(t)}))}),m_(C_(t.timeline),function(t){S_(t),__(t,"label"),__(t,"itemStyle"),__(t,"controlStyle",!0);var e=t.data;G(e)&&z(e,function(t){q(t)&&(__(t,"label"),__(t,"itemStyle"))})}),m_(C_(t.toolbox),function(t){__(t,"iconStyle"),m_(t.feature,function(t){__(t,"iconStyle")})}),w_(T_(t.axisPointer),"label"),w_(T_(t.tooltip).axisPointer,"label")})(t,e),t.series=Ko(t.series),z(t.series,function(t){if(q(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise),P_(t.label),(i=t.data)&&!K(i))for(var n=0;n<i.length;n++)P_(i[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=function(t){for(var e="pointer.color".split(","),n=t,r=0;r<e.length&&null!=(n=n&&n[e[r]]);r++);return n}(t);null!=r&&function(t,e,n){for(var r,i="itemStyle.color".split(","),o=t,a=0;a<i.length-1;a++)null==o[r=i[a]]&&(o[r]={}),o=o[r];null==o[i[a]]&&(o[i[a]]=n)}(t,0,r)}else if("bar"===e){var i;if(R_(t),R_(t.backgroundStyle),R_(t.emphasis),(i=t.data)&&!K(i))for(n=0;n<i.length;n++)"object"==typeof i[n]&&(R_(i[n]),R_(i[n]&&i[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),A_(t),O_(t.data,A_)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&O(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),M_(t)}}),t.dataRange&&(t.visualMap=t.dataRange),z(I_,function(e){var n=t[e];n&&(G(n)||(n=[n]),z(n,function(t){M_(t)}))})}var N_=la(),E_={itemStyle:At(Rs,!0),lineStyle:At(ks,!0)},z_={lineStyle:"stroke",itemStyle:"fill"};function B_(t,e){return t.visualStyleMapper||E_[e]||(console.warn("Unknown style type '"+e+"'."),E_.itemStyle)}function F_(t,e){return t.visualDrawType||z_[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var V_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=B_(t,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=F_(t,r),l=o[s],u=U(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||U(o.fill)?h:o.fill,o.stroke="auto"===o.stroke||U(o.stroke)?h:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=A({},o);i[s]=u(r),e.setItemVisual(n,"style",i)}}}},H_=new Ls,W_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=B_(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){H_.option=n[r];var a=i(H_);A(t.ensureUniqueItemVisual(e,"style"),a),H_.option.decal&&(t.setItemVisual(e,"decal",H_.option.decal),H_.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},j_={performRawSeries:!0,overallReset:function(t){var e=ft();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),N_(t).scope=i}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=N_(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=F_(e,a);i.each(function(t){var e=i.getRawIndex(t);r[e]=t}),n.each(function(t){var a=r[t];if(i.getItemVisual(a,"colorFromPalette")){var l=i.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}})}})}},G_=Math.PI,U_=function(){function t(t,e,n,r){this._stageTaskMap=ft(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData().count(),i=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=ft();t.eachSeries(function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;z(this._allHandlers,function(r){var i=t.get(r.uid)||t.set(r.uid,{});at(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)},this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}z(t,function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each(function(t){a(r,t)&&(t.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,r.block);d.each(function(t){t.perform(p)}),c.perform(p)&&(i=!0)}else u&&u.each(function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)})}}),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.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)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=ft(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||$c({plan:Z_,reset:K_,count:tb}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||$c({reset:X_});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=ft(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1;function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,$c({reset:Y_,onDirty:q_})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,i._pipe(t,n)}at(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):u?u(n,r).each(d):(c=!1,z(n.getSeries(),d)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return U(t)&&(t={overallReset:t,seriesType:eb(t)}),t.uid=Mu("stageHandler"),e&&(t.visualType=e),t},t}();function X_(t){t.overallReset(t.ecModel,t.api,t.payload)}function Y_(t){return t.overallProgress&&$_}function $_(){this.agent.dirty(),this.getDownstream().dirty()}function q_(){this.agent&&this.agent.dirty()}function Z_(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function K_(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ko(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?B(e,function(t,e){return J_(e)}):Q_}var Q_=J_(0);function J_(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function tb(t){return t.data.count()}function eb(t){nb=null;try{t(rb,ib)}catch(t){}return nb}var nb,rb={},ib={};function ob(t,e){for(var n in e.prototype)t[n]=vt}ob(rb,u_),ob(ib,h_),rb.eachSeriesByType=rb.eachRawSeriesByType=function(t){nb=t},rb.eachComponent=function(t){"series"===t.mainType&&t.subType&&(nb=t.subType)};const ab=U_;var sb,lb=dh.darkColor,ub=lb.background,cb=function(){return{axisLine:{lineStyle:{color:lb.axisLine}},splitLine:{lineStyle:{color:lb.axisSplitLine}},splitArea:{areaStyle:{color:[lb.backgroundTint,lb.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:lb.axisMinorSplitLine}},axisLabel:{color:lb.axisLabel},axisName:{}}},hb={label:{color:lb.secondary},itemStyle:{borderColor:lb.borderTint},dividerLineStyle:{color:lb.border}},db={darkMode:!0,color:lb.theme,backgroundColor:ub,axisPointer:{lineStyle:{color:lb.border},crossStyle:{color:lb.borderShade},label:{color:lb.tertiary}},legend:{textStyle:{color:lb.secondary},pageTextStyle:{color:lb.tertiary}},textStyle:{color:lb.secondary},title:{textStyle:{color:lb.primary},subtextStyle:{color:lb.quaternary}},toolbox:{iconStyle:{borderColor:lb.accent50}},tooltip:{backgroundColor:lb.neutral20,defaultBorderColor:lb.border,textStyle:{color:lb.tertiary}},dataZoom:{borderColor:lb.accent10,textStyle:{color:lb.tertiary},brushStyle:{color:lb.backgroundTint},handleStyle:{color:lb.neutral00,borderColor:lb.accent20},moveHandleStyle:{color:lb.accent40},emphasis:{handleStyle:{borderColor:lb.accent50}},dataBackground:{lineStyle:{color:lb.accent30},areaStyle:{color:lb.accent20}},selectedDataBackground:{lineStyle:{color:lb.accent50},areaStyle:{color:lb.accent30}}},visualMap:{textStyle:{color:lb.secondary},handleStyle:{borderColor:lb.neutral30}},timeline:{lineStyle:{color:lb.accent10},label:{color:lb.tertiary},controlStyle:{color:lb.accent30,borderColor:lb.accent30}},calendar:{itemStyle:{color:lb.neutral00,borderColor:lb.neutral20},dayLabel:{color:lb.tertiary},monthLabel:{color:lb.secondary},yearLabel:{color:lb.secondary}},matrix:{x:hb,y:hb,backgroundColor:{borderColor:lb.axisLine},body:{itemStyle:{borderColor:lb.borderTint}}},timeAxis:cb(),logAxis:cb(),valueAxis:cb(),categoryAxis:cb(),line:{symbol:"circle"},graph:{color:lb.theme},gauge:{title:{color:lb.secondary},axisLine:{lineStyle:{color:[[1,lb.neutral05]]}},axisLabel:{color:lb.axisLabel},detail:{color:lb.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:lb.background}},radar:(sb=cb(),sb.axisName={color:lb.axisLabel},sb.axisLine.lineStyle.color=lb.neutral20,sb),treemap:{breadcrumb:{itemStyle:{color:lb.neutral20,textStyle:{color:lb.secondary}},emphasis:{itemStyle:{color:lb.neutral30}}}},sunburst:{itemStyle:{borderColor:lb.background}},map:{itemStyle:{borderColor:lb.border,areaColor:lb.neutral10},label:{color:lb.tertiary},emphasis:{label:{color:lb.primary},itemStyle:{areaColor:lb.highlight}},select:{label:{color:lb.primary},itemStyle:{areaColor:lb.highlight}}},geo:{itemStyle:{borderColor:lb.border,areaColor:lb.neutral10},emphasis:{label:{color:lb.primary},itemStyle:{areaColor:lb.highlight}},select:{label:{color:lb.primary},itemStyle:{color:lb.highlight}}}};db.categoryAxis.splitLine.show=!1;const pb=db;var fb=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(X(t)){var i=Tt(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};z(t,function(t,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),gb=["symbol","symbolSize","symbolRotate","symbolOffset"],mb=gb.concat(["symbolKeepAspect"]),yb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<gb.length;a++){var s=gb[a],l=t.get(s);U(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(A({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var u=H(i);return{dataEach:o?function(e,n){for(var r=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,i[s](r,o))}}:null}}}}},vb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),r=0;r<mb.length;r++){var i=mb[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}:null}}};function xb(t,e,n,r,i){var o=t+e;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,r=t.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=sa(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:G(u)?l.getName(u[0]):l.getName(u),selected:X(r)?r:A({},r)})}})}function _b(t,e,n){for(var r;t&&(!e(t)||(r=t,!n));)t=t.__hostTarget||t.parent;return r}var bb=Math.round(9*Math.random()),wb="function"==typeof Object.defineProperty,Sb=function(){function t(){this._id="__ec_inner_"+bb++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return wb?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}();const Cb=Sb;function Tb(t){return isFinite(t)}function Mb(t,e,n){for(var r="radial"===e.type?function(t,e,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*r+n.x,s=s*i+n.y,l*=o),a=Tb(a)?a:.5,s=Tb(s)?s:.5,l=l>=0&&Tb(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var r=null==e.x?0:e.x,i=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=Tb(r)?r:0,i=Tb(i)?i:1,o=Tb(o)?o:0,a=Tb(a)?a:0,t.createLinearGradient(r,o,i,a)}(t,e,n),i=e.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function kb(t){return parseInt(t,10)}function Ib(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||kb(s[r])||kb(t.style[r]))-(kb(s[o])||0)-(kb(s[a])||0)|0}function Db(t){var e,n,r=t.style,i=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:$(e)?[e]:G(e)?e:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(i=B(i,function(t){return t/a}),o/=a)}return[i,o]}var Rb=new Ri(!0);function Pb(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Ab(t){return"string"==typeof t&&"none"!==t}function Ob(t){var e=t.fill;return null!=e&&"none"!==e}function Lb(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Nb(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Eb(t,e,n){var r=jt(e.image,e.__image,n);if(Ut(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*xt),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}var zb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Bb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Fb(t,e,n,r,i){var o=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){Wb(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Gr.opacity:a}(r||e.blend!==n.blend)&&(o||(Wb(t,i),o=!0),t.globalCompositeOperation=e.blend||Gr.blend);for(var s=0;s<zb.length;s++){var l=zb[s];(r||e[l]!==n[l])&&(o||(Wb(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(Wb(t,i),o=!0),t.shadowColor=e.shadowColor||Gr.shadowColor),o}function Vb(t,e,n,r,i){var o=jb(e,i.inHover),a=r?null:n&&jb(n,i.inHover)||{};if(o===a)return!1;var s=Fb(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(Wb(t,i),s=!0),Ab(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(Wb(t,i),s=!0),Ab(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(Wb(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(Wb(t,i),s=!0),t.lineWidth=l)}for(var u=0;u<Bb.length;u++){var c=Bb[u],h=c[0];(r||o[h]!==a[h])&&(s||(Wb(t,i),s=!0),t[h]=o[h]||c[1])}return s}function Hb(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function Wb(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function jb(t,e){return e&&t.__hoverStyle||t.style}function Gb(t,e){Ub(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ub(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(o,a)||(a&&a.length&&(Wb(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Wb(t,n),t.save(),function(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),Hb(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,h,d=e instanceof Qi&&e.autoBatch&&function(t){var e=Ob(t),n=Pb(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);s||(c=i,h=u.transform,c&&h?c[0]!==h[0]||c[1]!==h[1]||c[2]!==h[2]||c[3]!==h[3]||c[4]!==h[4]||c[5]!==h[5]:c||h)?(Wb(t,n),Hb(t,e)):d||Wb(t,n);var f=jb(e,n.inHover);e instanceof Qi?(1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),Vb(t,e,u,l,n),d&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,r){var i,o=Pb(n),a=Ob(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||Rb,h=e.__dirty;if(!r){var d=n.fill,p=n.stroke,f=a&&!!d.colorStops,g=o&&!!p.colorStops,m=a&&!!d.image,y=o&&!!p.image,v=void 0,x=void 0,_=void 0,b=void 0,w=void 0;(f||g)&&(w=e.getBoundingRect()),f&&(v=h?Mb(t,d,w):e.__canvasFillGradient,e.__canvasFillGradient=v),g&&(x=h?Mb(t,p,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),m&&(_=h||!e.__canvasFillPattern?Eb(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=_),y&&(b=h||!e.__canvasStrokePattern?Eb(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),f?t.fillStyle=v:m&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=x:y&&(b?t.strokeStyle=b:o=!1)}var S,C,T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(S=(i=Db(e))[0],C=i[1]);var M=!0;(u||4&h)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),M=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),M&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=C),r||(n.strokeFirst?(o&&Nb(t,n),a&&Lb(t,n)):(a&&Lb(t,n),o&&Nb(t,n))),S&&t.setLineDash([])}(t,e,f,d),d&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):e instanceof eo?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),Vb(t,e,u,l,n),function(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||p,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(r=Db(e))[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Pb(n)&&t.strokeText(i,n.x,n.y),Ob(n)&&t.fillText(i,n.x,n.y)):(Ob(n)&&t.fillText(i,n.x,n.y),Pb(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}(t,e,f)):e instanceof oo?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(t,e,n,r,i){Fb(t,jb(e,i.inHover),n&&jb(n,i.inHover),r,i)}(t,e,u,l,n),function(t,e,n){var r=e.__image=jt(n.image,e.__image,e,e.onload);if(r&&Ut(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var h=a-(u=n.sx),d=s-(c=n.sy);t.drawImage(r,u,c,h,d,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}(t,e,f)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=r.length;o<a;o++)(c=r[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Ub(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c;for(var l=0,u=i.length;l<u;l++){var c;(c=i[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Ub(t,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),d&&r&&Wb(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var Xb=new Cb,Yb=new Vt(100),$b=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function qb(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&Xb.delete(t);var o=Xb.get(t);if(o)return o;var a=O(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o=[n],s=!0,l=0;l<$b.length;++l){var u=a[$b[l]];if(null!=u&&!G(u)&&!X(u)&&!$(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(i?"-svg":"");var c=Yb.get(e);c&&(i?t.svgElement=c:t.image=c)}var h,d=Kb(a.dashArrayX),p=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if($(t)){var e=Math.ceil(t);return[e,e]}var n=B(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}(a.dashArrayY),f=Zb(a.symbol),m=B(d,function(t){return Qb(t)}),y=Qb(p),v=!i&&g.createCanvas(),x=i&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var t=1,e=0,n=m.length;e<n;++e)t=$o(t,m[e]);var r=1;for(e=0,n=f.length;e<n;++e)r=$o(r,f[e].length);t*=r;var i=y*m.length*f.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();v&&(v.width=_.width*n,v.height=_.height*n,h=v.getContext("2d")),function(){h&&(h.clearRect(0,0,v.width,v.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,v.width,v.height)));for(var t=0,e=0;e<p.length;++e)t+=p[e];if(!(t<=0))for(var o=-y,s=0,l=0,u=0;o<_.height;){if(s%2==0){for(var c=l/2%f.length,g=0,m=0,b=0;g<2*_.width;){var w=0;for(e=0;e<d[u].length;++e)w+=d[u][e];if(w<=0)break;if(m%2==0){var S=.5*(1-a.symbolSize),C=g+d[u][m]*S,T=o+p[s]*S,M=d[u][m]*a.symbolSize,k=p[s]*a.symbolSize,I=b/2%f[c].length;D(C,T,M,k,f[c][I])}g+=d[u][m],++b,++m===d[u].length&&(m=0)}++u===d.length&&(u=0)}o+=p[s],++l,++s===p.length&&(s=0)}function D(t,e,o,s,l){var u=i?1:n,c=gf(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(c);d&&x.children.push(d)}else Gb(h,c)}}(),s&&Yb.put(e,v||x),t.image=v,t.svgElement=x,t.svgWidth=_.width,t.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,Xb.set(t,s),t.dirty=!1,s}function Zb(t){if(!t||0===t.length)return[["rect"]];if(X(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!X(t[n])){e=!1;break}if(e)return Zb([t]);var r=[];for(n=0;n<t.length;++n)X(t[n])?r.push([t[n]]):r.push(t[n]);return r}function Kb(t){if(!t||0===t.length)return[[0,0]];if($(t))return[[i=Math.ceil(t),i]];for(var e=!0,n=0;n<t.length;++n)if(!$(t[n])){e=!1;break}if(e)return Kb([t]);var r=[];for(n=0;n<t.length;++n)if($(t[n])){var i=Math.ceil(t[n]);r.push([i,i])}else(i=B(t[n],function(t){return Math.ceil(t)})).length%2==1?r.push(i.concat(i)):r.push(i);return r}function Qb(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}const Jb=new Mr;var tw={},ew=2e3,nw=4500,rw={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:ew,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:nw,ARIA:6e3,DECAL:7e3}},iw="__flagInMainProcess",ow="__mainProcessVersion",aw="__pendingUpdate",sw="__needsUpdateStatus",lw=/^[a-zA-Z0-9_]+$/,uw="__connectUpdateStatus";function cw(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return dw(this,t,e);zw(this.id)}}function hw(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return dw(this,t,e)}}function dw(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Mr.prototype[e].apply(t,n)}var pw,fw,gw,mw,yw,vw,xw,_w,bw,ww,Sw,Cw,Tw,Mw,kw,Iw,Dw,Rw,Pw,Aw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e}(Mr),Ow=Aw.prototype;Ow.on=hw("on"),Ow.off=hw("off");var Lw=function(t){function e(e,n,r){var i=t.call(this,new fb)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},i._dom=e,i[ow]=1,r.ssr;var o=i._zr=$x(e,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:nt(r.useDirtyRect,!1),useCoarsePointer:nt(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=pv(W(o.flush,o),17),i._updateTheme(n),i._locale=function(t){if(X(t)){var e=Vu[t.toUpperCase()]||{};return t===zu||t===Bu?R(e):P(R(e),R(Vu[Fu]),!1)}return P(R(t),R(Vu[Fu]),!1)}(r.locale||Wu),i._coordSysMgr=new xu;var a=i._api=kw(i);function s(t,e){return t.__prio-e.__prio}return yx(jw,s),yx(Hw,s),i._scheduler=new ab(i,a,Hw,jw),i._messageCenter=new Aw,i._initEvents(),i.resize=W(i.resize,i),o.animation.on("frame",i._onframe,i),ww(o,i),Sw(o,i),ut(i),i}return c(e,t),e.prototype._onframe=function(){if(!this._disposed){Rw(this);var t=this._scheduler;if(this[aw]){var e=this[aw].silent;this[iw]=!0,Pw(this);try{pw(this),mw.update.call(this,null,this[aw].updateParams)}catch(t){throw this[iw]=!1,this[aw]=null,t}this._zr.flush(),this[iw]=!1,this[aw]=null,_w.call(this,e),bw.call(this,e)}else if(t.unfinished){var n=1,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),vw(this,r),t.performVisualTasks(r),Mw(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[iw])if(this._disposed)zw(this.id);else{var r,i,o;if(q(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[iw]=!0,Pw(this),!this._model||e){var a=new g_(this._api),s=this._theme,l=this._model=new u_;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},Ww);var u={seriesTransition:o,optionChanged:!0};if(n)this[aw]={silent:r,updateParams:u},this[iw]=!1,this.getZr().wakeUp();else{try{pw(this),mw.update.call(this,null,u)}catch(t){throw this[aw]=null,this[iw]=!1,t}this._ssr||this._zr.flush(),this[aw]=null,this[iw]=!1,_w.call(this,r),bw.call(this,r)}}},e.prototype.setTheme=function(t,e){if(!this[iw])if(this._disposed)zw(this.id);else{var n=this._model;if(n){var r=e&&e.silent,i=null;this[aw]&&(null==r&&(r=this[aw].silent),i=this[aw].updateParams,this[aw]=null),this[iw]=!0,Pw(this);try{this._updateTheme(t),n.setTheme(this._theme),pw(this),mw.update.call(this,{type:"setTheme"},i)}catch(t){throw this[iw]=!1,t}this[iw]=!1,_w.call(this,r),bw.call(this,r)}}},e.prototype._updateTheme=function(t){X(t)&&(t=Gw[t]),t&&((t=R(t))&&L_(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||wt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr;return z(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,r=[],i=this;z(e,function(t){n.eachComponent({mainType:t},function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return z(r,function(t){t.group.ignore=!1}),o}zw(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(Yw[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();z(Xw,function(o,h){if(o.group===n){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(R(t)),p=o.getDom().getBoundingClientRect();a=r(p.left,a),s=r(p.top,s),l=i(p.right,l),u=i(p.bottom,u),c.push({dom:d,left:p.left,top:p.top})}});var d=(l*=h)-(a*=h),p=(u*=h)-(s*=h),f=g.createCanvas(),m=$x(f,{renderer:e?"svg":"canvas"});if(m.resize({width:d,height:p}),e){var y="";return z(c,function(t){var e=t.left-a,n=t.top-s;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return t.connectedBackgroundColor&&m.add(new fo({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),z(c,function(t){var e=new oo({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});m.add(e)}),m.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}zw(this.id)},e.prototype.convertToPixel=function(t,e,n){return yw(this,"convertToPixel",t,e,n)},e.prototype.convertToLayout=function(t,e,n){return yw(this,"convertToLayout",t,e,n)},e.prototype.convertFromPixel=function(t,e,n){return yw(this,"convertFromPixel",t,e,n)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return z(ca(this._model,t),function(t,r){r.indexOf("Models")>=0&&z(t,function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n;zw(this.id)},e.prototype.getVisual=function(t,e){var n=ca(this._model,t,{defaultMainType:"series"}),r=n.seriesModel.getData(),i=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=i?function(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}(r,i,e):function(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}(r,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;z(Ew,function(e){var n=function(n){var r,i=t.getModel(),o=n.target;if("globalout"===e?r={}:o&&_b(o,function(t){var e=ga(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return r=A({},e.eventData),!0},!0),r){var a=r.componentType,s=r.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=r.seriesIndex);var l=a&&null!=s&&i.getComponent(a,s),u=l&&t["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:l,view:u},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)});var e=this._messageCenter;z(Vw,function(n,r){e.on(r,function(e){t.trigger(r,e)})}),function(t,e,n){t.on("selectchanged",function(t){var r=n.getModel();t.isFromClick?(xb("map","selectchanged",e,r,t),xb("pie","selectchanged",e,r,t)):"select"===t.fromAction?(xb("map","selected",e,r,t),xb("pie","selected",e,r,t)):"unselect"===t.fromAction&&(xb("map","unselected",e,r,t),xb("pie","unselected",e,r,t))})}(e,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?zw(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)zw(this.id);else{this._disposed=!0,this.getDom()&&fa(this.getDom(),qw,"");var t=this,e=t._api,n=t._model;z(t._componentsViews,function(t){t.dispose(n,e)}),z(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Xw[t.id]}},e.prototype.resize=function(t){if(!this[iw])if(this._disposed)zw(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[aw]&&(null==r&&(r=this[aw].silent),n=!0,this[aw]=null),this[iw]=!0,Pw(this);try{n&&pw(this),mw.update.call(this,{type:"resize",animation:A({duration:0},t&&t.animation)})}catch(t){throw this[iw]=!1,t}this[iw]=!1,_w.call(this,r),bw.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)zw(this.id);else if(q(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Uw[t]){var n=Uw[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?zw(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=A({},t);return e.type=Fw[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)zw(this.id);else if(q(e)||(e={silent:!!e}),Bw[t.type]&&this._model)if(this[iw])this._pendingActions.push(t);else{var n=e.silent;xw.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&wt.browser.weChat&&this._throttledZrFlush(),_w.call(this,n),bw.call(this,n)}},e.prototype.updateLabelLayout=function(){Jb.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)zw(this.id);else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function e(t){for(var e=[],n=t.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&e.push(i)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=nf(t);e.eachRendered(function(t){return of(t,n.z,n.zlevel),!0})}}function r(t,e){e.eachRendered(function(t){if(!gp(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function i(t,n){var r=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered(function(t){if(t.states&&t.states.emphasis){if(gp(t))return;if(t instanceof Qi&&function(t){var e=va(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}})}pw=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),fw(t,!0),fw(t,!1),e.plan()},fw=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=Tt(t.type);(c=new(e?cg.getClass(h.main,h.sub):qf.getClass(h.sub))).init(n,s),o[u]=c,i.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(c,t,n,s)}for(e?n.eachComponent(function(t,e){"series"!==t&&u(e)}):n.eachSeries(u),l=0;l<i.length;){var c=i[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},gw=function(t,e,n,r,i){var o=t._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var l,u=n.excludeSeriesId;null!=u&&(l=ft(),z(Ko(u),function(t){var e=ia(t,null);null!=e&&l.set(e,!0)})),o&&o.eachComponent(s,function(e){if(!l||null==l.get(e.id))if(ls(n))if(e instanceof Bh)n.type!==wa||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var o=sa(i,e);o=(G(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=ga(a);Za(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&Za(r,c,h,n)}}}(e,n,t._api);else{var r=Qa(e.mainType,e.componentIndex,n.name,t._api),i=r.focusSelf,o=r.dispatchers;n.type===wa&&i&&!n.notBlur&&Ka(e.mainType,e.componentIndex,t._api),o&&z(o,function(t){n.type===wa?ja(t):Ga(t)})}else ss(n)&&e instanceof Bh&&(function(t,e){if(ss(e)){var n=e.dataType,r=sa(t.getData(n),e);G(r)||(r=[r]),t[e.type===Ma?"toggleSelect":e.type===Ca?"select":"unselect"](r,n)}}(e,n,t._api),Ja(e),Dw(t))},t),o&&o.eachComponent(s,function(e){l&&null!=l.get(e.id)||c(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])},t)}else z([].concat(t._componentsViews).concat(t._chartsViews),c);function c(r){r&&r.__alive&&r[e]&&r[e](r.__model,o,t._api,n)}},mw={prepareAndUpdate:function(t){pw(this),mw.update.call(this,t,t&&{optionChanged:null!=t.newOption})},update:function(e,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,e),vw(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e);var l=r.get("backgroundColor")||"transparent";o.setBackgroundColor(l);var u=r.get("darkMode");null!=u&&"auto"!==u&&o.setDarkMode(u),Cw(this,r,i,e,n),Jb.trigger("afterupdate",r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var o=[];r.eachComponent(function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,e);l&&l.update&&o.push(s)}else o.push(s)}});var a=ft();r.eachSeries(function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,r,i,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)}),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:a}),Mw(this,r,i,e,{},a),Jb.trigger("afterupdate",r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),qf.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),Cw(this,n,this._api,e,{}),Jb.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(t){t.getData().clearAllVisual()}),qf.markUpdateMethod(e,"updateVisual"),t(r),this._scheduler.performVisualTasks(r,e,{visualType:"visual",setDirty:!0}),r.eachComponent(function(t,i){if("series"!==t){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),Jb.trigger("afterupdate",r,this._api))},updateLayout:function(t){mw.update.call(this,t)}},yw=function(t,e,n,r,i){if(t._disposed)zw(t.id);else for(var o,a=t._model,s=t._coordSysMgr.getCoordinateSystems(),l=ca(a,n),u=0;u<s.length;u++){var c=s[u];if(c[e]&&null!=(o=c[e](a,l,r,i)))return o}},vw=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries(function(t){r.updateStreamModes(t,n[t.__viewId])})},xw=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,a=Bw[i],s=(a.update||"update").split(":"),l=s.pop(),u=null!=s[0]&&Tt(s[0]);this[iw]=!0,Pw(this);var c=[t],h=!1;t.batch&&(h=!0,c=B(t.batch,function(e){return(e=O(A({},e),t)).batch=null,e}));var d,p=[],f=[],g=a.nonRefinedEventType,m=ss(t),y=ls(t);if(y&&qa(this._api),z(c,function(e){var i=a.action(e,r,n._api);if(a.refineEvent?f.push(i):d=i,(d=d||A({},e)).type=g,p.push(d),y){var o=ha(t),s=o.queryOptionMap,c=o.mainTypeSpecified?s.keys()[0]:"series";gw(n,l,e,c),Dw(n)}else m?(gw(n,l,e,"series"),Dw(n)):u&&gw(n,l,e,u.main,u.sub)}),"none"!==l&&!y&&!m&&!u)try{this[aw]?(pw(this),mw.update.call(this,t),this[aw]=null):mw[l].call(this,t)}catch(t){throw this[iw]=!1,t}if(d=h?{type:g,escapeConnect:o,batch:p}:p[0],this[iw]=!1,!e){var v=void 0;if(a.refineEvent){var x=a.refineEvent(f,t,r,this._api).eventContent;at(q(x)),(v=O({type:a.refinedEventType},x)).fromAction=t.type,v.fromActionPayload=t,v.escapeConnect=!0}var _=this._messageCenter;_.trigger(d.type,d),v&&_.trigger(v.type,v)}},_w=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();xw.call(this,n,t)}},bw=function(t){!t&&this.trigger("updated")},ww=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[aw]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},Sw=function(t,e){t.on("mouseover",function(t){var n=_b(t.target,as);n&&(function(t,e,n){var r=ga(t),i=Qa(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&Ka(r.componentMainType,r.componentIndex,n),z(o,function(t){return Ha(t,e)})):(Za(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&Ka(r.componentMainType,r.componentIndex,n),Ha(t,e))}(n,t,e._api),Dw(e))}).on("mouseout",function(t){var n=_b(t.target,as);n&&(function(t,e,n){qa(n);var r=ga(t),i=Qa(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?z(i,function(t){return Wa(t,e)}):Wa(t,e)}(n,t,e._api),Dw(e))}).on("click",function(t){var n=_b(t.target,function(t){return null!=ga(t).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",i=ga(n);e._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}})},Cw=function(t,e,n,r,i){!function(t){var e=[],n=[],r=!1;if(t.eachComponent(function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})}),r){var i,o,a=e.concat(n);yx(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),z(a,function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)})}}(e),Tw(t,e,n,r,i),z(t._chartsViews,function(t){t.__alive=!1}),Mw(t,e,n,r,i),z(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},Tw=function(t,e,o,a,s,l){z(l||t._componentsViews,function(t){var s=t.__model;r(0,t),t.render(s,e,o,a),n(s,t),i(s,t)})},Mw=function(t,e,o,a,s,l){var u=t._scheduler;s=A(s||{},{updatedSeries:e.getSeries()}),Jb.trigger("series:beforeupdate",e,o,s);var c=!1;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;u.updatePayload(i,a),r(0,n),l&&l.get(e.uid)&&i.dirty(),i.perform(u.getPerformArgs(i))&&(c=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=n)})}(e,n),Ja(e)}),u.unfinished=c||u.unfinished,Jb.trigger("series:layoutlabels",e,o,s),Jb.trigger("series:transition",e,o,s),e.eachSeries(function(e){var r=t._chartsMap[e.__viewId];n(e,r),i(e,r)}),function(t,e){var n=t._zr.storage,r=0;n.traverse(function(t){t.isGroup||r++}),r>e.get("hoverLayerThreshold")&&!wt.node&&!wt.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}(t,e),Jb.trigger("series:afterupdate",e,o,s)},Dw=function(t){t[sw]=!0,t.getZr().wakeUp()},Pw=function(t){t[ow]=(t[ow]+1)%1e3},Rw=function(t){t[sw]&&(t.getZr().storage.traverse(function(t){gp(t)||e(t)}),t[sw]=!1)},kw=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return c(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){ja(e,n),Dw(t)},n.prototype.leaveEmphasis=function(e,n){Ga(e,n),Dw(t)},n.prototype.enterBlur=function(e){!function(t){za(t,Aa)}(e),Dw(t)},n.prototype.leaveBlur=function(e){Ua(e),Dw(t)},n.prototype.enterSelect=function(e){Xa(e),Dw(t)},n.prototype.leaveSelect=function(e){Ya(e),Dw(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n.prototype.getMainProcessVersion=function(){return t[ow]},n}(h_))(t)},Iw=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][uw]=e}z(Fw,function(n,r){t._messageCenter.on(r,function(n){if(Yw[t.group]&&0!==t[uw]){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];z(Xw,function(e){e!==t&&e.group===t.group&&i.push(e)}),e(i,0),z(i,function(t){1!==t[uw]&&t.dispatchAction(r)}),e(i,2)}})})}}(),e}(Mr),Nw=Lw.prototype;Nw.on=cw("on"),Nw.off=cw("off"),Nw.one=function(t,e,n){var r=this;this.on.call(this,t,function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,n)},n)};var Ew=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function zw(t){}var Bw={},Fw={},Vw={},Hw=[],Ww=[],jw=[],Gw={},Uw={},Xw={},Yw={},$w=+new Date-0,qw=(new Date,"_echarts_instance_");function Zw(t){return Xw[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,qw)]}function Kw(t,e){Gw[t]=e}function Qw(t){L(Ww,t)<0&&Ww.push(t)}function Jw(t,e){iS(Hw,t,e,2e3)}function tS(t,e){Jb.on(t,e)}function eS(t,e,n){var r,i,o,a,s;function l(t){return t.toLowerCase()}U(e)&&(n=e,e=""),q(t)?(r=t.type,i=t.event,a=t.update,s=t.publishNonRefinedEvent,n||(n=t.action),o=t.refineEvent):(r=t,i=e),i=l(i||r);var u=o?l(r):i;Bw[r]||(at(lw.test(r)&&lw.test(i)),o&&at(i!==r),Bw[r]={actionType:r,refinedEventType:i,nonRefinedEventType:u,update:a,action:n,refineEvent:o},Vw[i]=1,o&&s&&(Vw[u]=1),Fw[u]=r)}function nS(t,e){iS(jw,t,e,3e3,"visual")}var rS=[];function iS(t,e,n,r,i){if((U(e)||q(e))&&(n=e,e=r),!(L(rS,n)>=0)){rS.push(n);var o=ab.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function oS(t,e){Uw[t]=e}function aS(t,e,n,r){return{eventContent:{selected:ts(n),isFromClick:e.isFromClick||!1}}}nS(ew,V_),nS(nw,W_),nS(nw,j_),nS(ew,yb),nS(nw,vb),nS(7e3,function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(t){var n=r.getItemVisual(t,"decal");n&&(r.ensureUniqueItemVisual(t,"style").decal=qb(n,e))});var i=r.getVisual("decal");i&&(r.getVisual("style").decal=qb(i,e))}})}),Qw(L_),Jw(900,function(t){var e=ft();t.eachSeries(function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.push(o)}}),e.each(function(t){0!==t.length&&("seriesDesc"===(t[0].seriesModel.get("stackOrder")||"seriesAsc")&&t.reverse(),z(t,function(e,n){e.data.setCalculationInfo("stackedOnSeries",n>0?t[n-1].seriesModel:null)}),function(t){z(t,function(e,n){var r=[],i=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,c){var h,d,p=a.get(e.stackedDimension,c);if(isNaN(p))return i;s?d=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var m=t[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,h)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&p>=0&&y>0||"samesign"===l&&p<=0&&y<0){p=Bo(p,y),f=y;break}}}return r[0]=p,r[1]=f,r})})}(t))})}),oS("default",function(t,e){O(e=e||{},{text:"loading",textColor:dh.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:dh.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new cd,r=new fo({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new Do({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new fo({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((i=new Xd({shape:{startAngle:-G_/2,endAngle:-G_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*G_/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*G_/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),eS({type:wa,event:wa,update:wa},vt),eS({type:Sa,event:Sa,update:Sa},vt),eS({type:Ca,event:ka,update:Ca,action:vt,refineEvent:aS,publishNonRefinedEvent:!0}),eS({type:Ta,event:ka,update:Ta,action:vt,refineEvent:aS,publishNonRefinedEvent:!0}),eS({type:Ma,event:ka,update:Ma,action:vt,refineEvent:aS,publishNonRefinedEvent:!0}),Kw("default",{}),Kw("dark",pb);var sS={},lS=[],uS={registerPreprocessor:Qw,registerProcessor:Jw,registerPostInit:function(t){tS("afterinit",t)},registerPostUpdate:function(t){tS("afterupdate",t)},registerUpdateLifecycle:tS,registerAction:eS,registerCoordinateSystem:function(t,e){xu.register(t,e)},registerLayout:function(t,e){iS(jw,t,e,1e3,"layout")},registerVisual:nS,registerTransform:function(t){var e=(t=R(t)).type;e||gl("");var n=e.split(":");2!==n.length&&gl("");var r=!1;"echarts"===n[0]&&(e=n[1],r=!0),t.__isBuiltIn=r,nh.set(e,t)},registerLoading:oS,registerMap:function(t,e,n){var r=tw.registerMap;r&&r(t,e,n)},registerImpl:function(t,e){tw[t]=e},PRIORITY:rw,ComponentModel:Wc,ComponentView:cg,SeriesModel:Bh,ChartView:qf,registerComponentModel:function(t){Wc.registerClass(t)},registerComponentView:function(t){cg.registerClass(t)},registerSeriesModel:function(t){Bh.registerClass(t)},registerChartView:function(t){qf.registerClass(t)},registerCustomSeries:function(t,e){!function(t,e){sS[t]=e}(t,e)},registerSubTypeDefaulter:function(t,e){Wc.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){var n;n=e,Ux[t]=n}};function cS(t){G(t)?z(t,function(t){cS(t)}):L(lS,t)>=0||(lS.push(t),U(t)&&(t={install:t}),t.install(uS))}const hS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return c(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:dh.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:dh.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:dh.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:dh.color.tertiary,fontSize:14}},e}(Wc);function dS(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function pS(t){if(wt.domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}var fS=pS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function gS(t,e){if(!t)return e;e=bc(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var mS=gS(pS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),yS=gS(fS,"transform"),vS="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(wt.transform3dSupported?"will-change:transform;":"");function xS(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!wt.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=wt.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+yS+":"+a+";":[["top",0],["left",0],[fS,a]]}function _S(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,r,i){Au(Pu,e,r,i,!0)&&Au(t,n,Pu[0],Pu[1])}(t,a,n,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var bS=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,wt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=t.getZr(),i=e.appendTo,o=i&&(X(i)?document.querySelector(i):Q(i)?i:U(i)&&i(t.getDom()));_S(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler;sv(r.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=(o="position",(a=(i=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?o?a[o]:a:null),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i,o,a,s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=vS+function(t,e,n,r){var i=[],o=t.get("transitionDuration"),a=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),h=t.getModel("textStyle"),d=Mh(t,"html"),p=u+"px "+c+"px "+s+"px "+l;return i.push("box-shadow:"+p),e&&o>0&&i.push(function(t,e,n){var r="cubic-bezier(0.23,1,0.32,1)",i="",o="";return n&&(o="opacity"+(i=" "+t/2+"s "+r)+",visibility"+i),e||(i=" "+t+"s "+r,o+=(o.length?",":"")+(wt.transformSupported?""+yS+i:",left"+i+",top"+i)),mS+":"+o}(o,n,r)),a&&i.push("background-color:"+a),z(["width","color","radius"],function(e){var n="border-"+e,r=bc(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))}),i.push(function(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont());var i=nt(t.get("lineHeight"),Math.round(3*n/2));n&&e.push("line-height:"+i+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),z(["decoration","align"],function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)}),e.join(";")}(h)),null!=d&&i.push("padding:"+wc(d).join("px ")+"px"),i.join(";")+";"}(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+xS(i[0],i[1],!0)+"border-color:"+kc(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if(X(i)&&"item"===n.get("trigger")&&!dS(n)&&(a=function(t,e,n){if(!X(n)||"inside"===n)return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=kc(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(i),6),u="",c=yS+":";L(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var h=a*Math.PI/180,d=l+i,p=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),f=e+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-d)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),X(t))o.innerHTML=t+a;else if(t){o.innerHTML="",G(t)||(t=[t]);for(var s=0;s<t.length;s++)Q(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(_S(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var r=this.el.style;z(xS(n[0],n[1]),function(t){r[t[0]]=t[1]})}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",wt.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(W(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;!function(t,e){function n(t){var e=t[Ru];e&&(e.clearMarkers&&e.clearMarkers(),delete t[Ru])}t&&n(t),e&&n(e)}(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var n=e.parentNode;n&&n.removeChild(e)}this.el=this._container=null},t}();const wS=bS;function SS(t){return Math.max(0,t)}function CS(t){var e=SS(t.shadowBlur||0),n=SS(t.shadowOffsetX||0),r=SS(t.shadowOffsetY||0);return{left:SS(e-n),right:SS(e+n),top:SS(e-r),bottom:SS(e+r)}}function TS(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const MS=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),TS(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,r,i){var o=this;q(t)&&gl(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Do({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Mh(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),z(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),z(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=CS(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var r=this._styleCoord;TS(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,o=SS(i.borderWidth||0),a=CS(i);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(W(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();var kS=new fo({shape:{x:-1,y:-1,width:2,height:2}}),IS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return c(e,t),e.prototype.init=function(t,e){if(!wt.node&&e.getDom()){var n,r=t.getComponent("tooltip"),i=this._renderMode="auto"===(n=r.get("renderMode"))?wt.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===i?new MS(e):new wS(e,{appendTo:r.get("appendToBody",!0)?"body":r.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!wt.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?fv(this,"_updatePosition",50,"fixRate"):gv(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");Nv("itemTooltip",this._api,W(function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!wt.node&&n.getDom()){var i=RS(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(t,e,n){var r=ha(t).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o,a=pa(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a)return n.getViewOfComponentModel(a).group.traverse(function(e){var n=ga(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0}),o?{componentMainType:i,componentIndex:a.componentIndex,el:o}:void 0}}(r,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=kS;l.x=r.x,l.y=r.y,l.update(),ga(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var u=Hv(r,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(RS(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s&&"axis"===DS([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var i,o;if("legend"===ga(n).ssrType)return;this._lastDataByCoordSys=null,_b(n,function(t){if(t.tooltipDisabled)return i=o=null,!0;i||o||(null!=ga(t).dataIndex?i=t:null!=ga(t).tooltipConfig&&(o=t))},!0),i?this._showSeriesItemTooltip(t,i,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=W(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=DS([e.tooltipOption],r),a=this._renderMode,s=[],l=yh("section",{blocks:[],noHeader:!0}),u=[],c=new kh;z(t,function(t){z(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=Tv(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=yh("section",{header:o,noHeader:!st(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),z(t.seriesDataIndices,function(l){var d=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=d.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=xm(e.axis,{value:i}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",kc(f.color),a);var g=Yc(d.formatTooltip(p,!0,null)),m=g.frag;if(m){var y=DS([d],r).get("valueFormatter");h.blocks.push(y?A({valueFormatter:y},m):m)}g.text&&u.push(g.text),s.push(f)}})}})}),l.blocks.reverse(),u.reverse();var h=e.position,d=o.get("order"),p=Sh(l,c,a,d,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],h,null,c)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=ga(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,p=DS([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),m=new kh;g.marker=m.makeTooltipMarker("item",kc(g.color),h);var y=Yc(s.formatTooltip(l,!1,u)),v=p.get("order"),x=p.get("valueFormatter"),_=y.frag,b=_?Sh(x?A({valueFormatter:x},_):_,m,h,v,r.get("useUTC"),p.get("textStyle")):y.text,w="item_"+s.name+"_"+l;this._showOrMove(p,function(){this._showTooltipContent(p,b,g,w,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r="html"===this._renderMode,i=ga(e),o=i.tooltipConfig.option||{},a=o.encodeHTMLContent;X(o)&&(o={content:o,formatter:o},a=!0),a&&r&&o.content&&((o=R(o)).content=Eu(o.content));var s=[o],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,c=DS(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),d=Math.random()+"",p=new kh;this._showOrMove(c,function(){var n=R(c.get("formatterParams")||{});this._showTooltipContent(c,h,n,d,t.offsetX,t.offsetY,t.position,e,p)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,d=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)).color;if(c)if(X(c)){var p=t.ecModel.get("useUTC"),f=G(n)?n[0]:n;h=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(h=rc(f.axisValue,h,p)),h=Mc(h,n,!0)}else if(U(c)){var g=W(function(e,r){e===this._ticket&&(u.setContent(r,l,t,d,a),this._updatePosition(t,a,i,o,u,n,s))},this);this._ticket=r,h=c(n,r,g)}else h=c;u.setContent(h,l,t,d,a),u.show(t,d),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r,i){return"axis"===n||G(e)?{color:r||i}:G(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),U(e)&&(e=e([n,r],o,i.el,d,{viewSize:[s,l],contentSize:u.slice()})),G(e))n=Lo(e[0],s),r=Lo(e[1],l);else if(q(e)){var p=e;p.width=u[0],p.height=u[1];var f=Oc(p,{width:s,height:l});n=f.x,r=f.y,c=null,h=null}else if(X(e)&&a){var g=function(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,d,u,t.get("borderWidth"));n=g[0],r=g[1]}else g=function(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>r?t-=l+o:t+=o),null!=a&&(e+u+a>i?e-=u+a:e+=a),[t,e]}(n,r,i,s,l,c?null:20,h?null:20),n=g[0],r=g[1];c&&(n-=PS(c)?u[0]/2:"right"===c?u[0]:0),h&&(r-=PS(h)?u[1]/2:"bottom"===h?u[1]:0),dS(t)&&(g=function(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(n,r,i,s,l),n=g[0],r=g[1]),i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&z(n,function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&z(a,function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&z(a,function(t,e){var n=l[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),r&&z(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!wt.node&&e.getDom()&&(gv(this,"_updatePosition"),this._tooltipContent.dispose(),Bv("itemTooltip",e))},e.type="tooltip",e}(cg);function DS(t,e,n){var r,i=e.ecModel;n?(r=new Ls(n,i,i),r=new Ls(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Ls&&(a=a.get("tooltip",!0)),X(a)&&(a={formatter:a}),a&&(r=new Ls(a,r,i)))}return r}function RS(t,e){return t.dispatchAction||W(e.dispatchAction,e)}function PS(t){return"center"===t||"middle"===t}const AS=IS;function OS(t,e,n){var r=g.createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}var LS=function(t){function e(e,n,r){var i,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||Ir,"string"==typeof e?i=OS(e,n,r):q(e)&&(e=(i=e).id),o.id=e,o.dom=i;var a=i.style;return a&&(mt(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return Et(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=OS("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new ve(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length)(e=new ve(0,0,0,0)).copy(t),o.push(e);else{for(var e,n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new ve(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var d=t.width*t.height,p=c.width*c.height,f=l.width*l.height-d-p;f<r&&(r=f,i=u)}}s&&(o[i].union(t),n=!0),n||((e=new ve(0,0,0,0)).copy(t),o.push(e)),s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c)if(p=t[c]){var h=p.shouldBePainted(n,r,!0,!0);(f=p.__isRendered&&(1&p.__dirty||!h)?p.getPrevPaintRect():null)&&u(f);var d=h&&(1&p.__dirty||!p.__isRendered)?p.getPaintRect():null;d&&u(d)}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var p,f;h=(p=e[c])&&p.shouldBePainted(n,r,!0,!0),!p||h&&p.__zr||!p.__isRendered||(f=p.getPrevPaintRect())&&u(f)}do{for(i=!1,c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=t+"px",i.height=e+"px"),r.width=t*n,r.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var h=this.domBack;function d(t,n,r,o){if(i.clearRect(t,n,r,o),e&&"transparent"!==e){var a=void 0;J(e)?(a=(e.global||e.__width===r&&e.__height===o)&&e.__canvasGradient||Mb(i,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=a,e.__width=r,e.__height=o):null!=e.image&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=Eb(i,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),i.save(),i.fillStyle=a||e,i.fillRect(t,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(h,t,n,r,o),i.restore())}!n||s?d(0,0,o,a):n.length&&z(n,function(t){d(t.x*u,t.y*u,t.width*u,t.height*u)})},e}(Mr);const NS=LS;var ES=1e5,zS=314159,BS=.01,FS=function(){function t(t,e,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=A({},n||{}),this.dpr=n.devicePixelRatio||Ir,this._singleCanvas=i,this.root=t,t.style&&(mt(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=t,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new NS(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=zS,o.push(zS),this._domRoot=t}else{this._width=Ib(t,0,n),this._height=Ib(t,1,n);var h=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(h)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(ES)),r||(r=n.ctx).save(),Ub(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(ES)},t.prototype.paintOne=function(t,e){Gb(t,e)},t.prototype._paintList=function(t,e,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;Cx(function(){s._paintList(t,e,n,r)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(zS).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)})},t.prototype._doPaintList=function(t,e,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=i[a],h=l.ctx,p=o&&l.createRepaintRects(t,e,d._width,d._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,m=g&&Date.now(),y=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,p);else if(f===l.__startIndex){var v=t[f];v.incremental&&v.notClear&&!n||l.clear(!1,y,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var i=t[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,o,e,n,s===l.__endIndex-1),g&&Date.now()-m>15)break}n.prevElClipPaths&&h.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var _=d.dpr,b=0;b<p.length;++b){var w=p[b];h.save(),h.beginPath(),h.rect(w.x*_,w.y*_,w.width*_,w.height*_),h.clip(),x(w),h.restore()}else h.save(),x(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},d=this,p=0;p<i.length;p++)h(p);return wt.wxa&&z(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,r,i,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!r||s&&s.intersect(r))&&(Ub(a,t,i,o),t.setPrevPaintRect(s))}else Ub(a,t,i,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=zS);var n=this._layers[t];return n||((n=new NS("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?P(n,this._layerConfig[t],!0):this._layerConfig[t-BS]&&P(n,this._layerConfig[t-BS],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(i>0&&t>r[0]){for(s=0;s<i-1&&!(r[s]<t&&r[s+1]>t);s++);a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.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)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];t.call(e,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++)if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}var r,i,o=null,a=0;for(i=0;i<t.length;i++){var s,l=(s=t[i]).zlevel,u=void 0;r!==l&&(r=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?BS:0),this._needsManuallyCompositing),u.__builtin__||D("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,e(i),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}e(i),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,z(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?P(n[t],e,!0):n[t]=e;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];i!==t&&i!==t+BS||P(this._layers[i],n[t],!0)}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],n.splice(L(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=Ib(i,0,r),e=Ib(i,1,r),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(zS).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new NS("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 r=e.dom.width,i=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,r,i):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];Ub(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const VS=FS,HS=t;function WS({theme:t,data:e}){const n=(0,HS.useRef)(null),r=(0,HS.useMemo)(()=>{const t=e.flatMap(t=>{const e=new Date(t.start).getTime(),n=new Date(t.end).getTime(),r=(e+n)/2;return[{type:"line",name:t.event,data:[[e,0],[n,0]],lineStyle:{width:4,color:t.color},symbol:"none"},{type:"line",name:t.event,data:[[r,0]],symbol:t.icon,symbolSize:32,symbolOffset:[0,-25],tooltip:{formatter:()=>{const e=new Date(t.start).toLocaleString(void 0,{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit"}),n=new Date(t.end).toLocaleString(void 0,{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit"});return`\n <div style="padding:6px">\n <b>${Eu(t.event.toUpperCase())}</b><br/>\n Start: ${Eu(e)}<br/>\n End: ${Eu(n)}<br/>\n </div>\n `}}}]});return t},[e]);return(0,HS.useEffect)(()=>{let e,r;return null!==n.current&&(e=function(t,e,n){var r=Zw(t);if(r)return r;var i=new Lw(t,e,n);return i.id="ec_"+$w++,Xw[i.id]=i,fa(t,qw,i.id),Iw(i),Jb.trigger("afterinit",i),i}(n.current,t),r=new ResizeObserver(()=>{e?.resize()}),r.observe(n.current)),()=>{e?.dispose(),r?.disconnect()}},[t]),(0,HS.useEffect)(()=>{if(null!==n.current){const t=Zw(n.current),e={title:{text:"Event Timeline",left:"center"},xAxis:{type:"time",position:"bottom",axisTick:{show:!0,length:15,lineStyle:{color:"#999",width:2},inside:!0},axisLine:{lineStyle:{color:"#999",width:2}},axisLabel:{formatter:t=>{const e=new Date(t);return`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}`},margin:10}},yAxis:{type:"value",min:0,max:0,show:!1},tooltip:{trigger:"item"},series:r};t?.setOption(e,!0)}},[t,r]),(0,l.jsx)("div",{ref:n,style:{height:"100%",width:"100%"}})}function jS(t){return"0rem"===t?"0rem":`calc(${t} * var(--mantine-scale))`}function GS(t,{shouldScale:e=!1}={}){return function n(r){if(0===r||"0"===r)return`0${t}`;if("number"==typeof r){const n=`${r/16}${t}`;return e?jS(n):n}if("string"==typeof r){if(""===r)return r;if(r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(t=>n(t)).join(",");if(r.includes(" "))return r.split(" ").map(t=>n(t)).join(" ");const i=r.replace("px","");if(!Number.isNaN(Number(i))){const n=`${Number(i)/16}${t}`;return e?jS(n):n}}return r}}cS([function(t){t.registerComponentModel(hg),t.registerComponentView(dg)},function(t){cS(tv),cS(qv)},function(t){t.registerChartView(ag),t.registerSeriesModel(yf),t.registerLayout({seriesType:"line",plan:Vf(),reset:function(t){var e=t.getData(),n=t.coordinateSystem;if(t.pipelineContext,n){var r=B(n.dimensions,function(t){return e.mapDimension(t)}).slice(0,2),i=r.length,o=e.getCalculationInfo("stackResultDimension");Su(e,r[0])&&(r[0]=o),Su(e,r[1])&&(r[1]=o);var a=e.getStore(),s=e.getDimensionIndex(r[0]),l=e.getDimensionIndex(r[1]);return i&&{progress:function(t,e){for(var r=Pf((t.end-t.start)*i),o=[],u=[],c=t.start,h=0;c<t.end;c++){var d=void 0;if(1===i){var p=a.get(s,c);d=n.dataToPoint(p,null,u)}else o[0]=a.get(s,c),o[1]=a.get(l,c),d=n.dataToPoint(o,null,u);r[h++]=d[0],r[h++]=d[1]}e.setLayout("points",r)}}}}}),t.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)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"line",reset:function(t,e,n){var r=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(isFinite(d)&&d>1){"lttb"===i?t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/d)):"minmax"===i&&t.setData(r.minmaxDownSample(r.mapDimension(l.dim),1/d));var p=void 0;X(i)?p=sg[i]:U(i)&&(p=i),p&&t.setData(r.downSample(r.mapDimension(l.dim),1/d,p,lg))}}}})},function(t){t.registerPainter("canvas",VS)},function(t){cS(qv),t.registerComponentModel(hS),t.registerComponentView(AS),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},vt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},vt)}]);const US=GS("rem",{shouldScale:!0});function XS(t){if("number"==typeof t)return!0;if("string"==typeof t){if(t.startsWith("calc(")||t.startsWith("var(")||t.includes(" ")&&""!==t.trim())return!0;const e=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return t.trim().split(/\s+/).every(t=>e.test(t))}return!1}function YS(t,e="size",n=!0){if(void 0!==t)return XS(t)?n?US(t):t:`var(--${e}-${t})`}function $S(t){return YS(t,"mantine-spacing")}function qS(t){return void 0===t?"var(--mantine-radius-default)":YS(t,"mantine-radius")}function ZS(t){return YS(t,"mantine-font-size")}function KS(t){if(t)return YS(t,"mantine-shadow",!1)}function QS(t){return function(t){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t)}(t)?function(t){let e=t.replace("#","");if(3===e.length){const t=e.split("");e=[t[0],t[0],t[1],t[1],t[2],t[2]].join("")}if(8===e.length){const t=parseInt(e.slice(6,8),16)/255;return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16),a:t}}const n=parseInt(e,16);return{r:n>>16&255,g:n>>8&255,b:255&n,a:1}}(t):t.startsWith("rgb")?function(t){const[e,n,r,i]=t.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:e,g:n,b:r,a:void 0===i?1:i}}(t):t.startsWith("hsl")?function(t){const e=t.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!e)return{r:0,g:0,b:0,a:1};const n=parseInt(e[1],10),r=parseInt(e[2],10)/100,i=parseInt(e[3],10)/100,o=e[5]?parseFloat(e[5]):void 0,a=(1-Math.abs(2*i-1))*r,s=n/60,l=a*(1-Math.abs(s%2-1)),u=i-a/2;let c,h,d;return s>=0&&s<1?(c=a,h=l,d=0):s>=1&&s<2?(c=l,h=a,d=0):s>=2&&s<3?(c=0,h=a,d=l):s>=3&&s<4?(c=0,h=l,d=a):s>=4&&s<5?(c=l,h=0,d=a):(c=a,h=0,d=l),{r:Math.round(255*(c+u)),g:Math.round(255*(h+u)),b:Math.round(255*(d+u)),a:o||1}}(t):{r:0,g:0,b:0,a:1}}function JS(t){return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function tC(t,e=.179){return!t.startsWith("var(")&&function(t){if(t.startsWith("oklch("))return(function(t){const e=t.match(/oklch\((.*?)%\s/);return e?parseFloat(e[1]):null}(t)||0)/100;const{r:e,g:n,b:r}=QS(t),i=n/255,o=r/255;return.2126*JS(e/255)+.7152*JS(i)+.0722*JS(o)}(t)>e}function eC({color:t,theme:e,colorScheme:n}){if("string"!=typeof t)throw new Error("[@mantine/core] Failed to parse color. Expected color to be a string, instead got "+typeof t);if("bright"===t)return{color:t,value:"dark"===n?e.white:e.black,shade:void 0,isThemeColor:!1,isLight:tC("dark"===n?e.white:e.black,e.luminanceThreshold),variable:"--mantine-color-bright"};if("dimmed"===t)return{color:t,value:"dark"===n?e.colors.dark[2]:e.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:tC("dark"===n?e.colors.dark[2]:e.colors.gray[6],e.luminanceThreshold),variable:"--mantine-color-dimmed"};if("white"===t||"black"===t)return{color:t,value:"white"===t?e.white:e.black,shade:void 0,isThemeColor:!1,isLight:tC("white"===t?e.white:e.black,e.luminanceThreshold),variable:`--mantine-color-${t}`};const[r,i]=t.split("."),o=i?Number(i):void 0,a=r in e.colors;if(a){const t=void 0!==o?e.colors[r][o]:e.colors[r][function(t,e){return"number"==typeof t.primaryShade?t.primaryShade:"dark"===e?t.primaryShade.dark:t.primaryShade.light}(e,n||"light")];return{color:r,value:t,shade:o,isThemeColor:a,isLight:tC(t,e.luminanceThreshold),variable:i?`--mantine-color-${r}-${o}`:`--mantine-color-${r}-filled`}}return{color:t,value:t,isThemeColor:a,isLight:tC(t,e.luminanceThreshold),shade:o,variable:void 0}}function nC(t,e){const n=eC({color:t||e.primaryColor,theme:e});return n.variable?`var(${n.variable})`:t}function rC(t){return Object.keys(t).reduce((e,n)=>(void 0!==t[n]&&(e[n]=t[n]),e),{})}function iC(t,e){if("string"!=typeof t||e>1||e<0)return"rgba(0, 0, 0, 1)";if(t.startsWith("var("))return`color-mix(in srgb, ${t}, transparent ${100*(1-e)}%)`;if(t.startsWith("oklch"))return t.includes("/")?t.replace(/\/\s*[\d.]+\s*\)/,`/ ${e})`):t.replace(")",` / ${e})`);const{r:n,g:r,b:i}=QS(t);return`rgba(${n}, ${r}, ${i}, ${e})`}GS("em");US(34),US(26),US(22),US(18),US(16),US(14),US(12),US(14),US(16),US(18),US(20),US(2),US(4),US(8),US(16),US(32),US(10),US(12),US(16),US(20),US(32),US(1),US(3),US(1),US(2),US(1),US(3),US(10),US(15),US(-5),US(7),US(7),US(-5),US(1),US(3),US(20),US(25),US(-5),US(10),US(10),US(-5),US(1),US(3),US(28),US(23),US(-7),US(12),US(12),US(-7),US(1),US(3),US(36),US(28),US(-7),US(17),US(17),US(-7);const oC=(0,HS.createContext)(null);function aC(){const t=(0,HS.useContext)(oC);if(!t)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return t}function sC(t,e,n){const r=aC(),i=r.components[t]?.defaultProps;return{...e,..."function"==typeof i?i(r):i,...rC(n)}}const lC=(0,HS.createContext)(null);function uC(){const t=(0,HS.useContext)(lC);if(!t)throw new Error("[@mantine/core] MantineProvider was not found in tree");return t}function cC(){return uC().env||"default"}function hC(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=hC(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}const dC=function(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=hC(t))&&(r&&(r+=" "),r+=e);return r},pC={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"},fC={};function gC({theme:t,classNames:e,props:n,stylesCtx:r}){return function(t){const e={};return t.forEach(t=>{Object.entries(t).forEach(([t,n])=>{e[t]?e[t]=dC(e[t],n):e[t]=n})}),e}((Array.isArray(e)?e:[e]).map(e=>"function"==typeof e?e(t,n,r):e||fC))}function mC({selector:t,stylesCtx:e,theme:n,classNames:r,props:i}){return gC({theme:n,classNames:r,props:i,stylesCtx:e})[t]}function yC({theme:t,options:e,themeName:n,selector:r,classNamesPrefix:i,classNames:o,classes:a,unstyled:s,className:l,rootSelector:u,props:c,stylesCtx:h,withStaticClasses:d,headless:p,transformedStyles:f}){return dC(function({theme:t,options:e,unstyled:n}){return dC(e?.focusable&&!n&&(t.focusClassName||pC[t.focusRing]),e?.active&&!n&&t.activeClassName)}({theme:t,options:e,unstyled:s||p}),function({themeName:t,theme:e,selector:n,props:r,stylesCtx:i}){return t.map(t=>gC({theme:e,classNames:e.components[t]?.classNames,props:r,stylesCtx:i})?.[n])}({theme:t,themeName:n,selector:r,props:c,stylesCtx:h}),function({options:t,classes:e,selector:n,unstyled:r}){return t?.variant&&!r?e[`${n}--${t.variant}`]:void 0}({options:e,classes:a,selector:r,unstyled:s}),mC({selector:r,stylesCtx:h,theme:t,classNames:o,props:c}),mC({selector:r,stylesCtx:h,theme:t,classNames:f,props:c}),function({selector:t,stylesCtx:e,options:n,props:r,theme:i}){return gC({theme:i,classNames:n?.classNames,props:n?.props||r,stylesCtx:e})[t]}({selector:r,stylesCtx:h,options:e,props:c,theme:t}),function({rootSelector:t,selector:e,className:n}){return t===e?n:void 0}({rootSelector:u,selector:r,className:l}),function({selector:t,classes:e,unstyled:n}){return n?void 0:e[t]}({selector:r,classes:a,unstyled:s||p}),d&&!p&&function({themeName:t,classNamesPrefix:e,selector:n,withStaticClass:r}){return!1===r?[]:t.map(t=>`${e}-${t}-${n}`)}({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:e?.withStaticClass}),e?.className)}function vC({theme:t,styles:e,props:n,stylesCtx:r}){return(Array.isArray(e)?e:[e]).reduce((e,i)=>"function"==typeof i?{...e,...i(t,n,r)}:{...e,...i},{})}function xC({theme:t,themeName:e,props:n,stylesCtx:r,selector:i}){return e.map(e=>vC({theme:t,styles:t.components[e]?.styles,props:n,stylesCtx:r})[i]).reduce((t,e)=>({...t,...e}),{})}function _C({style:t,theme:e}){return Array.isArray(t)?[...t].reduce((t,n)=>({...t,..._C({style:n,theme:e})}),{}):"function"==typeof t?t(e):null==t?{}:t}function bC({vars:t,varsResolver:e,theme:n,props:r,stylesCtx:i,selector:o,themeName:a,headless:s}){return function(t){return t.reduce((t,e)=>(e&&Object.keys(e).forEach(n=>{t[n]={...t[n],...rC(e[n])}}),t),{})}([s?{}:e?.(n,r,i),...a.map(t=>n.components?.[t]?.vars?.(n,r,i)),t?.(n,r,i)])?.[o]}function wC({theme:t,themeName:e,selector:n,options:r,props:i,stylesCtx:o,rootSelector:a,styles:s,style:l,vars:u,varsResolver:c,headless:h,withStylesTransform:d}){return{...!d&&xC({theme:t,themeName:e,props:i,stylesCtx:o,selector:n}),...!d&&vC({theme:t,styles:s,props:i,stylesCtx:o})[n],...!d&&vC({theme:t,styles:r?.styles,props:r?.props||i,stylesCtx:o})[n],...bC({theme:t,props:i,stylesCtx:o,vars:u,varsResolver:c,selector:n,themeName:e,headless:h}),...a===n?_C({style:l,theme:t}):null,..._C({style:r?.style,theme:t})}}function SC({name:t,classes:e,props:n,stylesCtx:r,className:i,style:o,rootSelector:a="root",unstyled:s,classNames:l,styles:u,vars:c,varsResolver:h,attributes:d}){const p=aC(),f=uC().classNamesPrefix,g=uC().withStaticClasses,m=uC().headless,y=(Array.isArray(t)?t:[t]).filter(t=>t),{withStylesTransform:v,getTransformedStyles:x}=function({props:t,stylesCtx:e,themeName:n}){const r=aC(),i=(uC().stylesTransform?.styles)?.();return{getTransformedStyles:o=>i?[...o.map(n=>i(n,{props:t,theme:r,ctx:e})),...n.map(n=>i(r.components[n]?.styles,{props:t,theme:r,ctx:e}))].filter(Boolean):[],withStylesTransform:!!i}}({props:n,stylesCtx:r,themeName:y});return(t,_)=>({className:yC({theme:p,options:_,themeName:y,selector:t,classNamesPrefix:f,classNames:l,classes:e,unstyled:s,className:i,rootSelector:a,props:n,stylesCtx:r,withStaticClasses:g,headless:m,transformedStyles:x([_?.styles,u])}),style:wC({theme:p,themeName:y,selector:t,options:_,props:n,stylesCtx:r,rootSelector:a,styles:u,style:o,vars:c,varsResolver:h,headless:m,withStylesTransform:v}),...d?.[t]})}function CC(t){return Object.keys(t)}function TC(t){return CC(t).reduce((e,n)=>{return void 0!==t[n]?`${e}${r=n,r.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}:${t[n]};`:e;var r},"").trim()}function MC({selector:t,styles:e,media:n,container:r}){const i=e?TC(e):"",o=Array.isArray(n)?n.map(e=>`@media${e.query}{${t}{${TC(e.styles)}}}`):[],a=Array.isArray(r)?r.map(e=>`@container ${e.query}{${t}{${TC(e.styles)}}}`):[];return`${i?`${t}{${i}}`:""}${o.join("")}${a.join("")}`.trim()}function kC(t){const e=uC().getStyleNonce;return(0,l.jsx)("style",{"data-mantine-styles":"inline",nonce:e?.(),dangerouslySetInnerHTML:{__html:MC(t)}})}function IC(t){return t.startsWith("data-")?t:`data-${t}`}function DC(t){return t?"string"==typeof t?{[IC(t)]:!0}:Array.isArray(t)?[...t].reduce((t,e)=>({...t,...DC(e)}),{}):(e=t,Object.keys(e).reduce((t,n)=>{const r=e[n];return void 0===r||""===r||!1===r||null===r||(t[IC(n)]=e[n]),t},{})):null;var e}function RC(t,e){return Array.isArray(t)?[...t].reduce((t,n)=>({...t,...RC(n,e)}),{}):"function"==typeof t?t(e):null==t?{}:t}function PC({theme:t,style:e,vars:n,styleProps:r}){return{...RC(e,t),...RC(n,t),...r}}function AC(t){const{m:e,mx:n,my:r,mt:i,mb:o,ml:a,mr:s,me:l,ms:u,p:c,px:h,py:d,pt:p,pb:f,pl:g,pr:m,pe:y,ps:v,bd:x,bdrs:_,bg:b,c:w,opacity:S,ff:C,fz:T,fw:M,lts:k,ta:I,lh:D,fs:R,tt:P,td:A,w:O,miw:L,maw:N,h:E,mih:z,mah:B,bgsz:F,bgp:V,bgr:H,bga:W,pos:j,top:G,left:U,bottom:X,right:Y,inset:$,display:q,flex:Z,hiddenFrom:K,visibleFrom:Q,lightHidden:J,darkHidden:tt,sx:et,...nt}=t;return{styleProps:rC({m:e,mx:n,my:r,mt:i,mb:o,ml:a,mr:s,me:l,ms:u,p:c,px:h,py:d,pt:p,pb:f,pl:g,pr:m,pe:y,ps:v,bd:x,bg:b,c:w,opacity:S,ff:C,fz:T,fw:M,lts:k,ta:I,lh:D,fs:R,tt:P,td:A,w:O,miw:L,maw:N,h:E,mih:z,mah:B,bgsz:F,bgp:V,bgr:H,bga:W,pos:j,top:G,left:U,bottom:X,right:Y,inset:$,display:q,flex:Z,bdrs:_,hiddenFrom:K,visibleFrom:Q,lightHidden:J,darkHidden:tt,sx:et}),rest:nt}}const OC={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function LC(t,e){const n=eC({color:t,theme:e});return"dimmed"===n.color?"var(--mantine-color-dimmed)":"bright"===n.color?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}const NC={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"},EC=["h1","h2","h3","h4","h5","h6"],zC=["h1","h2","h3","h4","h5","h6"],BC={color:LC,textColor:function(t,e){const n=eC({color:t,theme:e});return n.isThemeColor&&void 0===n.shade?`var(--mantine-color-${n.color}-text)`:LC(t,e)},fontSize:function(t,e){return"string"==typeof t&&t in e.fontSizes?`var(--mantine-font-size-${t})`:"string"==typeof t&&EC.includes(t)?`var(--mantine-${t}-font-size)`:"number"==typeof t||"string"==typeof t?US(t):t},spacing:function(t,e){if("number"==typeof t)return US(t);if("string"==typeof t){const n=t.replace("-","");if(!(n in e.spacing))return US(t);const r=`--mantine-spacing-${n}`;return t.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return t},radius:function(t,e){return"string"==typeof t&&t in e.radius?`var(--mantine-radius-${t})`:"number"==typeof t||"string"==typeof t?US(t):t},identity:function(t){return t},size:function(t){return"number"==typeof t?US(t):t},lineHeight:function(t,e){return"string"==typeof t&&t in e.lineHeights?`var(--mantine-line-height-${t})`:"string"==typeof t&&zC.includes(t)?`var(--mantine-${t}-line-height)`:t},fontFamily:function(t){return"string"==typeof t&&t in NC?NC[t]:t},border:function(t,e){if("number"==typeof t)return US(t);if("string"==typeof t){const[n,r,...i]=t.split(" ").filter(t=>""!==t.trim());let o=`${US(n)}`;return r&&(o+=` ${r}`),i.length>0&&(o+=` ${LC(i.join(" "),e)}`),o.trim()}return t}};function FC(t){return t.replace("(min-width: ","").replace("em)","")}function VC(t,e){return"object"==typeof t&&null!==t&&e in t?t[e]:t}const HC=(0,HS.forwardRef)(({component:t,style:e,__vars:n,className:r,variant:i,mod:o,size:a,hiddenFrom:s,visibleFrom:u,lightHidden:c,darkHidden:h,renderRoot:d,__size:p,...f},g)=>{const m=aC(),y=t||"div",{styleProps:v,rest:x}=AC(f),_=uC().stylesTransform?.sx,b=_?.()?.(v.sx),w=`__m__-${(0,HS.useId)().replace(/[:«»]/g,"")}`,S=function({styleProps:t,data:e,theme:n}){return function({media:t,...e}){return{...e,media:Object.keys(t).sort((t,e)=>Number(FC(t))-Number(FC(e))).map(e=>({query:e,styles:t[e]}))}}(CC(t).reduce((r,i)=>{if("hiddenFrom"===i||"visibleFrom"===i||"sx"===i)return r;const o=e[i],a=Array.isArray(o.property)?o.property:[o.property],s="object"==typeof(l=t[i])&&null!==l?"base"in l?l.base:void 0:l;var l;if(!function(t){if("object"!=typeof t||null===t)return!1;const e=Object.keys(t);return 1!==e.length||"base"!==e[0]}(t[i]))return a.forEach(t=>{r.inlineStyles[t]=BC[o.type](s,n)}),r;r.hasResponsiveStyles=!0;const u=function(t){return"object"==typeof t&&null!==t?CC(t).filter(t=>"base"!==t):[]}(t[i]);return a.forEach(e=>{null!=s&&(r.styles[e]=BC[o.type](s,n)),u.forEach(a=>{const s=`(min-width: ${n.breakpoints[a]})`;r.media[s]={...r.media[s],[e]:BC[o.type](VC(t[i],a),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}({styleProps:v,theme:m,data:OC}),C={ref:g,style:PC({theme:m,style:e,vars:n,styleProps:S.inlineStyles}),className:dC(r,b,{[w]:S.hasResponsiveStyles,"mantine-light-hidden":c,"mantine-dark-hidden":h,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${u}`]:u}),"data-variant":i,"data-size":XS(a)?void 0:a||void 0,size:p,...DC(o),...x};return(0,l.jsxs)(l.Fragment,{children:[S.hasResponsiveStyles&&(0,l.jsx)(kC,{selector:`.${w}`,styles:S.styles,media:S.media}),"function"==typeof d?d(C):(0,l.jsx)(y,{...C})]})});HC.displayName="@mantine/core/Box";const WC=HC;function jC(t){return t}function GC(t){const e=(0,HS.forwardRef)(t);return e.extend=jC,e.withProps=t=>{const n=(0,HS.forwardRef)((n,r)=>(0,l.jsx)(e,{...t,...n,ref:r}));return n.extend=e.extend,n.displayName=`WithProps(${e.displayName})`,n},e}function UC(t){const e=(0,HS.createContext)(null);return[({children:t,value:n})=>(0,l.jsx)(e.Provider,{value:n,children:t}),()=>{const n=(0,HS.useContext)(e);if(null===n)throw new Error(t);return n}]}const[XC,YC]=UC("Table component was not found in the tree");var $C={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function qC(t,e){if(!e)return;const n={};return e.columnBorder&&t.withColumnBorders&&(n["data-with-column-border"]=!0),e.rowBorder&&t.withRowBorders&&(n["data-with-row-border"]=!0),e.striped&&t.striped&&(n["data-striped"]=t.striped),e.highlightOnHover&&t.highlightOnHover&&(n["data-hover"]=!0),e.captionSide&&t.captionSide&&(n["data-side"]=t.captionSide),e.stickyHeader&&t.stickyHeader&&(n["data-sticky"]=!0),n}function ZC(t,e){const n=`Table${t.charAt(0).toUpperCase()}${t.slice(1)}`,r=GC((r,i)=>{const o=sC(n,{},r),{classNames:a,className:s,style:u,styles:c,...h}=o,d=YC();return(0,l.jsx)(WC,{component:t,ref:i,...qC(d,e),...d.getStyles(t,{className:s,classNames:a,style:u,styles:c,props:o}),...h})});return r.displayName=`@mantine/core/${n}`,r.classes=$C,r}const KC=ZC("th",{columnBorder:!0}),QC=ZC("td",{columnBorder:!0}),JC=ZC("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),tT=ZC("thead",{stickyHeader:!0}),eT=ZC("tbody"),nT=ZC("tfoot"),rT=ZC("caption",{captionSide:!0});function iT({data:t}){return(0,l.jsxs)(l.Fragment,{children:[t.caption&&(0,l.jsx)(rT,{children:t.caption}),t.head&&(0,l.jsx)(tT,{children:(0,l.jsx)(JC,{children:t.head.map((t,e)=>(0,l.jsx)(KC,{children:t},e))})}),t.body&&(0,l.jsx)(eT,{children:t.body.map((t,e)=>(0,l.jsx)(JC,{children:t.map((t,e)=>(0,l.jsx)(QC,{children:t},e))},e))}),t.foot&&(0,l.jsx)(nT,{children:(0,l.jsx)(JC,{children:t.foot.map((t,e)=>(0,l.jsx)(KC,{children:t},e))})})]})}iT.displayName="@mantine/core/TableDataRenderer";var oT="undefined"!=typeof document?HS.useLayoutEffect:function(){};const aT={...HS}.useInsertionEffect||(t=>t());function sT(){return"undefined"!=typeof window}function lT(t){return hT(t)?(t.nodeName||"").toLowerCase():"#document"}function uT(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function cT(t){var e;return null==(e=(hT(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function hT(t){return!!sT()&&(t instanceof Node||t instanceof uT(t).Node)}function dT(t){return!!sT()&&(t instanceof Element||t instanceof uT(t).Element)}function pT(t){return!!sT()&&(t instanceof HTMLElement||t instanceof uT(t).HTMLElement)}function fT(t){return!(!sT()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof uT(t).ShadowRoot)}const gT=new Set(["inline","contents"]);function mT(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=IT(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!gT.has(i)}const yT=new Set(["table","td","th"]);function vT(t){return yT.has(lT(t))}const xT=[":popover-open",":modal"];function _T(t){return xT.some(e=>{try{return t.matches(e)}catch(t){return!1}})}const bT=["transform","translate","scale","rotate","perspective"],wT=["transform","translate","scale","rotate","perspective","filter"],ST=["paint","layout","strict","content"];function CT(t){const e=TT(),n=dT(t)?IT(t):t;return bT.some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||wT.some(t=>(n.willChange||"").includes(t))||ST.some(t=>(n.contain||"").includes(t))}function TT(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const MT=new Set(["html","body","#document"]);function kT(t){return MT.has(lT(t))}function IT(t){return uT(t).getComputedStyle(t)}function DT(t){return dT(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function RT(t){if("html"===lT(t))return t;const e=t.assignedSlot||t.parentNode||fT(t)&&t.host||cT(t);return fT(e)?e.host:e}function PT(t){const e=RT(t);return kT(e)?t.ownerDocument?t.ownerDocument.body:t.body:pT(e)&&mT(e)?e:PT(e)}function AT(t,e,n){var r;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=PT(t),o=i===(null==(r=t.ownerDocument)?void 0:r.body),a=uT(i);if(o){const t=OT(a);return e.concat(a,a.visualViewport||[],mT(i)?i:[],t&&n?AT(t):[])}return e.concat(i,AT(i,[],n))}function OT(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}const LT=["top","right","bottom","left"],NT=Math.min,ET=Math.max,zT=Math.round,BT=Math.floor,FT=t=>({x:t,y:t}),VT={left:"right",right:"left",bottom:"top",top:"bottom"},HT={start:"end",end:"start"};function WT(t,e,n){return ET(t,NT(e,n))}function jT(t,e){return"function"==typeof t?t(e):t}function GT(t){return t.split("-")[0]}function UT(t){return t.split("-")[1]}function XT(t){return"x"===t?"y":"x"}function YT(t){return"y"===t?"height":"width"}const $T=new Set(["top","bottom"]);function qT(t){return $T.has(GT(t))?"y":"x"}function ZT(t){return XT(qT(t))}function KT(t){return t.replace(/start|end/g,t=>HT[t])}const QT=["left","right"],JT=["right","left"],tM=["top","bottom"],eM=["bottom","top"];function nM(t){return t.replace(/left|right|bottom|top/g,t=>VT[t])}function rM(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function iM(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function oM(t,e,n){let{reference:r,floating:i}=t;const o=qT(e),a=ZT(e),s=YT(a),l=GT(e),u="y"===o,c=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,d=r[s]/2-i[s]/2;let p;switch(l){case"top":p={x:c,y:r.y-i.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-i.width,y:h};break;default:p={x:r.x,y:r.y}}switch(UT(e)){case"start":p[a]-=d*(n&&u?-1:1);break;case"end":p[a]+=d*(n&&u?-1:1)}return p}async function aM(t,e){var n;void 0===e&&(e={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=jT(e,t),f=rM(p),g=s[d?"floating"===h?"reference":"floating":h],m=iM(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===h?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),x=await(null==o.isElement?void 0:o.isElement(v))&&await(null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},_=iM(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(m.top-_.top+f.top)/x.y,bottom:(_.bottom-m.bottom+f.bottom)/x.y,left:(m.left-_.left+f.left)/x.x,right:(_.right-m.right+f.right)/x.x}}function sM(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function lM(t){return LT.some(e=>t[e]>=0)}function uM(t){const e=NT(...t.map(t=>t.left)),n=NT(...t.map(t=>t.top));return{x:e,y:n,width:ET(...t.map(t=>t.right))-e,height:ET(...t.map(t=>t.bottom))-n}}const cM=new Set(["left","top"]);function hM(t){const e=IT(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=pT(t),o=i?t.offsetWidth:n,a=i?t.offsetHeight:r,s=zT(n)!==o||zT(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function dM(t){return dT(t)?t:t.contextElement}function pM(t){const e=dM(t);if(!pT(e))return FT(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:o}=hM(e);let a=(o?zT(n.width):n.width)/r,s=(o?zT(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const fM=FT(0);function gM(t){const e=uT(t);return TT()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:fM}function mM(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),o=dM(t);let a=FT(1);e&&(r?dT(r)&&(a=pM(r)):a=pM(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==uT(t))&&e}(o,n,r)?gM(o):FT(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,h=i.height/a.y;if(o){const t=uT(o),e=r&&dT(r)?uT(r):r;let n=t,i=OT(n);for(;i&&r&&e!==n;){const t=pM(i),e=i.getBoundingClientRect(),r=IT(i),o=e.left+(i.clientLeft+parseFloat(r.paddingLeft))*t.x,a=e.top+(i.clientTop+parseFloat(r.paddingTop))*t.y;l*=t.x,u*=t.y,c*=t.x,h*=t.y,l+=o,u+=a,n=uT(i),i=OT(n)}}return iM({width:c,height:h,x:l,y:u})}function yM(t,e){const n=DT(t).scrollLeft;return e?e.left+n:mM(cT(t)).left+n}function vM(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-yM(t,n),y:n.top+e.scrollTop}}const xM=new Set(["absolute","fixed"]);function _M(t,e,n){let r;if("viewport"===e)r=function(t,e){const n=uT(t),r=cT(t),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const t=TT();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,l=i.offsetTop)}const u=yM(r);if(u<=0){const t=r.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-e.clientWidth-i);a<=25&&(o-=a)}else u<=25&&(o+=u);return{width:o,height:a,x:s,y:l}}(t,n);else if("document"===e)r=function(t){const e=cT(t),n=DT(t),r=t.ownerDocument.body,i=ET(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=ET(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+yM(t);const s=-n.scrollTop;return"rtl"===IT(r).direction&&(a+=ET(e.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(cT(t));else if(dT(e))r=function(t,e){const n=mM(t,!0,"fixed"===e),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=pT(t)?pM(t):FT(1);return{width:t.clientWidth*o.x,height:t.clientHeight*o.y,x:i*o.x,y:r*o.y}}(e,n);else{const n=gM(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return iM(r)}function bM(t,e){const n=RT(t);return!(n===e||!dT(n)||kT(n))&&("fixed"===IT(n).position||bM(n,e))}function wM(t,e,n){const r=pT(e),i=cT(e),o="fixed"===n,a=mM(t,!0,o,e);let s={scrollLeft:0,scrollTop:0};const l=FT(0);function u(){l.x=yM(i)}if(r||!r&&!o)if(("body"!==lT(e)||mT(i))&&(s=DT(e)),r){const t=mM(e,!0,o,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else i&&u();o&&!r&&i&&u();const c=!i||r||o?FT(0):vM(i,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function SM(t){return"static"===IT(t).position}function CM(t,e){if(!pT(t)||"fixed"===IT(t).position)return null;if(e)return e(t);let n=t.offsetParent;return cT(t)===n&&(n=n.ownerDocument.body),n}function TM(t,e){const n=uT(t);if(_T(t))return n;if(!pT(t)){let e=RT(t);for(;e&&!kT(e);){if(dT(e)&&!SM(e))return e;e=RT(e)}return n}let r=CM(t,e);for(;r&&vT(r)&&SM(r);)r=CM(r,e);return r&&kT(r)&&SM(r)&&!CT(r)?n:r||function(t){let e=RT(t);for(;pT(e)&&!kT(e);){if(CT(e))return e;if(_T(e))return null;e=RT(e)}return null}(t)||n}const MM={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const o="fixed"===i,a=cT(r),s=!!e&&_T(e.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=FT(1);const c=FT(0),h=pT(r);if((h||!h&&!o)&&(("body"!==lT(r)||mT(a))&&(l=DT(r)),pT(r))){const t=mM(r);u=pM(r),c.x=t.x+r.clientLeft,c.y=t.y+r.clientTop}const d=!a||h||o?FT(0):vM(a,l);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-l.scrollTop*u.y+c.y+d.y}},getDocumentElement:cT,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[..."clippingAncestors"===n?_T(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let r=AT(t,[],!1).filter(t=>dT(t)&&"body"!==lT(t)),i=null;const o="fixed"===IT(t).position;let a=o?RT(t):t;for(;dT(a)&&!kT(a);){const e=IT(a),n=CT(a);n||"fixed"!==e.position||(i=null),(o?!n&&!i:!n&&"static"===e.position&&i&&xM.has(i.position)||mT(a)&&!n&&bM(t,a))?r=r.filter(t=>t!==a):i=e,a=RT(a)}return e.set(t,r),r}(e,this._c):[].concat(n),r],a=o[0],s=o.reduce((t,n)=>{const r=_M(e,n,i);return t.top=ET(r.top,t.top),t.right=NT(r.right,t.right),t.bottom=NT(r.bottom,t.bottom),t.left=ET(r.left,t.left),t},_M(e,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:TM,getElementRects:async function(t){const e=this.getOffsetParent||TM,n=this.getDimensions,r=await n(t.floating);return{reference:wM(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=hM(t);return{width:e,height:n}},getScale:pM,isElement:dT,isRTL:function(t){return"rtl"===IT(t).direction}};function kM(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function IM(t,e,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=dM(t),c=i||o?[...u?AT(u):[],...AT(e)]:[];c.forEach(t=>{i&&t.addEventListener("scroll",n,{passive:!0}),o&&t.addEventListener("resize",n)});const h=u&&s?function(t,e){let n,r=null;const i=cT(t);function o(){var t;clearTimeout(n),null==(t=r)||t.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const u=t.getBoundingClientRect(),{left:c,top:h,width:d,height:p}=u;if(s||e(),!d||!p)return;const f={rootMargin:-BT(h)+"px "+-BT(i.clientWidth-(c+d))+"px "+-BT(i.clientHeight-(h+p))+"px "+-BT(c)+"px",threshold:ET(0,NT(1,l))||1};let g=!0;function m(e){const r=e[0].intersectionRatio;if(r!==l){if(!g)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||kM(u,t.getBoundingClientRect())||a(),g=!1}try{r=new IntersectionObserver(m,{...f,root:i.ownerDocument})}catch(t){r=new IntersectionObserver(m,f)}r.observe(t)}(!0),o}(u,n):null;let d,p=-1,f=null;a&&(f=new ResizeObserver(t=>{let[r]=t;r&&r.target===u&&f&&(f.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var t;null==(t=f)||t.observe(e)})),n()}),u&&!l&&f.observe(u),f.observe(e));let g=l?mM(t):null;return l&&function e(){const r=mM(t);g&&!kM(g,r)&&n(),g=r,d=requestAnimationFrame(e)}(),n(),()=>{var t;c.forEach(t=>{i&&t.removeEventListener("scroll",n),o&&t.removeEventListener("resize",n)}),null==h||h(),null==(t=f)||t.disconnect(),f=null,l&&cancelAnimationFrame(d)}}const DM=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=e,l=await async function(t,e){const{placement:n,platform:r,elements:i}=t,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=GT(n),s=UT(n),l="y"===qT(n),u=cM.has(a)?-1:1,c=o&&l?-1:1,h=jT(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:f}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&"number"==typeof f&&(p="end"===s?-1*f:f),l?{x:p*c,y:d*u}:{x:d*u,y:p*c}}(e,t);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},RM=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=jT(t,e),u={x:n,y:r},c=await aM(e,l),h=qT(GT(i)),d=XT(h);let p=u[d],f=u[h];if(o){const t="y"===d?"bottom":"right";p=WT(p+c["y"===d?"top":"left"],p,p-c[t])}if(a){const t="y"===h?"bottom":"right";f=WT(f+c["y"===h?"top":"left"],f,f-c[t])}const g=s.fn({...e,[d]:p,[h]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[d]:o,[h]:a}}}}}},PM=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...m}=jT(t,e);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=GT(i),v=qT(s),x=GT(s)===s,_=await(null==l.isRTL?void 0:l.isRTL(u.floating)),b=d||(x||!g?[nM(s)]:function(t){const e=nM(t);return[KT(t),e,KT(e)]}(s)),w="none"!==f;!d&&w&&b.push(...function(t,e,n,r){const i=UT(t);let o=function(t,e,n){switch(t){case"top":case"bottom":return n?e?JT:QT:e?QT:JT;case"left":case"right":return e?tM:eM;default:return[]}}(GT(t),"start"===n,r);return i&&(o=o.map(t=>t+"-"+i),e&&(o=o.concat(o.map(KT)))),o}(s,g,f,_));const S=[s,...b],C=await aM(e,m),T=[];let M=(null==(r=o.flip)?void 0:r.overflows)||[];if(c&&T.push(C[y]),h){const t=function(t,e,n){void 0===n&&(n=!1);const r=UT(t),i=ZT(t),o=YT(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[o]>e.floating[o]&&(a=nM(a)),[a,nM(a)]}(i,a,_);T.push(C[t[0]],C[t[1]])}if(M=[...M,{placement:i,overflows:T}],!T.every(t=>t<=0)){var k,I;const t=((null==(k=o.flip)?void 0:k.index)||0)+1,e=S[t];if(e&&("alignment"!==h||v===qT(e)||M.every(t=>qT(t.placement)!==v||t.overflows[0]>0)))return{data:{index:t,overflows:M},reset:{placement:e}};let n=null==(I=M.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var D;const t=null==(D=M.filter(t=>{if(w){const e=qT(t.placement);return e===v||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:D[0];t&&(n=t);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},AM=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:i,rects:o,platform:a,elements:s}=e,{apply:l=()=>{},...u}=jT(t,e),c=await aM(e,u),h=GT(i),d=UT(i),p="y"===qT(i),{width:f,height:g}=o.floating;let m,y;"top"===h||"bottom"===h?(m=h,y=d===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=h,m="end"===d?"top":"bottom");const v=g-c.top-c.bottom,x=f-c.left-c.right,_=NT(g-c[m],v),b=NT(f-c[y],x),w=!e.middlewareData.shift;let S=_,C=b;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(C=x),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(S=v),w&&!d){const t=ET(c.left,0),e=ET(c.right,0),n=ET(c.top,0),r=ET(c.bottom,0);p?C=f-2*(0!==t||0!==e?t+e:ET(c.left,c.right)):S=g-2*(0!==n||0!==r?n+r:ET(c.top,c.bottom))}await l({...e,availableWidth:C,availableHeight:S});const T=await a.getDimensions(s.floating);return f!==T.width||g!==T.height?{reset:{rects:!0}}:{}}}},OM=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...i}=jT(t,e);switch(r){case"referenceHidden":{const t=sM(await aM(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:lM(t)}}}case"escaped":{const t=sM(await aM(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:lM(t)}}}default:return{}}}}},LM=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=e,{element:u,padding:c=0}=jT(t,e)||{};if(null==u)return{};const h=rM(c),d={x:n,y:r},p=ZT(i),f=YT(p),g=await a.getDimensions(u),m="y"===p,y=m?"top":"left",v=m?"bottom":"right",x=m?"clientHeight":"clientWidth",_=o.reference[f]+o.reference[p]-d[p]-o.floating[f],b=d[p]-o.reference[p],w=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let S=w?w[x]:0;S&&await(null==a.isElement?void 0:a.isElement(w))||(S=s.floating[x]||o.floating[f]);const C=_/2-b/2,T=S/2-g[f]/2-1,M=NT(h[y],T),k=NT(h[v],T),I=M,D=S-g[f]-k,R=S/2-g[f]/2+C,P=WT(I,R,D),A=!l.arrow&&null!=UT(i)&&R!==P&&o.reference[f]/2-(R<I?M:k)-g[f]/2<0,O=A?R<I?R-I:R-D:0;return{[p]:d[p]+O,data:{[p]:P,centerOffset:R-P-O,...A&&{alignmentOffset:O}},reset:A}}}),NM=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:r,rects:i,platform:o,strategy:a}=e,{padding:s=2,x:l,y:u}=jT(t,e),c=Array.from(await(null==o.getClientRects?void 0:o.getClientRects(r.reference))||[]),h=function(t){const e=t.slice().sort((t,e)=>t.y-e.y),n=[];let r=null;for(let t=0;t<e.length;t++){const i=e[t];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(t=>iM(uM(t)))}(c),d=iM(uM(c)),p=rM(s),f=await o.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=l&&null!=u)return h.find(t=>l>t.left-p.left&&l<t.right+p.right&&u>t.top-p.top&&u<t.bottom+p.bottom)||d;if(h.length>=2){if("y"===qT(n)){const t=h[0],e=h[h.length-1],r="top"===GT(n),i=t.top,o=e.bottom,a=r?t.left:e.left,s=r?t.right:e.right;return{top:i,bottom:o,left:a,right:s,width:s-a,height:o-i,x:a,y:i}}const t="left"===GT(n),e=ET(...h.map(t=>t.right)),r=NT(...h.map(t=>t.left)),i=h.filter(n=>t?n.left===r:n.right===e),o=i[0].top,a=i[i.length-1].bottom;return{top:o,bottom:a,left:r,right:e,width:e-r,height:a-o,x:r,y:o}}return d}},floating:r.floating,strategy:a});return i.reference.x!==f.reference.x||i.reference.y!==f.reference.y||i.reference.width!==f.reference.width||i.reference.height!==f.reference.height?{reset:{rects:f}}:{}}}},EM=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=jT(t,e),c={x:n,y:r},h=qT(i),d=XT(h);let p=c[d],f=c[h];const g=jT(s,e),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const t="y"===d?"height":"width",e=o.reference[d]-o.floating[t]+m.mainAxis,n=o.reference[d]+o.reference[t]-m.mainAxis;p<e?p=e:p>n&&(p=n)}if(u){var y,v;const t="y"===d?"width":"height",e=cM.has(GT(i)),n=o.reference[h]-o.floating[t]+(e&&(null==(y=a.offset)?void 0:y[h])||0)+(e?0:m.crossAxis),r=o.reference[h]+o.reference[t]+(e?0:(null==(v=a.offset)?void 0:v[h])||0)-(e?m.crossAxis:0);f<n?f=n:f>r&&(f=r)}return{[d]:p,[h]:f}}}};var zM="undefined"!=typeof document?HS.useLayoutEffect:function(){};function BM(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;0!==r--;)if(!BM(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;0!==r--;){const n=i[r];if(!("_owner"===n&&t.$$typeof||BM(t[n],e[n])))return!1}return!0}return t!=t&&e!=e}function FM(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function VM(t,e){const n=FM(t);return Math.round(e*n)/n}function HM(t){const e=HS.useRef(t);return zM(()=>{e.current=t}),e}const WM=t=>({name:"arrow",options:t,fn(e){const{element:n,padding:r}="function"==typeof t?t(e):t;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?LM({element:n.current,padding:r}).fn(e):{}:n?LM({element:n,padding:r}).fn(e):{};var i}}),jM=(t,e)=>({...DM(t),options:[t,e]}),GM=(t,e)=>({...EM(t),options:[t,e]}),UM=(t,e)=>({...PM(t),options:[t,e]}),XM=(t,e)=>({...OM(t),options:[t,e]}),YM=(t,e)=>({...NM(t),options:[t,e]});function $M(t){const e=HS.useRef(void 0),n=HS.useCallback(e=>{const n=t.map(t=>{if(null!=t){if("function"==typeof t){const n=t,r=n(e);return"function"==typeof r?r:()=>{n(null)}}return t.current=e,()=>{t.current=null}}});return()=>{n.forEach(t=>null==t?void 0:t())}},t);return HS.useMemo(()=>t.every(t=>null==t)?null:t=>{e.current&&(e.current(),e.current=void 0),null!=t&&(e.current=n(t))},t)}const qM={...HS};let ZM=!1,KM=0;const QM=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+KM++,JM=qM.useId||function(){const[t,e]=HS.useState(()=>ZM?QM():void 0);return oT(()=>{null==t&&e(QM())},[]),HS.useEffect(()=>{ZM=!0},[]),t};const tk=HS.createContext(null),ek=HS.createContext(null);function nk(t){const{open:e=!1,onOpenChange:n,elements:r}=t,i=JM(),o=HS.useRef({}),[a]=HS.useState(()=>function(){const t=new Map;return{emit(e,n){var r;null==(r=t.get(e))||r.forEach(t=>t(n))},on(e,n){t.has(e)||t.set(e,new Set),t.get(e).add(n)},off(e,n){var r;null==(r=t.get(e))||r.delete(n)}}}()),s=null!=((null==(l=HS.useContext(tk))?void 0:l.id)||null);var l;const[u,c]=HS.useState(r.reference),h=function(t){const e=HS.useRef(()=>{});return aT(()=>{e.current=t}),HS.useCallback(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null==e.current?void 0:e.current(...n)},[])}((t,e,r)=>{o.current.openEvent=t?e:void 0,a.emit("openchange",{open:t,event:e,reason:r,nested:s}),null==n||n(t,e,r)}),d=HS.useMemo(()=>({setPositionReference:c}),[]),p=HS.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return HS.useMemo(()=>({dataRef:o,open:e,onOpenChange:h,elements:p,events:a,floatingId:i,refs:d}),[e,h,p,a,i,d])}function rk(t){void 0===t&&(t={});const{nodeId:e}=t,n=nk({...t,elements:{reference:null,floating:null,...t.elements}}),i=t.rootContext||n,o=i.elements,[a,s]=HS.useState(null),[l,u]=HS.useState(null),c=(null==o?void 0:o.domReference)||a,h=HS.useRef(null),d=HS.useContext(ek);oT(()=>{c&&(h.current=c)},[c]);const p=function(t){void 0===t&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=t,[h,d]=HS.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[p,f]=HS.useState(i);BM(p,i)||f(i);const[g,m]=HS.useState(null),[y,v]=HS.useState(null),x=HS.useCallback(t=>{t!==S.current&&(S.current=t,m(t))},[]),_=HS.useCallback(t=>{t!==C.current&&(C.current=t,v(t))},[]),b=a||g,w=s||y,S=HS.useRef(null),C=HS.useRef(null),T=HS.useRef(h),M=null!=u,k=HM(u),I=HM(o),D=HM(c),R=HS.useCallback(()=>{if(!S.current||!C.current)return;const t={placement:e,strategy:n,middleware:p};I.current&&(t.platform=I.current),((t,e,n)=>{const r=new Map,i={platform:MM,...n},o={...i.platform,_c:r};return(async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let u=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:h}=oM(u,r,l),d=r,p={},f=0;for(let n=0;n<s.length;n++){const{name:o,fn:g}=s[n],{x:m,y,data:v,reset:x}=await g({x:c,y:h,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:t,floating:e}});c=null!=m?m:c,h=null!=y?y:h,p={...p,[o]:{...p[o],...v}},x&&f<=50&&(f++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(u=!0===x.rects?await a.getElementRects({reference:t,floating:e,strategy:i}):x.rects),({x:c,y:h}=oM(u,d,l))),n=-1)}return{x:c,y:h,placement:d,strategy:i,middlewareData:p}})(t,e,{...i,platform:o})})(S.current,C.current,t).then(t=>{const e={...t,isPositioned:!1!==D.current};P.current&&!BM(T.current,e)&&(T.current=e,r(()=>{d(e)}))})},[p,e,n,I,D]);zM(()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,d(t=>({...t,isPositioned:!1})))},[c]);const P=HS.useRef(!1);zM(()=>(P.current=!0,()=>{P.current=!1}),[]),zM(()=>{if(b&&(S.current=b),w&&(C.current=w),b&&w){if(k.current)return k.current(b,w,R);R()}},[b,w,R,k,M]);const A=HS.useMemo(()=>({reference:S,floating:C,setReference:x,setFloating:_}),[x,_]),O=HS.useMemo(()=>({reference:b,floating:w}),[b,w]),L=HS.useMemo(()=>{const t={position:n,left:0,top:0};if(!O.floating)return t;const e=VM(O.floating,h.x),r=VM(O.floating,h.y);return l?{...t,transform:"translate("+e+"px, "+r+"px)",...FM(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:r}},[n,l,O.floating,h.x,h.y]);return HS.useMemo(()=>({...h,update:R,refs:A,elements:O,floatingStyles:L}),[h,R,A,O,L])}({...t,elements:{...o,...l&&{reference:l}}}),f=HS.useCallback(t=>{const e=dT(t)?{getBoundingClientRect:()=>t.getBoundingClientRect(),getClientRects:()=>t.getClientRects(),contextElement:t}:t;u(e),p.refs.setReference(e)},[p.refs]),g=HS.useCallback(t=>{(dT(t)||null===t)&&(h.current=t,s(t)),(dT(p.refs.reference.current)||null===p.refs.reference.current||null!==t&&!dT(t))&&p.refs.setReference(t)},[p.refs]),m=HS.useMemo(()=>({...p.refs,setReference:g,setPositionReference:f,domReference:h}),[p.refs,g,f]),y=HS.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),v=HS.useMemo(()=>({...p,...i,refs:m,elements:y,nodeId:e}),[p,m,y,e,i]);return oT(()=>{i.dataRef.current.floatingContext=v;const t=null==d?void 0:d.nodesRef.current.find(t=>t.id===e);t&&(t.context=v)}),HS.useMemo(()=>({...p,context:v,refs:m,elements:y}),[p,m,y,v])}const[ik,ok]=UC("ScrollArea.Root component was not found in tree");function ak(t){const e=(0,HS.useRef)(t);return(0,HS.useEffect)(()=>{e.current=t}),(0,HS.useMemo)(()=>(...t)=>e.current?.(...t),[])}const sk="undefined"!=typeof document?HS.useLayoutEffect:HS.useEffect;function lk(t,e){const n=ak(e);sk(()=>{let e=0;if(t){const r=new ResizeObserver(()=>{cancelAnimationFrame(e),e=window.requestAnimationFrame(n)});return r.observe(t),()=>{window.cancelAnimationFrame(e),r.unobserve(t)}}},[t,n])}const uk=(0,HS.forwardRef)((t,e)=>{const{style:n,...r}=t,i=ok(),[o,a]=(0,HS.useState)(0),[s,u]=(0,HS.useState)(0),c=Boolean(o&&s);return lk(i.scrollbarX,()=>{const t=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(t),u(t)}),lk(i.scrollbarY,()=>{const t=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(t),a(t)}),c?(0,l.jsx)("div",{...r,ref:e,style:{...n,width:o,height:s}}):null}),ck=(0,HS.forwardRef)((t,e)=>{const n=ok(),r=Boolean(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,l.jsx)(uk,{...t,ref:e}):null});function hk(t,e){if("function"==typeof t)return t(e);"object"==typeof t&&null!==t&&"current"in t&&(t.current=e)}function dk(...t){return(0,HS.useCallback)(function(...t){const e=new Map;return n=>{if(t.forEach(t=>{const r=hk(t,n);r&&e.set(t,r)}),e.size>0)return()=>{t.forEach(t=>{const n=e.get(t);n&&"function"==typeof n?n():hk(t,null)}),e.clear()}}}(...t),t)}const pk={scrollHideDelay:1e3,type:"hover"},fk=(0,HS.forwardRef)((t,e)=>{const{type:n,scrollHideDelay:r,scrollbars:i,getStyles:o,...a}=sC("ScrollAreaRoot",pk,t),[s,u]=(0,HS.useState)(null),[c,h]=(0,HS.useState)(null),[d,p]=(0,HS.useState)(null),[f,g]=(0,HS.useState)(null),[m,y]=(0,HS.useState)(null),[v,x]=(0,HS.useState)(0),[_,b]=(0,HS.useState)(0),[w,S]=(0,HS.useState)(!1),[C,T]=(0,HS.useState)(!1),M=dk(e,t=>u(t));return(0,l.jsx)(ik,{value:{type:n,scrollHideDelay:r,scrollArea:s,viewport:c,onViewportChange:h,content:d,onContentChange:p,scrollbarX:f,onScrollbarXChange:g,scrollbarXEnabled:w,onScrollbarXEnabledChange:S,scrollbarY:m,onScrollbarYChange:y,scrollbarYEnabled:C,onScrollbarYEnabledChange:T,onCornerWidthChange:x,onCornerHeightChange:b,getStyles:o},children:(0,l.jsx)(WC,{...a,ref:M,__vars:{"--sa-corner-width":"xy"!==i?"0px":`${v}px`,"--sa-corner-height":"xy"!==i?"0px":`${_}px`}})})});function gk(t,e){const{delay:n,flushOnUnmount:r,leading:i}="number"==typeof e?{delay:e,flushOnUnmount:!1,leading:!1}:e,o=ak(t),a=(0,HS.useRef)(0),s=(0,HS.useMemo)(()=>{const t=Object.assign((...e)=>{window.clearTimeout(a.current);const r=t._isFirstCall;function s(){window.clearTimeout(a.current),a.current=0,t._isFirstCall=!0}if(t._isFirstCall=!1,i&&r){o(...e);const r=()=>{s()},i=()=>{0!==a.current&&(s(),o(...e))},l=()=>{s()};return t.flush=i,t.cancel=l,void(a.current=window.setTimeout(r,n))}if(i&&!r){const r=()=>{0!==a.current&&(s(),o(...e))},i=()=>{s()};t.flush=r,t.cancel=i;const l=()=>{s()};return void(a.current=window.setTimeout(l,n))}const l=()=>{0!==a.current&&(s(),o(...e))};t.flush=l,t.cancel=()=>{s()},a.current=window.setTimeout(l,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return t},[o,n,i]);return(0,HS.useEffect)(()=>()=>{r?s.flush():s.cancel()},[s,r]),s}fk.displayName="@mantine/core/ScrollAreaRoot";const mk=(0,HS.createContext)({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function yk(){return(0,HS.useContext)(mk)}function vk(t,e){const n=t/e;return Number.isNaN(n)?0:n}function xk(t){const e=vk(t.viewport,t.content),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=(t.scrollbar.size-n)*e;return Math.max(r,18)}function _k(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function bk(t,e,n="ltr"){const r=xk(e),i=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=e.scrollbar.size-i,a=e.content-e.viewport,s=o-r,l=function(t,[e,n]){return Math.min(n,Math.max(e,t))}(t,"ltr"===n?[0,a]:[-1*a,0]);return _k([0,a],[0,s])(l)}function wk(t,e){return t>0&&t<e}function Sk(t){return t?parseInt(t,10):0}function Ck(t,e,{checkForDefaultPrevented:n=!0}={}){return r=>{t?.(r),!1!==n&&r.defaultPrevented||e?.(r)}}const[Tk,Mk]=UC("ScrollAreaScrollbar was not found in tree"),kk=(0,HS.forwardRef)((t,e)=>{const{sizes:n,hasThumb:r,onThumbChange:i,onThumbPointerUp:o,onThumbPointerDown:a,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:h,...d}=t,p=ok(),[f,g]=(0,HS.useState)(null),m=dk(e,t=>g(t)),y=(0,HS.useRef)(null),v=(0,HS.useRef)(""),{viewport:x}=p,_=n.content-n.viewport,b=ak(c),w=ak(s),S=gk(h,10),C=t=>{if(y.current){const e=t.clientX-y.current.left,n=t.clientY-y.current.top;u({x:e,y:n})}};return(0,HS.useEffect)(()=>{const t=t=>{const e=t.target,n=f?.contains(e);n&&b(t,_)};return document.addEventListener("wheel",t,{passive:!1}),()=>document.removeEventListener("wheel",t,{passive:!1})},[x,f,_,b]),(0,HS.useEffect)(w,[n,w]),lk(f,S),lk(p.content,S),(0,l.jsx)(Tk,{value:{scrollbar:f,hasThumb:r,onThumbChange:ak(i),onThumbPointerUp:ak(o),onThumbPositionChange:w,onThumbPointerDown:ak(a)},children:(0,l.jsx)("div",{...d,ref:m,"data-mantine-scrollbar":!0,style:{position:"absolute",...d.style},onPointerDown:Ck(t.onPointerDown,t=>{t.preventDefault(),0===t.button&&(t.target.setPointerCapture(t.pointerId),y.current=f.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",C(t))}),onPointerMove:Ck(t.onPointerMove,C),onPointerUp:Ck(t.onPointerUp,t=>{const e=t.target;e.hasPointerCapture(t.pointerId)&&(t.preventDefault(),e.releasePointerCapture(t.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=v.current,y.current=null}})})}),Ik=(0,HS.forwardRef)((t,e)=>{const{sizes:n,onSizesChange:r,style:i,...o}=t,a=ok(),[s,u]=(0,HS.useState)(),c=(0,HS.useRef)(null),h=dk(e,c,a.onScrollbarXChange);return(0,HS.useEffect)(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,l.jsx)(kk,{"data-orientation":"horizontal",...o,ref:h,sizes:n,style:{...i,"--sa-thumb-width":`${xk(n)}px`},onThumbPointerDown:e=>t.onThumbPointerDown(e.x),onDragScroll:e=>t.onDragScroll(e.x),onWheelScroll:(e,n)=>{if(a.viewport){const r=a.viewport.scrollLeft+e.deltaX;t.onWheelScroll(r),wk(r,n)&&e.preventDefault()}},onResize:()=>{c.current&&a.viewport&&s&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Sk(s.paddingLeft),paddingEnd:Sk(s.paddingRight)}})}})});Ik.displayName="@mantine/core/ScrollAreaScrollbarX";const Dk=(0,HS.forwardRef)((t,e)=>{const{sizes:n,onSizesChange:r,style:i,...o}=t,a=ok(),[s,u]=(0,HS.useState)(),c=(0,HS.useRef)(null),h=dk(e,c,a.onScrollbarYChange);return(0,HS.useEffect)(()=>{c.current&&u(window.getComputedStyle(c.current))},[]),(0,l.jsx)(kk,{...o,"data-orientation":"vertical",ref:h,sizes:n,style:{"--sa-thumb-height":`${xk(n)}px`,...i},onThumbPointerDown:e=>t.onThumbPointerDown(e.y),onDragScroll:e=>t.onDragScroll(e.y),onWheelScroll:(e,n)=>{if(a.viewport){const r=a.viewport.scrollTop+e.deltaY;t.onWheelScroll(r),wk(r,n)&&e.preventDefault()}},onResize:()=>{c.current&&a.viewport&&s&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Sk(s.paddingTop),paddingEnd:Sk(s.paddingBottom)}})}})});Dk.displayName="@mantine/core/ScrollAreaScrollbarY";const Rk=(0,HS.forwardRef)((t,e)=>{const{orientation:n="vertical",...r}=t,{dir:i}=yk(),o=ok(),a=(0,HS.useRef)(null),s=(0,HS.useRef)(0),[u,c]=(0,HS.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=vk(u.viewport,u.content),d={...r,sizes:u,onSizesChange:c,hasThumb:Boolean(h>0&&h<1),onThumbChange:t=>{a.current=t},onThumbPointerUp:()=>{s.current=0},onThumbPointerDown:t=>{s.current=t}},p=(t,e)=>function(t,e,n,r="ltr"){const i=xk(n),o=e||i/2,a=i-o,s=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-a,u=n.content-n.viewport;return _k([s,l],"ltr"===r?[0,u]:[-1*u,0])(t)}(t,s.current,u,e);return"horizontal"===n?(0,l.jsx)(Ik,{...d,ref:e,onThumbPositionChange:()=>{if(o.viewport&&a.current){const t=bk(o.viewport.scrollLeft,u,i);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:t=>{o.viewport&&(o.viewport.scrollLeft=t)},onDragScroll:t=>{o.viewport&&(o.viewport.scrollLeft=p(t,i))}}):"vertical"===n?(0,l.jsx)(Dk,{...d,ref:e,onThumbPositionChange:()=>{if(o.viewport&&a.current){const t=bk(o.viewport.scrollTop,u);0===u.scrollbar.size?a.current.style.setProperty("--thumb-opacity","0"):a.current.style.setProperty("--thumb-opacity","1"),a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:t=>{o.viewport&&(o.viewport.scrollTop=t)},onDragScroll:t=>{o.viewport&&(o.viewport.scrollTop=p(t))}}):null});Rk.displayName="@mantine/core/ScrollAreaScrollbarVisible";const Pk=(0,HS.forwardRef)((t,e)=>{const n=ok(),{forceMount:r,...i}=t,[o,a]=(0,HS.useState)(!1),s="horizontal"===t.orientation,u=gk(()=>{if(n.viewport){const t=n.viewport.offsetWidth<n.viewport.scrollWidth,e=n.viewport.offsetHeight<n.viewport.scrollHeight;a(s?t:e)}},10);return lk(n.viewport,u),lk(n.content,u),r||o?(0,l.jsx)(Rk,{"data-state":o?"visible":"hidden",...i,ref:e}):null});Pk.displayName="@mantine/core/ScrollAreaScrollbarAuto";const Ak=(0,HS.forwardRef)((t,e)=>{const{forceMount:n,...r}=t,i=ok(),[o,a]=(0,HS.useState)(!1);return(0,HS.useEffect)(()=>{const{scrollArea:t}=i;let e=0;if(t){const n=()=>{window.clearTimeout(e),a(!0)},r=()=>{e=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return t.addEventListener("pointerenter",n),t.addEventListener("pointerleave",r),()=>{window.clearTimeout(e),t.removeEventListener("pointerenter",n),t.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),n||o?(0,l.jsx)(Pk,{"data-state":o?"visible":"hidden",...r,ref:e}):null});Ak.displayName="@mantine/core/ScrollAreaScrollbarHover";const Ok=(0,HS.forwardRef)((t,e)=>{const{forceMount:n,...r}=t,i=ok(),o="horizontal"===t.orientation,[a,s]=(0,HS.useState)("hidden"),u=gk(()=>s("idle"),100);return(0,HS.useEffect)(()=>{if("idle"===a){const t=window.setTimeout(()=>s("hidden"),i.scrollHideDelay);return()=>window.clearTimeout(t)}},[a,i.scrollHideDelay]),(0,HS.useEffect)(()=>{const{viewport:t}=i,e=o?"scrollLeft":"scrollTop";if(t){let n=t[e];const r=()=>{const r=t[e];n!==r&&(s("scrolling"),u()),n=r};return t.addEventListener("scroll",r),()=>t.removeEventListener("scroll",r)}},[i.viewport,o,u]),n||"hidden"!==a?(0,l.jsx)(Rk,{"data-state":"hidden"===a?"hidden":"visible",...r,ref:e,onPointerEnter:Ck(t.onPointerEnter,()=>s("interacting")),onPointerLeave:Ck(t.onPointerLeave,()=>s("idle"))}):null}),Lk=(0,HS.forwardRef)((t,e)=>{const{forceMount:n,...r}=t,i=ok(),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===t.orientation;return(0,HS.useEffect)(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?(0,l.jsx)(Ak,{...r,ref:e,forceMount:n}):"scroll"===i.type?(0,l.jsx)(Ok,{...r,ref:e,forceMount:n}):"auto"===i.type?(0,l.jsx)(Pk,{...r,ref:e,forceMount:n}):"always"===i.type?(0,l.jsx)(Rk,{...r,ref:e}):null});Lk.displayName="@mantine/core/ScrollAreaScrollbar";const Nk=(0,HS.forwardRef)((t,e)=>{const{style:n,...r}=t,i=ok(),o=Mk(),{onThumbPositionChange:a}=o,s=dk(e,t=>o.onThumbChange(t)),u=(0,HS.useRef)(void 0),c=gk(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,HS.useEffect)(()=>{const{viewport:t}=i;if(t){const e=()=>{if(c(),!u.current){const e=function(t,e=()=>{}){let n={left:t.scrollLeft,top:t.scrollTop},r=0;return function i(){const o={left:t.scrollLeft,top:t.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&e(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)}(t,a);u.current=e,a()}};return a(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[i.viewport,c,a]),(0,l.jsx)("div",{"data-state":o.hasThumb?"visible":"hidden",...r,ref:s,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:Ck(t.onPointerDownCapture,t=>{const e=t.target.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top;o.onThumbPointerDown({x:n,y:r})}),onPointerUp:Ck(t.onPointerUp,o.onThumbPointerUp)})});Nk.displayName="@mantine/core/ScrollAreaThumb";const Ek=(0,HS.forwardRef)((t,e)=>{const{forceMount:n,...r}=t,i=Mk();return n||i.hasThumb?(0,l.jsx)(Nk,{ref:e,...r}):null});Ek.displayName="@mantine/core/ScrollAreaThumb";const zk=(0,HS.forwardRef)(({children:t,style:e,...n},r)=>{const i=ok(),o=dk(r,i.onViewportChange);return(0,l.jsx)(WC,{...n,ref:o,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e},children:(0,l.jsx)("div",{...i.getStyles("content"),ref:i.onContentChange,children:t})})});zk.displayName="@mantine/core/ScrollAreaViewport";var Bk={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const Fk={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},Vk=(t,{scrollbarSize:e,overscrollBehavior:n})=>({root:{"--scrollarea-scrollbar-size":US(e),"--scrollarea-over-scroll-behavior":n}}),Hk=GC((t,e)=>{const n=sC("ScrollArea",Fk,t),{classNames:r,className:i,style:o,styles:a,unstyled:s,scrollbarSize:u,vars:c,type:h,scrollHideDelay:d,viewportProps:p,viewportRef:f,onScrollPositionChange:g,children:m,offsetScrollbars:y,scrollbars:v,onBottomReached:x,onTopReached:_,overscrollBehavior:b,attributes:w,...S}=n,[C,T]=(0,HS.useState)(!1),[M,k]=(0,HS.useState)(!1),[I,D]=(0,HS.useState)(!1),R=SC({name:"ScrollArea",props:n,classes:Bk,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:w,vars:c,varsResolver:Vk}),P=(0,HS.useRef)(null),A=$M([f,P]);return(0,HS.useEffect)(()=>{if(!P.current)return;if("present"!==y)return;const t=P.current,e=new ResizeObserver(()=>{const{scrollHeight:e,clientHeight:n,scrollWidth:r,clientWidth:i}=t;k(e>n),D(r>i)});return e.observe(t),()=>e.disconnect()},[P,y]),(0,l.jsxs)(fk,{getStyles:R,type:"never"===h?"always":h,scrollHideDelay:d,ref:e,scrollbars:v,...R("root"),...S,children:[(0,l.jsx)(zk,{...p,...R("viewport",{style:p?.style}),ref:A,"data-offset-scrollbars":!0===y?"xy":y||void 0,"data-scrollbars":v||void 0,"data-horizontal-hidden":"present"!==y||I?void 0:"true","data-vertical-hidden":"present"!==y||M?void 0:"true",onScroll:t=>{p?.onScroll?.(t),g?.({x:t.currentTarget.scrollLeft,y:t.currentTarget.scrollTop});const{scrollTop:e,scrollHeight:n,clientHeight:r}=t.currentTarget;e-(n-r)>=-.6&&x?.(),0===e&&_?.()},children:m}),("xy"===v||"x"===v)&&(0,l.jsx)(Lk,{...R("scrollbar"),orientation:"horizontal","data-hidden":"never"===h||"present"===y&&!I||void 0,forceMount:!0,onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1),children:(0,l.jsx)(Ek,{...R("thumb")})}),("xy"===v||"y"===v)&&(0,l.jsx)(Lk,{...R("scrollbar"),orientation:"vertical","data-hidden":"never"===h||"present"===y&&!M||void 0,forceMount:!0,onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1),children:(0,l.jsx)(Ek,{...R("thumb")})}),(0,l.jsx)(ck,{...R("corner"),"data-hovered":C||void 0,"data-hidden":"never"===h||void 0})]})});Hk.displayName="@mantine/core/ScrollArea";const Wk=GC((t,e)=>{const{children:n,classNames:r,styles:i,scrollbarSize:o,scrollHideDelay:a,type:s,dir:u,offsetScrollbars:c,viewportRef:h,onScrollPositionChange:d,unstyled:p,variant:f,viewportProps:g,scrollbars:m,style:y,vars:v,onBottomReached:x,onTopReached:_,onOverflowChange:b,...w}=sC("ScrollAreaAutosize",Fk,t),S=(0,HS.useRef)(null),C=$M([h,S]),[T,M]=(0,HS.useState)(!1),k=(0,HS.useRef)(!1);return(0,HS.useEffect)(()=>{if(!b)return;const t=S.current;if(!t)return;const e=()=>{const e=t.scrollHeight>t.clientHeight;e!==T&&(k.current?b?.(e):(k.current=!0,e&&b?.(!0)),M(e))};e();const n=new ResizeObserver(e);return n.observe(t),()=>n.disconnect()},[b,T]),(0,l.jsx)(WC,{...w,ref:e,style:[{display:"flex",overflow:"hidden"},y],children:(0,l.jsx)(WC,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",..."y"===m&&{minWidth:0},..."x"===m&&{minHeight:0},..."xy"===m&&{minWidth:0,minHeight:0},...!1===m&&{minWidth:0,minHeight:0}},children:(0,l.jsx)(Hk,{classNames:r,styles:i,scrollHideDelay:a,scrollbarSize:o,type:s,dir:u,offsetScrollbars:c,viewportRef:C,onScrollPositionChange:d,unstyled:p,variant:f,viewportProps:g,vars:v,scrollbars:m,onBottomReached:x,onTopReached:_,"data-autosize":"true",children:n})})})});Hk.classes=Bk,Wk.displayName="@mantine/core/ScrollAreaAutosize",Wk.classes=Bk,Hk.Autosize=Wk;const jk={type:"scrollarea"},Gk=(t,{minWidth:e,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":US(e),"--table-max-height":US(n),"--table-overflow":"native"===r?"auto":void 0}}),Uk=GC((t,e)=>{const n=sC("TableScrollContainer",jk,t),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:u,children:c,minWidth:h,maxHeight:d,type:p,scrollAreaProps:f,attributes:g,...m}=n,y=SC({name:"TableScrollContainer",classes:$C,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:g,vars:u,varsResolver:Gk,rootSelector:"scrollContainer"});return(0,l.jsx)(WC,{component:"scrollarea"===p?Hk:"div",..."scrollarea"===p?d?{offsetScrollbars:"xy",...f}:{offsetScrollbars:"x",...f}:{},ref:e,...y("scrollContainer"),...m,children:(0,l.jsx)("div",{...y("scrollContainerInner"),children:c})})});Uk.classes=$C,Uk.displayName="@mantine/core/TableScrollContainer";const Xk={withRowBorders:!0,verticalSpacing:7},Yk=(t,{layout:e,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:o,stripedColor:a,highlightOnHoverColor:s,striped:l,highlightOnHover:u,stickyHeaderOffset:c,stickyHeader:h})=>({table:{"--table-layout":e,"--table-caption-side":n,"--table-horizontal-spacing":$S(r),"--table-vertical-spacing":$S(i),"--table-border-color":o?nC(o,t):void 0,"--table-striped-color":l&&a?nC(a,t):void 0,"--table-highlight-on-hover-color":u&&s?nC(s,t):void 0,"--table-sticky-header-offset":h?US(c):void 0}}),$k=GC((t,e)=>{const n=sC("Table",Xk,t),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:u,horizontalSpacing:c,verticalSpacing:h,captionSide:d,stripedColor:p,highlightOnHoverColor:f,striped:g,highlightOnHover:m,withColumnBorders:y,withRowBorders:v,withTableBorder:x,borderColor:_,layout:b,variant:w,data:S,children:C,stickyHeader:T,stickyHeaderOffset:M,mod:k,tabularNums:I,attributes:D,...R}=n,P=SC({name:"Table",props:n,className:i,style:o,classes:$C,classNames:r,styles:a,unstyled:s,attributes:D,rootSelector:"table",vars:u,varsResolver:Yk});return(0,l.jsx)(XC,{value:{getStyles:P,stickyHeader:T,striped:!0===g?"odd":g||void 0,highlightOnHover:m,withColumnBorders:y,withRowBorders:v,captionSide:d||"bottom"},children:(0,l.jsx)(WC,{component:"table",variant:w,ref:e,mod:[{"data-with-table-border":x,"data-tabular-nums":I},k],...P("table"),...R,children:C||!!S&&(0,l.jsx)(iT,{data:S})})})});$k.classes=$C,$k.displayName="@mantine/core/Table",$k.Td=QC,$k.Th=KC,$k.Tr=JC,$k.Thead=tT,$k.Tbody=eT,$k.Tfoot=nT,$k.Caption=rT,$k.ScrollContainer=Uk,$k.DataRenderer=iT;var qk={root:"m_18320242","skeleton-fade":"m_299c329c"};const Zk={visible:!0,animate:!0},Kk=(t,{width:e,height:n,radius:r,circle:i})=>({root:{"--skeleton-height":US(n),"--skeleton-width":US(i?n:e),"--skeleton-radius":i?"1000px":void 0===r?void 0:qS(r)}}),Qk=GC((t,e)=>{const n=sC("Skeleton",Zk,t),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:u,width:c,height:h,circle:d,visible:p,radius:f,animate:g,mod:m,attributes:y,...v}=n,x=SC({name:"Skeleton",classes:qk,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:y,vars:u,varsResolver:Kk});return(0,l.jsx)(WC,{ref:e,...x("root"),mod:[{visible:p,animate:g},m],...v})});Qk.classes=qk,Qk.displayName="@mantine/core/Skeleton";const Jk=HS.default["useId".toString()]||(()=>{});function tI(t){const e=function(){const t=Jk();return t?`mantine-${t.replace(/:/g,"")}`:""}(),[n,r]=(0,HS.useState)(e);return sk(()=>{r(function(t="mantine-"){return`${t}${Math.random().toString(36).slice(2,11)}`}())},[]),"string"==typeof t?t:"undefined"==typeof window?e:n}function eI(t){const e=(0,HS.forwardRef)(t);return e.withProps=t=>{const n=(0,HS.forwardRef)((n,r)=>(0,l.jsx)(e,{...t,...n,ref:r}));return n.extend=e.extend,n.displayName=`WithProps(${e.displayName})`,n},e.extend=jC,e}var nI={root:"m_87cf2631"};const rI={__staticSelector:"UnstyledButton"},iI=eI((t,e)=>{const n=sC("UnstyledButton",rI,t),{className:r,component:i="button",__staticSelector:o,unstyled:a,classNames:s,styles:u,style:c,attributes:h,...d}=n,p=SC({name:o,props:n,classes:nI,className:r,style:c,classNames:s,styles:u,unstyled:a,attributes:h});return(0,l.jsx)(WC,{...p("root",{focusable:!0}),component:i,ref:e,type:"button"===i?"button":void 0,...d})});iI.classes=nI,iI.displayName="@mantine/core/UnstyledButton";const oI=(0,HS.forwardRef)(({size:t="var(--cb-icon-size, 70%)",style:e,...n},r)=>(0,l.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:t,height:t},ref:r,...n,children:(0,l.jsx)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));oI.displayName="@mantine/core/CloseIcon";var aI={root:"m_86a44da5","root--subtle":"m_220c80f2"};const sI={variant:"subtle"},lI=(t,{size:e,radius:n,iconSize:r})=>({root:{"--cb-size":YS(e,"cb-size"),"--cb-radius":void 0===n?void 0:qS(n),"--cb-icon-size":US(r)}}),uI=eI((t,e)=>{const n=sC("CloseButton",sI,t),{iconSize:r,children:i,vars:o,radius:a,className:s,classNames:u,style:c,styles:h,unstyled:d,"data-disabled":p,disabled:f,variant:g,icon:m,mod:y,attributes:v,__staticSelector:x,..._}=n,b=SC({name:x||"CloseButton",props:n,className:s,style:c,classes:aI,classNames:u,styles:h,unstyled:d,attributes:v,vars:o,varsResolver:lI});return(0,l.jsxs)(iI,{ref:e,..._,unstyled:d,variant:g,disabled:f,mod:[{disabled:f||p},y],...b("root",{variant:g,active:!f&&!p}),children:[m||(0,l.jsx)(oI,{}),i]})});uI.classes=aI,uI.displayName="@mantine/core/CloseButton";var cI={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const hI=(t,{radius:e,color:n,variant:r,autoContrast:i})=>{const o=t.variantColorResolver({color:n||t.primaryColor,theme:t,variant:r||"light",autoContrast:i});return{root:{"--alert-radius":void 0===e?void 0:qS(e),"--alert-bg":n||r?o.background:void 0,"--alert-color":o.color,"--alert-bd":n||r?o.border:void 0}}},dI=GC((t,e)=>{const n=sC("Alert",null,t),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:u,radius:c,color:h,title:d,children:p,id:f,icon:g,withCloseButton:m,onClose:y,closeButtonLabel:v,variant:x,autoContrast:_,role:b,attributes:w,...S}=n,C=SC({name:"Alert",classes:cI,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:w,vars:u,varsResolver:hI}),T=tI(f),M=d&&`${T}-title`||void 0,k=`${T}-body`;return(0,l.jsx)(WC,{id:T,...C("root",{variant:x}),variant:x,ref:e,role:b||"alert",...S,"aria-describedby":p?k:void 0,"aria-labelledby":d?M:void 0,children:(0,l.jsxs)("div",{...C("wrapper"),children:[g&&(0,l.jsx)("div",{...C("icon"),children:g}),(0,l.jsxs)("div",{...C("body"),children:[d&&(0,l.jsx)("div",{...C("title"),"data-with-close-button":m||void 0,children:(0,l.jsx)("span",{id:M,...C("label"),children:d})}),p&&(0,l.jsx)("div",{id:k,...C("message"),"data-variant":x,children:p})]}),m&&(0,l.jsx)(uI,{...C("closeButton"),onClick:y,variant:"transparent",size:16,iconSize:16,"aria-label":v,unstyled:s})]})})});dI.classes=cI,dI.displayName="@mantine/core/Alert";var pI={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const fI=(t,e,n,r)=>{const i=(0,HS.forwardRef)(({color:n="currentColor",size:i=24,stroke:o=2,title:a,className:s,children:l,...u},c)=>(0,HS.createElement)("svg",{ref:c,...pI[t],width:i,height:i,className:["tabler-icon",`tabler-icon-${e}`,s].join(" "),..."filled"===t?{fill:n}:{strokeWidth:o,stroke:n},...u},[a&&(0,HS.createElement)("title",{key:"svg-title"},a),...r.map(([t,e])=>(0,HS.createElement)(t,e)),...Array.isArray(l)?l:[l]]));return i.displayName=`${n}`,i},gI=fI("outline","chevron-up","ChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]]),mI=fI("outline","chevron-down","ChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]),yI=fI("outline","selector","Selector",[["path",{d:"M8 9l4 -4l4 4",key:"svg-0"}],["path",{d:"M16 15l-4 4l-4 -4",key:"svg-1"}]]);function vI(t,e){return"function"==typeof t?t(e):t}function xI(t,e){return n=>{e.setState(e=>({...e,[t]:vI(n,e[t])}))}}function _I(t){return t instanceof Function}function bI(t,e,n){let r,i=[];return o=>{let a;n.key&&n.debug&&(a=Date.now());const s=t(o),l=s.length!==i.length||s.some((t,e)=>i[e]!==t);if(!l)return r;let u;if(i=s,n.key&&n.debug&&(u=Date.now()),r=e(...s),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const t=Math.round(100*(Date.now()-a))/100,e=Math.round(100*(Date.now()-u))/100,r=e/16,i=(t,e)=>{for(t=String(t);t.length<e;)t=" "+t;return t};console.info(`%c⏱ ${i(e,5)} /${i(t,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function wI(t,e,n,r){return{debug:()=>{var n;return null!=(n=null==t?void 0:t.debugAll)?n:t[e]},key:!1,onChange:r}}const SI="debugHeaders";function CI(t,e,n){var r;let i={id:null!=(r=n.id)?r:e.id,column:e,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const t=[],e=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(e),t.push(n)};return e(i),t},getContext:()=>({table:t,header:i,column:e})};return t._features.forEach(e=>{null==e.createHeader||e.createHeader(i,t)}),i}const TI={createTable:t=>{t.getHeaderGroups=bI(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,r,i)=>{var o,a;const s=null!=(o=null==r?void 0:r.map(t=>n.find(e=>e.id===t)).filter(Boolean))?o:[],l=null!=(a=null==i?void 0:i.map(t=>n.find(e=>e.id===t)).filter(Boolean))?a:[];return MI(e,[...s,...n.filter(t=>!(null!=r&&r.includes(t.id)||null!=i&&i.includes(t.id))),...l],t)},wI(t.options,SI)),t.getCenterHeaderGroups=bI(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,r,i)=>MI(e,n=n.filter(t=>!(null!=r&&r.includes(t.id)||null!=i&&i.includes(t.id))),t,"center"),wI(t.options,SI)),t.getLeftHeaderGroups=bI(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left],(e,n,r)=>{var i;return MI(e,null!=(i=null==r?void 0:r.map(t=>n.find(e=>e.id===t)).filter(Boolean))?i:[],t,"left")},wI(t.options,SI)),t.getRightHeaderGroups=bI(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.right],(e,n,r)=>{var i;return MI(e,null!=(i=null==r?void 0:r.map(t=>n.find(e=>e.id===t)).filter(Boolean))?i:[],t,"right")},wI(t.options,SI)),t.getFooterGroups=bI(()=>[t.getHeaderGroups()],t=>[...t].reverse(),wI(t.options,SI)),t.getLeftFooterGroups=bI(()=>[t.getLeftHeaderGroups()],t=>[...t].reverse(),wI(t.options,SI)),t.getCenterFooterGroups=bI(()=>[t.getCenterHeaderGroups()],t=>[...t].reverse(),wI(t.options,SI)),t.getRightFooterGroups=bI(()=>[t.getRightHeaderGroups()],t=>[...t].reverse(),wI(t.options,SI)),t.getFlatHeaders=bI(()=>[t.getHeaderGroups()],t=>t.map(t=>t.headers).flat(),wI(t.options,SI)),t.getLeftFlatHeaders=bI(()=>[t.getLeftHeaderGroups()],t=>t.map(t=>t.headers).flat(),wI(t.options,SI)),t.getCenterFlatHeaders=bI(()=>[t.getCenterHeaderGroups()],t=>t.map(t=>t.headers).flat(),wI(t.options,SI)),t.getRightFlatHeaders=bI(()=>[t.getRightHeaderGroups()],t=>t.map(t=>t.headers).flat(),wI(t.options,SI)),t.getCenterLeafHeaders=bI(()=>[t.getCenterFlatHeaders()],t=>t.filter(t=>{var e;return!(null!=(e=t.subHeaders)&&e.length)}),wI(t.options,SI)),t.getLeftLeafHeaders=bI(()=>[t.getLeftFlatHeaders()],t=>t.filter(t=>{var e;return!(null!=(e=t.subHeaders)&&e.length)}),wI(t.options,SI)),t.getRightLeafHeaders=bI(()=>[t.getRightFlatHeaders()],t=>t.filter(t=>{var e;return!(null!=(e=t.subHeaders)&&e.length)}),wI(t.options,SI)),t.getLeafHeaders=bI(()=>[t.getLeftHeaderGroups(),t.getCenterHeaderGroups(),t.getRightHeaderGroups()],(t,e,n)=>{var r,i,o,a,s,l;return[...null!=(r=null==(i=t[0])?void 0:i.headers)?r:[],...null!=(o=null==(a=e[0])?void 0:a.headers)?o:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map(t=>t.getLeafHeaders()).flat()},wI(t.options,SI))}};function MI(t,e,n,r){var i,o;let a=0;const s=function(t,e){void 0===e&&(e=1),a=Math.max(a,e),t.filter(t=>t.getIsVisible()).forEach(t=>{var n;null!=(n=t.columns)&&n.length&&s(t.columns,e+1)},0)};s(t);let l=[];const u=(t,e)=>{const i={depth:e,id:[r,`${e}`].filter(Boolean).join("_"),headers:[]},o=[];t.forEach(t=>{const a=[...o].reverse()[0];let s,l=!1;if(t.column.depth===i.depth&&t.column.parent?s=t.column.parent:(s=t.column,l=!0),a&&(null==a?void 0:a.column)===s)a.subHeaders.push(t);else{const i=CI(n,s,{id:[r,e,s.id,null==t?void 0:t.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${o.filter(t=>t.column===s).length}`:void 0,depth:e,index:o.length});i.subHeaders.push(t),o.push(i)}i.headers.push(t),t.headerGroup=i}),l.push(i),e>0&&u(o,e-1)},c=e.map((t,e)=>CI(n,t,{depth:a,index:e}));u(c,a-1),l.reverse();const h=t=>t.filter(t=>t.column.getIsVisible()).map(t=>{let e=0,n=0,r=[0];return t.subHeaders&&t.subHeaders.length?(r=[],h(t.subHeaders).forEach(t=>{let{colSpan:n,rowSpan:i}=t;e+=n,r.push(i)})):e=1,n+=Math.min(...r),t.colSpan=e,t.rowSpan=n,{colSpan:e,rowSpan:n}});return h(null!=(i=null==(o=l[0])?void 0:o.headers)?i:[]),l}const kI=(t,e,n,r,i,o,a)=>{let s={id:e,index:r,original:n,depth:i,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:e=>{if(s._valuesCache.hasOwnProperty(e))return s._valuesCache[e];const n=t.getColumn(e);return null!=n&&n.accessorFn?(s._valuesCache[e]=n.accessorFn(s.original,r),s._valuesCache[e]):void 0},getUniqueValues:e=>{if(s._uniqueValuesCache.hasOwnProperty(e))return s._uniqueValuesCache[e];const n=t.getColumn(e);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[e]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[e]):(s._uniqueValuesCache[e]=[s.getValue(e)],s._uniqueValuesCache[e]):void 0},renderValue:e=>{var n;return null!=(n=s.getValue(e))?n:t.options.renderFallbackValue},subRows:null!=o?o:[],getLeafRows:()=>function(t,e){const n=[],r=t=>{t.forEach(t=>{n.push(t);const i=e(t);null!=i&&i.length&&r(i)})};return r(t),n}(s.subRows,t=>t.subRows),getParentRow:()=>s.parentId?t.getRow(s.parentId,!0):void 0,getParentRows:()=>{let t=[],e=s;for(;;){const n=e.getParentRow();if(!n)break;t.push(n),e=n}return t.reverse()},getAllCells:bI(()=>[t.getAllLeafColumns()],e=>e.map(e=>function(t,e,n,r){const i={id:`${e.id}_${n.id}`,row:e,column:n,getValue:()=>e.getValue(r),renderValue:()=>{var e;return null!=(e=i.getValue())?e:t.options.renderFallbackValue},getContext:bI(()=>[t,n,e,i],(t,e,n,r)=>({table:t,column:e,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),wI(t.options,"debugCells"))};return t._features.forEach(r=>{null==r.createCell||r.createCell(i,n,e,t)},{}),i}(t,s,e,e.id)),wI(t.options,"debugRows")),_getAllCellsByColumnId:bI(()=>[s.getAllCells()],t=>t.reduce((t,e)=>(t[e.column.id]=e,t),{}),wI(t.options,"debugRows"))};for(let e=0;e<t._features.length;e++){const n=t._features[e];null==n||null==n.createRow||n.createRow(s,t)}return s},II={createColumn:(t,e)=>{t._getFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,t.id),t.getFacetedRowModel=()=>t._getFacetedRowModel?t._getFacetedRowModel():e.getPreFilteredRowModel(),t._getFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,t.id),t.getFacetedUniqueValues=()=>t._getFacetedUniqueValues?t._getFacetedUniqueValues():new Map,t._getFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,t.id),t.getFacetedMinMaxValues=()=>{if(t._getFacetedMinMaxValues)return t._getFacetedMinMaxValues()}}},DI=(t,e,n)=>{var r,i;const o=null==n||null==(r=n.toString())?void 0:r.toLowerCase();return Boolean(null==(i=t.getValue(e))||null==(i=i.toString())||null==(i=i.toLowerCase())?void 0:i.includes(o))};DI.autoRemove=t=>FI(t);const RI=(t,e,n)=>{var r;return Boolean(null==(r=t.getValue(e))||null==(r=r.toString())?void 0:r.includes(n))};RI.autoRemove=t=>FI(t);const PI=(t,e,n)=>{var r;return(null==(r=t.getValue(e))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};PI.autoRemove=t=>FI(t);const AI=(t,e,n)=>{var r;return null==(r=t.getValue(e))?void 0:r.includes(n)};AI.autoRemove=t=>FI(t);const OI=(t,e,n)=>!n.some(n=>{var r;return!(null!=(r=t.getValue(e))&&r.includes(n))});OI.autoRemove=t=>FI(t)||!(null!=t&&t.length);const LI=(t,e,n)=>n.some(n=>{var r;return null==(r=t.getValue(e))?void 0:r.includes(n)});LI.autoRemove=t=>FI(t)||!(null!=t&&t.length);const NI=(t,e,n)=>t.getValue(e)===n;NI.autoRemove=t=>FI(t);const EI=(t,e,n)=>t.getValue(e)==n;EI.autoRemove=t=>FI(t);const zI=(t,e,n)=>{let[r,i]=n;const o=t.getValue(e);return o>=r&&o<=i};zI.resolveFilterValue=t=>{let[e,n]=t,r="number"!=typeof e?parseFloat(e):e,i="number"!=typeof n?parseFloat(n):n,o=null===e||Number.isNaN(r)?-1/0:r,a=null===n||Number.isNaN(i)?1/0:i;if(o>a){const t=o;o=a,a=t}return[o,a]},zI.autoRemove=t=>FI(t)||FI(t[0])&&FI(t[1]);const BI={includesString:DI,includesStringSensitive:RI,equalsString:PI,arrIncludes:AI,arrIncludesAll:OI,arrIncludesSome:LI,equals:NI,weakEquals:EI,inNumberRange:zI};function FI(t){return null==t||""===t}const VI={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:t=>({columnFilters:[],...t}),getDefaultOptions:t=>({onColumnFiltersChange:xI("columnFilters",t),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(t,e)=>{t.getAutoFilterFn=()=>{const n=e.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(t.id);return"string"==typeof r?BI.includesString:"number"==typeof r?BI.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?BI.equals:Array.isArray(r)?BI.arrIncludes:BI.weakEquals},t.getFilterFn=()=>{var n,r;return _I(t.columnDef.filterFn)?t.columnDef.filterFn:"auto"===t.columnDef.filterFn?t.getAutoFilterFn():null!=(n=null==(r=e.options.filterFns)?void 0:r[t.columnDef.filterFn])?n:BI[t.columnDef.filterFn]},t.getCanFilter=()=>{var n,r,i;return(null==(n=t.columnDef.enableColumnFilter)||n)&&(null==(r=e.options.enableColumnFilters)||r)&&(null==(i=e.options.enableFilters)||i)&&!!t.accessorFn},t.getIsFiltered=()=>t.getFilterIndex()>-1,t.getFilterValue=()=>{var n;return null==(n=e.getState().columnFilters)||null==(n=n.find(e=>e.id===t.id))?void 0:n.value},t.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=e.getState().columnFilters)?void 0:r.findIndex(e=>e.id===t.id))?n:-1},t.setFilterValue=n=>{e.setColumnFilters(e=>{const r=t.getFilterFn(),i=null==e?void 0:e.find(e=>e.id===t.id),o=vI(n,i?i.value:void 0);var a;if(HI(r,o,t))return null!=(a=null==e?void 0:e.filter(e=>e.id!==t.id))?a:[];const s={id:t.id,value:o};var l;return i?null!=(l=null==e?void 0:e.map(e=>e.id===t.id?s:e))?l:[]:null!=e&&e.length?[...e,s]:[s]})}},createRow:(t,e)=>{t.columnFilters={},t.columnFiltersMeta={}},createTable:t=>{t.setColumnFilters=e=>{const n=t.getAllLeafColumns();null==t.options.onColumnFiltersChange||t.options.onColumnFiltersChange(t=>{var r;return null==(r=vI(e,t))?void 0:r.filter(t=>{const e=n.find(e=>e.id===t.id);return!e||!HI(e.getFilterFn(),t.value,e)})})},t.resetColumnFilters=e=>{var n,r;t.setColumnFilters(e?[]:null!=(n=null==(r=t.initialState)?void 0:r.columnFilters)?n:[])},t.getPreFilteredRowModel=()=>t.getCoreRowModel(),t.getFilteredRowModel=()=>(!t._getFilteredRowModel&&t.options.getFilteredRowModel&&(t._getFilteredRowModel=t.options.getFilteredRowModel(t)),t.options.manualFiltering||!t._getFilteredRowModel?t.getPreFilteredRowModel():t._getFilteredRowModel())}};function HI(t,e,n){return!(!t||!t.autoRemove)&&t.autoRemove(e,n)||void 0===e||"string"==typeof e&&!e}const WI={sum:(t,e,n)=>n.reduce((e,n)=>{const r=n.getValue(t);return e+("number"==typeof r?r:0)},0),min:(t,e,n)=>{let r;return n.forEach(e=>{const n=e.getValue(t);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(t,e,n)=>{let r;return n.forEach(e=>{const n=e.getValue(t);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(t,e,n)=>{let r,i;return n.forEach(e=>{const n=e.getValue(t);null!=n&&(void 0===r?n>=n&&(r=i=n):(r>n&&(r=n),i<n&&(i=n)))}),[r,i]},mean:(t,e)=>{let n=0,r=0;if(e.forEach(e=>{let i=e.getValue(t);null!=i&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},median:(t,e)=>{if(!e.length)return;const n=e.map(e=>e.getValue(t));if(r=n,!Array.isArray(r)||!r.every(t=>"number"==typeof t))return;var r;if(1===n.length)return n[0];const i=Math.floor(n.length/2),o=n.sort((t,e)=>t-e);return n.length%2!=0?o[i]:(o[i-1]+o[i])/2},unique:(t,e)=>Array.from(new Set(e.map(e=>e.getValue(t))).values()),uniqueCount:(t,e)=>new Set(e.map(e=>e.getValue(t))).size,count:(t,e)=>e.length},jI={getDefaultColumnDef:()=>({aggregatedCell:t=>{var e,n;return null!=(e=null==(n=t.getValue())||null==n.toString?void 0:n.toString())?e:null},aggregationFn:"auto"}),getInitialState:t=>({grouping:[],...t}),getDefaultOptions:t=>({onGroupingChange:xI("grouping",t),groupedColumnMode:"reorder"}),createColumn:(t,e)=>{t.toggleGrouping=()=>{e.setGrouping(e=>null!=e&&e.includes(t.id)?e.filter(e=>e!==t.id):[...null!=e?e:[],t.id])},t.getCanGroup=()=>{var n,r;return(null==(n=t.columnDef.enableGrouping)||n)&&(null==(r=e.options.enableGrouping)||r)&&(!!t.accessorFn||!!t.columnDef.getGroupingValue)},t.getIsGrouped=()=>{var n;return null==(n=e.getState().grouping)?void 0:n.includes(t.id)},t.getGroupedIndex=()=>{var n;return null==(n=e.getState().grouping)?void 0:n.indexOf(t.id)},t.getToggleGroupingHandler=()=>{const e=t.getCanGroup();return()=>{e&&t.toggleGrouping()}},t.getAutoAggregationFn=()=>{const n=e.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(t.id);return"number"==typeof r?WI.sum:"[object Date]"===Object.prototype.toString.call(r)?WI.extent:void 0},t.getAggregationFn=()=>{var n,r;if(!t)throw new Error;return _I(t.columnDef.aggregationFn)?t.columnDef.aggregationFn:"auto"===t.columnDef.aggregationFn?t.getAutoAggregationFn():null!=(n=null==(r=e.options.aggregationFns)?void 0:r[t.columnDef.aggregationFn])?n:WI[t.columnDef.aggregationFn]}},createTable:t=>{t.setGrouping=e=>null==t.options.onGroupingChange?void 0:t.options.onGroupingChange(e),t.resetGrouping=e=>{var n,r;t.setGrouping(e?[]:null!=(n=null==(r=t.initialState)?void 0:r.grouping)?n:[])},t.getPreGroupedRowModel=()=>t.getFilteredRowModel(),t.getGroupedRowModel=()=>(!t._getGroupedRowModel&&t.options.getGroupedRowModel&&(t._getGroupedRowModel=t.options.getGroupedRowModel(t)),t.options.manualGrouping||!t._getGroupedRowModel?t.getPreGroupedRowModel():t._getGroupedRowModel())},createRow:(t,e)=>{t.getIsGrouped=()=>!!t.groupingColumnId,t.getGroupingValue=n=>{if(t._groupingValuesCache.hasOwnProperty(n))return t._groupingValuesCache[n];const r=e.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(t._groupingValuesCache[n]=r.columnDef.getGroupingValue(t.original),t._groupingValuesCache[n]):t.getValue(n)},t._groupingValuesCache={}},createCell:(t,e,n,r)=>{t.getIsGrouped=()=>e.getIsGrouped()&&e.id===n.groupingColumnId,t.getIsPlaceholder=()=>!t.getIsGrouped()&&e.getIsGrouped(),t.getIsAggregated=()=>{var e;return!t.getIsGrouped()&&!t.getIsPlaceholder()&&!(null==(e=n.subRows)||!e.length)}}},GI={getInitialState:t=>({columnOrder:[],...t}),getDefaultOptions:t=>({onColumnOrderChange:xI("columnOrder",t)}),createColumn:(t,e)=>{t.getIndex=bI(t=>[KI(e,t)],e=>e.findIndex(e=>e.id===t.id),wI(e.options,"debugColumns")),t.getIsFirstColumn=n=>{var r;return(null==(r=KI(e,n)[0])?void 0:r.id)===t.id},t.getIsLastColumn=n=>{var r;const i=KI(e,n);return(null==(r=i[i.length-1])?void 0:r.id)===t.id}},createTable:t=>{t.setColumnOrder=e=>null==t.options.onColumnOrderChange?void 0:t.options.onColumnOrderChange(e),t.resetColumnOrder=e=>{var n;t.setColumnOrder(e?[]:null!=(n=t.initialState.columnOrder)?n:[])},t._getOrderColumnsFn=bI(()=>[t.getState().columnOrder,t.getState().grouping,t.options.groupedColumnMode],(t,e,n)=>r=>{let i=[];if(null!=t&&t.length){const e=[...t],n=[...r];for(;n.length&&e.length;){const t=e.shift(),r=n.findIndex(e=>e.id===t);r>-1&&i.push(n.splice(r,1)[0])}i=[...i,...n]}else i=r;return function(t,e,n){if(null==e||!e.length||!n)return t;const r=t.filter(t=>!e.includes(t.id));return"remove"===n?r:[...e.map(e=>t.find(t=>t.id===e)).filter(Boolean),...r]}(i,e,n)},wI(t.options,"debugTable"))}},UI={getInitialState:t=>({columnPinning:{left:[],right:[]},...t}),getDefaultOptions:t=>({onColumnPinningChange:xI("columnPinning",t)}),createColumn:(t,e)=>{t.pin=n=>{const r=t.getLeafColumns().map(t=>t.id).filter(Boolean);e.setColumnPinning(t=>{var e,i,o,a,s,l;return"right"===n?{left:(null!=(o=null==t?void 0:t.left)?o:[]).filter(t=>!(null!=r&&r.includes(t))),right:[...(null!=(a=null==t?void 0:t.right)?a:[]).filter(t=>!(null!=r&&r.includes(t))),...r]}:"left"===n?{left:[...(null!=(s=null==t?void 0:t.left)?s:[]).filter(t=>!(null!=r&&r.includes(t))),...r],right:(null!=(l=null==t?void 0:t.right)?l:[]).filter(t=>!(null!=r&&r.includes(t)))}:{left:(null!=(e=null==t?void 0:t.left)?e:[]).filter(t=>!(null!=r&&r.includes(t))),right:(null!=(i=null==t?void 0:t.right)?i:[]).filter(t=>!(null!=r&&r.includes(t)))}})},t.getCanPin=()=>t.getLeafColumns().some(t=>{var n,r,i;return(null==(n=t.columnDef.enablePinning)||n)&&(null==(r=null!=(i=e.options.enableColumnPinning)?i:e.options.enablePinning)||r)}),t.getIsPinned=()=>{const n=t.getLeafColumns().map(t=>t.id),{left:r,right:i}=e.getState().columnPinning,o=n.some(t=>null==r?void 0:r.includes(t)),a=n.some(t=>null==i?void 0:i.includes(t));return o?"left":!!a&&"right"},t.getPinnedIndex=()=>{var n,r;const i=t.getIsPinned();return i?null!=(n=null==(r=e.getState().columnPinning)||null==(r=r[i])?void 0:r.indexOf(t.id))?n:-1:0}},createRow:(t,e)=>{t.getCenterVisibleCells=bI(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,e,n)=>{const r=[...null!=e?e:[],...null!=n?n:[]];return t.filter(t=>!r.includes(t.column.id))},wI(e.options,"debugRows")),t.getLeftVisibleCells=bI(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left],(t,e)=>(null!=e?e:[]).map(e=>t.find(t=>t.column.id===e)).filter(Boolean).map(t=>({...t,position:"left"})),wI(e.options,"debugRows")),t.getRightVisibleCells=bI(()=>[t._getAllVisibleCells(),e.getState().columnPinning.right],(t,e)=>(null!=e?e:[]).map(e=>t.find(t=>t.column.id===e)).filter(Boolean).map(t=>({...t,position:"right"})),wI(e.options,"debugRows"))},createTable:t=>{t.setColumnPinning=e=>null==t.options.onColumnPinningChange?void 0:t.options.onColumnPinningChange(e),t.resetColumnPinning=e=>{var n,r;return t.setColumnPinning(e?{left:[],right:[]}:null!=(n=null==(r=t.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},t.getIsSomeColumnsPinned=e=>{var n;const r=t.getState().columnPinning;var i,o;return e?Boolean(null==(n=r[e])?void 0:n.length):Boolean((null==(i=r.left)?void 0:i.length)||(null==(o=r.right)?void 0:o.length))},t.getLeftLeafColumns=bI(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left],(t,e)=>(null!=e?e:[]).map(e=>t.find(t=>t.id===e)).filter(Boolean),wI(t.options,"debugColumns")),t.getRightLeafColumns=bI(()=>[t.getAllLeafColumns(),t.getState().columnPinning.right],(t,e)=>(null!=e?e:[]).map(e=>t.find(t=>t.id===e)).filter(Boolean),wI(t.options,"debugColumns")),t.getCenterLeafColumns=bI(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(t,e,n)=>{const r=[...null!=e?e:[],...null!=n?n:[]];return t.filter(t=>!r.includes(t.id))},wI(t.options,"debugColumns"))}},XI={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},YI={getDefaultColumnDef:()=>XI,getInitialState:t=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...t}),getDefaultOptions:t=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:xI("columnSizing",t),onColumnSizingInfoChange:xI("columnSizingInfo",t)}),createColumn:(t,e)=>{t.getSize=()=>{var n,r,i;const o=e.getState().columnSizing[t.id];return Math.min(Math.max(null!=(n=t.columnDef.minSize)?n:XI.minSize,null!=(r=null!=o?o:t.columnDef.size)?r:XI.size),null!=(i=t.columnDef.maxSize)?i:XI.maxSize)},t.getStart=bI(t=>[t,KI(e,t),e.getState().columnSizing],(e,n)=>n.slice(0,t.getIndex(e)).reduce((t,e)=>t+e.getSize(),0),wI(e.options,"debugColumns")),t.getAfter=bI(t=>[t,KI(e,t),e.getState().columnSizing],(e,n)=>n.slice(t.getIndex(e)+1).reduce((t,e)=>t+e.getSize(),0),wI(e.options,"debugColumns")),t.resetSize=()=>{e.setColumnSizing(e=>{let{[t.id]:n,...r}=e;return r})},t.getCanResize=()=>{var n,r;return(null==(n=t.columnDef.enableResizing)||n)&&(null==(r=e.options.enableColumnResizing)||r)},t.getIsResizing=()=>e.getState().columnSizingInfo.isResizingColumn===t.id},createHeader:(t,e)=>{t.getSize=()=>{let e=0;const n=t=>{var r;t.subHeaders.length?t.subHeaders.forEach(n):e+=null!=(r=t.column.getSize())?r:0};return n(t),e},t.getStart=()=>{if(t.index>0){const e=t.headerGroup.headers[t.index-1];return e.getStart()+e.getSize()}return 0},t.getResizeHandler=n=>{const r=e.getColumn(t.column.id),i=null==r?void 0:r.getCanResize();return o=>{if(!r||!i)return;if(null==o.persist||o.persist(),qI(o)&&o.touches&&o.touches.length>1)return;const a=t.getSize(),s=t?t.getLeafHeaders().map(t=>[t.column.id,t.column.getSize()]):[[r.id,r.getSize()]],l=qI(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(t,n)=>{"number"==typeof n&&(e.setColumnSizingInfo(t=>{var r,i;const o="rtl"===e.options.columnResizeDirection?-1:1,a=(n-(null!=(r=null==t?void 0:t.startOffset)?r:0))*o,s=Math.max(a/(null!=(i=null==t?void 0:t.startSize)?i:0),-.999999);return t.columnSizingStart.forEach(t=>{let[e,n]=t;u[e]=Math.round(100*Math.max(n+n*s,0))/100}),{...t,deltaOffset:a,deltaPercentage:s}}),"onChange"!==e.options.columnResizeMode&&"end"!==t||e.setColumnSizing(t=>({...t,...u})))},h=t=>c("move",t),d=t=>{c("end",t),e.setColumnSizingInfo(t=>({...t,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=n||("undefined"!=typeof document?document:null),f={moveHandler:t=>h(t.clientX),upHandler:t=>{null==p||p.removeEventListener("mousemove",f.moveHandler),null==p||p.removeEventListener("mouseup",f.upHandler),d(t.clientX)}},g={moveHandler:t=>(t.cancelable&&(t.preventDefault(),t.stopPropagation()),h(t.touches[0].clientX),!1),upHandler:t=>{var e;null==p||p.removeEventListener("touchmove",g.moveHandler),null==p||p.removeEventListener("touchend",g.upHandler),t.cancelable&&(t.preventDefault(),t.stopPropagation()),d(null==(e=t.touches[0])?void 0:e.clientX)}},m=!!function(){if("boolean"==typeof $I)return $I;let t=!1;try{const e={get passive(){return t=!0,!1}},n=()=>{};window.addEventListener("test",n,e),window.removeEventListener("test",n)}catch(e){t=!1}return $I=t,$I}()&&{passive:!1};qI(o)?(null==p||p.addEventListener("touchmove",g.moveHandler,m),null==p||p.addEventListener("touchend",g.upHandler,m)):(null==p||p.addEventListener("mousemove",f.moveHandler,m),null==p||p.addEventListener("mouseup",f.upHandler,m)),e.setColumnSizingInfo(t=>({...t,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:t=>{t.setColumnSizing=e=>null==t.options.onColumnSizingChange?void 0:t.options.onColumnSizingChange(e),t.setColumnSizingInfo=e=>null==t.options.onColumnSizingInfoChange?void 0:t.options.onColumnSizingInfoChange(e),t.resetColumnSizing=e=>{var n;t.setColumnSizing(e?{}:null!=(n=t.initialState.columnSizing)?n:{})},t.resetHeaderSizeInfo=e=>{var n;t.setColumnSizingInfo(e?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=t.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},t.getTotalSize=()=>{var e,n;return null!=(e=null==(n=t.getHeaderGroups()[0])?void 0:n.headers.reduce((t,e)=>t+e.getSize(),0))?e:0},t.getLeftTotalSize=()=>{var e,n;return null!=(e=null==(n=t.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((t,e)=>t+e.getSize(),0))?e:0},t.getCenterTotalSize=()=>{var e,n;return null!=(e=null==(n=t.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((t,e)=>t+e.getSize(),0))?e:0},t.getRightTotalSize=()=>{var e,n;return null!=(e=null==(n=t.getRightHeaderGroups()[0])?void 0:n.headers.reduce((t,e)=>t+e.getSize(),0))?e:0}}};let $I=null;function qI(t){return"touchstart"===t.type}const ZI={getInitialState:t=>({columnVisibility:{},...t}),getDefaultOptions:t=>({onColumnVisibilityChange:xI("columnVisibility",t)}),createColumn:(t,e)=>{t.toggleVisibility=n=>{t.getCanHide()&&e.setColumnVisibility(e=>({...e,[t.id]:null!=n?n:!t.getIsVisible()}))},t.getIsVisible=()=>{var n,r;const i=t.columns;return null==(n=i.length?i.some(t=>t.getIsVisible()):null==(r=e.getState().columnVisibility)?void 0:r[t.id])||n},t.getCanHide=()=>{var n,r;return(null==(n=t.columnDef.enableHiding)||n)&&(null==(r=e.options.enableHiding)||r)},t.getToggleVisibilityHandler=()=>e=>{null==t.toggleVisibility||t.toggleVisibility(e.target.checked)}},createRow:(t,e)=>{t._getAllVisibleCells=bI(()=>[t.getAllCells(),e.getState().columnVisibility],t=>t.filter(t=>t.column.getIsVisible()),wI(e.options,"debugRows")),t.getVisibleCells=bI(()=>[t.getLeftVisibleCells(),t.getCenterVisibleCells(),t.getRightVisibleCells()],(t,e,n)=>[...t,...e,...n],wI(e.options,"debugRows"))},createTable:t=>{const e=(e,n)=>bI(()=>[n(),n().filter(t=>t.getIsVisible()).map(t=>t.id).join("_")],t=>t.filter(t=>null==t.getIsVisible?void 0:t.getIsVisible()),wI(t.options,"debugColumns"));t.getVisibleFlatColumns=e(0,()=>t.getAllFlatColumns()),t.getVisibleLeafColumns=e(0,()=>t.getAllLeafColumns()),t.getLeftVisibleLeafColumns=e(0,()=>t.getLeftLeafColumns()),t.getRightVisibleLeafColumns=e(0,()=>t.getRightLeafColumns()),t.getCenterVisibleLeafColumns=e(0,()=>t.getCenterLeafColumns()),t.setColumnVisibility=e=>null==t.options.onColumnVisibilityChange?void 0:t.options.onColumnVisibilityChange(e),t.resetColumnVisibility=e=>{var n;t.setColumnVisibility(e?{}:null!=(n=t.initialState.columnVisibility)?n:{})},t.toggleAllColumnsVisible=e=>{var n;e=null!=(n=e)?n:!t.getIsAllColumnsVisible(),t.setColumnVisibility(t.getAllLeafColumns().reduce((t,n)=>({...t,[n.id]:e||!(null!=n.getCanHide&&n.getCanHide())}),{}))},t.getIsAllColumnsVisible=()=>!t.getAllLeafColumns().some(t=>!(null!=t.getIsVisible&&t.getIsVisible())),t.getIsSomeColumnsVisible=()=>t.getAllLeafColumns().some(t=>null==t.getIsVisible?void 0:t.getIsVisible()),t.getToggleAllColumnsVisibilityHandler=()=>e=>{var n;t.toggleAllColumnsVisible(null==(n=e.target)?void 0:n.checked)}}};function KI(t,e){return e?"center"===e?t.getCenterVisibleLeafColumns():"left"===e?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns()}const QI={getInitialState:t=>({expanded:{},...t}),getDefaultOptions:t=>({onExpandedChange:xI("expanded",t),paginateExpandedRows:!0}),createTable:t=>{let e=!1,n=!1;t._autoResetExpanded=()=>{var r,i;if(e){if(null!=(r=null!=(i=t.options.autoResetAll)?i:t.options.autoResetExpanded)?r:!t.options.manualExpanding){if(n)return;n=!0,t._queue(()=>{t.resetExpanded(),n=!1})}}else t._queue(()=>{e=!0})},t.setExpanded=e=>null==t.options.onExpandedChange?void 0:t.options.onExpandedChange(e),t.toggleAllRowsExpanded=e=>{(null!=e?e:!t.getIsAllRowsExpanded())?t.setExpanded(!0):t.setExpanded({})},t.resetExpanded=e=>{var n,r;t.setExpanded(e?{}:null!=(n=null==(r=t.initialState)?void 0:r.expanded)?n:{})},t.getCanSomeRowsExpand=()=>t.getPrePaginationRowModel().flatRows.some(t=>t.getCanExpand()),t.getToggleAllRowsExpandedHandler=()=>e=>{null==e.persist||e.persist(),t.toggleAllRowsExpanded()},t.getIsSomeRowsExpanded=()=>{const e=t.getState().expanded;return!0===e||Object.values(e).some(Boolean)},t.getIsAllRowsExpanded=()=>{const e=t.getState().expanded;return"boolean"==typeof e?!0===e:!!Object.keys(e).length&&!t.getRowModel().flatRows.some(t=>!t.getIsExpanded())},t.getExpandedDepth=()=>{let e=0;return(!0===t.getState().expanded?Object.keys(t.getRowModel().rowsById):Object.keys(t.getState().expanded)).forEach(t=>{const n=t.split(".");e=Math.max(e,n.length)}),e},t.getPreExpandedRowModel=()=>t.getSortedRowModel(),t.getExpandedRowModel=()=>(!t._getExpandedRowModel&&t.options.getExpandedRowModel&&(t._getExpandedRowModel=t.options.getExpandedRowModel(t)),t.options.manualExpanding||!t._getExpandedRowModel?t.getPreExpandedRowModel():t._getExpandedRowModel())},createRow:(t,e)=>{t.toggleExpanded=n=>{e.setExpanded(r=>{var i;const o=!0===r||!(null==r||!r[t.id]);let a={};if(!0===r?Object.keys(e.getRowModel().rowsById).forEach(t=>{a[t]=!0}):a=r,n=null!=(i=n)?i:!o,!o&&n)return{...a,[t.id]:!0};if(o&&!n){const{[t.id]:e,...n}=a;return n}return r})},t.getIsExpanded=()=>{var n;const r=e.getState().expanded;return!!(null!=(n=null==e.options.getIsRowExpanded?void 0:e.options.getIsRowExpanded(t))?n:!0===r||(null==r?void 0:r[t.id]))},t.getCanExpand=()=>{var n,r,i;return null!=(n=null==e.options.getRowCanExpand?void 0:e.options.getRowCanExpand(t))?n:(null==(r=e.options.enableExpanding)||r)&&!(null==(i=t.subRows)||!i.length)},t.getIsAllParentsExpanded=()=>{let n=!0,r=t;for(;n&&r.parentId;)r=e.getRow(r.parentId,!0),n=r.getIsExpanded();return n},t.getToggleExpandedHandler=()=>{const e=t.getCanExpand();return()=>{e&&t.toggleExpanded()}}}},JI={getInitialState:t=>({rowSelection:{},...t}),getDefaultOptions:t=>({onRowSelectionChange:xI("rowSelection",t),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:t=>{t.setRowSelection=e=>null==t.options.onRowSelectionChange?void 0:t.options.onRowSelectionChange(e),t.resetRowSelection=e=>{var n;return t.setRowSelection(e?{}:null!=(n=t.initialState.rowSelection)?n:{})},t.toggleAllRowsSelected=e=>{t.setRowSelection(n=>{e=void 0!==e?e:!t.getIsAllRowsSelected();const r={...n},i=t.getPreGroupedRowModel().flatRows;return e?i.forEach(t=>{t.getCanSelect()&&(r[t.id]=!0)}):i.forEach(t=>{delete r[t.id]}),r})},t.toggleAllPageRowsSelected=e=>t.setRowSelection(n=>{const r=void 0!==e?e:!t.getIsAllPageRowsSelected(),i={...n};return t.getRowModel().rows.forEach(e=>{tD(i,e.id,r,!0,t)}),i}),t.getPreSelectedRowModel=()=>t.getCoreRowModel(),t.getSelectedRowModel=bI(()=>[t.getState().rowSelection,t.getCoreRowModel()],(e,n)=>Object.keys(e).length?eD(t,n):{rows:[],flatRows:[],rowsById:{}},wI(t.options,"debugTable")),t.getFilteredSelectedRowModel=bI(()=>[t.getState().rowSelection,t.getFilteredRowModel()],(e,n)=>Object.keys(e).length?eD(t,n):{rows:[],flatRows:[],rowsById:{}},wI(t.options,"debugTable")),t.getGroupedSelectedRowModel=bI(()=>[t.getState().rowSelection,t.getSortedRowModel()],(e,n)=>Object.keys(e).length?eD(t,n):{rows:[],flatRows:[],rowsById:{}},wI(t.options,"debugTable")),t.getIsAllRowsSelected=()=>{const e=t.getFilteredRowModel().flatRows,{rowSelection:n}=t.getState();let r=Boolean(e.length&&Object.keys(n).length);return r&&e.some(t=>t.getCanSelect()&&!n[t.id])&&(r=!1),r},t.getIsAllPageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows.filter(t=>t.getCanSelect()),{rowSelection:n}=t.getState();let r=!!e.length;return r&&e.some(t=>!n[t.id])&&(r=!1),r},t.getIsSomeRowsSelected=()=>{var e;const n=Object.keys(null!=(e=t.getState().rowSelection)?e:{}).length;return n>0&&n<t.getFilteredRowModel().flatRows.length},t.getIsSomePageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows;return!t.getIsAllPageRowsSelected()&&e.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},t.getToggleAllRowsSelectedHandler=()=>e=>{t.toggleAllRowsSelected(e.target.checked)},t.getToggleAllPageRowsSelectedHandler=()=>e=>{t.toggleAllPageRowsSelected(e.target.checked)}},createRow:(t,e)=>{t.toggleSelected=(n,r)=>{const i=t.getIsSelected();e.setRowSelection(o=>{var a;if(n=void 0!==n?n:!i,t.getCanSelect()&&i===n)return o;const s={...o};return tD(s,t.id,n,null==(a=null==r?void 0:r.selectChildren)||a,e),s})},t.getIsSelected=()=>{const{rowSelection:n}=e.getState();return nD(t,n)},t.getIsSomeSelected=()=>{const{rowSelection:n}=e.getState();return"some"===rD(t,n)},t.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=e.getState();return"all"===rD(t,n)},t.getCanSelect=()=>{var n;return"function"==typeof e.options.enableRowSelection?e.options.enableRowSelection(t):null==(n=e.options.enableRowSelection)||n},t.getCanSelectSubRows=()=>{var n;return"function"==typeof e.options.enableSubRowSelection?e.options.enableSubRowSelection(t):null==(n=e.options.enableSubRowSelection)||n},t.getCanMultiSelect=()=>{var n;return"function"==typeof e.options.enableMultiRowSelection?e.options.enableMultiRowSelection(t):null==(n=e.options.enableMultiRowSelection)||n},t.getToggleSelectedHandler=()=>{const e=t.getCanSelect();return n=>{var r;e&&t.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},tD=(t,e,n,r,i)=>{var o;const a=i.getRow(e,!0);n?(a.getCanMultiSelect()||Object.keys(t).forEach(e=>delete t[e]),a.getCanSelect()&&(t[e]=!0)):delete t[e],r&&null!=(o=a.subRows)&&o.length&&a.getCanSelectSubRows()&&a.subRows.forEach(e=>tD(t,e.id,n,r,i))};function eD(t,e){const n=t.getState().rowSelection,r=[],i={},o=function(t,e){return t.map(t=>{var e;const a=nD(t,n);if(a&&(r.push(t),i[t.id]=t),null!=(e=t.subRows)&&e.length&&(t={...t,subRows:o(t.subRows)}),a)return t}).filter(Boolean)};return{rows:o(e.rows),flatRows:r,rowsById:i}}function nD(t,e){var n;return null!=(n=e[t.id])&&n}function rD(t,e,n){var r;if(null==(r=t.subRows)||!r.length)return!1;let i=!0,o=!1;return t.subRows.forEach(t=>{if((!o||i)&&(t.getCanSelect()&&(nD(t,e)?o=!0:i=!1),t.subRows&&t.subRows.length)){const n=rD(t,e);"all"===n?o=!0:"some"===n?(o=!0,i=!1):i=!1}}),i?"all":!!o&&"some"}const iD=/([0-9]+)/gm;function oD(t,e){return t===e?0:t>e?1:-1}function aD(t){return"number"==typeof t?isNaN(t)||t===1/0||t===-1/0?"":String(t):"string"==typeof t?t:""}function sD(t,e){const n=t.split(iD).filter(Boolean),r=e.split(iD).filter(Boolean);for(;n.length&&r.length;){const t=n.shift(),e=r.shift(),i=parseInt(t,10),o=parseInt(e,10),a=[i,o].sort();if(isNaN(a[0])){if(t>e)return 1;if(e>t)return-1}else{if(isNaN(a[1]))return isNaN(i)?-1:1;if(i>o)return 1;if(o>i)return-1}}return n.length-r.length}const lD={alphanumeric:(t,e,n)=>sD(aD(t.getValue(n)).toLowerCase(),aD(e.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(t,e,n)=>sD(aD(t.getValue(n)),aD(e.getValue(n))),text:(t,e,n)=>oD(aD(t.getValue(n)).toLowerCase(),aD(e.getValue(n)).toLowerCase()),textCaseSensitive:(t,e,n)=>oD(aD(t.getValue(n)),aD(e.getValue(n))),datetime:(t,e,n)=>{const r=t.getValue(n),i=e.getValue(n);return r>i?1:r<i?-1:0},basic:(t,e,n)=>oD(t.getValue(n),e.getValue(n))},uD={getInitialState:t=>({sorting:[],...t}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:t=>({onSortingChange:xI("sorting",t),isMultiSortEvent:t=>t.shiftKey}),createColumn:(t,e)=>{t.getAutoSortingFn=()=>{const n=e.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const e of n){const n=null==e?void 0:e.getValue(t.id);if("[object Date]"===Object.prototype.toString.call(n))return lD.datetime;if("string"==typeof n&&(r=!0,n.split(iD).length>1))return lD.alphanumeric}return r?lD.text:lD.basic},t.getAutoSortDir=()=>{const n=e.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(t.id))?"asc":"desc"},t.getSortingFn=()=>{var n,r;if(!t)throw new Error;return _I(t.columnDef.sortingFn)?t.columnDef.sortingFn:"auto"===t.columnDef.sortingFn?t.getAutoSortingFn():null!=(n=null==(r=e.options.sortingFns)?void 0:r[t.columnDef.sortingFn])?n:lD[t.columnDef.sortingFn]},t.toggleSorting=(n,r)=>{const i=t.getNextSortingOrder(),o=null!=n;e.setSorting(a=>{const s=null==a?void 0:a.find(e=>e.id===t.id),l=null==a?void 0:a.findIndex(e=>e.id===t.id);let u,c=[],h=o?n:"desc"===i;var d;return u=null!=a&&a.length&&t.getCanMultiSort()&&r?s?"toggle":"add":null!=a&&a.length&&l!==a.length-1?"replace":s?"toggle":"replace","toggle"===u&&(o||i||(u="remove")),"add"===u?(c=[...a,{id:t.id,desc:h}],c.splice(0,c.length-(null!=(d=e.options.maxMultiSortColCount)?d:Number.MAX_SAFE_INTEGER))):c="toggle"===u?a.map(e=>e.id===t.id?{...e,desc:h}:e):"remove"===u?a.filter(e=>e.id!==t.id):[{id:t.id,desc:h}],c})},t.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=t.columnDef.sortDescFirst)?r:e.options.sortDescFirst)?n:"desc"===t.getAutoSortDir())?"desc":"asc"},t.getNextSortingOrder=n=>{var r,i;const o=t.getFirstSortDir(),a=t.getIsSorted();return a?!!(a===o||null!=(r=e.options.enableSortingRemoval)&&!r||n&&null!=(i=e.options.enableMultiRemove)&&!i)&&("desc"===a?"asc":"desc"):o},t.getCanSort=()=>{var n,r;return(null==(n=t.columnDef.enableSorting)||n)&&(null==(r=e.options.enableSorting)||r)&&!!t.accessorFn},t.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=t.columnDef.enableMultiSort)?r:e.options.enableMultiSort)?n:!!t.accessorFn},t.getIsSorted=()=>{var n;const r=null==(n=e.getState().sorting)?void 0:n.find(e=>e.id===t.id);return!!r&&(r.desc?"desc":"asc")},t.getSortIndex=()=>{var n,r;return null!=(n=null==(r=e.getState().sorting)?void 0:r.findIndex(e=>e.id===t.id))?n:-1},t.clearSorting=()=>{e.setSorting(e=>null!=e&&e.length?e.filter(e=>e.id!==t.id):[])},t.getToggleSortingHandler=()=>{const n=t.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==t.toggleSorting||t.toggleSorting(void 0,!!t.getCanMultiSort()&&(null==e.options.isMultiSortEvent?void 0:e.options.isMultiSortEvent(r))))}}},createTable:t=>{t.setSorting=e=>null==t.options.onSortingChange?void 0:t.options.onSortingChange(e),t.resetSorting=e=>{var n,r;t.setSorting(e?[]:null!=(n=null==(r=t.initialState)?void 0:r.sorting)?n:[])},t.getPreSortedRowModel=()=>t.getGroupedRowModel(),t.getSortedRowModel=()=>(!t._getSortedRowModel&&t.options.getSortedRowModel&&(t._getSortedRowModel=t.options.getSortedRowModel(t)),t.options.manualSorting||!t._getSortedRowModel?t.getPreSortedRowModel():t._getSortedRowModel())}},cD=[TI,ZI,GI,UI,II,VI,{createTable:t=>{t._getGlobalFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,"__global__"),t.getGlobalFacetedRowModel=()=>t.options.manualFiltering||!t._getGlobalFacetedRowModel?t.getPreFilteredRowModel():t._getGlobalFacetedRowModel(),t._getGlobalFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,"__global__"),t.getGlobalFacetedUniqueValues=()=>t._getGlobalFacetedUniqueValues?t._getGlobalFacetedUniqueValues():new Map,t._getGlobalFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,"__global__"),t.getGlobalFacetedMinMaxValues=()=>{if(t._getGlobalFacetedMinMaxValues)return t._getGlobalFacetedMinMaxValues()}}},{getInitialState:t=>({globalFilter:void 0,...t}),getDefaultOptions:t=>({onGlobalFilterChange:xI("globalFilter",t),globalFilterFn:"auto",getColumnCanGlobalFilter:e=>{var n;const r=null==(n=t.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[e.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(t,e)=>{t.getCanGlobalFilter=()=>{var n,r,i,o;return(null==(n=t.columnDef.enableGlobalFilter)||n)&&(null==(r=e.options.enableGlobalFilter)||r)&&(null==(i=e.options.enableFilters)||i)&&(null==(o=null==e.options.getColumnCanGlobalFilter?void 0:e.options.getColumnCanGlobalFilter(t))||o)&&!!t.accessorFn}},createTable:t=>{t.getGlobalAutoFilterFn=()=>BI.includesString,t.getGlobalFilterFn=()=>{var e,n;const{globalFilterFn:r}=t.options;return _I(r)?r:"auto"===r?t.getGlobalAutoFilterFn():null!=(e=null==(n=t.options.filterFns)?void 0:n[r])?e:BI[r]},t.setGlobalFilter=e=>{null==t.options.onGlobalFilterChange||t.options.onGlobalFilterChange(e)},t.resetGlobalFilter=e=>{t.setGlobalFilter(e?void 0:t.initialState.globalFilter)}}},uD,jI,QI,{getInitialState:t=>({...t,pagination:{pageIndex:0,pageSize:10,...null==t?void 0:t.pagination}}),getDefaultOptions:t=>({onPaginationChange:xI("pagination",t)}),createTable:t=>{let e=!1,n=!1;t._autoResetPageIndex=()=>{var r,i;if(e){if(null!=(r=null!=(i=t.options.autoResetAll)?i:t.options.autoResetPageIndex)?r:!t.options.manualPagination){if(n)return;n=!0,t._queue(()=>{t.resetPageIndex(),n=!1})}}else t._queue(()=>{e=!0})},t.setPagination=e=>null==t.options.onPaginationChange?void 0:t.options.onPaginationChange(t=>vI(e,t)),t.resetPagination=e=>{var n;t.setPagination(e?{pageIndex:0,pageSize:10}:null!=(n=t.initialState.pagination)?n:{pageIndex:0,pageSize:10})},t.setPageIndex=e=>{t.setPagination(n=>{let r=vI(e,n.pageIndex);const i=void 0===t.options.pageCount||-1===t.options.pageCount?Number.MAX_SAFE_INTEGER:t.options.pageCount-1;return r=Math.max(0,Math.min(r,i)),{...n,pageIndex:r}})},t.resetPageIndex=e=>{var n,r;t.setPageIndex(e?0:null!=(n=null==(r=t.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},t.resetPageSize=e=>{var n,r;t.setPageSize(e?10:null!=(n=null==(r=t.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},t.setPageSize=e=>{t.setPagination(t=>{const n=Math.max(1,vI(e,t.pageSize)),r=t.pageSize*t.pageIndex,i=Math.floor(r/n);return{...t,pageIndex:i,pageSize:n}})},t.setPageCount=e=>t.setPagination(n=>{var r;let i=vI(e,null!=(r=t.options.pageCount)?r:-1);return"number"==typeof i&&(i=Math.max(-1,i)),{...n,pageCount:i}}),t.getPageOptions=bI(()=>[t.getPageCount()],t=>{let e=[];return t&&t>0&&(e=[...new Array(t)].fill(null).map((t,e)=>e)),e},wI(t.options,"debugTable")),t.getCanPreviousPage=()=>t.getState().pagination.pageIndex>0,t.getCanNextPage=()=>{const{pageIndex:e}=t.getState().pagination,n=t.getPageCount();return-1===n||0!==n&&e<n-1},t.previousPage=()=>t.setPageIndex(t=>t-1),t.nextPage=()=>t.setPageIndex(t=>t+1),t.firstPage=()=>t.setPageIndex(0),t.lastPage=()=>t.setPageIndex(t.getPageCount()-1),t.getPrePaginationRowModel=()=>t.getExpandedRowModel(),t.getPaginationRowModel=()=>(!t._getPaginationRowModel&&t.options.getPaginationRowModel&&(t._getPaginationRowModel=t.options.getPaginationRowModel(t)),t.options.manualPagination||!t._getPaginationRowModel?t.getPrePaginationRowModel():t._getPaginationRowModel()),t.getPageCount=()=>{var e;return null!=(e=t.options.pageCount)?e:Math.ceil(t.getRowCount()/t.getState().pagination.pageSize)},t.getRowCount=()=>{var e;return null!=(e=t.options.rowCount)?e:t.getPrePaginationRowModel().rows.length}}},{getInitialState:t=>({rowPinning:{top:[],bottom:[]},...t}),getDefaultOptions:t=>({onRowPinningChange:xI("rowPinning",t)}),createRow:(t,e)=>{t.pin=(n,r,i)=>{const o=r?t.getLeafRows().map(t=>{let{id:e}=t;return e}):[],a=i?t.getParentRows().map(t=>{let{id:e}=t;return e}):[],s=new Set([...a,t.id,...o]);e.setRowPinning(t=>{var e,r,i,o,a,l;return"bottom"===n?{top:(null!=(i=null==t?void 0:t.top)?i:[]).filter(t=>!(null!=s&&s.has(t))),bottom:[...(null!=(o=null==t?void 0:t.bottom)?o:[]).filter(t=>!(null!=s&&s.has(t))),...Array.from(s)]}:"top"===n?{top:[...(null!=(a=null==t?void 0:t.top)?a:[]).filter(t=>!(null!=s&&s.has(t))),...Array.from(s)],bottom:(null!=(l=null==t?void 0:t.bottom)?l:[]).filter(t=>!(null!=s&&s.has(t)))}:{top:(null!=(e=null==t?void 0:t.top)?e:[]).filter(t=>!(null!=s&&s.has(t))),bottom:(null!=(r=null==t?void 0:t.bottom)?r:[]).filter(t=>!(null!=s&&s.has(t)))}})},t.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=e.options;return"function"==typeof r?r(t):null==(n=null!=r?r:i)||n},t.getIsPinned=()=>{const n=[t.id],{top:r,bottom:i}=e.getState().rowPinning,o=n.some(t=>null==r?void 0:r.includes(t)),a=n.some(t=>null==i?void 0:i.includes(t));return o?"top":!!a&&"bottom"},t.getPinnedIndex=()=>{var n,r;const i=t.getIsPinned();if(!i)return-1;const o=null==(n="top"===i?e.getTopRows():e.getBottomRows())?void 0:n.map(t=>{let{id:e}=t;return e});return null!=(r=null==o?void 0:o.indexOf(t.id))?r:-1}},createTable:t=>{t.setRowPinning=e=>null==t.options.onRowPinningChange?void 0:t.options.onRowPinningChange(e),t.resetRowPinning=e=>{var n,r;return t.setRowPinning(e?{top:[],bottom:[]}:null!=(n=null==(r=t.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},t.getIsSomeRowsPinned=e=>{var n;const r=t.getState().rowPinning;var i,o;return e?Boolean(null==(n=r[e])?void 0:n.length):Boolean((null==(i=r.top)?void 0:i.length)||(null==(o=r.bottom)?void 0:o.length))},t._getPinnedRows=(e,n,r)=>{var i;return(null==(i=t.options.keepPinnedRows)||i?(null!=n?n:[]).map(e=>{const n=t.getRow(e,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(t=>e.find(e=>e.id===t))).filter(Boolean).map(t=>({...t,position:r}))},t.getTopRows=bI(()=>[t.getRowModel().rows,t.getState().rowPinning.top],(e,n)=>t._getPinnedRows(e,n,"top"),wI(t.options,"debugRows")),t.getBottomRows=bI(()=>[t.getRowModel().rows,t.getState().rowPinning.bottom],(e,n)=>t._getPinnedRows(e,n,"bottom"),wI(t.options,"debugRows")),t.getCenterRows=bI(()=>[t.getRowModel().rows,t.getState().rowPinning.top,t.getState().rowPinning.bottom],(t,e,n)=>{const r=new Set([...null!=e?e:[],...null!=n?n:[]]);return t.filter(t=>!r.has(t.id))},wI(t.options,"debugRows"))}},JI,YI];function hD(t){var e,n;const r=[...cD,...null!=(e=t._features)?e:[]];let i={_features:r};const o=i._features.reduce((t,e)=>Object.assign(t,null==e.getDefaultOptions?void 0:e.getDefaultOptions(i)),{});let a={...null!=(n=t.initialState)?n:{}};i._features.forEach(t=>{var e;a=null!=(e=null==t.getInitialState?void 0:t.getInitialState(a))?e:a});const s=[];let l=!1;const u={_features:r,options:{...o,...t},initialState:a,_queue:t=>{s.push(t),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(t=>setTimeout(()=>{throw t})))},reset:()=>{i.setState(i.initialState)},setOptions:t=>{const e=vI(t,i.options);i.options=(t=>i.options.mergeOptions?i.options.mergeOptions(o,t):{...o,...t})(e)},getState:()=>i.options.state,setState:t=>{null==i.options.onStateChange||i.options.onStateChange(t)},_getRowId:(t,e,n)=>{var r;return null!=(r=null==i.options.getRowId?void 0:i.options.getRowId(t,e,n))?r:`${n?[n.id,e].join("."):e}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(t,e)=>{let n=(e?i.getPrePaginationRowModel():i.getRowModel()).rowsById[t];if(!n&&(n=i.getCoreRowModel().rowsById[t],!n))throw new Error;return n},_getDefaultColumnDef:bI(()=>[i.options.defaultColumn],t=>{var e;return t=null!=(e=t)?e:{},{header:t=>{const e=t.header.column.columnDef;return e.accessorKey?e.accessorKey:e.accessorFn?e.id:null},cell:t=>{var e,n;return null!=(e=null==(n=t.renderValue())||null==n.toString?void 0:n.toString())?e:null},...i._features.reduce((t,e)=>Object.assign(t,null==e.getDefaultColumnDef?void 0:e.getDefaultColumnDef()),{}),...t}},wI(t,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:bI(()=>[i._getColumnDefs()],t=>{const e=function(t,n,r){return void 0===r&&(r=0),t.map(t=>{const o=function(t,e,n,r){var i,o;const a={...t._getDefaultColumnDef(),...e},s=a.accessorKey;let l,u=null!=(i=null!=(o=a.id)?o:s?"function"==typeof String.prototype.replaceAll?s.replaceAll(".","_"):s.replace(/\./g,"_"):void 0)?i:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?l=a.accessorFn:s&&(l=s.includes(".")?t=>{let e=t;for(const t of s.split(".")){var n;e=null==(n=e)?void 0:n[t]}return e}:t=>t[a.accessorKey]),!u)throw new Error;let c={id:`${String(u)}`,accessorFn:l,parent:r,depth:n,columnDef:a,columns:[],getFlatColumns:bI(()=>[!0],()=>{var t;return[c,...null==(t=c.columns)?void 0:t.flatMap(t=>t.getFlatColumns())]},wI(t.options,"debugColumns")),getLeafColumns:bI(()=>[t._getOrderColumnsFn()],t=>{var e;if(null!=(e=c.columns)&&e.length){let e=c.columns.flatMap(t=>t.getLeafColumns());return t(e)}return[c]},wI(t.options,"debugColumns"))};for(const e of t._features)null==e.createColumn||e.createColumn(c,t);return c}(i,t,r,n),a=t;return o.columns=a.columns?e(a.columns,o,r+1):[],o})};return e(t)},wI(t,"debugColumns")),getAllFlatColumns:bI(()=>[i.getAllColumns()],t=>t.flatMap(t=>t.getFlatColumns()),wI(t,"debugColumns")),_getAllFlatColumnsById:bI(()=>[i.getAllFlatColumns()],t=>t.reduce((t,e)=>(t[e.id]=e,t),{}),wI(t,"debugColumns")),getAllLeafColumns:bI(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(t,e)=>e(t.flatMap(t=>t.getLeafColumns())),wI(t,"debugColumns")),getColumn:t=>i._getAllFlatColumnsById()[t]};Object.assign(i,u);for(let t=0;t<i._features.length;t++){const e=i._features[t];null==e||null==e.createTable||e.createTable(i)}return i}function dD(t,e){return t?function(t){return"function"==typeof t&&(()=>{const e=Object.getPrototypeOf(t);return e.prototype&&e.prototype.isReactComponent})()}(n=t)||"function"==typeof n||function(t){return"object"==typeof t&&"symbol"==typeof t.$$typeof&&["react.memo","react.forward_ref"].includes(t.$$typeof.description)}(n)?HS.createElement(t,e):t:null;var n}const pD="asc",fD="desc",gD="default",mD={[pD]:(0,l.jsx)(gI,{}),[fD]:(0,l.jsx)(mI,{}),[gD]:(0,l.jsx)(yI,{})};function yD({isLoading:t,error:e,tableRows:n,columnCount:r}){let i;return i=!0===t?Array.from({length:5}).map((t,e)=>(0,l.jsx)($k.Tr,{children:Array.from({length:r}).map((t,e)=>(0,l.jsx)($k.Td,{children:(0,l.jsx)(Qk,{height:16,width:"100%"})},e))},e)):e instanceof Error?(0,l.jsx)($k.Tr,{children:(0,l.jsx)($k.Td,{colSpan:r,align:"center",children:(0,l.jsx)(dI,{color:"red",children:e.message})})}):0===n.length?(0,l.jsx)($k.Tr,{children:(0,l.jsx)($k.Td,{colSpan:r,align:"center",children:"No data available."})}):n.map(t=>(0,l.jsx)($k.Tr,{children:t.getVisibleCells().map(t=>(0,l.jsx)($k.Td,{children:dD(t.column.columnDef.cell,t.getContext())},t.id))},t.id)),i}var vD={root:"m_4081bf90"};const xD={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},_D=(t,{grow:e,preventGrowOverflow:n,gap:r,align:i,justify:o,wrap:a},{childWidth:s})=>({root:{"--group-child-width":e&&n?s:void 0,"--group-gap":$S(r),"--group-align":i,"--group-justify":o,"--group-wrap":a}}),bD=GC((t,e)=>{const n=sC("Group",xD,t),{classNames:r,className:i,style:o,styles:a,unstyled:s,children:u,gap:c,align:h,justify:d,wrap:p,grow:f,preventGrowOverflow:g,vars:m,variant:y,__size:v,mod:x,attributes:_,...b}=n,w=function(t){return HS.Children.toArray(t).filter(Boolean)}(u),S=w.length,C=$S(c??"md"),T=SC({name:"Group",props:n,stylesCtx:{childWidth:`calc(${100/S}% - (${C} - ${C} / ${S}))`},className:i,style:o,classes:vD,classNames:r,styles:a,unstyled:s,attributes:_,vars:m,varsResolver:_D});return(0,l.jsx)(WC,{...T("root"),ref:e,variant:y,mod:[{grow:f},x],size:v,...b,children:w})});bD.classes=vD,bD.displayName="@mantine/core/Group";var wD={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const SD=(0,HS.forwardRef)(({className:t,...e},n)=>(0,l.jsxs)(WC,{component:"span",className:dC(wD.barsLoader,t),...e,ref:n,children:[(0,l.jsx)("span",{className:wD.bar}),(0,l.jsx)("span",{className:wD.bar}),(0,l.jsx)("span",{className:wD.bar})]}));SD.displayName="@mantine/core/Bars";const CD=(0,HS.forwardRef)(({className:t,...e},n)=>(0,l.jsxs)(WC,{component:"span",className:dC(wD.dotsLoader,t),...e,ref:n,children:[(0,l.jsx)("span",{className:wD.dot}),(0,l.jsx)("span",{className:wD.dot}),(0,l.jsx)("span",{className:wD.dot})]}));CD.displayName="@mantine/core/Dots";const TD=(0,HS.forwardRef)(({className:t,...e},n)=>(0,l.jsx)(WC,{component:"span",className:dC(wD.ovalLoader,t),...e,ref:n}));TD.displayName="@mantine/core/Oval";const MD={bars:SD,oval:TD,dots:CD},kD={loaders:MD,type:"oval"},ID=(t,{size:e,color:n})=>({root:{"--loader-size":YS(e,"loader-size"),"--loader-color":n?nC(n,t):void 0}}),DD=GC((t,e)=>{const n=sC("Loader",kD,t),{size:r,color:i,type:o,vars:a,className:s,style:u,classNames:c,styles:h,unstyled:d,loaders:p,variant:f,children:g,attributes:m,...y}=n,v=SC({name:"Loader",props:n,classes:wD,className:s,style:u,classNames:c,styles:h,unstyled:d,attributes:m,vars:a,varsResolver:ID});return g?(0,l.jsx)(WC,{...v("root"),ref:e,...y,children:g}):(0,l.jsx)(WC,{...v("root"),ref:e,component:p[o],variant:f,size:r,...y})});DD.defaultLoaders=MD,DD.classes=wD,DD.displayName="@mantine/core/Loader";const RD=t=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${"bottom"===t?10:-10}px)`},transitionProperty:"transform, opacity"}),PD={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...RD("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...RD("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...RD("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...RD("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...RD("top"),common:{transformOrigin:"top right"}}},AD={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function OD({transition:t,state:e,duration:n,timingFunction:r}){const i={WebkitBackfaceVisibility:"hidden",transitionDuration:`${n}ms`,transitionTimingFunction:r};return"string"==typeof t?t in PD?{transitionProperty:PD[t].transitionProperty,...i,...PD[t].common,...PD[t][AD[e]]}:{}:{transitionProperty:t.transitionProperty,...i,...t.common,...t[AD[e]]}}function LD(t,e){const n=(0,HS.useRef)(!1);(0,HS.useEffect)(()=>()=>{n.current=!1},[]),(0,HS.useEffect)(()=>{if(n.current)return t();n.current=!0},e)}function ND({duration:t,exitDuration:e,timingFunction:r,mounted:i,onEnter:o,onExit:a,onEntered:s,onExited:l,enterDelay:u,exitDelay:c}){const h=aC(),d=function(t,e,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,i]=(0,HS.useState)(n?e:function(t){return"undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia(t).matches}(t));return(0,HS.useEffect)(()=>{try{const e=window.matchMedia(t);return i(e.matches),function(t,e){try{return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}catch(n){return t.addListener(e),()=>t.removeListener(e)}}(e,t=>i(t.matches))}catch(t){return}},[t]),r||!1}("(prefers-reduced-motion: reduce)",undefined,undefined);const p=!!h.respectReducedMotion&&d,[f,g]=(0,HS.useState)(p?0:t),[m,y]=(0,HS.useState)(i?"entered":"exited"),v=(0,HS.useRef)(-1),x=(0,HS.useRef)(-1),_=(0,HS.useRef)(-1);function b(){window.clearTimeout(v.current),window.clearTimeout(x.current),cancelAnimationFrame(_.current)}const w=r=>{b();const i=r?o:a,u=r?s:l,c=p?0:r?t:e;g(c),0===c?("function"==typeof i&&i(),"function"==typeof u&&u(),y(r?"entered":"exited")):_.current=requestAnimationFrame(()=>{n.flushSync(()=>{y(r?"pre-entering":"pre-exiting")}),_.current=requestAnimationFrame(()=>{"function"==typeof i&&i(),y(r?"entering":"exiting"),v.current=window.setTimeout(()=>{"function"==typeof u&&u(),y(r?"entered":"exited")},c)})})};return LD(()=>{var t;t=i,b(),"number"==typeof(t?u:c)?x.current=window.setTimeout(()=>{w(t)},t?u:c):w(t)},[i]),(0,HS.useEffect)(()=>()=>{b()},[]),{transitionDuration:f,transitionStatus:m,transitionTimingFunction:r||"ease"}}function ED({keepMounted:t,transition:e="fade",duration:n=250,exitDuration:r=n,mounted:i,children:o,timingFunction:a="ease",onExit:s,onEntered:u,onEnter:c,onExited:h,enterDelay:d,exitDelay:p}){const f=cC(),{transitionDuration:g,transitionStatus:m,transitionTimingFunction:y}=ND({mounted:i,exitDuration:r,duration:n,timingFunction:a,onExit:s,onEntered:u,onEnter:c,onExited:h,enterDelay:d,exitDelay:p});return 0===g||"test"===f?i?(0,l.jsx)(l.Fragment,{children:o({})}):t?o({display:"none"}):null:"exited"===m?t?o({display:"none"}):null:(0,l.jsx)(l.Fragment,{children:o(OD({transition:e,duration:g,state:m,timingFunction:y}))})}ED.displayName="@mantine/core/Transition";var zD={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const BD={orientation:"horizontal"},FD=(t,{borderWidth:e})=>({group:{"--ai-border-width":US(e)}}),VD=GC((t,e)=>{const n=sC("ActionIconGroup",BD,t),{className:r,style:i,classNames:o,styles:a,unstyled:s,orientation:u,vars:c,borderWidth:h,variant:d,mod:p,attributes:f,...g}=sC("ActionIconGroup",BD,t),m=SC({name:"ActionIconGroup",props:n,classes:zD,className:r,style:i,classNames:o,styles:a,unstyled:s,attributes:f,vars:c,varsResolver:FD,rootSelector:"group"});return(0,l.jsx)(WC,{...m("group"),ref:e,variant:d,mod:[{"data-orientation":u},p],role:"group",...g})});VD.classes=zD,VD.displayName="@mantine/core/ActionIconGroup";const HD=(t,{radius:e,color:n,gradient:r,variant:i,autoContrast:o,size:a})=>{const s=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:i||"filled",autoContrast:o});return{groupSection:{"--section-height":YS(a,"section-height"),"--section-padding-x":YS(a,"section-padding-x"),"--section-fz":ZS(a),"--section-radius":void 0===e?void 0:qS(e),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}},WD=GC((t,e)=>{const n=sC("ActionIconGroupSection",null,t),{className:r,style:i,classNames:o,styles:a,unstyled:s,vars:u,variant:c,gradient:h,radius:d,autoContrast:p,attributes:f,...g}=n,m=SC({name:"ActionIconGroupSection",props:n,classes:zD,className:r,style:i,classNames:o,styles:a,unstyled:s,attributes:f,vars:u,varsResolver:HD,rootSelector:"groupSection"});return(0,l.jsx)(WC,{...m("groupSection"),ref:e,variant:c,...g})});WD.classes=zD,WD.displayName="@mantine/core/ActionIconGroupSection";const jD=(t,{size:e,radius:n,variant:r,gradient:i,color:o,autoContrast:a})=>{const s=t.variantColorResolver({color:o||t.primaryColor,theme:t,gradient:i,variant:r||"filled",autoContrast:a});return{root:{"--ai-size":YS(e,"ai-size"),"--ai-radius":void 0===n?void 0:qS(n),"--ai-bg":o||r?s.background:void 0,"--ai-hover":o||r?s.hover:void 0,"--ai-hover-color":o||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":o||r?s.border:void 0}}},GD=eI((t,e)=>{const n=sC("ActionIcon",null,t),{className:r,unstyled:i,variant:o,classNames:a,styles:s,style:u,loading:c,loaderProps:h,size:d,color:p,radius:f,__staticSelector:g,gradient:m,vars:y,children:v,disabled:x,"data-disabled":_,autoContrast:b,mod:w,attributes:S,...C}=n,T=SC({name:["ActionIcon",g],props:n,className:r,style:u,classes:zD,classNames:a,styles:s,unstyled:i,attributes:S,vars:y,varsResolver:jD});return(0,l.jsxs)(iI,{...T("root",{active:!x&&!c&&!_}),...C,unstyled:i,variant:o,size:d,disabled:x||c,ref:e,mod:[{loading:c,disabled:x||_},w],children:["boolean"==typeof c&&(0,l.jsx)(ED,{mounted:c,transition:"slide-down",duration:150,children:t=>(0,l.jsx)(WC,{component:"span",...T("loader",{style:t}),"aria-hidden":!0,children:(0,l.jsx)(DD,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...h})})}),(0,l.jsx)(WC,{component:"span",mod:{loading:c},...T("icon"),children:v})]})});function UD({data:t,isLoading:e,error:n,columns:r}){const[i,o]=(0,HS.useState)([]),a=function(t){const e={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[n]=HS.useState(()=>({current:hD(e)})),[r,i]=HS.useState(()=>n.current.initialState);return n.current.setOptions(e=>({...e,...t,state:{...r,...t.state},onStateChange:e=>{i(e),null==t.onStateChange||t.onStateChange(e)}})),n.current}({data:t,columns:r,getCoreRowModel:t=>bI(()=>[t.options.data],e=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(e,i,o){void 0===i&&(i=0);const a=[];for(let l=0;l<e.length;l++){const u=kI(t,t._getRowId(e[l],l,o),e[l],l,i,void 0,null==o?void 0:o.id);var s;n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),t.options.getSubRows&&(u.originalSubRows=t.options.getSubRows(e[l],l),null!=(s=u.originalSubRows)&&s.length&&(u.subRows=r(u.originalSubRows,i+1,u)))}return a};return n.rows=r(e),n},wI(t.options,"debugTable",0,()=>t._autoResetPageIndex())),getSortedRowModel:t=>bI(()=>[t.getState().sorting,t.getPreSortedRowModel()],(e,n)=>{if(!n.rows.length||null==e||!e.length)return n;const r=t.getState().sorting,i=[],o=r.filter(e=>{var n;return null==(n=t.getColumn(e.id))?void 0:n.getCanSort()}),a={};o.forEach(e=>{const n=t.getColumn(e.id);n&&(a[e.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})});const s=t=>{const e=t.map(t=>({...t}));return e.sort((t,e)=>{for(let r=0;r<o.length;r+=1){var n;const i=o[r],s=a[i.id],l=s.sortUndefined,u=null!=(n=null==i?void 0:i.desc)&&n;let c=0;if(l){const n=void 0===t.getValue(i.id),r=void 0===e.getValue(i.id);if(n||r){if("first"===l)return n?-1:1;if("last"===l)return n?1:-1;c=n&&r?0:n?l:-l}}if(0===c&&(c=s.sortingFn(t,e,i.id)),0!==c)return u&&(c*=-1),s.invertSorting&&(c*=-1),c}return t.index-e.index}),e.forEach(t=>{var e;i.push(t),null!=(e=t.subRows)&&e.length&&(t.subRows=s(t.subRows))}),e};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},wI(t.options,"debugTable",0,()=>t._autoResetPageIndex())),onSortingChange:o,state:{sorting:i}});return(0,l.jsx)(Hk,{children:(0,l.jsxs)($k,{highlightOnHover:!0,withTableBorder:!0,withColumnBorders:!0,children:[(0,l.jsx)($k.Thead,{children:a.getHeaderGroups().map(t=>(0,l.jsx)($k.Tr,{children:t.headers.map(t=>(0,l.jsx)($k.Th,{onClick:t.column.getToggleSortingHandler(),children:(0,l.jsxs)(bD,{gap:"xs",wrap:"nowrap",children:[dD(t.column.columnDef.header,t.getContext()),(0,l.jsx)(GD,{variant:"subtle",size:"sm",children:(()=>{const e=t.column.getIsSorted();return function(t,e){let n;return!0===e&&(n=mD[t]),n}(!1===e?gD:e,t.column.getCanSort())})()})]})},t.id))},t.id))}),(0,l.jsx)($k.Tbody,{children:yD({isLoading:e,error:n,tableRows:a.getRowModel().rows,columnCount:r.length})})]})})}function XD({value:t,defaultValue:e,finalValue:n,onChange:r=()=>{}}){const[i,o]=(0,HS.useState)(void 0!==e?e:n);return void 0!==t?[t,r,!0]:[i,(t,...e)=>{o(t),r?.(t,...e)},!1]}function YD({classNames:t,styles:e,props:n,stylesCtx:r}){const i=aC();return{resolvedClassNames:gC({theme:i,classNames:t,props:n,stylesCtx:r||void 0}),resolvedStyles:vC({theme:i,styles:e,props:n,stylesCtx:r||void 0})}}function $D(t){return"string"==typeof t?{value:t,label:t}:"value"in t&&!("label"in t)?{value:t.value,label:t.value,disabled:t.disabled}:"number"==typeof t?{value:t.toString(),label:t.toString()}:"group"in t?{group:t.group,items:t.items.map(t=>$D(t))}:t}function qD(t){return t?t.map(t=>$D(t)):[]}function ZD(t){return t.reduce((t,e)=>"group"in e?{...t,...ZD(e.items)}:(t[e.value]=e,t),{})}GD.classes=zD,GD.displayName="@mantine/core/ActionIcon",GD.Group=VD,GD.GroupSection=WD;const KD=["mousedown","touchstart"],QD={app:100,modal:200,popover:300,overlay:400,max:9999};function JD(t){return QD[t]}function tR(t,e){if("rtl"===t&&(e.includes("right")||e.includes("left"))){const[t,n]=e.split("-"),r="right"===t?"left":"right";return void 0===n?r:`${r}-${n}`}return e}var eR={root:"m_9814e45f"};const nR={zIndex:JD("modal")},rR=(t,{gradient:e,color:n,backgroundOpacity:r,blur:i,radius:o,zIndex:a})=>({root:{"--overlay-bg":e||(void 0!==n||void 0!==r)&&iC(n||"#000",r??.6)||void 0,"--overlay-filter":i?`blur(${US(i)})`:void 0,"--overlay-radius":void 0===o?void 0:qS(o),"--overlay-z-index":a?.toString()}}),iR=eI((t,e)=>{const n=sC("Overlay",nR,t),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:u,fixed:c,center:h,children:d,radius:p,zIndex:f,gradient:g,blur:m,color:y,backgroundOpacity:v,mod:x,attributes:_,...b}=n,w=SC({name:"Overlay",props:n,classes:eR,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:_,vars:u,varsResolver:rR});return(0,l.jsx)(WC,{ref:e,...w("root"),mod:[{center:h,fixed:c},x],...b,children:d})});function oR(t){const e=document.createElement("div");return e.setAttribute("data-portal","true"),"string"==typeof t.className&&e.classList.add(...t.className.split(" ").filter(Boolean)),"object"==typeof t.style&&Object.assign(e.style,t.style),"string"==typeof t.id&&e.setAttribute("id",t.id),e}iR.classes=eR,iR.displayName="@mantine/core/Overlay";const aR={reuseTargetNode:!0},sR=GC((t,n)=>{const{children:r,target:i,reuseTargetNode:o,...a}=sC("Portal",aR,t),[s,u]=(0,HS.useState)(!1),c=(0,HS.useRef)(null);return sk(()=>(u(!0),c.current=function({target:t,reuseTargetNode:e,...n}){if(t)return"string"==typeof t?document.querySelector(t)||oR(n):t;if(e){const t=document.querySelector("[data-mantine-shared-portal-node]");if(t)return t;const e=oR(n);return e.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(e),e}return oR(n)}({target:i,reuseTargetNode:o,...a}),hk(n,c.current),i||o||!c.current||document.body.appendChild(c.current),()=>{i||o||!c.current||document.body.removeChild(c.current)}),[i]),s&&c.current?e((0,l.jsx)(l.Fragment,{children:r}),c.current):null});sR.displayName="@mantine/core/Portal";const lR=GC(({withinPortal:t=!0,children:e,...n},r)=>"test"!==cC()&&t?(0,l.jsx)(sR,{ref:r,...n,children:e}):(0,l.jsx)(l.Fragment,{children:e}));lR.displayName="@mantine/core/OptionalPortal";const[uR,cR]=UC("Popover component was not found in the tree"),hR=()=>{};function dR(t,e={active:!0}){return"function"==typeof t&&e.active?n=>{"Escape"===n.key&&(t(n),e.onTrigger?.())}:e.onKeyDown||hR}function pR(t,e,n,r){return"center"===t||"center"===r?{top:e}:"end"===t?{bottom:n}:"start"===t?{top:n}:{}}function fR(t,e,n,r,i){return"center"===t||"center"===r?{left:e}:"end"===t?{["ltr"===i?"right":"left"]:n}:"start"===t?{["ltr"===i?"left":"right"]:n}:{}}const gR={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function mR({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:o,arrowY:a,dir:s}){const[l,u="center"]=t.split("-"),c={width:e,height:e,transform:"rotate(45deg)",position:"absolute",[gR[l]]:r},h=-e/2;return"left"===l?{...c,...pR(u,a,n,i),right:h,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:"right"===l?{...c,...pR(u,a,n,i),left:h,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:"top"===l?{...c,...fR(u,o,n,i,s),bottom:h,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:"bottom"===l?{...c,...fR(u,o,n,i,s),top:h,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const yR=(0,HS.forwardRef)(({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:o,arrowX:a,arrowY:s,style:u,...c},h)=>{const{dir:d}=yk();return o?(0,l.jsx)("div",{...c,ref:h,style:{...u,...mR({position:t,arrowSize:e,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:d,arrowX:a,arrowY:s})}}):null});yR.displayName="@mantine/core/FloatingArrow";const vR=/input|select|textarea|button|object/,xR="a, input, select, textarea, button, object, [tabindex]";function _R(t){return"none"===t.style.display}function bR(t){let e=t.getAttribute("tabindex");return null===e&&(e=void 0),parseInt(e,10)}function wR(t){const e=t.nodeName.toLowerCase(),n=!Number.isNaN(bR(t));return(vR.test(e)&&!t.disabled||t instanceof HTMLAnchorElement&&t.href||n)&&function(t){if(t.getAttribute("aria-hidden")||t.getAttribute("hidden")||"hidden"===t.getAttribute("type"))return!1;let e=t;for(;e&&e!==document.body&&11!==e.nodeType;){if(_R(e))return!1;e=e.parentNode}return!0}(t)}function SR(t){const e=bR(t);return(Number.isNaN(e)||e>=0)&&wR(t)}function CR(t){return!Array.isArray(t)&&null!==t&&"object"==typeof t&&t.type!==HS.Fragment}var TR={root:"m_515a97f8"};const MR=GC((t,e)=>{const n=sC("VisuallyHidden",null,t),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:u,attributes:c,...h}=n,d=SC({name:"VisuallyHidden",classes:TR,props:n,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:c});return(0,l.jsx)(WC,{component:"span",ref:e,...d("root"),...h})});function kR({children:t,active:e=!0,refProp:n="ref",innerRef:r}){const i=function(t=!0){const e=(0,HS.useRef)(null),n=t=>{let e=t.querySelector("[data-autofocus]");if(!e){const n=Array.from(t.querySelectorAll(xR));e=n.find(SR)||n.find(wR)||null,!e&&wR(t)&&(e=t)}e&&e.focus({preventScroll:!0})},r=(0,HS.useCallback)(r=>{t&&null!==r&&e.current!==r&&(r?(setTimeout(()=>{r.getRootNode()&&n(r)}),e.current=r):e.current=null)},[t]);return(0,HS.useEffect)(()=>{if(!t)return;e.current&&setTimeout(()=>n(e.current));const r=t=>{"Tab"===t.key&&e.current&&function(t,e){const n=(r=t,Array.from(r.querySelectorAll(xR)).filter(SR));var r;if(!n.length)return void e.preventDefault();const i=n[e.shiftKey?0:n.length-1],o=t.getRootNode();let a=i===o.activeElement||t===o.activeElement;const s=o.activeElement;if("INPUT"===s.tagName&&"radio"===s.getAttribute("type")){const t=n.filter(t=>"radio"===t.getAttribute("type")&&t.getAttribute("name")===s.getAttribute("name"));a=t.includes(i)}if(!a)return;e.preventDefault();const l=n[e.shiftKey?n.length-1:0];l&&l.focus()}(e.current,t)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t]),r}(e),o=dk(i,r);return CR(t)?(0,HS.cloneElement)(t,{[n]:o}):t}function IR(t){return(0,l.jsx)(MR,{tabIndex:-1,"data-autofocus":!0,...t})}MR.classes=TR,MR.displayName="@mantine/core/VisuallyHidden",kR.displayName="@mantine/core/FocusTrap",IR.displayName="@mantine/core/FocusTrapInitialFocus",kR.InitialFocus=IR;var DR={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const RR=GC((t,e)=>{const n=sC("PopoverDropdown",null,t),{className:r,style:i,vars:o,children:a,onKeyDownCapture:s,variant:u,classNames:c,styles:h,...d}=n,p=cR(),f=function({opened:t,shouldReturnFocus:e=!0}){const n=(0,HS.useRef)(null),r=()=>{n.current&&"focus"in n.current&&"function"==typeof n.current.focus&&n.current?.focus({preventScroll:!0})};return LD(()=>{let i=-1;const o=t=>{"Tab"===t.key&&window.clearTimeout(i)};return document.addEventListener("keydown",o),t?n.current=document.activeElement:e&&(i=window.setTimeout(r,10)),()=>{window.clearTimeout(i),document.removeEventListener("keydown",o)}},[t,e]),r}({opened:p.opened,shouldReturnFocus:p.returnFocus}),g=p.withRoles?{"aria-labelledby":p.getTargetId(),id:p.getDropdownId(),role:"dialog",tabIndex:-1}:{},m=dk(e,p.floating);return p.disabled?null:(0,l.jsx)(lR,{...p.portalProps,withinPortal:p.withinPortal,children:(0,l.jsx)(ED,{mounted:p.opened,...p.transitionProps,transition:p.transitionProps?.transition||"fade",duration:p.transitionProps?.duration??150,keepMounted:p.keepMounted,exitDuration:"number"==typeof p.transitionProps?.exitDuration?p.transitionProps.exitDuration:p.transitionProps?.duration,children:t=>(0,l.jsx)(kR,{active:p.trapFocus&&p.opened,innerRef:m,children:(0,l.jsxs)(WC,{...g,...d,variant:u,onKeyDownCapture:dR(()=>{p.onClose?.(),p.onDismiss?.()},{active:p.closeOnEscape,onTrigger:f,onKeyDown:s}),"data-position":p.placement,"data-fixed":"fixed"===p.floatingStrategy||void 0,...p.getStyles("dropdown",{className:r,props:n,classNames:c,styles:h,style:[{...t,zIndex:p.zIndex,top:p.y??0,left:p.x??0,width:"target"===p.width?void 0:US(p.width),...p.referenceHidden?{display:"none"}:null},p.resolvedStyles.dropdown,h?.dropdown,i]}),children:[a,(0,l.jsx)(yR,{ref:p.arrowRef,arrowX:p.arrowX,arrowY:p.arrowY,visible:p.withArrow,position:p.placement,arrowSize:p.arrowSize,arrowRadius:p.arrowRadius,arrowOffset:p.arrowOffset,arrowPosition:p.arrowPosition,...p.getStyles("arrow",{props:n,classNames:c,styles:h})})]})})})})});function PR(t){const e=HS.default.version;return"string"!=typeof HS.default.version||e.startsWith("18.")?t?.ref:t?.props?.ref}RR.classes=DR,RR.displayName="@mantine/core/PopoverDropdown";const AR={refProp:"ref",popupType:"dialog"},OR=GC((t,e)=>{const{children:n,refProp:r,popupType:i,...o}=sC("PopoverTarget",AR,t);if(!CR(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const a=o,s=cR(),l=dk(s.reference,PR(n),e),u=s.withRoles?{"aria-haspopup":i,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return(0,HS.cloneElement)(n,{...a,...u,...s.targetProps,className:dC(s.targetProps.className,a.className,n.props.className),[r]:l,...s.controlled?null:{onClick:()=>{s.onToggle(),n.props.onClick?.()}}})});function LR(t,e,n){const r=function(t){if(void 0===t)return{shift:!0,flip:!0};const e={...t};return void 0===t.shift&&(e.shift=!0),void 0===t.flip&&(e.flip=!0),e}(t.middlewares),i=[jM(t.offset),XM()];return t.dropdownVisible&&"test"!==n&&t.preventPositionChangeWhenVisible&&(r.flip=!1),r.shift&&i.push((t=>({...RM(t),options:[t,void 0]}))("boolean"==typeof r.shift?{limiter:GM(),padding:5}:{limiter:GM(),padding:5,...r.shift})),r.flip&&i.push("boolean"==typeof r.flip?UM():UM(r.flip)),r.inline&&i.push("boolean"==typeof r.inline?YM():YM(r.inline)),i.push((t=>({...WM(t),options:[t,void 0]}))({element:t.arrowRef,padding:t.arrowOffset})),(r.size||"target"===t.width)&&i.push((t=>({...AM(t),options:[t,void 0]}))({..."boolean"==typeof r.size?{}:r.size,apply({rects:n,availableWidth:i,availableHeight:o,...a}){const s=e(),l=s.refs.floating.current?.style??{};r.size&&("object"==typeof r.size&&r.size.apply?r.size.apply({rects:n,availableWidth:i,availableHeight:o,...a}):Object.assign(l,{maxWidth:`${i}px`,maxHeight:`${o}px`})),"target"===t.width&&Object.assign(l,{width:`${n.reference.width}px`})}})),i}OR.displayName="@mantine/core/PopoverTarget";const NR={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:JD("popover"),__staticSelector:"Popover",width:"max-content"},ER=(t,{radius:e,shadow:n})=>({dropdown:{"--popover-radius":void 0===e?void 0:qS(e),"--popover-shadow":KS(n)}});function zR(t){const e=sC("Popover",NR,t),{children:n,position:r,offset:i,onPositionChange:o,positionDependencies:a,opened:s,transitionProps:u,onExitTransitionEnd:c,onEnterTransitionEnd:h,width:d,middlewares:p,withArrow:f,arrowSize:g,arrowOffset:m,arrowRadius:y,arrowPosition:v,unstyled:x,classNames:_,styles:b,closeOnClickOutside:w,withinPortal:S,portalProps:C,closeOnEscape:T,clickOutsideEvents:M,trapFocus:k,onClose:I,onDismiss:D,onOpen:R,onChange:P,zIndex:A,radius:O,shadow:L,id:N,defaultOpened:E,__staticSelector:z,withRoles:B,disabled:F,returnFocus:V,variant:H,keepMounted:W,vars:j,floatingStrategy:G,withOverlay:U,overlayProps:X,hideDetached:Y,attributes:$,preventPositionChangeWhenVisible:q,...Z}=e,K=SC({name:z,props:e,classes:DR,classNames:_,styles:b,unstyled:x,attributes:$,rootSelector:"dropdown",vars:j,varsResolver:ER}),{resolvedStyles:Q}=YD({classNames:_,styles:b,props:e}),[J,tt]=(0,HS.useState)(s??E??!1),et=(0,HS.useRef)(r),nt=(0,HS.useRef)(null),[rt,it]=(0,HS.useState)(null),[ot,at]=(0,HS.useState)(null),{dir:st}=yk(),lt=cC(),ut=tI(N),ct=function(t){const e=cC(),[n,r]=XD({value:t.opened,defaultValue:t.defaultOpened,finalValue:!1,onChange:t.onChange}),i=(0,HS.useRef)(n),o=rk({strategy:t.strategy,placement:t.preventPositionChangeWhenVisible?t.positionRef.current:t.position,middleware:LR(t,()=>o,e),whileElementsMounted:t.keepMounted?void 0:IM});return(0,HS.useEffect)(()=>{if(o.refs.reference.current&&o.refs.floating.current)return n?IM(o.refs.reference.current,o.refs.floating.current,o.update):void 0},[n,o.update]),LD(()=>{t.onPositionChange?.(o.placement),t.positionRef.current=o.placement},[o.placement,t.preventPositionChangeWhenVisible]),LD(()=>{n!==i.current&&(n?t.onOpen?.():t.onClose?.()),i.current=n},[n,t.onClose,t.onOpen]),LD(()=>{let e=-1;return n&&(e=window.setTimeout(()=>t.setDropdownVisible(!0),4)),()=>{window.clearTimeout(e)}},[n,t.position]),{floating:o,controlled:"boolean"==typeof t.opened,opened:n,onClose:()=>{n&&!t.disabled&&r(!1)},onToggle:()=>{t.disabled||r(!n)}}}({middlewares:p,width:d,position:tR(st,r),offset:"number"==typeof i?i+(f?g/2:0):i,arrowRef:nt,arrowOffset:m,onPositionChange:o,positionDependencies:a,opened:s,defaultOpened:E,onChange:P,onOpen:R,onClose:I,onDismiss:D,strategy:G,dropdownVisible:J,setDropdownVisible:tt,positionRef:et,disabled:F,preventPositionChangeWhenVisible:q,keepMounted:W});!function(t,e,n){const r=(0,HS.useRef)(null),i=e||KD;(0,HS.useEffect)(()=>{const e=e=>{const{target:i}=e??{};if(Array.isArray(n)){const r=!document.body.contains(i)&&"HTML"!==i?.tagName;n.every(t=>!!t&&!e.composedPath().includes(t))&&!r&&t()}else r.current&&!r.current.contains(i)&&t()};return i.forEach(t=>document.addEventListener(t,e)),()=>{i.forEach(t=>document.removeEventListener(t,e))}},[r,t,n])}(()=>{w&&(ct.onClose(),D?.())},M,[rt,ot]);const ht=(0,HS.useCallback)(t=>{it(t),ct.floating.refs.setReference(t)},[ct.floating.refs.setReference]),dt=(0,HS.useCallback)(t=>{at(t),ct.floating.refs.setFloating(t)},[ct.floating.refs.setFloating]),pt=(0,HS.useCallback)(()=>{u?.onExited?.(),c?.(),tt(!1),q||(et.current=r)},[u?.onExited,c,q,r]),ft=(0,HS.useCallback)(()=>{u?.onEntered?.(),h?.()},[u?.onEntered,h]);return(0,l.jsxs)(uR,{value:{returnFocus:V,disabled:F,controlled:ct.controlled,reference:ht,floating:dt,x:ct.floating.x,y:ct.floating.y,arrowX:ct.floating?.middlewareData?.arrow?.x,arrowY:ct.floating?.middlewareData?.arrow?.y,opened:ct.opened,arrowRef:nt,transitionProps:{...u,onExited:pt,onEntered:ft},width:d,withArrow:f,arrowSize:g,arrowOffset:m,arrowRadius:y,arrowPosition:v,placement:ct.floating.placement,trapFocus:k,withinPortal:S,portalProps:C,zIndex:A,radius:O,shadow:L,closeOnEscape:T,onDismiss:D,onClose:ct.onClose,onToggle:ct.onToggle,getTargetId:()=>`${ut}-target`,getDropdownId:()=>`${ut}-dropdown`,withRoles:B,targetProps:Z,__staticSelector:z,classNames:_,styles:b,unstyled:x,variant:H,keepMounted:W,getStyles:K,resolvedStyles:Q,floatingStrategy:G,referenceHidden:!(!Y||"test"===lt)&&ct.floating.middlewareData.hide?.referenceHidden},children:[n,U&&(0,l.jsx)(ED,{transition:"fade",mounted:ct.opened,duration:u?.duration||250,exitDuration:u?.exitDuration||250,children:t=>(0,l.jsx)(lR,{withinPortal:S,children:(0,l.jsx)(iR,{...X,...K("overlay",{className:X?.className,style:[t,X?.style]})})})})]})}zR.Target=OR,zR.Dropdown=RR,zR.displayName="@mantine/core/Popover",zR.extend=t=>t;const[BR,FR]=UC("Combobox component was not found in tree");var VR={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const HR={error:null},WR=(t,{size:e,color:n})=>({chevron:{"--combobox-chevron-size":YS(e,"combobox-chevron-size"),"--combobox-chevron-color":n?nC(n,t):void 0}}),jR=GC((t,e)=>{const n=sC("ComboboxChevron",HR,t),{size:r,error:i,style:o,className:a,classNames:s,styles:u,unstyled:c,vars:h,mod:d,...p}=n,f=SC({name:"ComboboxChevron",classes:VR,props:n,style:o,className:a,classNames:s,styles:u,unstyled:c,vars:h,varsResolver:WR,rootSelector:"chevron"});return(0,l.jsx)(WC,{component:"svg",...p,...f("chevron"),size:r,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:i},d],ref:e,children:(0,l.jsx)("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});function GR(t=null){const e=(0,HS.createContext)(t);return[({children:t,value:n})=>(0,l.jsx)(e.Provider,{value:n,children:t}),()=>(0,HS.useContext)(e)]}jR.classes=VR,jR.displayName="@mantine/core/ComboboxChevron";const[UR,XR]=GR({size:"sm"}),YR=GC((t,e)=>{const n=sC("InputClearButton",null,t),{size:r,variant:i,vars:o,classNames:a,styles:s,...u}=n,c=XR(),{resolvedClassNames:h,resolvedStyles:d}=YD({classNames:a,styles:s,props:n});return(0,l.jsx)(uI,{variant:i||"transparent",ref:e,size:r||c?.size||"sm",classNames:h,styles:d,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...u.style},...u})});YR.displayName="@mantine/core/InputClearButton";const $R={xs:7,sm:8,md:10,lg:12,xl:15},[qR,ZR]=GR({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var KR={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const QR=(t,{size:e})=>({description:{"--input-description-size":void 0===e?void 0:`calc(${ZS(e)} - ${US(2)})`}}),JR=GC((t,e)=>{const n=sC("InputDescription",null,t),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:u,size:c,__staticSelector:h,__inheritStyles:d=!0,attributes:p,variant:f,...g}=sC("InputDescription",null,n),m=ZR(),y=SC({name:["InputWrapper",h],props:n,classes:KR,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:p,rootSelector:"description",vars:u,varsResolver:QR}),v=d&&m?.getStyles||y;return(0,l.jsx)(WC,{component:"p",ref:e,variant:f,size:c,...v("description",m?.getStyles?{className:i,style:o}:void 0),...g})});JR.classes=KR,JR.displayName="@mantine/core/InputDescription";const tP=(t,{size:e})=>({error:{"--input-error-size":void 0===e?void 0:`calc(${ZS(e)} - ${US(2)})`}}),eP=GC((t,e)=>{const n=sC("InputError",null,t),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:u,size:c,attributes:h,__staticSelector:d,__inheritStyles:p=!0,variant:f,...g}=n,m=SC({name:["InputWrapper",d],props:n,classes:KR,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:h,rootSelector:"error",vars:u,varsResolver:tP}),y=ZR(),v=p&&y?.getStyles||m;return(0,l.jsx)(WC,{component:"p",ref:e,variant:f,size:c,...v("error",y?.getStyles?{className:i,style:o}:void 0),...g})});eP.classes=KR,eP.displayName="@mantine/core/InputError";const nP={labelElement:"label"},rP=(t,{size:e})=>({label:{"--input-label-size":ZS(e),"--input-asterisk-color":void 0}}),iP=GC((t,e)=>{const n=sC("InputLabel",nP,t),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:u,labelElement:c,size:h,required:d,htmlFor:p,onMouseDown:f,children:g,__staticSelector:m,variant:y,mod:v,attributes:x,..._}=sC("InputLabel",nP,n),b=SC({name:["InputWrapper",m],props:n,classes:KR,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:x,rootSelector:"label",vars:u,varsResolver:rP}),w=ZR(),S=w?.getStyles||b;return(0,l.jsxs)(WC,{...S("label",w?.getStyles?{className:i,style:o}:void 0),component:c,variant:y,size:h,ref:e,htmlFor:"label"===c?p:void 0,mod:[{required:d},v],onMouseDown:t=>{f?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()},..._,children:[g,d&&(0,l.jsx)("span",{...S("required"),"aria-hidden":!0,children:" *"})]})});iP.classes=KR,iP.displayName="@mantine/core/InputLabel";const oP=GC((t,e)=>{const n=sC("InputPlaceholder",null,t),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:u,__staticSelector:c,variant:h,error:d,mod:p,attributes:f,...g}=n,m=SC({name:["InputPlaceholder",c],props:n,classes:KR,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:f,rootSelector:"placeholder"});return(0,l.jsx)(WC,{...m("placeholder"),mod:[{error:!!d},p],component:"span",variant:h,ref:e,...g})});function aP(t,{hasDescription:e,hasError:n}){const r=t.findIndex(t=>"input"===t),i=t.slice(0,r),o=t.slice(r+1),a=e&&i.includes("description")||n&&i.includes("error");return{offsetBottom:e&&o.includes("description")||n&&o.includes("error"),offsetTop:a}}oP.classes=KR,oP.displayName="@mantine/core/InputPlaceholder";const sP={labelElement:"label",inputContainer:t=>t,inputWrapperOrder:["label","description","input","error"]},lP=(t,{size:e})=>({label:{"--input-label-size":ZS(e),"--input-asterisk-color":void 0},error:{"--input-error-size":void 0===e?void 0:`calc(${ZS(e)} - ${US(2)})`},description:{"--input-description-size":void 0===e?void 0:`calc(${ZS(e)} - ${US(2)})`}}),uP=GC((t,e)=>{const n=sC("InputWrapper",sP,t),{classNames:r,className:i,style:o,styles:a,unstyled:s,vars:u,size:c,variant:h,__staticSelector:d,inputContainer:p,inputWrapperOrder:f,label:g,error:m,description:y,labelProps:v,descriptionProps:x,errorProps:_,labelElement:b,children:w,withAsterisk:S,id:C,required:T,__stylesApiProps:M,mod:k,attributes:I,...D}=n,R=SC({name:["InputWrapper",d],props:M||n,classes:KR,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:I,vars:u,varsResolver:lP}),P={size:c,variant:h,__staticSelector:d},A=tI(C),O="boolean"==typeof S?S:T,L=_?.id||`${A}-error`,N=x?.id||`${A}-description`,E=A,z=!!m&&"boolean"!=typeof m,B=!!y,F=`${z?L:""} ${B?N:""}`,V=F.trim().length>0?F.trim():void 0,H=v?.id||`${A}-label`,W=g&&(0,l.jsx)(iP,{labelElement:b,id:H,htmlFor:E,required:O,...P,...v,children:g},"label"),j=B&&(0,l.jsx)(JR,{...x,...P,size:x?.size||P.size,id:x?.id||N,children:y},"description"),G=(0,l.jsx)(HS.Fragment,{children:p(w)},"input"),U=z&&(0,HS.createElement)(eP,{..._,...P,size:_?.size||P.size,key:"error",id:_?.id||L},m),X=f.map(t=>{switch(t){case"label":return W;case"input":return G;case"description":return j;case"error":return U;default:return null}});return(0,l.jsx)(qR,{value:{getStyles:R,describedBy:V,inputId:E,labelId:H,...aP(f,{hasDescription:B,hasError:z})},children:(0,l.jsx)(WC,{ref:e,variant:h,size:c,mod:[{error:!!m},k],...R("root"),...D,children:X})})});uP.classes=KR,uP.displayName="@mantine/core/InputWrapper";const cP={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},hP=(t,e,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":YS(e.size,"input-height"),"--input-fz":ZS(e.size),"--input-radius":void 0===e.radius?void 0:qS(e.radius),"--input-left-section-width":void 0!==e.leftSectionWidth?US(e.leftSectionWidth):void 0,"--input-right-section-width":void 0!==e.rightSectionWidth?US(e.rightSectionWidth):void 0,"--input-padding-y":e.multiline?YS(e.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":e.leftSectionPointerEvents,"--input-right-section-pointer-events":e.rightSectionPointerEvents}}),dP=eI((t,e)=>{const n=sC("Input",cP,t),{classNames:r,className:i,style:o,styles:a,unstyled:s,required:u,__staticSelector:c,__stylesApiProps:h,size:d,wrapperProps:p,error:f,disabled:g,leftSection:m,leftSectionProps:y,leftSectionWidth:v,rightSection:x,rightSectionProps:_,rightSectionWidth:b,rightSectionPointerEvents:w,leftSectionPointerEvents:S,variant:C,vars:T,pointer:M,multiline:k,radius:I,id:D,withAria:R,withErrorStyles:P,mod:A,inputSize:O,attributes:L,__clearSection:N,__clearable:E,__defaultRightSection:z,...B}=n,{styleProps:F,rest:V}=AC(B),H=ZR(),W=SC({name:["Input",c],props:h||n,classes:KR,className:i,style:o,classNames:r,styles:a,unstyled:s,attributes:L,stylesCtx:{offsetBottom:H?.offsetBottom,offsetTop:H?.offsetTop},rootSelector:"wrapper",vars:T,varsResolver:hP}),j=R?{required:u,disabled:g,"aria-invalid":!!f,"aria-describedby":H?.describedBy,id:H?.inputId||D}:{},G=function({__clearable:t,__clearSection:e,rightSection:n,__defaultRightSection:r,size:i="sm"}){const o=t&&e;return o&&(n||r)?(0,l.jsxs)("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:$R[i]},children:[o,n||r]}):null===n?null:n||o||r}({__clearable:E,__clearSection:N,rightSection:x,__defaultRightSection:z,size:d});return(0,l.jsx)(UR,{value:{size:d||"sm"},children:(0,l.jsxs)(WC,{...W("wrapper"),...F,...p,mod:[{error:!!f&&P,pointer:M,disabled:g,multiline:k,"data-with-right-section":!!G,"data-with-left-section":!!m},A],variant:C,size:d,children:[m&&(0,l.jsx)("div",{...y,"data-position":"left",...W("section",{className:y?.className,style:y?.style}),children:m}),(0,l.jsx)(WC,{component:"input",...V,...j,ref:e,required:u,mod:{disabled:g,error:!!f&&P},variant:C,__size:O,...W("input")}),G&&(0,l.jsx)("div",{..._,"data-position":"right",...W("section",{className:_?.className,style:_?.style}),children:G})]})})});dP.classes=KR,dP.Wrapper=uP,dP.Label=iP,dP.Error=eP,dP.Description=JR,dP.Placeholder=oP,dP.ClearButton=YR,dP.displayName="@mantine/core/Input";const pP=(0,HS.forwardRef)(({size:t,onMouseDown:e,onClick:n,onClear:r,...i},o)=>(0,l.jsx)(dP.ClearButton,{ref:o,tabIndex:-1,"aria-hidden":!0,...i,onMouseDown:t=>{t.preventDefault(),e?.(t)},onClick:t=>{r(),n?.(t)}}));pP.displayName="@mantine/core/ComboboxClearButton";const fP=GC((t,e)=>{const{classNames:n,styles:r,className:i,style:o,hidden:a,...s}=sC("ComboboxDropdown",null,t),u=FR();return(0,l.jsx)(zR.Dropdown,{...s,ref:e,role:"presentation","data-hidden":a||void 0,...u.getStyles("dropdown",{className:i,style:o,classNames:n,styles:r})})});fP.classes=VR,fP.displayName="@mantine/core/ComboboxDropdown";const gP={refProp:"ref"},mP=GC((t,e)=>{const{children:n,refProp:r}=sC("ComboboxDropdownTarget",gP,t);if(FR(),!CR(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return(0,l.jsx)(zR.Target,{ref:e,refProp:r,children:n})});mP.displayName="@mantine/core/ComboboxDropdownTarget";const yP=GC((t,e)=>{const{classNames:n,className:r,style:i,styles:o,vars:a,...s}=sC("ComboboxEmpty",null,t),u=FR();return(0,l.jsx)(WC,{ref:e,...u.getStyles("empty",{className:r,classNames:n,styles:o,style:i}),...s})});function vP({onKeyDown:t,withKeyboardNavigation:e,withAriaAttributes:n,withExpandedAttribute:r,targetType:i,autoComplete:o}){const a=FR(),[s,l]=(0,HS.useState)(null);return{...n?{"aria-haspopup":"listbox","aria-expanded":r?!(!a.store.listId||!a.store.dropdownOpened):void 0,"aria-controls":a.store.dropdownOpened&&a.store.listId?a.store.listId:void 0,"aria-activedescendant":a.store.dropdownOpened&&s||void 0,autoComplete:o,"data-expanded":a.store.dropdownOpened||void 0,"data-mantine-stop-propagation":a.store.dropdownOpened||void 0}:{},onKeyDown:n=>{if(t?.(n),!a.readOnly&&e){if(n.nativeEvent.isComposing)return;if("ArrowDown"===n.nativeEvent.code&&(n.preventDefault(),a.store.dropdownOpened?l(a.store.selectNextOption()):(a.store.openDropdown("keyboard"),l(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),"ArrowUp"===n.nativeEvent.code&&(n.preventDefault(),a.store.dropdownOpened?l(a.store.selectPreviousOption()):(a.store.openDropdown("keyboard"),l(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),"Enter"===n.nativeEvent.code||"NumpadEnter"===n.nativeEvent.code){if(229===n.nativeEvent.keyCode)return;const t=a.store.getSelectedOptionIndex();a.store.dropdownOpened&&-1!==t?(n.preventDefault(),a.store.clickSelectedOption()):"button"===i&&(n.preventDefault(),a.store.openDropdown("keyboard"))}"Escape"===n.key&&a.store.closeDropdown("keyboard"),"Space"===n.nativeEvent.code&&"button"===i&&(n.preventDefault(),a.store.toggleDropdown("keyboard"))}}}}yP.classes=VR,yP.displayName="@mantine/core/ComboboxEmpty";const xP={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},_P=GC((t,e)=>{const{children:n,refProp:r,withKeyboardNavigation:i,withAriaAttributes:o,withExpandedAttribute:a,targetType:s,autoComplete:l,...u}=sC("ComboboxEventsTarget",xP,t);if(!CR(n))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const c=FR(),h=vP({targetType:s,withAriaAttributes:o,withKeyboardNavigation:i,withExpandedAttribute:a,onKeyDown:n.props.onKeyDown,autoComplete:l});return(0,HS.cloneElement)(n,{...h,...u,[r]:dk(e,c.store.targetRef,PR(n))})});_P.displayName="@mantine/core/ComboboxEventsTarget";const bP=GC((t,e)=>{const{classNames:n,className:r,style:i,styles:o,vars:a,...s}=sC("ComboboxFooter",null,t),u=FR();return(0,l.jsx)(WC,{ref:e,...u.getStyles("footer",{className:r,classNames:n,style:i,styles:o}),...s,onMouseDown:t=>{t.preventDefault()}})});bP.classes=VR,bP.displayName="@mantine/core/ComboboxFooter";const wP=GC((t,e)=>{const{classNames:n,className:r,style:i,styles:o,vars:a,children:s,label:u,id:c,...h}=sC("ComboboxGroup",null,t),d=FR(),p=tI(c);return(0,l.jsxs)(WC,{ref:e,role:"group","aria-labelledby":u?p:void 0,...d.getStyles("group",{className:r,classNames:n,style:i,styles:o}),...h,children:[u&&(0,l.jsx)("div",{id:p,...d.getStyles("groupLabel",{classNames:n,styles:o}),children:u}),s]})});wP.classes=VR,wP.displayName="@mantine/core/ComboboxGroup";const SP=GC((t,e)=>{const{classNames:n,className:r,style:i,styles:o,vars:a,...s}=sC("ComboboxHeader",null,t),u=FR();return(0,l.jsx)(WC,{ref:e,...u.getStyles("header",{className:r,classNames:n,style:i,styles:o}),...s,onMouseDown:t=>{t.preventDefault()}})});function CP({value:t,valuesDivider:e=",",...n}){return(0,l.jsx)("input",{type:"hidden",value:Array.isArray(t)?t.join(e):t||"",...n})}SP.classes=VR,SP.displayName="@mantine/core/ComboboxHeader",CP.displayName="@mantine/core/ComboboxHiddenInput";const TP=GC((t,e)=>{const n=sC("ComboboxOption",null,t),{classNames:r,className:i,style:o,styles:a,vars:s,onClick:u,id:c,active:h,onMouseDown:d,onMouseOver:p,disabled:f,selected:g,mod:m,...y}=n,v=FR(),x=(0,HS.useId)(),_=c||x;return(0,l.jsx)(WC,{...v.getStyles("option",{className:i,classNames:r,styles:a,style:o}),...y,ref:e,id:_,mod:["combobox-option",{"combobox-active":h,"combobox-disabled":f,"combobox-selected":g},m],role:"option",onClick:t=>{f?t.preventDefault():(v.onOptionSubmit?.(n.value,n),u?.(t))},onMouseDown:t=>{t.preventDefault(),d?.(t)},onMouseOver:t=>{v.resetSelectionOnOptionHover&&v.store.resetSelectedOption(),p?.(t)}})});TP.classes=VR,TP.displayName="@mantine/core/ComboboxOption";const MP=GC((t,e)=>{const n=sC("ComboboxOptions",null,t),{classNames:r,className:i,style:o,styles:a,id:s,onMouseDown:u,labelledBy:c,...h}=n,d=FR(),p=tI(s);return(0,HS.useEffect)(()=>{d.store.setListId(p)},[p]),(0,l.jsx)(WC,{ref:e,...d.getStyles("options",{className:i,style:o,classNames:r,styles:a}),...h,id:p,role:"listbox","aria-labelledby":c,onMouseDown:t=>{t.preventDefault(),u?.(t)}})});MP.classes=VR,MP.displayName="@mantine/core/ComboboxOptions";const kP={withAriaAttributes:!0,withKeyboardNavigation:!0},IP=GC((t,e)=>{const n=sC("ComboboxSearch",kP,t),{classNames:r,styles:i,unstyled:o,vars:a,withAriaAttributes:s,onKeyDown:u,withKeyboardNavigation:c,size:h,...d}=n,p=FR(),f=p.getStyles("search"),g=vP({targetType:"input",withAriaAttributes:s,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:u,autoComplete:"off"});return(0,l.jsx)(dP,{ref:dk(e,p.store.searchRef),classNames:[{input:f.className},r],styles:[{input:f.style},i],size:h||p.size,...g,...d,__staticSelector:"Combobox"})});IP.classes=VR,IP.displayName="@mantine/core/ComboboxSearch";const DP={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},RP=GC((t,e)=>{const{children:n,refProp:r,withKeyboardNavigation:i,withAriaAttributes:o,withExpandedAttribute:a,targetType:s,autoComplete:u,...c}=sC("ComboboxTarget",DP,t);if(!CR(n))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const h=FR(),d=vP({targetType:s,withAriaAttributes:o,withKeyboardNavigation:i,withExpandedAttribute:a,onKeyDown:n.props.onKeyDown,autoComplete:u}),p=(0,HS.cloneElement)(n,{...d,...c});return(0,l.jsx)(zR.Target,{ref:dk(e,h.store.targetRef),children:p})});function PP(t,e=document){const n=e.querySelector(t);if(n)return n;const r=e.querySelectorAll("*");for(let e=0;e<r.length;e+=1){const n=r[e];if(n.shadowRoot){const e=PP(t,n.shadowRoot);if(e)return e}}return null}function AP(t,e=document){const n=[],r=e.querySelectorAll(t);n.push(...Array.from(r));const i=e.querySelectorAll("*");for(let e=0;e<i.length;e+=1){const r=i[e];if(r.shadowRoot){const e=AP(t,r.shadowRoot);n.push(...e)}}return n}function OP(t){if(!t)return document;const e=t.getRootNode();return e instanceof ShadowRoot||e instanceof Document?e:document}function LP({defaultOpened:t,opened:e,onOpenedChange:n,onDropdownClose:r,onDropdownOpen:i,loop:o=!0,scrollBehavior:a="instant"}={}){const[s,l]=XD({value:e,defaultValue:t,finalValue:!1,onChange:n}),u=(0,HS.useRef)(null),c=(0,HS.useRef)(-1),h=(0,HS.useRef)(null),d=(0,HS.useRef)(null),p=(0,HS.useRef)(-1),f=(0,HS.useRef)(-1),g=(0,HS.useRef)(-1),m=(0,HS.useCallback)((t="unknown")=>{s||(l(!0),i?.(t))},[l,i,s]),y=(0,HS.useCallback)((t="unknown")=>{s&&(l(!1),r?.(t))},[l,r,s]),v=(0,HS.useCallback)((t="unknown")=>{s?y(t):m(t)},[y,m,s]),x=(0,HS.useCallback)(()=>{const t=OP(d.current),e=PP(`#${u.current} [data-combobox-selected]`,t);e?.removeAttribute("data-combobox-selected"),e?.removeAttribute("aria-selected")},[]),_=(0,HS.useCallback)(t=>{const e=OP(d.current),n=PP(`#${u.current}`,e),r=n?AP("[data-combobox-option]",n):null;if(!r)return null;const i=t>=r.length?0:t<0?r.length-1:t;return c.current=i,r?.[i]&&!r[i].hasAttribute("data-combobox-disabled")?(x(),r[i].setAttribute("data-combobox-selected","true"),r[i].setAttribute("aria-selected","true"),r[i].scrollIntoView({block:"nearest",behavior:a}),r[i].id):null},[a,x]),b=(0,HS.useCallback)(()=>{const t=OP(d.current),e=PP(`#${u.current} [data-combobox-active]`,t);if(e){const n=AP(`#${u.current} [data-combobox-option]`,t).findIndex(t=>t===e);return _(n)}return _(0)},[_]),w=(0,HS.useCallback)(()=>{const t=OP(d.current),e=AP(`#${u.current} [data-combobox-option]`,t);return _(function(t,e,n){for(let n=t+1;n<e.length;n+=1)if(!e[n].hasAttribute("data-combobox-disabled"))return n;if(n)for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute("data-combobox-disabled"))return t;return t}(c.current,e,o))},[_,o]),S=(0,HS.useCallback)(()=>{const t=OP(d.current),e=AP(`#${u.current} [data-combobox-option]`,t);return _(function(t,e,n){for(let n=t-1;n>=0;n-=1)if(!e[n].hasAttribute("data-combobox-disabled"))return n;if(n)for(let t=e.length-1;t>-1;t-=1)if(!e[t].hasAttribute("data-combobox-disabled"))return t;return t}(c.current,e,o))},[_,o]),C=(0,HS.useCallback)(()=>{const t=OP(d.current),e=AP(`#${u.current} [data-combobox-option]`,t);return _(function(t){for(let e=0;e<t.length;e+=1)if(!t[e].hasAttribute("data-combobox-disabled"))return e;return-1}(e))},[_]),T=(0,HS.useCallback)((t="selected",e)=>{g.current=window.setTimeout(()=>{const n=OP(d.current),r=AP(`#${u.current} [data-combobox-option]`,n),i=r.findIndex(e=>e.hasAttribute(`data-combobox-${t}`));c.current=i,e?.scrollIntoView&&r[i]?.scrollIntoView({block:"nearest",behavior:a})},0)},[]),M=(0,HS.useCallback)(()=>{c.current=-1,x()},[x]),k=(0,HS.useCallback)(()=>{const t=OP(d.current),e=AP(`#${u.current} [data-combobox-option]`,t),n=e?.[c.current];n?.click()},[]),I=(0,HS.useCallback)(t=>{u.current=t},[]),D=(0,HS.useCallback)(()=>{p.current=window.setTimeout(()=>h.current?.focus(),0)},[]),R=(0,HS.useCallback)(()=>{f.current=window.setTimeout(()=>d.current?.focus(),0)},[]),P=(0,HS.useCallback)(()=>c.current,[]);return(0,HS.useEffect)(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(f.current),window.clearTimeout(g.current)},[]),{dropdownOpened:s,openDropdown:m,closeDropdown:y,toggleDropdown:v,selectedOptionIndex:c.current,getSelectedOptionIndex:P,selectOption:_,selectFirstOption:C,selectActiveOption:b,selectNextOption:w,selectPreviousOption:S,resetSelectedOption:M,updateSelectedOptionIndex:T,listId:u.current,setListId:I,clickSelectedOption:k,searchRef:h,focusSearchInput:D,targetRef:d,focusTarget:R}}RP.displayName="@mantine/core/ComboboxTarget";const NP={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},EP=(t,{size:e,dropdownPadding:n})=>({options:{"--combobox-option-fz":ZS(e),"--combobox-option-padding":YS(e,"combobox-option-padding")},dropdown:{"--combobox-padding":void 0===n?void 0:US(n),"--combobox-option-fz":ZS(e),"--combobox-option-padding":YS(e,"combobox-option-padding")}});function zP(t){const e=sC("Combobox",NP,t),{classNames:n,styles:r,unstyled:i,children:o,store:a,vars:s,onOptionSubmit:u,onClose:c,size:h,dropdownPadding:d,resetSelectionOnOptionHover:p,__staticSelector:f,readOnly:g,attributes:m,...y}=e,v=LP(),x=a||v,_=SC({name:f||"Combobox",classes:VR,props:e,classNames:n,styles:r,unstyled:i,attributes:m,vars:s,varsResolver:EP});return(0,l.jsx)(BR,{value:{getStyles:_,store:x,onOptionSubmit:u,size:h,resetSelectionOnOptionHover:p,readOnly:g},children:(0,l.jsx)(zR,{opened:x.dropdownOpened,preventPositionChangeWhenVisible:!0,...y,onChange:t=>!t&&(c?.(),void x.closeDropdown()),withRoles:!1,unstyled:i,children:o})})}function BP({size:t,style:e,...n}){const r=void 0!==t?{width:US(t),height:US(t),...e}:e;return(0,l.jsx)("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...n,children:(0,l.jsx)("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function FP(t){return"group"in t}function VP({options:t,search:e,limit:n}){const r=e.trim().toLowerCase(),i=[];for(let o=0;o<t.length;o+=1){const a=t[o];if(i.length===n)return i;FP(a)&&i.push({group:a.group,items:VP({options:a.items,search:e,limit:n-i.length})}),FP(a)||a.label.toLowerCase().includes(r)&&i.push(a)}return i}function HP(t,e=new Set){if(Array.isArray(t))for(const n of t)if(FP(n))HP(n.items,e);else{if(void 0===n.value)throw new Error("[@mantine/core] Each option must have value property");if("string"!=typeof n.value)throw new Error("[@mantine/core] Option value must be a string, other data formats are not supported, got "+typeof n.value);if(e.has(n.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);e.add(n.value)}}function WP({data:t,withCheckIcon:e,value:n,checkIconPosition:r,unstyled:i,renderOption:o}){if(!FP(t)){const a=function(t,e){return Array.isArray(t)?t.includes(e):t===e}(n,t.value),s=e&&a&&(0,l.jsx)(BP,{className:VR.optionsDropdownCheckIcon}),u=(0,l.jsxs)(l.Fragment,{children:["left"===r&&s,(0,l.jsx)("span",{children:t.label}),"right"===r&&s]});return(0,l.jsx)(zP.Option,{value:t.value,disabled:t.disabled,className:dC({[VR.optionsDropdownOption]:!i}),"data-reverse":"right"===r||void 0,"data-checked":a||void 0,"aria-selected":a,active:a,children:"function"==typeof o?o({option:t,checked:a}):u})}const a=t.items.map(t=>(0,l.jsx)(WP,{data:t,value:n,unstyled:i,withCheckIcon:e,checkIconPosition:r,renderOption:o},t.value));return(0,l.jsx)(zP.Group,{label:t.group,children:a})}function jP({data:t,hidden:e,hiddenWhenEmpty:n,filter:r,search:i,limit:o,maxDropdownHeight:a,withScrollArea:s=!0,filterOptions:u=!0,withCheckIcon:c=!1,value:h,checkIconPosition:d,nothingFoundMessage:p,unstyled:f,labelId:g,renderOption:m,scrollAreaProps:y,"aria-label":v}){HP(t);const x="string"==typeof i?(r||VP)({options:t,search:u?i:"",limit:o??1/0}):t,_=function(t){if(0===t.length)return!0;for(const e of t){if(!("group"in e))return!1;if(e.items.length>0)return!1}return!0}(x),b=x.map(t=>(0,l.jsx)(WP,{data:t,withCheckIcon:c,value:h,checkIconPosition:d,unstyled:f,renderOption:m},FP(t)?t.group:t.value));return(0,l.jsx)(zP.Dropdown,{hidden:e||n&&_,"data-composed":!0,children:(0,l.jsxs)(zP.Options,{labelledBy:g,"aria-label":v,children:[s?(0,l.jsx)(Hk.Autosize,{mah:a??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...y,children:b}):b,_&&p&&(0,l.jsx)(zP.Empty,{children:p})]})})}zP.extend=t=>t,zP.classes=VR,zP.displayName="@mantine/core/Combobox",zP.Target=RP,zP.Dropdown=fP,zP.Options=MP,zP.Option=TP,zP.Search=IP,zP.Empty=yP,zP.Chevron=jR,zP.Footer=bP,zP.Header=SP,zP.EventsTarget=_P,zP.DropdownTarget=mP,zP.Group=wP,zP.ClearButton=pP,zP.HiddenInput=CP;const GP={__staticSelector:"InputBase",withAria:!0,size:"sm"},UP=eI((t,e)=>{const{inputProps:n,wrapperProps:r,...i}=function(t,e,n){const r=sC("InputBase",GP,n),{label:i,description:o,error:a,required:s,classNames:l,styles:u,className:c,unstyled:h,__staticSelector:d,__stylesApiProps:p,errorProps:f,labelProps:g,descriptionProps:m,wrapperProps:y,id:v,size:x,style:_,inputContainer:b,inputWrapperOrder:w,withAsterisk:S,variant:C,vars:T,mod:M,attributes:k,...I}=r,{styleProps:D,rest:R}=AC(I);return{...R,classNames:l,styles:u,unstyled:h,wrapperProps:{...{label:i,description:o,error:a,required:s,classNames:l,className:c,__staticSelector:d,__stylesApiProps:p||r,errorProps:f,labelProps:g,descriptionProps:m,unstyled:h,styles:u,size:x,style:_,inputContainer:b,inputWrapperOrder:w,withAsterisk:S,variant:C,id:v,mod:M,attributes:k,...y},...D},inputProps:{required:s,classNames:l,styles:u,unstyled:h,size:x,__staticSelector:d,__stylesApiProps:p||r,error:a,variant:C,id:v,attributes:k}}}(0,0,t);return(0,l.jsx)(dP.Wrapper,{...r,children:(0,l.jsx)(dP,{...n,...i,ref:e})})});UP.classes={...dP.classes,...dP.Wrapper.classes},UP.displayName="@mantine/core/InputBase";const XP={withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},YP=GC((t,e)=>{const n=sC("Select",XP,t),{classNames:r,styles:i,unstyled:o,vars:a,dropdownOpened:s,defaultDropdownOpened:u,onDropdownClose:c,onDropdownOpen:h,onFocus:d,onBlur:p,onClick:f,onChange:g,data:m,value:y,defaultValue:v,selectFirstOptionOnChange:x,onOptionSubmit:_,comboboxProps:b,readOnly:w,disabled:S,filter:C,limit:T,withScrollArea:M,maxDropdownHeight:k,size:I,searchable:D,rightSection:R,checkIconPosition:P,withCheckIcon:A,nothingFoundMessage:O,name:L,form:N,searchValue:E,defaultSearchValue:z,onSearchChange:B,allowDeselect:F,error:V,rightSectionPointerEvents:H,id:W,clearable:j,clearButtonProps:G,hiddenInputProps:U,renderOption:X,onClear:Y,autoComplete:$,scrollAreaProps:q,__defaultRightSection:Z,__clearSection:K,__clearable:Q,chevronColor:J,autoSelectOnBlur:tt,attributes:et,...nt}=n,rt=(0,HS.useMemo)(()=>qD(m),[m]),it=(0,HS.useRef)({}),ot=(0,HS.useMemo)(()=>ZD(rt),[rt]),at=tI(W),[st,lt,ut]=XD({value:y,defaultValue:v,finalValue:null,onChange:g}),ct="string"==typeof st?st in ot?ot[st]:it.current[st]:void 0,ht=function(t){const e=(0,HS.useRef)(void 0);return(0,HS.useEffect)(()=>{e.current=t},[t]),e.current}(ct),[dt,pt,ft]=XD({value:E,defaultValue:z,finalValue:ct?ct.label:"",onChange:B}),gt=LP({opened:s,defaultOpened:u,onDropdownOpen:()=>{h?.(),gt.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{c?.(),setTimeout(gt.resetSelectedOption,0)}}),mt=t=>{pt(t),gt.resetSelectedOption()},{resolvedClassNames:yt,resolvedStyles:vt}=YD({props:n,styles:i,classNames:r});(0,HS.useEffect)(()=>{x&>.selectFirstOption()},[x,dt]),(0,HS.useEffect)(()=>{null===y&&mt(""),"string"!=typeof y||!ct||ht?.value===ct.value&&ht?.label===ct.label||mt(ct.label)},[y,ct]),(0,HS.useEffect)(()=>{ut||ft||mt("string"==typeof st?st in ot?ot[st]?.label:it.current[st]?.label||"":"")},[ot,st]),(0,HS.useEffect)(()=>{st&&st in ot&&(it.current[st]=ot[st])},[ot,st]);const xt=(0,l.jsx)(zP.ClearButton,{...G,onClear:()=>{lt(null,null),mt(""),Y?.()}}),_t=j&&!!st&&!S&&!w;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(zP,{store:gt,__staticSelector:"Select",classNames:yt,styles:vt,unstyled:o,readOnly:w,size:I,attributes:et,keepMounted:tt,onOptionSubmit:t=>{_?.(t);const e=F&&ot[t].value===st?null:ot[t],n=e?e.value:null;n!==st&<(n,e),!ut&&mt("string"==typeof n&&e?.label||""),gt.closeDropdown()},...b,children:[(0,l.jsx)(zP.Target,{targetType:D?"input":"button",autoComplete:$,children:(0,l.jsx)(UP,{id:at,ref:e,__defaultRightSection:(0,l.jsx)(zP.Chevron,{size:I,error:V,unstyled:o,color:J}),__clearSection:xt,__clearable:_t,rightSection:R,rightSectionPointerEvents:H||"none",...nt,size:I,__staticSelector:"Select",disabled:S,readOnly:w||!D,value:dt,onChange:t=>{mt(t.currentTarget.value),gt.openDropdown(),x&>.selectFirstOption()},onFocus:t=>{D&>.openDropdown(),d?.(t)},onBlur:t=>{tt&>.clickSelectedOption(),D&>.closeDropdown();const e="string"==typeof st&&(st in ot?ot[st]:it.current[st]);mt(e&&e.label||""),p?.(t)},onClick:t=>{D?gt.openDropdown():gt.toggleDropdown(),f?.(t)},classNames:yt,styles:vt,unstyled:o,pointer:!D,error:V,attributes:et})}),(0,l.jsx)(jP,{data:rt,hidden:w||S,filter:C,search:dt,limit:T,hiddenWhenEmpty:!O,withScrollArea:M,maxDropdownHeight:k,filterOptions:!!D&&ct?.label!==dt,value:st,checkIconPosition:P,withCheckIcon:A,nothingFoundMessage:O,unstyled:o,labelId:nt.label?`${at}-label`:void 0,"aria-label":nt.label?void 0:nt["aria-label"],renderOption:X,scrollAreaProps:q})]}),(0,l.jsx)(zP.HiddenInput,{value:st,name:L,form:N,disabled:S,...U})]})});function $P(t){return(0,l.jsx)(YP,{...t})}YP.classes={...UP.classes,...zP.classes},YP.displayName="@mantine/core/Select";export{$P as CustomColorSelect,UD as CustomTable,WS as EventTimelineChart};
|
|
2
|
+
import{createElement as t,forwardRef as e,useEffect as n,useMemo as i,useRef as r,useState as o}from"react";import{ActionIcon as a,Alert as s,Group as l,ScrollArea as u,Select as c,Skeleton as h,Table as d,Text as f,ThemeIcon as p}from"@mantine/core";var g={85:(t,e,n)=>{t.exports=n(197)},197:(t,e)=>{var n=Symbol.for("react.transitional.element");function i(t,e,i){var r=null;if(void 0!==i&&(r=""+i),void 0!==e.key&&(r=""+e.key),"key"in e)for(var o in i={},e)"key"!==o&&(i[o]=e[o]);else i=e;return e=i.ref,{$$typeof:n,type:t,key:r,ref:void 0!==e?e:null,props:i}}Symbol.for("react.fragment"),e.jsx=i,e.jsxs=i}},v={};function m(t){var e=v[t];if(void 0!==e)return e.exports;var n=v[t]={exports:{}};return g[t](n,n.exports,m),n.exports}m.d=(t,e)=>{for(var n in e)m.o(e,n)&&!m.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},m.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),m.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var y={};m.r(y),m.d(y,{Arc:()=>rf,BezierCurve:()=>tf,BoundingRect:()=>De,Circle:()=>nd,CompoundPath:()=>of,Ellipse:()=>Cd,Group:()=>bd,Image:()=>mo,IncrementalDisplayable:()=>bf,Line:()=>Jh,LinearGradient:()=>lf,OrientedBoundingRect:()=>_f,Path:()=>uo,Point:()=>ce,Polygon:()=>Xd,Polyline:()=>Zd,RadialGradient:()=>uf,Rect:()=>Mo,Ring:()=>Gd,Sector:()=>Fd,Text:()=>Vo,WH:()=>Pf,XY:()=>Rf,applyTransform:()=>qf,calcZ2Range:()=>pp,clipPointsByRect:()=>Kf,clipRectByRect:()=>Qf,createIcon:()=>Jf,ensureCopyRect:()=>hp,ensureCopyTransform:()=>dp,expandOrShrinkRect:()=>ip,extendPath:()=>Bf,extendShape:()=>Lf,getShapeClass:()=>Ef,getTransform:()=>Xf,groupTransition:()=>$f,initProps:()=>Mf,isBoundingRectAxisAligned:()=>up,isElementRemoved:()=>Tf,lineLineIntersect:()=>ep,linePolygonIntersect:()=>tp,makeImage:()=>Ff,makePath:()=>Nf,mergePath:()=>Hf,registerShape:()=>zf,removeElement:()=>kf,removeElementWithFadeOut:()=>Df,resizePath:()=>Gf,retrieveZInfo:()=>fp,setTooltipConfig:()=>ap,subPixelOptimize:()=>jf,subPixelOptimizeLine:()=>Wf,subPixelOptimizeRect:()=>Uf,transformDirection:()=>Yf,traverseElements:()=>lp,traverseUpdateZ:()=>gp,updateProps:()=>Cf});var _=m(85),x=function(t,e){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},x(t,e)};function b(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}x(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create,Object.create;var w,S,C="12px sans-serif",M=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<95;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),T={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!w){var n=T.createCanvas();w=n&&n.getContext("2d")}if(w)return S!==e&&(S=w.font=e||C),w.measureText(t);t=t||"";var i=/((?:\d+)?\.?\d*)px/.exec(e=e||C),r=i&&+i[1]||12,o=0;if(e.indexOf("mono")>=0)o=r*t.length;else for(var a=0;a<t.length;a++){var s=M[t[a]];o+=null==s?r:s*r}return{width:o}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}},k=$(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),I=$(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),D=Object.prototype.toString,A=Array.prototype,R=A.forEach,P=A.filter,L=A.slice,O=A.map,B=function(){}.constructor,z=B?B.prototype:null,E="__proto__",N=2311;function F(){return N++}function V(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function H(t){if(null==t||"object"!=typeof t)return t;var e=t,n=D.call(t);if("[object Array]"===n){if(!bt(t)){e=[];for(var i=0,r=t.length;i<r;i++)e[i]=H(t[i])}}else if(I[n]){if(!bt(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),i=0,r=t.length;i<r;i++)e[i]=t[i]}}else if(!k[n]&&!bt(t)&&!ut(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==E&&(e[a]=H(t[a]));return e}function G(t,e,n){if(!at(e)||!at(t))return n?H(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==E){var r=t[i],o=e[i];!at(o)||!at(r)||et(o)||et(r)||ut(o)||ut(r)||st(o)||st(r)||bt(o)||bt(r)?!n&&i in t||(t[i]=H(e[i])):G(r,o,n)}return t}function W(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==E&&(t[n]=e[n]);return t}function U(t,e,n){for(var i=Q(e),r=0,o=i.length;r<o;r++){var a=i[r];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}function j(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function X(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else U(t,e,n)}function q(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function Y(t,e,n){if(t&&e)if(t.forEach&&t.forEach===R)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function Z(t,e,n){if(!t)return[];if(!e)return gt(t);if(t.map&&t.map===O)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function $(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function K(t,e,n){if(!t)return[];if(!e)return gt(t);if(t.filter&&t.filter===P)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function Q(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}T.createCanvas;var J=z&&nt(z.bind)?z.call.bind(z.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(L.call(arguments)))}};function tt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(L.call(arguments)))}}function et(t){return Array.isArray?Array.isArray(t):"[object Array]"===D.call(t)}function nt(t){return"function"==typeof t}function it(t){return"string"==typeof t}function rt(t){return"[object String]"===D.call(t)}function ot(t){return"number"==typeof t}function at(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function st(t){return!!k[D.call(t)]}function lt(t){return!!I[D.call(t)]}function ut(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function ct(t){return null!=t.colorStops}function ht(t){return t!=t}function dt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function ft(t,e){return null!=t?t:e}function pt(t,e,n){return null!=t?t:null!=e?e:n}function gt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return L.apply(t,e)}function vt(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function mt(t,e){if(!t)throw new Error(e)}function yt(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var _t="__ec_primitive__";function xt(t){t[_t]=!0}function bt(t){return t[_t]}var wt=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return Q(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),St="function"==typeof Map,Ct=function(){function t(e){var n=et(e);this.data=St?new Map:new wt;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&Y(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},t.prototype.keys=function(){var t=this.data.keys();return St?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function Mt(t){return new Ct(t)}function Tt(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&W(n,e),n}function kt(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function It(t,e){return t.hasOwnProperty(e)}function Dt(){}var At=180/Math.PI,Rt=(Number.EPSILON||Math.pow(2,-52),function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}),Pt=new function(){this.browser=new Rt,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="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Pt.wxa=!0,Pt.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Pt.worker=!0:!Pt.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(Pt.node=!0,Pt.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);if(i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document){var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}}(navigator.userAgent,Pt);const Lt=Pt;var Ot="___EC__COMPONENT__CONTAINER___",Bt="___EC__EXTENDED_CLASS___";function zt(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function Et(t,e){t.$constructor=t,t.extend=function(t){var e,n,i=this;return nt(n=i)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return b(e,t),e}(i):(e=function(){(t.$constructor||i).apply(this,arguments)},function(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}(e,this)),W(e.prototype,t),e[Bt]=!0,e.extend=this.extend,e.superCall=Vt,e.superApply=Ht,e.superClass=i,e}}function Nt(t,e){t.extend=e.extend}var Ft=Math.round(10*Math.random());function Vt(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Ht(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Gt(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;if(i){mt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),t.prototype.type=i;var r=zt(i);if(r.sub){if(r.sub!==Ot){var o=function(t){var n=e[t.main];return n&&n[Ot]||((n=e[t.main]={})[Ot]=!0),n}(r);o[r.sub]=t}}else e[r.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[Ot]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=zt(t),i=[],r=e[n.main];return r&&r[Ot]?Y(r,function(t,e){e!==Ot&&i.push(t)}):i.push(r),i},t.hasClass=function(t){var n=zt(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return Y(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var n=zt(t),i=e[n.main];return i&&i[Ot]}}function Wt(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&j(i,s)>=0||r&&j(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var Ut=Wt([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),jt=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Ut(this,t,e)},t}(),Xt=function(t,e){return Xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Xt(t,e)};function qt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Xt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create,Object.create;var Yt=function(t){this.value=t},Zt=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Yt(t);return this.insertEntry(e),e},t.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++},t.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--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),$t=function(){function t(t){this._list=new Zt,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Yt(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const Kt=$t;var Qt=new Kt(50);function Jt(t){if("string"==typeof t){var e=Qt.get(t);return e&&e.image}return t}function te(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Qt.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!ne(e=o.image)&&o.pending.push(a):((e=T.loadImage(t,ee,ee)).__zrImageSrc=t,Qt.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function ee(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function ne(t){return t&&t.width&&t.height}function ie(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function re(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function oe(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function ae(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function se(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=r*h+s*c,t[1]=-r*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-i[0])+c*(u-i[1])+i[0],t[5]=h*(u-i[1])-c*(a-i[0])+i[1],t}function le(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}var ue=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.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}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}();const ce=ue;var he=Math.min,de=Math.max,fe=Math.abs,pe=["x","y"],ge=["width","height"],ve=new ce,me=new ce,ye=new ce,_e=new ce,xe=Ie(),be=xe.minTv,we=xe.maxTv,Se=[0,0],Ce=function(){function t(e,n,i,r){t.set(this,e,n,i,r)}return t.set=function(t,e,n,i,r){return i<0&&(e+=i,i=-i),r<0&&(n+=r,r=-r),t.x=e,t.y=n,t.width=i,t.height=r,t},t.prototype.union=function(t){var e=he(t.x,this.x),n=he(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=de(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=de(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return ae(r,r,[-e.x,-e.y]),function(t,e,n){var i=n[0],r=n[1];t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r}(r,r,[n,i]),ae(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n,i){return t.intersect(this,e,n,i)},t.intersect=function(e,n,i,r){i&&ce.set(i,0,0);var o=r&&r.outIntersectRect||null,a=r&&r.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!e||!n)return!1;e instanceof t||(e=t.set(Me,e.x,e.y,e.width,e.height)),n instanceof t||(n=t.set(Te,n.x,n.y,n.width,n.height));var s=!!i;xe.reset(r,s);var l=xe.touchThreshold,u=e.x+l,c=e.x+e.width-l,h=e.y+l,d=e.y+e.height-l,f=n.x+l,p=n.x+n.width-l,g=n.y+l,v=n.y+n.height-l;if(u>c||h>d||f>p||g>v)return!1;var m=!(c<f||p<u||d<g||v<h);return(s||o)&&(Se[0]=1/0,Se[1]=0,ke(u,c,f,p,0,s,o,a),ke(h,d,g,v,1,s,o,a),s&&ce.copy(i,m?xe.useDir?xe.dirMinTv:be:we)),m},t.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},t.prototype.contain=function(e,n){return t.contain(this,e,n)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}ve.x=ye.x=n.x,ve.y=_e.y=n.y,me.x=_e.x=n.x+n.width,me.y=ye.y=n.y+n.height,ve.transform(i),_e.transform(i),me.transform(i),ye.transform(i),e.x=he(ve.x,me.x,ye.x,_e.x),e.y=he(ve.y,me.y,ye.y,_e.y);var l=de(ve.x,me.x,ye.x,_e.x),u=de(ve.y,me.y,ye.y,_e.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),Me=new Ce(0,0,0,0),Te=new Ce(0,0,0,0);function ke(t,e,n,i,r,o,a,s){var l=fe(e-n),u=fe(i-t),c=he(l,u),h=pe[r],d=pe[1-r],f=ge[r];e<n||i<t?l<u?(o&&(we[h]=-l),s&&(a[h]=e,a[f]=0)):(o&&(we[h]=u),s&&(a[h]=t,a[f]=0)):(a&&(a[h]=de(t,n),a[f]=he(e,i)-a[h]),o&&(c<Se[0]||xe.useDir)&&(Se[0]=he(c,Se[0]),(l<u||!xe.bidirectional)&&(be[h]=l,be[d]=0,xe.useDir&&xe.calcDirMTV()),(l>=u||!xe.bidirectional)&&(be[h]=-u,be[d]=0,xe.useDir&&xe.calcDirMTV())))}function Ie(){var t=0,e=new ce,n=new ce,i={minTv:new ce,maxTv:new ce,useDir:!1,dirMinTv:new ce,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(r,o){i.touchThreshold=0,r&&null!=r.touchThreshold&&(i.touchThreshold=de(0,r.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,r&&null!=r.direction&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),n.copy(i.minTv),t=r.direction,i.bidirectional=null==r.bidirectional||!!r.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var o=i.minTv,a=i.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(t),u=Math.cos(t),c=l*o.y+u*o.x;r(c)?r(o.x)&&r(o.y)&&a.set(0,0):(n.x=s*u/c,n.y=s*l/c,r(n.x)&&r(n.y)?a.set(0,0):(i.bidirectional||e.dot(n)>0)&&n.len()<a.len()&&a.copy(n))}};function r(t){return fe(t)<1e-10}return i}const De=Ce;function Ae(t){Re||(Re=new Kt(100)),t=t||C;var e=Re.get(t);return e||(e={font:t,strWidthCache:new Kt(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:T.measureText("国",t).width,asciiCharWidth:T.measureText("a",t).width},Re.put(t,e)),e}var Re,Pe=0;function Le(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(Pe>=5)){t=t||C;for(var e=[],n=+new Date,i=0;i<=127;i++)e[i]=T.measureText(String.fromCharCode(i),t).width;var r=+new Date-n;return r>16?Pe=5:r>2&&Pe++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Oe(t,e){var n=t.strWidthCache,i=n.get(e);return null==i&&(i=T.measureText(e,t.font).width,n.put(e,i)),i}function Be(t,e,n,i){var r=Oe(Ae(e),t),o=Fe(e),a=Ee(0,r,n),s=Ne(0,o,i);return new De(a,s,r,o)}function ze(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return Be(r[0],e,n,i);for(var o=new De(0,0,0,0),a=0;a<r.length;a++){var s=Be(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function Ee(t,e,n,i){return"right"===n?i?t+=e:t-=e:"center"===n&&(i?t+=e/2:t-=e/2),t}function Ne(t,e,n,i){return"middle"===n?i?t+=e/2:t-=e/2:"bottom"===n&&(i?t+=e:t-=e),t}function Fe(t){return Ae(t).stWideCharWidth}function Ve(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function He(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=Ve(i[0],n.width),u+=Ve(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var Ge=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function We(t,e,n,i,r,o){if(!n)return t.text="",void(t.isTruncated=!1);var a=(e+"").split("\n");o=Ue(n,i,r,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)je(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}function Ue(t,e,n,i){var r=W({},i=i||{});n=ft(n,"..."),r.maxIterations=ft(i.maxIterations,2);var o=r.minChar=ft(i.minChar,0),a=r.fontMeasureInfo=Ae(e),s=a.asciiCharWidth;r.placeholder=ft(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<o&&l>=s;u++)l-=s;var c=Oe(a,n);return c>l&&(n="",c=0),l=t-c,r.ellipsis=n,r.ellipsisWidth=c,r.contentWidth=l,r.containerWidth=t,r}function je(t,e,n){var i=n.containerWidth,r=n.contentWidth,o=n.fontMeasureInfo;if(!i)return t.textLine="",void(t.isTruncated=!1);var a=Oe(o,e);if(a<=i)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(a<=r||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?Xe(e,r,o):a>0?Math.floor(e.length*r/a):0;a=Oe(o,e=e.substr(0,l))}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function Xe(t,e,n){for(var i=0,r=0,o=t.length;r<o&&i<e;r++)i+=Le(n,t.charCodeAt(r));return r}var qe=function(){},Ye=function(t){this.tokens=[],t&&(this.tokens=t)},Ze=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function $e(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,c=l.font||n.font,h=!1;if(i){var d=l.padding,f=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var p=Ve(l.width,i.width)+f;u.length>0&&p+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=p}else{var g=Je(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}o||(o=e.split("\n"));for(var v=Ae(c),m=0;m<o.length;m++){var y=o[m],_=new qe;if(_.styleName=r,_.text=y,_.isLineHolder=!y&&!s,"number"==typeof l.width?_.width=l.width:_.width=a?a[m]:Oe(v,y),m||h)u.push(new Ye([_]));else{var x=(u[u.length-1]||(u[0]=new Ye)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=_:(y||!b||s)&&x.push(_)}}}var Ke=$(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Qe(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!Ke[t]}function Je(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=Ae(e),d=0;d<t.length;d++){var f=t.charAt(d);if("\n"!==f){var p=Le(h,f.charCodeAt(0)),g=!i&&!Qe(f);(o.length?c+p>n:r+c+p>n)?c?(s||l)&&(g?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=f,s="",c=u+=p):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=f,c=p)):g?(o.push(l),a.push(u),l=f,u=p):(o.push(f),a.push(p)):(c+=p,g?(l+=f,u+=p):(l&&(s+=l,l="",u=0),s+=f))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}function tn(t,e,n,i,r,o){if(t.baseX=n,t.baseY=i,t.outerWidth=t.outerHeight=null,e){var a=2*e.width,s=2*e.height;De.set(en,Ee(n,a,r),Ne(i,s,o),a,s),De.intersect(e,en,null,nn);var l=nn.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Ee(l.x,l.width,r,!0),t.baseY=Ne(l.y,l.height,o,!0)}}var en=new De(0,0,0,0),nn={outIntersectRect:{},clamp:!0};function rn(t){return null!=t?t+="":t=""}function on(t,e,n,i){var r=new De(Ee(t.x||0,e,t.textAlign),Ne(t.y||0,n,t.textBaseline),e,n),o=null!=i?i:an(t)?t.lineWidth:0;return o>0&&(r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o),r}function an(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}function sn(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function ln(t){return[t[0],t[1]]}function un(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function cn(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function hn(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function dn(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var fn=dn,pn=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function gn(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function vn(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function mn(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var yn=ie;function _n(t){return t>5e-5||t<-5e-5}var xn=[],bn=[],wn=[1,0,0,1,0,0],Sn=Math.abs,Cn=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return _n(this.rotation)||_n(this.x)||_n(this.y)||_n(this.scaleX-1)||_n(this.scaleY-1)||_n(this.skewX)||_n(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):yn(n),t&&(e?oe(n,t,n):re(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(yn(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(xn);var n=xn[0]<0?-1:1,i=xn[1]<0?-1:1,r=((xn[0]-n)*e+n)/xn[0]||0,o=((xn[1]-i)*e+i)/xn[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],le(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.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]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,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}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],oe(bn,t.invTransform,e),e=bn);var n=this.originX,i=this.originY;(n||i)&&(wn[4]=n,wn[5]=i,oe(bn,e,wn),bn[4]-=n,bn[5]-=i,e=bn),this.setLocalTransform(e)}},t.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)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&gn(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&gn(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Sn(t[0]-1)>1e-10&&Sn(t[3]-1)>1e-10?Math.sqrt(Sn(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Tn(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var f=n+a,p=i+s;e[4]=-f*r-h*p*o,e[5]=-p*o-d*f*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=d*r,e[2]=h*o,l&&se(e,e,l),e[4]+=n+u,e[5]+=i+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),Mn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Tn(t,e){for(var n=0;n<Mn.length;n++){var i=Mn[n];t[i]=e[i]}}const kn=Cn;var In={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-In.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*In.bounceIn(2*t):.5*In.bounceOut(2*t-1)+.5}};const Dn=In;var An=Math.pow,Rn=Math.sqrt,Pn=1e-4,Ln=Rn(3),On=1/3,Bn=sn(),zn=sn(),En=sn();function Nn(t){return t>-1e-8&&t<1e-8}function Fn(t){return t>1e-8||t<-1e-8}function Vn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function Hn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Gn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,f=0;if(Nn(c)&&Nn(h))Nn(s)?o[0]=0:(C=-l/s)>=0&&C<=1&&(o[f++]=C);else{var p=h*h-4*c*d;if(Nn(p)){var g=h/c,v=-g/2;(C=-s/a+g)>=0&&C<=1&&(o[f++]=C),v>=0&&v<=1&&(o[f++]=v)}else if(p>0){var m=Rn(p),y=c*s+1.5*a*(-h+m),_=c*s+1.5*a*(-h-m);(C=(-s-((y=y<0?-An(-y,On):An(y,On))+(_=_<0?-An(-_,On):An(_,On))))/(3*a))>=0&&C<=1&&(o[f++]=C)}else{var x=(2*c*s-3*a*h)/(2*Rn(c*c*c)),b=Math.acos(x)/3,w=Rn(c),S=Math.cos(b),C=(-s-2*w*S)/(3*a),M=(v=(-s+w*(S+Ln*Math.sin(b)))/(3*a),(-s+w*(S-Ln*Math.sin(b)))/(3*a));C>=0&&C<=1&&(o[f++]=C),v>=0&&v<=1&&(o[f++]=v),M>=0&&M<=1&&(o[f++]=M)}}return f}function Wn(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(Nn(a))Fn(o)&&(c=-s/o)>=0&&c<=1&&(r[l++]=c);else{var u=o*o-4*a*s;if(Nn(u))r[0]=-o/(2*a);else if(u>0){var c,h=Rn(u),d=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}function Un(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function jn(t,e,n,i,r,o,a,s,l){for(var u=t,c=e,h=0,d=1/l,f=1;f<=l;f++){var p=f*d,g=Vn(t,n,r,a,p),v=Vn(e,i,o,s,p),m=g-u,y=v-c;h+=Math.sqrt(m*m+y*y),u=g,c=v}return h}function Xn(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function qn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Yn(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function Zn(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function $n(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,f=Xn(t,n,r,d),p=Xn(e,i,o,d),g=f-s,v=p-l;u+=Math.sqrt(g*g+v*v),s=f,l=p}return u}var Kn=/cubic-bezier\(([0-9,\.e ]+)\)/;function Qn(t){var e=t&&Kn.exec(t);if(e){var n=e[1].split(","),i=+yt(n[0]),r=+yt(n[1]),o=+yt(n[2]),a=+yt(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:Gn(0,i,o,1,t,s)&&Vn(0,r,a,1,s[0])}}}const Jn=function(){function t(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||Dt,this.ondestroy=t.ondestroy||Dt,this.onrestart=t.onrestart||Dt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=nt(t)?t:Dn[t]||Qn(t)},t}();var ti={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 ei(t){return(t=Math.round(t))<0?0:t>255?255:t}function ni(t){return t<0?0:t>1?1:t}function ii(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?ei(parseFloat(e)/100*255):ei(parseInt(e,10))}function ri(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?ni(parseFloat(e)/100):ni(parseFloat(e))}function oi(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function ai(t,e,n){return t+(e-t)*n}function si(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function li(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var ui=new Kt(20),ci=null;function hi(t,e){ci&&li(ci,e),ci=ui.put(t,ci||e.slice())}function di(t,e){if(t){e=e||[];var n=ui.get(t);if(n)return li(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in ti)return li(e,ti[i]),hi(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(si(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),hi(t,e),e):void si(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(si(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),hi(t,e),e):void si(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?si(e,+u[0],+u[1],+u[2],1):si(e,0,0,0,1);c=ri(u.pop());case"rgb":return u.length>=3?(si(e,ii(u[0]),ii(u[1]),ii(u[2]),3===u.length?c:ri(u[3])),hi(t,e),e):void si(e,0,0,0,1);case"hsla":return 4!==u.length?void si(e,0,0,0,1):(u[3]=ri(u[3]),fi(u,e),hi(t,e),e);case"hsl":return 3!==u.length?void si(e,0,0,0,1):(fi(u,e),hi(t,e),e);default:return}}si(e,0,0,0,1)}}function fi(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=ri(t[1]),r=ri(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return si(e=e||[],ei(255*oi(a,o,n+1/3)),ei(255*oi(a,o,n)),ei(255*oi(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function pi(t,e){var n=di(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return mi(n,4===n.length?"rgba":"rgb")}}function gi(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=di(e[r]),s=di(e[o]),l=i-r,u=mi([ei(ai(a[0],s[0],l)),ei(ai(a[1],s[1],l)),ei(ai(a[2],s[2],l)),ni(ai(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function vi(t,e,n,i){var r,o=di(t);if(t)return o=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}(o),null!=e&&(o[0]=(r=nt(e)?e(o[0]):e,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(o[1]=ri(nt(n)?n(o[1]):n)),null!=i&&(o[2]=ri(nt(i)?i(o[2]):i)),mi(fi(o),"rgba")}function mi(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function yi(t,e){var n=di(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var _i=new Kt(100);function xi(t){if(it(t)){var e=_i.get(t);return e||(e=pi(t,-.1),_i.put(t,e)),e}if(ct(t)){var n=W({},t);return n.colorStops=Z(t.colorStops,function(t){return{offset:t.offset,color:pi(t.color,-.1)}}),n}return t}Math.round,Lt.hasGlobalWindow&&nt(window.btoa);var bi=Array.prototype.slice;function wi(t,e,n){return(e-t)*n+t}function Si(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=wi(e[o],n[o],i);return t}function Ci(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function Mi(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Ti(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function ki(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(1===n?r[s]:bi.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;u<l;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function Ii(t){if(q(t)){var e=t.length;if(q(t[0])){for(var n=[],i=0;i<e;i++)n.push(bi.call(t[i]));return n}return bi.call(t)}return t}function Di(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function Ai(t){return 4===t||5===t}function Ri(t){return 1===t||2===t}var Pi=[0,0,0,0],Li=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(q(e)){var l=function(t){return q(t&&t[0])?2:1}(e);a=l,(1===l&&!ot(e[0])||2===l&&!ot(e[0][0]))&&(o=!0)}else if(ot(e)&&!ht(e))a=0;else if(it(e))if(isNaN(+e)){var u=di(e);u&&(s=u,a=3)}else a=0;else if(ct(e)){var c=W({},s);c.colorStops=Z(e.colorStops,function(t){return{offset:t.offset,color:di(t.color)}}),"linear"===e.type?a=4:"radial"===e.type&&(a=5),s=c}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=nt(n)?n:Dn[n]||Qn(n)),i.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=Ri(i),l=Ai(i),u=0;u<r;u++){var c=n[u],h=c.value,d=o.value;c.percent=c.time/t,a||(s&&u!==r-1?ki(h,d,i):l&&Ti(h.colorStops,d.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var f=n[0].value;for(u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-f:3===i?n[u].additiveValue=Ci([],n[u].value,f,-1):Ri(i)&&(n[u].additiveValue=1===i?Ci([],n[u].value,f,-1):Mi([],n[u].value,f,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=3===s,d=this._lastFr,f=Math.min;if(1===u)i=r=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=f(d+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=f(n,u-2)}else{for(n=d;n<u&&!(l[n].percent>e);n++);n=f(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var p=r.percent-i.percent,g=0===p?1:f((e-i.percent)/p,1);r.easingFunc&&(g=r.easingFunc(g));var v=o?this._additiveValue:h?Pi:t[c];if(!Ri(s)&&!h||v||(v=this._additiveValue=[]),this.discrete)t[c]=g<1?i.rawValue:r.rawValue;else if(Ri(s))1===s?Si(v,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=wi(e[a][s],n[a][s],i)}}(v,i[a],r[a],g);else if(Ai(s)){var m=i[a],y=r[a],_=4===s;t[c]={type:_?"linear":"radial",x:wi(m.x,y.x,g),y:wi(m.y,y.y,g),colorStops:Z(m.colorStops,function(t,e){var n=y.colorStops[e];return{offset:wi(t.offset,n.offset,g),color:Di(Si([],t.color,n.color,g))}}),global:y.global},_?(t[c].x2=wi(m.x2,y.x2,g),t[c].y2=wi(m.y2,y.y2,g)):t[c].r=wi(m.r,y.r,g)}else if(h)Si(v,i[a],r[a],g),o||(t[c]=Di(v));else{var x=wi(i[a],r[a],g);o?this._additiveValue=x:t[c]=x}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(di(t[n],Pi),Ci(Pi,Pi,i,1),t[n]=Di(Pi)):1===e?Ci(t[n],t[n],i,1):2===e&&Mi(t[n],t[n],i,1)},t}(),Oi=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?V("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Q(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new Li(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,3===u.valType&&l&&(l=Di(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,Ii(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Ii(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.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)},t.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)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new Jn({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return Z(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=Ii(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Q(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();const Bi=Oi;var zi=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.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=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.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],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.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)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.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],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}();const Ei=zi;var Ni=1;Lt.hasGlobalWindow&&(Ni=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Fi=Ni,Vi="#333",Hi="#ccc",Gi="__zr_normal__",Wi=Mn.concat(["ignore"]),Ui=$(Mn,function(t,e){return t[e]=!0,t},{ignore:!1}),ji={},Xi=new De(0,0,0,0),qi=[],Yi=function(){function t(t){this.id=F(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;r.copyTransform(e);var u=null!=n.position,c=n.autoOverflowArea,h=void 0;if((c||u)&&(h=Xi,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(ji,n,h):He(ji,n,h),r.x=ji.x,r.y=ji.y,o=ji.align,a=ji.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var f=void 0,p=void 0;"center"===d?(f=.5*h.width,p=.5*h.height):(f=Ve(d[0],h.width),p=Ve(d[1],h.height)),l=!0,r.originX=-r.x+f+(i?0:h.x),r.originY=-r.y+p+(i?0:h.y)}}null!=n.rotation&&(r.rotation=n.rotation);var g=n.offset;g&&(r.x+=g[0],r.y+=g[1],l||(r.originX=-g[0],r.originY=-g[1]));var v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var m=v.overflowRect=v.overflowRect||new De(0,0,0,0);r.getLocalTransform(qi),le(qi,qi),De.copy(m,h),m.applyTransform(qi)}else v.overflowRect=null;var y=void 0,_=void 0,x=void 0;(null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside)&&this.canBeInsideText()?(y=n.insideFill,_=n.insideStroke,null!=y&&"auto"!==y||(y=this.getInsideTextFill()),null!=_&&"auto"!==_||(_=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,_=n.outsideStroke,null!=y&&"auto"!==y||(y=this.getOutsideFill()),null!=_&&"auto"!==_||(_=this.getOutsideStroke(y),x=!0)),(y=y||"#000")===v.fill&&_===v.stroke&&x===v.autoStroke&&o===v.align&&a===v.verticalAlign||(s=!0,v.fill=y,v.stroke=_,v.autoStroke=x,v.align=o,v.verticalAlign=a,e.setDefaultTextStyle(v)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Hi:Vi},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&di(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,mi(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},W(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(at(t))for(var n=Q(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==Gi)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Wi)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Gi,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===Gi;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(j(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(t,e,n,l),c&&c.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}V("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=j(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=j(i,t),o=j(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];W(n,r),r.textConfig&&W(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=W({},i?this.textConfig:n.textConfig),W(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Wi.length;u++){var c=Wi[u],h=r&&Ui[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(u=0;u<this.animators.length;u++){var d=this.animators[u],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(e||n)[f]:e||n)}l&&this._transitionState(t,s,o)},t.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}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new kn,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),W(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.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)}},t.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)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this,r=new Bi(i,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var e=i.animators,n=j(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){Zi(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Zi(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=Zi(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function n(t,n,i,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(e,t,{get:function(){return this[n]||o(this,this[n]=[]),this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,o(this,t)}})}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function Zi(t,e,n,i,r){var o=[];Qi(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var d=0;d<o.length;d++){var f=o[d];c&&f.done(c),h&&f.aborted(h),n.force&&f.duration(n.duration),f.start(n.easing)}return o}function $i(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function Ki(t,e,n){if(q(e[n]))if(q(t[n])||(t[n]=[]),lt(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),$i(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(q(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?$i(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else $i(o,r,a);o.length=r.length}else t[n]=e[n]}function Qi(t,e,n,i,r,o,a,s){for(var l=Q(i),u=r.duration,c=r.delay,h=r.additive,d=r.setToFinal,f=!at(o),p=t.animators,g=[],v=0;v<l.length;v++){var m=l[v],y=i[m];if(null!=y&&null!=n[m]&&(f||o[m]))if(!at(y)||q(y)||ct(y))g.push(m);else{if(e){s||(n[m]=y,t.updateDuringAnimation(e));continue}Qi(t,m,n[m],y,r,o&&o[m],a,s)}else s||(n[m]=y,t.updateDuringAnimation(e),g.push(m))}var _=g.length;if(!h&&_)for(var x=0;x<p.length;x++)if((w=p[x]).targetName===e&&w.stopTracks(g)){var b=j(p,w);p.splice(b,1)}if(r.force||(g=K(g,function(t){return!((e=i[t])===(r=n[t])||q(e)&&q(r)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,r));var e,r}),_=g.length),_>0||r.force&&!a.length){var w,S=void 0,C=void 0,M=void 0;if(s)for(C={},d&&(S={}),x=0;x<_;x++)C[m=g[x]]=n[m],d?S[m]=i[m]:n[m]=i[m];else if(d)for(M={},x=0;x<_;x++)M[m=g[x]]=Ii(n[m]),Ki(n,i,m);(w=new Bi(n,!1,!1,h?K(p,function(t){return t.targetName===e}):null)).targetName=e,r.scope&&(w.scope=r.scope),d&&S&&w.whenWithKeys(0,S,g),M&&w.whenWithKeys(0,M,g),w.whenWithKeys(null==u?500:u,s?C:i,g).delay(c||0),t.addAnimator(w,e),a.push(w)}}X(Yi,Ei),X(Yi,kn);const Ji=Yi;var tr="__zr_style_"+Math.round(10*Math.random()),er={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},nr={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};er[tr]=!0;var ir=["z","z2","invisible"],rr=["invisible"],or=function(t){function e(e){return t.call(this,e)||this}var n;return qt(e,t),e.prototype._init=function(e){for(var n=Q(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,i){var r,o,a,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(r=this,o=t,a=e,ar.copy(r.getBoundingRect()),r.transform&&ar.applyTransform(r.transform),sr.width=o,sr.height=a,!ar.intersect(sr))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length)for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1;if(i&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new De(0,0,0,0)),e?De.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new De(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:W(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return Tt(er,t)},e.prototype.useStyle=function(t){t[tr]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[tr]},e.prototype._innerSaveToNormal=function(e){t.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,ir)},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=Q(u),h=0;h<c.length;h++)(f=c[h])in s&&(s[f]=s[f],this.style[f]=u[f]);var d=Q(s);for(h=0;h<d.length;h++){var f=d[h];this.style[f]=this.style[f]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var p=this.__inHover?rr:ir;for(h=0;h<p.length;h++)f=p[h],n&&null!=n[f]?this[f]=n[f]:l&&null!=i[f]&&(this[f]=i[f])},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,e){return W(t,e),t},e.prototype.getAnimationStyleProps=function(){return nr},e.initDefaultProps=((n=e.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=3)),e}(Ji),ar=new De(0,0,0,0),sr=new De(0,0,0,0);const lr=or;var ur=Math.min,cr=Math.max,hr=Math.sin,dr=Math.cos,fr=2*Math.PI,pr=sn(),gr=sn(),vr=sn();function mr(t,e,n,i,r,o){r[0]=ur(t,n),r[1]=ur(e,i),o[0]=cr(t,n),o[1]=cr(e,i)}var yr=[],_r=[];function xr(t,e,n,i,r,o,a,s,l,u){var c=Wn,h=Vn,d=c(t,n,r,a,yr);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;f<d;f++){var p=h(t,n,r,a,yr[f]);l[0]=ur(p,l[0]),u[0]=cr(p,u[0])}for(d=c(e,i,o,s,_r),f=0;f<d;f++){var g=h(e,i,o,s,_r[f]);l[1]=ur(g,l[1]),u[1]=cr(g,u[1])}l[0]=ur(t,l[0]),u[0]=cr(t,u[0]),l[0]=ur(a,l[0]),u[0]=cr(a,u[0]),l[1]=ur(e,l[1]),u[1]=cr(e,u[1]),l[1]=ur(s,l[1]),u[1]=cr(s,u[1])}function br(t,e,n,i,r,o,a,s){var l=Yn,u=Xn,c=cr(ur(l(t,n,r),1),0),h=cr(ur(l(e,i,o),1),0),d=u(t,n,r,c),f=u(e,i,o,h);a[0]=ur(t,r,d),a[1]=ur(e,o,f),s[0]=cr(t,r,d),s[1]=cr(e,o,f)}function wr(t,e,n,i,r,o,a,s,l){var u=vn,c=mn,h=Math.abs(r-o);if(h%fr<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(pr[0]=dr(r)*n+t,pr[1]=hr(r)*i+e,gr[0]=dr(o)*n+t,gr[1]=hr(o)*i+e,u(s,pr,gr),c(l,pr,gr),(r%=fr)<0&&(r+=fr),(o%=fr)<0&&(o+=fr),r>o&&!a?o+=fr:r<o&&a&&(r+=fr),a){var d=o;o=r,r=d}for(var f=0;f<o;f+=Math.PI/2)f>r&&(vr[0]=dr(f)*n+t,vr[1]=hr(f)*i+e,u(s,vr,s),c(l,vr,l))}var Sr={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Cr=[],Mr=[],Tr=[],kr=[],Ir=[],Dr=[],Ar=Math.min,Rr=Math.max,Pr=Math.cos,Lr=Math.sin,Or=Math.abs,Br=Math.PI,zr=2*Br,Er="undefined"!=typeof Float32Array,Nr=[];function Fr(t){return Math.round(t/Br*1e8)/1e8%2*Br}var Vr=function(){function t(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=[])}var e;return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=Or(n/Fi/t)||0,this._uy=Or(n/Fi/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Sr.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Or(t-this._xi),i=Or(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Sr.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)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},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Sr.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Sr.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),Nr[0]=i,Nr[1]=r,function(t,e){var n=Fr(t[0]);n<0&&(n+=zr);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=zr?r=n+zr:e&&n-r>=zr?r=n-zr:!e&&n>r?r=n+(zr-Fr(n-r)):e&&n<r&&(r=n-(zr-Fr(r-n))),t[0]=n,t[1]=r}(Nr,o),i=Nr[0];var a=(r=Nr[1])-i;return this.addData(Sr.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Pr(r)*n+t,this._yi=Lr(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Sr.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Sr.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){if(this._saveData){var e=t.length;this.data&&this.data.length===e||!Er||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},t.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();var o=this.data;if(Er&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var a=0;a<i;a++)this.data[a]=o[a];for(r=0;r<e;r++){var s=t[r].data;for(a=0;a<s.length;a++)this.data[i++]=s[a]}this._len=i}},t.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Er&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Tr[0]=Tr[1]=Ir[0]=Ir[1]=Number.MAX_VALUE,kr[0]=kr[1]=Dr[0]=Dr[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(r=n=e[t],o=i=e[t+1]),a){case Sr.M:n=r=e[t++],i=o=e[t++],Ir[0]=r,Ir[1]=o,Dr[0]=r,Dr[1]=o;break;case Sr.L:mr(n,i,e[t],e[t+1],Ir,Dr),n=e[t++],i=e[t++];break;case Sr.C:xr(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],Ir,Dr),n=e[t++],i=e[t++];break;case Sr.Q:br(n,i,e[t++],e[t++],e[t],e[t+1],Ir,Dr),n=e[t++],i=e[t++];break;case Sr.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],d=e[t++],f=e[t++]+d;t+=1;var p=!e[t++];s&&(r=Pr(d)*c+l,o=Lr(d)*h+u),wr(l,u,c,h,d,f,p,Ir,Dr),n=Pr(f)*c+l,i=Lr(f)*h+u;break;case Sr.R:mr(r=n=e[t++],o=i=e[t++],r+e[t++],o+e[t++],Ir,Dr);break;case Sr.Z:n=r,i=o}vn(Tr,Tr,Ir),mn(kr,kr,Dr)}return 0===t&&(Tr[0]=Tr[1]=kr[0]=kr[1]=0),new De(Tr[0],Tr[1],kr[0]-Tr[0],kr[1]-Tr[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var d=t[h++],f=1===h;f&&(a=r=t[h],s=o=t[h+1]);var p=-1;switch(d){case Sr.M:r=a=t[h++],o=s=t[h++];break;case Sr.L:var g=t[h++],v=(_=t[h++])-o;(Or(D=g-r)>n||Or(v)>i||h===e-1)&&(p=Math.sqrt(D*D+v*v),r=g,o=_);break;case Sr.C:var m=t[h++],y=t[h++],_=(g=t[h++],t[h++]),x=t[h++],b=t[h++];p=jn(r,o,m,y,g,_,x,b,10),r=x,o=b;break;case Sr.Q:p=$n(r,o,m=t[h++],y=t[h++],g=t[h++],_=t[h++],10),r=g,o=_;break;case Sr.A:var w=t[h++],S=t[h++],C=t[h++],M=t[h++],T=t[h++],k=t[h++],I=k+T;h+=1,f&&(a=Pr(T)*C+w,s=Lr(T)*M+S),p=Rr(C,M)*Ar(zr,Math.abs(k)),r=Pr(I)*C+w,o=Lr(I)*M+S;break;case Sr.R:a=r=t[h++],s=o=t[h++],p=2*t[h++]+2*t[h++];break;case Sr.Z:var D=a-r;v=s-o,p=Math.sqrt(D*D+v*v),r=a,o=s}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c,h,d=this.data,f=this._ux,p=this._uy,g=this._len,v=e<1,m=0,y=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var x=0;x<g;){var b=d[x++],w=1===x;switch(w&&(n=r=d[x],i=o=d[x+1]),b!==Sr.L&&_>0&&(t.lineTo(c,h),_=0),b){case Sr.M:n=r=d[x++],i=o=d[x++],t.moveTo(r,o);break;case Sr.L:a=d[x++],s=d[x++];var S=Or(a-r),C=Or(s-o);if(S>f||C>p){if(v){if(m+(Y=l[y++])>u){var M=(u-m)/Y;t.lineTo(r*(1-M)+a*M,o*(1-M)+s*M);break t}m+=Y}t.lineTo(a,s),r=a,o=s,_=0}else{var T=S*S+C*C;T>_&&(c=a,h=s,_=T)}break;case Sr.C:var k=d[x++],I=d[x++],D=d[x++],A=d[x++],R=d[x++],P=d[x++];if(v){if(m+(Y=l[y++])>u){Un(r,k,D,R,M=(u-m)/Y,Cr),Un(o,I,A,P,M,Mr),t.bezierCurveTo(Cr[1],Mr[1],Cr[2],Mr[2],Cr[3],Mr[3]);break t}m+=Y}t.bezierCurveTo(k,I,D,A,R,P),r=R,o=P;break;case Sr.Q:if(k=d[x++],I=d[x++],D=d[x++],A=d[x++],v){if(m+(Y=l[y++])>u){Zn(r,k,D,M=(u-m)/Y,Cr),Zn(o,I,A,M,Mr),t.quadraticCurveTo(Cr[1],Mr[1],Cr[2],Mr[2]);break t}m+=Y}t.quadraticCurveTo(k,I,D,A),r=D,o=A;break;case Sr.A:var L=d[x++],O=d[x++],B=d[x++],z=d[x++],E=d[x++],N=d[x++],F=d[x++],V=!d[x++],H=B>z?B:z,G=Or(B-z)>.001,W=E+N,U=!1;if(v&&(m+(Y=l[y++])>u&&(W=E+N*(u-m)/Y,U=!0),m+=Y),G&&t.ellipse?t.ellipse(L,O,B,z,F,E,W,V):t.arc(L,O,H,E,W,V),U)break t;w&&(n=Pr(E)*B+L,i=Lr(E)*z+O),r=Pr(W)*B+L,o=Lr(W)*z+O;break;case Sr.R:n=r=d[x],i=o=d[x+1],a=d[x++],s=d[x++];var j=d[x++],X=d[x++];if(v){if(m+(Y=l[y++])>u){var q=u-m;t.moveTo(a,s),t.lineTo(a+Ar(q,j),s),(q-=j)>0&&t.lineTo(a+j,s+Ar(q,X)),(q-=X)>0&&t.lineTo(a+Rr(j-q,0),s+X),(q-=j)>0&&t.lineTo(a,s+Rr(X-q,0));break t}m+=Y}t.rect(a,s,j,X);break;case Sr.Z:if(v){var Y;if(m+(Y=l[y++])>u){M=(u-m)/Y,t.lineTo(r*(1-M)+n*M,o*(1-M)+i*M);break t}m+=Y}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Sr,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();const Hr=Vr;function Gr(t,e,n,i,r,o,a){if(0===r)return!1;var s,l=r;if(a>e+l&&a>i+l||a<e-l&&a<i-l||o>t+l&&o>n+l||o<t-l&&o<n-l)return!1;if(t===n)return Math.abs(o-t)<=l/2;var u=(s=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n);return u*u/(s*s+1)<=l/2*l/2}function Wr(t,e,n,i,r,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>i+h&&c>o+h&&c>s+h||c<e-h&&c<i-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>r+h&&u>a+h||u<t-h&&u<n-h&&u<r-h&&u<a-h)return!1;var d=function(t,e,n,i,r,o,a,s,l,u){var c,h,d,f,p,g=.005,v=1/0;Bn[0]=l,Bn[1]=u;for(var m=0;m<1;m+=.05)zn[0]=Vn(t,n,r,a,m),zn[1]=Vn(e,i,o,s,m),(f=pn(Bn,zn))<v&&(c=m,v=f);v=1/0;for(var y=0;y<32&&!(g<Pn);y++)h=c-g,d=c+g,zn[0]=Vn(t,n,r,a,h),zn[1]=Vn(e,i,o,s,h),f=pn(zn,Bn),h>=0&&f<v?(c=h,v=f):(En[0]=Vn(t,n,r,a,d),En[1]=Vn(e,i,o,s,d),p=pn(En,Bn),d<=1&&p<v?(c=d,v=p):g*=.5);return Rn(v)}(t,e,n,i,r,o,a,s,u,c);return d<=h/2}function Ur(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>i+u&&l>o+u||l<e-u&&l<i-u&&l<o-u||s>t+u&&s>n+u&&s>r+u||s<t-u&&s<n-u&&s<r-u)return!1;var c=function(t,e,n,i,r,o,a,s){var l,u=.005,c=1/0;Bn[0]=a,Bn[1]=s;for(var h=0;h<1;h+=.05)zn[0]=Xn(t,n,r,h),zn[1]=Xn(e,i,o,h),(g=pn(Bn,zn))<c&&(l=h,c=g);c=1/0;for(var d=0;d<32&&!(u<Pn);d++){var f=l-u,p=l+u;zn[0]=Xn(t,n,r,f),zn[1]=Xn(e,i,o,f);var g=pn(zn,Bn);if(f>=0&&g<c)l=f,c=g;else{En[0]=Xn(t,n,r,p),En[1]=Xn(e,i,o,p);var v=pn(En,Bn);p<=1&&v<c?(l=p,c=v):u*=.5}}return Rn(c)}(t,e,n,i,r,o,s,l);return c<=u/2}var jr=2*Math.PI;function Xr(t){return(t%=jr)<0&&(t+=jr),t}var qr=2*Math.PI;function Yr(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(i-r)%qr<1e-4)return!0;if(o){var h=i;i=Xr(r),r=Xr(h)}else i=Xr(i),r=Xr(r);i>r&&(r+=qr);var d=Math.atan2(l,s);return d<0&&(d+=qr),d>=i&&d<=r||d+qr>=i&&d+qr<=r}function Zr(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;1!==a&&0!==a||(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}var $r=Hr.CMD,Kr=2*Math.PI,Qr=[-1,-1,-1],Jr=[-1,-1];function to(){var t=Jr[0];Jr[0]=Jr[1],Jr[1]=t}function eo(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u<e&&u<i&&u<o&&u<s)return 0;var c=Gn(e,i,o,s,u,Qr);if(0===c)return 0;for(var h=0,d=-1,f=void 0,p=void 0,g=0;g<c;g++){var v=Qr[g],m=0===v||1===v?.5:1;Vn(t,n,r,a,v)<l||(d<0&&(d=Wn(e,i,o,s,Jr),Jr[1]<Jr[0]&&d>1&&to(),f=Vn(e,i,o,s,Jr[0]),d>1&&(p=Vn(e,i,o,s,Jr[1]))),2===d?v<Jr[0]?h+=f<e?m:-m:v<Jr[1]?h+=p<f?m:-m:h+=s<p?m:-m:v<Jr[0]?h+=f<e?m:-m:h+=s<f?m:-m)}return h}function no(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=function(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(Nn(o))Fn(a)&&(c=-s/a)>=0&&c<=1&&(r[l++]=c);else{var u=a*a-4*o*s;if(Nn(u))(c=-a/(2*o))>=0&&c<=1&&(r[l++]=c);else if(u>0){var c,h=Rn(u),d=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}(e,i,o,s,Qr);if(0===l)return 0;var u=Yn(e,i,o);if(u>=0&&u<=1){for(var c=0,h=Xn(e,i,o,u),d=0;d<l;d++){var f=0===Qr[d]||1===Qr[d]?.5:1;Xn(t,n,r,Qr[d])<a||(Qr[d]<u?c+=h<e?f:-f:c+=o<h?f:-f)}return c}return f=0===Qr[0]||1===Qr[0]?.5:1,Xn(t,n,r,Qr[0])<a?0:o<e?f:-f}function io(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Qr[0]=-l,Qr[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Kr-1e-4){i=0,r=Kr;var c=o?1:-1;return a>=Qr[0]+t&&a<=Qr[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=Kr,r+=Kr);for(var d=0,f=0;f<2;f++){var p=Qr[f];if(p+t>a){var g=Math.atan2(s,p);c=o?1:-1,g<0&&(g=Kr+g),(g>=i&&g<=r||g+Kr>=i&&g+Kr<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function ro(t,e,n,i,r){for(var o,a,s,l,u=t.data,c=t.len(),h=0,d=0,f=0,p=0,g=0,v=0;v<c;){var m=u[v++],y=1===v;switch(m===$r.M&&v>1&&(n||(h+=Zr(d,f,p,g,i,r))),y&&(p=d=u[v],g=f=u[v+1]),m){case $r.M:d=p=u[v++],f=g=u[v++];break;case $r.L:if(n){if(Gr(d,f,u[v],u[v+1],e,i,r))return!0}else h+=Zr(d,f,u[v],u[v+1],i,r)||0;d=u[v++],f=u[v++];break;case $r.C:if(n){if(Wr(d,f,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else h+=eo(d,f,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],i,r)||0;d=u[v++],f=u[v++];break;case $r.Q:if(n){if(Ur(d,f,u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else h+=no(d,f,u[v++],u[v++],u[v],u[v+1],i,r)||0;d=u[v++],f=u[v++];break;case $r.A:var _=u[v++],x=u[v++],b=u[v++],w=u[v++],S=u[v++],C=u[v++];v+=1;var M=!!(1-u[v++]);o=Math.cos(S)*b+_,a=Math.sin(S)*w+x,y?(p=o,g=a):h+=Zr(d,f,o,a,i,r);var T=(i-_)*w/b+_;if(n){if(Yr(_,x,w,S,S+C,M,e,T,r))return!0}else h+=io(_,x,w,S,S+C,M,T,r);d=Math.cos(S+C)*b+_,f=Math.sin(S+C)*w+x;break;case $r.R:if(p=d=u[v++],g=f=u[v++],o=p+u[v++],a=g+u[v++],n){if(Gr(p,g,o,g,e,i,r)||Gr(o,g,o,a,e,i,r)||Gr(o,a,p,a,e,i,r)||Gr(p,a,p,g,e,i,r))return!0}else h+=Zr(o,g,o,a,i,r),h+=Zr(p,a,p,g,i,r);break;case $r.Z:if(n){if(Gr(d,f,p,g,e,i,r))return!0}else h+=Zr(d,f,p,g,i,r);d=p,f=g}}return n||(s=f,l=g,Math.abs(s-l)<1e-4)||(h+=Zr(d,f,p,g,i,r)||0),0!==h}var oo=U({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},er),ao={style:U({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},nr.style)},so=Mn.concat(["invisible","culling","z","z2","zlevel","parent"]),lo=function(t){function e(e){return t.call(this,e)||this}var n;return qt(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<so.length;++s)r[so[s]]=this[so[s]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Q(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?W(this.style,a):this.useStyle(a):"shape"===o?W(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(it(t)){var e=yi(t,0);return e>.5?Vi:e>.2?"#eee":Hi}if(t)return Hi}return Vi},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(it(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==yi(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Hr(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return ro(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return ro(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:W(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return Tt(oo,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=W({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=W({},i.shape),W(s,n.shape)):(s=W({},r?this.shape:i.shape),W(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=W({},this.shape);for(var u={},c=Q(s),h=0;h<c.length;h++){var d=c[h];"object"==typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return ao},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return qt(n,e),n.prototype.getDefaultStyle=function(){return H(t.style)},n.prototype.getDefaultShape=function(){return H(t.shape)},n}(e);for(var i in t)"function"==typeof t[i]&&(n.prototype[i]=t[i]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),e}(lr);const uo=lo;var co=U({strokeFirst:!0,font:C,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},oo),ho=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qt(e,t),e.prototype.hasStroke=function(){return an(this.style)},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return Tt(co,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t,e,n;return this._rect||(this._rect=(e=rn((t=this.style).text),on(t,Oe(Ae(n=t.font),e),Fe(n),null))),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(lr);ho.prototype.type="tspan";const fo=ho;var po=U({x:0,y:0},er),go={style:U({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},nr.style)},vo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qt(e,t),e.prototype.createStyle=function(t){return Tt(po,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return go},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new De(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(lr);vo.prototype.type="image";const mo=vo;var yo=Math.round;function _o(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(yo(2*i)===yo(2*r)&&(t.x1=t.x2=bo(i,s,!0)),yo(2*o)===yo(2*a)&&(t.y1=t.y2=bo(o,s,!0)),t):t}}function xo(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=bo(i,s,!0),t.y=bo(r,s,!0),t.width=Math.max(bo(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(bo(r+a,s,!1)-t.y,0===a?0:1),t):t}}function bo(t,e,n){if(!e)return t;var i=yo(2*t);return(i+yo(e))%2==0?i/2:(i+(n?1:-1))/2}var wo=function(){this.x=0,this.y=0,this.width=0,this.height=0},So={},Co=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultShape=function(){return new wo},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=xo(So,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>c&&(i*=c/(a=i+r),r*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(uo);Co.prototype.type="rect";const Mo=Co;var To={fill:"#000"},ko={},Io={style:U({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},nr.style)},Do=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=To,n.attr(e),n}return qt(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.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}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,Oo(t=this.style),Y(t.rich,Oo),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new De(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||To},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return W(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=Q(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},W(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return Io},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||C,n=t.padding,i=this._defaultStyle,r=t.x||0,o=t.y||0,a=t.align||i.align||"left",s=t.verticalAlign||i.verticalAlign||"top";tn(ko,i.overflowRect,r,o,a,s),r=ko.baseX,o=ko.baseY;var l=function(t,e,n,i){var r=rn(t),o=e.overflow,a=e.padding,s=a?a[1]+a[3]:0,l=a?a[0]+a[2]:0,u=e.font,c="truncate"===o,h=Fe(u),d=ft(e.lineHeight,h),f="truncate"===e.lineOverflow,p=!1,g=e.width;null==g&&null!=n&&(g=n-s);var v,m=e.height;null==m&&null!=i&&(m=i-l);var y=(v=null==g||"break"!==o&&"breakAll"!==o?r?r.split("\n"):[]:r?Je(r,e.font,g,"breakAll"===o,0).lines:[]).length*d;if(null==m&&(m=y),y>m&&f){var _=Math.floor(m/d);p=p||v.length>_,y=(v=v.slice(0,_)).length*d}if(r&&c&&null!=g)for(var x=Ue(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;w<v.length;w++)je(b,v[w],x),v[w]=b.textLine,p=p||b.isTruncated;var S=m,C=0,M=Ae(u);for(w=0;w<v.length;w++)C=Math.max(Oe(M,v[w]),C);null==g&&(g=C);var T=g;return{lines:v,height:m,outerWidth:T+=s,outerHeight:S+=l,lineHeight:d,calculatedLineHeight:h,contentWidth:C,contentHeight:y,width:g,isTruncated:p}}(No(t),t,ko.outerWidth,ko.outerHeight),u=Fo(t),c=!!t.backgroundColor,h=l.outerHeight,d=l.outerWidth,f=l.lines,p=l.lineHeight;this.isTruncated=!!l.isTruncated;var g=r,v=Ne(o,l.contentHeight,s);if(u||n){var m=Ee(r,d,a),y=Ne(o,h,s);u&&this._renderBackground(t,t,m,y,d,h)}v+=p/2,n&&(g=Eo(r,a,n),"top"===s?v+=n[0]:"bottom"===s&&(v-=n[2]));for(var _=0,x=!1,b=!1,w=(zo("fill"in t?t.fill:(b=!0,i.fill))),S=(Bo("stroke"in t?t.stroke:c||i.autoStroke&&!b?null:(_=2,x=!0,i.stroke))),M=t.textShadowBlur>0,T=0;T<f.length;T++){var k=this._getOrCreateChild(fo),I=k.createStyle();k.useStyle(I),I.text=f[T],I.x=g,I.y=v,a&&(I.textAlign=a),I.textBaseline="middle",I.opacity=t.opacity,I.strokeFirst=!0,M&&(I.shadowBlur=t.textShadowBlur||0,I.shadowColor=t.textShadowColor||"transparent",I.shadowOffsetX=t.textShadowOffsetX||0,I.shadowOffsetY=t.textShadowOffsetY||0),I.stroke=S,I.fill=w,S&&(I.lineWidth=t.lineWidth||_,I.lineDash=t.lineDash,I.lineDashOffset=t.lineDashOffset||0),I.font=e,Lo(I,t),v+=p,k.setBoundingRect(on(I,l.contentWidth,l.calculatedLineHeight,x?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,n=t.align||e.align,i=t.verticalAlign||e.verticalAlign,r=t.x||0,o=t.y||0;tn(ko,e.overflowRect,r,o,n,i),r=ko.baseX,o=ko.baseY;var a=function(t,e,n,i,r){var o=new Ze,a=rn(t);if(!a)return o;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=e.width;null==c&&null!=n&&(c=n-l);var h=e.height;null==h&&null!=i&&(h=i-u);for(var d,f=e.overflow,p="break"!==f&&"breakAll"!==f||null==c?null:{width:c,accumWidth:0,breakAll:"breakAll"===f},g=Ge.lastIndex=0;null!=(d=Ge.exec(a));){var v=d.index;v>g&&$e(o,a.substring(g,v),e,p),$e(o,d[2],e,p,d[1]),g=Ge.lastIndex}g<a.length&&$e(o,a.substring(g,a.length),e,p);var m=[],y=0,_=0,x="truncate"===f,b="truncate"===e.lineOverflow,w={};function S(t,e,n){t.width=e,t.lineHeight=n,y+=n,_=Math.max(_,e)}t:for(var C=0;C<o.lines.length;C++){for(var M=o.lines[C],T=0,k=0,I=0;I<M.tokens.length;I++){var D=(V=M.tokens[I]).styleName&&e.rich[V.styleName]||{},A=V.textPadding=D.padding,R=A?A[1]+A[3]:0,P=V.font=D.font||e.font;V.contentHeight=Fe(P);var L=ft(D.height,V.contentHeight);if(V.innerHeight=L,A&&(L+=A[0]+A[2]),V.height=L,V.lineHeight=pt(D.lineHeight,e.lineHeight,L),V.align=D&&D.align||r,V.verticalAlign=D&&D.verticalAlign||"middle",b&&null!=h&&y+V.lineHeight>h){var O=o.lines.length;I>0?(M.tokens=M.tokens.slice(0,I),S(M,k,T),o.lines=o.lines.slice(0,C+1)):o.lines=o.lines.slice(0,C),o.isTruncated=o.isTruncated||o.lines.length<O;break t}var B=D.width,z=null==B||"auto"===B;if("string"==typeof B&&"%"===B.charAt(B.length-1))V.percentWidth=B,m.push(V),V.contentWidth=Oe(Ae(P),V.text);else{if(z){var E=D.backgroundColor,N=E&&E.image;N&&ne(N=Jt(N))&&(V.width=Math.max(V.width,N.width*L/N.height))}var F=x&&null!=c?c-k:null;null!=F&&F<V.width?!z||F<R?(V.text="",V.width=V.contentWidth=0):(We(w,V.text,F-R,P,e.ellipsis,{minChar:e.truncateMinChar}),V.text=w.text,o.isTruncated=o.isTruncated||w.isTruncated,V.width=V.contentWidth=Oe(Ae(P),V.text)):V.contentWidth=Oe(Ae(P),V.text)}V.width+=R,k+=V.width,D&&(T=Math.max(T,V.lineHeight))}S(M,k,T)}for(o.outerWidth=o.width=ft(c,_),o.outerHeight=o.height=ft(h,y),o.contentHeight=y,o.contentWidth=_,o.outerWidth+=l,o.outerHeight+=u,C=0;C<m.length;C++){var V,H=(V=m[C]).percentWidth;V.width=parseInt(H,10)/100*o.width}return o}(No(t),t,ko.outerWidth,ko.outerHeight,n),s=a.width,l=a.outerWidth,u=a.outerHeight,c=t.padding;this.isTruncated=!!a.isTruncated;var h=Ee(r,l,n),d=Ne(o,u,i),f=h,p=d;c&&(f+=c[3],p+=c[0]);var g=f+s;Fo(t)&&this._renderBackground(t,t,h,d,l,u);for(var v=!!t.backgroundColor,m=0;m<a.lines.length;m++){for(var y=a.lines[m],_=y.tokens,x=_.length,b=y.lineHeight,w=y.width,S=0,C=f,M=g,T=x-1,k=void 0;S<x&&(!(k=_[S]).align||"left"===k.align);)this._placeToken(k,t,b,p,C,"left",v),w-=k.width,C+=k.width,S++;for(;T>=0&&"right"===(k=_[T]).align;)this._placeToken(k,t,b,p,M,"right",v),w-=k.width,M-=k.width,T--;for(C+=(s-(C-f)-(g-M)-w)/2;S<=T;)k=_[S],this._placeToken(k,t,b,p,C+k.width/2,"center",v),C+=k.width,S++;p+=b}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&Fo(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,h=t.textPadding;h&&(r=Eo(r,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var d=this._getOrCreateChild(fo),f=d.createStyle();d.useStyle(f);var p=this._defaultStyle,g=!1,v=0,m=!1,y=zo("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,p.fill)),_=Bo("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||p.autoStroke&&!g?null:(v=2,m=!0,p.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=u,x&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||C,f.opacity=pt(s.opacity,e.opacity,1),Lo(f,s),_&&(f.lineWidth=pt(s.lineWidth,e.lineWidth,v),f.lineDash=ft(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=_),y&&(f.fill=y),d.setBoundingRect(on(f,t.contentWidth,t.contentHeight,m?0:null))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,d=u&&u.image,f=u&&!d,p=t.borderRadius,g=this;if(f||t.lineHeight||c&&h){(a=this._getOrCreateChild(Mo)).useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=n,v.y=i,v.width=r,v.height=o,v.r=p,a.dirtyShape()}if(f)(l=a.style).fill=u||null,l.fillOpacity=ft(t.fillOpacity,1);else if(d){(s=this._getOrCreateChild(mo)).onload=function(){g.dirtyStyle()};var m=s.style;m.image=u.image,m.x=n,m.y=i,m.width=r,m.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=ft(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=pt(t.opacity,e.opacity,1)},e.makeFont=function(t){var e,n="";return function(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}(t)&&(n=[t.fontStyle,t.fontWeight,(e=t.fontSize,"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e),t.fontFamily||"sans-serif"].join(" ")),n&&yt(n)||t.textFont||t.font},e}(lr),Ao={left:!0,right:1,center:1},Ro={top:1,bottom:1,middle:1},Po=["fontStyle","fontWeight","fontSize","fontFamily"];function Lo(t,e){for(var n=0;n<Po.length;n++){var i=Po[n],r=e[i];null!=r&&(t[i]=r)}}function Oo(t){if(t){t.font=Do.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Ao[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||Ro[n]?n:"top",t.padding&&(t.padding=vt(t.padding))}}function Bo(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function zo(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Eo(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function No(t){var e=t.text;return null!=e&&(e+=""),e}function Fo(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const Vo=Do;var Ho=Math.min,Go=Math.max,Wo=Math.abs;function Uo(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}var jo=function(t,e,n){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return Xo(t,e,n)};function Xo(t,e,n){return it(t)?(i=t,i.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e+(n||0):parseFloat(t):null==t?NaN:+t;var i}function qo(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function Yo(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return function(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}(t)}function Zo(t,e){var n=Math.max(Yo(t),Yo(e)),i=t+e;return n>20?i:qo(i,n)}function $o(t){var e=2*Math.PI;return(t%e+e)%e}function Ko(t){return t>-1e-4&&t<1e-4}var Qo=/^(?:(\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 Jo(t){if(t instanceof Date)return t;if(it(t)){var e=Qo.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function ta(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function ea(t,e){var n=ta(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function na(t){var e=parseFloat(t);return e==t&&(0!==e||!it(t)||t.indexOf("x")<=0)?e:NaN}function ia(){return Math.round(9*Math.random())}function ra(t,e){return 0===e?t:ra(e,t%e)}function oa(t,e){return null==t?e:null==e?t:t*e/ra(t,e)}function aa(t,e,n){return(e-t)*n+t}var sa="series\0";function la(t){return t instanceof Array?t:null==t?[]:[t]}function ua(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var ca=["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 ha(t){return!at(t)||et(t)||t instanceof Date?t:t.value}function da(t){return at(t)&&!(t instanceof Array)}function fa(t,e,n){var i=ga(e[t],null),r=ga(n[t],null);return null!=i&&null!=r&&i===r}function pa(t){return ga(t,"")}function ga(t,e){return null==t?e:it(t)?t:ot(t)||rt(t)?t+"":e}function va(t){var e=t.name;return!(!e||!e.indexOf(sa))}function ma(t){return t&&null!=t.id&&0===pa(t.id).indexOf("\0_ec_\0")}function ya(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?et(e.dataIndex)?Z(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?et(e.name)?Z(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function _a(){var t="__ec_inner_"+xa++;return function(e){return e[t]||(e[t]={})}}var xa=ia();function ba(t,e,n){var i=wa(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each(function(e,i){var r=Ca(t,i,e,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]}),a}function wa(t,e){var n;if(it(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=Mt(),o={},a=!1;return Y(n,function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();!s||!l||e&&e.includeMainTypes&&j(e.includeMainTypes,s)<0||(a=a||!!s,(r.get(s)||r.set(s,{}))[l]=t)}else o[n]=t}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var Sa={useDefault:!0,enableAll:!1,enableNone:!1};function Ca(t,e,n,i){i=i||Sa;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if("none"===r||!1===r){if(i.enableNone)return s.models=[],s;r=-1}return"all"===r&&(r=i.enableAll?o=a=null:-1),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s}function Ma(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}!function(){function t(){}t.prototype.reset=function(t,e,n,i){return this._list=t,this._step=i=i||1,this._idx=e,this._end=null!=n?n:i>0?t.length:0,this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0)}}();var Ta=_a(),ka=1,Ia={},Da=_a(),Aa=_a(),Ra=["emphasis","blur","select"],Pa=["normal","emphasis","blur","select"],La="highlight",Oa="downplay",Ba="select",za="unselect",Ea="toggleSelect",Na="selectchanged";function Fa(t){return null!=t&&"none"!==t}function Va(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Ha(t){Va(t,"emphasis",2)}function Ga(t){2===t.hoverState&&Va(t,"normal",0)}function Wa(t){Va(t,"blur",1)}function Ua(t){1===t.hoverState&&Va(t,"normal",0)}function ja(t){t.selected=!0}function Xa(t){t.selected=!1}function qa(t,e,n){e(t,n)}function Ya(t,e,n){qa(t,e,n),t.isGroup&&t.traverse(function(t){qa(t,e,n)})}function Za(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function $a(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,i){var r=n&&j(n,"select")>=0,o=!1;if(t instanceof uo){var a=Da(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(Fa(s)||Fa(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=W({},i),(u=W({},u)).fill=s):!Fa(u.fill)&&Fa(s)?(o=!0,i=W({},i),(u=W({},u)).fill=xi(s)):!Fa(u.stroke)&&Fa(l)&&(o||(i=W({},i),u=W({},u)),u.stroke=xi(l)),i.style=u}}if(i&&null==i.z2){o||(i=W({},i));var c=t.z2EmphasisLift;i.z2=t.z2+(null!=c?c:10)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=j(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=W({},n),a=W({opacity:i?r:.1*o.opacity},a),n.style=a),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=W({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:9)}return n}(this,0,n)}return n}function Ka(t){t.stateProxy=$a;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=$a),n&&(n.stateProxy=$a)}function Qa(t,e){!os(t,e)&&!t.__highByOuter&&Ya(t,Ha)}function Ja(t,e){!os(t,e)&&!t.__highByOuter&&Ya(t,Ga)}function ts(t,e){t.__highByOuter|=1<<(e||0),Ya(t,Ha)}function es(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Ya(t,Ga)}function ns(t){Ya(t,Ua)}function is(t){Ya(t,ja)}function rs(t){Ya(t,Xa)}function os(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function as(t){var e=t.getModel(),n=[],i=[];e.eachComponent(function(e,r){var o=Aa(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse(function(t){Ua(t)}),a&&n.push(r)),o.isBlured=!1}),Y(i,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function ss(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&ns(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=r.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(t){var r=a===t,u=t.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!r||"coordinateSystem"===n&&!(u&&s?u===s:r)||"series"===e&&r)){if(i.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&r&&"self"===e||Wa(t)}),q(e))o(t.getData(),e);else if(at(e))for(var c=Q(e),h=0;h<c.length;h++)o(t.getData(c[h]),e[c[h]]);l.push(t),Aa(t).isBlured=!0}}),r.eachComponent(function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}})}}function ls(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){Aa(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(t){Wa(t)})}}}function us(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===Ta(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function cs(t){Y(t.getAllData(),function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,i)?is(e):rs(e)})})}function hs(t){var e=[];return t.eachSeries(function(t){Y(t.getAllData(),function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function ds(t,e,n,i){i?function(t){vs(t,!1)}(t):function(t,e,n){vs(t,!0),Ya(t,Ka),function(t,e,n){var i=Ta(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}(t,e,n)}(t,e,n)}var fs=["emphasis","blur","select"],ps={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function gs(t,e,n,i){n=n||"itemStyle";for(var r=0;r<fs.length;r++){var o=fs[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[ps[n]]()}}function vs(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function ms(t){return!(!t||!t.__highDownDispatcher)}function ys(t){var e=t.type;return e===Ba||e===za||e===Ea}function _s(t){var e=t.type;return e===La||e===Oa}var xs={};function bs(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=nt(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u<Ra.length;u++){var c=Ra[u],h=e[c];l[c]=ft(r?r.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,i)}return l}function ws(t,e,n,i){n=n||xs;for(var r=t instanceof Vo,o=!1,a=0;a<Pa.length;a++)if((d=e[Pa[a]])&&d.getShallow("show")){o=!0;break}var s=r?t:t.getTextContent();if(o){r||(s||(s=new Vo,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=bs(n,e),u=e.normal,c=!!u.getShallow("show"),h=Cs(u,i&&i.normal,n,!1,!r);for(h.text=l.normal,r||t.setTextConfig(Ms(u,n,!1)),a=0;a<Ra.length;a++){var d,f=Ra[a];if(d=e[f]){var p=s.ensureState(f),g=!!ft(d.getShallow("show"),c);g!==c&&(p.ignore=!g),p.style=Cs(d,i&&i[f],n,!0,!r),p.style.text=l[f],r||(t.ensureState(f).textConfig=Ms(d,n,!0))}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(h.x=s.style.x),null!=s.style.y&&(h.y=s.style.y),s.ignore=!c,s.useStyle(h),s.dirty(),n.enableTextSetter&&(As(s).setLabelText=function(t){var i=bs(n,e,t);!function(t,e){for(var n=0;n<Ra.length;n++){var i=Ra[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}(s,i)})}else s&&(s.ignore=!0);t.dirty()}function Ss(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<Ra.length;i++){var r=Ra[i];n[r]=t.getModel([r,e])}return n}function Cs(t,e,n,i,r){var o={};return function(t,e,n,i,r){n=n||xs;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||xs).rich;if(n){e=e||{};for(var i=Q(n),r=0;r<i.length;r++)e[i[r]]=1}t=t.parentModel}return e}(e);if(l){o={};var u="richInheritPlainLabel",c=ft(e.get(u),a?a.get(u):void 0);for(var h in l)if(l.hasOwnProperty(h)){var d=e.getModel(["rich",h]);Ds(o[h]={},d,s,e,c,n,i,r,!1,!0)}}o&&(t.rich=o);var f=e.get("overflow");f&&(t.overflow=f);var p=e.get("lineOverflow");p&&(t.lineOverflow=p);var g=t,v=e.get("minMargin");if(null!=v)v=ot(v)?v/2:0,g.margin=[v,v,v,v],g.__marginType=Rs.minMargin;else{var m=e.get("textMargin");null!=m&&(g.margin=vt(m),g.__marginType=Rs.textMargin)}Ds(t,e,s,null,null,n,i,r,!0,!1)}(o,t,n,i,r),e&&W(o,e),o}function Ms(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=ft(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(r.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(r.layoutRect=e.layoutRect),r}var Ts=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],ks=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Is=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ds(t,e,n,i,r,o,a,s,l,u){n=!a&&n||xs;var c=o&&o.inheritColor,h=e.getShallow("color"),d=e.getShallow("textBorderColor"),f=ft(e.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==d&&"auto"!==d||(d=c||null),s||(h=h||n.color,d=d||n.textBorderColor),null!=h&&(t.fill=h),null!=d&&(t.stroke=d);var p=ft(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(t.lineWidth=p);var g=ft(e.getShallow("textBorderType"),n.textBorderType);null!=g&&(t.lineDash=g);var v=ft(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=v&&(t.lineDashOffset=v),a||null!=f||u||(f=o&&o.defaultOpacity),null!=f&&(t.opacity=f),a||s||null==t.fill&&o.inheritColor&&(t.fill=o.inheritColor);for(var m=0;m<Ts.length;m++){var y=Ts[m];null!=(x=!1!==r&&i?pt(e.getShallow(y),i.getShallow(y),n[y]):ft(e.getShallow(y),n[y]))&&(t[y]=x)}for(m=0;m<ks.length;m++)y=ks[m],null!=(x=e.getShallow(y))&&(t[y]=x);if(null==t.verticalAlign){var _=e.getShallow("baseline");null!=_&&(t.verticalAlign=_)}if(!l||!o.disableBox){for(m=0;m<Is.length;m++){var x;y=Is[m],null!=(x=e.getShallow(y))&&(t[y]=x)}var b=e.getShallow("borderType");null!=b&&(t.borderDash=b),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}var As=_a(),Rs={minMargin:1,textMargin:2},Ps=["textStyle","color"],Ls=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Os=new Vo;const Bs=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Ps):null)},t.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},n=(e=this.ecModel)&&e.getModel("textStyle"),yt([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "));var t,e,n},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Ls.length;n++)e[Ls[n]]=this.getShallow(Ls[n]);return Os.useStyle(e),Os.update(),Os.getBoundingRect()},t}();var zs,Es,Ns=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Fs=Wt(Ns),Vs=function(){function t(){}return t.prototype.getLineStyle=function(t){return Fs(this,t)},t}(),Hs=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Gs=Wt(Hs),Ws=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Gs(this,t,e)},t}(),Us=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){G(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null;return new t(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(H(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!Lt.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();Et(Us),zs=Us,Es=["__\0is_clz",Ft++].join("_"),zs.prototype[Es]=!0,zs.isInstance=function(t){return!(!t||!t[Es])},X(Us,Vs),X(Us,Ws),X(Us,jt),X(Us,Bs);const js=Us;function Xs(t){return null==t?0:t.length||1}function qs(t){return t}var Ys=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||qs,this._newKeyGetter=i||qs,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=Xs(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],c=Xs(l),h=Xs(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=Xs(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=Xs(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}();const Zs=Ys;var $s=Mt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ks="original",Qs="arrayRows",Js="objectRows",tl="keyedColumns",el="typedArray",nl="unknown",il="column",rl="row",ol=_a();function al(t,e,n){var i={},r=sl(e);if(!r||!t)return i;var o,a,s=[],l=[],u=e.ecModel,c=ol(u).datasetMap,h=r.uid+"_"+n.seriesLayoutBy;Y(t=t.slice(),function(e,n){var r=at(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=p(r)),i[r.name]=[]});var d=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function f(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function p(t){var e=t.dimsDef;return e?e.length:1}return Y(t,function(t,e){var n=t.name,r=p(t);if(null==o){var a=d.valueWayDim;f(i[n],a,r),f(l,a,r),d.valueWayDim+=r}else o===e?(f(i[n],0,r),f(s,0,r)):(a=d.categoryWayDim,f(i[n],a,r),f(l,a,r),d.categoryWayDim+=r)}),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function sl(t){if(!t.get("data",!0))return Ca(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Sa).models[0]}function ll(t,e){return function(t,e,n,i,r,o){var a,s,l;if(lt(t))return 3;if(i){var u=i[o];at(u)?(s=u.name,l=u.type):it(u)&&(s=u)}if(null!=l)return"ordinal"===l?1:3;if(e===Qs){var c=t;if(n===rl){for(var h=c[o],d=0;d<(h||[]).length&&d<5;d++)if(null!=(a=y(h[r+d])))return a}else for(d=0;d<c.length&&d<5;d++){var f=c[r+d];if(f&&null!=(a=y(f[o])))return a}}else if(e===Js){var p=t;if(!s)return 3;for(d=0;d<p.length&&d<5;d++)if((v=p[d])&&null!=(a=y(v[s])))return a}else if(e===tl){if(!s)return 3;if(!(h=t[s])||lt(h))return 3;for(d=0;d<h.length&&d<5;d++)if(null!=(a=y(h[d])))return a}else if(e===Ks){var g=t;for(d=0;d<g.length&&d<5;d++){var v,m=ha(v=g[d]);if(!et(m))return 3;if(null!=(a=y(m[o])))return a}}function y(t){var e=it(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?2:3:e&&"-"!==t?1:void 0}return 3}(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}var ul=function(t){this.data=t.data||(t.sourceFormat===tl?{}:[]),this.sourceFormat=t.sourceFormat||nl,this.seriesLayoutBy=t.seriesLayoutBy||il,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];null==i.type&&1===ll(this,n)&&(i.type="ordinal")}};function cl(t){return t instanceof ul}function hl(t,e,n){n=n||fl(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:pl(r),startIndex:a,dimensionsDetectedCount:o};if(e===Qs){var s=t;"auto"===i||null==i?gl(function(t){null!=t&&"-"!==t&&(it(t)?null==a&&(a=1):a=0)},n,s,10):a=ot(i)?i:i?1:0,r||1!==a||(r=[],gl(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===rl?s.length:s[0]?s[0].length:null}else if(e===Js)r||(r=function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return Q(e)}(t));else if(e===tl)r||(r=[],Y(t,function(t,e){r.push(e)}));else if(e===Ks){var l=ha(t[0]);o=et(l)&&l.length||1}return{startIndex:a,dimensionsDefine:pl(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new ul({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:H(e)})}function dl(t){return new ul({data:t,sourceFormat:lt(t)?el:Ks})}function fl(t){var e=nl;if(lt(t))e=el;else if(et(t)){0===t.length&&(e=Qs);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(et(r)||lt(r)){e=Qs;break}if(at(r)){e=Js;break}}}}else if(at(t))for(var o in t)if(It(t,o)&&q(t[o])){e=tl;break}return e}function pl(t){if(t){var e=Mt();return Z(t,function(t,n){var i={name:(t=at(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=e.get(i.name);return r?i.name+="-"+r.count++:e.set(i.name,{count:1}),i})}}function gl(t,e,n,i){if(e===rl)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)t(o[r],r)}}function vl(t){var e=t.sourceFormat;return e===Js||e===tl}var ml,yl,_l,xl,bl,wl,Sl={},Cl="undefined"!=typeof console&&console.warn&&console.log;function Ml(t,e){!function(t,e,n){if(Cl){if(n){if(Sl[e])return;Sl[e]=!0}console[t]("[ECharts] "+e)}}("error",t,e)}function Tl(t){throw new Error(t)}var kl=function(){function t(t,e){var n=cl(t)?t:dl(t);this._source=n;var i=this._data=n.data,r=n.sourceFormat;n.seriesLayoutBy,r===el&&(this._offset=0,this._dimSize=e,this._data=i),wl(this,i,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;wl=function(t,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;if(W(t,bl[Nl(a,s)]),a===el)t.getItem=e,t.count=i,t.fillStorage=n;else{var c=Rl(a,s);t.getItem=J(c,null,r,l,u);var h=Ol(a,s);t.count=J(h,null,r,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],d=0;d<c;d++){var f=r[d*o+a];h[t+d]=f,f<l&&(l=f),f>u&&(u=f)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[Qs+"_"+il]={pure:!0,appendData:r},t[Qs+"_"+rl]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Js]={pure:!0,appendData:r},t[tl]={pure:!0,appendData:function(t){var e=this._data;Y(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},t[Ks]={appendData:r},t[el]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},bl=t}(),t}(),Il=function(t){et(t)||Ml("series.data or dataset.source must be an array.")},Dl=((ml={})[Qs+"_"+il]=Il,ml[Qs+"_"+rl]=Il,ml[Js]=Il,ml[tl]=function(t,e){for(var n=0;n<e.length;n++)null==e[n].name&&Ml("dimension name must not be null/undefined.")},ml[Ks]=Il,function(t,e,n,i){return t[i]}),Al=((yl={})[Qs+"_"+il]=function(t,e,n,i){return t[i+e]},yl[Qs+"_"+rl]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},yl[Js]=Dl,yl[tl]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name,l=null!=s?t[s]:null;o[a]=l?l[i]:null}return o},yl[Ks]=Dl,yl);function Rl(t,e){return Al[Nl(t,e)]}var Pl=function(t,e,n){return t.length},Ll=((_l={})[Qs+"_"+il]=function(t,e,n){return Math.max(0,t.length-e)},_l[Qs+"_"+rl]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},_l[Js]=Pl,_l[tl]=function(t,e,n){var i=n[0].name,r=null!=i?t[i]:null;return r?r.length:0},_l[Ks]=Pl,_l);function Ol(t,e){return Ll[Nl(t,e)]}var Bl=function(t,e,n){return t[e]},zl=((xl={})[Qs]=Bl,xl[Js]=function(t,e,n){return t[n]},xl[tl]=Bl,xl[Ks]=function(t,e,n){var i=ha(t);return i instanceof Array?i[e]:i},xl[el]=Bl,xl);function El(t){return zl[t]}function Nl(t,e){return t===Qs?t+"_"+e:t}function Fl(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return El(o)(i,a,s)}var l=i;return o===Ks&&(l=ha(i)),l}}}var Vl=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function Hl(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}const Gl=function(t){this.otherDims={},null!=t&&W(this,t)};function Wl(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||ot(t)||null==t||"-"===t||(t=+Jo(t)),null==t||""===t?NaN:Number(t))}Mt({number:function(t){return parseFloat(t)},time:function(t){return+Jo(t)},trim:function(t){return it(t)?yt(t):t}});var Ul,jl=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=ot(t)?t:na(t),i=ot(e)?e:na(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=it(t),s=it(e);a&&(n=s?t:0),s&&(i=a?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),Xl="undefined",ql=typeof Uint32Array===Xl?Array:Uint32Array,Yl=typeof Uint16Array===Xl?Array:Uint16Array,Zl=typeof Int32Array===Xl?Array:Int32Array,$l=typeof Float64Array===Xl?Array:Float64Array,Kl={float:$l,int:Zl,ordinal:Array,number:Array,time:$l};function Ql(t){return t>65535?ql:Yl}function Jl(){return[1/0,-1/0]}function tu(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function eu(t,e,n,i,r){var o=Kl[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}var nu=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Mt()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=Ul[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],vl(i),this._dimensions=Z(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new Kl[e||"float"](this._rawCount),this._rawExtent[r]=[1/0,-1/0],r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=[1/0,-1/0]);for(var s=r[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.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]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++)eu(n,l,(f=i[l]).type,s,!0);for(var u=[],c=a;c<s;c++)for(var h=c-a,d=0;d<r;d++){var f=i[d],p=Ul.arrayRows.call(this,t[h]||u,f.property,h,d);n[d][c]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Z(o,function(t){return t.property}),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=Jl()),eu(r,u,c.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var h=[],d=t;d<e;d++){h=i.getItem(d,h);for(var f=0;f<a;f++){var p=r[f],g=this._dimValueGetter(h,l[f],d,f);p[d]=g;var v=s[f];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.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},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.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(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.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 r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else for(t=new(n=Ql(this._rawCount))(this.count()),r=0;r<t.length;r++)t[r]=r;return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(Ql(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<i;c++){var h=void 0,d=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a)h=e(u[l][d],c);else{for(var f=0;f<a;f++)o[f]=u[t[f]][d];o[f]=c,h=e.apply(null,o)}h&&(r[s++]=d)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=Q(t),r=i.length;if(!r)return this;var o=e.count(),a=new(Ql(e._rawCount))(o),s=0,l=i[0],u=t[l][0],c=t[l][1],h=e._chunks,d=!1;if(!e._indices){var f=0;if(1===r){for(var p=h[i[0]],g=0;g<n;g++)((_=p[g])>=u&&_<=c||isNaN(_))&&(a[s++]=f),f++;d=!0}else if(2===r){p=h[i[0]];var v=h[i[1]],m=t[i[1]][0],y=t[i[1]][1];for(g=0;g<n;g++){var _=p[g],x=v[g];(_>=u&&_<=c||isNaN(_))&&(x>=m&&x<=y||isNaN(x))&&(a[s++]=f),f++}d=!0}}if(!d)if(1===r)for(g=0;g<o;g++){var b=e.getRawIndex(g);((_=h[i[0]][b])>=u&&_<=c||isNaN(_))&&(a[s++]=b)}else for(g=0;g<o;g++){for(var w=!0,S=(b=e.getRawIndex(g),0);S<r;S++){var C=i[S];((_=h[C][b])<t[C][0]||_>t[C][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=Jl();for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),d=0;d<o;d++)s[d]=i[e[d]][h];s[o]=c;var f=n&&n.apply(null,s);if(null!=f)for("object"!=typeof f&&(r[0]=f,f=r),u=0;u<f.length;u++){var p=e[u],g=f[u],v=l[p],m=i[p];m&&(m[h]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(Ql(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var d=1;d<s-1;d+=u){for(var f=Math.min(d+u,s-1),p=Math.min(d+2*u,s),g=(p+f)/2,v=0,m=f;m<p;m++){var y=a[M=this.getRawIndex(m)];isNaN(y)||(v+=y)}v/=p-f;var _=d,x=Math.min(d+u,s),b=d-1,w=a[c];n=-1,r=_;var S=-1,C=0;for(m=_;m<x;m++){var M;y=a[M=this.getRawIndex(m)],isNaN(y)?(C++,S<0&&(S=M)):(i=Math.abs((b-g)*(y-w)-(b-m)*(v-w)))>n&&(n=i,r=M)}C>0&&C<x-_&&(h[l++]=Math.min(S,r),r=Math.max(S,r)),h[l++]=r,c=r}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,r=Math.floor(1/e),o=i[t],a=this.count(),s=new(Ql(this._rawCount))(2*Math.ceil(a/r)),l=0,u=0;u<a;u+=r){var c=u,h=o[this.getRawIndex(c)],d=u,f=o[this.getRawIndex(d)],p=r;u+r>a&&(p=a-u);for(var g=0;g<p;g++){var v=o[this.getRawIndex(u+g)];v<h&&(h=v,c=u+g),v>f&&(f=v,d=u+g)}var m=this.getRawIndex(c),y=this.getRawIndex(d);c<d?(s[l++]=m,s[l++]=y):(s[l++]=y,s[l++]=m)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=r._rawExtent[t]=[1/0,-1/0],h=new(Ql(this._rawCount))(Math.ceil(u/s)),d=0,f=0;f<u;f+=s){s>u-f&&(s=u-f,a.length=s);for(var p=0;p<s;p++){var g=this.getRawIndex(f+p);a[p]=l[g]}var v=n(a),m=this.getRawIndex(Math.min(f+i(a,v)||0,u-1));l[m]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[d++]=m}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var o=(i=n)[0],a=i[1],s=0;s<r;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i=new t,r=this._chunks,o=e&&$(e,function(t,e){return t[e]=!0,t},{});if(o)for(var a=0;a<r.length;a++)i._chunks[a]=o[a]?tu(r[a]):r[a];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=H(this._extent),t._rawExtent=H(this._rawExtent)},t.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},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return Wl(t[i],this._dimensions[i])}Ul={arrayRows:t,objectRows:function(t,e,n,i){return Wl(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return Wl(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}();const iu=nu;var ru=_a(),ou={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},au=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=uu(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return ft(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=vl(this.source),n=!cu(t),i="",r=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=ou[l]||"f",u&&(i+=u.uid),i+="$"}var d=this.source;return{dimensions:r,hash:[d.seriesLayoutBy,d.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function su(t){return t instanceof au}function lu(t){for(var e=Mt(),n=0;n<(t||[]).length;n++){var i=t[n],r=at(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function uu(t){var e=ru(t);return e.dimNameMap||(e.dimNameMap=lu(t.dimensionsDefine))}function cu(t){return t>30}var hu,du,fu,pu,gu,vu,mu,yu=at,_u=Z,xu="undefined"==typeof Int32Array?Array:Int32Array,bu=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],wu=["_approximateExtent"],Su=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i=!1;su(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=it(c)?new Gl({name:c}):c instanceof Gl?c:new Gl(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var f=h.otherDims=h.otherDims||{};o.push(d),r[d]=h,null!=l[d]&&(s=!0),h.createInvertedIndices&&(a[d]=[]);var p=u;ot(h.storeDimIndex)&&(p=h.storeDimIndex),0===f.itemName&&(this._nameDimIdx=p),0===f.itemId&&(this._idDimIdx=p),i&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=Mt();Y(o,function(t){g.set(r[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(ot(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r=this;if(t instanceof iu&&(i=t),!i){var o=this.dimensions,a=cl(t)||q(t)?new kl(t,o.length):t;i=new iu;var s=_u(o,function(t){return{type:r._dimInfos[t].type,property:t}});i.initData(a,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function(t,e){var n={},i=n.encode={},r=Mt(),o=[],a=[],s={};Y(t.dimensions,function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){var c=l.coordDimIndex;Hl(i,u)[c]=e,l.isExtraCoord||(r.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),Hl(s,u)[c]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}$s.each(function(t,e){var n=Hl(i,e),r=l.otherDims[e];null!=r&&!1!==r&&(n[r]=l.name)})});var l=[],u={};r.each(function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Z(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(o=c.slice());var h=i.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new Vl(s,e),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&mu(this,a)}},t.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)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==el&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===Ks&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&da(s)&&(this.hasItemOption=!0),s){var l=s.name;null==i[a]&&null!=l&&(i[a]=ga(l,null));var u=s.id;null==r[a]&&null!=u&&(r[a]=ga(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)mu(this,a);hu(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){yu(t)?W(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=fu(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return du(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return et(t)?i.getValues(_u(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},t.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},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n&&n[e];return null==i||isNaN(i)?-1:i},t.prototype.each=function(t,e,n){nt(t)&&(n=e,e=t,t=[]);var i=n||this,r=_u(pu(t),this._getStoreDimIndex,this);this._store.each(r,i?J(e,i):e)},t.prototype.filterSelf=function(t,e,n){nt(t)&&(n=e,e=t,t=[]);var i=n||this,r=_u(pu(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?J(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=Q(t),r=[];return Y(i,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){nt(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},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=_u(pu(t),this._getStoreDimIndex,this),a=vu(this);return a._store=this._store.map(o,r?J(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=_u(pu(t),this._getStoreDimIndex,this);this._store.modify(o,r?J(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=vu(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.minmaxDownSample=function(t,e){var n=vu(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=vu(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new js(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new Zs(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return du(t,e)},function(t){return du(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},yu(t)?W(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(et(r=this.getVisual(e))?r=r.slice():yu(r)&&(r=W({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,yu(e)?W(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){yu(t)?W(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?W(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){!function(t,e,n,i){if(i){var r=Ta(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,r.ssrType="chart","group"===i.type&&i.traverse(function(i){var r=Ta(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e,r.ssrType="chart"})}}(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){Y(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:_u(this.dimensions,this._getDimInfo,this),this.hostModel)),gu(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];nt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(gt(arguments)))})},t.internalField=(hu=function(t){var e=t._invertedIndicesMap;Y(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new xu(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}})},fu=function(t,e,n){return ga(t._getCategory(e,n),null)},du=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=fu(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},pu=function(t){return et(t)||(t=null!=t?[t]:[]),t},vu=function(e){var n=new t(e._schema?e._schema:_u(e.dimensions,e._getDimInfo,e),e.hostModel);return gu(n,e),n},gu=function(t,e){Y(bu.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,Y(wu,function(n){t[n]=H(e[n])}),t._calculationInfo=W({},e._calculationInfo)},void(mu=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=fu(t,r,e)),null==s&&null!=o&&(i[e]=s=fu(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}})),t}();const Cu=Su;function Mu(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var Tu={},ku={},Iu=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(t,e){function n(n,i){var r=[];return Y(n,function(n,i){var o=n.create(t,e);r=r.concat(o||[])}),r}this._nonSeriesBoxMasterList=n(Tu),this._normalMasterList=n(ku)},t.prototype.update=function(t,e){Y(this._normalMasterList,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(t,e){"matrix"!==t&&"calendar"!==t?ku[t]=e:Tu[t]=e},t.get=function(t){return ku[t]||Tu[t]},t}(),Du=Mt();const Au=Iu;var Ru=function(t){this.coordSysDims=[],this.axisMap=Mt(),this.categoryAxisMap=Mt(),this.coordSysName=t},Pu={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",Sa).models[0],o=t.getReferringComponents("yAxis",Sa).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),Lu(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),Lu(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",Sa).models[0];e.coordSysDims=["single"],n.set("single",r),Lu(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",Sa).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Lu(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),Lu(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Y(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),Lu(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})},matrix:function(t,e,n,i){var r=t.getReferringComponents("matrix",Sa).models[0];e.coordSysDims=["x","y"];var o=r.getDimensionModel("x"),a=r.getDimensionModel("y");n.set("x",o),n.set("y",a),i.set("x",o),i.set("y",a)}};function Lu(t){return"category"===t.get("type")}function Ou(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}const Bu=function(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=dl(t)):o=(i=r.getSource()).sourceFormat===Ks;var a=function(t){var e=t.get("coordinateSystem"),n=new Ru(e),i=Pu[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,i=t.get("coordinateSystem"),r=Au.get(i);return e&&e.coordSysDims&&(n=Z(e.coordSysDims,function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"}(r)}return n})),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=nt(l)?l:l?tt(al,s,e):null,c=function(t,e){cl(t)||(t=dl(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=Mt(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return Y(e,function(t){var e;at(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&cu(a),l=i===t.dimensionsDefine,u=l?uu(t):lu(i),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=Mt(c),d=new Zl(a),f=0;f<d.length;f++)d[f]=-1;function p(t){var e=d[t];if(e<0){var n=i[t],r=at(n)?n:{name:n},a=new Gl,s=r.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var l=o.length;return d[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(f=0;f<a;f++)p(f);h.each(function(t,e){var n=la(t).slice();if(1===n.length&&!it(n[0])&&n[0]<0)h.set(e,!1);else{var i=h.set(e,[]);Y(n,function(t,n){var r=it(t)?u.get(t):t;null!=r&&r<a&&(i[n]=r,v(p(r),e,n))})}});var g=0;function v(t,e,n){null!=$s.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,r.set(e,!0))}Y(n,function(t){var e,n,i,r;if(it(t))e=t,r={};else{e=(r=t).name;var o=r.ordinalMeta;r.ordinalMeta=null,(r=W({},r)).ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=h.get(e);if(!1!==s){if(!(s=la(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=p(g).coordDim;)g++;g<a&&s.push(g++)}Y(s,function(t,o){var a=p(t);if(l&&null!=r.type&&(a.type=r.type),v(U(a,r),e,o),null==a.name&&n){var s=n[o];!at(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&U(a.otherDims,i)})}});var m=e.generateCoord,y=e.generateCoordCount,_=null!=y;y=m?y||1:0;var x=m||"value";function b(t){null==t.name&&(t.name=t.coordDim)}if(s)Y(o,function(t){b(t)}),o.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var w=0;w<a;w++){var S=p(w);null==S.coordDim&&(S.coordDim=Mu(x,r,_),S.coordDimIndex=0,(!m||y<=0)&&(S.isExtraCoord=!0),y--),b(S),null!=S.type||1!==ll(t,w)&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(t){for(var e=Mt(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(o),new au({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=function(t,e,n){var i,r;return n&&Y(t,function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)}),r||null==i||(t[i].otherDims.itemName=0),i}(c.dimensions,n.createInvertedIndices,a),d=o?null:r.getSharedDataStore(c),f=function(t,e,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!su(t.schema)}(e)?(r=e.schema,i=r.dimensions,o=e.store):i=e;var l,u,c,h,d=!(!t||!t.get("stack"));if(Y(i,function(t,e){it(t)&&(i[e]=t={name:t}),d&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var f=u.coordDim,p=u.type,g=0;Y(i,function(t){t.coordDim===f&&g++});var v={name:c,coordDim:f,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,p),m.storeDimIndex=o.ensureCalculationDimension(c,p)),r.appendCalculationDimension(v),r.appendCalculationDimension(m)):(i.push(v),i.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}(e,{schema:c,store:d}),p=new Cu(c,e);p.setCalculationInfo(f);var g=null!=h&&function(t){if(t.sourceFormat===Ks)return!et(ha(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[])))}(i)?function(t,e,n,i){return i===h?n:this.defaultDimValueGetter(t,e,n,i)}:null;return p.hasItemOption=!1,p.initData(o?i:d,null,g),p};var zu=Math.round(10*Math.random());function Eu(t){return[t||"",zu++].join("_")}var Nu=Math.log(2);function Fu(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/Nu);return t[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var h=0,d=0,f=0;d<s;d++){var p=1<<d;p&r||(h+=(f%2?-1:1)*t[n][d]*Fu(t,e-1,c,u,r|p,o),f++)}return o[a]=h,h}function Vu(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=Fu(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Fu(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var Hu="___zrEVENTSAVED",Gu=[];function Wu(t,e,n,i,r){if(e.getBoundingClientRect&&Lt.domSupported&&!Uu(e)){var o=e[Hu]||(e[Hu]={}),a=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return e.clearMarkers=function(){Y(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})},n}(e,o),s=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,d=c.left,f=c.top;a.push(d,f),l=l&&o&&d===o[h]&&f===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?Vu(s,a):Vu(a,s))}(a,o,r);if(s)return s(t,n,i),!0}return!1}function Uu(t){return"CANVAS"===t.nodeName.toUpperCase()}var ju=/([&<>"'])/g,Xu={"&":"&","<":"<",">":">",'"':""","'":"'"};function qu(t){return null==t?"":(t+"").replace(ju,function(t,e){return Xu[e]})}var Yu="ZH",Zu="EN",$u=Zu,Ku={},Qu={},Ju=Lt.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||$u).toUpperCase().indexOf(Yu)>-1?Yu:$u;function tc(t,e){t=t.toUpperCase(),Qu[t]=new js(e),Ku[t]=e}tc(Zu,{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:". "}}}}),tc(Yu,{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:""}}}});function ec(){return null}var nc=36e5,ic=864e5,rc=31536e6,oc={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},ac={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},sc="{yyyy}-{MM}-{dd}",lc={year:"{yyyy}",month:"{yyyy}-{MM}",day:sc,hour:sc+" "+ac.hour,minute:sc+" "+ac.minute,second:sc+" "+ac.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},uc=["year","month","day","hour","minute","second","millisecond"],cc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function hc(t,e){return"0000".substr(0,e-(t+="").length)+t}function dc(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function fc(t){return t===dc(t)}function pc(t,e,n,i){var r=Jo(t),o=r[mc(n)](),a=r[yc(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[_c(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[xc(n)](),h=(c-1)%12+1,d=r[bc(n)](),f=r[wc(n)](),p=r[Sc(n)](),g=c>=12?"pm":"am",v=g.toUpperCase(),m=i instanceof js?i:function(t){return Qu[t]}(i||Ju)||Qu[$u],y=m.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),b=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,hc(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,hc(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,hc(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,hc(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,hc(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,hc(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,hc(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,hc(p,3)).replace(/{S}/g,p+"")}function gc(t,e){var n=Jo(t),i=n[yc(e)]()+1,r=n[_c(e)](),o=n[xc(e)](),a=n[bc(e)](),s=n[wc(e)](),l=0===n[Sc(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,d=h&&1===r;return d&&1===i?"year":d?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function vc(t,e,n){switch(e){case"year":t[Mc(n)](0);case"month":t[Tc(n)](1);case"day":t[kc(n)](0);case"hour":t[Ic(n)](0);case"minute":t[Dc(n)](0);case"second":t[Ac(n)](0)}return t}function mc(t){return t?"getUTCFullYear":"getFullYear"}function yc(t){return t?"getUTCMonth":"getMonth"}function _c(t){return t?"getUTCDate":"getDate"}function xc(t){return t?"getUTCHours":"getHours"}function bc(t){return t?"getUTCMinutes":"getMinutes"}function wc(t){return t?"getUTCSeconds":"getSeconds"}function Sc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Cc(t){return t?"setUTCFullYear":"setFullYear"}function Mc(t){return t?"setUTCMonth":"setMonth"}function Tc(t){return t?"setUTCDate":"setDate"}function kc(t){return t?"setUTCHours":"setHours"}function Ic(t){return t?"setUTCMinutes":"setMinutes"}function Dc(t){return t?"setUTCSeconds":"setSeconds"}function Ac(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Rc(t){if(isNaN(na(t)))return it(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Pc(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Lc=vt;function Oc(t,e,n){function i(t){return t&&yt(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Jo(t):t;if(!isNaN(+s))return pc(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return rt(t)?i(t):ot(t)&&r(t)?t+"":"-";var l=na(t);return r(l)?Rc(l):rt(t)?i(t):"boolean"==typeof t?t+"":"-"}var Bc=["a","b","c","d","e","f","g"],zc=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Ec(t,e,n){et(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=Bc[o];t=t.replace(zc(a),zc(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(zc(Bc[l],s),n?qu(u):u)}return t}function Nc(t,e){return e=e||"transparent",it(t)?t:at(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Fc(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Vc=Y,Hc=["left","right","top","bottom","width","height"],Gc=[["width","left","right"],["height","top","bottom"]];function Wc(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var c,h,d=l.getBoundingRect(),f=e.childAt(u+1),p=f&&f.getBoundingRect();if("horizontal"===t){var g=d.width+(p?-p.x+d.x:0);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(p?-p.y+d.y:0);(h=a+v)>r||l.newline?(o+=s+n,a=0,h=v,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)})}function Uc(t,e,n){n=Lc(n||0);var i=e.width,r=e.height,o=jo(t.left,i),a=jo(t.top,r),s=jo(t.right,i),l=jo(t.bottom,r),u=jo(t.width,i),c=jo(t.height,r),h=n[2]+n[0],d=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(c)&&(c=r-l-h-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=i-s-u-d),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-d}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var p=new De((e.x||0)+o+n[3],(e.y||0)+a+n[0],u,c);return p.margin=n,p}tt(Wc,"vertical"),tt(Wc,"horizontal");var jc=1,Xc=2;function qc(t,e,n){var i,r,o,a,s=t.boxCoordinateSystem;if(s){var l=function(t){var e=t.getShallow("coord",!0),n=1;if(null==e){var i=Du.get(t.type);i&&i.getCoord2&&(n=2,e=i.getCoord2(t))}return{coord:e,from:n}}(t),u=l.coord,c=l.from;if(s.dataToLayout){o=jc,a=c;var h=s.dataToLayout(u);i=h.contentRect||h.rect}else n&&n.enableLayoutOnlyByCenter&&s.dataToPoint&&(o=Xc,a=c,r=s.dataToPoint(u))}return null==o&&(o=jc),o===jc&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),r=[i.x+i.width/2,i.y+i.height/2]),{type:o,refContainer:i,refPoint:r,boxCoordFrom:a}}function Yc(t){var e=t.layoutMode||t.constructor.layoutMode;return at(e)?e:e?{type:e}:null}function Zc(t,e,n){var i=n&&n.ignoreSize;!et(i)&&(i=[i,i]);var r=a(Gc[0],0),o=a(Gc[1],1);function a(n,r){var o={},a=0,l={},u=0;if(Vc(n,function(e){l[e]=t[e]}),Vc(n,function(t){It(e,t)&&(o[t]=l[t]=e[t]),s(o,t)&&a++,s(l,t)&&u++}),i[r])return s(e,n[1])?l[n[2]]=null:s(e,n[2])&&(l[n[1]]=null),l;if(2!==u&&a){if(a>=2)return o;for(var c=0;c<n.length;c++){var h=n[c];if(!It(o,h)&&It(t,h)){o[h]=t[h];break}}return o}return l}function s(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,n){Vc(t,function(t){e[t]=n[t]})}l(Gc[0],t,r),l(Gc[1],t,o)}function $c(t){return function(t,e){return e&&t&&Vc(Hc,function(n){It(e,n)&&(t[n]=e[n])}),t}({},t)}var Kc=_a(),Qc=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=Eu("ec_cpt_model"),r}var n;return b(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Yc(this),i=n?$c(t):{};G(t,e.getTheme().get(this.mainType)),G(t,this.getDefaultOption()),n&&Zc(t,i,n)},e.prototype.mergeOption=function(t,e){G(this.option,t,!0);var n=Yc(this);n&&Zc(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t[Bt])}(t))return t.defaultOption;var e=Kc(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=G(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Ca(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){return e=!1,{left:(t=this).getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)};var t,e},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(js);Nt(Qc,js),Gt(Qc),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=zt(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=zt(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(Qc),function(){function t(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}Qc.topologicalTravel=function(e,n,i,r){if(e.length){var o=function(e){var n={},i=[];return Y(e,function(r){var o,a,s=t(n,r),l=function(t,e){var n=[];return Y(t,function(t){j(e,t)>=0&&n.push(t)}),n}(s.originalDeps=(o=r,a=[],Y(Qc.getClassesByMainType(o),function(t){a=a.concat(t.dependencies||t.prototype.dependencies||[])}),a=Z(a,function(t){return zt(t).main}),"dataset"!==o&&j(a,"dataset")<=0&&a.unshift("dataset"),a),e);s.entryCount=l.length,0===s.entryCount&&i.push(r),Y(l,function(e){j(s.predecessor,e)<0&&s.predecessor.push(e);var i=t(n,e);j(i.successor,e)<0&&i.successor.push(r)})}),{graph:n,noEntryList:i}}(n),a=o.graph,s=o.noEntryList,l={};for(Y(e,function(t){l[t]=!0});s.length;){var u=s.pop(),c=a[u],h=!!l[u];h&&(i.call(r,u,c.originalDeps.slice()),delete l[u]),Y(c.successor,h?f:d)}Y(l,function(){throw new Error("")})}function d(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function f(t){l[t]=!0,d(t)}}}();const Jc=Qc;var th=_a(),eh=(_a(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=la(this.get("color",!0)),r=this.get("colorLayer",!0);return function(t,e,n,i,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n;if((c=c||n)&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}(this,th,i,r,t,e,n)},t.prototype.clearColorPalette=function(){!function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,th)},t}());var nh=/\{@(.+?)\}/g,ih=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);return o&&(s.value=o.interpolatedValue),null!=i&&et(s.value)&&(s.value=s.value[i]),r||(r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),nt(r)?(s.status=e,s.dimensionIndex=i,r(s)):it(r)?Ec(r,s).replace(nh,function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=Fl(a,t,r);if(o&&et(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return Fl(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function rh(t){var e,n;return at(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function oh(t){return new ah(t)}var ah=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(o||d<f)){var p=this._progress;if(et(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],d,f,l,u);else this._doProgress(p,d,f,l,u)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){sh.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:sh.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),et(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),sh=function(){var t,e,n,i,r,o={reset:function(l,u,c,h){e=l,t=u,n=c,i=h,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}(),lh=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Wl(t,e)},t}();function uh(t){return gh(t.sourceFormat)||Tl(""),t.data}function ch(t){var e=t.sourceFormat,n=t.data;if(gh(e)||Tl(""),e===Qs){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===Js){for(i=[],r=0,o=n.length;r<o;r++)i.push(W({},n[r]));return i}}function hh(t,e,n){if(null!=n)return ot(n)||!isNaN(n)&&!It(e,n)?t[n]:It(e,n)?e[n]:void 0}function dh(t){return H(t)}var fh=Mt();function ph(t,e,n,i){e.length||Tl(""),at(t)||Tl("");var r=t.type,o=fh.get(r);o||Tl("");var a=Z(e,function(t){return function(t,e){var n=new lh,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==il&&Tl("");var a=[],s={},l=t.dimensionsDefine;if(l)Y(l,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};a.push(i),null!=n&&(It(s,n)&&Tl(""),s[n]=i)});else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var c=Rl(r,il);e.__isBuiltIn&&(n.getRawDataItem=function(t){return c(i,o,a,t)},n.getRawData=J(uh,null,t)),n.cloneRawData=J(ch,null,t);var h=Ol(r,il);n.count=J(h,null,i,o,a);var d=El(r);n.retrieveValue=function(t,e){var n=c(i,o,a,t);return f(n,e)};var f=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];return n?d(t,e,n.name):void 0}};return n.getDimensionInfo=J(hh,null,a,s),n.cloneAllDimensionInfo=J(dh,null,a),n}(t,o)});return Z(la(o.transform({upstream:a[0],upstreamList:a,config:H(t.config)})),function(t,n){var i;at(t)||Tl(""),t.data||Tl(""),gh(fl(t.data))||Tl("");var r=e[0];if(r&&0===n&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),i={seriesLayoutBy:il,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:il,sourceHeader:0,dimensions:t.dimensions};return hl(t.data,i,null)})}function gh(t){return t===Qs||t===Js}var vh=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(mh(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=lt(a=o.get("data",!0))?el:Ks,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=ft(c.seriesLayoutBy,h.seriesLayoutBy)||null,f=ft(c.sourceHeader,h.sourceHeader),p=ft(c.dimensions,h.dimensions);t=d!==h.seriesLayoutBy||!!f!=!!h.sourceHeader||p?[hl(a,{seriesLayoutBy:d,sourceHeader:f,dimensions:p},s)]:[]}else{var g=n;if(r){var v=this._applyTransform(i);t=v.sourceList,e=v.upstreamSignList}else t=[hl(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);null!=r&&1!==t.length&&yh("");var o,a=[],s=[];return Y(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||yh(""),a.push(e),s.push(t._getVersionSign())}),i?e=function(t,e){var n=la(t),i=n.length;i||Tl("");for(var r=0,o=i;r<o;r++)e=ph(n[r],e),r!==o-1&&(e.length=Math.max(e.length,1));return e}(i,a,n.componentIndex):null!=r&&(e=[(o=a[0],new ul({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:H(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:s}},t.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}},t.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},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];mh(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new iu).initData(new kl(e,t.length),t),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(mh(t)){var e=sl(t);return e?[e.getSourceManager()]:[]}return Z(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Ca(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Sa).models:[]}(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(mh(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function mh(t){return"series"===t.mainType}function yh(t){throw new Error(t)}var _h={color:{},darkColor:{},size:{}},xh=_h.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var bh in W(xh,{primary:xh.neutral80,secondary:xh.neutral70,tertiary:xh.neutral60,quaternary:xh.neutral50,disabled:xh.neutral20,border:xh.neutral30,borderTint:xh.neutral20,borderShade:xh.neutral40,background:xh.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:xh.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:xh.neutral70,axisLineTint:xh.neutral40,axisTick:xh.neutral70,axisTickMinor:xh.neutral60,axisLabel:xh.neutral70,axisSplitLine:xh.neutral15,axisMinorSplitLine:xh.neutral05}),xh)if(xh.hasOwnProperty(bh)){var wh=xh[bh];"theme"===bh?_h.darkColor.theme=xh.theme.slice():"highlight"===bh?_h.darkColor.highlight="rgba(255,231,130,0.4)":0===bh.indexOf("accent")?_h.darkColor[bh]=vi(wh,null,function(t){return.5*t},function(t){return Math.min(1,1.3-t)}):_h.darkColor[bh]=vi(wh,null,function(t){return.9*t},function(t){return 1-Math.pow(t,1.5)})}_h.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const Sh=_h;function Ch(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+qu(e+"")+"px"}function Mh(t,e){var n=t.color||Sh.color.tertiary,i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||Sh.color.secondary,a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+qu(i+"")+"px;color:"+qu(n)+";font-weight:"+qu(r+""),valueStyle:"font-size:"+qu(a+"")+"px;color:"+qu(o)+";font-weight:"+qu(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Th=[0,10,20,30],kh=["","\n","\n\n","\n\n\n"];function Ih(t,e){return e.type=t,e}function Dh(t){return"section"===t.type}function Ah(t){return Dh(t)?Ph:Lh}function Rh(t){if(Dh(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return Y(t.blocks,function(t){var n=Rh(t);n>=e&&(e=n+ +(i&&(!n||Dh(t)&&!t.noHeader)))}),e}return 0}function Ph(t,e,n,i){var r,o=e.noHeader,a=(r=Rh(e),{html:Th[r],richText:kh[r]}),s=[],l=e.blocks||[];mt(!l||et(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(It(c,u)){var h=new jl(c[u],null);l.sort(function(t,e){return h.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===u&&l.reverse()}Y(l,function(n,r){var o=e.valueFormatter,l=Ah(n)(o?W(W({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)});var d="richText"===t.renderMode?s.join(a.richText):Bh(i,s.join(""),o?n:a.html);if(o)return d;var f=Oc(e.header,"ordinal",t.useUTC),p=Mh(i,t.renderMode).nameStyle,g=Ch(i);return"richText"===t.renderMode?zh(t,f,p)+a.richText+d:Bh(i,'<div style="'+p+";"+g+';">'+qu(f)+"</div>"+d,n)}function Lh(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return Z(t=et(t)?t:[t],function(t,e){return Oc(t,et(f)?f[e]:f,u)})};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Sh.color.secondary,r),d=o?"":Oc(l,"ordinal",u),f=e.valueType,p=a?[]:c(e.value,e.dataIndex),g=!s||!o,v=!s&&o,m=Mh(i,r),y=m.nameStyle,_=m.valueStyle;return"richText"===r?(s?"":h)+(o?"":zh(t,d,y))+(a?"":function(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(et(e)?e.join(" "):e,o)}(t,p,g,v,_)):Bh(i,(s?"":h)+(o?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+qu(t)+"</span>"}(d,!s,y))+(a?"":function(t,e,n,i){return'<span style="'+(e?"float:right;margin-left:"+(n?"10px":"20px"):"")+";"+i+'">'+Z(t=et(t)?t:[t],function(t){return qu(t)}).join(" ")+"</span>"}(p,g,v,_)),n)}}function Oh(t,e,n,i,r,o){if(t)return Ah(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Bh(t,e,n){return'<div style="margin: '+n+"px 0 0;"+Ch(t)+';">'+e+'<div style="clear:both"></div></div>'}function zh(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Eh(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Nh=function(){function t(){this.richTextStyles={},this._nextStyleNameId=ia()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=function(t,e){var n=it(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+qu(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+qu(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}({color:e,type:t,renderMode:n,markerId:i});return it(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};et(e)?Y(e,function(t){return W(n,t)}):W(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();var Fh=_a();function Vh(t,e){return t.getName(e)||t.getId(e)}var Hh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var n;return b(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=oh({count:Wh,reset:Uh}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Fh(this).sourceManager=new vh(this)).prepareSource();var i=this.getInitialData(t,n);Xh(i,this),this.dataTask.context.data=i,Fh(this).dataBeforeProcessed=i,Gh(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Yc(this),i=n?$c(t):{},r=this.subType;Jc.hasClass(r)&&(r+="Series"),G(t,e.getTheme().get(this.subType)),G(t,this.getDefaultOption()),ua(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Zc(t,i,n)},e.prototype.mergeOption=function(t,e){t=G(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Yc(this);n&&Zc(this.option,t,n);var i=Fh(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);Xh(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Fh(this).dataBeforeProcessed=r,Gh(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!lt(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&ua(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=Yh(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return Fh(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=Yh(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}Fh(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Mt(t)},e.prototype.getSourceManager=function(){return Fh(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Fh(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,e,n,i){var r=this.getData(),o=this.coordinateSystem,a=o&&o.getAxis(t);if(!o||!a)return[];var s=a.dataToCoord(n);null==i&&(i=1/0);var l=[],u=1/0,c=-1,h=0;return r.each(e,function(t,e){var n=a.dataToCoord(t),r=s-n,o=Math.abs(r);o<=i&&((o<u||o===u&&r>=0&&c<0)&&(u=o,c=r,h=0),r===c&&(l[h++]=e))}),l.length=h,l},e.prototype.formatTooltip=function(t,e,n){return function(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=et(h),f=function(t,e){return Nc(t.getData().getItemVisual(e,"style")[t.visualDrawType])}(o,a);if(c>1||d&&!c){var p=function(t,e,n,i,r){var o=e.getData(),a=$(t,function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName},!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(Ih("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?Y(i,function(t){c(Fl(o,n,t),t)}):Y(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,f);e=p.inlineValues,n=p.inlineValueTypes,i=p.blocks,r=p.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=Fl(l,a,u[0]),n=g.type}else r=e=d?h[0]:h;var v=va(o),m=v&&o.name||"",y=l.getName(a),_=s?m:y;return Ih("section",{header:m,noHeader:s||!v,sortParam:r,blocks:[Ih("nameValue",{markerType:"item",markerColor:f,name:_,noName:!yt(_),value:e,valueType:n,dataIndex:a})].concat(i||[])})}({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Lt.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=eh.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=Vh(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=Q(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[Vh(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){at(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var u=e[l];s[h=Vh(t,u)]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=Vh(t,c);r.selectedMap=((n={})[h]=!0,n),this._selectedDataIndicesMap=((i={})[h]=t.getRawIndex(c),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return Jc.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(Jc);function Gh(t){var e=t.name;va(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return Y(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}(t)||e)}function Wh(t){return t.model.getRawData().count()}function Uh(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),jh}function jh(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Xh(t,e){Y(function(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,tt(qh,e))})}function qh(t,e){var n=Yh(t);return n&&n.setOutputEnd((e||this).count()),e}function Yh(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}X(Hh,ih),X(Hh,eh),Nt(Hh,Jc);const Zh=Hh;var $h={},Kh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Qh=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Kh},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=_o($h,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(uo);Qh.prototype.type="line";const Jh=Qh;var td=function(){this.cx=0,this.cy=0,this.r=0},ed=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultShape=function(){return new td},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(uo);ed.prototype.type="circle";const nd=ed;var id=Hr.CMD,rd=[[],[],[]],od=Math.sqrt,ad=Math.atan2,sd=Math.sqrt,ld=Math.sin,ud=Math.cos,cd=Math.PI;function hd(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function dd(t,e){return(t[0]*e[0]+t[1]*e[1])/(hd(t)*hd(e))}function fd(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(dd(t,e))}function pd(t,e,n,i,r,o,a,s,l,u,c){var h=l*(cd/180),d=ud(h)*(t-n)/2+ld(h)*(e-i)/2,f=-1*ld(h)*(t-n)/2+ud(h)*(e-i)/2,p=d*d/(a*a)+f*f/(s*s);p>1&&(a*=sd(p),s*=sd(p));var g=(r===o?-1:1)*sd((a*a*(s*s)-a*a*(f*f)-s*s*(d*d))/(a*a*(f*f)+s*s*(d*d)))||0,v=g*a*f/s,m=g*-s*d/a,y=(t+n)/2+ud(h)*v-ld(h)*m,_=(e+i)/2+ld(h)*v+ud(h)*m,x=fd([1,0],[(d-v)/a,(f-m)/s]),b=[(d-v)/a,(f-m)/s],w=[(-1*d-v)/a,(-1*f-m)/s],S=fd(b,w);if(dd(b,w)<=-1&&(S=cd),dd(b,w)>=1&&(S=0),S<0){var C=Math.round(S/cd*1e6)/1e6;S=2*cd+C%2*cd}c.addData(u,y,_,a,s,x,S,h,o)}var gd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,vd=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,md=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qt(e,t),e.prototype.applyTransform=function(t){},e}(uo);function yd(t){return null!=t.setData}function _d(t,e){var n=function(t){var e=new Hr;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=Hr.CMD,l=t.match(gd);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,f=c.match(vd)||[],p=f.length,g=0;g<p;g++)f[g]=parseFloat(f[g]);for(var v=0;v<p;){var m=void 0,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,C=i,M=r,T=void 0,k=void 0;switch(h){case"l":i+=f[v++],r+=f[v++],d=s.L,e.addData(d,i,r);break;case"L":i=f[v++],r=f[v++],d=s.L,e.addData(d,i,r);break;case"m":i+=f[v++],r+=f[v++],d=s.M,e.addData(d,i,r),o=i,a=r,h="l";break;case"M":i=f[v++],r=f[v++],d=s.M,e.addData(d,i,r),o=i,a=r,h="L";break;case"h":i+=f[v++],d=s.L,e.addData(d,i,r);break;case"H":i=f[v++],d=s.L,e.addData(d,i,r);break;case"v":r+=f[v++],d=s.L,e.addData(d,i,r);break;case"V":r=f[v++],d=s.L,e.addData(d,i,r);break;case"C":d=s.C,e.addData(d,f[v++],f[v++],f[v++],f[v++],f[v++],f[v++]),i=f[v-2],r=f[v-1];break;case"c":d=s.C,e.addData(d,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r),i+=f[v-2],r+=f[v-1];break;case"S":m=i,y=r,T=e.len(),k=e.data,n===s.C&&(m+=i-k[T-4],y+=r-k[T-3]),d=s.C,C=f[v++],M=f[v++],i=f[v++],r=f[v++],e.addData(d,m,y,C,M,i,r);break;case"s":m=i,y=r,T=e.len(),k=e.data,n===s.C&&(m+=i-k[T-4],y+=r-k[T-3]),d=s.C,C=i+f[v++],M=r+f[v++],i+=f[v++],r+=f[v++],e.addData(d,m,y,C,M,i,r);break;case"Q":C=f[v++],M=f[v++],i=f[v++],r=f[v++],d=s.Q,e.addData(d,C,M,i,r);break;case"q":C=f[v++]+i,M=f[v++]+r,i+=f[v++],r+=f[v++],d=s.Q,e.addData(d,C,M,i,r);break;case"T":m=i,y=r,T=e.len(),k=e.data,n===s.Q&&(m+=i-k[T-4],y+=r-k[T-3]),i=f[v++],r=f[v++],d=s.Q,e.addData(d,m,y,i,r);break;case"t":m=i,y=r,T=e.len(),k=e.data,n===s.Q&&(m+=i-k[T-4],y+=r-k[T-3]),i+=f[v++],r+=f[v++],d=s.Q,e.addData(d,m,y,i,r);break;case"A":_=f[v++],x=f[v++],b=f[v++],w=f[v++],S=f[v++],pd(C=i,M=r,i=f[v++],r=f[v++],w,S,_,x,b,d=s.A,e);break;case"a":_=f[v++],x=f[v++],b=f[v++],w=f[v++],S=f[v++],pd(C=i,M=r,i+=f[v++],r+=f[v++],w,S,_,x,b,d=s.A,e)}}"z"!==h&&"Z"!==h||(d=s.Z,e.addData(d),i=o,r=a),n=d}return e.toStatic(),e}(t),i=W({},e);return i.buildPath=function(t){var e,i=yd(t);i&&t.canSave()?(t.appendPath(n),(e=t.getContext())&&t.rebuildPath(e,1)):(e=i?t.getContext():t)&&n.rebuildPath(e,1)},i.applyTransform=function(t){!function(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),c=id.M,h=id.C,d=id.L,f=id.R,p=id.A,g=id.Q;for(r=0,o=0;r<u;){switch(n=l[r++],o=r,i=0,n){case c:case d:i=1;break;case h:i=3;break;case g:i=2;break;case p:var v=e[4],m=e[5],y=od(e[0]*e[0]+e[1]*e[1]),_=od(e[2]*e[2]+e[3]*e[3]),x=ad(-e[1]/_,e[0]/y);l[r]*=y,l[r++]+=v,l[r]*=_,l[r++]+=m,l[r++]*=y,l[r++]*=_,l[r++]+=x,l[r++]+=x,o=r+=2;break;case f:s[0]=l[r++],s[1]=l[r++],gn(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],gn(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var b=rd[a];b[0]=l[r++],b[1]=l[r++],gn(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}(n,t),this.dirtyShape()},i}var xd=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return qt(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=j(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=j(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(e)},e.prototype.getBoundingRect=function(t){for(var e=new De(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(De.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},e}(Ji);xd.prototype.type="group";const bd=xd;var wd=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Sd=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultShape=function(){return new wd},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(uo);Sd.prototype.type="ellipse";const Cd=Sd;var Md=Math.PI,Td=2*Md,kd=Math.sin,Id=Math.cos,Dd=Math.acos,Ad=Math.atan2,Rd=Math.abs,Pd=Math.sqrt,Ld=Math.max,Od=Math.min,Bd=1e-4;function zd(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/Pd(s*s+l*l),c=u*l,h=-u*s,d=t+c,f=e+h,p=n+c,g=i+h,v=(d+p)/2,m=(f+g)/2,y=p-d,_=g-f,x=y*y+_*_,b=r-o,w=d*g-p*f,S=(_<0?-1:1)*Pd(Ld(0,b*b*x-w*w)),C=(w*_-y*S)/x,M=(-w*y-_*S)/x,T=(w*_+y*S)/x,k=(-w*y+_*S)/x,I=C-v,D=M-m,A=T-v,R=k-m;return I*I+D*D>A*A+R*R&&(C=T,M=k),{cx:C,cy:M,x0:-c,y0:-h,x1:C*(r/b-1),y1:M*(r/b-1)}}var Ed=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Nd=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultShape=function(){return new Ed},e.prototype.buildPath=function(t,e){!function(t,e){var n,i=Ld(e.r,0),r=Ld(e.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,c=e.cy,h=!!e.clockwise,d=Rd(l-s),f=d>Td&&d%Td;if(f>Bd&&(d=f),i>Bd)if(d>Td-Bd)t.moveTo(u+i*Id(s),c+i*kd(s)),t.arc(u,c,i,s,l,!h),r>Bd&&(t.moveTo(u+r*Id(l),c+r*kd(l)),t.arc(u,c,r,l,s,h));else{var p=void 0,g=void 0,v=void 0,m=void 0,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,C=void 0,M=void 0,T=void 0,k=void 0,I=void 0,D=void 0,A=i*Id(s),R=i*kd(s),P=r*Id(l),L=r*kd(l),O=d>Bd;if(O){var B=e.cornerRadius;B&&(n=function(t){var e;if(et(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(B),p=n[0],g=n[1],v=n[2],m=n[3]);var z=Rd(i-r)/2;if(y=Od(z,v),_=Od(z,m),x=Od(z,p),b=Od(z,g),C=w=Ld(y,_),M=S=Ld(x,b),(w>Bd||S>Bd)&&(T=i*Id(l),k=i*kd(l),I=r*Id(s),D=r*kd(s),d<Md)){var E=function(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,d=h*l-c*u;if(!(d*d<Bd))return[t+(d=(c*(e-o)-h*(t-r))/d)*l,e+d*u]}(A,R,I,D,T,k,P,L);if(E){var N=A-E[0],F=R-E[1],V=T-E[0],H=k-E[1],G=1/kd(Dd((N*V+F*H)/(Pd(N*N+F*F)*Pd(V*V+H*H)))/2),W=Pd(E[0]*E[0]+E[1]*E[1]);C=Od(w,(i-W)/(G+1)),M=Od(S,(r-W)/(G-1))}}}if(O)if(C>Bd){var U=Od(v,C),j=Od(m,C),X=zd(I,D,A,R,i,U,h),q=zd(T,k,P,L,i,j,h);t.moveTo(u+X.cx+X.x0,c+X.cy+X.y0),C<w&&U===j?t.arc(u+X.cx,c+X.cy,C,Ad(X.y0,X.x0),Ad(q.y0,q.x0),!h):(U>0&&t.arc(u+X.cx,c+X.cy,U,Ad(X.y0,X.x0),Ad(X.y1,X.x1),!h),t.arc(u,c,i,Ad(X.cy+X.y1,X.cx+X.x1),Ad(q.cy+q.y1,q.cx+q.x1),!h),j>0&&t.arc(u+q.cx,c+q.cy,j,Ad(q.y1,q.x1),Ad(q.y0,q.x0),!h))}else t.moveTo(u+A,c+R),t.arc(u,c,i,s,l,!h);else t.moveTo(u+A,c+R);r>Bd&&O?M>Bd?(U=Od(p,M),X=zd(P,L,T,k,r,-(j=Od(g,M)),h),q=zd(A,R,I,D,r,-U,h),t.lineTo(u+X.cx+X.x0,c+X.cy+X.y0),M<S&&U===j?t.arc(u+X.cx,c+X.cy,M,Ad(X.y0,X.x0),Ad(q.y0,q.x0),!h):(j>0&&t.arc(u+X.cx,c+X.cy,j,Ad(X.y0,X.x0),Ad(X.y1,X.x1),!h),t.arc(u,c,r,Ad(X.cy+X.y1,X.cx+X.x1),Ad(q.cy+q.y1,q.cx+q.x1),h),U>0&&t.arc(u+q.cx,c+q.cy,U,Ad(q.y1,q.x1),Ad(q.y0,q.x0),!h))):(t.lineTo(u+P,c+L),t.arc(u,c,r,l,s,h)):t.lineTo(u+P,c+L)}else t.moveTo(u,c);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(uo);Nd.prototype.type="sector";const Fd=Nd;var Vd=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Hd=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultShape=function(){return new Vd},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(uo);Hd.prototype.type="ring";const Gd=Hd;function Wd(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;d<f;d++)vn(a,a,t[d]),mn(s,s,t[d]);vn(a,a,i[0]),mn(s,s,i[1])}for(d=0,f=t.length;d<f;d++){var p=t[d];if(n)r=t[d?d-1:f-1],o=t[(d+1)%f];else{if(0===d||d===f-1){l.push(ln(t[d]));continue}r=t[d-1],o=t[d+1]}cn(u,o,r),hn(u,u,e);var g=dn(p,r),v=dn(p,o),m=g+v;0!==m&&(g/=m,v/=m),hn(c,u,-g),hn(h,u,v);var y=un([],p,c),_=un([],p,h);i&&(mn(y,y,a),vn(y,y,s),mn(_,_,a),vn(_,_,s)),l.push(y),l.push(_)}return n&&l.push(l.shift()),l}(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(r[0][0],r[0][1]),s=1;for(var h=r.length;s<h;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}var Ud=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},jd=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultShape=function(){return new Ud},e.prototype.buildPath=function(t,e){Wd(t,e,!0)},e}(uo);jd.prototype.type="polygon";const Xd=jd;var qd=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Yd=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qd},e.prototype.buildPath=function(t,e){Wd(t,e,!1)},e}(uo);Yd.prototype.type="polyline";const Zd=Yd;var $d=[],Kd=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Qd(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?Hn:Vn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Hn:Vn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?qn:Xn)(t.x1,t.cpx1,t.x2,e),(n?qn:Xn)(t.y1,t.cpy1,t.y2,e)]}var Jd=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Kd},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,i),null==l||null==u?(c<1&&(Zn(n,a,r,c,$d),a=$d[1],r=$d[2],Zn(i,s,o,c,$d),s=$d[1],o=$d[2]),t.quadraticCurveTo(a,s,r,o)):(c<1&&(Un(n,a,l,r,c,$d),a=$d[1],l=$d[2],r=$d[3],Un(i,s,u,o,c,$d),s=$d[1],u=$d[2],o=$d[3]),t.bezierCurveTo(a,s,l,u,r,o)))},e.prototype.pointAt=function(t){return Qd(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Qd(this.shape,t,!0);return function(t,e){var n=function(t){return Math.sqrt(function(t){return t[0]*t[0]+t[1]*t[1]}(t))}(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}(e,e)},e}(uo);Jd.prototype.type="bezier-curve";const tf=Jd;var ef=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},nf=function(t){function e(e){return t.call(this,e)||this}return qt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ef},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(uo);nf.prototype.type="arc";const rf=nf;const of=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return qt(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),uo.prototype.getBoundingRect.call(this)},e}(uo);var af=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}();const sf=af,lf=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return qt(e,t),e}(sf),uf=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return qt(e,t),e}(sf);var cf=Math.min,hf=Math.max,df=Math.abs,ff=[0,0],pf=[0,0],gf=Ie(),vf=gf.minTv,mf=gf.maxTv,yf=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ce;for(n=0;n<2;n++)this._axes[n]=new ce;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;l<4;l++)n[l].transform(e);for(ce.sub(i[0],n[1],n[0]),ce.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e,n){var i=!0,r=!e;return e&&ce.set(e,0,0),gf.reset(n,!r),!this._intersectCheckOneSide(this,t,r,1)&&(i=!1,r)||!this._intersectCheckOneSide(t,this,r,-1)&&(i=!1,r)||r||gf.negativeSize||ce.copy(e,i?gf.useDir?gf.dirMinTv:vf:mf),i},t.prototype._intersectCheckOneSide=function(t,e,n,i){for(var r=!0,o=0;o<2;o++){var a=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,ff),t._getProjMinMaxOnAxis(o,e._corners,pf),gf.negativeSize||ff[1]<pf[0]||ff[0]>pf[1]){if(r=!1,gf.negativeSize||n)return r;var s=df(pf[0]-ff[1]),l=df(ff[0]-pf[1]);cf(s,l)>mf.len()&&(s<l?ce.scale(mf,a,-s*i):ce.scale(mf,a,l*i))}else n||(s=df(pf[0]-ff[1]),l=df(ff[0]-pf[1]),(gf.useDir||cf(s,l)<vf.len())&&((s<l||!gf.bidirectional)&&(ce.scale(vf,a,s*i),gf.useDir&&gf.calcDirMTV()),(s>=l||!gf.bidirectional)&&(ce.scale(vf,a,-l*i),gf.useDir&&gf.calcDirMTV())))}return r},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];a=cf(u,a),s=hf(u,s)}n[0]=a+gf.touchThreshold,n[1]=s-gf.touchThreshold,gf.negativeSize=n[1]<n[0]},t}();const _f=yf;var xf=[];const bf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return qt(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new De(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(xf)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0;return!1},e}(lr);var wf=_a();function Sf(t,e,n,i,r,o,a){var s,l=!1;nt(r)?(a=o,o=r,r=null):at(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=function(t,e,n,i,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return i?(l=ft(i.duration,200),u=ft(i.easing,"cubicOut"),c=0):(l=e.getShallow(s?"animationDurationUpdate":"animationDuration"),u=e.getShallow(s?"animationEasingUpdate":"animationEasing"),c=e.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),nt(c)&&(c=c(n,r)),nt(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(c&&c.duration>0){var h={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,h):e.animateTo(n,h)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Cf(t,e,n,i,r,o){Sf("update",t,e,n,i,r,o)}function Mf(t,e,n,i,r,o){Sf("enter",t,e,n,i,r,o)}function Tf(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function kf(t,e,n,i,r,o){Tf(t)||Sf("leave",t,e,n,i,r,o)}function If(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),kf(t,{style:{opacity:0}},e,n,i)}function Df(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||If(t,e,n,i)}):If(t,e,n,i)}var Af={},Rf=["x","y"],Pf=["width","height"];function Lf(t){return uo.extend(t)}var Of=function(t,e){var n=_d(t,e);return function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return qt(e,t),e}(md)};function Bf(t,e){return Of(t,e)}function zf(t,e){Af[t]=e}function Ef(t){if(Af.hasOwnProperty(t))return Af[t]}function Nf(t,e,n,i){var r=function(t,e){return new md(_d(t,e))}(t,e);return n&&("center"===i&&(n=Vf(n,r.getBoundingRect())),Gf(r,n)),r}function Ff(t,e,n){var i=new mo({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(Vf(e,r))}}});return i}function Vf(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var Hf=function(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new uo(e);return a.createPathProxy(),a.buildPath=function(t){if(yd(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function Gf(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function Wf(t,e){return _o(t,t,{lineWidth:e}),t}function Uf(t,e){return xo(t,t,e),t}var jf=bo;function Xf(t,e){for(var n=ie([]);t&&t!==e;)oe(n,t.getLocalTransform(),n),t=t.parent;return n}function qf(t,e,n){return e&&!q(e)&&(e=kn.getLocalTransform(e)),n&&(e=le([],e)),gn([],t,e)}function Yf(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Wo(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Wo(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=qf(o,e,n),Wo(o[0])>Wo(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Zf(t){return!t.isGroup}function $f(t,e,n){if(t&&e){var i,r=(i={},t.traverse(function(t){Zf(t)&&t.anid&&(i[t.anid]=t)}),i);e.traverse(function(t){if(Zf(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),Cf(t,i,n,Ta(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=H(t.shape)),e}}function Kf(t,e){return Z(t,function(t){var n=t[0];n=Go(n,e.x),n=Ho(n,e.x+e.width);var i=t[1];return i=Go(i,e.y),[n,i=Ho(i,e.y+e.height)]})}function Qf(t,e){var n=Go(t.x,e.x),i=Ho(t.x+t.width,e.x+e.width),r=Go(t.y,e.y),o=Ho(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Jf(t,e,n){var i=W({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),U(r,n),new mo(i)):Nf(t.replace("path://",""),i,n,"center")}function tp(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(ep(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function ep(t,e,n,i,r,o,a,s){var l,u=n-t,c=i-e,h=a-r,d=s-o,f=np(h,d,u,c);if((l=f)<=1e-6&&l>=-1e-6)return!1;var p=t-r,g=e-o,v=np(p,g,u,c)/f;if(v<0||v>1)return!1;var m=np(p,g,h,d)/f;return!(m<0||m>1)}function np(t,e,n,i){return t*i-n*e}function ip(t,e,n,i,r){return null==e||(ot(e)?rp[0]=rp[1]=rp[2]=rp[3]=e:(rp[0]=e[0],rp[1]=e[1],rp[2]=e[2],rp[3]=e[3]),i&&(rp[0]=Go(0,rp[0]),rp[1]=Go(0,rp[1]),rp[2]=Go(0,rp[2]),rp[3]=Go(0,rp[3])),n&&(rp[0]=-rp[0],rp[1]=-rp[1],rp[2]=-rp[2],rp[3]=-rp[3]),op(t,rp,"x","width",3,1,r&&r[0]||0),op(t,rp,"y","height",0,2,r&&r[1]||0)),t}var rp=[0,0,0,0];function op(t,e,n,i,r,o,a){var s=e[o]+e[r],l=t[i];t[i]+=s,a=Go(0,Ho(a,l)),t[i]<a?(t[i]=a,t[n]+=e[r]>=0?-e[r]:e[o]>=0?l+e[o]:Wo(s)>1e-8?(l-a)*e[r]/s:0):t[n]-=e[r]}function ap(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=it(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Y(Q(l),function(t){It(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=Ta(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:U({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function sp(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function lp(t,e){if(t)if(et(t))for(var n=0;n<t.length;n++)sp(t[n],e);else sp(t,e)}function up(t){return!t||Wo(t[1])<cp&&Wo(t[2])<cp||Wo(t[0])<cp&&Wo(t[3])<cp}var cp=1e-5;function hp(t,e){return t?De.copy(t,e):e.clone()}function dp(t,e){return e?re(t||[1,0,0,1,0,0],e):void 0}function fp(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function pp(t){var e=-1/0,n=1/0;function i(t){if(t&&!t.isGroup){var e=t.currentStates;if(e.length)for(var n=0;n<e.length;n++)r(t.states[e[n]]);r(t)}}function r(t){if(t){var i=t.z2;i>e&&(e=i),i<n&&(n=i)}}return sp(t,function(t){i(t),i(t.getTextContent()),i(t.getTextGuideLine())}),n>e&&(n=e=0),{min:n,max:e}}function gp(t,e,n){vp(t,e,n,-1/0)}function vp(t,e,n,i){if(t.ignoreModelZ)return i;var r=t.getTextContent(),o=t.getTextGuideLine();if(t.isGroup)for(var a=t.childrenRef(),s=0;s<a.length;s++)i=Go(vp(a[s],e,n,i),i);else t.z=e,t.zlevel=n,i=Go(t.z2||0,i);if(r&&(r.z=e,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),o){var l=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+(l&&l.showAbove?1:-1))}return i}zf("circle",nd),zf("ellipse",Cd),zf("sector",Fd),zf("ring",Gd),zf("polygon",Xd),zf("polyline",Zd),zf("rect",Mo),zf("line",Jh),zf("bezierCurve",tf),zf("arc",rf);var mp=uo.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),yp=uo.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),_p=uo.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),f=.6*a,p=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*f,l+s+d*f,n,i-p,n,i),t.bezierCurveTo(n,i-p,n-c+h*f,l+s+d*f,n-c,l+s),t.closePath()}}),xp=uo.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),bp={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},wp={};Y({line:Jh,rect:Mo,roundRect:Mo,square:Mo,circle:nd,diamond:yp,pin:_p,arrow:xp,triangle:mp},function(t,e){wp[e]=new t});var Sp=uo.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=He(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=wp[i];r||(r=wp[i="rect"]),bp[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function Cp(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||Sh.color.neutral00,n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function Mp(t,e,n,i,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?Ff(t.slice(8),new De(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?Nf(t.slice(7),{},new De(e,n,i,r),a?"center":"cover"):new Sp({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=Cp,o&&s.setColor(o),s}function Tp(t,e){if(null!=t)return et(t)||(t=[t,t]),[jo(t[0],e[0])||0,jo(ft(t[1],t[0]),e[1])||0]}const kp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return b(e,t),e.prototype.getInitialData=function(t){return Bu(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new bd,n=Mp("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=Mp(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill=Sh.color.neutral00,s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Zh);function Ip(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Fl(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(Fl(t,e,n[a]));return o.join(" ")}}var Dp=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return b(e,t),e.prototype._createSymbol=function(t,e,n,i,r,o){this.removeAll();var a=Mp(t,-1,-1,2,2,null,o);a.attr({z2:ft(r,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),a.drift=Ap,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ts(this.childAt(0))},e.prototype.downplay=function(){es(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o,a=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=e.getSymbolZ2(t,n),c=a!==this._symbolType,h=r&&r.disableAnimation;if(c){var d=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,t,n,l,u,d)}else{(p=this.childAt(0)).silent=!1;var f={scaleX:l[0]/2,scaleY:l[1]/2};h?p.attr(f):Cf(p,f,s,n),wf(o=p).oldStyle=o.style}if(this._updateCommon(t,n,l,i,r),c){var p=this.childAt(0);h||(f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}},p.scaleX=p.scaleY=0,p.style.opacity=0,Mf(p,f,s,n))}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,c,h,d,f,p=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,d=i.hoverScale,f=i.cursorStyle,c=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),m=v.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),u=m.get("blurScope"),c=m.get("disabled"),h=Ss(v),d=m.getShallow("scale"),f=v.getShallow("cursor")}var y=t.getItemVisual(e,"symbolRotate");p.attr("rotation",(y||0)*Math.PI/180||0);var _=Tp(t.getItemVisual(e,"symbolOffset"),n);_&&(p.x=_[0],p.y=_[1]),f&&p.attr("cursor",f);var x=t.getItemVisual(e,"style"),b=x.fill;if(p instanceof mo){var w=p.style;p.useStyle(W({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},x))}else p.__isEmptyBrush?p.useStyle(W({},x)):p.useStyle(x),p.style.decal=null,p.setColor(b,r&&r.symbolInnerColor),p.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),C=this._z2;null!=S?null==C&&(this._z2=p.z2,p.z2+=S):null!=C&&(p.z2=C,this._z2=null);var M=r&&r.useNameLabel;ws(p,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return M?t.getName(e):Ip(t,e)},inheritColor:b,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=p.ensureState("emphasis");T.style=o,p.ensureState("select").style=s,p.ensureState("blur").style=a;var k=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;T.scaleX=this._sizeX*k,T.scaleY=this._sizeY*k,this.setSymbolScale(1),ds(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=Ta(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&kf(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();kf(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return et(n=t.getItemVisual(e,"symbolSize"))||(n=[+n,+n]),[n[0]||0,n[1]||0];var n},e.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")},e}(bd);function Ap(t,e){this.parent.drift(t,e)}const Rp=Dp;function Pp(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function Lp(t){return null==t||at(t)||(t={isIgnore:t}),t||{}}function Op(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Ss(e),cursorStyle:e.get("cursor")}}var Bp=function(){function t(t){this.group=new bd,this._SymbolCtor=t||Rp}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Lp(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Op(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r=u(i);if(Pp(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(c,h){var d=r.getItemGraphicEl(h),f=u(c);if(Pp(t,f,c,e)){var p=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==p)n.remove(d),(d=new o(t,c,s,l)).setPosition(f);else{d.updateData(t,c,s,l);var v={x:f[0],y:f[1]};a?d.attr(v):Cf(d,v,i)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Op(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Lp(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(Pp(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){lp(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()},t}();const zp=Bp;function Ep(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=function(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:ot(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=Z(t.dimensions,function(t){return e.mapDimension(t)}),d=!1,f=e.getCalculationInfo("stackResultDimension");return Ou(e,h[0])&&(d=!0,h[0]=f),Ou(e,h[1])&&(d=!0,h[1]=f),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Np(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var Fp="undefined"!=typeof Float32Array,Vp=Fp?Float32Array:Array;function Hp(t){return et(t)?Fp?new Float32Array(t):t:new Vp(t)}var Gp=Math.min,Wp=Math.max;function Up(t,e){return isNaN(t)||isNaN(e)}function jp(t,e,n,i,r,o,a,s,l){for(var u,c,h,d,f,p,g=n,v=0;v<i;v++){var m=e[2*g],y=e[2*g+1];if(g>=r||g<0)break;if(Up(m,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](m,y),h=m,d=y;else{var _=m-u,x=y-c;if(_*_+x*x<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===m&&S===y&&v<i;)v++,g+=o,w=e[2*(b+=o)],S=e[2*b+1],_=(m=e[2*g])-u,x=(y=e[2*g+1])-c;var C=v+1;if(l)for(;Up(w,S)&&C<i;)C++,w=e[2*(b+=o)],S=e[2*b+1];var M=.5,T=0,k=0,I=void 0,D=void 0;if(C>=i||Up(w,S))f=m,p=y;else{T=w-u,k=S-c;var A=m-u,R=w-m,P=y-c,L=S-y,O=void 0,B=void 0;if("x"===s){var z=T>0?1:-1;f=m-z*(O=Math.abs(A))*a,p=y,I=m+z*(B=Math.abs(R))*a,D=y}else if("y"===s){var E=k>0?1:-1;f=m,p=y-E*(O=Math.abs(P))*a,I=m,D=y+E*(B=Math.abs(L))*a}else O=Math.sqrt(A*A+P*P),f=m-T*a*(1-(M=(B=Math.sqrt(R*R+L*L))/(B+O))),p=y-k*a*(1-M),D=y+k*a*M,I=Gp(I=m+T*a*M,Wp(w,m)),D=Gp(D,Wp(S,y)),I=Wp(I,Gp(w,m)),p=y-(k=(D=Wp(D,Gp(S,y)))-y)*O/B,f=Gp(f=m-(T=I-m)*O/B,Wp(u,m)),p=Gp(p,Wp(c,y)),I=m+(T=m-(f=Wp(f,Gp(u,m))))*B/O,D=y+(k=y-(p=Wp(p,Gp(c,y))))*B/O}t.bezierCurveTo(h,d,f,p,m,y),h=I,d=D}else t.lineTo(m,y)}u=m,c=y,g+=o}return v}var Xp=function(){this.smooth=0,this.smoothConstraint=!0},qp=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return b(e,t),e.prototype.getDefaultStyle=function(){return{stroke:Sh.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Xp},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&Up(n[2*r-2],n[2*r-1]);r--);for(;i<r&&Up(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=jp(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=Hr.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=void 0,c=void 0,h=void 0,d=void 0,f=void 0,p=void 0,g=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:if(u=r[l++],c=r[l++],(g=a?(t-n)/(u-n):(t-i)/(c-i))<=1&&g>=0){var v=a?(c-i)*g+i:(u-n)*g+n;return a?[t,v]:[v,t]}n=u,i=c;break;case o.C:u=r[l++],c=r[l++],h=r[l++],d=r[l++],f=r[l++],p=r[l++];var m=a?Gn(n,u,h,f,t,s):Gn(i,c,d,p,t,s);if(m>0)for(var y=0;y<m;y++){var _=s[y];if(_<=1&&_>=0)return v=a?Vn(i,c,d,p,_):Vn(n,u,h,f,_),a?[t,v]:[v,t]}n=f,i=p}}},e}(uo),Yp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e}(Xp),Zp=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return b(e,t),e.prototype.getDefaultShape=function(){return new Yp},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Up(n[2*o-2],n[2*o-1]);o--);for(;r<o&&Up(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=jp(t,n,r,o,o,1,e.smooth,a,e.connectNulls);jp(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(uo);function $p(){var t=_a();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var Kp=_a(),Qp=$p(),Jp=function(){function t(){this.group=new bd,this.uid=Eu("viewChart"),this.renderTask=oh({plan:ng,reset:ig}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&eg(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&eg(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){lp(this.group,t)},t.markUpdateMethod=function(t,e){Kp(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function tg(t,e,n){t&&ms(t)&&("emphasis"===e?ts:es)(t,n)}function eg(t,e,n){var i=ya(t,e),r=e&&null!=e.highlightKey?function(t){var e=Ia[t];return null==e&&ka<=32&&(e=Ia[t]=ka++),e}(e.highlightKey):null;null!=i?Y(la(i),function(e){tg(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){tg(t,n,r)})}function ng(t){return Qp(t.model)}function ig(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&Kp(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),rg[l]}Et(Jp),Gt(Jp);var rg={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const og=Jp;function ag(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function sg(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function lg(t,e){var n=sg(t),i=n[0],r=n[1],o=sg(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function ug(t){return ot(t)?t:t?.5:0}function cg(t,e,n,i,r){var o=n.getBaseAxis(),a="x"===o.dim||"radius"===o.dim?0:1,s=[],l=0,u=[],c=[],h=[],d=[];if(r){for(l=0;l<t.length;l+=2){var f=e||t;isNaN(f[l])||isNaN(f[l+1])||d.push(t[l],t[l+1])}t=d}for(l=0;l<t.length-2;l+=2)switch(h[0]=t[l+2],h[1]=t[l+3],c[0]=t[l],c[1]=t[l+1],s.push(c[0],c[1]),i){case"end":u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var p=(c[a]+h[a])/2,g=[];u[a]=g[a]=p,u[1-a]=c[1-a],g[1-a]=h[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function hg(t,e){return isNaN(t)||isNaN(e)}function dg(t,e){return[t[2*e],t[2*e+1]]}function fg(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Ra.length;e++)if(t.get([Ra[e],"endLabel","show"]))return!0;return!1}function pg(t,e,n,i){if(function(t){return"cartesian2d"===t.type}(e)){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=fg(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),c=function(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var h=new Mo({shape:{x:a,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),f=d.isHorizontal(),p=d.inverse;f?(p&&(h.shape.x+=l),h.shape.width=0):(p||(h.shape.y+=u),h.shape.height=0);var g=nt(r)?function(t){r(t,h)}:null;Mf(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return h}(e,n,i,function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return function(t,e,n){var i=t.getArea(),r=qo(i.r0,1),o=qo(i.r,1),a=new Fd({shape:{cx:qo(t.cx,1),cy:qo(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,Mf(a,{shape:{endAngle:i.endAngle,r:o}},n)),a}(e,n,i)}var gg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.init=function(){var t=new bd,e=new zp;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=J(this._changePolyState,this)},e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=o.getLayout("points")||[],u="polar"===i.type,c=this._coordSys,h=this._symbolDraw,d=this._polyline,f=this._polygon,p=this._lineGroup,g=!e.ssr&&t.get("animation"),v=!s.isEmpty(),m=s.get("origin"),y=Ep(i,o,m),_=v&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=Hp(2*i),o=0;o<i;o++){var a=Np(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(i,o,y),x=t.get("showSymbol"),b=t.get("connectNulls"),w=x&&!u&&function(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*Rp.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return Y(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,o,i),S=this._data;S&&S.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),S.setItemGraphicEl(e,null))}),x||h.remove(),r.add(p);var C,M=!u&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(C=i.getArea()).width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var T=function(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=Z(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:gi((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(u,"x"===r?n.getWidth():n.getHeight()),f=d.length;if(!f&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var p=d[0].coord-10,g=d[f-1].coord+10,v=g-p;if(v<.001)return"transparent";Y(d,function(t){t.offset=(t.coord-p)/v}),d.push({offset:f?d[f-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:h[0]||"transparent"});var m=new lf(0,0,0,0,d,!0);return m[r]=p,m[r+"2"]=g,m}}}(o,i,n)||o.getVisual("style")[o.getVisual("drawType")];if(d&&c.type===i.type&&M===this._step){v&&!f?f=this._newPolygon(l,_):f&&!v&&(p.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(t,i,Nc(T));var k=p.getClipPath();k?Mf(k,{shape:pg(this,i,!1,t).shape},t):p.setClipPath(pg(this,i,!0,t)),x&&h.updateData(o,{isIgnore:w,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),ag(this._stackedOnPoints,_)&&ag(this._points,l)||(g?this._doUpdateAnimation(o,_,i,n,M,m,b):(M&&(_&&(_=cg(_,l,i,M,b)),l=cg(l,null,i,M,b)),d.setShape({points:l}),f&&f.setShape({points:l,stackedOnPoints:_})))}else x&&h.updateData(o,{isIgnore:w,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),g&&this._initSymbolLabelAnimation(o,i,C),M&&(_&&(_=cg(_,l,i,M,b)),l=cg(l,null,i,M,b)),d=this._newPolyline(l),v?f=this._newPolygon(l,_):f&&(p.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(t,i,Nc(T)),p.setClipPath(pg(this,i,!0,t));var I=t.getModel("emphasis"),D=I.get("focus"),A=I.get("blurScope"),R=I.get("disabled");d.useStyle(U(a.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),gs(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),Ta(d).seriesIndex=t.seriesIndex,ds(d,D,A,R);var P=ug(t.get("smooth")),L=t.get("smoothMonotone");if(d.setShape({smooth:P,smoothMonotone:L,connectNulls:b}),f){var O=o.getCalculationInfo("stackedOnSeries"),B=0;f.useStyle(U(s.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),O&&(B=ug(O.get("smooth"))),f.setShape({smooth:P,stackedOnSmooth:B,smoothMonotone:L,connectNulls:b}),gs(f,t,"areaStyle"),Ta(f).seriesIndex=t.seriesIndex,ds(f,D,A,R)}var z=this._changePolyState;o.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=z)}),this._polyline.onHoverStateChange=z,this._data=o,this._coordSys=i,this._stackedOnPoints=_,this._points=l,this._step=M,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){Ta(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=ya(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new Rp(r,o)).x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else og.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=ya(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else og.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;Za(this._polyline,t),e&&Za(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new qp({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Zp({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");nt(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=nt(u)?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var h=[t.x,t.y],d=void 0,f=void 0,p=void 0;if(n)if(r){var g=n,v=e.pointToCoord(h);i?(d=g.startAngle,f=g.endAngle,p=-v[1]/180*Math.PI):(d=g.r0,f=g.r,p=v[0])}else{var m=n;i?(d=m.x,f=m.x+m.width,p=t.x):(d=m.y+m.height,f=m.y,p=t.y)}var y=f===d?0:(p-d)/(f-d);a&&(y=1-y);var _=nt(u)?u(o):l*y+c,x=s.getSymbolPath(),b=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(fg(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Vo({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e=t.length/2;e>0&&hg(t[2*e-2],t[2*e-1]);e--);return e-1}(a);l>=0&&(ws(o,Ss(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?function(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!et(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}(r,n):Ip(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),f=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),v=p.inverse,m=e.shape,y=v?g?m.x:m.y+m.height:g?m.x+m.width:m.y,_=(g?f:0)*(v?-1:1),x=(g?0:-f)*(v?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(i<=e&&r>=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,y,b),S=w.range,C=S[1]-S[0],M=void 0;if(C>=1){if(C>1&&!h){var T=dg(u,S[0]);s.attr({x:T[0]+_,y:T[1]+x}),r&&(M=c.getRawValue(S[0]))}else{(T=l.getPointOn(y,b))&&s.attr({x:T[0]+_,y:T[1]+x});var k=c.getRawValue(S[0]),I=c.getRawValue(S[1]);r&&(M=function(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(ot(i))return qo(p=aa(n||0,i,r),o?Math.max(Yo(n||0),Yo(i)):e);if(it(i))return r<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var h=t.getDimensionInfo(c);if(h&&"ordinal"===h.type)a[c]=(r<1&&s?s:l)[c];else{var d=s&&s[c]?s[c]:0,f=l[c],p=aa(d,f,r);a[c]=qo(p,o?Math.max(Yo(d),Yo(f)):e)}}return a}(n,d,k,I,w.t))}i.lastFrameIndex=S[0]}else{var D=1===t||i.lastFrameIndex>0?S[0]:0;T=dg(u,D),r&&(M=c.getRawValue(D)),s.attr({x:T[0]+_,y:T[1]+x})}if(r){var A=As(s);"function"==typeof A.setLabelText&&A.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,i,r,o,a){for(var s=function(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}(t,e),l=[],u=[],c=[],h=[],d=[],f=[],p=[],g=Ep(r,e,a),v=t.getLayout("points")||[],m=e.getLayout("points")||[],y=0;y<s.length;y++){var _=s[y],x=!0,b=void 0,w=void 0;switch(_.cmd){case"=":b=2*_.idx,w=2*_.idx1;var S=v[b],C=v[b+1],M=m[w],T=m[w+1];(isNaN(S)||isNaN(C))&&(S=M,C=T),l.push(S,C),u.push(M,T),c.push(n[b],n[b+1]),h.push(i[w],i[w+1]),p.push(e.getRawIndex(_.idx1));break;case"+":var k=_.idx,I=g.dataDimsForPoint,D=r.dataToPoint([e.get(I[0],k),e.get(I[1],k)]);w=2*k,l.push(D[0],D[1]),u.push(m[w],m[w+1]);var A=Np(g,r,e,k);c.push(A[0],A[1]),h.push(i[w],i[w+1]),p.push(e.getRawIndex(k));break;case"-":x=!1}x&&(d.push(_),f.push(f.length))}f.sort(function(t,e){return p[t]-p[e]});var R=l.length,P=Hp(R),L=Hp(R),O=Hp(R),B=Hp(R),z=[];for(y=0;y<f.length;y++){var E=f[y],N=2*y,F=2*E;P[N]=l[F],P[N+1]=l[F+1],L[N]=u[F],L[N+1]=u[F+1],O[N]=c[F],O[N+1]=c[F+1],B[N]=h[F],B[N+1]=h[F+1],z[y]=d[E]}return{current:P,next:L,stackedOnCurrent:O,stackedOnNext:B,status:z}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,d=c.stackedOnCurrent,f=c.next,p=c.stackedOnNext;if(r&&(d=cg(c.stackedOnCurrent,c.current,n,r,a),h=cg(c.current,null,n,r,a),p=cg(c.stackedOnNext,c.next,n,r,a),f=cg(c.next,null,n,r,a)),lg(h,f)>3e3||l&&lg(d,p)>3e3)return s.stopAnimation(),s.setShape({points:f}),void(l&&(l.stopAnimation(),l.setShape({points:f,stackedOnPoints:p})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:f}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),Cf(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),Cf(l,{shape:{stackedOnPoints:p}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],m=c.status,y=0;y<m.length;y++)if("="===m[y].cmd){var _=t.getItemGraphicEl(m[y].idx1);_&&v.push({el:_,ptIdx:y})}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<v.length;e++){var n=v[e].el,i=2*v[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}})},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(og);const vg=gg;var mg={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},yg=function(t){return Math.round(t.length/2)},_g=function(){function t(){this.group=new bd,this.uid=Eu("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Et(_g),Gt(_g);const xg=_g;var bg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return b(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:Sh.size.m,backgroundColor:Sh.color.transparent,borderColor:Sh.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:Sh.color.primary},subtextStyle:{fontSize:12,color:Sh.color.quaternary}},e}(Jc),wg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return b(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=ft(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Vo({style:Cs(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new Vo({style:Cs(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!d&&!p,h.silent=!f&&!p,d&&l.on("click",function(){Fc(d,"_"+t.get("target"))}),f&&h.on("click",function(){Fc(f,"_"+t.get("subtarget"))}),Ta(l).eventData=Ta(h).eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var m=Uc(v,qc(t,n).refContainer,t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),h.setStyle(y),g=i.getBoundingRect();var _=m.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var b=new Mo({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(xg),Sg={left:0,right:0,top:0,bottom:0},Cg=["25%","25%"];const Mg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.mergeDefaultAndTheme=function(e,n){var i=$c(e.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&e.outerBounds&&Zc(e.outerBounds,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Zc(this.option.outerBounds,e.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:Sg,outerBoundsContain:"all",outerBoundsClampWidth:Cg[0],outerBoundsClampHeight:Cg[1],backgroundColor:Sh.color.transparent,borderWidth:1,borderColor:Sh.color.neutral30},e}(Jc);var Tg=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),kg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Sa).models[0]},e.type="cartesian2dAxis",e}(Jc);X(kg,Tg);var Ig={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:Sh.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Sh.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Sh.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Sh.color.backgroundTint,Sh.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Sh.color.neutral00,borderColor:Sh.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},Dg=G({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Ig),Ag=G({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Sh.color.axisMinorSplitLine,width:1}}},Ig);const Rg={category:Dg,value:Ag,time:G({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ag),log:U({logBase:10},Ag)};var Pg=0;function Lg(t){return at(t)&&null!=t.value?t.value:t+""}const Og=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Pg,this._onCollect=t.onCollect}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&Z(i,Lg);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!it(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Mt(this.categories))},t}();var Bg={value:1,category:1,time:1,log:1};function zg(t,e,n,i){Y(Bg,function(r,o){var a=G(G({},Rg[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return b(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Yc(this),i=n?$c(t):{};G(t,e.getTheme().get(o+"Axis")),G(t,this.getDefaultOption()),t.type=Eg(t),n&&Zc(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Og.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(t){var e=null;return e?e.updateModelAxisBreak(this,t):{breaks:[]}},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",Eg)}function Eg(t){return t.type||(t.data?"category":"value")}function Ng(t){return"interval"===t.type||"log"===t.type}function Fg(t){var e=Math.pow(10,ta(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,qo(n*e)}function Vg(t){return Yo(t)+2}function Hg(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Gg(t,e){return t>=e[0]&&t<=e[1]}var Wg=function(){function t(){this.normalize=Ug,this.scale=jg}return t.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=J(t.normalize,t),this.scale=J(t.scale,t)):(this.normalize=Ug,this.scale=jg)},t}();function Ug(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function jg(t,e){return t*(e[1]-e[0])+e[0]}function Xg(t,e,n){var i=Math.log(t);return[Math.log(n?e[0]:Math.max(0,e[0]))/i,Math.log(n?e[1]:Math.max(0,e[1]))/i]}var qg=function(){function t(t){this._calculator=new Wg,this._setting=t||{},this._extent=[1/0,-1/0];var e=null;e&&(this._brkCtx=e.createScaleBreakContext(),this._brkCtx.update(this._extent))}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]<e[0]?t[0]:e[0],t[1]>e[1]?t[1]:e[1])},t.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},t.prototype._innerSetExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(t){var e=null;e&&this._innerSetBreak(e.parseAxisBreakOption(t,J(this.parse,this)))},t.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Gt(qg);const Yg=qg;var Zg=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Og({})),et(i)&&(i=new Og({categories:Z(i,function(t){return at(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return b(e,t),e.prototype.parse=function(t){return null==t?NaN:it(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Gg(t,this._extent)&&t>=0&&t<this._ordinalMeta.categories.length},e.prototype.normalize=function(t){return t=this._getTickNumber(t),this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(this._calculator.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Yg);Yg.registerClass(Zg);const $g=Zg;var Kg=qo,Qg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return b(e,t),e.prototype.parse=function(t){return null==t||""===t?NaN:Number(t)},e.prototype.contain=function(t){return Gg(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Vg(t)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=null,a=[];if(!e)return a;if("only_break"===t.breakTicks&&o)return o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent),a;n[0]<i[0]&&(t.expandToNicedExtent?a.push({value:Kg(i[0]-e,r)}):a.push({value:n[0]}));for(var s=function(t,n){return Math.round((n-t)/e)},l=i[0];l<=i[1];){if(a.push({value:l}),l=Kg(l+e,r),this._brkCtx){var u=this._brkCtx.calcNiceTickMultiple(l,s);u>=0&&(l=Kg(l+u*e,r))}if(a.length>0&&l===a[a.length-1].value)break;if(a.length>1e4)return[]}var c=a.length?a[a.length-1].value:i[1];return n[1]>c&&(t.expandToNicedExtent?a.push({value:Kg(c+e,r)}):a.push({value:n[1]})),o&&o.pruneTicksByBreak(t.pruneByBreak,a,this._brkCtx.breaks,function(t){return t.value},this._interval,this._extent),"none"!==t.breakTicks&&o&&o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent),a},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),r=1;r<e.length;r++){var o=e[r],a=e[r-1];if(!a.break&&!o.break){for(var s=0,l=[],u=(o.value-a.value)/t,c=Vg(u);s<t-1;){var h=Kg(a.value+(s+1)*u,c);h>i[0]&&h<i[1]&&l.push(h),s++}var d=ec();d&&d.pruneTicksByBreak("auto",l,this._getNonTransBreaks(),function(t){return t},this._interval,i),n.push(l)}}return n},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=Yo(t.value)||0:"auto"===n&&(n=this._intervalPrecision),Rc(Kg(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent.slice(),r=this._getExtentSpanWithBreaks();if(isFinite(r)){r<0&&(r=-r,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var o=function(t,e,n,i,r){var o={},a=o.interval=ea(e/n,!0);null!=i&&a<i&&(a=o.interval=i),null!=r&&a>r&&(a=o.interval=r);var s=o.intervalPrecision=Vg(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Hg(t,0,e),Hg(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(o.niceTickExtent=[qo(Math.ceil(t[0]/a)*a,s),qo(Math.floor(t[1]/a)*a,s)],t),o}(i,r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent.slice();if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this._innerSetExtent(e[0],e[1]),e=this._extent.slice(),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval,o=this._intervalPrecision;t.fixMin||(e[0]=Kg(Math.floor(e[0]/r)*r,o)),t.fixMax||(e[1]=Kg(Math.ceil(e[1]/r)*r,o)),this._innerSetExtent(e[0],e[1])},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(Yg);Yg.registerClass(Qg);const Jg=Qg;function tv(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function ev(t){return t.dim+t.index}function nv(t){var e=function(t){var e={};Y(t,function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[r]?e[r].push(u):e[r]=[u]}});var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return Y(t,function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=r.dim+"_"+r.index,s=e[a],l=Math.abs(o[1]-o[0]),u=r.scale.getExtent(),c=Math.abs(u[1]-u[0]);i=s?l/c*s:l}else{var h=t.getData();i=Math.abs(o[1]-o[0])/h.count()}var d=jo(t.get("barWidth"),i),f=jo(t.get("barMaxWidth"),i),p=jo(t.get("barMinWidth")||(function(t){return t.pipelineContext&&t.pipelineContext.large}(t)?.5:1),i),g=t.get("barGap"),v=t.get("barCategoryGap"),m=t.get("defaultBarGap");n.push({bandWidth:i,barWidth:d,barMaxWidth:f,barMinWidth:p,barGap:g,barCategoryGap:v,defaultBarGap:m,axisKey:ev(r),stackId:tv(t)})}),function(t){var e={};Y(t,function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:t.defaultBarGap||0,stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)});var n={};return Y(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=Q(i).length;o=Math.max(35-4*a,15)+"%"}var s=jo(o,r),l=jo(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),Y(i,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width)i=t.width,e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,c--;else{var i=h;e&&e<i&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==h&&(t.width=i,u-=i+l*i,c--)}}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;Y(i,function(t,e){t.width||(t.width=h),d=t,f+=t.width*(1+l)}),d&&(f-=d.width*l);var p=-f/2;Y(i,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:p,width:t.width},p+=t.width*(1+l)})}),n}(n)}var iv=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return b(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return pc(t.value,lc[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(dc(this._minLevelUnit))]||lc.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return function(t,e,n,i,r){var o=null;if(it(n))o=n;else if(nt(n)){var a={time:t.time,level:t.time.level},s=null;s&&s.makeAxisLabelFormatterParamBreak(a,t.break),o=n(t.value,e,a)}else{var l=t.time;if(l){var u=n[l.lowerTimeUnit][l.upperTimeUnit];o=u[Math.min(l.level,u.length-1)]||""}else{var c=gc(t.value,r);o=n[c][c][0]}}return pc(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,n=this._extent,i=null,r=[];if(!e)return r;var o=this.getSetting("useUTC");var a=gc(n[1],o);r.push({value:n[0],time:{level:0,upperTimeUnit:a,lowerTimeUnit:a}});var s=function(t,e,n,i,r,o){var a=cc,s=0;function l(t,e,n,r,a,l,u){for(var c=function(t,e){var n=new Date(0);n[t](1);var i=n.getTime();n[t](1+e);var r=n.getTime()-i;return function(t,e){return Math.max(0,Math.round((e-t)/r))}}(a,t),h=e,d=new Date(h);h<n&&h<=i[1]&&(u.push({value:h}),!(s++>1e4));)if(d[a](d[r]()+t),h=d.getTime(),o){var f=o.calcNiceTickMultiple(h,c);f>0&&(d[a](d[r]()+f*t),h=d.getTime())}u.push({value:h,notAdd:!0})}function u(t,r,o){var a=[],s=!r.length;if(!ov(dc(t),i[0],i[1],n)){s&&(r=[{value:hv(i[0],t,n)},{value:i[1]}]);for(var u=0;u<r.length-1;u++){var c=r[u].value,h=r[u+1].value;if(c!==h){var d=void 0,f=void 0,p=void 0;switch(t){case"year":d=Math.max(1,Math.round(e/ic/365)),f=mc(n),p=Cc(n);break;case"half-year":case"quarter":case"month":d=sv(e),f=yc(n),p=Mc(n);break;case"week":case"half-week":case"day":d=av(e),f=_c(n),p=Tc(n);break;case"half-day":case"quarter-day":case"hour":d=lv(e),f=xc(n),p=kc(n);break;case"minute":d=uv(e,!0),f=bc(n),p=Ic(n);break;case"second":d=uv(e,!1),f=wc(n),p=Dc(n);break;case"millisecond":d=cv(e),f=Sc(n),p=Ac(n)}h>=i[0]&&c<=i[1]&&l(d,c,h,f,p,0,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u<a.length;u++)o.push(a[u])}}for(var c=[],h=[],d=0,f=0,p=0;p<a.length;++p){var g=dc(a[p]);if(fc(a[p])&&(u(a[p],c[c.length-1]||[],h),g!==(a[p+1]?dc(a[p+1]):null))){if(h.length){f=d,h.sort(function(t,e){return t.value-e.value});for(var v=[],m=0;m<h.length;++m){var y=h[m].value;0!==m&&h[m-1].value===y||(v.push(h[m]),y>=i[0]&&y<=i[1]&&d++)}var _=r/e;if(d>1.5*_&&f>_/1.5)break;if(c.push(v),d>_||t===a[p])break}h=[]}}var x=K(Z(c,function(t){return K(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),b=[],w=x.length-1;for(p=0;p<x.length;++p)for(var S=x[p],C=0;C<S.length;++C){var M=gc(S[C].value,n);b.push({value:S[C].value,time:{level:w-p,upperTimeUnit:M,lowerTimeUnit:M}})}b.sort(function(t,e){return t.value-e.value});var T=[];for(p=0;p<b.length;++p)0!==p&&b[p].value===b[p-1].value||T.push(b[p]);return T}(this._minLevelUnit,this._approxInterval,o,n,this._getExtentSpanWithBreaks(),this._brkCtx);r=r.concat(s);var l=gc(n[1],o);r.push({value:n[1],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}});this.getSetting("useUTC");var u=uc.length-1,c=0;return Y(r,function(t){u=Math.min(u,j(uc,t.time.upperTimeUnit)),c=Math.max(c,t.time.level)}),r},e.prototype.calcNiceExtent=function(t){var e=this.getExtent();if(e[0]===e[1]&&(e[0]-=ic,e[1]+=ic),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-ic}this._innerSetExtent(e[0],e[1]),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var r=rv.length,o=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n}(rv,this._approxInterval,0,r),r-1);this._interval=rv[o][1],this._intervalPrecision=Vg(this._interval),this._minLevelUnit=rv[Math.max(o-1,0)][0]},e.prototype.parse=function(t){return ot(t)?t:+Jo(t)},e.prototype.contain=function(t){return Gg(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.type="time",e}(Jg),rv=[["second",1e3],["minute",6e4],["hour",nc],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",rc/2],["year",rc]];function ov(t,e,n,i){return vc(new Date(e),t,i).getTime()===vc(new Date(n),t,i).getTime()}function av(t,e){return(t/=ic)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function sv(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function lv(t){return(t/=nc)>12?12:t>6?6:t>3.5?4:t>2?2:1}function uv(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function cv(t){return ea(t,!0)}function hv(t,e,n){var i=Math.max(0,j(uc,e)-1);return vc(new Date(t),uc[i],n).getTime()}Yg.registerClass(iv);const dv=iv;var fv=qo,pv=Math.floor,gv=Math.ceil,vv=Math.pow,mv=Math.log,yv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Jg,e}return b(e,t),e.prototype.getTicks=function(e){e=e||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),r=t.prototype.getTicks.call(this,e),o=this.base,a=this._originalScale._innerGetBreaks(),s=null;return Z(r,function(t){var e,r=t.value,l=null,u=vv(o,r);if(r===n[0]&&this._fixMin?l=i[0]:r===n[1]&&this._fixMax&&(l=i[1]),s){var c=s.getTicksLogTransformBreak(t,o,a,_v);e=c.vBreak,null==l&&(l=c.brkRoundingCriterion)}return null!=l&&(u=_v(u,l)),{value:u,break:e}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(e,n){this._originalScale.setExtent(e,n);var i=Xg(this.base,[e,n]);t.prototype.setExtent.call(this,i[0],i[1])},e.prototype.getExtent=function(){var e=this.base,n=t.prototype.getExtent.call(this);n[0]=vv(e,n[0]),n[1]=vv(e,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=_v(n[0],i[0])),this._fixMax&&(n[1]=_v(n[1],i[1])),n},e.prototype.unionExtentFromData=function(t,e){this._originalScale.unionExtentFromData(t,e);var n=Xg(this.base,t.getApproximateExtent(e),!0);this._innerUnionExtent(n)},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(isFinite(n)&&!(n<=0)){var i,r=(i=n,Math.pow(10,ta(i)));for(t/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[fv(gv(e[0]/r)*r),fv(pv(e[1]/r)*r)];this._interval=r,this._intervalPrecision=Vg(r),this._niceExtent=o}},e.prototype.calcNiceExtent=function(e){t.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},e.prototype.contain=function(e){return e=mv(e)/mv(this.base),t.prototype.contain.call(this,e)},e.prototype.normalize=function(e){return e=mv(e)/mv(this.base),t.prototype.normalize.call(this,e)},e.prototype.scale=function(e){return e=t.prototype.scale.call(this,e),vv(this.base,e)},e.prototype.setBreaksFromOption=function(t){var e=null;if(e){var n=e.logarithmicParseBreaksFromOption(t,this.base,J(this.parse,this)),i=n.parsedOriginal,r=n.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(r)}},e.type="log",e}(Jg);function _v(t,e){return fv(t,Yo(e))}Yg.registerClass(yv);const xv=yv;var bv=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.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="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var r=e.get("min",!0);null==r&&(r=e.get("startValue",!0));var o=this._modelMinRaw=r;nt(o)?this._modelMinNum=Cv(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=Cv(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(nt(a)?this._modelMaxNum=Cv(t,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=Cv(t,a)),i)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=et(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ve(l[0],1),Ve(l[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?i?0:NaN:e-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=ht(a)||ht(s)||t&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[Sv[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[wv[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),wv={min:"_determinedMin",max:"_determinedMax"},Sv={min:"_dataMin",max:"_dataMax"};function Cv(t,e){return null==e?null:ht(e)?NaN:t.parse(e)}function Mv(t,e){var n=t.type,i=function(t,e,n){var i=t.rawExtentInfo;return i||(i=new bv(t,e,n),t.rawExtentInfo=i,i)}(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=function(t,e){var n=[];return e.eachSeriesByType(t,function(t){(function(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type})(t)&&n.push(t)}),n}("bar",a),l=!1;if(Y(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=nv(s),c=function(t,e,n,i){var r=n.axis.getExtent(),o=Math.abs(r[1]-r[0]),a=function(t,e){if(t&&e){var n=t[ev(e)];return n}}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;Y(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;Y(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=c/(1-(s+l)/o)-c;return{min:t-=h*(s/u),max:e+=h*(l/u)}}(r,o,e,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function Tv(t,e){var n=e,i=Mv(t,n),r=i.extent,o=n.get("splitNumber");t instanceof xv&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setBreaksFromOption(Lv(n)),t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function kv(t){var e,n=t.getLabelModel().get("formatter");if("time"===t.type){var i=it(e=n)||nt(e)?e:function(t){t=t||{};var e={},n=!0;return Y(uc,function(e){n&&(n=null==t[e])}),Y(uc,function(i,r){var o=t[i];e[i]={};for(var a=null,s=r;s>=0;s--){var l=uc[s],u=at(o)&&!et(o)?o[l]:o,c=void 0;et(u)?a=(c=u.slice())[0]||"":it(u)?c=[a=u]:(null==a?a=ac[i]:oc[l].test(a)||(a=e[l][l][0]+" "+a),c=[a],n&&(c[1]="{primary|"+a+"}")),e[i][l]=c}}),e}(e);return function(e,n){return t.scale.getFormattedLabel(e,n,i)}}if(it(n))return function(e){var i=t.scale.getLabel(e);return n.replace("{value}",null!=i?i:"")};if(nt(n)){if("category"===t.type)return function(e,i){return n(Iv(t,e),e.value-t.scale.getExtent()[0],null)};var r=null;return function(e,i){var o=null;return r&&(o=r.makeAxisLabelFormatterParamBreak(o,e.break)),n(Iv(t,e),i,o)}}return function(e){return t.scale.getLabel(e)}}function Iv(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Dv(t){var e=t.get("interval");return null==e?"auto":e}function Av(t){return"category"===t.type&&0===Dv(t.getLabelModel())}function Rv(t){return"middle"===t||"center"===t}function Pv(t){return t.getShallow("show")}function Lv(t){t.get("breaks",!0)}var Ov=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return Z(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),K(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),Bv=["x","y"];function zv(t){return("interval"===t.type||"time"===t.type)&&!t.hasBreaks()}var Ev=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Bv,e}return b(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(zv(t)&&zv(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=le([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new De(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return gn(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e,n){if(n=n||[],this._invTransform)return gn(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-i+t,a=Math.max(n[0],n[1])-r+t;return new De(i,r,o,a)},e}(Ov);const Nv=Ev;var Fv=_a(),Vv=_a();function Hv(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function Gv(t,e){var n=Z(e,function(e){return t.scale.parse(e)});return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function Wv(t,e,n){var i,r,o=jv(t),a=Dv(e),s=1===n.kind;if(!s){var l=qv(o,a);if(l)return l}nt(a)?i=Qv(t,a):(r="auto"===a?function(t,e){if(1===e.kind){var n=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Vv(t).autoInterval=n,!0}),n}var i=Vv(t).autoInterval;return null!=i?i:Vv(t).autoInterval=t.calculateCategoryInterval(e)}(t,n):a,i=Kv(t,r));var u={labels:i,labelCategoryInterval:r};return s?n.out.noPxChangeTryDetermine.push(function(){return Yv(o,a,u),!0}):Yv(o,a,u),u}var Uv=Xv("axisTick"),jv=Xv("axisLabel");function Xv(t){return function(e){return Vv(e)[t]||(Vv(e)[t]={list:[]})}}function qv(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function Yv(t,e,n){return t.list.push({key:e,value:n}),n}function Zv(t,e,n){return null==$v(t,e,n)}function $v(t,e,n){var i=Fv(t.model),r=t.getExtent(),o=i.lastAutoInterval,a=i.lastTickCount;if(null!=o&&null!=a&&Math.abs(o-e)<=1&&Math.abs(a-n)<=1&&o>e&&i.axisExtent0===r[0]&&i.axisExtent1===r[1])return o;i.lastTickCount=n,i.lastAutoInterval=e,i.axisExtent0=r[0],i.axisExtent1=r[1]}function Kv(t,e,n){var i=kv(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Av(t),d=a.get("showMinLabel")||h,f=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t,time:void 0,break:void 0})}return f&&p-l!==o[1]&&g(o[1]),s}function Qv(t,e,n){var i=t.scale,r=kv(t),o=[];return Y(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s,time:void 0,break:void 0})}),o}var Jv=[0,1],tm=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.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},t.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return function(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Wo(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(i.parse(t)),this.onBand&&"ordinal"===i.type&&em(n=n.slice(),i.count()),Uo(t,Jv,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&em(n=n.slice(),i.count());var r=Uo(t,n,Jv,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=Z(function(t,e,n){var i=t.getTickModel().get("customValues");if(i){var r=t.scale.getExtent();return{ticks:K(Gv(t,i),function(t){return t>=r[0]&&t<=r[1]})}}return"category"===t.type?function(t,e){var n,i,r=Uv(t),o=Dv(e),a=qv(r,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),nt(o))n=Qv(t,o,!0);else if("auto"===o){var s=Wv(t,t.getLabelModel(),Hv(2));i=s.labelCategoryInterval,n=Z(s.labels,function(t){return t.tickValue})}else n=Kv(t,i=o,!0);return Yv(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:Z(t.scale.getTicks(n),function(t){return t.value})}}(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,i){var r=e.length;if(t.onBand&&!n&&r){var o,a,s=t.getExtent();if(1===r)e[0].coord=s[0],e[0].onBand=!0,o=e[1]={coord:s[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/l;Y(e,function(t){t.coord-=u/2,t.onBand=!0});var c=t.scale.getExtent();a=1+c[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*a,tickValue:c[1]+1,onBand:!0},e.push(o)}var h=s[0]>s[1];d(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift()),i&&d(s[0],e[0].coord)&&e.unshift({coord:s[0],onBand:!0}),d(s[1],o.coord)&&(i?o.coord=s[1]:e.pop()),i&&d(o.coord,s[1])&&e.push({coord:s[1],onBand:!0})}function d(t,e){return t=qo(t),e=qo(e),h?t>e:t<e}}(this,n,e.get("alignWithLabel"),t.clamp),n},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),Z(this.scale.getMinorTicks(t),function(t){return Z(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(t){return function(t,e){var n=t.getLabelModel().get("customValues");if(n){var i=kv(t),r=t.scale.getExtent();return{labels:Z(K(Gv(t,n),function(t){return t>=r[0]&&t<=r[1]}),function(e){var n={value:e};return{formattedLabel:i(n),rawLabel:t.scale.getLabel(n),tickValue:e,time:void 0,break:void 0}})}}return"category"===t.type?function(t,e){var n=t.getLabelModel(),i=Wv(t,n,e);return!n.get("show")||t.scale.isBlank()?{labels:[]}:i}(t,e):function(t){var e=t.scale.getTicks(),n=kv(t);return{labels:Z(e,function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value,time:e.time,break:e.break}})}}(t)}(this,t=t||Hv(2)).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(t){return function(t,e){var n=e.kind,i=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),r=kv(t),o=(i.axisRotate-i.labelRotate)/180*Math.PI,a=t.scale,s=a.getExtent(),l=a.count();if(s[1]-s[0]<1)return 0;var u=1;l>40&&(u=Math.max(1,Math.floor(l/40)));for(var c=s[0],h=t.dataToCoord(c+1)-t.dataToCoord(c),d=Math.abs(h*Math.cos(o)),f=Math.abs(h*Math.sin(o)),p=0,g=0;c<=s[1];c+=u){var v,m,y=ze(r({value:c}),i.font,"center","top");v=1.3*y.width,m=1.3*y.height,p=Math.max(p,v,7),g=Math.max(g,m,7)}var _=p/d,x=g/f;isNaN(_)&&(_=1/0),isNaN(x)&&(x=1/0);var b=Math.max(0,Math.floor(Math.min(_,x)));if(1===n)return e.out.noPxChangeTryDetermine.push(J(Zv,null,t,b,l)),b;var w=$v(t,b,l);return null!=w?w:b}(this,t=t||Hv(2))},t}();function em(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var nm=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return b(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(tm);const im=nm;var rm=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function om(t,e,n){n=n||3,e?t.dirty|=n:t.dirty&=~n}function am(t,e){return e=e||3,null==t.dirty||!!(t.dirty&e)}function sm(t){if(t)return am(t)&&function(t,e,n){var i=e.getComputedTransform();t.transform=dp(t.transform,i);var r=t.localRect=hp(t.localRect,e.getBoundingRect()),o=e.style,a=o.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,u=n&&n.marginDefault,c=o.__marginType;null==c&&u&&(a=u,c=Rs.textMargin);for(var h=0;h<4;h++)lm[h]=c===Rs.minMargin&&l&&null!=l[h]?l[h]:s&&null!=s[h]?s[h]:a?a[h]:0;c===Rs.textMargin&&ip(r,lm,!1,!1);var d=t.rect=hp(t.rect,r);i&&d.applyTransform(i),c===Rs.minMargin&&ip(d,lm,!1,!1),t.axisAligned=up(i),(t.label=t.label||{}).ignore=e.ignore,om(t,!1),om(t,!0,2)}(t,t.label,t),t}var lm=[0,0,0,0];function um(t,e){for(var n=0;n<rm.length;n++){var i=rm[n];null==t[i]&&(t[i]=e[i])}return sm(t)}function cm(t){var e=t.obb;return e&&!am(t,2)||(t.obb=e=e||new _f,e.fromBoundingRect(t.localRect,t.transform),om(t,!1,2)),e}function hm(t,e,n,i){return!(!t||!e)&&!(t.label&&t.label.ignore||e.label&&e.label.ignore)&&!!t.rect.intersect(e.rect,n,i)&&(!(!t.axisAligned||!e.axisAligned)||cm(t).intersect(cm(e),n,i))}var dm=Math.PI,fm=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],pm=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],gm=_a(),vm=_a(),mm=function(){function t(t){this.recordMap={},this.resolveAxisNameOverlap=t}return t.prototype.ensureRecord=function(t){var e=t.axis.dim,n=t.componentIndex,i=this.recordMap,r=i[e]||(i[e]=[]);return r[n]||(r[n]={ready:{}})},t}(),ym=[1,0,0,1,0,0],_m=new De(0,0,0,0),xm=function(t,e,n,i,r,o){if(Rv(t.nameLocation)){var a=o.stOccupiedRect;a&&bm(function(t,e,n){return t.transform=dp(t.transform,n),t.localRect=hp(t.localRect,e),t.rect=hp(t.rect,e),n&&t.rect.applyTransform(n),t.axisAligned=up(n),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}({},a,o.transGroup.transform),i,r)}else wm(o.labelInfoList,o.dirVec,i,r)};function bm(t,e,n){var i=new ce;hm(t,e,i,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&function(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var n=t.transform;n&&(n[4]+=e.x,n[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var r=t.obb;r&&r.fromBoundingRect(t.localRect,n)}}(e,i)}function wm(t,e,n,i){for(var r=ce.dot(i,e)>=0,o=0,a=t.length;o<a;o++){var s=t[r?o:a-1-o];s.label.ignore||bm(s,n,i)}}var Sm=function(){function t(t,e,n,i){this.group=new bd,this._axisModel=t,this._api=e,this._local={},this._shared=i||new mm(xm),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(t){var e=this._axisModel,n=e.getDefaultOption?e.getDefaultOption():{},i=ft(t.axisName,e.get("name")),r=e.get("nameMoveOverlap");null!=r&&"auto"!==r||(r=ft(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:ft(t.nameDirection,1),tickDirection:ft(t.tickDirection,1),labelDirection:ft(t.labelDirection,1),labelOffset:ft(t.labelOffset,0),silent:ft(t.silent,!0),axisName:i,nameLocation:pt(e.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Om(i)&&r,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var a=new bd({x:o.position[0],y:o.position[1],rotation:o.rotation});a.updateTransform(),this._transformGroup=a;var s=this._shared.ensureRecord(e);s.transGroup=this._transformGroup,s.dirVec=new ce(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(t,e){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),Y(Cm,function(i){t[i]&&Mm[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,e||{})}),this},t.innerTextLayout=function(t,e,n){var i,r,o=$o(e-t);return Ko(o)?(r=n>0?"top":"bottom",i="center"):Ko(o-dm)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<dm?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),Cm=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Mm={axisLine:function(t,e,n,i,r,o,a){var s=i.get(["axisLine","show"]);if("auto"===s&&(s=!0,null!=t.raw.axisLineAutoShow&&(s=!!t.raw.axisLineAutoShow)),s){var l=i.axis.getExtent(),u=o.transform,c=[l[0],0],h=[l[1],0],d=c[0]>h[0];u&&(gn(c,c,u),gn(h,h,u));var f=W({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),p={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:f};if(i.get(["axisLine","breakLine"])&&i.axis.scale.hasBreaks())null.buildAxisBreakLine(i,r,o,p);else{var g=new Jh(W({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]}},p));Wf(g.shape,g.style.lineWidth),g.anid="line",r.add(g)}var v=i.get(["axisLine","symbol"]);if(null!=v){var m=i.get(["axisLine","symbolSize"]);it(v)&&(v=[v,v]),(it(m)||ot(m))&&(m=[m,m]);var y=Tp(i.get(["axisLine","symbolOffset"])||0,m),_=m[0],x=m[1];Y([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],function(e,n){if("none"!==v[n]&&null!=v[n]){var i=Mp(v[n],-_/2,-x/2,_,x,f.stroke,!0),o=e.r+e.offset,a=d?h:c;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),r.add(i)}})}}},axisTickLabelEstimate:function(t,e,n,i,r,o,a,s){Dm(e,r,s)&&Tm(t,e,n,i,r,o,a,1)},axisTickLabelDetermine:function(t,e,n,i,r,o,a,s){Dm(e,r,s)&&Tm(t,e,n,i,r,o,a,2);var l=function(t,e,n,i){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");if("auto"===a&&(a=!0,null!=t.raw.axisTickAutoShow&&(a=!!t.raw.axisTickAutoShow)),!a||r.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=t.tickDirection*o.get("length"),u=Im(r.getTicksCoords(),n.transform,l,U(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)e.add(u[c]);return u}(t,r,o,i);!function(t,e,n){t.showMinorTicks||Y(e,function(t){if(t&&t.label.ignore)for(var e=0;e<n.length;e++){var i=n[e],r=vm(i),o=gm(t.label);if(null!=r.tickValue&&!r.onBand&&r.tickValue===o.tickValue)return void km(i)}})}(t,e.labelLayoutList,l),function(t,e,n,i,r){var o=i.axis,a=i.getModel("minorTick");if(t.showMinorTicks&&!o.scale.isBlank()){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),u=r*a.get("length"),c=U(l.getLineStyle(),U(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var d=Im(s[h],n.transform,u,c,"minorticks_"+h),f=0;f<d.length;f++)e.add(d[f])}}(t,r,o,i,t.tickDirection)},axisName:function(t,e,n,i,r,o,a,s){var l=n.ensureRecord(i);e.nameEl&&(r.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(Om(u)){var c=t.nameLocation,h=t.nameDirection,d=i.getModel("nameTextStyle"),f=i.get("nameGap")||0,p=i.axis.getExtent(),g=i.axis.inverse?-1:1,v=new ce(0,0),m=new ce(0,0);"start"===c?(v.x=p[0]-g*f,m.x=-g):"end"===c?(v.x=p[1]+g*f,m.x=g):(v.x=(p[0]+p[1])/2,v.y=t.labelOffset+h*f,m.y=h);var y=[1,0,0,1,0,0];m.transform(se(y,y,t.rotation));var _,x,b=i.get("nameRotate");null!=b&&(b=b*dm/180),Rv(c)?_=Sm.innerTextLayout(t.rotation,null!=b?b:t.rotation,h):(_=function(t,e,n,i){var r,o,a=$o(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Ko(a-dm/2)?(o=l?"bottom":"top",r="center"):Ko(a-1.5*dm)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*dm&&a>dm/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,c,b||0,p),null!=(x=t.raw.axisNameAvailableWidth)&&(x=Math.abs(x/Math.sin(_.rotation)),!isFinite(x)&&(x=null)));var w=d.getFont(),S=i.get("nameTruncate",!0)||{},C=S.ellipsis,M=dt(t.raw.nameTruncateMaxWidth,S.maxWidth,x),T=s.nameMarginLevel||0,k=new Vo({x:v.x,y:v.y,rotation:_.rotation,silent:Sm.isLabelSilent(i),style:Cs(d,{text:u,font:w,overflow:"truncate",width:M,ellipsis:C,fill:d.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:d.get("align")||_.textAlign,verticalAlign:d.get("verticalAlign")||_.textVerticalAlign}),z2:1});if(ap({el:k,componentModel:i,itemName:u}),k.__fullText=u,k.anid="name",i.get("triggerEvent")){var I=Sm.makeAxisEventDataBase(i);I.targetType="axisName",I.name=u,Ta(k).eventData=I}o.add(k),k.updateTransform(),e.nameEl=k;var D=l.nameLayout=sm({label:k,priority:k.z2,defaultAttr:{ignore:k.ignore},marginDefault:Rv(c)?fm[T]:pm[T]});if(l.nameLocation=c,r.add(k),k.decomposeTransform(),t.shouldNameMoveOverlap&&D){var A=n.ensureRecord(i);n.resolveAxisNameOverlap(t,n,i,D,m,A)}}}};function Tm(t,e,n,i,r,o,a,s){Am(e)||function(t,e,n,i,r,o){var a=r.axis,s=dt(t.raw.axisLabelShow,r.get(["axisLabel","show"])),l=new bd;n.add(l);var u=Hv(i);if(s&&!a.scale.isBlank()){var c=r.getModel("axisLabel"),h=a.getViewLabels(u),d=(dt(t.raw.labelRotate,c.get("rotate"))||0)*dm/180,f=Sm.innerTextLayout(t.rotation,d,t.labelDirection),p=r.getCategories&&r.getCategories(!0),g=[],v=r.get("triggerEvent"),m=1/0,y=-1/0;Y(h,function(t,e){var n,i="ordinal"===a.scale.type?a.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,s=t.formattedLabel,u=t.rawLabel,d=c;if(p&&p[i]){var _=p[i];at(_)&&_.textStyle&&(d=new js(_.textStyle,c,r.ecModel))}var x=d.getTextColor()||r.get(["axisLine","lineStyle","color"]),b=d.getShallow("align",!0)||f.textAlign,w=ft(d.getShallow("alignMinLabel",!0),b),S=ft(d.getShallow("alignMaxLabel",!0),b),C=d.getShallow("verticalAlign",!0)||d.getShallow("baseline",!0)||f.textVerticalAlign,M=ft(d.getShallow("verticalAlignMinLabel",!0),C),T=ft(d.getShallow("verticalAlignMaxLabel",!0),C),k=10+((null===(n=t.time)||void 0===n?void 0:n.level)||0);m=Math.min(m,k),y=Math.max(y,k);var I=new Vo({x:0,y:0,rotation:0,silent:Sm.isLabelSilent(r),z2:k,style:Cs(d,{text:s,align:0===e?w:e===h.length-1?S:b,verticalAlign:0===e?M:e===h.length-1?T:C,fill:nt(x)?x("category"===a.type?u:"value"===a.type?i+"":i,e):x})});I.anid="label_"+i;var D=gm(I);if(D.break=t.break,D.tickValue=i,D.layoutRotation=f.rotation,ap({el:I,componentModel:r,itemName:s,formatterParamsExtra:{isTruncated:function(){return I.isTruncated},value:u,tickIndex:e}}),v){var A=Sm.makeAxisEventDataBase(r);A.targetType="axisLabel",A.value=u,A.tickIndex=e,t.break&&(A.break={start:t.break.parsedBreak.vmin,end:t.break.parsedBreak.vmax}),"category"===a.type&&(A.dataIndex=i),Ta(I).eventData=A,t.break&&function(t,e,n,i){n.on("click",function(n){var r={type:"expandAxisBreak",breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};r[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(r)})}(r,o,I,t.break)}g.push(I),l.add(I)}),Rm(e,Z(g,function(t){return{label:t,priority:gm(t).break?t.z2+(y-m+1):t.z2,defaultAttr:{ignore:t.ignore}}}),l,u)}else Rm(e,[],l,u)}(t,e,r,s,i,a);var l=e.labelLayoutList;!function(t,e,n,i){var r=e.get(["axisLabel","margin"]);Y(n,function(n,o){var a=sm(n);if(a){var s=a.label,l=gm(s);a.suggestIgnore=s.ignore,s.ignore=!1,Tn(Pm,Lm),Pm.x=e.axis.dataToCoord(l.tickValue),Pm.y=t.labelOffset+t.labelDirection*r,Pm.rotation=l.layoutRotation,i.add(Pm),Pm.updateTransform(),i.remove(Pm),Pm.decomposeTransform(),Tn(s,Pm),s.markRedraw(),om(a,!0),sm(a)}})}(t,i,l,o),function(t,e,n){var i=null;if(i){var r=i.retrieveAxisBreakPairs(n,function(t){return t&&gm(t.label).break},!0),o=t.get(["breakLabelLayout","moveOverlap"],!0);!0!==o&&"auto"!==o||Y(r,function(i){null.adjustBreakLabelPair(t.axis.inverse,e,[sm(n[i[0]]),sm(n[i[1]])])})}}(i,t.rotation,l);var u=t.optionHideOverlap;!function(t,e,n){if(!Av(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]),o=e.length;a(i,0,1),a(r,o-1,o-2)}function a(t,i,r){var o=sm(e[i]),a=sm(e[r]);if(o&&a)if(!1===t||o.suggestIgnore)km(o.label);else if(a.suggestIgnore)km(a.label);else{if(!n){var s=[0,0,0,0];o=um({marginForce:s},o),a=um({marginForce:s},a)}hm(o,a,null,{touchThreshold:.1})&&km(t?a.label:o.label)}}}(i,l,u),u&&function(t){var e=[];function n(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}t.sort(function(t,e){return(e.suggestIgnore?1:0)-(t.suggestIgnore?1:0)||e.priority-t.priority});for(var i=0;i<t.length;i++){var r=sm(t[i]);if(!r.label.ignore){for(var o=r.label,a=r.labelLine,s=!1,l=0;l<e.length;l++)if(hm(r,e[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):e.push(r)}}}(K(l,function(t){return t&&!t.label.ignore})),function(t,e,n,i){var r,o=n.axis,a=e.ensureRecord(n),s=[],l=Om(t.axisName)&&Rv(t.nameLocation);Y(i,function(t){var e=sm(t);if(e&&!e.label.ignore){s.push(e);var n=a.transGroup;l&&(n.transform?le(ym,n.transform):ie(ym),e.transform&&oe(ym,ym,e.transform),De.copy(_m,e.localRect),_m.applyTransform(ym),r?r.union(_m):De.copy(r=new De(0,0,0,0),_m))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",c=a.transGroup[u];if(s.sort(function(t,e){return Math.abs(t.label[u]-c)-Math.abs(e.label[u]-c)}),l&&r){var h=o.getExtent(),d=Math.min(h[0],h[1]),f=Math.max(h[0],h[1])-d;r.union(new De(d,0,f,1))}a.stOccupiedRect=r,a.labelInfoList=s}(t,n,i,l)}function km(t){t&&(t.ignore=!0)}function Im(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(gn(a,a,e),gn(s,s,e));var c=new Jh({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Wf(c.shape,c.style.lineWidth),c.anid=r+"_"+t[l].tickValue,o.push(c);var h=vm(c);h.onBand=!!t[l].onBand,h.tickValue=t[l].tickValue}return o}function Dm(t,e,n){if(Am(t)){var i=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var r=!0,o=0;o<i.length;o++)r=r&&i[o]();if(r)return!1}i.length&&(e.remove(t.labelGroup),Rm(t,null,null,null))}return!0}function Am(t){return!!t.labelLayoutList}function Rm(t,e,n,i){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=i}var Pm=new Mo,Lm=new Mo;function Om(t){return!!t}const Bm=Sm;function zm(t,e,n){n=n||{};var i=e.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,d="x"===l?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(o){var f=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(f,d[1]),d[0])}r.position=["y"===l?d[c[s]]:u[0],"x"===l?d[c[s]]:u[3]],r.rotation=Math.PI/2*("x"===l?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],r.labelOffset=o?d[c[a]]-d[c.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),dt(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var p=e.get(["axisLabel","rotate"]);return r.labelRotate="top"===s?-p:p,r.z2=1,r}function Em(t){var e={xAxisModel:null,yAxisModel:null};return Y(e,function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,Sa).models[0];e[i]=o}),e}var Nm=[[3,1],[0,2]],Fm=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Bv,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=Q(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;Ng(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(Tv(l,s),Ng(l)&&(e=a))}r.length&&(e||Tv((e=r.pop()).scale,e.model),Y(r,function(t){!function(t,e,n){var i=Jg.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,{expandToNicedExtent:!0}),a=r.length-1,s=i.getInterval.call(n),l=Mv(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;"log"===t.type&&(u=Xg(t.base,u,!0)),t.setBreaksFromOption(Lv(e)),t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=i.getExtent.call(t);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var f=i.getInterval.call(t),p=u[0],g=u[1];if(c&&h)f=(g-p)/a;else if(c)for(g=u[0]+f*a;g<u[1]&&isFinite(g)&&isFinite(u[1]);)f=Fg(f),g=u[0]+f*a;else if(h)for(p=u[1]-f*a;p>u[0]&&isFinite(p)&&isFinite(u[0]);)f=Fg(f),p=u[1]-f*a;else{t.getTicks().length-1>a&&(f=Fg(f));var v=f*a;(p=qo((g=Math.ceil(u[1]/f)*f)-v))<0&&u[0]>=0?(p=0,g=qo(v)):g>0&&u[1]<=0&&(g=0,p=-qo(v))}var m=(r[0].value-o[0].value)/s,y=(r[a].value-o[a].value)/s;i.setExtent.call(t,p+f*m,g+f*y),i.setInterval.call(t,f),(m||y)&&i.setNiceExtent.call(t,p+f,g-f)}(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};Y(n.x,function(t){Hm(n,"y",t,r)}),Y(n.y,function(t){Hm(n,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=qc(t,e),r=this._rect=Uc(t.getBoxLayoutParams(),i.refContainer),o=this._axesMap,a=this._coordsList,s=t.get("containLabel");if(Wm(o,r),!n){var l=function(t,e,n,i,r){var o=new mm(qm);return Y(n,function(n){return Y(n,function(n){if(Pv(n.model)){var a=!i;n.axisBuilder=function(t,e,n,i,r,o){for(var a=zm(t,n),s=!1,l=!1,u=0;u<e.length;u++)Ng(e[u].getOtherAxis(n.axis).scale)&&(s=l=!0,"category"===n.axis.type&&n.axis.onBand&&(l=!1));return a.axisLineAutoShow=s,a.axisTickAutoShow=l,a.defaultNameMoveOverlap=o,new Bm(n,i,a,r)}(t,e,n.model,r,o,a)}})}),o}(r,a,o,s,e),u=void 0;if(s)u=jm(r.clone(),"axisLabel",null,r,o,l,i);else{var c=function(t,e,n){var i,r=t.get("outerBoundsMode",!0);"same"===r?i=e.clone():null!=r&&"auto"!==r||(i=Uc(t.get("outerBounds",!0)||Sg,n.refContainer));var o=t.get("outerBoundsContain",!0);return{outerBoundsRect:i,parsedOuterBoundsContain:null==o||"auto"===o||j(["all","axisLabel"],o)<0?"all":o,outerBoundsClamp:[Xo(ft(t.get("outerBoundsClampWidth",!0),Cg[0]),e.width),Xo(ft(t.get("outerBoundsClampHeight",!0),Cg[1]),e.height)]}}(t,r,i),h=c.outerBoundsRect,d=c.parsedOuterBoundsContain,f=c.outerBoundsClamp;h&&(u=jm(h,d,f,r,o,l,i))}Xm(r,o,2,null,u,i)}Y(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}at(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.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},t.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},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",Sa).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",Sa).models[0],a=t.gridModel,s=this._coordsList;return i?j(s,e=i.coordinateSystem)<0&&(e=null):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?n=this.getAxis("x",r.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,i){if(Vm(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new im(e,function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new $g({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new dv({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Yg.getClass(e)||Jg)}}(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}this._axesMap=a,Y(a.x,function(e,n){Y(a.y,function(r,o){var a="x"+n+"y"+o,s=new Nv(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)})})},t.prototype._updateScale=function(t,e){function n(t,e){Y(function(t,e){var n={};return Y(t.mapDimensionsAll(e),function(e){n[function(t,e){return Ou(t,e)?t.getCalculationInfo("stackResultDimension"):e}(t,e)]=!0}),Q(n)}(t,e.dim),function(n){e.scale.unionExtentFromData(t,n)})}Y(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if(function(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}(t)){var i=Em(t),r=i.xAxisModel,o=i.yAxisModel;if(!Vm(r,e)||!Vm(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}},this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Y(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);j(e,r)<0&&e.push(r),j(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)}),e.eachSeries(function(t){!function(t){var e=t.targetModel,n=t.coordSysType,i=t.coordSysProvider,r=t.isDefaultDataCoordSys,o=function(t){var e=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=0;if(e){var r="series"===t.mainType;null==n&&(n=r?"data":"box"),"data"===n?(i=1,r||(i=0)):"box"===n&&(i=2,r||function(t){return!!Tu[t]}(e)||(i=0))}return{coordSysType:e,kind:i}}(e),a=o.kind,s=o.coordSysType;if(r&&1!==a&&(a=1,s=n),0===a||s!==n)return!1;var l=i(n,e);l&&(1===a?e.coordinateSystem=l:e.boxCoordinateSystem=l)}({targetModel:t,coordSysType:"cartesian2d",coordSysProvider:function(){var e=Em(t),n=e.xAxisModel,i=e.yAxisModel;return n.getCoordSysModel().coordinateSystem.getCartesian(n.componentIndex,i.componentIndex)}})}),i},t.dimensions=Bv,t}();function Vm(t,e){return t.getCoordSysModel()===e}function Hm(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)Gm(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&Gm(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function Gm(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}(t)}function Wm(t,e){Y(t.x,function(t){return Um(t,e.x,e.width)}),Y(t.y,function(t){return Um(t,e.y,e.height)})}function Um(t,e,n){var i=[0,n],r=t.inverse?1:0;t.setExtent(i[r],i[1-r]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e)}function jm(t,e,n,i,r,o,a){Xm(i,r,1,e,!1,a);var s=[0,0,0,0];u(0),u(1),c(i,0,NaN),c(i,1,NaN);var l=null==function(t,e){if(t&&e)for(var n=0,i=t.length;n<i;n++)if(e.call(undefined,t[n],n,t))return t[n]}(s,function(t){return t>0});return ip(i,s,!0,!0,n),Wm(r,i),l;function u(t){Y(r[Rf[t]],function(e){if(Pv(e.model)){var n=o.ensureRecord(e.model),i=n.labelInfoList;if(i)for(var r=0;r<i.length;r++){var a=i[r],s=e.scale.normalize(gm(a.label).tickValue);s=1===t?1-s:s,c(a.rect,t,s),c(a.rect,1-t,NaN)}var l=n.nameLayout;l&&(s=Rv(n.nameLocation)?.5:NaN,c(l.rect,t,s),c(l.rect,1-t,NaN))}})}function c(e,n,i){var r=t[Rf[n]]-e[Rf[n]],o=e[Pf[n]]+e[Rf[n]]-(t[Pf[n]]+t[Rf[n]]);r=h(r,1-i),o=h(o,i);var a=Nm[n][0],l=Nm[n][1];s[a]=Go(s[a],r),s[l]=Go(s[l],o)}function h(t,e){return t>0&&!ht(e)&&e>1e-4&&(t/=e),t}}function Xm(t,e,n,i,r,o){var a=2===n;Y(e,function(e){return Y(e,function(e){Pv(e.model)&&(function(t,e,n){var i=zm(e,n);t.updateCfg(i)}(e.axisBuilder,t,e.model),e.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:r}))})});var s={x:0,y:0};function l(e){s[Rf[1-e]]=t[Pf[e]]<=.5*o.refContainer[Pf[e]]?0:1-e==1?2:1}l(0),l(1),Y(e,function(t,e){return Y(t,function(t){Pv(t.model)&&(("all"===i||a)&&t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),a&&t.axisBuilder.build({axisLine:!0}))})})}var qm=function(t,e,n,i,r,o){var a="x"===n.axis.dim?"y":"x";xm(t,0,0,i,r,o),Rv(t.nameLocation)||Y(e.recordMap[a],function(t){t&&t.labelInfoList&&t.dirVec&&wm(t.labelInfoList,t.dirVec,i,r)})};const Ym=Fm;function Zm(t,e){return"all"===t||et(t)&&j(t,e)>=0||t===e}function $m(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Qm(t)]}function Km(t){return!!t.get(["handle","show"])}function Qm(t){return t.type+"||"+t.id}var Jm={};const ty=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return b(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=$m(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=Km(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=function(t){var e=$m(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){Jm[t]=e},e.getAxisPointerClass=function(t){return t&&Jm[t]},e.type="axis",e}(xg);var ey=_a(),ny=["splitArea","splitLine","minorSplitLine","breakArea"],iy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return b(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;this._axisGroup=new bd,this.group.add(this._axisGroup),Pv(e)&&(this._axisGroup.add(e.axis.axisBuilder.group),Y(ny,function(t){e.get([t,"show"])&&ry[t](this,this._axisGroup,e,e.getCoordSysModel(),i)},this),r&&"changeAxisOrder"===r.type&&r.isInitSort||$f(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r))},e.prototype.remove=function(){ey(this).splitAreaColors=null},e.type="cartesianAxis",e}(ty),ry={splitLine:function(t,e,n,i,r){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=!1!==a.get("showMinLine"),c=!1!==a.get("showMaxLine");l=et(l)?l:[l];for(var h=i.coordinateSystem.getRect(),d=o.isHorizontal(),f=0,p=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],v=[],m=s.getLineStyle(),y=0;y<p.length;y++){var _=o.toGlobalCoord(p[y].coord);if((0!==y||u)&&(y!==p.length-1||c)){var x=p[y].tickValue;d?(g[0]=_,g[1]=h.y,v[0]=_,v[1]=h.y+h.height):(g[0]=h.x,g[1]=_,v[0]=h.x+h.width,v[1]=_);var b=f++%l.length,w=new Jh({anid:null!=x?"line_"+x:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},style:U({stroke:l[b]},m),silent:!0});Wf(w.shape,m.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,n,i,r){var o=n.axis,a=n.getModel("minorSplitLine").getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var c=[],h=[],d=a.getLineStyle(),f=0;f<u.length;f++)for(var p=0;p<u[f].length;p++){var g=o.toGlobalCoord(u[f][p].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g);var v=new Jh({anid:"minor_line_"+u[f][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d,silent:!0});Wf(v.shape,d.lineWidth),e.add(v)}},splitArea:function(t,e,n,i,r){!function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,h=ey(t).splitAreaColors,d=Mt(),f=0;if(h)for(var p=0;p<u.length;p++){var g=h.get(u[p].tickValue);if(null!=g){f=(g+(c-1)*p)%c;break}}var v=r.toGlobalCoord(u[0].coord),m=a.getAreaStyle();for(s=et(s)?s:[s],p=1;p<u.length;p++){var y=r.toGlobalCoord(u[p].coord),_=void 0,x=void 0,b=void 0,w=void 0;r.isHorizontal()?(_=v,x=l.y,b=y-_,w=l.height,v=_+b):(_=l.x,x=v,b=l.width,v=x+(w=y-x));var S=u[p-1].tickValue;null!=S&&d.set(S,f),e.add(new Mo({anid:null!=S?"area_"+S:null,shape:{x:_,y:x,width:b,height:w},style:U({fill:s[f]},m),autoBatch:!0,silent:!0})),f=(f+1)%c}ey(t).splitAreaColors=d}}}(t,e,n,i)},breakArea:function(t,e,n,i,r){var o=null,a=n.axis.scale;o&&"ordinal"!==a.type&&o.rectCoordBuildBreakAxis(e,t,n,i.coordinateSystem.getRect(),r)}},oy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return b(e,t),e.type="xAxis",e}(iy),ay=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=oy.type,e}return b(e,t),e.type="yAxis",e}(iy),sy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return b(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Mo({shape:t.coordinateSystem.getRect(),style:U({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(xg),ly={offset:0};function uy(t){t.registerComponentView(sy),t.registerComponentModel(Mg),t.registerCoordinateSystem("cartesian2d",Ym),zg(t,"x",kg,ly),zg(t,"y",kg,ly),t.registerComponentView(oy),t.registerComponentView(ay),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var cy=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hy=[],dy=Lt.browser.firefox&&+Lt.browser.version.split(".")[0]<39;function fy(t,e,n,i){return n=n||{},i?py(t,e,n):dy&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):py(t,e,n),n}function py(t,e,n){if(Lt.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(Uu(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(Wu(hy,t,i,r))return n.zrX=hy[0],void(n.zrY=hy[1])}n.zrX=n.zrY=0}function gy(t){return t||window.event}function vy(t,e,n){if(null!=(e=gy(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&fy(t,r,e,n)}else{fy(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&cy.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function my(t,e,n,i){t.removeEventListener(e,n,i)}var yy=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},_y="\0__throttleOriginMethod",xy="\0__throttleRate",by="\0__throttleType";function wy(t,e,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];i=(new Date).getTime(),o=this,a=t;var f=s||e,p=s||n;s=null,r=i-(p?l:u)-f,clearTimeout(c),p?c=setTimeout(h,f):r>=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function Sy(t,e,n,i){var r=t[e];if(r){var o=r[_y]||r,a=r[by];if(r[xy]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=wy(o,n,"debounce"===i))[_y]=o,r[by]=i,r[xy]=n}return r}}function Cy(t,e){var n=t[e];n&&n[_y]&&(n.clear&&n.clear(),t[e]=n[_y])}var My=_a(),Ty=H,ky=J,Iy=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=tt(Dy,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new bd,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);Ly(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=$m(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=My(t).pointerEl=new y[r.type](Ty(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=My(t).labelEl=new Vo(Ty(e.label));t.add(r),Ry(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=My(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=My(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),Ry(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Jf(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){yy(t.event)},onmousedown:ky(this._onHandleDragMove,this,0,0),drift:ky(this._onHandleDragMove,this),ondragend:ky(this._onHandleDragEnd,this)}),i.add(r)),Ly(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");et(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Sy(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){Dy(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Py(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Py(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Py(i)),My(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.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),Cy(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function Dy(t,e,n,i){Ay(My(n).lastProp,i)||(My(n).lastProp=i,e?Cf(n,i,t):(n.stopAnimation(),n.attr(i)))}function Ay(t,e){if(at(t)&&at(e)){var n=!0;return Y(e,function(e,i){n=n&&Ay(t[i],e)}),!!n}return t===e}function Ry(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Py(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Ly(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function Oy(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:Iv(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};Y(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),it(a)?o=a.replace("{value}",o):nt(a)&&(o=a(s))}return o}function By(t,e,n){var i=[1,0,0,1,0,0];return se(i,i,n.rotation),ae(i,i,n.position),qf([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}var zy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=Ey(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=function(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}(i),h=Ny[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}!function(t,e,n,i,r,o){var a=Bm.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),function(t,e,n,i,r){var o=Oy(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Lc(a.get("padding")||0),l=a.getFont(),u=ze(o,l),c=r.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=r.align;"right"===f&&(c[0]-=h),"center"===f&&(c[0]-=h/2);var p=r.verticalAlign;"bottom"===p&&(c[1]-=d),"middle"===p&&(c[1]-=d/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,d,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Cs(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}(e,i,r,o,{position:By(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}(e,t,zm(a.getRect(),n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=zm(e.axis.grid.getRect(),e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=By(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=Ey(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];return h[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(Iy);function Ey(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var Ny={line:function(t,e,n){var i,r,o;return{type:"Line",subPixelOptimize:!0,shape:(i=[e,n[0]],r=[e,n[1]],o=Fy(t),{x1:i[o=o||0],y1:i[1-o],x2:r[o],y2:r[1-o]})}},shadow:function(t,e,n){var i,r,o,a=Math.max(1,t.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(i=[e-a/2,n[0]],r=[a,s],o=Fy(t),{x:i[o=o||0],y:i[1-o],width:r[o],height:r[1-o]})}}};function Fy(t){return"x"===t.dim?0:1}const Vy=zy,Hy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return b(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Sh.color.border,width:1,type:"dashed"},shadowStyle:{color:Sh.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Sh.color.neutral00,padding:[5,7,5,7],backgroundColor:Sh.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:Sh.color.accent40,throttle:40}},e}(Jc);var Gy=_a(),Wy=Y;function Uy(t,e,n){if(!Lt.node){var i=e.getZr();Gy(i).records||(Gy(i).records={}),function(t,e){function n(n,i){t.on(n,function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);Wy(Gy(t).records,function(t){t&&i(t,n,r.dispatchAction)}),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)})}Gy(t).initialized||(Gy(t).initialized=!0,n("click",tt(Xy,"click")),n("mousemove",tt(Xy,"mousemove")),n("globalout",jy))}(i,e),(Gy(i).records[t]||(Gy(i).records[t]={})).handler=n}}function jy(t,e,n){t.handler("leave",null,n)}function Xy(t,e,n,i){e.handler(t,n,i)}function qy(t,e){if(!Lt.node){var n=e.getZr();(Gy(n).records||{})[t]&&(Gy(n).records[t]=null)}}var Yy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return b(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Uy("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){qy("axisPointer",e)},e.prototype.dispose=function(t,e){qy("axisPointer",e)},e.type="axisPointer",e}(xg);const Zy=Yy;function $y(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=ya(o,t);if(null==a||a<0||et(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,d="x"===c||"radius"===c?1:0,f=o.mapDimension(h),p=[];p[d]=o.get(f,a),p[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(p)||[]}else i=l.dataToPoint(o.getValues(Z(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var Ky=_a();function Qy(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||J(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){i_(r)&&(r=$y({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=i_(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||i_(r),d={},f={},p={list:[],map:{}},g={showPointer:tt(t_,f),showTooltip:tt(e_,p)};Y(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);Y(s.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&Jy(t,a,g,!1,d)}})});var v={};return Y(c,function(t,e){var n=t.linkGroup;n&&!f[e]&&Y(n.axesInfo,function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,n_(e),n_(t)))),v[t.key]=o}})}),Y(v,function(t,e){Jy(c[e],t,g,!0,d)}),function(t,e,n){var i=n.axesInfo=[];Y(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}(f,c,d),function(t,e,n,i){if(!i_(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}(p,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=Ky(i)[r]||{},a=Ky(i)[r]={};Y(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Y(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t})});var s=[],l=[];Y(o,function(t,e){!a[e]&&l.push(t)}),Y(a,function(t,e){!o[e]&&s.push(t)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),d}}function Jy(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return Y(e.seriesModels,function(e,l){var u,c,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(!(c=e.indicesOfNearest(i,h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var f=t-u,p=Math.abs(f);p<=a&&((p<a||f>=0&&s<0)&&(a=p,s=f,r=u,o.length=0),Y(c,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&W(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function t_(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function e_(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Qm(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function n_(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function i_(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function r_(t){ty.registerAxisPointerClass("CartesianAxisPointer",Vy),t.registerComponentModel(Hy),t.registerComponentView(Zy),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!et(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=function(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];Y(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=Qm(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if(Y(n.getAxes(),tt(f,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),d=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||h)&&Y(d.baseAxes,tt(f,!h||"cross",c)),h&&Y(d.otherAxes,tt(f,"cross",!1))}}function f(i,s,c){var h=c.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||i||Km(h))){null==s&&(s=h.get("triggerTooltip")),h=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};Y(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=H(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&U(l,c.textStyle)}}return t.model.getModel("axisPointer",new js(s,n,i))}(c,u,r,e,i,s):h;var f=h.get("snap"),p=h.get("triggerEmphasis"),g=Qm(c.model),v=s||f||"category"===c.type,m=t.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:p,involveSeries:v,snap:f,useHandle:Km(h),seriesModels:[],linkGroup:null};l[g]=m,t.seriesInvolved=t.seriesInvolved||v;var y=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(Zm(o[i+"AxisId"],n.id)||Zm(o[i+"AxisIndex"],n.componentIndex)||Zm(o[i+"AxisName"],n.name))return r}}(o,c);if(null!=y){var _=a[y]||(a[y]={axesInfo:{}});_.axesInfo[g]=m,_.mapper=o[y].mapper,m.linkGroup=_}}}})}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&n.model&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&Y(t.coordSysAxesInfo[Qm(n.model)],function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})})}(n,t),n}(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Qy)}var o_=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},a_=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.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 o_(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new o_(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new o_(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new o_(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new o_(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new o_(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();const s_=a_;var l_=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=fy(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in c_)if(c_.hasOwnProperty(e)){var n=c_[e](this._track,t);if(n)return n}},t}();function u_(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var c_={pinch:function(t,e){var n=t.length;if(n){var i,r=(t[n-1]||{}).points,o=(t[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=u_(r)/u_(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},h_="silent";function d_(){yy(this.event)}var f_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return qt(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Ei),p_=function(t,e){this.x=t,this.y=e},g_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],v_=new De(0,0,0,0),m_=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new p_(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new f_,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new s_(a),a}return qt(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(Y(g_,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=x_(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new p_(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new p_(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:d_}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new p_(t,e);if(__(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new De(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(v_.copy(c.getBoundingRect()),c.transform&&v_.applyTransform(c.transform),v_.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,d=2*Math.PI,f=0;f<s;f+=4)for(var p=0;p<d;p+=h)if(__(o,r,t+f*Math.cos(p),e+f*Math.sin(p),n),r.target)return r}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new l_);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new p_;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(Ei);function y_(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return!r||h_}return!1}function __(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=y_(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==h_)){e.target=a;break}}}function x_(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}Y(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){m_.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=x_(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||fn(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});const b_=m_;function w_(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){for(n--;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function S_(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function C_(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function M_(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function T_(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32)S_(t,n,i,n+(o=w_(t,n,i,e)),e);else{var a=function(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],c=n[s+1],h=i[s+1];i[s]=u+h,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var d=M_(t[c],t,l,u,0,e);l+=d,0!==(u-=d)&&0!==(h=C_(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,i,o,s){var l=0;for(l=0;l<i;l++)a[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0!==--s)if(1!==i){for(var d,f,p,g=r;;){d=0,f=0,p=!1;do{if(e(t[c],a[u])<0){if(t[h++]=t[c++],f++,d=0,0===--s){p=!0;break}}else if(t[h++]=a[u++],d++,f=0,1===--i){p=!0;break}}while((d|f)<g);if(p)break;do{if(0!==(d=M_(t[c],a,u,i,0,e))){for(l=0;l<d;l++)t[h+l]=a[u+l];if(h+=d,u+=d,(i-=d)<=1){p=!0;break}}if(t[h++]=t[c++],0===--s){p=!0;break}if(0!==(f=C_(a[u],t,c,s,0,e))){for(l=0;l<f;l++)t[h+l]=t[c+l];if(h+=f,c+=f,0===(s-=f)){p=!0;break}}if(t[h++]=a[u++],1===--i){p=!0;break}g--}while(d>=7||f>=7);if(p)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[h+l]=a[u+l]}}else{for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else for(l=0;l<i;l++)t[h+l]=a[u+l]}(l,u,c,h):function(n,i,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+i-1,c=s-1,h=o+s-1,d=0,f=0;if(t[h--]=t[u--],0!==--i)if(1!==s){for(var p=r;;){var g=0,v=0,m=!1;do{if(e(a[c],t[u])<0){if(t[h--]=t[u--],g++,v=0,0===--i){m=!0;break}}else if(t[h--]=a[c--],v++,g=0,1===--s){m=!0;break}}while((g|v)<p);if(m)break;do{if(0!==(g=i-M_(a[c],t,n,i,i-1,e))){for(i-=g,f=1+(h-=g),d=1+(u-=g),l=g-1;l>=0;l--)t[f+l]=t[d+l];if(0===i){m=!0;break}}if(t[h--]=a[c--],1===--s){m=!0;break}if(0!==(v=s-C_(t[u],a,0,s,s-1,e))){for(s-=v,f=1+(h-=v),d=1+(c-=v),l=0;l<v;l++)t[f+l]=a[d+l];if(s<=1){m=!0;break}}if(t[h--]=t[u--],0===--i){m=!0;break}p--}while(g>=7||v>=7);if(m)break;p<0&&(p=0),p+=2}if((r=p)<1&&(r=1),1===s){for(f=1+(h-=i),d=1+(u-=i),l=i-1;l>=0;l--)t[f+l]=t[d+l];t[h]=a[c]}else{if(0===s)throw new Error;for(d=h-(s-1),l=0;l<s;l++)t[d+l]=a[l]}}else{for(f=1+(h-=i),d=1+(u-=i),l=i-1;l>=0;l--)t[f+l]=t[d+l];t[h]=a[c]}else for(d=h-(s-1),l=0;l<s;l++)t[d+l]=a[l]}(l,u,c,h))}return n=[],i=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]<i[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,i[o]=e,o+=1}}}(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=w_(t,n,i,e))<s){var l=r;l>s&&(l=s),S_(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var k_=!1;function I_(){k_||(k_=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function D_(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var A_=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=D_}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,T_(n,D_)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),r=e&&e.length,o=0,a=t.__clipPaths;if(!t.ignoreClip&&(r||i)){if(a||(a=t.__clipPaths=[]),r)for(var s=0;s<e.length;s++)a[o++]=e[s];for(var l=i,u=t;l;)l.parent=u,l.updateTransform(),a[o++]=l,u=l,l=l.getClipPath()}if(a&&(a.length=o),t.childrenRef){for(var c=t.childrenRef(),h=0;h<c.length;h++){var d=c[h];t.__dirty&&(d.__dirty|=1),this._updateAndAddDisplayable(d,a,n)}t.__dirty=0}else{var f=t;isNaN(f.z)&&(I_(),f.z=0),isNaN(f.z2)&&(I_(),f.z2=0),isNaN(f.zlevel)&&(I_(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,a,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,a,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,a,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=j(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const R_=A_,P_=Lt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};function L_(){return(new Date).getTime()}var O_=function(t){function e(e){var n=t.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 qt(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){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=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=L_()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,P_(function e(){t._running&&(P_(e),!t._paused&&t.update())})},e.prototype.start=function(){this._running||(this._time=L_(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=L_(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=L_()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Bi(t,e.loop);return this.addAnimator(n),n},e}(Ei);const B_=O_;var z_,E_,N_=Lt.domSupported,F_=(E_={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:z_=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:Z(z_,function(t){var e=t.replace("mouse","pointer");return E_.hasOwnProperty(e)?e:t})}),V_=["mousemove","mouseup"],H_=["pointermove","pointerup"],G_=!1;function W_(t){var e=t.pointerType;return"pen"===e||"touch"===e}function U_(t){t&&(t.zrByTouch=!0)}function j_(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var X_=function(t,e){this.stopPropagation=Dt,this.stopImmediatePropagation=Dt,this.preventDefault=Dt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},q_={mousedown:function(t){t=vy(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=vy(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=vy(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){j_(this,(t=vy(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){G_=!0,t=vy(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){G_||(t=vy(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){U_(t=vy(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),q_.mousemove.call(this,t),q_.mousedown.call(this,t)},touchmove:function(t){U_(t=vy(this.dom,t)),this.handler.processGesture(t,"change"),q_.mousemove.call(this,t)},touchend:function(t){U_(t=vy(this.dom,t)),this.handler.processGesture(t,"end"),q_.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&q_.click.call(this,t)},pointerdown:function(t){q_.mousedown.call(this,t)},pointermove:function(t){W_(t)||q_.mousemove.call(this,t)},pointerup:function(t){q_.mouseup.call(this,t)},pointerout:function(t){W_(t)||q_.mouseout.call(this,t)}};Y(["click","dblclick","contextmenu"],function(t){q_[t]=function(e){e=vy(this.dom,e),this.trigger(t,e)}});var Y_={pointermove:function(t){W_(t)||Y_.mousemove.call(this,t)},pointerup:function(t){Y_.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Z_(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,function(t,e,n,i){t.addEventListener(e,n,i)}(t.domTarget,e,n,i)}function $_(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&my(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var K_=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const Q_=function(t){function e(e,n){var i,r,o,a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=n,a._localHandlerScope=new K_(e,q_),N_&&(a._globalHandlerScope=new K_(document,Y_)),i=a,r=a._localHandlerScope,o=r.domHandlers,Lt.pointerEventsSupported?Y(F_.pointer,function(t){Z_(r,t,function(e){o[t].call(i,e)})}):(Lt.touchEventsSupported&&Y(F_.touch,function(t){Z_(r,t,function(e){o[t].call(i,e),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}(r)})}),Y(F_.mouse,function(t){Z_(r,t,function(e){e=gy(e),r.touching||o[t].call(i,e)})})),a}return qt(e,t),e.prototype.dispose=function(){$_(this._localHandlerScope),N_&&$_(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,N_&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){function n(n){Z_(e,n,function(i){i=gy(i),j_(t,i.target)||(i=function(t,e){return vy(t.dom,new X_(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))},{capture:!0})}Lt.pointerEventsSupported?Y(H_,n):Lt.touchEventsSupported||Y(V_,n)}(this,e):$_(e)}},e}(Ei);var J_={},tx={},ex=function(){function t(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 r=new R_,o=n.renderer||"canvas";J_[o]||(o=Q(J_)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new J_[o](e,r,n,t),s=n.ssr||a.ssrOnly;this.storage=r,this.painter=a;var l,u=Lt.node||Lt.worker||s?null:new Q_(a.getViewportRoot(),a.root),c=n.useCoarsePointer;(null==c||"auto"===c?Lt.touchEventsSupported:!!c)&&(l=ft(n.pointerSize,44)),this.handler=new b_(r,a,u,a.root,l),this.animation=new B_({stage:{update:s?null:function(){return i._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return yi(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=yi(e[r].color,1);return(n/=i)<.4}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=L_();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=L_();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof bd&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;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,t=this.id,delete tx[t])},t}();function nx(t,e){var n=new ex(F(),t,e);return tx[n.id]=n,n}var ix="";"undefined"!=typeof navigator&&(ix=navigator.platform||"");var rx="rgba(0, 0, 0, 0.2)",ox=Sh.color.theme[0],ax=vi(ox,null,null,.9);const sx={darkMode:"auto",colorBy:"series",color:Sh.color.theme,gradientColor:[ax,ox],aria:{decal:{decals:[{color:rx,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:rx,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:rx,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:rx,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:rx,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:rx,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ix.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 lx,ux,cx,hx=Mt(),dx="\0_ec_inner",fx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new js(i),this._locale=new js(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=vx(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,vx(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):cx(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&Y(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=Mt(),s=e&&e.replaceMergeMainTypeMap;ol(this).datasetMap=Mt(),Y(t,function(t,e){null!=t&&(Jc.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?H(t):G(n[e],t,!0))}),s&&s.each(function(t,e){Jc.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),Jc.topologicalTravel(o,Jc.getAllClassMainTypes(),function(e){var o=function(t,e,n){var i=hx.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,la(t[e])),a=i.get(e),l=function(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Mt();Y(e,function(t,n){at(t)||(e[n]=null)});var s,l,u=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||ma(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,a,n);return(i||r)&&function(t,e,n,i){Y(i,function(r,o){if(r&&null!=r.id){var a=pa(r.id),s=n.get(a);if(null!=s){var l=t[s];mt(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}})}(u,t,a,e),i&&function(t,e){Y(e,function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!ma(n)&&!ma(o)&&fa("name",o,n))return t[r].newOption=n,void(e[i]=null)}})}(u,e),i||r?function(t,e,n){Y(e,function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||ma(i.existing)||i.existing&&null!=e.id&&!fa("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}})}(u,e,r):o&&function(t,e){Y(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}(u,e),s=u,l=Mt(),Y(s,function(t){var e=t.existing;e&&l.set(e.id,t)}),Y(s,function(t){var e=t.newOption;mt(!e||null==e.id||!l.get(e.id)||l.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&l.set(e.id,t),!t.keyInfo&&(t.keyInfo={})}),Y(s,function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(at(i)){if(r.name=null!=i.name?pa(i.name):n?n.name:sa+e,n)r.id=pa(n.id);else if(null!=i.id)r.id=pa(i.id);else{var o=0;do{r.id="\0"+r.name+"\0"+o++}while(l.get(r.id))}l.set(r.id,t)}}),u}(a,o,a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll");(function(t,e,n){Y(t,function(t){var i=t.newOption;at(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))})})(l,e,Jc),n[e]=null,i.set(e,null),r.set(e,0);var u,c=[],h=[],d=0;Y(l,function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=Jc.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(u)return;u=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=W({componentIndex:n},t.keyInfo);W(i=new a(r,this,this,s),s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(c.push(i.option),h.push(i),d++):(c.push(void 0),h.push(void 0))},this),n[e]=c,i.set(e,h),r.set(e,d),"series"===e&&lx(this)},this),this._seriesIndices||lx(this)},e.prototype.getOption=function(){var t=H(this.option);return Y(t,function(e,n){if(Jc.hasClass(n)){for(var i=la(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!ma(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[dx],t},e.prototype.setTheme=function(t){this._theme=new js(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=i?(n=[],Y(la(i),function(t){a[t]&&n.push(a[t])})):n=null!=r?px("id",r,a):null!=o?px("name",o,a):K(a,function(t){return!!t}),gx(n,t)):[]},e.prototype.findComponents=function(t){var e,n,i,r,o,a=t.query,s=t.mainType,l=(n=s+"Index",i=s+"Id",r=s+"Name",!(e=a)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:s,index:e[n],id:e[i],name:e[r]});return o=gx(l?this.queryComponents(l):K(this._componentsMap.get(s),function(t){return!!t}),t),t.filter?K(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(nt(t)){var r=e,o=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}})}else for(var a=it(t)?i.get(t):at(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=ga(t,null);return K(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return K(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},e.prototype.getSeries=function(){return K(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){ux(this),Y(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},e.prototype.eachRawSeries=function(t,e){Y(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,e,n){ux(this),Y(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Y(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return ux(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){ux(this);var n=[];Y(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=Mt(n)},e.prototype.restoreData=function(t){lx(this);var e=this._componentsMap,n=[];e.each(function(t,e){Jc.hasClass(e)&&n.push(e)}),Jc.topologicalTravel(n,Jc.getAllClassMainTypes(),function(n){Y(e.get(n),function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t)||e.restoreData()})})},e.internalField=(lx=function(t){var e=t._seriesIndices=[];Y(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=Mt(e)},ux=function(t){},void(cx=function(t,e){t.option={},t.option[dx]=1,t._componentsMap=Mt({series:[]}),t._componentsCount=Mt();var n=e.aria;at(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;Y(e,function(e,i){"colorLayer"===i&&n||"color"===i&&t.color||Jc.hasClass(i)||("object"==typeof e?t[i]=t[i]?G(t[i],e,!1):H(e):null==t[i]&&(t[i]=e))})}(e,t._theme.option),G(e,sx,!1),t._mergeOption(e,null)})),e}(js);function px(t,e,n){if(et(e)){var i=Mt();return Y(e,function(t){null!=t&&null!=ga(t,null)&&i.set(t,!0)}),K(n,function(e){return e&&i.get(e[t])})}var r=ga(e,null);return K(n,function(e){return e&&null!=r&&e[t]===r})}function gx(t,e){return e.hasOwnProperty("subType")?K(t,function(t){return t&&t.subType===e.subType}):t}function vx(t){var e=Mt();return t&&Y(la(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}X(fx,eh);const mx=fx;var yx=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];const _x=function(t){Y(yx,function(e){this[e]=J(t[e],t)},this)};var xx=/^(min|max)?(.+)$/,bx=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Y(la(t.series),function(t){t&&t.data&<(t.data)&&xt(t.data)}),Y(la(t.dataset),function(t){t&&t.source&<(t.source)&&xt(t.source)})),t=H(t);var i=this._optionBackup,r=function(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);function d(t){Y(e,function(e){e(t,n)})}return a?(r=a).timeline||(r.timeline=s):((h||c)&&(t.options=t.media=null),r=t),c&&et(u)&&Y(u,function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))}),d(r),Y(l,function(t){return d(t)}),Y(o,function(t){return d(t.option)}),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],H(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=H(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)Sx(o[u].query,i,r)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=Z(s,function(t){return H(-1===t?a.option:o[t].option)})),this._currentMediaIndices=s,l},t}();function Sx(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return Y(t,function(t,e){var n=e.match(xx);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}}),r}const Cx=bx;var Mx=Y,Tx=at,kx=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ix(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=kx.length;n<i;n++){var r=kx[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?G(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?G(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Dx(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,U(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function Ax(t){Dx(t,"itemStyle"),Dx(t,"lineStyle"),Dx(t,"areaStyle"),Dx(t,"label"),Dx(t,"labelLine"),Dx(t,"upperLabel"),Dx(t,"edgeLabel")}function Rx(t,e){var n=Tx(t)&&t[e],i=Tx(n)&&n.textStyle;if(i)for(var r=0,o=ca.length;r<o;r++){var a=ca[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function Px(t){t&&(Ax(t),Rx(t,"label"),t.emphasis&&Rx(t.emphasis,"label"))}function Lx(t){return et(t)?t:t?[t]:[]}function Ox(t){return(et(t)?t[0]:t)||{}}function Bx(t){t&&Y(zx,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var zx=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Ex=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Nx=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Fx(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Nx.length;n++){var i=Nx[n][1],r=Nx[n][0];null!=e[i]&&(e[r]=e[i])}}function Vx(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Hx(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Gx(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Gx(t[n].children,e)}function Wx(t,e){(function(t,e){Mx(Lx(t.series),function(t){Tx(t)&&function(t){if(Tx(t)){Ix(t),Ax(t),Rx(t,"label"),Rx(t,"upperLabel"),Rx(t,"edgeLabel"),t.emphasis&&(Rx(t.emphasis,"label"),Rx(t.emphasis,"upperLabel"),Rx(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Ix(e),Px(e));var n=t.markLine;n&&(Ix(n),Px(n));var i=t.markArea;i&&Px(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!lt(o))for(var a=0;a<o.length;a++)Px(o[a]);Y(t.categories,function(t){Ax(t)})}if(r&&!lt(r))for(a=0;a<r.length;a++)Px(r[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)Px(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)et(l[a])?(Px(l[a][0]),Px(l[a][1])):Px(l[a])}"gauge"===t.type?(Rx(t,"axisLabel"),Rx(t,"title"),Rx(t,"detail")):"treemap"===t.type?(Dx(t.breadcrumb,"itemStyle"),Y(t.levels,function(t){Ax(t)})):"tree"===t.type&&Ax(t.leaves)}}(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Mx(n,function(e){Mx(Lx(t[e]),function(t){t&&(Rx(t,"axisLabel"),Rx(t.axisPointer,"label"))})}),Mx(Lx(t.parallel),function(t){var e=t&&t.parallelAxisDefault;Rx(e,"axisLabel"),Rx(e&&e.axisPointer,"label")}),Mx(Lx(t.calendar),function(t){Dx(t,"itemStyle"),Rx(t,"dayLabel"),Rx(t,"monthLabel"),Rx(t,"yearLabel")}),Mx(Lx(t.radar),function(t){Rx(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),Mx(Lx(t.geo),function(t){Tx(t)&&(Px(t),Mx(Lx(t.regions),function(t){Px(t)}))}),Mx(Lx(t.timeline),function(t){Px(t),Dx(t,"label"),Dx(t,"itemStyle"),Dx(t,"controlStyle",!0);var e=t.data;et(e)&&Y(e,function(t){at(t)&&(Dx(t,"label"),Dx(t,"itemStyle"))})}),Mx(Lx(t.toolbox),function(t){Dx(t,"iconStyle"),Mx(t.feature,function(t){Dx(t,"iconStyle")})}),Rx(Ox(t.axisPointer),"label"),Rx(Ox(t.tooltip).axisPointer,"label")})(t,e),t.series=la(t.series),Y(t.series,function(t){if(at(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Vx(t.label),(r=t.data)&&!lt(r))for(var n=0;n<r.length;n++)Vx(r[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=function(t){for(var e="pointer.color".split(","),n=t,i=0;i<e.length&&null!=(n=n&&n[e[i]]);i++);return n}(t);null!=i&&function(t,e,n){for(var i,r="itemStyle.color".split(","),o=t,a=0;a<r.length-1;a++)null==o[i=r[a]]&&(o[i]={}),o=o[i];null==o[r[a]]&&(o[r[a]]=n)}(t,0,i)}else if("bar"===e){var r;if(Fx(t),Fx(t.backgroundStyle),Fx(t.emphasis),(r=t.data)&&!lt(r))for(n=0;n<r.length;n++)"object"==typeof r[n]&&(Fx(r[n]),Fx(r[n]&&r[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),Hx(t),Gx(t.data,Hx)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&U(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),Bx(t)}}),t.dataRange&&(t.visualMap=t.dataRange),Y(Ex,function(e){var n=t[e];n&&(et(n)||(n=[n]),Y(n,function(t){Bx(t)}))})}var Ux=_a(),jx={itemStyle:Wt(Hs,!0),lineStyle:Wt(Ns,!0)},Xx={lineStyle:"stroke",itemStyle:"fill"};function qx(t,e){return t.visualStyleMapper||jx[e]||(console.warn("Unknown style type '"+e+"'."),jx.itemStyle)}function Yx(t,e){return t.visualDrawType||Xx[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var Zx={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=qx(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=Yx(t,i),l=o[s],u=nt(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||nt(o.fill)?h:o.fill,o.stroke="auto"===o.stroke||nt(o.stroke)?h:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=W({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},$x=new js,Kx={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=qx(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){$x.option=n[i];var a=r($x);W(t.ensureUniqueItemVisual(e,"style"),a),$x.option.decal&&(t.setItemVisual(e,"decal",$x.option.decal),$x.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Qx={performRawSeries:!0,overallReset:function(t){var e=Mt();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),Ux(t).scope=r}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=Ux(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Yx(e,a);r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}})}})}},Jx=Math.PI,tb=function(){function t(t,e,n,i){this._stageTaskMap=Mt(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Mt();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Y(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});mt(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Y(t,function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each(function(t){a(i,t)&&(t.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,n);var f=o.getPerformArgs(c,i.block);d.each(function(t){t.perform(f)}),c.perform(f)&&(r=!0)}else u&&u.each(function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)})}}),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.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)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Mt(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||oh({plan:ob,reset:ab,count:ub}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||oh({reset:eb});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=Mt(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1;function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,oh({reset:nb,onDirty:rb})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,r._pipe(t,n)}mt(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):u?u(n,i).each(d):(c=!1,Y(n.getSeries(),d)),h&&o.dirty()},t.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},t.wrapStageHandler=function(t,e){return nt(t)&&(t={overallReset:t,seriesType:cb(t)}),t.uid=Eu("stageHandler"),e&&(t.visualType=e),t},t}();function eb(t){t.overallReset(t.ecModel,t.api,t.payload)}function nb(t){return t.overallProgress&&ib}function ib(){this.agent.dirty(),this.getDownstream().dirty()}function rb(){this.agent&&this.agent.dirty()}function ob(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function ab(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=la(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Z(e,function(t,e){return lb(e)}):sb}var sb=lb(0);function lb(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function ub(t){return t.data.count()}function cb(t){hb=null;try{t(db,fb)}catch(t){}return hb}var hb,db={},fb={};function pb(t,e){for(var n in e.prototype)t[n]=Dt}pb(db,mx),pb(fb,_x),db.eachSeriesByType=db.eachRawSeriesByType=function(t){hb=t},db.eachComponent=function(t){"series"===t.mainType&&t.subType&&(hb=t.subType)};const gb=tb;var vb,mb=Sh.darkColor,yb=mb.background,_b=function(){return{axisLine:{lineStyle:{color:mb.axisLine}},splitLine:{lineStyle:{color:mb.axisSplitLine}},splitArea:{areaStyle:{color:[mb.backgroundTint,mb.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:mb.axisMinorSplitLine}},axisLabel:{color:mb.axisLabel},axisName:{}}},xb={label:{color:mb.secondary},itemStyle:{borderColor:mb.borderTint},dividerLineStyle:{color:mb.border}},bb={darkMode:!0,color:mb.theme,backgroundColor:yb,axisPointer:{lineStyle:{color:mb.border},crossStyle:{color:mb.borderShade},label:{color:mb.tertiary}},legend:{textStyle:{color:mb.secondary},pageTextStyle:{color:mb.tertiary}},textStyle:{color:mb.secondary},title:{textStyle:{color:mb.primary},subtextStyle:{color:mb.quaternary}},toolbox:{iconStyle:{borderColor:mb.accent50}},tooltip:{backgroundColor:mb.neutral20,defaultBorderColor:mb.border,textStyle:{color:mb.tertiary}},dataZoom:{borderColor:mb.accent10,textStyle:{color:mb.tertiary},brushStyle:{color:mb.backgroundTint},handleStyle:{color:mb.neutral00,borderColor:mb.accent20},moveHandleStyle:{color:mb.accent40},emphasis:{handleStyle:{borderColor:mb.accent50}},dataBackground:{lineStyle:{color:mb.accent30},areaStyle:{color:mb.accent20}},selectedDataBackground:{lineStyle:{color:mb.accent50},areaStyle:{color:mb.accent30}}},visualMap:{textStyle:{color:mb.secondary},handleStyle:{borderColor:mb.neutral30}},timeline:{lineStyle:{color:mb.accent10},label:{color:mb.tertiary},controlStyle:{color:mb.accent30,borderColor:mb.accent30}},calendar:{itemStyle:{color:mb.neutral00,borderColor:mb.neutral20},dayLabel:{color:mb.tertiary},monthLabel:{color:mb.secondary},yearLabel:{color:mb.secondary}},matrix:{x:xb,y:xb,backgroundColor:{borderColor:mb.axisLine},body:{itemStyle:{borderColor:mb.borderTint}}},timeAxis:_b(),logAxis:_b(),valueAxis:_b(),categoryAxis:_b(),line:{symbol:"circle"},graph:{color:mb.theme},gauge:{title:{color:mb.secondary},axisLine:{lineStyle:{color:[[1,mb.neutral05]]}},axisLabel:{color:mb.axisLabel},detail:{color:mb.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:mb.background}},radar:(vb=_b(),vb.axisName={color:mb.axisLabel},vb.axisLine.lineStyle.color=mb.neutral20,vb),treemap:{breadcrumb:{itemStyle:{color:mb.neutral20,textStyle:{color:mb.secondary}},emphasis:{itemStyle:{color:mb.neutral30}}}},sunburst:{itemStyle:{borderColor:mb.background}},map:{itemStyle:{borderColor:mb.border,areaColor:mb.neutral10},label:{color:mb.tertiary},emphasis:{label:{color:mb.primary},itemStyle:{areaColor:mb.highlight}},select:{label:{color:mb.primary},itemStyle:{areaColor:mb.highlight}}},geo:{itemStyle:{borderColor:mb.border,areaColor:mb.neutral10},emphasis:{label:{color:mb.primary},itemStyle:{areaColor:mb.highlight}},select:{label:{color:mb.primary},itemStyle:{color:mb.highlight}}}};bb.categoryAxis.splitLine.show=!1;const wb=bb;var Sb=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(it(t)){var r=zt(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};Y(t,function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Cb=["symbol","symbolSize","symbolRotate","symbolOffset"],Mb=Cb.concat(["symbolKeepAspect"]),Tb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<Cb.length;a++){var s=Cb[a],l=t.get(s);nt(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(W({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var u=Q(r);return{dataEach:o?function(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,r[s](i,o))}}:null}}}}},kb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<Mb.length;i++){var r=Mb[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}};function Ib(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=ya(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:et(u)?l.getName(u[0]):l.getName(u),selected:it(i)?i:W({},i)})}})}function Db(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var Ab=Math.round(9*Math.random()),Rb="function"==typeof Object.defineProperty,Pb=function(){function t(){this._id="__ec_inner_"+Ab++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return Rb?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}();const Lb=Pb;function Ob(t){return isFinite(t)}function Bb(t,e,n){for(var i="radial"===e.type?function(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),a=Ob(a)?a:.5,s=Ob(s)?s:.5,l=l>=0&&Ob(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=Ob(i)?i:0,r=Ob(r)?r:1,o=Ob(o)?o:0,a=Ob(a)?a:0,t.createLinearGradient(i,o,r,a)}(t,e,n),r=e.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function zb(t){return parseInt(t,10)}function Eb(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||zb(s[i])||zb(t.style[i]))-(zb(s[o])||0)-(zb(s[a])||0)|0}function Nb(t){var e,n,i=t.style,r=i.lineDash&&i.lineWidth>0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:ot(e)?[e]:et(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=Z(r,function(t){return t/a}),o/=a)}return[r,o]}var Fb=new Hr(!0);function Vb(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Hb(t){return"string"==typeof t&&"none"!==t}function Gb(t){var e=t.fill;return null!=e&&"none"!==e}function Wb(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Ub(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function jb(t,e,n){var i=te(e.image,e.__image,n);if(ne(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*At),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var Xb=["shadowBlur","shadowOffsetX","shadowOffsetY"],qb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Yb(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){Kb(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?er.opacity:a}(i||e.blend!==n.blend)&&(o||(Kb(t,r),o=!0),t.globalCompositeOperation=e.blend||er.blend);for(var s=0;s<Xb.length;s++){var l=Xb[s];(i||e[l]!==n[l])&&(o||(Kb(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(Kb(t,r),o=!0),t.shadowColor=e.shadowColor||er.shadowColor),o}function Zb(t,e,n,i,r){var o=Qb(e,r.inHover),a=i?null:n&&Qb(n,r.inHover)||{};if(o===a)return!1;var s=Yb(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(Kb(t,r),s=!0),Hb(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(Kb(t,r),s=!0),Hb(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(Kb(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(Kb(t,r),s=!0),t.lineWidth=l)}for(var u=0;u<qb.length;u++){var c=qb[u],h=c[0];(i||o[h]!==a[h])&&(s||(Kb(t,r),s=!0),t[h]=o[h]||c[1])}return s}function $b(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function Kb(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Qb(t,e){return e&&t.__hoverStyle||t.style}function Jb(t,e){tw(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function tw(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(o,a)||(a&&a.length&&(Kb(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Kb(t,n),t.save(),function(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),$b(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,h,d=e instanceof uo&&e.autoBatch&&function(t){var e=Gb(t),n=Vb(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);s||(c=r,h=u.transform,c&&h?c[0]!==h[0]||c[1]!==h[1]||c[2]!==h[2]||c[3]!==h[3]||c[4]!==h[4]||c[5]!==h[5]:c||h)?(Kb(t,n),$b(t,e)):d||Kb(t,n);var f=Qb(e,n.inHover);e instanceof uo?(1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),Zb(t,e,u,l,n),d&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i){var r,o=Vb(n),a=Gb(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||Fb,h=e.__dirty;if(!i){var d=n.fill,f=n.stroke,p=a&&!!d.colorStops,g=o&&!!f.colorStops,v=a&&!!d.image,m=o&&!!f.image,y=void 0,_=void 0,x=void 0,b=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(y=h?Bb(t,d,w):e.__canvasFillGradient,e.__canvasFillGradient=y),g&&(_=h?Bb(t,f,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),v&&(x=h||!e.__canvasFillPattern?jb(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=x),m&&(b=h||!e.__canvasStrokePattern?jb(t,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),p?t.fillStyle=y:v&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=_:m&&(b?t.strokeStyle=b:o=!1)}var S,C,M=e.getGlobalScale();c.setScale(M[0],M[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(S=(r=Nb(e))[0],C=r[1]);var T=!0;(u||4&h)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),T=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),T&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=C),i||(n.strokeFirst?(o&&Ub(t,n),a&&Wb(t,n)):(a&&Wb(t,n),o&&Ub(t,n))),S&&t.setLineDash([])}(t,e,f,d),d&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):e instanceof fo?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),Zb(t,e,u,l,n),function(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||C,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(i=Nb(e))[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Vb(n)&&t.strokeText(r,n.x,n.y),Gb(n)&&t.fillText(r,n.x,n.y)):(Gb(n)&&t.fillText(r,n.x,n.y),Vb(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}(t,e,f)):e instanceof mo?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(t,e,n,i,r){Yb(t,Qb(e,r.inHover),n&&Qb(n,r.inHover),i,r)}(t,e,u,l,n),function(t,e,n){var i=e.__image=te(n.image,e.__image,e,e.onload);if(i&&ne(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var h=a-(u=n.sx),d=s-(c=n.sy);t.drawImage(i,u,c,h,d,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}(t,e,f)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;o<a;o++)(c=i[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),tw(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c;for(var l=0,u=r.length;l<u;l++){var c;(c=r[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),tw(t,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),d&&i&&Kb(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var ew=new Lb,nw=new Kt(100),iw=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function rw(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&ew.delete(t);var o=ew.get(t);if(o)return o;var a=U(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o=[n],s=!0,l=0;l<iw.length;++l){var u=a[iw[l]];if(null!=u&&!et(u)&&!it(u)&&!ot(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(r?"-svg":"");var c=nw.get(e);c&&(r?t.svgElement=c:t.image=c)}var h,d=aw(a.dashArrayX),f=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(ot(t)){var e=Math.ceil(t);return[e,e]}var n=Z(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}(a.dashArrayY),p=ow(a.symbol),g=Z(d,function(t){return sw(t)}),v=sw(f),m=!r&&T.createCanvas(),y=r&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var t=1,e=0,n=g.length;e<n;++e)t=oa(t,g[e]);var i=1;for(e=0,n=p.length;e<n;++e)i=oa(i,p[e].length);t*=i;var r=v*g.length*p.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();m&&(m.width=_.width*n,m.height=_.height*n,h=m.getContext("2d")),function(){h&&(h.clearRect(0,0,m.width,m.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,m.width,m.height)));for(var t=0,e=0;e<f.length;++e)t+=f[e];if(!(t<=0))for(var o=-v,s=0,l=0,u=0;o<_.height;){if(s%2==0){for(var c=l/2%p.length,g=0,x=0,b=0;g<2*_.width;){var w=0;for(e=0;e<d[u].length;++e)w+=d[u][e];if(w<=0)break;if(x%2==0){var S=.5*(1-a.symbolSize),C=g+d[u][x]*S,M=o+f[s]*S,T=d[u][x]*a.symbolSize,k=f[s]*a.symbolSize,I=b/2%p[c].length;D(C,M,T,k,p[c][I])}g+=d[u][x],++b,++x===d[u].length&&(x=0)}++u===d.length&&(u=0)}o+=f[s],++l,++s===f.length&&(s=0)}function D(t,e,o,s,l){var u=r?1:n,c=Mp(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var d=i.painter.renderOneToVNode(c);d&&y.children.push(d)}else Jb(h,c)}}(),s&&nw.put(e,m||y),t.image=m,t.svgElement=y,t.svgWidth=_.width,t.svgHeight=_.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,ew.set(t,s),t.dirty=!1,s}function ow(t){if(!t||0===t.length)return[["rect"]];if(it(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!it(t[n])){e=!1;break}if(e)return ow([t]);var i=[];for(n=0;n<t.length;++n)it(t[n])?i.push([t[n]]):i.push(t[n]);return i}function aw(t){if(!t||0===t.length)return[[0,0]];if(ot(t))return[[r=Math.ceil(t),r]];for(var e=!0,n=0;n<t.length;++n)if(!ot(t[n])){e=!1;break}if(e)return aw([t]);var i=[];for(n=0;n<t.length;++n)if(ot(t[n])){var r=Math.ceil(t[n]);i.push([r,r])}else(r=Z(t[n],function(t){return Math.ceil(t)})).length%2==1?i.push(r.concat(r)):i.push(r);return i}function sw(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}const lw=new Ei;var uw={},cw=2e3,hw=4500,dw={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:cw,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:hw,ARIA:6e3,DECAL:7e3}},fw="__flagInMainProcess",pw="__mainProcessVersion",gw="__pendingUpdate",vw="__needsUpdateStatus",mw=/^[a-zA-Z0-9_]+$/,yw="__connectUpdateStatus";function _w(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return bw(this,t,e);Xw(this.id)}}function xw(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return bw(this,t,e)}}function bw(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Ei.prototype[e].apply(t,n)}var ww,Sw,Cw,Mw,Tw,kw,Iw,Dw,Aw,Rw,Pw,Lw,Ow,Bw,zw,Ew,Nw,Fw,Vw,Hw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e}(Ei),Gw=Hw.prototype;Gw.on=xw("on"),Gw.off=xw("off");var Ww=function(t){function e(e,n,i){var r=t.call(this,new Sb)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},r._dom=e,r[pw]=1,i.ssr;var o=r._zr=nx(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:ft(i.useDirtyRect,!1),useCoarsePointer:ft(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=wy(J(o.flush,o),17),r._updateTheme(n),r._locale=function(t){if(it(t)){var e=Ku[t.toUpperCase()]||{};return t===Yu||t===Zu?H(e):G(H(e),H(Ku[$u]),!1)}return G(H(t),H(Ku[$u]),!1)}(i.locale||Ju),r._coordSysMgr=new Au;var a=r._api=zw(r);function s(t,e){return t.__prio-e.__prio}return T_(Qw,s),T_($w,s),r._scheduler=new gb(r,a,$w,Qw),r._messageCenter=new Hw,r._initEvents(),r.resize=J(r.resize,r),o.animation.on("frame",r._onframe,r),Rw(o,r),Pw(o,r),xt(r),r}return b(e,t),e.prototype._onframe=function(){if(!this._disposed){Fw(this);var t=this._scheduler;if(this[gw]){var e=this[gw].silent;this[fw]=!0,Vw(this);try{ww(this),Mw.update.call(this,null,this[gw].updateParams)}catch(t){throw this[fw]=!1,this[gw]=null,t}this._zr.flush(),this[fw]=!1,this[gw]=null,Dw.call(this,e),Aw.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),kw(this,i),t.performVisualTasks(i),Bw(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[fw])if(this._disposed)Xw(this.id);else{var i,r,o;if(at(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[fw]=!0,Vw(this),!this._model||e){var a=new Cx(this._api),s=this._theme,l=this._model=new mx;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},Kw);var u={seriesTransition:o,optionChanged:!0};if(n)this[gw]={silent:i,updateParams:u},this[fw]=!1,this.getZr().wakeUp();else{try{ww(this),Mw.update.call(this,null,u)}catch(t){throw this[gw]=null,this[fw]=!1,t}this._ssr||this._zr.flush(),this[gw]=null,this[fw]=!1,Dw.call(this,i),Aw.call(this,i)}}},e.prototype.setTheme=function(t,e){if(!this[fw])if(this._disposed)Xw(this.id);else{var n=this._model;if(n){var i=e&&e.silent,r=null;this[gw]&&(null==i&&(i=this[gw].silent),r=this[gw].updateParams,this[gw]=null),this[fw]=!0,Vw(this);try{this._updateTheme(t),n.setTheme(this._theme),ww(this),Mw.update.call(this,{type:"setTheme"},r)}catch(t){throw this[fw]=!1,t}this[fw]=!1,Dw.call(this,i),Aw.call(this,i)}}},e.prototype._updateTheme=function(t){it(t)&&(t=Jw[t]),t&&((t=H(t))&&Wx(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Lt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr;return Y(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;Y(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Y(i,function(t){t.group.ignore=!1}),o}Xw(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(nS[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Y(eS,function(o,h){if(o.group===n){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(H(t)),f=o.getDom().getBoundingClientRect();a=i(f.left,a),s=i(f.top,s),l=r(f.right,l),u=r(f.bottom,u),c.push({dom:d,left:f.left,top:f.top})}});var d=(l*=h)-(a*=h),f=(u*=h)-(s*=h),p=T.createCanvas(),g=nx(p,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:f}),e){var v="";return Y(c,function(t){var e=t.left-a,n=t.top-s;v+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new Mo({shape:{x:0,y:0,width:d,height:f},style:{fill:t.connectedBackgroundColor}})),Y(c,function(t){var e=new mo({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)}),g.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}Xw(this.id)},e.prototype.convertToPixel=function(t,e,n){return Tw(this,"convertToPixel",t,e,n)},e.prototype.convertToLayout=function(t,e,n){return Tw(this,"convertToLayout",t,e,n)},e.prototype.convertFromPixel=function(t,e,n){return Tw(this,"convertFromPixel",t,e,n)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return Y(ba(this._model,t),function(t,i){i.indexOf("Models")>=0&&Y(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n;Xw(this.id)},e.prototype.getVisual=function(t,e){var n=ba(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?function(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}(i,r,e):function(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Y(jw,function(e){var n=function(n){var i,r=t.getModel(),o=n.target;if("globalout"===e?i={}:o&&Db(o,function(t){var e=Ta(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return i=W({},e.eventData),!0},!0),i){var a=i.componentType,s=i.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=i.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&t["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:l,view:u},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)});var e=this._messageCenter;Y(Zw,function(n,i){e.on(i,function(e){t.trigger(i,e)})}),function(t,e,n){t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(Ib("map","selectchanged",e,i,t),Ib("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Ib("map","selected",e,i,t),Ib("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Ib("map","unselected",e,i,t),Ib("pie","unselected",e,i,t))})}(e,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?Xw(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)Xw(this.id);else{this._disposed=!0,this.getDom()&&Ma(this.getDom(),rS,"");var t=this,e=t._api,n=t._model;Y(t._componentsViews,function(t){t.dispose(n,e)}),Y(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete eS[t.id]}},e.prototype.resize=function(t){if(!this[fw])if(this._disposed)Xw(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[gw]&&(null==i&&(i=this[gw].silent),n=!0,this[gw]=null),this[fw]=!0,Vw(this);try{n&&ww(this),Mw.update.call(this,{type:"resize",animation:W({duration:0},t&&t.animation)})}catch(t){throw this[fw]=!1,t}this[fw]=!1,Dw.call(this,i),Aw.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)Xw(this.id);else if(at(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),tS[t]){var n=tS[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?Xw(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=W({},t);return e.type=Yw[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)Xw(this.id);else if(at(e)||(e={silent:!!e}),qw[t.type]&&this._model)if(this[fw])this._pendingActions.push(t);else{var n=e.silent;Iw.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&Lt.browser.weChat&&this._throttledZrFlush(),Dw.call(this,n),Aw.call(this,n)}},e.prototype.updateLabelLayout=function(){lw.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)Xw(this.id);else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function e(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=fp(t);e.eachRendered(function(t){return gp(t,n.z,n.zlevel),!0})}}function i(t,e){e.eachRendered(function(t){if(!Tf(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function r(t,n){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered(function(t){if(t.states&&t.states.emphasis){if(Tf(t))return;if(t instanceof uo&&function(t){var e=Da(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}})}ww=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Sw(t,!0),Sw(t,!1),e.plan()},Sw=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=zt(t.type);(c=new(e?xg.getClass(h.main,h.sub):og.getClass(h.sub))).init(n,s),o[u]=c,r.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(c,t,n,s)}for(e?n.eachComponent(function(t,e){"series"!==t&&u(e)}):n.eachSeries(u),l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},Cw=function(t,e,n,i,r){var o=t._model;if(o.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};r&&(s.subType=r);var l,u=n.excludeSeriesId;null!=u&&(l=Mt(),Y(la(u),function(t){var e=ga(t,null);null!=e&&l.set(e,!0)})),o&&o.eachComponent(s,function(e){if(!l||null==l.get(e.id))if(_s(n))if(e instanceof Zh)n.type!==La||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=ya(r,e);o=(et(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var u=Ta(a);ss(i,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&ss(i,c,h,n)}}}(e,n,t._api);else{var i=us(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,o=i.dispatchers;n.type===La&&r&&!n.notBlur&&ls(e.mainType,e.componentIndex,t._api),o&&Y(o,function(t){n.type===La?ts(t):es(t)})}else ys(n)&&e instanceof Zh&&(function(t,e){if(ys(e)){var n=e.dataType,i=ya(t.getData(n),e);et(i)||(i=[i]),t[e.type===Ea?"toggleSelect":e.type===Ba?"select":"unselect"](i,n)}}(e,n,t._api),cs(e),Nw(t))},t),o&&o.eachComponent(s,function(e){l&&null!=l.get(e.id)||c(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)}else Y([].concat(t._componentsViews).concat(t._chartsViews),c);function c(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}},Mw={prepareAndUpdate:function(t){ww(this),Mw.update.call(this,t,t&&{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),kw(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e);var l=i.get("backgroundColor")||"transparent";o.setBackgroundColor(l);var u=i.get("darkMode");null!=u&&"auto"!==u&&o.setDarkMode(u),Lw(this,i,r,e,n),lw.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var o=[];i.eachComponent(function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,e);l&&l.update&&o.push(s)}else o.push(s)}});var a=Mt();i.eachSeries(function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,i,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)}),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:a}),Bw(this,i,r,e,{},a),lw.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),og.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),Lw(this,n,this._api,e,{}),lw.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries(function(t){t.getData().clearAllVisual()}),og.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent(function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}}),i.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)}),lw.trigger("afterupdate",i,this._api))},updateLayout:function(t){Mw.update.call(this,t)}},Tw=function(t,e,n,i,r){if(t._disposed)Xw(t.id);else for(var o,a=t._model,s=t._coordSysMgr.getCoordinateSystems(),l=ba(a,n),u=0;u<s.length;u++){var c=s[u];if(c[e]&&null!=(o=c[e](a,l,i,r)))return o}},kw=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},Iw=function(t,e){var n=this,i=this.getModel(),r=t.type,o=t.escapeConnect,a=qw[r],s=(a.update||"update").split(":"),l=s.pop(),u=null!=s[0]&&zt(s[0]);this[fw]=!0,Vw(this);var c=[t],h=!1;t.batch&&(h=!0,c=Z(t.batch,function(e){return(e=U(W({},e),t)).batch=null,e}));var d,f=[],p=[],g=a.nonRefinedEventType,v=ys(t),m=_s(t);if(m&&as(this._api),Y(c,function(e){var r=a.action(e,i,n._api);if(a.refineEvent?p.push(r):d=r,(d=d||W({},e)).type=g,f.push(d),m){var o=wa(t),s=o.queryOptionMap,c=o.mainTypeSpecified?s.keys()[0]:"series";Cw(n,l,e,c),Nw(n)}else v?(Cw(n,l,e,"series"),Nw(n)):u&&Cw(n,l,e,u.main,u.sub)}),"none"!==l&&!m&&!v&&!u)try{this[gw]?(ww(this),Mw.update.call(this,t),this[gw]=null):Mw[l].call(this,t)}catch(t){throw this[fw]=!1,t}if(d=h?{type:g,escapeConnect:o,batch:f}:f[0],this[fw]=!1,!e){var y=void 0;if(a.refineEvent){var _=a.refineEvent(p,t,i,this._api).eventContent;mt(at(_)),(y=U({type:a.refinedEventType},_)).fromAction=t.type,y.fromActionPayload=t,y.escapeConnect=!0}var x=this._messageCenter;x.trigger(d.type,d),y&&x.trigger(y.type,y)}},Dw=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Iw.call(this,n,t)}},Aw=function(t){!t&&this.trigger("updated")},Rw=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[gw]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},Pw=function(t,e){t.on("mouseover",function(t){var n=Db(t.target,ms);n&&(function(t,e,n){var i=Ta(t),r=us(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&ls(i.componentMainType,i.componentIndex,n),Y(o,function(t){return Qa(t,e)})):(ss(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&ls(i.componentMainType,i.componentIndex,n),Qa(t,e))}(n,t,e._api),Nw(e))}).on("mouseout",function(t){var n=Db(t.target,ms);n&&(function(t,e,n){as(n);var i=Ta(t),r=us(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?Y(r,function(t){return Ja(t,e)}):Ja(t,e)}(n,t,e._api),Nw(e))}).on("click",function(t){var n=Db(t.target,function(t){return null!=Ta(t).dataIndex},!0);if(n){var i=n.selected?"unselect":"select",r=Ta(n);e._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}})},Lw=function(t,e,n,i,r){!function(t){var e=[],n=[],i=!1;if(t.eachComponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),i){var r,o,a=e.concat(n);T_(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),Y(a,function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)})}}(e),Ow(t,e,n,i,r),Y(t._chartsViews,function(t){t.__alive=!1}),Bw(t,e,n,i,r),Y(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},Ow=function(t,e,o,a,s,l){Y(l||t._componentsViews,function(t){var s=t.__model;i(0,t),t.render(s,e,o,a),n(s,t),r(s,t)})},Bw=function(t,e,o,a,s,l){var u=t._scheduler;s=W(s||{},{updatedSeries:e.getSeries()}),lw.trigger("series:beforeupdate",e,o,s);var c=!1;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,a),i(0,n),l&&l.get(e.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(c=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=n)})}(e,n),cs(e)}),u.unfinished=c||u.unfinished,lw.trigger("series:layoutlabels",e,o,s),lw.trigger("series:transition",e,o,s),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];n(e,i),r(e,i)}),function(t,e){var n=t._zr.storage,i=0;n.traverse(function(t){t.isGroup||i++}),i>e.get("hoverLayerThreshold")&&!Lt.node&&!Lt.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}(t,e),lw.trigger("series:afterupdate",e,o,s)},Nw=function(t){t[vw]=!0,t.getZr().wakeUp()},Vw=function(t){t[pw]=(t[pw]+1)%1e3},Fw=function(t){t[vw]&&(t.getZr().storage.traverse(function(t){Tf(t)||e(t)}),t[vw]=!1)},zw=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return b(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){ts(e,n),Nw(t)},n.prototype.leaveEmphasis=function(e,n){es(e,n),Nw(t)},n.prototype.enterBlur=function(e){!function(t){Ya(t,Wa)}(e),Nw(t)},n.prototype.leaveBlur=function(e){ns(e),Nw(t)},n.prototype.enterSelect=function(e){is(e),Nw(t)},n.prototype.leaveSelect=function(e){rs(e),Nw(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n.prototype.getMainProcessVersion=function(){return t[pw]},n}(_x))(t)},Ew=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][yw]=e}Y(Yw,function(n,i){t._messageCenter.on(i,function(n){if(nS[t.group]&&0!==t[yw]){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];Y(eS,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),Y(r,function(t){1!==t[yw]&&t.dispatchAction(i)}),e(r,2)}})})}}(),e}(Ei),Uw=Ww.prototype;Uw.on=_w("on"),Uw.off=_w("off"),Uw.one=function(t,e,n){var i=this;this.on.call(this,t,function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)},n)};var jw=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Xw(t){}var qw={},Yw={},Zw={},$w=[],Kw=[],Qw=[],Jw={},tS={},eS={},nS={},iS=+new Date-0,rS=(new Date,"_echarts_instance_");function oS(t){return eS[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,rS)]}function aS(t,e){Jw[t]=e}function sS(t){j(Kw,t)<0&&Kw.push(t)}function lS(t,e){fS($w,t,e,2e3)}function uS(t,e){lw.on(t,e)}function cS(t,e,n){var i,r,o,a,s;function l(t){return t.toLowerCase()}nt(e)&&(n=e,e=""),at(t)?(i=t.type,r=t.event,a=t.update,s=t.publishNonRefinedEvent,n||(n=t.action),o=t.refineEvent):(i=t,r=e),r=l(r||i);var u=o?l(i):r;qw[i]||(mt(mw.test(i)&&mw.test(r)),o&&mt(r!==i),qw[i]={actionType:i,refinedEventType:r,nonRefinedEventType:u,update:a,action:n,refineEvent:o},Zw[r]=1,o&&s&&(Zw[u]=1),Yw[u]=i)}function hS(t,e){fS(Qw,t,e,3e3,"visual")}var dS=[];function fS(t,e,n,i,r){if((nt(e)||at(e))&&(n=e,e=i),!(j(dS,n)>=0)){dS.push(n);var o=gb.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function pS(t,e){tS[t]=e}function gS(t,e,n,i){return{eventContent:{selected:hs(n),isFromClick:e.isFromClick||!1}}}hS(cw,Zx),hS(hw,Kx),hS(hw,Qx),hS(cw,Tb),hS(hw,kb),hS(7e3,function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=rw(n,e))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=rw(r,e))}})}),sS(Wx),lS(900,function(t){var e=Mt();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.push(o)}}),e.each(function(t){0!==t.length&&("seriesDesc"===(t[0].seriesModel.get("stackOrder")||"seriesAsc")&&t.reverse(),Y(t,function(e,n){e.data.setCalculationInfo("stackedOnSeries",n>0?t[n-1].seriesModel:null)}),function(t){Y(t,function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,c){var h,d,f=a.get(e.stackedDimension,c);if(isNaN(f))return r;s?d=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var p=NaN,g=n-1;g>=0;g--){var v=t[g];if(s||(d=v.data.rawIndexOf(v.stackedByDimension,h)),d>=0){var m=v.data.getByRawIndex(v.stackResultDimension,d);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&f>=0&&m>0||"samesign"===l&&f<=0&&m<0){f=Zo(f,m),p=m;break}}}return i[0]=f,i[1]=p,i})})}(t))})}),pS("default",function(t,e){U(e=e||{},{text:"loading",textColor:Sh.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Sh.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new bd,i=new Mo({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new Vo({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Mo({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new rf({shape:{startAngle:-Jx/2,endAngle:-Jx/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Jx/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Jx/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),cS({type:La,event:La,update:La},Dt),cS({type:Oa,event:Oa,update:Oa},Dt),cS({type:Ba,event:Na,update:Ba,action:Dt,refineEvent:gS,publishNonRefinedEvent:!0}),cS({type:za,event:Na,update:za,action:Dt,refineEvent:gS,publishNonRefinedEvent:!0}),cS({type:Ea,event:Na,update:Ea,action:Dt,refineEvent:gS,publishNonRefinedEvent:!0}),aS("default",{}),aS("dark",wb);var vS={},mS=[],yS={registerPreprocessor:sS,registerProcessor:lS,registerPostInit:function(t){uS("afterinit",t)},registerPostUpdate:function(t){uS("afterupdate",t)},registerUpdateLifecycle:uS,registerAction:cS,registerCoordinateSystem:function(t,e){Au.register(t,e)},registerLayout:function(t,e){fS(Qw,t,e,1e3,"layout")},registerVisual:hS,registerTransform:function(t){var e=(t=H(t)).type;e||Tl("");var n=e.split(":");2!==n.length&&Tl("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,fh.set(e,t)},registerLoading:pS,registerMap:function(t,e,n){var i=uw.registerMap;i&&i(t,e,n)},registerImpl:function(t,e){uw[t]=e},PRIORITY:dw,ComponentModel:Jc,ComponentView:xg,SeriesModel:Zh,ChartView:og,registerComponentModel:function(t){Jc.registerClass(t)},registerComponentView:function(t){xg.registerClass(t)},registerSeriesModel:function(t){Zh.registerClass(t)},registerChartView:function(t){og.registerClass(t)},registerCustomSeries:function(t,e){!function(t,e){vS[t]=e}(t,e)},registerSubTypeDefaulter:function(t,e){Jc.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){var n;n=e,J_[t]=n}};function _S(t){et(t)?Y(t,function(t){_S(t)}):j(mS,t)>=0||(mS.push(t),nt(t)&&(t={install:t}),t.install(yS))}const xS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return b(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Sh.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Sh.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Sh.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Sh.color.tertiary,fontSize:14}},e}(Jc);function bS(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function wS(t){if(Lt.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var SS=wS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function CS(t,e){if(!t)return e;e=Pc(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var MS=CS(wS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),TS=CS(SS,"transform"),kS="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Lt.transform3dSupported?"will-change:transform;":"");function IS(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!Lt.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=Lt.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+TS+":"+a+";":[["top",0],["left",0],[SS,a]]}function DS(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,i,r){Wu(Gu,e,i,r,!0)&&Wu(t,n,Gu[0],Gu[1])}(t,a,n,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var AS=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Lt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),r=e.appendTo,o=r&&(it(r)?document.querySelector(r):ut(r)?r:nt(r)&&r(t.getDom()));DS(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler;vy(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=(o="position",(a=(r=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r))?o?a[o]:a:null),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r,o,a,s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=kS+function(t,e,n,i){var r=[],o=t.get("transitionDuration"),a=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),h=t.getModel("textStyle"),d=Eh(t,"html"),f=u+"px "+c+"px "+s+"px "+l;return r.push("box-shadow:"+f),e&&o>0&&r.push(function(t,e,n){var i="cubic-bezier(0.23,1,0.32,1)",r="",o="";return n&&(o="opacity"+(r=" "+t/2+"s "+i)+",visibility"+r),e||(r=" "+t+"s "+i,o+=(o.length?",":"")+(Lt.transformSupported?""+TS+r:",left"+r+",top"+r)),MS+":"+o}(o,n,i)),a&&r.push("background-color:"+a),Y(["width","color","radius"],function(e){var n="border-"+e,i=Pc(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))}),r.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var r=ft(t.get("lineHeight"),Math.round(3*n/2));n&&e.push("line-height:"+r+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),Y(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}(h)),null!=d&&r.push("padding:"+Lc(d).join("px ")+"px"),r.join(";")+";"}(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+IS(r[0],r[1],!0)+"border-color:"+Nc(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if(it(r)&&"item"===n.get("trigger")&&!bS(n)&&(a=function(t,e,n){if(!it(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=Nc(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(r),6),u="",c=TS+":";j(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var h=a*Math.PI/180,d=l+r,f=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),p=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((f-Math.SQRT2*r)/2+Math.SQRT2*r-(f-d)/2))/100+"px")+";"+c+";","border-bottom:"+p,"border-right:"+p,"background-color:"+i+";"].join("")+'"></div>'}(n,i,r)),it(t))o.innerHTML=t+a;else if(t){o.innerHTML="",et(t)||(t=[t]);for(var s=0;s<t.length;s++)ut(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(DS(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style;Y(IS(n[0],n[1]),function(t){i[t[0]]=t[1]})}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",Lt.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(J(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;!function(t,e){function n(t){var e=t[Hu];e&&(e.clearMarkers&&e.clearMarkers(),delete t[Hu])}t&&n(t),e&&n(e)}(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var n=e.parentNode;n&&n.removeChild(e)}this.el=this._container=null},t}();const RS=AS;function PS(t){return Math.max(0,t)}function LS(t){var e=PS(t.shadowBlur||0),n=PS(t.shadowOffsetX||0),i=PS(t.shadowOffsetY||0);return{left:PS(e-n),right:PS(e+n),top:PS(e-i),bottom:PS(e+i)}}function OS(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const BS=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),OS(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){var o=this;at(t)&&Tl(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Vo({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Eh(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),Y(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),Y(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=LS(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;OS(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=PS(r.borderWidth||0),a=LS(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(J(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();var zS=new Mo({shape:{x:-1,y:-1,width:2,height:2}}),ES=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return b(e,t),e.prototype.init=function(t,e){if(!Lt.node&&e.getDom()){var n,i=t.getComponent("tooltip"),r=this._renderMode="auto"===(n=i.get("renderMode"))?Lt.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===r?new BS(e):new RS(e,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!Lt.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Sy(this,"_updatePosition",50,"fixRate"):Cy(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");Uy("itemTooltip",this._api,J(function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!Lt.node&&n.getDom()){var r=FS(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=wa(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o,a=Ca(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a)return n.getViewOfComponentModel(a).group.traverse(function(e){var n=Ta(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0}),o?{componentMainType:r,componentIndex:a.componentIndex,el:o}:void 0}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=zS;l.x=i.x,l.y=i.y,l.update(),Ta(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=$y(i,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(FS(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===NS([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;if("legend"===Ta(n).ssrType)return;this._lastDataByCoordSys=null,Db(n,function(t){if(t.tooltipDisabled)return r=o=null,!0;r||o||(null!=Ta(t).dataIndex?r=t:null!=Ta(t).tooltipConfig&&(o=t))},!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=J(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=NS([e.tooltipOption],i),a=this._renderMode,s=[],l=Ih("section",{blocks:[],noHeader:!0}),u=[],c=new Nh;Y(t,function(t){Y(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=Oy(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=Ih("section",{header:o,noHeader:!yt(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Y(t.seriesDataIndices,function(l){var d=n.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=d.getDataParams(f);if(!(p.dataIndex<0)){p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=Iv(e.axis,{value:r}),p.axisValueLabel=o,p.marker=c.makeTooltipMarker("item",Nc(p.color),a);var g=rh(d.formatTooltip(f,!0,null)),v=g.frag;if(v){var m=NS([d],i).get("valueFormatter");h.blocks.push(m?W({valueFormatter:m},v):v)}g.text&&u.push(g.text),s.push(p)}})}})}),l.blocks.reverse(),u.reverse();var h=e.position,d=o.get("order"),f=Oh(l,c,a,d,n.get("useUTC"),o.get("textStyle"));f&&u.unshift(f);var p="richText"===a?"\n\n":"<br/>",g=u.join(p);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],h,null,c)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=Ta(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,f=NS([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=f.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(l,u),v=new Nh;g.marker=v.makeTooltipMarker("item",Nc(g.color),h);var m=rh(s.formatTooltip(l,!1,u)),y=f.get("order"),_=f.get("valueFormatter"),x=m.frag,b=x?Oh(_?W({valueFormatter:_},x):x,v,h,y,i.get("useUTC"),f.get("textStyle")):m.text,w="item_"+s.name+"_"+l;this._showOrMove(f,function(){this._showTooltipContent(f,b,g,w,t.offsetX,t.offsetY,t.position,t.target,v)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=Ta(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;it(o)&&(o={content:o,formatter:o},a=!0),a&&i&&o.content&&((o=H(o)).content=qu(o.content));var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,c=NS(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),d=Math.random()+"",f=new Nh;this._showOrMove(c,function(){var n=H(c.get("formatterParams")||{});this._showTooltipContent(c,h,n,d,t.offsetX,t.offsetY,t.position,e,f)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,d=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)).color;if(c)if(it(c)){var f=t.ecModel.get("useUTC"),p=et(n)?n[0]:n;h=c,p&&p.axisType&&p.axisType.indexOf("time")>=0&&(h=pc(p.axisValue,h,f)),h=Ec(h,n,!0)}else if(nt(c)){var g=J(function(e,i){e===this._ticket&&(u.setContent(i,l,t,d,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,h=c(n,i,g)}else h=c;u.setContent(h,l,t,d,a),u.show(t,d),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i,r){return"axis"===n||et(e)?{color:i||r}:et(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),nt(e)&&(e=e([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),et(e))n=jo(e[0],s),i=jo(e[1],l);else if(at(e)){var f=e;f.width=u[0],f.height=u[1];var p=Uc(f,{width:s,height:l});n=p.x,i=p.y,c=null,h=null}else if(it(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,d,u,t.get("borderWidth"));n=g[0],i=g[1]}else g=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}(n,i,r,s,l,c?null:20,h?null:20),n=g[0],i=g[1];c&&(n-=VS(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=VS(h)?u[1]/2:"bottom"===h?u[1]:0),bS(t)&&(g=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(n,i,r,s,l),n=g[0],i=g[1]),r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&Y(n,function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&Y(a,function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&Y(a,function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&Y(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!Lt.node&&e.getDom()&&(Cy(this,"_updatePosition"),this._tooltipContent.dispose(),qy("itemTooltip",e))},e.type="tooltip",e}(xg);function NS(t,e,n){var i,r=e.ecModel;n?(i=new js(n,r,r),i=new js(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof js&&(a=a.get("tooltip",!0)),it(a)&&(a={formatter:a}),a&&(i=new js(a,i,r)))}return i}function FS(t,e){return t.dispatchAction||J(e.dispatchAction,e)}function VS(t){return"center"===t||"middle"===t}const HS=ES;function GS(t,e,n){var i=T.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}var WS=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||Fi,"string"==typeof e?r=GS(e,n,i):at(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(kt(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return qt(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=GS("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new De(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length)(e=new De(0,0,0,0)).copy(t),o.push(e);else{for(var e,n=!1,i=1/0,r=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new De(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var d=t.width*t.height,f=c.width*c.height,p=l.width*l.height-d-f;p<i&&(i=p,r=u)}}s&&(o[r].union(t),n=!0),n||((e=new De(0,0,0,0)).copy(t),o.push(e)),s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c)if(f=t[c]){var h=f.shouldBePainted(n,i,!0,!0);(p=f.__isRendered&&(1&f.__dirty||!h)?f.getPrevPaintRect():null)&&u(p);var d=h&&(1&f.__dirty||!f.__isRendered)?f.getPaintRect():null;d&&u(d)}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var f,p;h=(f=e[c])&&f.shouldBePainted(n,i,!0,!0),!f||h&&f.__zr||!f.__isRendered||(p=f.getPrevPaintRect())&&u(p)}do{for(r=!1,c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(r=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,r=this.ctx,o=i.width,a=i.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/u,a/u));var h=this.domBack;function d(t,n,i,o){if(r.clearRect(t,n,i,o),e&&"transparent"!==e){var a=void 0;ct(e)?(a=(e.global||e.__width===i&&e.__height===o)&&e.__canvasGradient||Bb(r,e,{x:0,y:0,width:i,height:o}),e.__canvasGradient=a,e.__width=i,e.__height=o):null!=e.image&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=jb(r,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),r.save(),r.fillStyle=a||e,r.fillRect(t,n,i,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(h,t,n,i,o),r.restore())}!n||s?d(0,0,o,a):n.length&&Y(n,function(t){d(t.x*u,t.y*u,t.width*u,t.height*u)})},e}(Ei);const US=WS;var jS=1e5,XS=314159,qS=.01,YS=function(){function t(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=W({},n||{}),this.dpr=n.devicePixelRatio||Fi,this._singleCanvas=r,this.root=t,t.style&&(kt(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(r){var s=t,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new US(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=XS,o.push(XS),this._domRoot=t}else{this._width=Eb(t,0,n),this._height=Eb(t,1,n);var h=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(h)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.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 r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(jS)),i||(i=n.ctx).save(),tw(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(jS)},t.prototype.paintOne=function(t,e){Jb(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;P_(function(){s._paintList(t,e,n,i)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(XS).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)})},t.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&r.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=r[a],h=l.ctx,f=o&&l.createRepaintRects(t,e,d._width,d._height),p=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),m=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,m,f);else if(p===l.__startIndex){var y=t[p];y.incremental&&y.notClear&&!n||l.clear(!1,m,f)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);var _=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=p;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(c=!0),i._doPaintEl(r,l,o,e,n,s===l.__endIndex-1),g&&Date.now()-v>15)break}n.prevElClipPaths&&h.restore()};if(f)if(0===f.length)s=l.__endIndex;else for(var x=d.dpr,b=0;b<f.length;++b){var w=f[b];h.save(),h.beginPath(),h.rect(w.x*x,w.y*x,w.width*x,w.height*x),h.clip(),_(w),h.restore()}else h.save(),_(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},d=this,f=0;f<r.length;f++)h(f);return Lt.wxa&&Y(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(tw(a,t,r,o),t.setPrevPaintRect(s))}else tw(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=XS);var n=this._layers[t];return n||((n=new US("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?G(n,this._layerConfig[t],!0):this._layerConfig[t-qS]&&G(n,this._layerConfig[t-qS],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(r>0&&t>i[0]){for(s=0;s<r-1&&!(i[s]<t&&i[s+1]>t);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.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)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++)if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}var i,r,o=null,a=0;for(r=0;r<t.length;r++){var s,l=(s=t[r]).zlevel,u=void 0;i!==l&&(i=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?qS:0),this._needsManuallyCompositing),u.__builtin__||V("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,e(r),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}e(r),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Y(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?G(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];r!==t&&r!==t+qS||G(this._layers[r],n[t],!0)}}},t.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(j(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=Eb(r,0,i),e=Eb(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(XS).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new US("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,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];tw(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const ZS=YS;function $S({theme:t,data:e}){const o=r(null),a=i(()=>{const t=e.flatMap(t=>{const e=new Date(t.start).getTime(),n=new Date(t.end).getTime(),i=(e+n)/2;return[{type:"line",name:t.event,data:[[e,0],[n,0]],lineStyle:{width:4,color:t.color},symbol:"none"},{type:"line",name:t.event,data:[[i,0]],symbol:t.icon,symbolSize:32,symbolOffset:[0,-25],tooltip:{formatter:()=>{const e=new Date(t.start).toLocaleString(void 0,{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit"}),n=new Date(t.end).toLocaleString(void 0,{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit"});return`\n <div style="padding:6px">\n <b>${qu(t.event.toUpperCase())}</b><br/>\n Start: ${qu(e)}<br/>\n End: ${qu(n)}<br/>\n </div>\n `}}}]});return t},[e]);return n(()=>{let e,n;return null!==o.current&&(e=function(t,e,n){var i=oS(t);if(i)return i;var r=new Ww(t,e,n);return r.id="ec_"+iS++,eS[r.id]=r,Ma(t,rS,r.id),Ew(r),lw.trigger("afterinit",r),r}(o.current,t),n=new ResizeObserver(()=>{e?.resize()}),n.observe(o.current)),()=>{e?.dispose(),n?.disconnect()}},[t]),n(()=>{if(null!==o.current){const t=oS(o.current),e={title:{text:"Event Timeline",left:"center"},xAxis:{type:"time",position:"bottom",axisTick:{show:!0,length:15,lineStyle:{color:"#999",width:2},inside:!0},axisLine:{lineStyle:{color:"#999",width:2}},axisLabel:{formatter:t=>{const e=new Date(t);return`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}`},margin:10}},yAxis:{type:"value",min:0,max:0,show:!1},tooltip:{trigger:"item"},series:a};t?.setOption(e,!0)}},[t,a]),(0,_.jsx)("div",{ref:o,style:{height:"100%",width:"100%"}})}_S([function(t){t.registerComponentModel(bg),t.registerComponentView(wg)},function(t){_S(uy),_S(r_)},function(t){t.registerChartView(vg),t.registerSeriesModel(kp),t.registerLayout({seriesType:"line",plan:$p(),reset:function(t){var e=t.getData(),n=t.coordinateSystem;if(t.pipelineContext,n){var i=Z(n.dimensions,function(t){return e.mapDimension(t)}).slice(0,2),r=i.length,o=e.getCalculationInfo("stackResultDimension");Ou(e,i[0])&&(i[0]=o),Ou(e,i[1])&&(i[1]=o);var a=e.getStore(),s=e.getDimensionIndex(i[0]),l=e.getDimensionIndex(i[1]);return r&&{progress:function(t,e){for(var i=Hp((t.end-t.start)*r),o=[],u=[],c=t.start,h=0;c<t.end;c++){var d=void 0;if(1===r){var f=a.get(s,c);d=n.dataToPoint(f,null,u)}else o[0]=a.get(s,c),o[1]=a.get(l,c),d=n.dataToPoint(o,null,u);i[h++]=d[0],i[h++]=d[1]}e.setLayout("points",i)}}}}}),t.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)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"line",reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(isFinite(d)&&d>1){"lttb"===r?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d)):"minmax"===r&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/d));var f=void 0;it(r)?f=mg[r]:nt(r)&&(f=r),f&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,f,yg))}}}})},function(t){t.registerPainter("canvas",ZS)},function(t){_S(r_),t.registerComponentModel(xS),t.registerComponentView(HS),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Dt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Dt)}]);var KS={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const QS=(n,i,r,o)=>{const a=e(({color:e="currentColor",size:r=24,stroke:a=2,title:s,className:l,children:u,...c},h)=>t("svg",{ref:h,...KS[n],width:r,height:r,className:["tabler-icon",`tabler-icon-${i}`,l].join(" "),..."filled"===n?{fill:e}:{strokeWidth:a,stroke:e},...c},[s&&t("title",{key:"svg-title"},s),...o.map(([e,n])=>t(e,n)),...Array.isArray(u)?u:[u]]));return a.displayName=`${r}`,a},JS=QS("outline","chevron-up","ChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]]),tC=QS("outline","chevron-down","ChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]),eC=QS("outline","selector","Selector",[["path",{d:"M8 9l4 -4l4 4",key:"svg-0"}],["path",{d:"M16 15l-4 4l-4 -4",key:"svg-1"}]]);function nC(t,e){return"function"==typeof t?t(e):t}function iC(t,e){return n=>{e.setState(e=>({...e,[t]:nC(n,e[t])}))}}function rC(t){return t instanceof Function}function oC(t,e,n){let i,r=[];return o=>{let a;n.key&&n.debug&&(a=Date.now());const s=t(o);if(s.length===r.length&&!s.some((t,e)=>r[e]!==t))return i;let l;if(r=s,n.key&&n.debug&&(l=Date.now()),i=e(...s),null==n||null==n.onChange||n.onChange(i),n.key&&n.debug&&null!=n&&n.debug()){const t=Math.round(100*(Date.now()-a))/100,e=Math.round(100*(Date.now()-l))/100,i=e/16,r=(t,e)=>{for(t=String(t);t.length<e;)t=" "+t;return t};console.info(`%c⏱ ${r(e,5)} /${r(t,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==n?void 0:n.key)}return i}}function aC(t,e,n,i){return{debug:()=>{var n;return null!=(n=null==t?void 0:t.debugAll)?n:t[e]},key:!1,onChange:i}}const sC="debugHeaders";function lC(t,e,n){var i;let r={id:null!=(i=n.id)?i:e.id,column:e,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const t=[],e=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(e),t.push(n)};return e(r),t},getContext:()=>({table:t,header:r,column:e})};return t._features.forEach(e=>{null==e.createHeader||e.createHeader(r,t)}),r}const uC={createTable:t=>{t.getHeaderGroups=oC(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,i,r)=>{var o,a;const s=null!=(o=null==i?void 0:i.map(t=>n.find(e=>e.id===t)).filter(Boolean))?o:[],l=null!=(a=null==r?void 0:r.map(t=>n.find(e=>e.id===t)).filter(Boolean))?a:[];return cC(e,[...s,...n.filter(t=>!(null!=i&&i.includes(t.id)||null!=r&&r.includes(t.id))),...l],t)},aC(t.options,sC)),t.getCenterHeaderGroups=oC(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,i,r)=>cC(e,n=n.filter(t=>!(null!=i&&i.includes(t.id)||null!=r&&r.includes(t.id))),t,"center"),aC(t.options,sC)),t.getLeftHeaderGroups=oC(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left],(e,n,i)=>{var r;return cC(e,null!=(r=null==i?void 0:i.map(t=>n.find(e=>e.id===t)).filter(Boolean))?r:[],t,"left")},aC(t.options,sC)),t.getRightHeaderGroups=oC(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.right],(e,n,i)=>{var r;return cC(e,null!=(r=null==i?void 0:i.map(t=>n.find(e=>e.id===t)).filter(Boolean))?r:[],t,"right")},aC(t.options,sC)),t.getFooterGroups=oC(()=>[t.getHeaderGroups()],t=>[...t].reverse(),aC(t.options,sC)),t.getLeftFooterGroups=oC(()=>[t.getLeftHeaderGroups()],t=>[...t].reverse(),aC(t.options,sC)),t.getCenterFooterGroups=oC(()=>[t.getCenterHeaderGroups()],t=>[...t].reverse(),aC(t.options,sC)),t.getRightFooterGroups=oC(()=>[t.getRightHeaderGroups()],t=>[...t].reverse(),aC(t.options,sC)),t.getFlatHeaders=oC(()=>[t.getHeaderGroups()],t=>t.map(t=>t.headers).flat(),aC(t.options,sC)),t.getLeftFlatHeaders=oC(()=>[t.getLeftHeaderGroups()],t=>t.map(t=>t.headers).flat(),aC(t.options,sC)),t.getCenterFlatHeaders=oC(()=>[t.getCenterHeaderGroups()],t=>t.map(t=>t.headers).flat(),aC(t.options,sC)),t.getRightFlatHeaders=oC(()=>[t.getRightHeaderGroups()],t=>t.map(t=>t.headers).flat(),aC(t.options,sC)),t.getCenterLeafHeaders=oC(()=>[t.getCenterFlatHeaders()],t=>t.filter(t=>{var e;return!(null!=(e=t.subHeaders)&&e.length)}),aC(t.options,sC)),t.getLeftLeafHeaders=oC(()=>[t.getLeftFlatHeaders()],t=>t.filter(t=>{var e;return!(null!=(e=t.subHeaders)&&e.length)}),aC(t.options,sC)),t.getRightLeafHeaders=oC(()=>[t.getRightFlatHeaders()],t=>t.filter(t=>{var e;return!(null!=(e=t.subHeaders)&&e.length)}),aC(t.options,sC)),t.getLeafHeaders=oC(()=>[t.getLeftHeaderGroups(),t.getCenterHeaderGroups(),t.getRightHeaderGroups()],(t,e,n)=>{var i,r,o,a,s,l;return[...null!=(i=null==(r=t[0])?void 0:r.headers)?i:[],...null!=(o=null==(a=e[0])?void 0:a.headers)?o:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map(t=>t.getLeafHeaders()).flat()},aC(t.options,sC))}};function cC(t,e,n,i){var r,o;let a=0;const s=function(t,e){void 0===e&&(e=1),a=Math.max(a,e),t.filter(t=>t.getIsVisible()).forEach(t=>{var n;null!=(n=t.columns)&&n.length&&s(t.columns,e+1)},0)};s(t);let l=[];const u=(t,e)=>{const r={depth:e,id:[i,`${e}`].filter(Boolean).join("_"),headers:[]},o=[];t.forEach(t=>{const a=[...o].reverse()[0];let s,l=!1;if(t.column.depth===r.depth&&t.column.parent?s=t.column.parent:(s=t.column,l=!0),a&&(null==a?void 0:a.column)===s)a.subHeaders.push(t);else{const r=lC(n,s,{id:[i,e,s.id,null==t?void 0:t.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${o.filter(t=>t.column===s).length}`:void 0,depth:e,index:o.length});r.subHeaders.push(t),o.push(r)}r.headers.push(t),t.headerGroup=r}),l.push(r),e>0&&u(o,e-1)},c=e.map((t,e)=>lC(n,t,{depth:a,index:e}));u(c,a-1),l.reverse();const h=t=>t.filter(t=>t.column.getIsVisible()).map(t=>{let e=0,n=0,i=[0];return t.subHeaders&&t.subHeaders.length?(i=[],h(t.subHeaders).forEach(t=>{let{colSpan:n,rowSpan:r}=t;e+=n,i.push(r)})):e=1,n+=Math.min(...i),t.colSpan=e,t.rowSpan=n,{colSpan:e,rowSpan:n}});return h(null!=(r=null==(o=l[0])?void 0:o.headers)?r:[]),l}const hC=(t,e,n,i,r,o,a)=>{let s={id:e,index:i,original:n,depth:r,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:e=>{if(s._valuesCache.hasOwnProperty(e))return s._valuesCache[e];const n=t.getColumn(e);return null!=n&&n.accessorFn?(s._valuesCache[e]=n.accessorFn(s.original,i),s._valuesCache[e]):void 0},getUniqueValues:e=>{if(s._uniqueValuesCache.hasOwnProperty(e))return s._uniqueValuesCache[e];const n=t.getColumn(e);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[e]=n.columnDef.getUniqueValues(s.original,i),s._uniqueValuesCache[e]):(s._uniqueValuesCache[e]=[s.getValue(e)],s._uniqueValuesCache[e]):void 0},renderValue:e=>{var n;return null!=(n=s.getValue(e))?n:t.options.renderFallbackValue},subRows:null!=o?o:[],getLeafRows:()=>function(t,e){const n=[],i=t=>{t.forEach(t=>{n.push(t);const r=e(t);null!=r&&r.length&&i(r)})};return i(t),n}(s.subRows,t=>t.subRows),getParentRow:()=>s.parentId?t.getRow(s.parentId,!0):void 0,getParentRows:()=>{let t=[],e=s;for(;;){const n=e.getParentRow();if(!n)break;t.push(n),e=n}return t.reverse()},getAllCells:oC(()=>[t.getAllLeafColumns()],e=>e.map(e=>function(t,e,n,i){const r={id:`${e.id}_${n.id}`,row:e,column:n,getValue:()=>e.getValue(i),renderValue:()=>{var e;return null!=(e=r.getValue())?e:t.options.renderFallbackValue},getContext:oC(()=>[t,n,e,r],(t,e,n,i)=>({table:t,column:e,row:n,cell:i,getValue:i.getValue,renderValue:i.renderValue}),aC(t.options,"debugCells"))};return t._features.forEach(i=>{null==i.createCell||i.createCell(r,n,e,t)},{}),r}(t,s,e,e.id)),aC(t.options,"debugRows")),_getAllCellsByColumnId:oC(()=>[s.getAllCells()],t=>t.reduce((t,e)=>(t[e.column.id]=e,t),{}),aC(t.options,"debugRows"))};for(let e=0;e<t._features.length;e++){const n=t._features[e];null==n||null==n.createRow||n.createRow(s,t)}return s},dC={createColumn:(t,e)=>{t._getFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,t.id),t.getFacetedRowModel=()=>t._getFacetedRowModel?t._getFacetedRowModel():e.getPreFilteredRowModel(),t._getFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,t.id),t.getFacetedUniqueValues=()=>t._getFacetedUniqueValues?t._getFacetedUniqueValues():new Map,t._getFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,t.id),t.getFacetedMinMaxValues=()=>{if(t._getFacetedMinMaxValues)return t._getFacetedMinMaxValues()}}},fC=(t,e,n)=>{var i,r;const o=null==n||null==(i=n.toString())?void 0:i.toLowerCase();return Boolean(null==(r=t.getValue(e))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(o))};fC.autoRemove=t=>SC(t);const pC=(t,e,n)=>{var i;return Boolean(null==(i=t.getValue(e))||null==(i=i.toString())?void 0:i.includes(n))};pC.autoRemove=t=>SC(t);const gC=(t,e,n)=>{var i;return(null==(i=t.getValue(e))||null==(i=i.toString())?void 0:i.toLowerCase())===(null==n?void 0:n.toLowerCase())};gC.autoRemove=t=>SC(t);const vC=(t,e,n)=>{var i;return null==(i=t.getValue(e))?void 0:i.includes(n)};vC.autoRemove=t=>SC(t);const mC=(t,e,n)=>!n.some(n=>{var i;return!(null!=(i=t.getValue(e))&&i.includes(n))});mC.autoRemove=t=>SC(t)||!(null!=t&&t.length);const yC=(t,e,n)=>n.some(n=>{var i;return null==(i=t.getValue(e))?void 0:i.includes(n)});yC.autoRemove=t=>SC(t)||!(null!=t&&t.length);const _C=(t,e,n)=>t.getValue(e)===n;_C.autoRemove=t=>SC(t);const xC=(t,e,n)=>t.getValue(e)==n;xC.autoRemove=t=>SC(t);const bC=(t,e,n)=>{let[i,r]=n;const o=t.getValue(e);return o>=i&&o<=r};bC.resolveFilterValue=t=>{let[e,n]=t,i="number"!=typeof e?parseFloat(e):e,r="number"!=typeof n?parseFloat(n):n,o=null===e||Number.isNaN(i)?-1/0:i,a=null===n||Number.isNaN(r)?1/0:r;if(o>a){const t=o;o=a,a=t}return[o,a]},bC.autoRemove=t=>SC(t)||SC(t[0])&&SC(t[1]);const wC={includesString:fC,includesStringSensitive:pC,equalsString:gC,arrIncludes:vC,arrIncludesAll:mC,arrIncludesSome:yC,equals:_C,weakEquals:xC,inNumberRange:bC};function SC(t){return null==t||""===t}const CC={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:t=>({columnFilters:[],...t}),getDefaultOptions:t=>({onColumnFiltersChange:iC("columnFilters",t),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(t,e)=>{t.getAutoFilterFn=()=>{const n=e.getCoreRowModel().flatRows[0],i=null==n?void 0:n.getValue(t.id);return"string"==typeof i?wC.includesString:"number"==typeof i?wC.inNumberRange:"boolean"==typeof i||null!==i&&"object"==typeof i?wC.equals:Array.isArray(i)?wC.arrIncludes:wC.weakEquals},t.getFilterFn=()=>{var n,i;return rC(t.columnDef.filterFn)?t.columnDef.filterFn:"auto"===t.columnDef.filterFn?t.getAutoFilterFn():null!=(n=null==(i=e.options.filterFns)?void 0:i[t.columnDef.filterFn])?n:wC[t.columnDef.filterFn]},t.getCanFilter=()=>{var n,i,r;return(null==(n=t.columnDef.enableColumnFilter)||n)&&(null==(i=e.options.enableColumnFilters)||i)&&(null==(r=e.options.enableFilters)||r)&&!!t.accessorFn},t.getIsFiltered=()=>t.getFilterIndex()>-1,t.getFilterValue=()=>{var n;return null==(n=e.getState().columnFilters)||null==(n=n.find(e=>e.id===t.id))?void 0:n.value},t.getFilterIndex=()=>{var n,i;return null!=(n=null==(i=e.getState().columnFilters)?void 0:i.findIndex(e=>e.id===t.id))?n:-1},t.setFilterValue=n=>{e.setColumnFilters(e=>{const i=t.getFilterFn(),r=null==e?void 0:e.find(e=>e.id===t.id),o=nC(n,r?r.value:void 0);var a;if(MC(i,o,t))return null!=(a=null==e?void 0:e.filter(e=>e.id!==t.id))?a:[];const s={id:t.id,value:o};var l;return r?null!=(l=null==e?void 0:e.map(e=>e.id===t.id?s:e))?l:[]:null!=e&&e.length?[...e,s]:[s]})}},createRow:(t,e)=>{t.columnFilters={},t.columnFiltersMeta={}},createTable:t=>{t.setColumnFilters=e=>{const n=t.getAllLeafColumns();null==t.options.onColumnFiltersChange||t.options.onColumnFiltersChange(t=>{var i;return null==(i=nC(e,t))?void 0:i.filter(t=>{const e=n.find(e=>e.id===t.id);return!e||!MC(e.getFilterFn(),t.value,e)})})},t.resetColumnFilters=e=>{var n,i;t.setColumnFilters(e?[]:null!=(n=null==(i=t.initialState)?void 0:i.columnFilters)?n:[])},t.getPreFilteredRowModel=()=>t.getCoreRowModel(),t.getFilteredRowModel=()=>(!t._getFilteredRowModel&&t.options.getFilteredRowModel&&(t._getFilteredRowModel=t.options.getFilteredRowModel(t)),t.options.manualFiltering||!t._getFilteredRowModel?t.getPreFilteredRowModel():t._getFilteredRowModel())}};function MC(t,e,n){return!(!t||!t.autoRemove)&&t.autoRemove(e,n)||void 0===e||"string"==typeof e&&!e}const TC={sum:(t,e,n)=>n.reduce((e,n)=>{const i=n.getValue(t);return e+("number"==typeof i?i:0)},0),min:(t,e,n)=>{let i;return n.forEach(e=>{const n=e.getValue(t);null!=n&&(i>n||void 0===i&&n>=n)&&(i=n)}),i},max:(t,e,n)=>{let i;return n.forEach(e=>{const n=e.getValue(t);null!=n&&(i<n||void 0===i&&n>=n)&&(i=n)}),i},extent:(t,e,n)=>{let i,r;return n.forEach(e=>{const n=e.getValue(t);null!=n&&(void 0===i?n>=n&&(i=r=n):(i>n&&(i=n),r<n&&(r=n)))}),[i,r]},mean:(t,e)=>{let n=0,i=0;if(e.forEach(e=>{let r=e.getValue(t);null!=r&&(r=+r)>=r&&(++n,i+=r)}),n)return i/n},median:(t,e)=>{if(!e.length)return;const n=e.map(e=>e.getValue(t));if(i=n,!Array.isArray(i)||!i.every(t=>"number"==typeof t))return;var i;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort((t,e)=>t-e);return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(t,e)=>Array.from(new Set(e.map(e=>e.getValue(t))).values()),uniqueCount:(t,e)=>new Set(e.map(e=>e.getValue(t))).size,count:(t,e)=>e.length},kC={getDefaultColumnDef:()=>({aggregatedCell:t=>{var e,n;return null!=(e=null==(n=t.getValue())||null==n.toString?void 0:n.toString())?e:null},aggregationFn:"auto"}),getInitialState:t=>({grouping:[],...t}),getDefaultOptions:t=>({onGroupingChange:iC("grouping",t),groupedColumnMode:"reorder"}),createColumn:(t,e)=>{t.toggleGrouping=()=>{e.setGrouping(e=>null!=e&&e.includes(t.id)?e.filter(e=>e!==t.id):[...null!=e?e:[],t.id])},t.getCanGroup=()=>{var n,i;return(null==(n=t.columnDef.enableGrouping)||n)&&(null==(i=e.options.enableGrouping)||i)&&(!!t.accessorFn||!!t.columnDef.getGroupingValue)},t.getIsGrouped=()=>{var n;return null==(n=e.getState().grouping)?void 0:n.includes(t.id)},t.getGroupedIndex=()=>{var n;return null==(n=e.getState().grouping)?void 0:n.indexOf(t.id)},t.getToggleGroupingHandler=()=>{const e=t.getCanGroup();return()=>{e&&t.toggleGrouping()}},t.getAutoAggregationFn=()=>{const n=e.getCoreRowModel().flatRows[0],i=null==n?void 0:n.getValue(t.id);return"number"==typeof i?TC.sum:"[object Date]"===Object.prototype.toString.call(i)?TC.extent:void 0},t.getAggregationFn=()=>{var n,i;if(!t)throw new Error;return rC(t.columnDef.aggregationFn)?t.columnDef.aggregationFn:"auto"===t.columnDef.aggregationFn?t.getAutoAggregationFn():null!=(n=null==(i=e.options.aggregationFns)?void 0:i[t.columnDef.aggregationFn])?n:TC[t.columnDef.aggregationFn]}},createTable:t=>{t.setGrouping=e=>null==t.options.onGroupingChange?void 0:t.options.onGroupingChange(e),t.resetGrouping=e=>{var n,i;t.setGrouping(e?[]:null!=(n=null==(i=t.initialState)?void 0:i.grouping)?n:[])},t.getPreGroupedRowModel=()=>t.getFilteredRowModel(),t.getGroupedRowModel=()=>(!t._getGroupedRowModel&&t.options.getGroupedRowModel&&(t._getGroupedRowModel=t.options.getGroupedRowModel(t)),t.options.manualGrouping||!t._getGroupedRowModel?t.getPreGroupedRowModel():t._getGroupedRowModel())},createRow:(t,e)=>{t.getIsGrouped=()=>!!t.groupingColumnId,t.getGroupingValue=n=>{if(t._groupingValuesCache.hasOwnProperty(n))return t._groupingValuesCache[n];const i=e.getColumn(n);return null!=i&&i.columnDef.getGroupingValue?(t._groupingValuesCache[n]=i.columnDef.getGroupingValue(t.original),t._groupingValuesCache[n]):t.getValue(n)},t._groupingValuesCache={}},createCell:(t,e,n,i)=>{t.getIsGrouped=()=>e.getIsGrouped()&&e.id===n.groupingColumnId,t.getIsPlaceholder=()=>!t.getIsGrouped()&&e.getIsGrouped(),t.getIsAggregated=()=>{var e;return!t.getIsGrouped()&&!t.getIsPlaceholder()&&!(null==(e=n.subRows)||!e.length)}}},IC={getInitialState:t=>({columnOrder:[],...t}),getDefaultOptions:t=>({onColumnOrderChange:iC("columnOrder",t)}),createColumn:(t,e)=>{t.getIndex=oC(t=>[BC(e,t)],e=>e.findIndex(e=>e.id===t.id),aC(e.options,"debugColumns")),t.getIsFirstColumn=n=>{var i;return(null==(i=BC(e,n)[0])?void 0:i.id)===t.id},t.getIsLastColumn=n=>{var i;const r=BC(e,n);return(null==(i=r[r.length-1])?void 0:i.id)===t.id}},createTable:t=>{t.setColumnOrder=e=>null==t.options.onColumnOrderChange?void 0:t.options.onColumnOrderChange(e),t.resetColumnOrder=e=>{var n;t.setColumnOrder(e?[]:null!=(n=t.initialState.columnOrder)?n:[])},t._getOrderColumnsFn=oC(()=>[t.getState().columnOrder,t.getState().grouping,t.options.groupedColumnMode],(t,e,n)=>i=>{let r=[];if(null!=t&&t.length){const e=[...t],n=[...i];for(;n.length&&e.length;){const t=e.shift(),i=n.findIndex(e=>e.id===t);i>-1&&r.push(n.splice(i,1)[0])}r=[...r,...n]}else r=i;return function(t,e,n){if(null==e||!e.length||!n)return t;const i=t.filter(t=>!e.includes(t.id));return"remove"===n?i:[...e.map(e=>t.find(t=>t.id===e)).filter(Boolean),...i]}(r,e,n)},aC(t.options,"debugTable"))}},DC={getInitialState:t=>({columnPinning:{left:[],right:[]},...t}),getDefaultOptions:t=>({onColumnPinningChange:iC("columnPinning",t)}),createColumn:(t,e)=>{t.pin=n=>{const i=t.getLeafColumns().map(t=>t.id).filter(Boolean);e.setColumnPinning(t=>{var e,r,o,a,s,l;return"right"===n?{left:(null!=(o=null==t?void 0:t.left)?o:[]).filter(t=>!(null!=i&&i.includes(t))),right:[...(null!=(a=null==t?void 0:t.right)?a:[]).filter(t=>!(null!=i&&i.includes(t))),...i]}:"left"===n?{left:[...(null!=(s=null==t?void 0:t.left)?s:[]).filter(t=>!(null!=i&&i.includes(t))),...i],right:(null!=(l=null==t?void 0:t.right)?l:[]).filter(t=>!(null!=i&&i.includes(t)))}:{left:(null!=(e=null==t?void 0:t.left)?e:[]).filter(t=>!(null!=i&&i.includes(t))),right:(null!=(r=null==t?void 0:t.right)?r:[]).filter(t=>!(null!=i&&i.includes(t)))}})},t.getCanPin=()=>t.getLeafColumns().some(t=>{var n,i,r;return(null==(n=t.columnDef.enablePinning)||n)&&(null==(i=null!=(r=e.options.enableColumnPinning)?r:e.options.enablePinning)||i)}),t.getIsPinned=()=>{const n=t.getLeafColumns().map(t=>t.id),{left:i,right:r}=e.getState().columnPinning,o=n.some(t=>null==i?void 0:i.includes(t)),a=n.some(t=>null==r?void 0:r.includes(t));return o?"left":!!a&&"right"},t.getPinnedIndex=()=>{var n,i;const r=t.getIsPinned();return r?null!=(n=null==(i=e.getState().columnPinning)||null==(i=i[r])?void 0:i.indexOf(t.id))?n:-1:0}},createRow:(t,e)=>{t.getCenterVisibleCells=oC(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,e,n)=>{const i=[...null!=e?e:[],...null!=n?n:[]];return t.filter(t=>!i.includes(t.column.id))},aC(e.options,"debugRows")),t.getLeftVisibleCells=oC(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left],(t,e)=>(null!=e?e:[]).map(e=>t.find(t=>t.column.id===e)).filter(Boolean).map(t=>({...t,position:"left"})),aC(e.options,"debugRows")),t.getRightVisibleCells=oC(()=>[t._getAllVisibleCells(),e.getState().columnPinning.right],(t,e)=>(null!=e?e:[]).map(e=>t.find(t=>t.column.id===e)).filter(Boolean).map(t=>({...t,position:"right"})),aC(e.options,"debugRows"))},createTable:t=>{t.setColumnPinning=e=>null==t.options.onColumnPinningChange?void 0:t.options.onColumnPinningChange(e),t.resetColumnPinning=e=>{var n,i;return t.setColumnPinning(e?{left:[],right:[]}:null!=(n=null==(i=t.initialState)?void 0:i.columnPinning)?n:{left:[],right:[]})},t.getIsSomeColumnsPinned=e=>{var n;const i=t.getState().columnPinning;var r,o;return e?Boolean(null==(n=i[e])?void 0:n.length):Boolean((null==(r=i.left)?void 0:r.length)||(null==(o=i.right)?void 0:o.length))},t.getLeftLeafColumns=oC(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left],(t,e)=>(null!=e?e:[]).map(e=>t.find(t=>t.id===e)).filter(Boolean),aC(t.options,"debugColumns")),t.getRightLeafColumns=oC(()=>[t.getAllLeafColumns(),t.getState().columnPinning.right],(t,e)=>(null!=e?e:[]).map(e=>t.find(t=>t.id===e)).filter(Boolean),aC(t.options,"debugColumns")),t.getCenterLeafColumns=oC(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(t,e,n)=>{const i=[...null!=e?e:[],...null!=n?n:[]];return t.filter(t=>!i.includes(t.id))},aC(t.options,"debugColumns"))}},AC={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},RC={getDefaultColumnDef:()=>AC,getInitialState:t=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...t}),getDefaultOptions:t=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:iC("columnSizing",t),onColumnSizingInfoChange:iC("columnSizingInfo",t)}),createColumn:(t,e)=>{t.getSize=()=>{var n,i,r;const o=e.getState().columnSizing[t.id];return Math.min(Math.max(null!=(n=t.columnDef.minSize)?n:AC.minSize,null!=(i=null!=o?o:t.columnDef.size)?i:AC.size),null!=(r=t.columnDef.maxSize)?r:AC.maxSize)},t.getStart=oC(t=>[t,BC(e,t),e.getState().columnSizing],(e,n)=>n.slice(0,t.getIndex(e)).reduce((t,e)=>t+e.getSize(),0),aC(e.options,"debugColumns")),t.getAfter=oC(t=>[t,BC(e,t),e.getState().columnSizing],(e,n)=>n.slice(t.getIndex(e)+1).reduce((t,e)=>t+e.getSize(),0),aC(e.options,"debugColumns")),t.resetSize=()=>{e.setColumnSizing(e=>{let{[t.id]:n,...i}=e;return i})},t.getCanResize=()=>{var n,i;return(null==(n=t.columnDef.enableResizing)||n)&&(null==(i=e.options.enableColumnResizing)||i)},t.getIsResizing=()=>e.getState().columnSizingInfo.isResizingColumn===t.id},createHeader:(t,e)=>{t.getSize=()=>{let e=0;const n=t=>{var i;t.subHeaders.length?t.subHeaders.forEach(n):e+=null!=(i=t.column.getSize())?i:0};return n(t),e},t.getStart=()=>{if(t.index>0){const e=t.headerGroup.headers[t.index-1];return e.getStart()+e.getSize()}return 0},t.getResizeHandler=n=>{const i=e.getColumn(t.column.id),r=null==i?void 0:i.getCanResize();return o=>{if(!i||!r)return;if(null==o.persist||o.persist(),LC(o)&&o.touches&&o.touches.length>1)return;const a=t.getSize(),s=t?t.getLeafHeaders().map(t=>[t.column.id,t.column.getSize()]):[[i.id,i.getSize()]],l=LC(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(t,n)=>{"number"==typeof n&&(e.setColumnSizingInfo(t=>{var i,r;const o="rtl"===e.options.columnResizeDirection?-1:1,a=(n-(null!=(i=null==t?void 0:t.startOffset)?i:0))*o,s=Math.max(a/(null!=(r=null==t?void 0:t.startSize)?r:0),-.999999);return t.columnSizingStart.forEach(t=>{let[e,n]=t;u[e]=Math.round(100*Math.max(n+n*s,0))/100}),{...t,deltaOffset:a,deltaPercentage:s}}),"onChange"!==e.options.columnResizeMode&&"end"!==t||e.setColumnSizing(t=>({...t,...u})))},h=t=>c("move",t),d=t=>{c("end",t),e.setColumnSizingInfo(t=>({...t,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=n||("undefined"!=typeof document?document:null),p={moveHandler:t=>h(t.clientX),upHandler:t=>{null==f||f.removeEventListener("mousemove",p.moveHandler),null==f||f.removeEventListener("mouseup",p.upHandler),d(t.clientX)}},g={moveHandler:t=>(t.cancelable&&(t.preventDefault(),t.stopPropagation()),h(t.touches[0].clientX),!1),upHandler:t=>{var e;null==f||f.removeEventListener("touchmove",g.moveHandler),null==f||f.removeEventListener("touchend",g.upHandler),t.cancelable&&(t.preventDefault(),t.stopPropagation()),d(null==(e=t.touches[0])?void 0:e.clientX)}},v=!!function(){if("boolean"==typeof PC)return PC;let t=!1;try{const e={get passive(){return t=!0,!1}},n=()=>{};window.addEventListener("test",n,e),window.removeEventListener("test",n)}catch(e){t=!1}return PC=t,PC}()&&{passive:!1};LC(o)?(null==f||f.addEventListener("touchmove",g.moveHandler,v),null==f||f.addEventListener("touchend",g.upHandler,v)):(null==f||f.addEventListener("mousemove",p.moveHandler,v),null==f||f.addEventListener("mouseup",p.upHandler,v)),e.setColumnSizingInfo(t=>({...t,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:i.id}))}}},createTable:t=>{t.setColumnSizing=e=>null==t.options.onColumnSizingChange?void 0:t.options.onColumnSizingChange(e),t.setColumnSizingInfo=e=>null==t.options.onColumnSizingInfoChange?void 0:t.options.onColumnSizingInfoChange(e),t.resetColumnSizing=e=>{var n;t.setColumnSizing(e?{}:null!=(n=t.initialState.columnSizing)?n:{})},t.resetHeaderSizeInfo=e=>{var n;t.setColumnSizingInfo(e?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=t.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},t.getTotalSize=()=>{var e,n;return null!=(e=null==(n=t.getHeaderGroups()[0])?void 0:n.headers.reduce((t,e)=>t+e.getSize(),0))?e:0},t.getLeftTotalSize=()=>{var e,n;return null!=(e=null==(n=t.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((t,e)=>t+e.getSize(),0))?e:0},t.getCenterTotalSize=()=>{var e,n;return null!=(e=null==(n=t.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((t,e)=>t+e.getSize(),0))?e:0},t.getRightTotalSize=()=>{var e,n;return null!=(e=null==(n=t.getRightHeaderGroups()[0])?void 0:n.headers.reduce((t,e)=>t+e.getSize(),0))?e:0}}};let PC=null;function LC(t){return"touchstart"===t.type}const OC={getInitialState:t=>({columnVisibility:{},...t}),getDefaultOptions:t=>({onColumnVisibilityChange:iC("columnVisibility",t)}),createColumn:(t,e)=>{t.toggleVisibility=n=>{t.getCanHide()&&e.setColumnVisibility(e=>({...e,[t.id]:null!=n?n:!t.getIsVisible()}))},t.getIsVisible=()=>{var n,i;const r=t.columns;return null==(n=r.length?r.some(t=>t.getIsVisible()):null==(i=e.getState().columnVisibility)?void 0:i[t.id])||n},t.getCanHide=()=>{var n,i;return(null==(n=t.columnDef.enableHiding)||n)&&(null==(i=e.options.enableHiding)||i)},t.getToggleVisibilityHandler=()=>e=>{null==t.toggleVisibility||t.toggleVisibility(e.target.checked)}},createRow:(t,e)=>{t._getAllVisibleCells=oC(()=>[t.getAllCells(),e.getState().columnVisibility],t=>t.filter(t=>t.column.getIsVisible()),aC(e.options,"debugRows")),t.getVisibleCells=oC(()=>[t.getLeftVisibleCells(),t.getCenterVisibleCells(),t.getRightVisibleCells()],(t,e,n)=>[...t,...e,...n],aC(e.options,"debugRows"))},createTable:t=>{const e=(e,n)=>oC(()=>[n(),n().filter(t=>t.getIsVisible()).map(t=>t.id).join("_")],t=>t.filter(t=>null==t.getIsVisible?void 0:t.getIsVisible()),aC(t.options,"debugColumns"));t.getVisibleFlatColumns=e(0,()=>t.getAllFlatColumns()),t.getVisibleLeafColumns=e(0,()=>t.getAllLeafColumns()),t.getLeftVisibleLeafColumns=e(0,()=>t.getLeftLeafColumns()),t.getRightVisibleLeafColumns=e(0,()=>t.getRightLeafColumns()),t.getCenterVisibleLeafColumns=e(0,()=>t.getCenterLeafColumns()),t.setColumnVisibility=e=>null==t.options.onColumnVisibilityChange?void 0:t.options.onColumnVisibilityChange(e),t.resetColumnVisibility=e=>{var n;t.setColumnVisibility(e?{}:null!=(n=t.initialState.columnVisibility)?n:{})},t.toggleAllColumnsVisible=e=>{var n;e=null!=(n=e)?n:!t.getIsAllColumnsVisible(),t.setColumnVisibility(t.getAllLeafColumns().reduce((t,n)=>({...t,[n.id]:e||!(null!=n.getCanHide&&n.getCanHide())}),{}))},t.getIsAllColumnsVisible=()=>!t.getAllLeafColumns().some(t=>!(null!=t.getIsVisible&&t.getIsVisible())),t.getIsSomeColumnsVisible=()=>t.getAllLeafColumns().some(t=>null==t.getIsVisible?void 0:t.getIsVisible()),t.getToggleAllColumnsVisibilityHandler=()=>e=>{var n;t.toggleAllColumnsVisible(null==(n=e.target)?void 0:n.checked)}}};function BC(t,e){return e?"center"===e?t.getCenterVisibleLeafColumns():"left"===e?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns()}const zC={getInitialState:t=>({expanded:{},...t}),getDefaultOptions:t=>({onExpandedChange:iC("expanded",t),paginateExpandedRows:!0}),createTable:t=>{let e=!1,n=!1;t._autoResetExpanded=()=>{var i,r;if(e){if(null!=(i=null!=(r=t.options.autoResetAll)?r:t.options.autoResetExpanded)?i:!t.options.manualExpanding){if(n)return;n=!0,t._queue(()=>{t.resetExpanded(),n=!1})}}else t._queue(()=>{e=!0})},t.setExpanded=e=>null==t.options.onExpandedChange?void 0:t.options.onExpandedChange(e),t.toggleAllRowsExpanded=e=>{(null!=e?e:!t.getIsAllRowsExpanded())?t.setExpanded(!0):t.setExpanded({})},t.resetExpanded=e=>{var n,i;t.setExpanded(e?{}:null!=(n=null==(i=t.initialState)?void 0:i.expanded)?n:{})},t.getCanSomeRowsExpand=()=>t.getPrePaginationRowModel().flatRows.some(t=>t.getCanExpand()),t.getToggleAllRowsExpandedHandler=()=>e=>{null==e.persist||e.persist(),t.toggleAllRowsExpanded()},t.getIsSomeRowsExpanded=()=>{const e=t.getState().expanded;return!0===e||Object.values(e).some(Boolean)},t.getIsAllRowsExpanded=()=>{const e=t.getState().expanded;return"boolean"==typeof e?!0===e:!!Object.keys(e).length&&!t.getRowModel().flatRows.some(t=>!t.getIsExpanded())},t.getExpandedDepth=()=>{let e=0;return(!0===t.getState().expanded?Object.keys(t.getRowModel().rowsById):Object.keys(t.getState().expanded)).forEach(t=>{const n=t.split(".");e=Math.max(e,n.length)}),e},t.getPreExpandedRowModel=()=>t.getSortedRowModel(),t.getExpandedRowModel=()=>(!t._getExpandedRowModel&&t.options.getExpandedRowModel&&(t._getExpandedRowModel=t.options.getExpandedRowModel(t)),t.options.manualExpanding||!t._getExpandedRowModel?t.getPreExpandedRowModel():t._getExpandedRowModel())},createRow:(t,e)=>{t.toggleExpanded=n=>{e.setExpanded(i=>{var r;const o=!0===i||!(null==i||!i[t.id]);let a={};if(!0===i?Object.keys(e.getRowModel().rowsById).forEach(t=>{a[t]=!0}):a=i,n=null!=(r=n)?r:!o,!o&&n)return{...a,[t.id]:!0};if(o&&!n){const{[t.id]:e,...n}=a;return n}return i})},t.getIsExpanded=()=>{var n;const i=e.getState().expanded;return!!(null!=(n=null==e.options.getIsRowExpanded?void 0:e.options.getIsRowExpanded(t))?n:!0===i||(null==i?void 0:i[t.id]))},t.getCanExpand=()=>{var n,i,r;return null!=(n=null==e.options.getRowCanExpand?void 0:e.options.getRowCanExpand(t))?n:(null==(i=e.options.enableExpanding)||i)&&!(null==(r=t.subRows)||!r.length)},t.getIsAllParentsExpanded=()=>{let n=!0,i=t;for(;n&&i.parentId;)i=e.getRow(i.parentId,!0),n=i.getIsExpanded();return n},t.getToggleExpandedHandler=()=>{const e=t.getCanExpand();return()=>{e&&t.toggleExpanded()}}}},EC={getInitialState:t=>({rowSelection:{},...t}),getDefaultOptions:t=>({onRowSelectionChange:iC("rowSelection",t),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:t=>{t.setRowSelection=e=>null==t.options.onRowSelectionChange?void 0:t.options.onRowSelectionChange(e),t.resetRowSelection=e=>{var n;return t.setRowSelection(e?{}:null!=(n=t.initialState.rowSelection)?n:{})},t.toggleAllRowsSelected=e=>{t.setRowSelection(n=>{e=void 0!==e?e:!t.getIsAllRowsSelected();const i={...n},r=t.getPreGroupedRowModel().flatRows;return e?r.forEach(t=>{t.getCanSelect()&&(i[t.id]=!0)}):r.forEach(t=>{delete i[t.id]}),i})},t.toggleAllPageRowsSelected=e=>t.setRowSelection(n=>{const i=void 0!==e?e:!t.getIsAllPageRowsSelected(),r={...n};return t.getRowModel().rows.forEach(e=>{NC(r,e.id,i,!0,t)}),r}),t.getPreSelectedRowModel=()=>t.getCoreRowModel(),t.getSelectedRowModel=oC(()=>[t.getState().rowSelection,t.getCoreRowModel()],(e,n)=>Object.keys(e).length?FC(t,n):{rows:[],flatRows:[],rowsById:{}},aC(t.options,"debugTable")),t.getFilteredSelectedRowModel=oC(()=>[t.getState().rowSelection,t.getFilteredRowModel()],(e,n)=>Object.keys(e).length?FC(t,n):{rows:[],flatRows:[],rowsById:{}},aC(t.options,"debugTable")),t.getGroupedSelectedRowModel=oC(()=>[t.getState().rowSelection,t.getSortedRowModel()],(e,n)=>Object.keys(e).length?FC(t,n):{rows:[],flatRows:[],rowsById:{}},aC(t.options,"debugTable")),t.getIsAllRowsSelected=()=>{const e=t.getFilteredRowModel().flatRows,{rowSelection:n}=t.getState();let i=Boolean(e.length&&Object.keys(n).length);return i&&e.some(t=>t.getCanSelect()&&!n[t.id])&&(i=!1),i},t.getIsAllPageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows.filter(t=>t.getCanSelect()),{rowSelection:n}=t.getState();let i=!!e.length;return i&&e.some(t=>!n[t.id])&&(i=!1),i},t.getIsSomeRowsSelected=()=>{var e;const n=Object.keys(null!=(e=t.getState().rowSelection)?e:{}).length;return n>0&&n<t.getFilteredRowModel().flatRows.length},t.getIsSomePageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows;return!t.getIsAllPageRowsSelected()&&e.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},t.getToggleAllRowsSelectedHandler=()=>e=>{t.toggleAllRowsSelected(e.target.checked)},t.getToggleAllPageRowsSelectedHandler=()=>e=>{t.toggleAllPageRowsSelected(e.target.checked)}},createRow:(t,e)=>{t.toggleSelected=(n,i)=>{const r=t.getIsSelected();e.setRowSelection(o=>{var a;if(n=void 0!==n?n:!r,t.getCanSelect()&&r===n)return o;const s={...o};return NC(s,t.id,n,null==(a=null==i?void 0:i.selectChildren)||a,e),s})},t.getIsSelected=()=>{const{rowSelection:n}=e.getState();return VC(t,n)},t.getIsSomeSelected=()=>{const{rowSelection:n}=e.getState();return"some"===HC(t,n)},t.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=e.getState();return"all"===HC(t,n)},t.getCanSelect=()=>{var n;return"function"==typeof e.options.enableRowSelection?e.options.enableRowSelection(t):null==(n=e.options.enableRowSelection)||n},t.getCanSelectSubRows=()=>{var n;return"function"==typeof e.options.enableSubRowSelection?e.options.enableSubRowSelection(t):null==(n=e.options.enableSubRowSelection)||n},t.getCanMultiSelect=()=>{var n;return"function"==typeof e.options.enableMultiRowSelection?e.options.enableMultiRowSelection(t):null==(n=e.options.enableMultiRowSelection)||n},t.getToggleSelectedHandler=()=>{const e=t.getCanSelect();return n=>{var i;e&&t.toggleSelected(null==(i=n.target)?void 0:i.checked)}}}},NC=(t,e,n,i,r)=>{var o;const a=r.getRow(e,!0);n?(a.getCanMultiSelect()||Object.keys(t).forEach(e=>delete t[e]),a.getCanSelect()&&(t[e]=!0)):delete t[e],i&&null!=(o=a.subRows)&&o.length&&a.getCanSelectSubRows()&&a.subRows.forEach(e=>NC(t,e.id,n,i,r))};function FC(t,e){const n=t.getState().rowSelection,i=[],r={},o=function(t,e){return t.map(t=>{var e;const a=VC(t,n);if(a&&(i.push(t),r[t.id]=t),null!=(e=t.subRows)&&e.length&&(t={...t,subRows:o(t.subRows)}),a)return t}).filter(Boolean)};return{rows:o(e.rows),flatRows:i,rowsById:r}}function VC(t,e){var n;return null!=(n=e[t.id])&&n}function HC(t,e,n){var i;if(null==(i=t.subRows)||!i.length)return!1;let r=!0,o=!1;return t.subRows.forEach(t=>{if((!o||r)&&(t.getCanSelect()&&(VC(t,e)?o=!0:r=!1),t.subRows&&t.subRows.length)){const n=HC(t,e);"all"===n?o=!0:"some"===n?(o=!0,r=!1):r=!1}}),r?"all":!!o&&"some"}const GC=/([0-9]+)/gm;function WC(t,e){return t===e?0:t>e?1:-1}function UC(t){return"number"==typeof t?isNaN(t)||t===1/0||t===-1/0?"":String(t):"string"==typeof t?t:""}function jC(t,e){const n=t.split(GC).filter(Boolean),i=e.split(GC).filter(Boolean);for(;n.length&&i.length;){const t=n.shift(),e=i.shift(),r=parseInt(t,10),o=parseInt(e,10),a=[r,o].sort();if(isNaN(a[0])){if(t>e)return 1;if(e>t)return-1}else{if(isNaN(a[1]))return isNaN(r)?-1:1;if(r>o)return 1;if(o>r)return-1}}return n.length-i.length}const XC={alphanumeric:(t,e,n)=>jC(UC(t.getValue(n)).toLowerCase(),UC(e.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(t,e,n)=>jC(UC(t.getValue(n)),UC(e.getValue(n))),text:(t,e,n)=>WC(UC(t.getValue(n)).toLowerCase(),UC(e.getValue(n)).toLowerCase()),textCaseSensitive:(t,e,n)=>WC(UC(t.getValue(n)),UC(e.getValue(n))),datetime:(t,e,n)=>{const i=t.getValue(n),r=e.getValue(n);return i>r?1:i<r?-1:0},basic:(t,e,n)=>WC(t.getValue(n),e.getValue(n))},qC={getInitialState:t=>({sorting:[],...t}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:t=>({onSortingChange:iC("sorting",t),isMultiSortEvent:t=>t.shiftKey}),createColumn:(t,e)=>{t.getAutoSortingFn=()=>{const n=e.getFilteredRowModel().flatRows.slice(10);let i=!1;for(const e of n){const n=null==e?void 0:e.getValue(t.id);if("[object Date]"===Object.prototype.toString.call(n))return XC.datetime;if("string"==typeof n&&(i=!0,n.split(GC).length>1))return XC.alphanumeric}return i?XC.text:XC.basic},t.getAutoSortDir=()=>{const n=e.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(t.id))?"asc":"desc"},t.getSortingFn=()=>{var n,i;if(!t)throw new Error;return rC(t.columnDef.sortingFn)?t.columnDef.sortingFn:"auto"===t.columnDef.sortingFn?t.getAutoSortingFn():null!=(n=null==(i=e.options.sortingFns)?void 0:i[t.columnDef.sortingFn])?n:XC[t.columnDef.sortingFn]},t.toggleSorting=(n,i)=>{const r=t.getNextSortingOrder(),o=null!=n;e.setSorting(a=>{const s=null==a?void 0:a.find(e=>e.id===t.id),l=null==a?void 0:a.findIndex(e=>e.id===t.id);let u,c=[],h=o?n:"desc"===r;var d;return u=null!=a&&a.length&&t.getCanMultiSort()&&i?s?"toggle":"add":null!=a&&a.length&&l!==a.length-1?"replace":s?"toggle":"replace","toggle"===u&&(o||r||(u="remove")),"add"===u?(c=[...a,{id:t.id,desc:h}],c.splice(0,c.length-(null!=(d=e.options.maxMultiSortColCount)?d:Number.MAX_SAFE_INTEGER))):c="toggle"===u?a.map(e=>e.id===t.id?{...e,desc:h}:e):"remove"===u?a.filter(e=>e.id!==t.id):[{id:t.id,desc:h}],c})},t.getFirstSortDir=()=>{var n,i;return(null!=(n=null!=(i=t.columnDef.sortDescFirst)?i:e.options.sortDescFirst)?n:"desc"===t.getAutoSortDir())?"desc":"asc"},t.getNextSortingOrder=n=>{var i,r;const o=t.getFirstSortDir(),a=t.getIsSorted();return a?!!(a===o||null!=(i=e.options.enableSortingRemoval)&&!i||n&&null!=(r=e.options.enableMultiRemove)&&!r)&&("desc"===a?"asc":"desc"):o},t.getCanSort=()=>{var n,i;return(null==(n=t.columnDef.enableSorting)||n)&&(null==(i=e.options.enableSorting)||i)&&!!t.accessorFn},t.getCanMultiSort=()=>{var n,i;return null!=(n=null!=(i=t.columnDef.enableMultiSort)?i:e.options.enableMultiSort)?n:!!t.accessorFn},t.getIsSorted=()=>{var n;const i=null==(n=e.getState().sorting)?void 0:n.find(e=>e.id===t.id);return!!i&&(i.desc?"desc":"asc")},t.getSortIndex=()=>{var n,i;return null!=(n=null==(i=e.getState().sorting)?void 0:i.findIndex(e=>e.id===t.id))?n:-1},t.clearSorting=()=>{e.setSorting(e=>null!=e&&e.length?e.filter(e=>e.id!==t.id):[])},t.getToggleSortingHandler=()=>{const n=t.getCanSort();return i=>{n&&(null==i.persist||i.persist(),null==t.toggleSorting||t.toggleSorting(void 0,!!t.getCanMultiSort()&&(null==e.options.isMultiSortEvent?void 0:e.options.isMultiSortEvent(i))))}}},createTable:t=>{t.setSorting=e=>null==t.options.onSortingChange?void 0:t.options.onSortingChange(e),t.resetSorting=e=>{var n,i;t.setSorting(e?[]:null!=(n=null==(i=t.initialState)?void 0:i.sorting)?n:[])},t.getPreSortedRowModel=()=>t.getGroupedRowModel(),t.getSortedRowModel=()=>(!t._getSortedRowModel&&t.options.getSortedRowModel&&(t._getSortedRowModel=t.options.getSortedRowModel(t)),t.options.manualSorting||!t._getSortedRowModel?t.getPreSortedRowModel():t._getSortedRowModel())}},YC=[uC,OC,IC,DC,dC,CC,{createTable:t=>{t._getGlobalFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,"__global__"),t.getGlobalFacetedRowModel=()=>t.options.manualFiltering||!t._getGlobalFacetedRowModel?t.getPreFilteredRowModel():t._getGlobalFacetedRowModel(),t._getGlobalFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,"__global__"),t.getGlobalFacetedUniqueValues=()=>t._getGlobalFacetedUniqueValues?t._getGlobalFacetedUniqueValues():new Map,t._getGlobalFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,"__global__"),t.getGlobalFacetedMinMaxValues=()=>{if(t._getGlobalFacetedMinMaxValues)return t._getGlobalFacetedMinMaxValues()}}},{getInitialState:t=>({globalFilter:void 0,...t}),getDefaultOptions:t=>({onGlobalFilterChange:iC("globalFilter",t),globalFilterFn:"auto",getColumnCanGlobalFilter:e=>{var n;const i=null==(n=t.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[e.id])?void 0:n.getValue();return"string"==typeof i||"number"==typeof i}}),createColumn:(t,e)=>{t.getCanGlobalFilter=()=>{var n,i,r,o;return(null==(n=t.columnDef.enableGlobalFilter)||n)&&(null==(i=e.options.enableGlobalFilter)||i)&&(null==(r=e.options.enableFilters)||r)&&(null==(o=null==e.options.getColumnCanGlobalFilter?void 0:e.options.getColumnCanGlobalFilter(t))||o)&&!!t.accessorFn}},createTable:t=>{t.getGlobalAutoFilterFn=()=>wC.includesString,t.getGlobalFilterFn=()=>{var e,n;const{globalFilterFn:i}=t.options;return rC(i)?i:"auto"===i?t.getGlobalAutoFilterFn():null!=(e=null==(n=t.options.filterFns)?void 0:n[i])?e:wC[i]},t.setGlobalFilter=e=>{null==t.options.onGlobalFilterChange||t.options.onGlobalFilterChange(e)},t.resetGlobalFilter=e=>{t.setGlobalFilter(e?void 0:t.initialState.globalFilter)}}},qC,kC,zC,{getInitialState:t=>({...t,pagination:{pageIndex:0,pageSize:10,...null==t?void 0:t.pagination}}),getDefaultOptions:t=>({onPaginationChange:iC("pagination",t)}),createTable:t=>{let e=!1,n=!1;t._autoResetPageIndex=()=>{var i,r;if(e){if(null!=(i=null!=(r=t.options.autoResetAll)?r:t.options.autoResetPageIndex)?i:!t.options.manualPagination){if(n)return;n=!0,t._queue(()=>{t.resetPageIndex(),n=!1})}}else t._queue(()=>{e=!0})},t.setPagination=e=>null==t.options.onPaginationChange?void 0:t.options.onPaginationChange(t=>nC(e,t)),t.resetPagination=e=>{var n;t.setPagination(e?{pageIndex:0,pageSize:10}:null!=(n=t.initialState.pagination)?n:{pageIndex:0,pageSize:10})},t.setPageIndex=e=>{t.setPagination(n=>{let i=nC(e,n.pageIndex);const r=void 0===t.options.pageCount||-1===t.options.pageCount?Number.MAX_SAFE_INTEGER:t.options.pageCount-1;return i=Math.max(0,Math.min(i,r)),{...n,pageIndex:i}})},t.resetPageIndex=e=>{var n,i;t.setPageIndex(e?0:null!=(n=null==(i=t.initialState)||null==(i=i.pagination)?void 0:i.pageIndex)?n:0)},t.resetPageSize=e=>{var n,i;t.setPageSize(e?10:null!=(n=null==(i=t.initialState)||null==(i=i.pagination)?void 0:i.pageSize)?n:10)},t.setPageSize=e=>{t.setPagination(t=>{const n=Math.max(1,nC(e,t.pageSize)),i=t.pageSize*t.pageIndex,r=Math.floor(i/n);return{...t,pageIndex:r,pageSize:n}})},t.setPageCount=e=>t.setPagination(n=>{var i;let r=nC(e,null!=(i=t.options.pageCount)?i:-1);return"number"==typeof r&&(r=Math.max(-1,r)),{...n,pageCount:r}}),t.getPageOptions=oC(()=>[t.getPageCount()],t=>{let e=[];return t&&t>0&&(e=[...new Array(t)].fill(null).map((t,e)=>e)),e},aC(t.options,"debugTable")),t.getCanPreviousPage=()=>t.getState().pagination.pageIndex>0,t.getCanNextPage=()=>{const{pageIndex:e}=t.getState().pagination,n=t.getPageCount();return-1===n||0!==n&&e<n-1},t.previousPage=()=>t.setPageIndex(t=>t-1),t.nextPage=()=>t.setPageIndex(t=>t+1),t.firstPage=()=>t.setPageIndex(0),t.lastPage=()=>t.setPageIndex(t.getPageCount()-1),t.getPrePaginationRowModel=()=>t.getExpandedRowModel(),t.getPaginationRowModel=()=>(!t._getPaginationRowModel&&t.options.getPaginationRowModel&&(t._getPaginationRowModel=t.options.getPaginationRowModel(t)),t.options.manualPagination||!t._getPaginationRowModel?t.getPrePaginationRowModel():t._getPaginationRowModel()),t.getPageCount=()=>{var e;return null!=(e=t.options.pageCount)?e:Math.ceil(t.getRowCount()/t.getState().pagination.pageSize)},t.getRowCount=()=>{var e;return null!=(e=t.options.rowCount)?e:t.getPrePaginationRowModel().rows.length}}},{getInitialState:t=>({rowPinning:{top:[],bottom:[]},...t}),getDefaultOptions:t=>({onRowPinningChange:iC("rowPinning",t)}),createRow:(t,e)=>{t.pin=(n,i,r)=>{const o=i?t.getLeafRows().map(t=>{let{id:e}=t;return e}):[],a=r?t.getParentRows().map(t=>{let{id:e}=t;return e}):[],s=new Set([...a,t.id,...o]);e.setRowPinning(t=>{var e,i,r,o,a,l;return"bottom"===n?{top:(null!=(r=null==t?void 0:t.top)?r:[]).filter(t=>!(null!=s&&s.has(t))),bottom:[...(null!=(o=null==t?void 0:t.bottom)?o:[]).filter(t=>!(null!=s&&s.has(t))),...Array.from(s)]}:"top"===n?{top:[...(null!=(a=null==t?void 0:t.top)?a:[]).filter(t=>!(null!=s&&s.has(t))),...Array.from(s)],bottom:(null!=(l=null==t?void 0:t.bottom)?l:[]).filter(t=>!(null!=s&&s.has(t)))}:{top:(null!=(e=null==t?void 0:t.top)?e:[]).filter(t=>!(null!=s&&s.has(t))),bottom:(null!=(i=null==t?void 0:t.bottom)?i:[]).filter(t=>!(null!=s&&s.has(t)))}})},t.getCanPin=()=>{var n;const{enableRowPinning:i,enablePinning:r}=e.options;return"function"==typeof i?i(t):null==(n=null!=i?i:r)||n},t.getIsPinned=()=>{const n=[t.id],{top:i,bottom:r}=e.getState().rowPinning,o=n.some(t=>null==i?void 0:i.includes(t)),a=n.some(t=>null==r?void 0:r.includes(t));return o?"top":!!a&&"bottom"},t.getPinnedIndex=()=>{var n,i;const r=t.getIsPinned();if(!r)return-1;const o=null==(n="top"===r?e.getTopRows():e.getBottomRows())?void 0:n.map(t=>{let{id:e}=t;return e});return null!=(i=null==o?void 0:o.indexOf(t.id))?i:-1}},createTable:t=>{t.setRowPinning=e=>null==t.options.onRowPinningChange?void 0:t.options.onRowPinningChange(e),t.resetRowPinning=e=>{var n,i;return t.setRowPinning(e?{top:[],bottom:[]}:null!=(n=null==(i=t.initialState)?void 0:i.rowPinning)?n:{top:[],bottom:[]})},t.getIsSomeRowsPinned=e=>{var n;const i=t.getState().rowPinning;var r,o;return e?Boolean(null==(n=i[e])?void 0:n.length):Boolean((null==(r=i.top)?void 0:r.length)||(null==(o=i.bottom)?void 0:o.length))},t._getPinnedRows=(e,n,i)=>{var r;return(null==(r=t.options.keepPinnedRows)||r?(null!=n?n:[]).map(e=>{const n=t.getRow(e,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(t=>e.find(e=>e.id===t))).filter(Boolean).map(t=>({...t,position:i}))},t.getTopRows=oC(()=>[t.getRowModel().rows,t.getState().rowPinning.top],(e,n)=>t._getPinnedRows(e,n,"top"),aC(t.options,"debugRows")),t.getBottomRows=oC(()=>[t.getRowModel().rows,t.getState().rowPinning.bottom],(e,n)=>t._getPinnedRows(e,n,"bottom"),aC(t.options,"debugRows")),t.getCenterRows=oC(()=>[t.getRowModel().rows,t.getState().rowPinning.top,t.getState().rowPinning.bottom],(t,e,n)=>{const i=new Set([...null!=e?e:[],...null!=n?n:[]]);return t.filter(t=>!i.has(t.id))},aC(t.options,"debugRows"))}},EC,RC];function ZC(t){var e,n;const i=[...YC,...null!=(e=t._features)?e:[]];let r={_features:i};const o=r._features.reduce((t,e)=>Object.assign(t,null==e.getDefaultOptions?void 0:e.getDefaultOptions(r)),{});let a={...null!=(n=t.initialState)?n:{}};r._features.forEach(t=>{var e;a=null!=(e=null==t.getInitialState?void 0:t.getInitialState(a))?e:a});const s=[];let l=!1;const u={_features:i,options:{...o,...t},initialState:a,_queue:t=>{s.push(t),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(t=>setTimeout(()=>{throw t})))},reset:()=>{r.setState(r.initialState)},setOptions:t=>{const e=nC(t,r.options);r.options=(t=>r.options.mergeOptions?r.options.mergeOptions(o,t):{...o,...t})(e)},getState:()=>r.options.state,setState:t=>{null==r.options.onStateChange||r.options.onStateChange(t)},_getRowId:(t,e,n)=>{var i;return null!=(i=null==r.options.getRowId?void 0:r.options.getRowId(t,e,n))?i:`${n?[n.id,e].join("."):e}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(t,e)=>{let n=(e?r.getPrePaginationRowModel():r.getRowModel()).rowsById[t];if(!n&&(n=r.getCoreRowModel().rowsById[t],!n))throw new Error;return n},_getDefaultColumnDef:oC(()=>[r.options.defaultColumn],t=>{var e;return t=null!=(e=t)?e:{},{header:t=>{const e=t.header.column.columnDef;return e.accessorKey?e.accessorKey:e.accessorFn?e.id:null},cell:t=>{var e,n;return null!=(e=null==(n=t.renderValue())||null==n.toString?void 0:n.toString())?e:null},...r._features.reduce((t,e)=>Object.assign(t,null==e.getDefaultColumnDef?void 0:e.getDefaultColumnDef()),{}),...t}},aC(t,"debugColumns")),_getColumnDefs:()=>r.options.columns,getAllColumns:oC(()=>[r._getColumnDefs()],t=>{const e=function(t,n,i){return void 0===i&&(i=0),t.map(t=>{const o=function(t,e,n,i){var r,o;const a={...t._getDefaultColumnDef(),...e},s=a.accessorKey;let l,u=null!=(r=null!=(o=a.id)?o:s?"function"==typeof String.prototype.replaceAll?s.replaceAll(".","_"):s.replace(/\./g,"_"):void 0)?r:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?l=a.accessorFn:s&&(l=s.includes(".")?t=>{let e=t;for(const t of s.split(".")){var n;e=null==(n=e)?void 0:n[t]}return e}:t=>t[a.accessorKey]),!u)throw new Error;let c={id:`${String(u)}`,accessorFn:l,parent:i,depth:n,columnDef:a,columns:[],getFlatColumns:oC(()=>[!0],()=>{var t;return[c,...null==(t=c.columns)?void 0:t.flatMap(t=>t.getFlatColumns())]},aC(t.options,"debugColumns")),getLeafColumns:oC(()=>[t._getOrderColumnsFn()],t=>{var e;if(null!=(e=c.columns)&&e.length){let e=c.columns.flatMap(t=>t.getLeafColumns());return t(e)}return[c]},aC(t.options,"debugColumns"))};for(const e of t._features)null==e.createColumn||e.createColumn(c,t);return c}(r,t,i,n),a=t;return o.columns=a.columns?e(a.columns,o,i+1):[],o})};return e(t)},aC(t,"debugColumns")),getAllFlatColumns:oC(()=>[r.getAllColumns()],t=>t.flatMap(t=>t.getFlatColumns()),aC(t,"debugColumns")),_getAllFlatColumnsById:oC(()=>[r.getAllFlatColumns()],t=>t.reduce((t,e)=>(t[e.id]=e,t),{}),aC(t,"debugColumns")),getAllLeafColumns:oC(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(t,e)=>e(t.flatMap(t=>t.getLeafColumns())),aC(t,"debugColumns")),getColumn:t=>r._getAllFlatColumnsById()[t]};Object.assign(r,u);for(let t=0;t<r._features.length;t++){const e=r._features[t];null==e||null==e.createTable||e.createTable(r)}return r}function $C(e,n){return e?function(t){return"function"==typeof t&&(()=>{const e=Object.getPrototypeOf(t);return e.prototype&&e.prototype.isReactComponent})()}(i=e)||"function"==typeof i||function(t){return"object"==typeof t&&"symbol"==typeof t.$$typeof&&["react.memo","react.forward_ref"].includes(t.$$typeof.description)}(i)?t(e,n):e:null;var i}const KC="asc",QC="desc",JC="default",tM={[KC]:(0,_.jsx)(JS,{}),[QC]:(0,_.jsx)(tC,{}),[JC]:(0,_.jsx)(eC,{})};function eM({isLoading:t,error:e,tableRows:n,columnCount:i}){let r;return r=!0===t?Array.from({length:5}).map((t,e)=>(0,_.jsx)(d.Tr,{children:Array.from({length:i}).map((t,e)=>(0,_.jsx)(d.Td,{children:(0,_.jsx)(h,{height:16,width:"100%"})},e))},e)):e instanceof Error?(0,_.jsx)(d.Tr,{children:(0,_.jsx)(d.Td,{colSpan:i,align:"center",children:(0,_.jsx)(s,{color:"red",children:e.message})})}):0===n.length?(0,_.jsx)(d.Tr,{children:(0,_.jsx)(d.Td,{colSpan:i,align:"center",children:"No data available."})}):n.map(t=>(0,_.jsx)(d.Tr,{children:t.getVisibleCells().map(t=>(0,_.jsx)(d.Td,{children:$C(t.column.columnDef.cell,t.getContext())},t.id))},t.id)),r}function nM({data:t,isLoading:e,error:n,columns:i}){const[r,s]=o([]),c=function(t){const e={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[n]=o(()=>({current:ZC(e)})),[i,r]=o(()=>n.current.initialState);return n.current.setOptions(e=>({...e,...t,state:{...i,...t.state},onStateChange:e=>{r(e),null==t.onStateChange||t.onStateChange(e)}})),n.current}({data:t,columns:i,getCoreRowModel:t=>oC(()=>[t.options.data],e=>{const n={rows:[],flatRows:[],rowsById:{}},i=function(e,r,o){void 0===r&&(r=0);const a=[];for(let l=0;l<e.length;l++){const u=hC(t,t._getRowId(e[l],l,o),e[l],l,r,void 0,null==o?void 0:o.id);var s;n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),t.options.getSubRows&&(u.originalSubRows=t.options.getSubRows(e[l],l),null!=(s=u.originalSubRows)&&s.length&&(u.subRows=i(u.originalSubRows,r+1,u)))}return a};return n.rows=i(e),n},aC(t.options,"debugTable",0,()=>t._autoResetPageIndex())),getSortedRowModel:t=>oC(()=>[t.getState().sorting,t.getPreSortedRowModel()],(e,n)=>{if(!n.rows.length||null==e||!e.length)return n;const i=t.getState().sorting,r=[],o=i.filter(e=>{var n;return null==(n=t.getColumn(e.id))?void 0:n.getCanSort()}),a={};o.forEach(e=>{const n=t.getColumn(e.id);n&&(a[e.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})});const s=t=>{const e=t.map(t=>({...t}));return e.sort((t,e)=>{for(let i=0;i<o.length;i+=1){var n;const r=o[i],s=a[r.id],l=s.sortUndefined,u=null!=(n=null==r?void 0:r.desc)&&n;let c=0;if(l){const n=void 0===t.getValue(r.id),i=void 0===e.getValue(r.id);if(n||i){if("first"===l)return n?-1:1;if("last"===l)return n?1:-1;c=n&&i?0:n?l:-l}}if(0===c&&(c=s.sortingFn(t,e,r.id)),0!==c)return u&&(c*=-1),s.invertSorting&&(c*=-1),c}return t.index-e.index}),e.forEach(t=>{var e;r.push(t),null!=(e=t.subRows)&&e.length&&(t.subRows=s(t.subRows))}),e};return{rows:s(n.rows),flatRows:r,rowsById:n.rowsById}},aC(t.options,"debugTable",0,()=>t._autoResetPageIndex())),onSortingChange:s,state:{sorting:r}});return(0,_.jsx)(u,{children:(0,_.jsxs)(d,{highlightOnHover:!0,withTableBorder:!0,withColumnBorders:!0,children:[(0,_.jsx)(d.Thead,{children:c.getHeaderGroups().map(t=>(0,_.jsx)(d.Tr,{children:t.headers.map(t=>(0,_.jsx)(d.Th,{onClick:t.column.getToggleSortingHandler(),children:(0,_.jsxs)(l,{gap:"xs",wrap:"nowrap",children:[$C(t.column.columnDef.header,t.getContext()),(0,_.jsx)(a,{variant:"subtle",size:"sm",children:(()=>{const e=t.column.getIsSorted();return function(t,e){let n;return!0===e&&(n=tM[t]),n}(!1===e?JC:e,t.column.getCanSort())})()})]})},t.id))},t.id))}),(0,_.jsx)(d.Tbody,{children:eM({isLoading:e,error:n,tableRows:c.getRowModel().rows,columnCount:i.length})})]})})}function iM(t){for(var e=t.length/6|0,n=new Array(e),i=0;i<e;)n[i]="#"+t.slice(6*i,6*++i);return n}const rM=iM("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),oM=iM("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),aM=iM("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),sM=iM("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),lM=iM("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),uM=iM("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),cM=iM("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),hM=iM("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function dM(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function fM(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function pM(){}var gM=.7,vM=1/gM,mM="\\s*([+-]?\\d+)\\s*",yM="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_M="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xM=/^#([0-9a-f]{3,8})$/,bM=new RegExp(`^rgb\\(${mM},${mM},${mM}\\)$`),wM=new RegExp(`^rgb\\(${_M},${_M},${_M}\\)$`),SM=new RegExp(`^rgba\\(${mM},${mM},${mM},${yM}\\)$`),CM=new RegExp(`^rgba\\(${_M},${_M},${_M},${yM}\\)$`),MM=new RegExp(`^hsl\\(${yM},${_M},${_M}\\)$`),TM=new RegExp(`^hsla\\(${yM},${_M},${_M},${yM}\\)$`),kM={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function IM(){return this.rgb().formatHex()}function DM(){return this.rgb().formatRgb()}function AM(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=xM.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?RM(e):3===n?new OM(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?PM(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?PM(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=bM.exec(t))?new OM(e[1],e[2],e[3],1):(e=wM.exec(t))?new OM(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=SM.exec(t))?PM(e[1],e[2],e[3],e[4]):(e=CM.exec(t))?PM(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=MM.exec(t))?VM(e[1],e[2]/100,e[3]/100,1):(e=TM.exec(t))?VM(e[1],e[2]/100,e[3]/100,e[4]):kM.hasOwnProperty(t)?RM(kM[t]):"transparent"===t?new OM(NaN,NaN,NaN,0):null}function RM(t){return new OM(t>>16&255,t>>8&255,255&t,1)}function PM(t,e,n,i){return i<=0&&(t=e=n=NaN),new OM(t,e,n,i)}function LM(t,e,n,i){return 1===arguments.length?((r=t)instanceof pM||(r=AM(r)),r?new OM((r=r.rgb()).r,r.g,r.b,r.opacity):new OM):new OM(t,e,n,null==i?1:i);var r}function OM(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function BM(){return`#${FM(this.r)}${FM(this.g)}${FM(this.b)}`}function zM(){const t=EM(this.opacity);return`${1===t?"rgb(":"rgba("}${NM(this.r)}, ${NM(this.g)}, ${NM(this.b)}${1===t?")":`, ${t})`}`}function EM(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function NM(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function FM(t){return((t=NM(t))<16?"0":"")+t.toString(16)}function VM(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new GM(t,e,n,i)}function HM(t){if(t instanceof GM)return new GM(t.h,t.s,t.l,t.opacity);if(t instanceof pM||(t=AM(t)),!t)return new GM;if(t instanceof GM)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),a=NaN,s=o-r,l=(o+r)/2;return s?(a=e===o?(n-i)/s+6*(n<i):n===o?(i-e)/s+2:(e-n)/s+4,s/=l<.5?o+r:2-o-r,a*=60):s=l>0&&l<1?0:a,new GM(a,s,l,t.opacity)}function GM(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function WM(t){return(t=(t||0)%360)<0?t+360:t}function UM(t){return Math.max(0,Math.min(1,t||0))}function jM(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function XM(t,e,n,i,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*i+a*r)/6}dM(pM,AM,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:IM,formatHex:IM,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return HM(this).formatHsl()},formatRgb:DM,toString:DM}),dM(OM,LM,fM(pM,{brighter(t){return t=null==t?vM:Math.pow(vM,t),new OM(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?gM:Math.pow(gM,t),new OM(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new OM(NM(this.r),NM(this.g),NM(this.b),EM(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:BM,formatHex:BM,formatHex8:function(){return`#${FM(this.r)}${FM(this.g)}${FM(this.b)}${FM(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:zM,toString:zM})),dM(GM,function(t,e,n,i){return 1===arguments.length?HM(t):new GM(t,e,n,null==i?1:i)},fM(pM,{brighter(t){return t=null==t?vM:Math.pow(vM,t),new GM(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?gM:Math.pow(gM,t),new GM(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new OM(jM(t>=240?t-240:t+120,r,i),jM(t,r,i),jM(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new GM(WM(this.h),UM(this.s),UM(this.l),EM(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=EM(this.opacity);return`${1===t?"hsl(":"hsla("}${WM(this.h)}, ${100*UM(this.s)}%, ${100*UM(this.l)}%${1===t?")":`, ${t})`}`}}));const qM=t=>()=>t;function YM(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):qM(isNaN(t)?e:t)}function ZM(t){return function(e){var n,i,r=e.length,o=new Array(r),a=new Array(r),s=new Array(r);for(n=0;n<r;++n)i=LM(e[n]),o[n]=i.r||0,a[n]=i.g||0,s[n]=i.b||0;return o=t(o),a=t(a),s=t(s),i.opacity=1,function(t){return i.r=o(t),i.g=a(t),i.b=s(t),i+""}}}!function t(e){var n=function(t){return 1===(t=+t)?YM:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):qM(isNaN(e)?n:e)}}(e);function i(t,e){var i=n((t=LM(t)).r,(e=LM(e)).r),r=n(t.g,e.g),o=n(t.b,e.b),a=YM(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);var $M=ZM(function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],o=t[i+1],a=i>0?t[i-1]:2*r-o,s=i<e-1?t[i+2]:2*o-r;return XM((n-i/e)*e,a,r,o,s)}});ZM(function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],o=t[i%e],a=t[(i+1)%e],s=t[(i+2)%e];return XM((n-i/e)*e,r,o,a,s)}});const KM=t=>$M(t[t.length-1]);var QM=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(iM);KM(QM);var JM=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(iM);KM(JM);var tT=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(iM);KM(tT);var eT=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(iM);KM(eT);var nT=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(iM);KM(nT);var iT=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(iM);KM(iT);var rT=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(iM);KM(rT);var oT=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(iM);KM(oT);var aT=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(iM);KM(aT);var sT=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(iM);KM(sT);var lT=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(iM);KM(lT);var uT=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(iM);KM(uT);var cT=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(iM);KM(cT);var hT=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(iM);KM(hT);var dT=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(iM);KM(dT);var fT=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(iM);KM(fT);var pT=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(iM);KM(pT);var gT=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(iM);KM(gT);var vT=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(iM);KM(vT);var mT=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(iM);KM(mT);const yT={Categorical:{"color-scheme-category-10":rM,"color-scheme-accent":oM,"color-scheme-dark-2":aM,"color-scheme-observable-10":sM,"color-scheme-paired":lM,"color-scheme-set-1":uM,"color-scheme-set-2":cM,"color-scheme-tableau-10":hM},SequentialSingleHue:{"color-scheme-blues":QM[9],"color-scheme-greens":JM[9],"color-scheme-greys":tT[9],"color-scheme-oranges":eT[9],"color-scheme-purples":nT[9],"color-scheme-reds":iT[9]},SequentialMultiHue:{"color-scheme-yellow-orange-brown":rT[9],"color-scheme-yellow-orange-red":oT[9],"color-scheme-orange-red":aT[9],"color-scheme-purple-blue-green":sT[9],"color-scheme-blue-purple":lT[9]},Diverging:{"color-scheme-brown-blue-green":uT[11],"color-scheme-purple-green":cT[11],"color-scheme-pink-yellow-green":hT[11],"color-scheme-purple-orange":dT[11],"color-scheme-red-blue":fT[11],"color-scheme-red-grey":pT[11],"color-scheme-red-yellow-blue":gT[11],"color-scheme-red-yellow-green":vT[11],"color-scheme-spectral":mT[11]}},_T={"color-scheme-category-10":"Category 10","color-scheme-accent":"Accent","color-scheme-dark-2":"Dark 2","color-scheme-observable-10":"Observable 10","color-scheme-paired":"Paired","color-scheme-set-1":"Set 1","color-scheme-set-2":"Set 2","color-scheme-tableau-10":"Tableau 10","color-scheme-blues":"Blues","color-scheme-greens":"Greens","color-scheme-greys":"Greys","color-scheme-oranges":"Oranges","color-scheme-purples":"Purples","color-scheme-reds":"Reds","color-scheme-yellow-orange-brown":"Yellow Orange Brown","color-scheme-yellow-orange-red":"Yellow Orange Red","color-scheme-orange-red":"Orange Red","color-scheme-purple-blue-green":"Purple Blue Green","color-scheme-blue-purple":"Blue Purple","color-scheme-brown-blue-green":"Brown Blue Green","color-scheme-purple-green":"Purple Green","color-scheme-pink-yellow-green":"Pink Yellow Green","color-scheme-purple-orange":"Purple Orange","color-scheme-red-blue":"Red Blue","color-scheme-red-grey":"Red Grey","color-scheme-red-yellow-blue":"Red Yellow Blue","color-scheme-red-yellow-green":"Red Yellow Green","color-scheme-spectral":"Spectral"},xT=Object.entries(yT).map(([t,e])=>({group:t,items:Object.keys(e).map(e=>({value:e,label:_T[e],groupName:t}))}));function bT({option:t}){const e=yT[t.groupName][t.value];return(0,_.jsxs)(l,{justify:"space-between",w:"100%",wrap:"nowrap",children:[(0,_.jsx)(f,{children:t.label}),(0,_.jsx)(l,{p:"xs",children:e.map(t=>(0,_.jsx)(p,{bg:t,size:"xs"},t))})]})}function wT(t){return(0,_.jsx)(c,{placeholder:"Select color palette for chart",renderOption:bT,data:xT,...t})}export{wT as CustomColorSelect,nM as CustomTable,$S as EventTimelineChart};
|