1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./InDateRangePicker-CWqOJ9v6.js","./main-BA2HwVAN.js","./entry--RbUO0-A.js","./StackedBarChart-BPkX-U0R.js","./Select-CtrgoPCO.js","./newsletter_subscribe_confirm-DeH9oEyl.js","./vue-multiselect.esm-DxgVjjuY.js","./Detail-DtYHONLt.js","./SvgInlineIcon-D4XPwx38.js","./Table-MOLUImxy.js","./ModalBig-_xvLnYuC.js","./useNumberFormatter-BWk1sW-6.js","./InForm-EespNexg.js","./useVenueGtm-CLoO6yBN.js","./ProseA-Brl8Ghz-.js","./s-locked-DEBO3iNg.js"])))=>i.map(i=>d[i]); 2import{d as te,m as xw,p as un,ae as Ul,R as jt,a6 as el,s as $l,Z as Yl,S as Tr,o as et,c as gt,n as rl,g as tt,i as Q,z as Ot,f as Dt,T as a_,w as Be,l as Me,U as Yn,j as Mr,G as i_,H as o_,I as s_,a7 as Xa,_ as ne,q as lv,u as uv,x as nt,br as ww,P as vc,Q as dc,r as l_,em as Bs,en as Tw,a3 as u_,W as Cw,ei as nl,aZ as pc,V as f_,eo as Mw,a_ as Ns,ep as Au,av as Dw,ar as ep,F as Ne,A as or,y as Xl,ac as Mo,t as c_,v as h_,ak as Aw,el as Ea,b1 as v_,bo as al,eq as Iw,h as Lw,ad as Pw}from"./entry--RbUO0-A.js";import{_ as d_}from"./Select-CtrgoPCO.js";import{_ as p_,a as g_,b as kw}from"./Detail-DtYHONLt.js";import{a as fv}from"./useNumberFormatter-BWk1sW-6.js";import{_ as Ew}from"./ProseA-Brl8Ghz-.js";import{_ as Rw}from"./s-locked-DEBO3iNg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ee7fa03a-2352-40ed-ac63-d38ba12d4256",e._sentryDebugIdIdentifier="sentry-dbid-ee7fa03a-2352-40ed-ac63-d38ba12d4256")}catch{}})();const Ow=o_(()=>s_(()=>import("./InDateRangePicker-CWqOJ9v6.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(e=>e.default||e)),Bw={class:"stats-header__period"},Nw={class:"select-hydrated"},Fw={class:"select-fallback"},zw=te({__name:"StatsHeader",props:{minDate:{type:Date,default:null}},emits:["period-changed","range-changed"],setup(e,{emit:t}){const r=xw("dateRangePicker"),n=un().t,a=jt("last_halfyear"),i=new Ul({isTranslated:!0,options:[{value:"last_week",text:n("page.personal_stats.stats_header.period_last_week")},{value:"last_month",text:n("page.personal_stats.stats_header.period_last_month")},{value:"last_halfyear",text:n("page.personal_stats.stats_header.period_last_halfyear")},{value:"last_year",text:n("page.personal_stats.stats_header.period_last_year")},{value:"custom",text:n("page.personal_stats.stats_header.period_custom")}]}),o=i.options.find(h=>h.value==="last_halfyear")?.text??"",s=jt(el.now().minus({days:14}).toJSDate()),l=jt(el.now().toJSDate()),u=new Date,f=jt(!1);$l(()=>{const h=()=>{f.value=window.scrollY>=20};window.addEventListener("scroll",h,{passive:!0}),h(),Yl(()=>{window.removeEventListener("scroll",h)})});const c=t;return Tr(a,h=>{const v=Xa.getDateRangeForPeriod(h);if(h==="custom"){setTimeout(()=>{r.value&&r.value.updatePreselectedRange(s.value,l.value)},100);return}else s.value=v.from.toJSDate(),l.value=v.to.toJSDate();c("period-changed",h,s.value,l.value)}),Tr([s,l],([h,v])=>{c("range-changed",h,v)}),(h,v)=>{const d=Ow,p=d_,g=i_;return et(),gt("div",{class:rl(["stats-header",{"is-scrolled":tt(f)}])},[Q("h1",null,Ot(h.$t("page.personal_stats.stats_header.page_title")),1),Q("div",Bw,[Dt(a_,{name:"slide"},{default:Be(()=>[tt(a)==="custom"?(et(),Me(d,{key:0,ref:"dateRangePicker",from:tt(s),"onUpdate:from":v[0]||(v[0]=m=>Yn(s)?s.value=m:null),to:tt(l),"onUpdate:to":v[1]||(v[1]=m=>Yn(l)?l.value=m:null),"min-date":e.minDate,"max-date":tt(u)},null,8,["from","to","min-date","max-date"])):Mr("",!0)]),_:1}),Dt(g,null,{fallback:Be(()=>[Q("div",Fw,[Q("span",null,Ot(tt(o)),1)])]),default:Be(()=>[Q("div",Nw,[Dt(p,{modelValue:tt(a),"onUpdate:modelValue":v[2]||(v[2]=m=>Yn(a)?a.value=m:null),data:tt(i),small:""},null,8,["modelValue","data"])])]),_:1})])],2)}}}),Vw=Object.assign(ne(zw,[["__scopeId","data-v-afbd9a0e"]]),{__name:"StatsHeader"}),Gw={class:"cards"},Iu="stats-detail-modal",Hw=te({__name:"FollowerCards",props:{data:{type:Object,required:!0},selectedPeriod:{type:Object,required:!0},isLoading:{type:Boolean,default:!1}},setup(e){const t=e,r=lv(),n=un().t,a=uv(),i=nt(()=>a.user.value?.allows_newsletter??!1),o=fv(),s=nt(()=>`${o.value.format(t.data.totals.followers)} / ${o.value.format(t.data.totals.cancelling_soon)}`),l=nt(()=>{const d=n(`page.personal_stats.follower_cards.${i.value?"newsletter":"favorites"}`,{count:t.data.totals.in_favorites});return`${n("page.personal_stats.follower_cards.active",{count:t.data.totals.active_subscriptions})} ⢠${d}`}),u=nt(()=>`${o.value.format(t.data.aggregate.new_paid_subscriptions)} / ${o.value.format(t.data.aggregate.cancelled_paid_subscriptions)}`),f=nt(()=>{if(t.selectedPeriod.periodType!=="custom")return n(`page.personal_stats.follower_cards.end
2ors_period_${t.selectedPeriod.periodType}`);{const d=Xa.formatJsDate(t.selectedPeriod.from),p=Xa.formatJsDate(t.selectedPeriod.to);return n("page.personal_stats.follower_cards.endors_period_custom",{from:d,to:p})}}),c=jt({header:{title:"",value:"",info:[]},breakdown:[]}),h=()=>{c.value={header:{title:n("page.personal_stats.follower_cards.followers_title_modal"),value:s.value,info:[l.value]},breakdown:(t.data.totals.tiers??[]).filter(d=>!d.deleted_at||d.deleted_at==="").map(d=>{const p=[];if(d.subscription_lengths.quarterly.follower_count>0||d.subscription_lengths.halfyearly.follower_count>0||d.subscription_lengths.yearly.follower_count>0){p.push({value:o.value.format(d.subscription_lengths.monthly.follower_count),label:n("payment.long_term_subscription_options_adj.monthly")});const g=m=>{d.subscription_lengths[m].follower_count>0&&p.unshift({value:o.value.format(d.subscription_lengths[m].follower_count),label:n(`payment.long_term_subscription_options_adj.${m}`)})};g("quarterly"),g("halfyearly"),g("yearly")}return d.subscription_lengths.gifted.follower_count>0&&p.push({value:o.value.format(d.subscription_lengths.gifted.follower_count),label:n("page.personal_stats.follower_cards.gifted")}),{title:`${o.value.format(d.subscriptions)} / ${o.value.format(d.cancelling_soon)}`,subtitle:n("page.personal_stats.follower_cards.tier_breakdown_subtitle",{title:d.tier_title}),rows:p}}).concat([{title:o.value.format(t.data.totals.free_followers),subtitle:n("page.personal_stats.follower_cards.free_followers"),rows:[]}])},r.showModal(Iu)},v=()=>{c.value={header:{title:n("page.personal_stats.follower_cards.endors_title"),value:u.value,info:[f.value]},breakdown:t.data.aggregate.tiers_breakdown.filter(d=>d.tier_name!=="In Favorites").map(d=>{const p=[];if(d.new_subscribers.quarterly>0||d.cancelled_subscribers.quarterly>0||d.new_subscribers.halfyearly>0||d.cancelled_subscribers.halfyearly>0||d.new_subscribers.yearly>0||d.cancelled_subscribers.yearly>0){p.push({value:`${o.value.format(d.new_subscribers.monthly)} / ${o.value.format(d.cancelled_subscribers.monthly)}`,label:n("payment.long_term_subscription_options_adj.monthly")});const g=m=>{(d.new_subscribers[m]>0||d.cancelled_subscribers[m]>0)&&p.unshift({value:`${o.value.format(d.new_subscribers[m])} / ${o.value.format(d.cancelled_subscribers[m])}`,label:n(`payment.long_term_subscription_options_adj.${m}`)})};g("quarterly"),g("halfyearly"),g("yearly"),(d.new_subscribers.gifted>0||d.cancelled_subscribers.gifted>0)&&p.push({value:`${o.value.format(d.new_subscribers.gifted)} / ${o.value.format(d.cancelled_subscribers.gifted)}`,label:n("page.personal_stats.follower_cards.gifted")})}return{title:`${o.value.format(d.new)} / ${o.value.format(d.cancelled)}`,subtitle:d.tier_name,rows:p}})},r.showModal(Iu)};return(d,p)=>{const g=p_,m=g_;return et(),gt("div",Gw,[Dt(g,{title:d.$t("page.personal_stats.follower_cards.followers_title"),value:tt(s),info:[tt(l)],"is-loading":e.isLoading,onOpen:h},null,8,["title","value","info","is-loading"]),Dt(g,{title:d.$t("page.personal_stats.follower_cards.endors_title"),value:tt(u),info:[tt(f)],"is-loading":e.isLoading,onOpen:v},null,8,["title","value","info","is-loading"]),Dt(m,{name:Iu,data:tt(c)},null,8,["data"])])}}}),Ww=Object.assign(ne(Hw,[["__scopeId","data-v-7edda8aa"]]),{__name:"StatsFollowerCards"}),Uw=["disabled"],$w={class:"label-wrapper"},Yw={key:0,class:"label skeleton_block"},Xw=["title","textContent"],Zw={key:0,class:"value skeleton_block"},qw=["textContent"],Kw=te({__name:"LegendButton",props:dc({label:{type:String,required:!0},color:{type:String,required:!0},value:{type:String,required:!0},legendKey:{type:String,required:!0},isLoading:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!0,required:!1},modelModifiers:{}}),emits:dc(["toggle"],["update:modelValue"]),setup(e,{emit:t}){ww(o=>({v09276342:e.color}));const r=e,n=vc(e,"modelValue"),a=t,i=()=>{n.value=!n.value,a("toggle",r.legendKey,n.value)};return(o,s)=>(et(),gt("button",{class:rl(["legend",{inactive:!n.value}]),disabled:e.isLoading,onClick:i},[Q("div",$w,[s[0]||(s[0]=Q("span",{class:"circle"},null,-1)),e.isLoading?(et(),gt("span",Yw)):(et(),gt("span",{key:1,class:"label",title:e.label,textContent:Ot(e.label)},null,8,Xw))]),e.isLoading?(et(),gt("span",Zw)):(et(),gt("span",{key:1,class:"value",textContent:Ot(e.value)},null,8,qw))],10,Uw))}}),jw=Object.assign(ne(Kw,[["__scopeId","data-v-6fb32708"]]),{__name:"StatsLegendButton"}),Qw={},Jw={class:"legend-wrapper"};function tT(e,t){return et(),gt("div",Jw,[l_(e.$slots,"default",{},void 0,!0)])}const eT=Object.assign(ne(Qw,[["render",tT],["__scopeId","data-v-e58ae312"]]),{__name:"StatsLegendButtonsWrapper"});
2var gc=function(e,t){return gc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},gc(e,t)};function Y(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");gc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var rT=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),nT=(function(){function e(){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=typeof window<"u"}return e})(),at=new nT;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(at.wxa=!0,at.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?at.worker=!0:!at.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(at.node=!0,at.svgSupported=!0):aT(navigator.userAgent,at);function aT(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}var cv=12,m_="sans-serif",Dr=cv+"px "+m_,iT=20,oT=100,sT="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function lT(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),a=(e.charCodeAt(r)-iT)/oT;t[n]=a}return t}var uT=lT(sT),Jr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(r,n){if(!e){var a=Jr.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Dr),e.measureText(r);r=r||"",n=n||Dr;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||cv,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=uT[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},y_=ni(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),__=ni(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Do=Object.prototype.toString,Zl=Array.prototype,fT=Zl.forEach,cT=Zl.filter,hv=Zl.slice,hT=Zl.map,rp=(function(){}).constructor,Go=rp?rp.prototype:null,vv="__proto__",vT=2311;function b_(){return vT++}function S_(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function rt(e){if(e==null||typeof e!="object")return e;var t=e,r=Do.call(e);if(r==="[object Array]"){if(!Vi(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=rt(e[n])}}else if(__[r]){if(!Vi(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(var n=0,a=e.length;n<a;n++)t[n]=e[n]}}}else if(!y_[r]&&!Vi(e)&&!Za(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==vv&&(t[o]=rt(e[o]))}return t}function ht(e,t,r){if(!K(t)||!K(e))return r?rt(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==vv){var a=e[n],i=t[n];K(i)&&K(a)&&!N(i)&&!N(a)&&!Za(i)&&!Za(a)&&!np(i)&&!np(a)&&!Vi(i)&&!Vi(a)?ht(a,i,r):(r||!(n in e))&&(e[n]=rt(t[n]))}return e}function O(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==vv&&(e[r]=t[r]);return e}function it(e,t,r){for(var n=mt(t),a=0,i=n.length;a<i;a++){var o=n[a];e[o]==null&&(e[o]=t[o])}return e}function ft(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function dT(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(e.prototype[a]=r[a]);e.prototype.constructor=e,e.superClass=t}function We(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&e[i]==null&&(e[i]=t[i])}else it(e,t)}function ce(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function I(e,t,r){if(e&&t)if(e.forEach&&e.forEach===fT)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(r,e[i],i,e)}function F(e,t,r){if(!e)return[];if(!t)return pv(e);if(e.map&&e.map===hT)return e.map(t,r);for(var n=[],a=0,i=e.length;a<i;a++)n.push(t.call(r,e[a],a,e));return n}function ni(e,t,r,n){if(e&&t){for(var a=0,i=e.length;a<i;a++)r=t.call(n,r,e[a],a,e);return r}}function Mt(e,t,r){if(!e)return[];if(!t)return pv(e);if(e.filter&&e.filter===cT)return e.filter(t,r);for(var n=[],a=0,i=e.length;a<i;a++)t.call(r,e[a],a,e)&&n.push(e[a]);return n}function pT(e,t,r){if(e&&t){for(var n=0,a=e.length;n<a;n++)if(t.call(r,e[n],n,e))return e[n]}}function mt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function gT(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(hv.call(arguments)))}}var lt=Go&&Z(Go.bind)?Go.call.bind(Go.bind):gT;function ot(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(hv.call(arguments)))}}function N(e){return Array.isArray?Array.isArray(e):Do.call(e)==="[object Array]"}function Z(e){return typeof e=="function"}function $(e){return typeof e=="string"}function mc(e){return Do.call(e)==="[object String]"}function xt(e){return typeof e=="number"}function K(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function np(e){return!!y_[Do.call(e)]}function he(e){return!!__[Do.call(e)]}function Za(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function dv(e){return e.colorStops!=null}function eo(e){return e!==e}function ro(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function X(e,t){return e??t}function Ga(e,t,r){return e??t??r}function pv(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return hv.apply(e,t)}
2function gv(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Ae(e,t){if(!e)throw new Error(t)}function rr(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var x_="__ec_primitive__";function yc(e){e[x_]=!0}function Vi(e){return e[x_]}var mT=(function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return mt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e})(),w_=typeof Map=="function";function yT(){return w_?new Map:new mT}var _T=(function(){function e(t){var r=N(t);this.data=yT();var n=this;t instanceof e?t.each(a):t&&I(t,a);function a(i,o){r?n.set(i,o):n.set(o,i)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,a){t.call(r,n,a)})},e.prototype.keys=function(){var t=this.data.keys();return w_?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function q(e){return new _T(e)}function bT(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var a=e.length,n=0;n<t.length;n++)r[n+a]=t[n];return r}function ql(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&O(r,t),r}function Fe(e,t){return e.hasOwnProperty(t)}function Qt(){}var Fs=180/Math.PI;var _c=function(e,t){return _c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},_c(e,t)};function wt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");_c(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function ai(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function ST(e){return[e[0],e[1]]}function ap(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function T_(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function xT(e){return Math.sqrt(wT(e))}function wT(e){return e[0]*e[0]+e[1]*e[1]}function Lu(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function mv(e,t){var r=xT(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function bc(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var TT=bc;function CT(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ha=CT;function MT(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function De(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e}function Ra(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Oa(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var fa=(function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e})(),DT=(function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new fa(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,t),this.handler.dispatchToElement(new fa(r,t),"drag",t.event);var s=this.handler.findHover(n,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new fa(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new fa(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new fa(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new fa(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),Ue=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,f=i[t][u];return f&&f.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==r&&a.push(n[t][i]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e})(),AT=Math.log(2);function Sc(e,t,r,n,a,i){var o=n+"-"+a,s=e.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/AT);return e[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,h=0,v=0;h<s;h++){var d=1<<h;d&a||(c+=(v%2?-1:1)*e[r][h]*Sc(e,t-1,f,u,a|d,i),v++)}return i[o]=c,c}function ip(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},a=Sc(r,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Sc(r,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,f){var c=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/c,l[1]=(u*i[3]+f*i[4]+i[5])/c}}}var il="___zrEVENTSAVED",Pu=[];function IT(e,t,r,n,a){return xc(Pu,t,n,a,!0)&&xc(e,r,Pu[0],Pu[1])}function LT(e,t){e&&r(e),t&&r(t);function r(n){var a=n[il];a&&(a.clearMarkers&&a.clearMarkers(),delete n[il])}}function xc(e,t,r,n,a){if(t.getBoundingClientRect&&at.domSupported&&!C_(t)){var i=t[il]||(t[il]={}),o=PT(t,i),s=kT(o,i,a);if(s)return s(e,r,n),!0}return!1}function PT(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){I(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function kT(e,t,r){for(var n=r?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=e[u].getBoundingClientRect(),c=2*u,h=f.left,v=f.top;o.push(h,v),l=l&&i&&h===i[c]&&v===i[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=r?ip(s,o):ip(o,s))}
2function C_(e){return e.nodeName.toUpperCase()==="CANVAS"}var ET=/([&<>"'])/g,RT={"&":"&","<":"<",">":">",'"':""","'":"'"};function re(e){return e==null?"":(e+"").replace(ET,function(t,r){return RT[r]})}var OT=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ku=[],BT=at.browser.firefox&&+at.browser.version.split(".")[0]<39;function wc(e,t,r,n){return r=r||{},n?op(e,t,r):BT&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):op(e,t,r),r}function op(e,t,r){if(at.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(C_(e)){var i=e.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(xc(ku,e,n,a)){r.zrX=ku[0],r.zrY=ku[1];return}}r.zrX=r.zrY=0}function yv(e){return e||window.event}function Se(e,t,r){if(t=yv(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&wc(e,o,t,r)}else{wc(e,t,t,r);var i=NT(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&OT.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function NT(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function Tc(e,t,r,n){e.addEventListener(t,r,n)}function FT(e,t,r,n){e.removeEventListener(t,r,n)}var ol=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function sp(e){return e.which===2||e.which===3}var zT=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:r,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=wc(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},e.prototype._recognize=function(t){for(var r in Eu)if(Eu.hasOwnProperty(r)){var n=Eu[r](this._track,t);if(n)return n}},e})();function lp(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function VT(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Eu={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,a=(e[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=lp(n)/lp(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=VT(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Cr(){return[1,0,0,1,0,0]}function _v(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function M_(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Gi(e,t,r){var n=t[0]*r[0]+t[2]*r[1],a=t[1]*r[0]+t[3]*r[1],i=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function Cc(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function bv(e,t,r,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(r),c=Math.cos(r);return e[0]=a*c+s*f,e[1]=-a*f+s*c,e[2]=i*c+l*f,e[3]=-i*f+c*l,e[4]=c*(o-n[0])+f*(u-n[1])+n[0],e[5]=c*(u-n[1])-f*(o-n[0])+n[1],e}function GT(e,t,r){var n=r[0],a=r[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function Ao(e,t){var r=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=r*o-i*n;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*a)*l,e[5]=(i*a-r*s)*l,e):null}var pt=(function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,a){t.x=r.x+n.x*a,t.y=r.y+n.y*a},e.lerp=function(t,r,n,a){var i=1-a;t.x=i*r.x+a*n.x,t.y=i*r.y+a*n.y},e})(),Hn=Math.min,Ba=Math.max,Mc=Math.abs,up=["x","y"],HT=["width","height"],hn=new pt,vn=new pt,dn=new pt,pn=new pt,ge=D_(),ki=ge.minTv,Dc=ge.maxTv,Hi=[0,0],ut=(function(){function e(t,r,n,a){e.set(this,t,r,n,a)}return e.set=function(t,r,n,a,i){return a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),t.x=r,t.y=n,t.width=a,t.height=i,t},e.prototype.union=function(t){var r=Hn(t.x,this.x),n=Hn(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ba(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ba(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,a=t.height/r.height,i=Cr();return Cc(i,i,[-r.x,-r.y]),GT(i,i,[n,a]),Cc(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,r,n){return e.intersect(this,t,r,n)},e.intersect=function(t,r,n,a){n&&pt.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!t||!r)return!1;t instanceof e||(t=e.set(WT,t.x,t.y,t.width,t.height)),r instanceof e||(r=e.set(UT,r.x,r.y,r.width,r.height));var s=!!n;ge.reset(a,s);var l=ge.touchThreshold,u=t.x+l,f=t.x+t.width-l,c=t.y+l,h=t.y+t.height-l,v=r.x+l,d=r.x+r.width-l,p=r.y+l,g=r.y+r.height-l;if(u>f||c>h||v>d||p>g)return!1;var m=!(f<v||d<u||h<p||g<c);return(s||i)&&(Hi[0]=1/0,Hi[1]=0,fp(u,f,v,d,0,s,i,o),fp(c,h,p,g,1,s,i,o),s&&pt.copy(n,m?ge.useDir?ge.dirMinTv:ki:Dc)),m},e.contain=function(t,r,n){return r>=t.x&&r<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){return t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height,t},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=r.x*a+o,t.y=r.y*i+s,t.width=r.width*a,t.height=r.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}hn.x=dn.x=r.x,hn.y=pn.y=r.y,vn.x=pn.x=r.x+r.width,vn.y=dn.y=r.y+r.height,hn.transform(n),pn.transform(n),vn.transform(n),dn.transform(n),t.x=Hn(hn.x,vn.x,dn.x,pn.x),t.y=Hn(hn.y,vn.y,dn.y,pn.y);
2var l=Ba(hn.x,vn.x,dn.x,pn.x),u=Ba(hn.y,vn.y,dn.y,pn.y);t.width=l-t.x,t.height=u-t.y},e})(),WT=new ut(0,0,0,0),UT=new ut(0,0,0,0);function fp(e,t,r,n,a,i,o,s){var l=Mc(t-r),u=Mc(n-e),f=Hn(l,u),c=up[a],h=up[1-a],v=HT[a];t<r||n<e?l<u?(i&&(Dc[c]=-l),s&&(o[c]=t,o[v]=0)):(i&&(Dc[c]=u),s&&(o[c]=e,o[v]=0)):(o&&(o[c]=Ba(e,r),o[v]=Hn(t,n)-o[c]),i&&(f<Hi[0]||ge.useDir)&&(Hi[0]=Hn(f,Hi[0]),(l<u||!ge.bidirectional)&&(ki[c]=l,ki[h]=0,ge.useDir&&ge.calcDirMTV()),(l>=u||!ge.bidirectional)&&(ki[c]=-u,ki[h]=0,ge.useDir&&ge.calcDirMTV())))}function D_(){var e=0,t=new pt,r=new pt,n={minTv:new pt,maxTv:new pt,useDir:!1,dirMinTv:new pt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){n.touchThreshold=0,i&&i.touchThreshold!=null&&(n.touchThreshold=Ba(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&i.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),e=i.direction,n.bidirectional=i.bidirectional==null||!!i.bidirectional,n.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(e),u=Math.cos(e),f=l*i.y+u*i.x;if(a(f)){a(i.x)&&a(i.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,a(r.x)&&a(r.y)){o.set(0,0);return}(n.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function a(i){return Mc(i)<1e-10}return n}var A_="silent";function $T(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:YT}}function YT(){ol(this.event)}var XT=(function(e){wt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Ue),fi=(function(){function e(t,r){this.x=t,this.y=r}return e})(),ZT=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ru=new ut(0,0,0,0),I_=(function(e){wt(t,e);function t(r,n,a,i,o){var s=e.call(this)||this;return s._hovered=new fi(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new XT,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new DT(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(I(ZT,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=L_(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new fi(n,a):this.findHover(n,a),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new fi(0,0)},t.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=$T(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new fi(r,n);if(cp(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ut(r-u,n-u,l,l),c=i.length-1;c>=0;c--){var h=i[c];h!==a&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(Ru.copy(h.getBoundingRect
2()),h.transform&&Ru.applyTransform(h.transform),Ru.intersect(f)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=v)for(var m=0;m<p;m+=d){var y=r+g*Math.cos(m),_=n+g*Math.sin(m);if(cp(s,o,y,_,a),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new zT);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new fi;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t})(Ue);I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){I_.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=L_(this,r,n),i,o;if((e!=="mouseup"||!a)&&(i=this.findHover(r,n),o=i.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||TT(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function qT(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return a?A_:!0}return!1}function cp(e,t,r,n,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=qT(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==A_)){t.target=o;break}}}function L_(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var P_=32,ci=7;function KT(e){for(var t=0;e>=P_;)t|=e&1,e>>
2=1;return e+t}function hp(e,t,r,n){var a=t+1;if(a===r)return 1;if(n(e[a++],e[t])<0){for(;a<r&&n(e[a],e[a-1])<0;)a++;jT(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function jT(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function vp(e,t,r,n,a){for(n===t&&n++;n<r;n++){for(var i=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=i}}function Ou(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])>0){for(s=n-a;l<s&&i(e,t[r+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(e,t[r+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);i(e,t[r+f])>0?o=f+1:l=f}return l}function Bu(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])<0){for(s=a+1;l<s&&i(e,t[r+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(e,t[r+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);i(e,t[r+f])<0?l=f:o=f+1}return l}function QT(e,t){var r=ci,n,a,i=0,o=[];n=[],a=[];function s(v,d){n[i]=v,a[i]=d,i+=1}function l(){for(;i>1;){var v=i-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]<a[v+1]&&v--;else if(a[v]>a[v+1])break;f(v)}}function u(){for(;i>1;){var v=i-2;v>0&&a[v-1]<a[v+1]&&v--,f(v)}}function f(v){var d=n[v],p=a[v],g=n[v+1],m=a[v+1];a[v]=p+m,v===i-3&&(n[v+1]=n[v+2],a[v+1]=a[v+2]),i--;var y=Bu(e[g],e,d,p,0,t);d+=y,p-=y,p!==0&&(m=Ou(e[d+p-1],e,g,m,m-1,t),m!==0&&(p<=m?c(d,p,g,m):h(d,p,g,m)))}function c(v,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=e[v+m];var y=0,_=p,b=v;if(e[b++]=e[_++],--g===0){for(m=0;m<d;m++)e[b+m]=o[y+m];return}if(d===1){for(m=0;m<g;m++)e[b+m]=e[_+m];e[b+g]=o[y];return}for(var x=r,S,w,C;;){S=0,w=0,C=!1;do if(t(e[_],o[y])<0){if(e[b++]=e[_++],w++,S=0,--g===0){C=!0;break}}else if(e[b++]=o[y++],S++,w=0,--d===1){C=!0;break}while((S|w)<x);if(C)break;do{if(S=Bu(e[_],o,y,d,0,t),S!==0){for(m=0;m<S;m++)e[b+m]=o[y+m];if(b+=S,y+=S,d-=S,d<=1){C=!0;break}}if(e[b++]=e[_++],--g===0){C=!0;break}if(w=Ou(o[y],e,_,g,0,t),w!==0){for(m=0;m<w;m++)e[b+m]=e[_+m];if(b+=w,_+=w,g-=w,g===0){C=!0;break}}if(e[b++]=o[y++],--d===1){C=!0;break}x--}while(S>=ci||w>=ci);if(C)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),d===1){for(m=0;m<g;m++)e[b+m]=e[_+m];e[b+g]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)e[b+m]=o[y+m]}}function h(v,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=e[p+m];var y=v+d-1,_=g-1,b=p+g-1,x=0,S=0;if(e[b--]=e[y--],--d===0){for(x=b-(g-1),m=0;m<g;m++)e[x+m]=o[m];return}if(g===1){for(b-=d,y-=d,S=b+1,x=y+1,m=d-1;m>=0;m--)e[S+m]=e[x+m];e[b]=o[_];return}for(var w=r;;){var C=0,M=0,T=!1;do if(t(o[_],e[y])<0){if(e[b--]=e[y--],C++,M=0,--d===0){T=!0;break}}else if(e[b--]=o[_--],M++,C=0,--g===1){T=!0;break}while((C|M)<w);if(T)break;
2do{if(C=d-Bu(o[_],e,v,d,d-1,t),C!==0){for(b-=C,y-=C,d-=C,S=b+1,x=y+1,m=C-1;m>=0;m--)e[S+m]=e[x+m];if(d===0){T=!0;break}}if(e[b--]=o[_--],--g===1){T=!0;break}if(M=g-Ou(e[y],o,0,g,g-1,t),M!==0){for(b-=M,_-=M,g-=M,S=b+1,x=_+1,m=0;m<M;m++)e[S+m]=o[x+m];if(g<=1){T=!0;break}}if(e[b--]=e[y--],--d===0){T=!0;break}w--}while(C>=ci||M>=ci);if(T)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),g===1){for(b-=d,y-=d,S=b+1,x=y+1,m=d-1;m>=0;m--)e[S+m]=e[x+m];e[b]=o[_]}else{if(g===0)throw new Error;for(x=b-(g-1),m=0;m<g;m++)e[x+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function zs(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var i=0;if(a<P_){i=hp(e,r,n,t),vp(e,r,n,r+i,t);return}var o=QT(e,t),s=KT(a);do{if(i=hp(e,r,n,t),i<s){var l=a;l>s&&(l=s),vp(e,r,r+l,r+i,t),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var tr=1,Ei=2,La=4,dp=!1;function Nu(){dp||(dp=!0)}function pp(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var JT=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=pp}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,t);n.length=this._displayListLen,zs(n,pp)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath(),i=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(i||a)){if(s||(s=t.__clipPaths=[]),i)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=a,f=t;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var c=t.childrenRef(),h=0;h<c.length;h++){var v=c[h];t.__dirty&&(v.__dirty|=tr),this._updateAndAddDisplayable(v,s,n)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(Nu(),d.z=0),isNaN(d.z2)&&(Nu(),d.z2=0),isNaN(d.zlevel)&&(Nu(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var m=t.getTextContent();m&&this._updateAndAddDisplayable(m,s,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var a=ft(this._roots,t);a>=0&&this._roots.splice(a,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),Ac;Ac=at.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Wi={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Wi.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Wi.bounceIn(e*2)*.5:Wi.bounceOut(e*2-1)*.5+.5}},Ho=Math.pow,qr=Math.sqrt,sl=1e-8,k_=1e-4,gp=qr(3),Wo=1/3,er=ai(),Te=ai(),Wa=ai();function $r(e){return e>-sl&&e<sl}function E_(e){return e>sl||e<-sl}function Yt(e,t,r,n,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*n+3*i*r)}function mp(e,t,r,n,a){var i=1-a;return 3*(((t-e)*i+2*(r-t)*a)*i+(n-r)*a*a)}function ll(e,t,r,n,a,i){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-a,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,v=0;
2if($r(f)&&$r(c))if($r(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[v++]=d)}else{var p=c*c-4*f*h;if($r(p)){var g=c/f,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(i[v++]=d),m>=0&&m<=1&&(i[v++]=m)}else if(p>0){var y=qr(p),_=f*s+1.5*o*(-c+y),b=f*s+1.5*o*(-c-y);_<0?_=-Ho(-_,Wo):_=Ho(_,Wo),b<0?b=-Ho(-b,Wo):b=Ho(b,Wo);var d=(-s-(_+b))/(3*o);d>=0&&d<=1&&(i[v++]=d)}else{var x=(2*f*s-3*o*c)/(2*qr(f*f*f)),S=Math.acos(x)/3,w=qr(f),C=Math.cos(S),d=(-s-2*w*C)/(3*o),m=(-s+w*(C+gp*Math.sin(S)))/(3*o),M=(-s+w*(C-gp*Math.sin(S)))/(3*o);d>=0&&d<=1&&(i[v++]=d),m>=0&&m<=1&&(i[v++]=m),M>=0&&M<=1&&(i[v++]=M)}}return v}function R_(e,t,r,n,a){var i=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if($r(o)){if(E_(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if($r(f))a[0]=-i/(2*o);else if(f>0){var c=qr(f),u=(-i+c)/(2*o),h=(-i-c)/(2*o);u>=0&&u<=1&&(a[l++]=u),h>=0&&h<=1&&(a[l++]=h)}}return l}function tn(e,t,r,n,a,i){var o=(t-e)*a+e,s=(r-t)*a+t,l=(n-r)*a+r,u=(s-o)*a+o,f=(l-s)*a+s,c=(f-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=c,i[4]=c,i[5]=f,i[6]=l,i[7]=n}function tC(e,t,r,n,a,i,o,s,l,u,f){var c,h=.005,v=1/0,d,p,g,m;er[0]=l,er[1]=u;for(var y=0;y<1;y+=.05)Te[0]=Yt(e,r,a,o,y),Te[1]=Yt(t,n,i,s,y),g=Ha(er,Te),g<v&&(c=y,v=g);v=1/0;for(var _=0;_<32&&!(h<k_);_++)d=c-h,p=c+h,Te[0]=Yt(e,r,a,o,d),Te[1]=Yt(t,n,i,s,d),g=Ha(Te,er),d>=0&&g<v?(c=d,v=g):(Wa[0]=Yt(e,r,a,o,p),Wa[1]=Yt(t,n,i,s,p),m=Ha(Wa,er),p<=1&&m<v?(c=p,v=m):h*=.5);return qr(v)}function eC(e,t,r,n,a,i,o,s,l){for(var u=e,f=t,c=0,h=1/l,v=1;v<=l;v++){var d=v*h,p=Yt(e,r,a,o,d),g=Yt(t,n,i,s,d),m=p-u,y=g-f;c+=Math.sqrt(m*m+y*y),u=p,f=g}return c}function oe(e,t,r,n){var a=1-n;return a*(a*e+2*n*t)+n*n*r}function yp(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function rC(e,t,r,n,a){var i=e-2*t+r,o=2*(t-e),s=e-n,l=0;if($r(i)){if(E_(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if($r(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var c=qr(f),u=(-o+c)/(2*i),h=(-o-c)/(2*i);u>=0&&u<=1&&(a[l++]=u),h>=0&&h<=1&&(a[l++]=h)}}return l}function O_(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function ul(e,t,r,n,a){var i=(t-e)*n+e,o=(r-t)*n+t,s=(o-i)*n+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function nC(e,t,r,n,a,i,o,s,l){var u,f=.005,c=1/0;er[0]=o,er[1]=s;for(var h=0;h<1;h+=.05){Te[0]=oe(e,r,a,h),Te[1]=oe(t,n,i,h);var v=Ha(er,Te);v<c&&(u=h,c=v)}c=1/0;for(var d=0;d<32&&!(f<k_);d++){var p=u-f,g=u+f;Te[0]=oe(e,r,a,p),Te[1]=oe(t,n,i,p);var v=Ha(Te,er);if(p>=0&&v<c)u=p,c=v;else{Wa[0]=oe(e,r,a,g),Wa[1]=oe(t,n,i,g);var m=Ha(Wa,er);g<=1&&m<c?(u=g,c=m):f*=.5}}return qr(c)}function aC(e,t,r,n,a,i,o){for(var s=e,l=t,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,v=oe(e,r,a,h),d=oe(t,n,i,h),p=v-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=v,l=d}return u}var iC=/cubic-bezier\(([0-9,\.e ]+)\)/;function Sv(e){var t=e&&iC.exec(e);if(t){var r=t[1].split(","),n=+rr(r[0]),a=+rr(r[1]),i=+rr(r[2]),o=+rr(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:ll(0,n,i,1,l,s)&&Yt(0,a,o,1,s[0])}}}var oC=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Qt,this.ondestroy=t.ondestroy||Qt,this.onrestart=t.onrestart||Qt,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Z(t)?t:Wi[t]||Sv(t)},e})(),B_=(function(){function e(t){this.value=t}return e})(),sC=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new B_(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),qa=(function(){function e(t){this._list=new sC,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new B_(r),s.key=t,n.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),_p={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 Kr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Ic(e){return e<0?0:e>1?1:e}function Fu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Kr(parseFloat(t)/100*255):Kr(parseInt(t,10))}function Xn(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ic(parseFloat(t)/100):Ic(parseFloat(t))}function zu(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Uo(e,t,r){return e+(t-e)*r}function be(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function Lc(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var N_=new qa(20),$o=null;function ca(e,t){$o&&Lc($o,t),$o=N_.put(e,$o||t.slice())}function ze(e,t){if(e){t=t||[];var r=N_.get(e);if(r)return Lc(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in _p)return Lc(t,_p[n]),ca(e,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){be(t,0,0,0,1);return}return be(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),ca(e,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){be(t,0,0,0,1);return}return be(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),ca(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?be(t,+u[0],+u[1],+u[2],1):be(t,0,0,0,1);f=Xn(u.pop());case"rgb":if(u.length>=3)return be(t,Fu(u[0]),Fu(u[1]),Fu(u[2]),u.length===3?f:Xn(u[3])),ca(e,t),t;be(t,0,0,0,1);return;case"hsla":if(u.length!==4){be(t,0,0,0,1);return}return u[3]=Xn(u[3]),Pc(u,t),ca(e,t),t;case"hsl":if(u.length!==3){be(t,0,0,0,1);return}return Pc(u,t),ca(e,t),t;default:return}}be(t,0,0,0,1)}}function Pc(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Xn(e[1]),a=Xn(e[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],be(t,Kr(zu(o,i,r+1/3)*255),Kr(zu(o,i,r)*255),Kr(zu(o,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function lC(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var f=((i-t)/6+o/2)/o,c=((i-r)/6+o/2)/o,h=((i-n)/6+o/2)/o;t===i?l=h-c:r===i?l=1/3+f-h:n===i&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return e[3]!=null&&v.push(e[3]),v}}function bp(e,t){var r=ze(e);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-t)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Io(r,r.length===4?"rgba":"rgb")}}function uC(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=ze(t[a]),s=ze(t[i]),l=n-a,u=Io([Kr(Uo(o[0],s[0],l)),Kr(Uo(o[1],s[1],l)),Kr(Uo(o[2],s[2],l)),Ic(Uo(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function kc(e,t,r,n){var a=ze(e);if(e)return a=lC(a),r!=null&&(a[1]=Xn(Z(r)?r(a[1]):r)),n!=null&&(a[2]=Xn(Z(n)?n(a[2]):n)),Io(Pc(a),"rgba")}function Io(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function fl(e,t){var r=ze(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Sp=new qa(100);function Ec(e){if($(e)){var t=Sp.get(e);return t||(t=bp(e,-.1),Sp.put(e,t)),t}else if(dv(e)){var r=O({},e);return r.colorStops=F(e.colorStops,function(n){return{offset:n.offset,color:bp(n.color,-.1)}}),r}return e}var cl=Math.round;function no(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=ze(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var xp=1e-4;function Yr(e){return e<xp&&e>-xp}function Yo(e){return cl(e*1e3)/1e3}function Rc(e){return cl(e*1e4)/1e4}function fC(e){return"matrix("+Yo(e[0])+","+Yo(e[1])+","+Yo(e[2])+","+Yo(e[3])+","+Rc(e[4])+","+Rc(e[5])+")"}var cC={left:"start",right:"end",center:"middle",middle:"middle"};function hC(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function vC(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function dC(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function F_(e){return e&&!!e.image}function pC(e){return e&&!!e.svgElement}function xv(e){return F_(e)||pC(e)}function z_(e){return e.type==="linear"}function V_(e){return e.type==="radial"}function G_(e){return e&&(e.type==="linear"||e.type==="radial")}
2function Kl(e){return"url(#"+e+")"}function H_(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function W_(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Fs,a=X(e.scaleX,1),i=X(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+cl(o*Fs)+"deg, "+cl(s*Fs)+"deg)"),l.join(" ")}var gC=(function(){return at.hasGlobalWindow&&Z(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})(),Oc=Array.prototype.slice;function br(e,t,r){return(t-e)*r+e}function Vu(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=br(t[i],r[i],n);return e}function mC(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=br(t[o][s],r[o][s],n)}return e}function Xo(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+r[i]*n;return e}function wp(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function yC(e,t){for(var r=e.length,n=t.length,a=r>n?t:e,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function _C(e,t,r){var n=e,a=t;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(r===1?a[l]:Oc.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=a[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=a[l][f])}}function Vs(e){if(ce(e)){var t=e.length;if(ce(e[0])){for(var r=[],n=0;n<t;n++)r.push(Oc.call(e[n]));return r}return Oc.call(e)}return e}function Gs(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function bC(e){return ce(e&&e[0])?2:1}var Zo=0,Hs=1,U_=2,Ri=3,Bc=4,Nc=5,Tp=6;function Cp(e){return e===Bc||e===Nc}function qo(e){return e===Hs||e===U_}var hi=[0,0,0,0],SC=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=Tp,l=r;if(ce(r)){var u=bC(r);s=u,(u===1&&!xt(r[0])||u===2&&!xt(r[0][0]))&&(o=!0)}else if(xt(r)&&!eo(r))s=Zo;else if($(r))if(!isNaN(+r))s=Zo;else{var f=ze(r);f&&(l=f,s=Ri)}else if(dv(r)){var c=O({},l);c.colorStops=F(r.colorStops,function(v){return{offset:v.offset,color:ze(v.color)}}),z_(r)?s=Bc:V_(r)&&(s=Nc),l=c}i===0?this.valType=s:(s!==this.valType||s===Tp)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=Z(n)?n:Wi[n]||Sv(n)),a.push(h),h},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=qo(a),u=Cp(a),f=0;f<i;f++){var c=n[f],h=c.value,v=o.value;c.percent=c.time/t,s||(l&&f!==i-1?_C(h,v,a):u&&yC(h.colorStops,v.colorStops))}if(!s&&a!==Nc&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<i;f++)a===Zo?n[f].additiveValue=n[f].value-d:a===Ri?n[f].additiveValue=Xo([],n[f].value,d,-1):qo(a)&&(n[f].additiveValue=a===Hs?Xo([],n[f].value,d,-1):wp([],n[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Ri,f,c=this._lastFr,h=Math.min,v,d;if(s===1)v=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=h(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=h(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=h(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=r;var g=d.percent-v.percent,m=g===0?1:h((r-v.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?hi:t[l];if((qo(i)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?v.rawValue:d.rawValue;else if(qo(i))i===Hs?Vu(y,v[a],d[a],m):mC(y,v[a],d[a],m);else if(Cp(i)){var _=v[a],b=d[a],x=i===Bc;t[l]={type:x?"linear":"radial",x:br(_.x,b.x,m),y:br(_.y,b.y,m),colorStops:F(_.colorStops,function(w,C){var M=b.colorStops[C];return{offset:br(w.offset,M.offset,m),color:Gs(Vu([],w.color,M.color,m))}}),global:b.global},x?(t[l].x2=br(_.x2,b.x2,m),t[l].y2=br(_.y2,b.y2,m)):t[l].r=br(_.r,b.r,m)}else if(u)Vu(y,v[a],d[a],m),n||(t[l]=Gs(y));else{var S=br(v[a],d[a],m);n?this._additiveValue=S:t[l]=S}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,a=this._additiveValue;r===Zo?t[n]=t[n]+a:r===Ri?(ze(t[n],hi),Xo(hi,hi,a,1),t[n]=Gs(hi)):r===Hs?Xo(t[n],t[n],a,1):r===U_&&wp(t[n],t[n],a,1)},e})(),wv=(function(){function e(t,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&a){S_("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,mt(r),n)},e.prototype.whenWithKeys=function(t,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new SC(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,h=c[c.length-1];u=h&&h.value,f.valType===Ri&&u&&(u=Gs(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Vs(u),a),this._trackKeys.push(s)}l.addKeyframe(t,Vs(r[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(r=i)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new oC({life:a,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var d=r._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,v);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return F(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[i]=Vs(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||mt(t);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e})();function Na(){return new Date().getTime()}var xC=(function(e){wt(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Na()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update(
2))},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Ac(n),!r._paused&&r.update())}Ac(n)},t.prototype.start=function(){this._running||(this._time=Na(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Na(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Na()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var a=new wv(r,n.loop);return this.addAnimator(a),a},t})(Ue),wC=300,Gu=at.domSupported,Hu=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=F(e,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:n}})(),Mp={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Dp=!1;function Fc(e){var t=e.pointerType;return t==="pen"||t==="touch"}function TC(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Wu(e){e&&(e.zrByTouch=!0)}function CC(e,t){return Se(e.dom,new MC(e,t),!0)}function $_(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var MC=(function(){function e(t,r){this.stopPropagation=Qt,this.stopImmediatePropagation=Qt,this.preventDefault=Qt,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e})(),Ee={mousedown:function(e){e=Se(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Se(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Se(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Se(this.dom,e);var t=e.toElement||e.relatedTarget;$_(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Dp=!0,e=Se(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Dp||(e=Se(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Se(this.dom,e),Wu(e),this.__lastTouchMoment=ne
2w Date,this.handler.processGesture(e,"start"),Ee.mousemove.call(this,e),Ee.mousedown.call(this,e)},touchmove:function(e){e=Se(this.dom,e),Wu(e),this.handler.processGesture(e,"change"),Ee.mousemove.call(this,e)},touchend:function(e){e=Se(this.dom,e),Wu(e),this.handler.processGesture(e,"end"),Ee.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<wC&&Ee.click.call(this,e)},pointerdown:function(e){Ee.mousedown.call(this,e)},pointermove:function(e){Fc(e)||Ee.mousemove.call(this,e)},pointerup:function(e){Ee.mouseup.call(this,e)},pointerout:function(e){Fc(e)||Ee.mouseout.call(this,e)}};I(["click","dblclick","contextmenu"],function(e){Ee[e]=function(t){t=Se(this.dom,t),this.trigger(e,t)}});var zc={pointermove:function(e){Fc(e)||zc.mousemove.call(this,e)},pointerup:function(e){zc.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function DC(e,t){var r=t.domHandlers;at.pointerEventsSupported?I(Hu.pointer,function(n){Ws(t,n,function(a){r[n].call(e,a)})}):(at.touchEventsSupported&&I(Hu.touch,function(n){Ws(t,n,function(a){r[n].call(e,a),TC(t)})}),I(Hu.mouse,function(n){Ws(t,n,function(a){a=yv(a),t.touching||r[n].call(e,a)})}))}function AC(e,t){at.pointerEventsSupported?I(Mp.pointer,r):at.touchEventsSupported||I(Mp.mouse,r);function r(n){function a(i){i=yv(i),$_(e,i.target)||(i=CC(e,i),t.domHandlers[n].call(e,i))}Ws(t,n,a,{capture:!0})}}function Ws(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,Tc(e.domTarget,t,r,n)}function Uu(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&FT(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var Ap=(function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e})(),IC=(function(e){wt(t,e);function t(r,n){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new Ap(r,Ee),Gu&&(a._globalHandlerScope=new Ap(document,zc)),DC(a,a._localHandlerScope),a}return t.prototype.dispose=function(){Uu(this._localHandlerScope),Gu&&Uu(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Gu&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?AC(this,n):Uu(n)}},t})(Ue),Y_=1;at.hasGlobalWindow&&(Y_=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ip=Y_,Vc=.4,Gc="#333",Hc="#ccc",LC="#eee",Lp=_v,Pp=5e-5;function gn(e){return e>Pp||e<-Pp}var mn=[],ha=[],$u=Cr(),Yu=Math.abs,jl=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return gn(this.rotation)||gn(this.x)||gn(this.y)||gn(this.scaleX-1)||gn(this.scaleY-1)||gn(this.skewX)||gn(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(Lp(n),this.invTransform=null);return}n=n||Cr(),r?this.getLocalTransform(n):Lp(n),t&&(r?Gi(n,t,n):M_(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(mn);var n=mn[0]<0?-1:1,a=mn[1]<0?-1:1,i=((mn[0]-n)*r+n)/mn[0]||0,o=((mn[1]-a)*r+a)/mn[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Cr(),Ao(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);
2n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Cr(),Gi(ha,t.invTransform,r),r=ha);var n=this.originX,a=this.originY;(n||a)&&($u[4]=n,$u[5]=a,Gi(ha,r,$u),ha[4]-=n,ha[5]-=a,r=ha),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],a=this.invTransform;return a&&De(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&De(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Yu(t[0]-1)>1e-10&&Yu(t[3]-1)>1e-10?Math.sqrt(Yu(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){hl(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var d=n+s,p=a+l;r[4]=-d*i-h*p*o,r[5]=-p*o-v*d*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=v*i,r[2]=h*o,u&&bv(r,r,u),r[4]+=n+f,r[5]+=a+c,r},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),ao=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function hl(e,t){for(var r=0;r<ao.length;r++){var n=ao[r];e[n]=t[n]}}function sr(e){Ko||(Ko=new qa(100)),e=e||Dr;var t=Ko.get(e);return t||(t={font:e,strWidthCache:new qa(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Jr.measureText("å½",e).width,asciiCharWidth:Jr.measureText("a",e).width},Ko.put(e,t)),t}var Ko;function PC(e){if(!(Xu>=kp)){e=e||Dr;for(var t=[],r=+new Date,n=0;n<=127;n++)t[n]=Jr.measureText(String.fromCharCode(n),e).width;var a=+new Date-r;return a>16?Xu=kp:a>2&&Xu++,t}}var Xu=0,kp=5;function X_(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=PC(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function lr(e,t){var r=e.strWidthCache,n=r.get(t);return n==null&&(n=Jr.measureText(t,e.font).width,r.put(t,n)),n}function Ep(e,t,r,n){var a=lr(sr(t),e),i=Lo(t),o=Ka(0,a,r),s=Zn(0,i,n),l=new ut(o,s,a,i);return l}function Tv(e,t,r,n){var a=((e||"")+"").split(` 3`),i=a.length;if(i===1)return Ep(a[0],t,r,n);for(var o=new ut(0,0,0,0),s=0;s<a.length;s++){var l=Ep(a[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function Ka(e,t,r,n){return r==="right"?n?e+=t:e-=t:r==="center"&&(n?e+=t/2:e-=t/2),e}function Zn(e,t,r,n){return r==="middle"?n?e+=t/2:e-=t/2:r==="bottom"&&(n?e+=t:e-=t),e}function Lo(e){return sr(e).stWideCharWidth}function en(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function vl(e,t,r){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=en(n[0],r.width),u+=en(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=a,u+=s,f="right",c="middle";break;case"right":l+=a+o,u+=s,c="middle";break;case"top":l+=o/2,u-=a,f="center",c="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=a,u+=s,c="middle";break;case"insideRight":l+=o-a,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",c="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=i-a,c="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",c="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=c,e}var Zu="__zr_normal__",qu=ao.concat(["ignore"]),kC=ni(ao,function(e,t){return e[t]=!0,e},{ignore:!1}),va={},EC=new ut(0,0,0,0),jo=[],Ql=(function(){function e(t){this.id=b_(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;i.copyTransform(r);var f=n.position!=null,c=n.autoOverflowArea,h=void 0;if((c||f)&&(h=EC,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect
3()),a||h.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(va,n,h):vl(va,n,h),i.x=va.x,i.y=va.y,o=va.align,s=va.verticalAlign;var v=n.origin;if(v&&n.rotation!=null){var d=void 0,p=void 0;v==="center"?(d=h.width*.5,p=h.height*.5):(d=en(v[0],h.width),p=en(v[1],h.height)),u=!0,i.originX=-i.x+d+(a?0:h.x),i.originY=-i.y+p+(a?0:h.y)}}n.rotation!=null&&(i.rotation=n.rotation);var g=n.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=m.overflowRect=m.overflowRect||new ut(0,0,0,0);i.getLocalTransform(jo),Ao(jo,jo),ut.copy(y,h),y.applyTransform(jo)}else m.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,b=void 0,x=void 0,S=void 0;_&&this.canBeInsideText()?(b=n.insideFill,x=n.insideStroke,(b==null||b==="auto")&&(b=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(b),S=!0)):(b=n.outsideFill,x=n.outsideStroke,(b==null||b==="auto")&&(b=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(b),S=!0)),b=b||"#000",(b!==m.fill||x!==m.stroke||S!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=b,m.stroke=x,m.autoStroke=S,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=tr,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Hc:Gc},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&ze(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,Io(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},O(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(K(t))for(var n=t,a=mt(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==Zu)){var o=a.targetName,s=o?r[o]:r;a.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,qu)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in r)&&(r[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Zu,!1,t)},e.prototype.useState=function(t,r,n,a){var i=t===Zu,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(ft(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){S_("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||a);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,r,n,f),h&&h.useState(t,r,n,f),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~tr),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&a.push(f)}var c=a[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(a),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,r,h),g&&g.useStates(t,r,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~tr)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var r=t.__hostTarget;t=r?t.ignoreHostSilent?null:r:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=ft(this.currentStates,t);
3if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var a=this.currentStates.slice(),i=ft(a,t),o=ft(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,a=0;a<t.length;a++){var i=t[a];O(r,i),i.textConfig&&(n=n||{},O(n,i.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,a,i,o){var s=!(r&&a);r&&r.textConfig?(this.textConfig=O({},a?this.textConfig:n.textConfig),O(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<qu.length;f++){var c=qu[f],h=i&&kC[c];r&&r[c]!=null?h?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(h?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!i)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new jl,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),O(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=tr;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var a=t?this[t]:this,i=new wv(a,r,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},e.prototype.addAnimator=function(t,r){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=ft(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!t||t===s.scope?s.stop(r):i.push(s)}return this.animators=i,this},e.prototype.animateTo=function(t,r,n){Ku(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){Ku(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,a){for(var i=Ku(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=tr;function r(n,a,i,o){Object.defineProperty(t,n,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),e})();We(Ql,Ue);We(Ql,jl);function Ku(e,t,r,n,a){r=r||{};var i=[];Z_(e,"",e,t,r,n,i,a);var o=i.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&r.during&&i[0].during(function(d,p){r.during(p)});for(var h=0;h<i.length;h++){var v=i[h];f&&v.done(f),c&&v.aborted(c),r.force&&v.duration(r.duration),v.start(r.easing)}return i}function ju(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function RC(e){return ce(e[0])}function OC(e,t,r){if(ce(t[r]))if(ce(e[r])||(e[r]=[]),he(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),ju(e[r],t[r],n))}else{var a=t[r],i=e[r],o=a.length;if(RC(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?ju(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else ju(i,a,o);i.length=a.length}else e[r]=t[r]}function BC(e,t){return e===t||ce(e)&&ce(t)&&NC(e,t)}function NC(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}
3function Z_(e,t,r,n,a,i,o,s){for(var l=mt(n),u=a.duration,f=a.delay,c=a.additive,h=a.setToFinal,v=!K(i),d=e.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&r[m]!=null&&(v||i[m]))if(K(y)&&!ce(y)&&!dv(y)){if(t){s||(r[m]=y,e.updateDuringAnimation(t));continue}Z_(e,m,r[m],y,a,i&&i[m],o,s)}else p.push(m);else s||(r[m]=y,e.updateDuringAnimation(t),p.push(m))}var _=p.length;if(!c&&_)for(var b=0;b<d.length;b++){var x=d[b];if(x.targetName===t){var S=x.stopTracks(p);if(S){var w=ft(d,x);d.splice(w,1)}}}if(a.force||(p=Mt(p,function(D){return!BC(n[D],r[D])}),_=p.length),_>0||a.force&&!o.length){var C=void 0,M=void 0,T=void 0;if(s){M={},h&&(C={});for(var b=0;b<_;b++){var m=p[b];M[m]=r[m],h?C[m]=n[m]:r[m]=n[m]}}else if(h){T={};for(var b=0;b<_;b++){var m=p[b];T[m]=Vs(r[m]),OC(r,n,m)}}var x=new wv(r,!1,!1,c?Mt(d,function(L){return L.targetName===t}):null);x.targetName=t,a.scope&&(x.scope=a.scope),h&&C&&x.whenWithKeys(0,C,p),T&&x.whenWithKeys(0,T,p),x.whenWithKeys(u??500,s?M:n,p).delay(f||0),e.addAnimator(x,t),o.push(x)}}var Lt=(function(e){wt(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var a=ft(this._children,r);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,a=this._children,i=ft(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];r.call(n,o,i)}return this},t.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=r.call(n,i);i.isGroup&&!o&&i.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new ut(0,0,0,0),a=r||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(ut.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t})(Ql);Lt.prototype.type="group";var Us={},q_={};function FC(e){delete q_[e]}function zC(e){if(!e)return!1;if(typeof e=="string")return fl(e,1)<Vc;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,a=0;a<n;a++)r+=fl(t[a].color,1);return r/=n,r<Vc}return!1}var VC=(function(){function e(t,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var i=new JT,o=n.renderer||"canvas";Us[o]||(o=mt(Us)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Us[o](r,i,n,t),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!at.node&&!at.worker&&!l?new IC(s.getViewportRoot(),s.root):null,f=n.useCo
3arsePointer,c=f==null||f==="auto"?at.touchEventsSupported:!!f,h=44,v;c&&(v=X(n.pointerSize,h)),this.handler=new I_(i,s,u,s.root,v),this.animation=new xC({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=zC(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,n=Na();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=Na();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Lt&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,FC(this.id))},e})();function Rp(e,t){var r=new VC(b_(),e,t);return q_[r.id]=r,r}function GC(e,t){Us[e]=t}var Wc;function HC(e){if(typeof Wc=="function")return Wc(e)}function WC(e){Wc=e}var Op=1e-4,K_=20;function UC(e){return e.replace(/^\s+|\s+$/g,"")}var io=Math.min,me=Math.max,nr=Math.abs;function Fn(e,t,r,n){var a=t[0],i=t[1],o=r[0],s=r[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/l*u+o}var Ft=$C;function $C(e,t,r){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Uc(e,t,r)}function Uc(e,t,r){return $(e)?UC(e).match(/%$/)?parseFloat(e)/100*t+(r||0):parseFloat(e):e==null?NaN:+e}function Wt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),K_),e=(+e).toFixed(t),r?e:+e}function YC(e){return e.sort(function(t,r){return t-r}),e}function ar(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return XC(e)}function XC(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,a=r>0?r:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}
3function j_(e,t){var r=Math.log,n=Math.LN10,a=Math.floor(r(e[1]-e[0])/n),i=Math.round(r(nr(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function ZC(e,t){var r=Math.max(ar(e),ar(t)),n=e+t;return r>K_?n:Wt(n,r)}function Q_(e){var t=Math.PI*2;return(e%t+t)%t}function dl(e){return e>-Op&&e<Op}var qC=/^(?:(\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 ii(e){if(e instanceof Date)return e;if($(e)){var t=qC.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function KC(e){return Math.pow(10,Cv(e))}function Cv(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function J_(e,t){var r=Cv(e),n=Math.pow(10,r),a=e/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,e=i*n,r>=-20?+e.toFixed(r<0?-r:0):e}function pl(e){var t=parseFloat(e);return t==e&&(t!==0||!$(e)||e.indexOf("x")<=0)?t:NaN}function jC(e){return!isNaN(pl(e))}function t1(){return Math.round(Math.random()*9)}function e1(e,t){return t===0?e:e1(t,e%t)}function Bp(e,t){return e==null?t:t==null?e:e*t/e1(e,t)}function r1(e,t){}function se(e){throw new Error(e)}function Np(e,t,r){return(t-e)*r+e}var n1="series\0",a1="\0_ec_\0";function Bt(e){return e instanceof Array?e:e==null?[]:[e]}function $c(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!e.emphasis[t].hasOwnProperty(i)&&e[t].hasOwnProperty(i)&&(e.emphasis[t][i]=e[t][i])}}}var Fp=["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 Po(e){return K(e)&&!N(e)&&!(e instanceof Date)?e.value:e}function QC(e){return K(e)&&!(e instanceof Array)}function JC(e,t,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=q();I(t,function(l,u){if(!K(l)){t[u]=null;return}});var s=tM(e,o,r);return(n||a)&&eM(s,e,o,t),n&&rM(s,t),n||a?nM(s,t,a):i&&aM(s,t),iM(s),s}function tM(e,t,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<e.length;a++){var i=e[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:r==="replaceMerge"||oo(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function eM(e,t,r,n){I(n,function(a,i){if(!(!a||a.id==null)){var o=Ui(a.id),s=r.get(o);if(s!=null){var l=e[s];Ae(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],n[i]=null}}})}function rM(e,t){I(t,function(r,n){if(!(!r||r.name==null))for(var a=0;a<e.length;a++){var i=e[a].existing;if(!e[a].newOption&&i&&(i.id==null||r.id==null)&&!oo(r)&&!oo(i)&&i1("name",i,r)){e[a].newOption=r,t[n]=null;return}}})}function nM(e,t,r){I(t,function(n){if(n){for(var a,i=0;(a=e[i])&&(a.newOption||oo(a.existing)||a.existing&&n.id!=null&&!i1("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function aM(e,t){I(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function iM(e){var t=q();I(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),I(e,function(r){var n=r.newOption;Ae(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),I(e,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;if(K(i)){if(o.name=i.name!=null?Ui(i.name):a?a.name:n1+n,a)o.id=Ui(a.id);else if(i.id!=null)o.id=Ui(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function i1(e,t,r){var n=ur(t[e],null),a=ur(r[e],null);return n!=null&&a!=null&&n===a}function Ui(e){return ur(e,"")}function ur(e,t){return e==null?t:$(e)?e:xt(e)||mc(e)?e+"":t}function Mv(e){var t=e.name;return!!(t&&t.indexOf(n1))}function oo(e){return e&&e.id!=null&&Ui(e.id).indexOf(a1)===0}function oM(e){return a1+e}function sM(e,t,r){I(e,function(n){var a=n.newOption;K(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=lM(t,a,n.existing,r))})}function lM(e,t,r,n){var a=t.type?t.type:r?r.subType:n.determineSubType(e,t);return a}function Jn(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return N(t.dataIndex)?F(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return N(t.name)?F(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function St(){var e="__ec_inner_"+uM++;return function(t){return t[e]||(t[e]={})}}var uM=t1();function $i(e,t,r){var n=Dv(t,r),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var c=ko(e,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Dv(e,t){var r;if($(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var a=q(),i={},o=!1;return I(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&ft(t.includeMainTypes,f)<0)){o=o||!!f;var h=a.get(f)||a.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var Kt={useDefault:!0,enableAll:!1,enableNone:!1},fM={useDefault:!1,enableAll:!0,enableNone:!0};function ko(e,t,r,n){n=n||Kt;var a=r.index,i=r.id,o=r.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}if(a==="none"||a===!1){if(n.enableNone)return s.models=[],s;a=-1}return a==="all"&&(n.enableAll?a=i=o=null:a=-1),s.models=e.queryComponents({mainType:t,index:a,id:i,name:o}),s}function o1(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function cM(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function hM(e){return e==="auto"?at.domSupported?"html":"richText":e||"html"}function vM(e,t,r,n,a){var i=t==null||t==="auto";if(n==null)return n;if(xt(n)){var o=Np(r||0,n,a);return Wt(o,i?Math.max(ar(r||0),ar(n)):t)}else{if($(n))return a<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var h=e.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(a<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,d=u[c],o=Np(v,d,a);s[c]=Wt(o,i?Math.max(ar(v),ar(d)):t)}}return s}}var dM=".",yn="___EC__COMPONENT__CONTAINER___",s1="___EC__EXTENDED_CLASS___";function ir(e){var t={main:"",sub:""};if(e){var r=e.split(dM);t.main=r[0]||"",t.sub=r[1]||""}return t}function pM(e){Ae(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function gM(e){return!!(e&&e[s1])}function Av(e,t){e.$constructor=e,e.extend=function(r){var n=this,a;return mM(n)?a=(function(i){Y(o,i);function o(){return i.apply(this,arguments)||this}return o}
3)(n):(a=function(){(r.$constructor||n).apply(this,arguments)},dT(a,this)),O(a.prototype,r),a[s1]=!0,a.extend=this.extend,a.superCall=bM,a.superApply=SM,a.superClass=n,a}}function mM(e){return Z(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function l1(e,t){e.extend=t.extend}var yM=Math.round(Math.random()*10);function _M(e){var t=["__\0is_clz",yM++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function bM(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function SM(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Jl(e){var t={};e.registerClass=function(n){var a=n.type||n.prototype.type;if(a){pM(a),n.prototype.type=a;var i=ir(a);if(!i.sub)t[i.main]=n;else if(i.sub!==yn){var o=r(i);o[i.sub]=n}}return n},e.getClass=function(n,a,i){var o=t[n];if(o&&o[yn]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var a=ir(n),i=[],o=t[a.main];return o&&o[yn]?I(o,function(s,l){l!==yn&&i.push(s)}):i.push(o),i},e.hasClass=function(n){var a=ir(n);return!!t[a.main]},e.getAllClassMainTypes=function(){var n=[];return I(t,function(a,i){n.push(i)}),n},e.hasSubTypes=function(n){var a=ir(n),i=t[a.main];return i&&i[yn]};function r(n){var a=t[n.main];return(!a||!a[yn])&&(a=t[n.main]={},a[yn]=!0),a}}function so(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,a,i){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(a&&ft(a,l)>=0||i&&ft(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var xM=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],wM=so(xM),TM=(function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return wM(this,t,r)},e})(),Yc=new qa(50);function CM(e){if(typeof e=="string"){var t=Yc.get(e);return t&&t.image}else return e}function Iv(e,t,r,n,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var i=Yc.get(e),o={hostEl:r,cb:n,cbPayload:a};return i?(t=i.image,!tu(t)&&i.pending.push(o)):(t=Jr.loadImage(e,zp,zp),t.__zrImageSrc=e,Yc.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function zp(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function tu(e){return e&&e.width&&e.height}var Qu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function MM(e,t,r,n,a,i){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(` 4`);i=u1(r,n,a,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)f1(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;e.text=o.join(` 5`),e.isTruncated=s}function u1(e,t,r,n){n=n||{};var a=O({},n);r=X(r,"..."),a.maxIterations=X(n.maxIterations,2);var i=a.minChar=X(n.minChar,0),o=a.fontMeasureInfo=sr(t),s=o.asciiCharWidth;a.placeholder=X(n.placeholder,"");for(var l=e=Math.max(0,e-1),u=0;u<i&&l>=s;u++)l-=s;var f=lr(o,r);return f>l&&(r="",f=0),l=e-f,a.ellipsis=r,a.ellipsisWidth=f,a.contentWidth=l,a.containerWidth=e,a}function f1(e,t,r){var n=r.containerWidth,a=r.contentWidth,i=r.fontMeasureInfo;if(!n){e.textLine="",e.isTruncated=!1;return}var o=lr(i,t);if(o<=n){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=r.maxIterations){t+=r.ellipsis;break}var l=s===0?DM(t,a,i):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=lr(i,t)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function DM(e,t,r){for(var n=0,a=0,i=e.length;a<i&&n<t;a++)n+=X_(r,e.charCodeAt(a));return a}function AM(e,t,r,n){var a=Lv(e),i=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=t.font,f=i==="truncate",c=Lo(u),h=X(t.lineHeight,c),v=t.lineOverflow==="truncate",d=!1,p=t.width;p==null&&r!=null&&(p=r-s);var g=t.height;g==null&&n!=null&&(g=n-l);var m;p!=null&&(i==="break"||i==="breakAll")?m=a?c1(a,t.font,p,i==="breakAll",0).lines:[]:m=a?a.split(` 6`):[];var y=m.length*h;if(g==null&&(g=y),y>g&&v){var _=Math.floor(g/h);d=d||m.length>_,m=m.slice(0,_),y=m.length*h}if(a&&f&&p!=null)for(var b=u1(p,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<m.length;S++)f1(x,m[S],b),m[S]=x.textLine,d=d||x.isTruncated;for(var w=g,C=0,M=sr(u),S=0;S<m.length;S++)C=Math.max(lr(M,m[S]),C);p==null&&(p=C);var T=p;return w+=l,T+=s,{lines:m,height:g,outerWidth:T,outerHeight:w,lineHeight:h,calculatedLineHeight:c,contentWidth:C,contentHeight:y,width:p,isTruncated:d}}var IM=(function(){function e(){}return e})(),Vp=(function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e})(),LM=(function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e})();function PM(e,t,r,n,a){var i=new LM,o=Lv(e);if(!o)return i;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=t.width;f==null&&r!=null&&(f=r-l);var c=t.height;c==null&&n!=null&&(c=n-u);for(var h=t.overflow,v=(h==="break"||h==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:h==="breakAll"}:null,d=Qu.lastIndex=0,p;(p=Qu.exec(o))!=null;){var g=p.index;g>d&&Ju(i,o.substring(d,g),t,v),Ju(i,p[2],t,v,p[1]),d=Qu.lastIndex}d<o.length&&Ju(i,o.substring(d,o.length),t,v);var m=[],y=0,_=0,b=h==="truncate",x=t.lineOverflow==="truncate",S={};function w(Vt,ae,$t){Vt.width=ae,Vt.lineHeight=$t,y+=$t,_=Math.max(_,ae)}t:for(var C=0;C<i.lines.length;C++){for(var M=i.lines[C],T=0,D=0,L=0;L<M.tokens.length;L++){var A=M.tokens[L],P=A.styleName&&t.rich[A.styleName]||{},k=A.textPadding=P.padding,E=k?k[1]+k[3]:0,B=A.font=P.font||t.font;A.contentHeight=Lo(B);var R=X(P.height,A.contentHeight);
6if(A.innerHeight=R,k&&(R+=k[0]+k[2]),A.height=R,A.lineHeight=Ga(P.lineHeight,t.lineHeight,R),A.align=P&&P.align||a,A.verticalAlign=P&&P.verticalAlign||"middle",x&&c!=null&&y+A.lineHeight>c){var z=i.lines.length;L>0?(M.tokens=M.tokens.slice(0,L),w(M,D,T),i.lines=i.lines.slice(0,C+1)):i.lines=i.lines.slice(0,C),i.isTruncated=i.isTruncated||i.lines.length<z;break t}var G=P.width,H=G==null||G==="auto";if(typeof G=="string"&&G.charAt(G.length-1)==="%")A.percentWidth=G,m.push(A),A.contentWidth=lr(sr(B),A.text);else{if(H){var U=P.backgroundColor,j=U&&U.image;j&&(j=CM(j),tu(j)&&(A.width=Math.max(A.width,j.width*R/j.height)))}var st=b&&f!=null?f-D:null;st!=null&&st<A.width?!H||st<E?(A.text="",A.width=A.contentWidth=0):(MM(S,A.text,st-E,B,t.ellipsis,{minChar:t.truncateMinChar}),A.text=S.text,i.isTruncated=i.isTruncated||S.isTruncated,A.width=A.contentWidth=lr(sr(B),A.text)):A.contentWidth=lr(sr(B),A.text)}A.width+=E,D+=A.width,P&&(T=Math.max(T,A.lineHeight))}w(M,D,T)}i.outerWidth=i.width=X(f,_),i.outerHeight=i.height=X(c,y),i.contentHeight=y,i.contentWidth=_,i.outerWidth+=l,i.outerHeight+=u;for(var C=0;C<m.length;C++){var A=m[C],_t=A.percentWidth;A.width=parseInt(_t,10)/100*i.width}return i}function Ju(e,t,r,n,a){var i=t==="",o=a&&r.rich[a]||{},s=e.lines,l=o.font||r.font,u=!1,f,c;if(n){var h=o.padding,v=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var d=en(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(` 7`),u=!0),n.accumWidth=d}else{var p=c1(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+v,c=p.linesWidths,f=p.lines}}f||(f=t.split(` 8`));for(var g=sr(l),m=0;m<f.length;m++){var y=f[m],_=new IM;if(_.styleName=a,_.text=y,_.isLineHolder=!y&&!i,typeof o.width=="number"?_.width=o.width:_.width=c?c[m]:lr(g,y),!m&&!u){var b=(s[s.length-1]||(s[0]=new Vp)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=_:(y||!x||i)&&b.push(_)}else s.push(new Vp([_]))}}function kM(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var EM=ni(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function RM(e){return kM(e)?!!EM[e]:!0}function c1(e,t,r,n,a){for(var i=[],o=[],s="",l="",u=0,f=0,c=sr(t),h=0;h<e.length;h++){var v=e.charAt(h);if(v===` 9`){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=X_(c,v.charCodeAt(0)),p=n?!1:!RM(v);if(i.length?f+d>r:a+f+d>r){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=d)):p?(i.push(l),o.push(u),l=v,u=d):(i.push(v),o.push(d));continue}f+=d,p?(l+=v,u+=d):(l&&(s+=l,l="",u=0),s+=v)}return l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}function Gp(e,t,r,n,a,i){if(e.baseX=r,e.baseY=n,e.outerWidth=e.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;ut.set(Hp,Ka(r,o,a),Zn(n,s,i),o,s),ut.intersect(t,Hp,null,Wp);var l=Wp.outIntersectRect;e.outerWidth=l.width,e.outerHeight=l.height,e.baseX=Ka(l.x,l.width,a,!0),e.baseY=Zn(l.y,l.height,i,!0)}}var Hp=new ut(0,0,0,0),Wp={outIntersectRect:{},clamp:!0};function Lv(e){return e!=null?e+="":e=""}function OM(e){var t=Lv(e.text),r=e.font,n=lr(sr(r),t),a=Lo(r);return Xc(e,n,a,null)}function Xc(e,t,r,n){var a=new ut(Ka(e.x||0,t,e.textAlign),Zn(e.y||0,r,e.textBaseline),t,r),i=n??(h1(e)?e.lineWidth:0);return i>0&&(a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i),a}function h1(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}var Zc="__zr_style_"+Math.round(Math.random()*10),qn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},eu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};qn[Zc]=!0;var Up=["z","z2","invisible"],BM=["invisible"],oi=(function(e){wt(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=mt(r),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(r[i]):e.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&NM(this,r,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect
9();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ut(0,0,0,0)),n?ut.applyTransform(r,a,n):r.copy(a),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ut(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:O(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Ei,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Ei)},t.prototype.styleUpdated=function(){this.__dirty&=~Ei},t.prototype.createStyle=function(r){return ql(qn,r)},t.prototype.useStyle=function(r){r[Zc]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[Zc]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Up)},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=mt(f),h=0;h<c.length;h++){var v=c[h];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=mt(u),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?BM:Up,h=0;h<p.length;h++){var v=p[h];n&&n[v]!=null?this[v]=n[v]:l&&a[v]!=null&&(this[v]=a[v])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(r,n){return O(r,n),r},t.prototype.getAnimationStyleProps=function(){return eu},t.initDefaultProps=(function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=tr|Ei})(),t})(Ql),tf=new ut(0,0,0,0),ef=new ut(0,0,0,0);function NM(e,t,r){return tf.copy(e.getBoundingRect()),e.transform&&tf.applyTransform(e.transform),ef.width=t,ef.height=r,!tf.intersect(ef)}var le=Math.min,ue=Math.max,rf=Math.sin,nf=Math.cos,_n=Math.PI*2,Qo=ai(),Jo=ai(),ts=ai();function v1(e,t,r){if(e.length!==0){for(var n=e[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],a=le(a,n[0]),i=ue(i,n[0]),o=le(o,n[1]),s=ue(s,n[1]);t[0]=a,t[1]=o,r[0]=i,r[1]=s}}function $p(e,t,r,n,a,i){a[0]=le(e,r),a[1]=le(t,n),i[0]=ue(e,r),i[1]=ue(t,n)}var Yp=[],Xp=[];function FM(e,t,r,n,a,i,o,s,l,u){var f=R_,c=Yt,h=f(e,r,a,o,Yp);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<h;v++){var d=c(e,r,a,o,Yp[v]);l[0]=le(d,l[0]),u[0]=ue(d,u[0])}h=f(t,n,i,s,Xp);for(var v=0;v<h;v++){var p=c(t,n,i,s,Xp[v]);l[1]=le(p,l[1]),u[1]=ue(p,u[1])}l[0]=le(e,l[0]),u[0]=ue(e,u[0]),l[0]=le(o,l[0]),u[0]=ue(o,u[0]),l[1]=le(t,l[1]),u[1]=ue(t,u[1]),l[1]=le(s,l[1]),u[1]=ue(s,u[1])}function zM(e,t,r,n,a,i,o,s){var l=O_,u=oe,f=ue(le(l(e,r,a),1),0),c=ue(le(l(t,n,i),1),0),h=u(e,r,a,f),v=u(t,n,i,c);o[0]=le(e,a,h),o[1]=le(t,i,v),s[0]=ue(e,a,h),s[1]=ue(t,i,v)}
9function VM(e,t,r,n,a,i,o,s,l){var u=Ra,f=Oa,c=Math.abs(a-i);if(c%_n<1e-4&&c>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Qo[0]=nf(a)*r+e,Qo[1]=rf(a)*n+t,Jo[0]=nf(i)*r+e,Jo[1]=rf(i)*n+t,u(s,Qo,Jo),f(l,Qo,Jo),a=a%_n,a<0&&(a=a+_n),i=i%_n,i<0&&(i=i+_n),a>i&&!o?i+=_n:a<i&&o&&(a+=_n),o){var h=i;i=a,a=h}for(var v=0;v<i;v+=Math.PI/2)v>a&&(ts[0]=nf(v)*r+e,ts[1]=rf(v)*n+t,u(s,ts,s),f(l,ts,l))}var bt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},bn=[],Sn=[],Xe=[],kr=[],Ze=[],qe=[],af=Math.min,of=Math.max,xn=Math.cos,wn=Math.sin,pr=Math.abs,qc=Math.PI,Hr=qc*2,sf=typeof Float32Array<"u",vi=[];function lf(e){var t=Math.round(e/qc*1e8)/1e8;return t%2*qc}function GM(e,t){var r=lf(e[0]);r<0&&(r+=Hr);var n=r-e[0],a=e[1];a+=n,!t&&a-r>=Hr?a=r+Hr:t&&r-a>=Hr?a=r-Hr:!t&&r>a?a=r+(Hr-lf(r-a)):t&&r<a&&(a=r-(Hr-lf(a-r))),e[0]=r,e[1]=a}var Ar=(function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=pr(n/Ip/t)||0,this._uy=pr(n/Ip/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(bt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=pr(t-this._xi),a=pr(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(bt.L,t,r),this._ctx&&i&&this._ctx.lineTo(t,r),i)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){return this._drawPendingPt(),this.addData(bt.C,t,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,a){return this._drawPendingPt(),this.addData(bt.Q,t,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,a),this._xi=n,this._yi=a,this},e.prototype.arc=function(t,r,n,a,i,o){this._drawPendingPt(),vi[0]=a,vi[1]=i,GM(vi,o),a=vi[0],i=vi[1];var s=i-a;return this.addData(bt.A,t,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,a,i,o),this._xi=xn(i)*n+t,this._yi=wn(i)*n+r,this},e.prototype.arcTo=function(t,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,a,i),this},e.prototype.rect=function(t,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,a),this.addData(bt.R,t,r,n,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(bt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var r=t.length;!(this.data&&this.data.length===r)&&sf&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var r=t.length,n=0,a=this._len,i=0;i<r;i++)n+=t[i].len();var o=this.data;if(sf&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+n),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(var i=0;i<r;i++)for(var l=t[i].data,s=0;s<l.length;s++)this.data[a++]=l[s];this._len=a}},e.prototype.addData=function(t,r,n,a,i,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,sf&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Xe[0]=Xe[1]=Ze[0]=Ze[1]=Number.MAX_VALUE,kr[0]=kr[1]=qe[0]=qe[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],a=r,i=n),s){case bt.M:r=a=t[o++],n=i=t[o++],Ze[0]=a,Ze[1]=i,qe[0]=a,qe[1]=i;break;case bt.L:$p(r,n,t[o],t[o+1],Ze,qe),r=t[o++],n=t[o++];break;case bt.C:FM(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ze,qe),r=t[o++],n=t[o++];break;case bt.Q:zM(r,n,t[o++],t[o++],t[o],t[o+1],Ze,qe),r=t[o++],n=t[o++];break;case bt.A:var u=t[o++],f=t[o++],c=t[o++],h=t[o++],v=t[o++],d=t[o++]+v;o+=1;var p=!t[o++];l&&(a=xn(v)*c+u,i=wn(v)*h+f),VM(u,f,c,h,v,d,p,Ze,qe),r=xn(d)*c+u,n=wn(d)*h+f;break;case bt.R:a=r=t[o++],i=n=t[o++];var g=t[o++],m=t[o++];$p(a,i,a+g,i+m,Ze,qe);break;case bt.Z:r=a,n=i;break}Ra(Xe,Xe,Ze),Oa(kr,kr,qe)}return o===0&&(Xe[0]=Xe[1]=kr[0]=kr[1]=0),new ut(Xe[0],Xe[1],kr[0]-Xe[0],kr[1]-Xe[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,h=0;h<r;){var v=t[h++],d=h===1;d&&(i=t[h],o=t[h+1],s=i,l=o);var p=-1;switch(v){case bt.M:i=s=t[h++],o=l=t[h++];break;case bt.L:{var g=t[h++],m=t[h++],y=g-i,_=m-o;(pr(y)>n||pr(_)>a||h===r-1)&&(p=Math.sqrt(y*y+_*_),i=g,o=m);break}case bt.C:{var b=t[h++],x=t[h++],g=t[h++],m=t[h++],S=t[h++],w=t[h++];p=eC(i,o,b,x,g,m,S,w,10),i=S,o=w;break}case bt.Q:{var b=t[h++],x=t[h++],g=t[h++],m=t[h++];p=aC(i,o,b,x,g,m,10),i=g,o=m;break}case bt.A:var C=t[h++],M=t[h++],T=t[h++],D=t[h++],L=t[h++],A=t[h++],P=A+L;h+=1,d&&(s=xn(L)*T+C,l=wn(L)*D+M),p=of(T,D)*af(Hr,Math.abs(A)),i=xn(P)*T+C,o=wn(P)*D+M;break;case bt.R:{s=i=t[h++],l=o=t[h++];var k=t[h++],E=t[h++];p=k*2+E*2;break}case bt.Z:{var y=s-i,_=l-o;p=Math.sqrt(y*y+_*_),i=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,f,c,h,v=r<1,d,p,g=0,m=0,y,_=0,b,x;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=r*p,!y)))t:for(var S=0;S<o;){var w=n[S++],C=S===1;switch(C&&(u=n[S],f=n[S+1],s=u,l=f),w!==bt.L&&_>0&&(t.lineTo(b,x),_=0),w){case bt.M:s=u=n[S++],l=f=n[S++],t.moveTo(u,f);break;case bt.L:{c=n[S++],h=n[S++];var M=pr(c-u),T=pr(h-f);if(M>a||T>i){if(v){var D=d[m++];if(g+D>y){var L=(y-g)/D;t.lineTo(u*(1-L)+c*L,f*(1-L)+h*L);break t}g+=D}t.lineTo(c,h),u=c,f=h,_=0}else{var A=M*M+T*T;A>_&&(b=c,x=h,_=A)}break}case bt.C:{var P=n[S++],k=n[S++],E=n[S++],B=n[S++],R=n[S++],z=n[S++];if(v){var D=d[m++];if(g+D>y){var L=(y-g)/D;tn(u,P,E,R,L,bn),tn(f,k,B,z,L,Sn),t.bezierCurveTo(bn[1],Sn[1],bn[2],Sn[2],bn[3],Sn[3]);break t}g+=D}t.bezierCurveTo(P,k,E,B,R,z),u=R,f=z;break}case bt.Q:{var P=n[S++],k=n[S++],E=n[S++],B=n[S++];if(v){var D=d[m++];if(g+D>y){var L=(y-g)/D;ul(u,P,E,L,bn),ul(f,k,B,L,Sn),t.quadraticCurveTo(bn[1],Sn[1],bn[2],Sn[2]);break t}g+=D}t.quadraticCurveTo(P,k,E,B),u=E,f=B;break}case bt.A:var G=n[S++],H=n[S++],U=n[S++],j=n[S++],st=n[S++],_t=n[S++],Vt=n[S++],ae=!n[S++],$t=U>j?U:j,kt=pr(U-j)>.001,It=st+_t,J=!1;if(v){var D=d[m++];g+D>y&&(It=st+_t*(y-g)/D,J=!0),g+=D}if(kt&&t.ellipse?t.ellipse(G,H,U,j,Vt,st,It,ae):t.arc(G,H,$t,st,It,ae),J)break t;C&&(s=xn(st)*U+G,l=wn(st)*j+H),u=xn(It)*U+G,f=wn(It)*j+H;break;case bt.R:s=u=n[S],l=f=n[S+1],c=n[S++],h=n[S++];var dt=n[S++],Le=n[S++];if(v){var D=d[m++];if(g+D>y){var Nt=y-g;t.moveTo(c,h),t.lineTo(c+af(Nt,dt),h),Nt-=dt,Nt>0&&t.lineTo(c+dt,h+af(Nt,Le)),Nt-=Le,Nt>
90&&t.lineTo(c+of(dt-Nt,0),h+Le),Nt-=dt,Nt>0&&t.lineTo(c,h+of(Le-Nt,0));break t}g+=D}t.rect(c,h,dt,Le);break;case bt.Z:if(v){var D=d[m++];if(g+D>y){var L=(y-g)/D;t.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}g+=D}t.closePath(),u=s,f=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=bt,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function da(e,t,r,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||i>e+s&&i>r+s||i<e-s&&i<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(i-e)<=s/2;var f=l*i-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function HM(e,t,r,n,a,i,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>t+c&&f>n+c&&f>i+c&&f>s+c||f<t-c&&f<n-c&&f<i-c&&f<s-c||u>e+c&&u>r+c&&u>a+c&&u>o+c||u<e-c&&u<r-c&&u<a-c&&u<o-c)return!1;var h=tC(e,t,r,n,a,i,o,s,u,f);return h<=c/2}function WM(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>i+u||l<t-u&&l<n-u&&l<i-u||s>e+u&&s>r+u&&s>a+u||s<e-u&&s<r-u&&s<a-u)return!1;var f=nC(e,t,r,n,a,i,s,l);return f<=u/2}var Zp=Math.PI*2;function es(e){return e%=Zp,e<0&&(e+=Zp),e}var di=Math.PI*2;function UM(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-a)%di<1e-4)return!0;if(i){var c=n;n=es(a),a=es(c)}else n=es(n),a=es(a);n>a&&(a+=di);var h=Math.atan2(l,s);return h<0&&(h+=di),h>=n&&h<=a||h+di>=n&&h+di<=a}function Tn(e,t,r,n,a,i){if(i>t&&i>n||i<t&&i<n||n===t)return 0;var o=(i-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===a?1/0:l>a?s:0}var Er=Ar.CMD,Cn=Math.PI*2,$M=1e-4;function YM(e,t){return Math.abs(e-t)<$M}var ee=[-1,-1,-1],we=[-1,-1];function XM(){var e=we[0];we[0]=we[1],we[1]=e}function ZM(e,t,r,n,a,i,o,s,l,u){if(u>t&&u>n&&u>i&&u>s||u<t&&u<n&&u<i&&u<s)return 0;var f=ll(t,n,i,s,u,ee);if(f===0)return 0;for(var c=0,h=-1,v=void 0,d=void 0,p=0;p<f;p++){var g=ee[p],m=g===0||g===1?.5:1,y=Yt(e,r,a,o,g);y<l||(h<0&&(h=R_(t,n,i,s,we),we[1]<we[0]&&h>1&&XM(),v=Yt(t,n,i,s,we[0]),h>1&&(d=Yt(t,n,i,s,we[1]))),h===2?g<we[0]?c+=v<t?m:-m:g<we[1]?c+=d<v?m:-m:c+=s<d?m:-m:g<we[0]?c+=v<t?m:-m:c+=s<v?m:-m)}return c}function qM(e,t,r,n,a,i,o,s){if(s>t&&s>n&&s>i||s<t&&s<n&&s<i)return 0;var l=rC(t,n,i,s,ee);if(l===0)return 0;var u=O_(t,n,i);if(u>=0&&u<=1){for(var f=0,c=oe(t,n,i,u),h=0;h<l;h++){var v=ee[h]===0||ee[h]===1?.5:1,d=oe(e,r,a,ee[h]);d<o||(ee[h]<u?f+=c<t?v:-v:f+=i<c?v:-v)}return f}else{var v=ee[0]===0||ee[0]===1?.5:1,d=oe(e,r,a,ee[0]);return d<o?0:i<t?v:-v}}function KM(e,t,r,n,a,i,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);ee[0]=-l,ee[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=Cn-1e-4){n=0,a=Cn;var f=i?1:-1;return o>=ee[0]+e&&o<=ee[1]+e?f:0}if(n>a){var c=n;n=a,a=c}n<0&&(n+=Cn,a+=Cn);for(var h=0,v=0;v<2;v++){var d=ee[v];if(d+e>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=Cn+p),(p>=n&&p<=a||p+Cn>=n&&p+Cn<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),h+=f)}}return h}function d1(e,t,r,n,a){for(var i=e.data,o=e.len(),s=0,l=0,u=0,f=0,c=0,h,v,d=0;d<o;){var p=i[d++],g=d===1;switch(p===Er.M&&d>1&&(r||(s+=Tn(l,u,f,c,n,a))),g&&(l=i[d],u=i[d+1],f=l,c=u),p){case Er.M:f=i[d++],c=i[d++],l=f,u=c;break;case Er.L:if(r){if(da(l,u,i[d],i[d+1],t,n,a))return!0}else s+=Tn(l,u,i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Er.C:if(r){if(HM(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=ZM(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Er.Q:if(r){if(WM(l,u,i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=qM(l,u,i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Er.A:var m=i[d++],y=i[d++],_=i[d++],b=i[d++],x=i[d++],S=i[d++];d+=1;var w=!!(1-i[d++]);h=Math.cos(x)*_+m,v=Math.sin(x)*b+y,g?(f=h,c=v):s+=Tn(l,u,h,v,n,a);var C=(n-m)*b/_+m;if(r){if(UM(m,y,b,x,x+S,w,t,C,a))return!0}else s+=KM(m,y,b,x,x+S,w,C,a);l=Math.cos(x+S)*_+m,u=Math.sin(x+S)*b+y;break;case Er.R:f=l=i[d++],c=u=i[d++];var M=i[d++],T=i[d++];if(h=f+M,v=c+T,r){if(da(f,c,h,c,t,n,a)||da(h,c,h,v,t,n,a)||da(h,v,f,v,t,n,a)||da(f,v,f,c,t,n,a))return!0}else s+=Tn(h,c,h,v,n,a),s+=Tn(f,v,f,c,n,a);break;case Er.Z:if(r){if(da(l,u,f,c,t,n,a))return!0}else s+=Tn(l,u,f,c,n,a);l=f,u=c;break}}return!r&&!YM(u,c)&&(s+=Tn(l,u,f,c,n,a)||0),s!==0}function jM(e,t,r){return d1(e,0,!1,t,r)}function QM(e,t,r,n){return d1(e,t,!0,r,n)}var gl=it({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},qn),JM={style:it({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},eu.style)},uf=ao.concat(["invisible","culling","z","z2","zlevel","parent"]),vt=(function(e){wt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<uf.length;++s)a[uf[s]]=this[uf[s]];a.__dirty|=tr}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=mt(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=r[o];o==="style"?this.style?O(this.style,s):this.useStyle(s):o==="shape"?O(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if($(r)){var n=fl(r,0);return n>.5?Gc:n>.2?LC:Hc}else if(r)return Hc}return Gc},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if($(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=fl(r,0)<Vc;if(i===o)return n}},t.prototype.buildPath=function(r,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~La},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Ar(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&La)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r
9=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(r=a[0],n=a[1],i.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),QM(s,l/u,r,n)))return!0}if(this.hasFill())return jM(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=La,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:O(a,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&La)},t.prototype.createStyle=function(r){return ql(gl,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=O({},this.shape))},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=O({},a.shape),O(u,n.shape)):(u=O({},i?this.shape:a.shape),O(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=O({},this.shape);for(var f={},c=mt(u),h=0;h<c.length;h++){var v=c[h];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return JM},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=(function(i){wt(o,i);function o(s){var l=i.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return rt(r.style)},o.prototype.getDefaultShape=function(){return rt(r.shape)},o})(t);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);return n},t.initDefaultProps=(function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=tr|Ei|La})(),t})(oi),tD=it({strokeFirst:!0,font:Dr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},gl),lo=(function(e){wt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return h1(this.style)},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return ql(tD,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=OM(this.style)),this._rect},t.initDefaultProps=(function(){var r=t.prototype;r.dirtyRectTolerance=10})(),t})(oi);lo.prototype.type="tspan";var eD=it({x:0,y:0},qn),rD={style:it({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},eu.style)};function nD(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var hr=(function(e){wt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return ql(eD,r)},t.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=nD(n.image)?n.image:this.__image;if(!i)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?i[r]:i[r]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return rD},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ut(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t})(oi);hr.prototype.type="image";function aD(e,t){var r=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,l,u,f;a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l
9=u=f=0;var c;s+l>a&&(c=s+l,s*=a/c,l*=a/c),u+f>a&&(c=u+f,u*=a/c,f*=a/c),l+u>i&&(c=l+u,l*=i/c,u*=i/c),s+f>i&&(c=s+f,s*=i/c,f*=i/c),e.moveTo(r+s,n),e.lineTo(r+a-l,n),l!==0&&e.arc(r+a-l,n+l,l,-Math.PI/2,0),e.lineTo(r+a,n+i-u),u!==0&&e.arc(r+a-u,n+i-u,u,0,Math.PI/2),e.lineTo(r+f,n+i),f!==0&&e.arc(r+f,n+i-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Fa=Math.round;function p1(e,t,r){if(t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;e.x1=n,e.x2=a,e.y1=i,e.y2=o;var s=r&&r.lineWidth;return s&&(Fa(n*2)===Fa(a*2)&&(e.x1=e.x2=Wn(n,s,!0)),Fa(i*2)===Fa(o*2)&&(e.y1=e.y2=Wn(i,s,!0))),e}}function g1(e,t,r){if(t){var n=t.x,a=t.y,i=t.width,o=t.height;e.x=n,e.y=a,e.width=i,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Wn(n,s,!0),e.y=Wn(a,s,!0),e.width=Math.max(Wn(n+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(Wn(a+o,s,!1)-e.y,o===0?0:1)),e}}function Wn(e,t,r){if(!t)return e;var n=Fa(e*2);return(n+Fa(t))%2===0?n/2:(n+(r?1:-1))/2}var iD=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),oD={},Ct=(function(e){wt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new iD},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=g1(oD,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?aD(r,n):r.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(vt);Ct.prototype.type="rect";var qp={fill:"#000"},Kp=2,Ke={},sD={style:it({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},eu.style)},Ut=(function(e){wt(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=qp,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,fD(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new ut(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(r.copy(l),r.applyTransform(u),i=i||r.clone(),i.union(r)):(i=i||l.clone(),i.union(l))}this._rect=i||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||qp},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return O(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},t.prototype._mergeRich=function(r,n){for(var a=mt(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},O(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return sD},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Dr,a=r.padding,i=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||i.align||"left",u=r.verticalAlign||i.verticalAlign||"top";Gp(Ke,i.overflowRect,o,s,l,u),o=Ke.baseX,s=Ke.baseY;var f=ng(r),c=AM(f,r,Ke.outerWidth,Ke.outerHeight),h=ff(r),v=!!r.backgroundColor,d=c.outerHeight,p=c.outerWidth,g=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=Zn(s,c.contentHeight,u);if(h||a){var b=Ka(o,p,l),x=Zn(s,d,u);
9h&&this._renderBackground(r,r,b,x,p,d)}_+=m/2,a&&(y=rg(o,l,a),u==="top"?_+=a[0]:u==="bottom"&&(_-=a[2]));for(var S=0,w=!1,C=!1,M=eg("fill"in r?r.fill:(C=!0,i.fill)),T=tg("stroke"in r?r.stroke:!v&&(!i.autoStroke||C)?(S=Kp,w=!0,i.stroke):null),D=r.textShadowBlur>0,L=0;L<g.length;L++){var A=this._getOrCreateChild(lo),P=A.createStyle();A.useStyle(P),P.text=g[L],P.x=y,P.y=_,P.textAlign=l,P.textBaseline="middle",P.opacity=r.opacity,P.strokeFirst=!0,D&&(P.shadowBlur=r.textShadowBlur||0,P.shadowColor=r.textShadowColor||"transparent",P.shadowOffsetX=r.textShadowOffsetX||0,P.shadowOffsetY=r.textShadowOffsetY||0),P.stroke=T,P.fill=M,T&&(P.lineWidth=r.lineWidth||S,P.lineDash=r.lineDash,P.lineDashOffset=r.lineDashOffset||0),P.font=n,Qp(P,r),_+=m,A.setBoundingRect(Xc(P,c.contentWidth,c.calculatedLineHeight,w?0:null))}},t.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,a=r.align||n.align,i=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;Gp(Ke,n.overflowRect,o,s,a,i),o=Ke.baseX,s=Ke.baseY;var l=ng(r),u=PM(l,r,Ke.outerWidth,Ke.outerHeight,a),f=u.width,c=u.outerWidth,h=u.outerHeight,v=r.padding;this.isTruncated=!!u.isTruncated;var d=Ka(o,c,a),p=Zn(s,h,i),g=d,m=p;v&&(g+=v[3],m+=v[0]);var y=g+f;ff(r)&&this._renderBackground(r,r,d,p,c,h);for(var _=!!r.backgroundColor,b=0;b<u.lines.length;b++){for(var x=u.lines[b],S=x.tokens,w=S.length,C=x.lineHeight,M=x.width,T=0,D=g,L=y,A=w-1,P=void 0;T<w&&(P=S[T],!P.align||P.align==="left");)this._placeToken(P,r,C,m,D,"left",_),M-=P.width,D+=P.width,T++;for(;A>=0&&(P=S[A],P.align==="right");)this._placeToken(P,r,C,m,L,"right",_),M-=P.width,L-=P.width,A--;for(D+=(f-(D-g)-(y-L)-M)/2;T<=A;)P=S[T],this._placeToken(P,r,C,m,D+P.width/2,"center",_),D+=P.width,T++;m+=C}},t.prototype._placeToken=function(r,n,a,i,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=i+a/2;f==="top"?c=i+r.height/2:f==="bottom"&&(c=i+a-r.height/2);var h=!r.isLineHolder&&ff(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var v=!!u.backgroundColor,d=r.textPadding;d&&(o=rg(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild(lo),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,b=!1,x=eg("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),S=tg("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!m.autoStroke||y)?(_=Kp,b=!0,m.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,w&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Dr,g.opacity=Ga(u.opacity,n.opacity,1),Qp(g,u),S&&(g.lineWidth=Ga(u.lineWidth,n.lineWidth,_),g.lineDash=X(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=S),x&&(g.fill=x),p.setBoundingRect(Xc(g,r.contentWidth,r.contentHeight,b?0:null))},t.prototype._renderBackground=function(r,n,a,i,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,h=l&&!c,v=r.borderRadius,d=this,p,g;if(h||r.lineHeight||u&&f){p=this._getOrCreateChild(Ct),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=a,m.y=i,m.width=o,m.height=s,m.r=v,p.dirtyShape()}if(h){var y=p.style;y.fill=l||null,y.fillOpacity=X(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(hr),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=X(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(p||g).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=Ga(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return y1(r)&&(n=[r.fontStyle,r.fontWeight,m1(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&rr(n)||r.textFont||r.font},t})(oi),lD={left:!0,right:1,center:1},uD={top:1,bottom:1,middle:1},jp=["fontStyle","fontWeight","fontSize","fontFamily"];function m1(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?cv+"px":e+"px"}function Qp(e,t){for(var r=0;r<jp.length;r++){var n=jp[r],a=t[n];a!=null&&(e[n]=a)}}function y1(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function fD(e){return Jp(e),I(e.rich,Jp),e}function Jp(e){if(e){e.font=Ut.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||lD[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||uD[r]?r:"top";var n=e.padding;n&&(e.padding=gv(e.padding))}}function tg(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function eg(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function rg(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function ng(e){var t=e.text;return t!=null&&(t+=""),t}function ff(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var ct=St(),cD=function(e,t,r,n){if(n){var a=ct(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=ct(i);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},ag=1,ig={},_1=St(),Pv=St(),kv=0,ru=1,nu=2,Ie=["emphasis","blur","select"],og=["normal","emphasis","blur","select"],hD=10,vD=9,Kn="highlight",$s="downplay",ml="select",Kc="unselect",yl="toggleSelect",Ev="selectchanged";function pa(e){return e!=null&&e!=="none"}function au(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function b1(e){au(e,"emphasis",nu)}function S1(e){e.hoverState===nu&&au(e,"normal",kv)}function Rv(e){au(e,"blur",ru)}function x1(e){e.hoverState===ru&&au(e,"normal",kv)}function dD(e){e.selected=!0}function pD(e){e.selected=!1}function sg(e,t,r){t(e,r)}function Pr(e,t,r){sg(e,t,r),e.isGroup&&e.traverse(function(n){sg(n,t,r)})}function lg(e,t){switch(t){case"emphasis":e.hoverState=nu;break;case"normal":e.hoverState=kv;break;case"blur":e.hoverState=ru;break;case"select":e.selected=!0}}function gD(e,t,r,n){for(var a=e.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function mD(e,t,r,n){var a=r&&ft(r,"select")>=0,i=!1;if(e instanceof vt){var o=_1(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(pa(s)||pa(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=O({},n),u=O({}
9,u),u.fill=s):!pa(u.fill)&&pa(s)?(i=!0,n=O({},n),u=O({},u),u.fill=Ec(s)):!pa(u.stroke)&&pa(l)&&(i||(n=O({},n),u=O({},u)),u.stroke=Ec(l)),n.style=u}}if(n&&n.z2==null){i||(n=O({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??hD)}return n}function yD(e,t,r){if(r&&r.z2==null){r=O({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??vD)}return r}function _D(e,t,r){var n=ft(e.currentStates,t)>=0,a=e.style.opacity,i=n?null:gD(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=O({},r),o=O({opacity:n?a:i.opacity*.1},o),r.style=o),r}function cf(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return mD(this,e,t,r);if(e==="blur")return _D(this,e,r);if(e==="select")return yD(this,e,r)}return r}function bD(e){e.stateProxy=cf;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=cf),r&&(r.stateProxy=cf)}function ug(e,t){!M1(e,t)&&!e.__highByOuter&&Pr(e,b1)}function fg(e,t){!M1(e,t)&&!e.__highByOuter&&Pr(e,S1)}function ta(e,t){e.__highByOuter|=1<<(t||0),Pr(e,b1)}function ea(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Pr(e,S1)}function w1(e){Pr(e,Rv)}function Ov(e){Pr(e,x1)}function T1(e){Pr(e,dD)}function C1(e){Pr(e,pD)}function M1(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function D1(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,i){var o=Pv(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){x1(u)}),s&&r.push(i)),o.isBlured=!1}),I(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function jc(e,t,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&Ov(h)}}if(e!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!h||t==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||Rv(g)}),ce(t))i(u.getData(),t);else if(K(t))for(var d=mt(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),Pv(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,a)}})}}function Qc(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){Pv(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Rv(i)})}}}function SD(e,t,r){var n=e.seriesIndex,a=e.getData(t.dataType);if(a){var i=Jn(a,t);i=(N(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=ct(o);jc(n,u.focus,u.blurScope,r)}else{var f=e.get(["emphasis","focus"]),c=e.get(["emphasis","blurScope"]);f!=null&&jc(n,f,c,r)}}}function Bv(e,t,r,n){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return a;var i=n.getModel().getComponent(e,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(ct(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function xD(e,t,r){var n=ct(e),a=Bv(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&Qc(n.componentMainType,n.componentIndex,r),I(i,function(s){return ug(s,t)})):(jc(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Qc(n.componentMainType,n.componentIndex,r),ug(e,t))}function wD(e,t,r){D1(r);var n=ct(e),a=Bv(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?I(a,function(i){return fg(i,t)}):fg(e,t)}function TD(e,t,r){if(rh(t)){var n=t.dataType,a=e.getData(n),i=Jn(a,t);N(i)||(i=[i]),e[t.type===yl?"toggleSelect":t.type===ml?"select":"unselect"](i,n)}}function cg(e){var t=e.getAllData();I(t,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?T1(i):C1(i)})})}function CD(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();I(n,function(a){a.data;var i=a.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}
9function Jc(e,t,r){A1(e,!0),Pr(e,bD),DD(e,t,r)}function MD(e){A1(e,!1)}function uo(e,t,r,n){n?MD(e):Jc(e,t,r)}function DD(e,t,r){var n=ct(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var hg=["emphasis","blur","select"],AD={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function th(e,t,r,n){r=r||"itemStyle";for(var a=0;a<hg.length;a++){var i=hg[a],o=t.getModel([i,r]),s=e.ensureState(i);s.style=o[AD[r]]()}}function A1(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function eh(e){return!!(e&&e.__highDownDispatcher)}function ID(e){var t=ig[e];return t==null&&ag<=32&&(t=ig[e]=ag++),t}function rh(e){var t=e.type;return t===ml||t===Kc||t===yl}function vg(e){var t=e.type;return t===Kn||t===$s}function LD(e){var t=_1(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var ga=Ar.CMD,PD=[[],[],[]],dg=Math.sqrt,kD=Math.atan2;function I1(e,t){if(t){var r=e.data,n=e.len(),a,i,o,s,l,u,f=ga.M,c=ga.C,h=ga.L,v=ga.R,d=ga.A,p=ga.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case f:i=1;break;case h:i=1;break;case c:i=3;break;case p:i=2;break;case d:var g=t[4],m=t[5],y=dg(t[0]*t[0]+t[1]*t[1]),_=dg(t[2]*t[2]+t[3]*t[3]),b=kD(-t[1]/_,t[0]/y);r[o]*=y,r[o++]+=g,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case v:u[0]=r[o++],u[1]=r[o++],De(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],De(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<i;l++){var x=PD[l];x[0]=r[o++],x[1]=r[o++],De(x,x,t),r[s++]=x[0],r[s++]=x[1]}}e.increaseVersion()}}var hf=Math.sqrt,rs=Math.sin,ns=Math.cos,pi=Math.PI;function pg(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function nh(e,t){return(e[0]*t[0]+e[1]*t[1])/(pg(e)*pg(t))}function gg(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(nh(e,t))}function mg(e,t,r,n,a,i,o,s,l,u,f){var c=l*(pi/180),h=ns(c)*(e-r)/2+rs(c)*(t-n)/2,v=-1*rs(c)*(e-r)/2+ns(c)*(t-n)/2,d=h*h/(o*o)+v*v/(s*s);d>1&&(o*=hf(d),s*=hf(d));var p=(a===i?-1:1)*hf((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,g=p*o*v/s,m=p*-s*h/o,y=(e+r)/2+ns(c)*g-rs(c)*m,_=(t+n)/2+rs(c)*g+ns(c)*m,b=gg([1,0],[(h-g)/o,(v-m)/s]),x=[(h-g)/o,(v-m)/s],S=[(-1*h-g)/o,(-1*v-m)/s],w=gg(x,S);if(nh(x,S)<=-1&&(w=pi),nh(x,S)>=1&&(w=0),w<0){var C=Math.round(w/pi*1e6)/1e6;w=pi*2+C%2*pi}f.addData(u,y,_,o,s,b,w,c,i)}var ED=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,RD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function OD(e){var t=new Ar;if(!e)return t;var r=0,n=0,a=r,i=n,o,s=Ar.CMD,l=e.match(ED);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),h=void 0,v=f.match(RD)||[],d=v.length,p=0;p<d;p++)v[p]=parseFloat(v[p]);for(var g=0;g<d;){var m=void 0,y=void 0,_=void 0,b=void 0,x=void 0,S=void 0,w=void 0,C=r,M=n,T=void 0,D=void 0;switch(c){case"l":r+=v[g++],n+=v[g++],h=s.L,t.addData(h,r,n);break;case"L":r=v[g++],n=v[g++],h=s.L,t.addData(h,r,n);break;case"m":r+=v[g++],n+=v[g++],h=s.M,t.addData(h,r,n),a=r,i=n,c="l";break;case"M":r=v[g++],n=v[g++],h=s.M,t.addData(h,r,n),a=r,i=n,c="L";break;case"h":r+=v[g++],h=s.L,t.addData(h,r,n);break;case"H":r=v[g++],h=s.L,t.addData(h,r,n);break;case"v":n+=v[g++],h=s.L,t.addData(h,r,n);break;case"V":n=v[g++],h=s.L,t.addData(h,r,n);break;case"C":h=s.C,t.addData(h,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),r=v[g-2],n=v[g-1];break;case"c":h=s.C,t.addData(h,v[g++]+r,v[g++]+n,v[g++]+r,v[g++]+n,v[g++]+r,v[g++]+n),r+=v[g-2],n+=v[g-1];break;case"S":m=r,y=n,T=t.len(),D=t.data,o===s.C&&(m+=r-D[T-4],y+=n-D[T-3]),h=s.C,C=v[g++],M=v[g++],r=v[g++],n=v[g++],t.addData(h,m,y,C,M,r,n);break;case"s":m=r,y=n,T=t.len(),D=t.data,o===s.C&&(m+=r-D[T-4],y+=n-D[T-3]),h=s.C,C=r+v[g++],M=n+v[g++],r+=v[g++],n+=v[g++],t.addData(h,m,y,C,M,r,n);break;case"Q":C=v[g++],M=v[g++],r=v[g++],n=v[g++],h=s.Q,t.addData(h,C,M,r,n);break;case"q":C=v[g++]+r,M=v[g++]+n,r+=v[g++],n+=v[g++],h=s.Q,t.addData(h,C,M,r,n);break;case"T":m=r,y=n,T=t.len(),D=t.data,o===s.Q&&(m+=r-D[T-4],y+=n-D[T-3]),r=v[g++],n=v[g++],h=s.Q,t.addData(h,m,y,r,n);break;case"t":m=r,y=n,T=t.len(),D=t.data,o===s.Q&&(m+=r-D[T-4],y+=n-D[T-3]),r+=v[g++],n+=v[g++],h=s.Q,t.addData(h,m,y,r,n);break;case"A":_=v[g++],b=v[g++],x=v[g++],S=v[g++],w=v[g++],C=r,M=n,r=v[g++],n=v[g++],h=s.A,mg(C,M,r,n,S,w,_,b,x,h,t);break;case"a":_=v[g++],b=v[g++],x=v[g++],S=v[g++],w=v[g++],C=r,M=n,r+=v[g++],n+=v[g++],h=s.A,mg(C,M,r,n,S,w,_,b,x,h,t);break}}(c==="z"||c==="Z")&&(h=s.Z,t.addData(h),r=a,n=i),o=h}return t.toStatic(),t}var L1=(function(e){wt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t})(vt);function P1(e){return e.setData!=null}function k1(e,t){var r=OD(e),n=O({},t);return n.buildPath=function(a){var i=P1(a);if(i&&a.canSave()){a.appendPath(r);var o=a.getContext();
9o&&a.rebuildPath(o,1)}else{var o=i?a.getContext():a;o&&r.rebuildPath(o,1)}},n.applyTransform=function(a){I1(r,a),this.dirtyShape()},n}function BD(e,t){return new L1(k1(e,t))}function ND(e,t){var r=k1(e,t),n=(function(a){wt(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i})(L1);return n}function FD(e,t){for(var r=[],n=e.length,a=0;a<n;a++){var i=e[a];r.push(i.getUpdatedPathProxy(!0))}var o=new vt(t);return o.createPathProxy(),o.buildPath=function(s){if(P1(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Nv(e,t){t=t||{};var r=new vt;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?I1(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var zD=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})(),iu=(function(e){wt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new zD},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t})(vt);iu.prototype.type="circle";var VD=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})(),Fv=(function(e){wt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new VD},t.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,f=l*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),r.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),r.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),r.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),r.closePath()},t})(vt);Fv.prototype.type="ellipse";var E1=Math.PI,vf=E1*2,Mn=Math.sin,ma=Math.cos,GD=Math.acos,Xt=Math.atan2,yg=Math.abs,Yi=Math.sqrt,Oi=Math.max,je=Math.min,ke=1e-4;function HD(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,f=o-a,c=s-i,h=c*l-f*u;if(!(h*h<ke))return h=(f*(t-i)-c*(e-a))/h,[e+h*l,t+h*u]}function as(e,t,r,n,a,i,o){var s=e-r,l=t-n,u=(o?i:-i)/Yi(s*s+l*l),f=u*l,c=-u*s,h=e+f,v=t+c,d=r+f,p=n+c,g=(h+d)/2,m=(v+p)/2,y=d-h,_=p-v,b=y*y+_*_,x=a-i,S=h*p-d*v,w=(_<0?-1:1)*Yi(Oi(0,x*x*b-S*S)),C=(S*_-y*w)/b,M=(-S*y-_*w)/b,T=(S*_+y*w)/b,D=(-S*y+_*w)/b,L=C-g,A=M-m,P=T-g,k=D-m;return L*L+A*A>P*P+k*k&&(C=T,M=D),{cx:C,cy:M,x0:-f,y0:-c,x1:C*(a/x-1),y1:M*(a/x-1)}}function WD(e){var t;if(N(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function UD(e,t){var r,n=Oi(t.r,0),a=Oi(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,h=!!t.clockwise,v=yg(u-l),d=v>vf&&v%vf;if(d>ke&&(v=d),!(n>ke))e.moveTo(f,c);else if(v>vf-ke)e.moveTo(f+n*ma(l),c+n*Mn(l)),e.arc(f,c,n,l,u,!h),a>ke&&(e.moveTo(f+a*ma(u),c+a*Mn(u)),e.arc(f,c,a,u,l,h));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,b=void 0,x=void 0,S=void 0,w=void 0,C=void 0,M=void 0,T=void 0,D=void 0,L=void 0,A=void 0,P=void 0,k=n*ma(l),E=n*Mn(l),B=a*ma(u),R=a*Mn(u),z=v>ke;if(z){var G=t.cornerRadius;G&&(r=WD(G),p=r[0],g=r[1],m=r[2],y=r[3]);var H=yg(n-a)/2;if(_=je(H,m),b=je(H,y),x=je(H,p),S=je(H,g),M=w=Oi(_,b),T=C=Oi(x,S),(w>ke||C>ke)&&(D=n*ma(u),L=n*Mn(u),A=a*ma(l),P=a*Mn(l),v<E1)){var U=HD(k,E,A,P,D,L,B,R);if(U){var j=k-U[0],st=E-U[1],_t=D-U[0],Vt=L-U[1],ae=1/Mn(GD((j*_t+st*Vt)/(Yi(j*j+st*st)*Yi(_t*_t+Vt*Vt)))/2),$t=Yi(U[0]*U[0]+U[1]*U[1]);M=je(w,(n-$t)/(ae+1)),T=je(C,(a-$t)/(ae-1))}}}if(!z)e.moveTo(f+k,c+E);else if(M>ke){var kt=je(m,M),It=je(y,M),J=as(A,P,k,E,n,kt,h),dt=as(D,L,B,R,n,It,h);e.moveTo(f+J.cx+J.x0,c+J.cy+J.y0),M<w&&kt===It?e.arc(f+J.cx,c+J.cy,M,Xt(J.y0,J.x0),Xt(dt.y0,dt.x0),!h):(kt>0&&e.arc(f+J.cx,c+J.cy,kt,Xt(J.y0,J.x0),Xt(J.y1,J.x1),!h),e.arc(f,c,n,Xt(J.cy+J.y1,J.cx+J.x1),Xt(dt.cy+dt.y1,dt.cx+dt.x1),!h),It>0&&e.arc(f+dt.cx,c+dt.cy,It,Xt(dt.y1,dt.x1),Xt(dt.y0,dt.x0),!h))}else e.moveTo(f+k,c+E),e.arc(f,c,n,l,u,!h);if(!(a>ke)||!z)e.lineTo(f+B,c+R);else if(T>ke){var kt=je(p,T),It=je(g,T),J=as(B,R,D,L,a,-It,h),dt=as(k,E,A,P,a,-kt,h);e.lineTo(f+J.cx+J.x0,c+J.cy+J.y0),T<C&&kt===It?e.arc(f+J.cx,c+J.cy,T,Xt(J.y0,J.x0),Xt(dt.y0,dt.x0),!h):(It>0&&e.arc(f+J.cx,c+J.cy,It,Xt(J.y0,J.x0),Xt(J.y1,J.x1),!h),e.arc(f,c,a,Xt(J.cy+J.y1,J.cx+J.x1),Xt(dt.cy+dt.y1,dt.cx+dt.x1),h),
9kt>0&&e.arc(f+dt.cx,c+dt.cy,kt,Xt(dt.y1,dt.x1),Xt(dt.y0,dt.x0),!h))}else e.lineTo(f+B,c+R),e.arc(f,c,a,u,l,h)}e.closePath()}}}var $D=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e})(),rn=(function(e){wt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new $D},t.prototype.buildPath=function(r,n){UD(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(vt);rn.prototype.type="sector";var YD=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),zv=(function(e){wt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new YD},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},t})(vt);zv.prototype.type="ring";function XD(e,t,r,n){var a=[],i=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,v=e.length;h<v;h++)Ra(f,f,e[h]),Oa(c,c,e[h]);Ra(f,f,n[0]),Oa(c,c,n[1])}for(var h=0,v=e.length;h<v;h++){var d=e[h];if(r)l=e[h?h-1:v-1],u=e[(h+1)%v];else if(h===0||h===v-1){a.push(ST(e[h]));continue}else l=e[h-1],u=e[h+1];T_(i,u,l),Lu(i,i,t);var p=bc(d,l),g=bc(d,u),m=p+g;m!==0&&(p/=m,g/=m),Lu(o,i,-p),Lu(s,i,g);var y=ap([],d,o),_=ap([],d,s);n&&(Oa(y,y,f),Ra(y,y,c),Oa(_,_,f),Ra(_,_,c)),a.push(y),a.push(_)}return r&&a.push(a.shift()),a}function R1(e,t,r){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=XD(a,n,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=a[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,c=a.length;s<c;s++)e.lineTo(a[s][0],a[s][1])}r&&e.closePath()}}var ZD=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})(),Eo=(function(e){wt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ZD},t.prototype.buildPath=function(r,n){R1(r,n,!0)},t})(vt);Eo.prototype.type="polygon";var qD=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})(),ou=(function(e){wt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new qD}
9,t.prototype.buildPath=function(r,n){R1(r,n,!1)},t})(vt);ou.prototype.type="polyline";var KD={},jD=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),Ir=(function(e){wt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new jD},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=p1(KD,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t})(vt);Ir.prototype.type="line";var ie=[],QD=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e})();function _g(e,t,r){var n=e.cpx2,a=e.cpy2;return n!=null||a!=null?[(r?mp:Yt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?mp:Yt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?yp:oe)(e.x1,e.cpx1,e.x2,t),(r?yp:oe)(e.y1,e.cpy1,e.y2,t)]}var su=(function(e){wt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new QD},t.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,h=n.percent;h!==0&&(r.moveTo(a,i),f==null||c==null?(h<1&&(ul(a,l,o,h,ie),l=ie[1],o=ie[2],ul(i,u,s,h,ie),u=ie[1],s=ie[2]),r.quadraticCurveTo(l,u,o,s)):(h<1&&(tn(a,l,f,o,h,ie),l=ie[1],f=ie[2],o=ie[3],tn(i,u,c,s,h,ie),u=ie[1],c=ie[2],s=ie[3]),r.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(r){return _g(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=_g(this.shape,r,!0);return mv(n,n)},t})(vt);su.prototype.type="bezier-curve";var JD=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),lu=(function(e){wt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new JD},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+a,c*o+i),r.arc(a,i,o,s,l,!u)},t})(vt);lu.prototype.type="arc";var O1=(function(e){wt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),vt.prototype.getBoundingRect.call(this)},t})(vt),B1=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e})(),N1=(function(e){wt(t,e);function t(r,n,a,i,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t})(B1),tA=(function(e){wt(t,e);function t(r,n,a,i,o){var s=e.call(this,i)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t})(B1),df=Math.min,eA=Math.max,is=Math.abs,Dn=[0,0],An=[0,0],Ht=D_(),os=Ht.minTv,ss=Ht.maxTv,F1=(function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new pt;for(var n=0;n<2;n++)this._axes[n]=new pt;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),r)for(var u=0;u<4;u++)n[u].transform(r);pt.sub(a[0],n[1],n[0]),pt.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},e.prototype.intersect=function(t,r,n){var a=!0,i=!r;return r&&pt.set(r,0,0),Ht.reset(n,!i),!this._intersectCheckOneSide(this,t,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(t,this,i,-1)&&(a=!1,i)||!i&&!Ht.negativeSize&&pt.copy(r,a?Ht.useDir?Ht.dirMinTv:os:ss),a},e.prototype._intersectCheckOneSide=function(t,r,n,a){for(var i=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,Dn),t._getProjMinMaxOnAxis(o,r._corners,An),Ht.negativeSize||Dn[1]<An[0]||Dn[0]>
9An[1]){if(i=!1,Ht.negativeSize||n)return i;var l=is(An[0]-Dn[1]),u=is(Dn[0]-An[1]);df(l,u)>ss.len()&&(l<u?pt.scale(ss,s,-l*a):pt.scale(ss,s,u*a))}else if(!n){var l=is(An[0]-Dn[1]),u=is(Dn[0]-An[1]);(Ht.useDir||df(l,u)<os.len())&&((l<u||!Ht.bidirectional)&&(pt.scale(os,s,l*a),Ht.useDir&&Ht.calcDirMTV()),(l>=u||!Ht.bidirectional)&&(pt.scale(os,s,-u*a),Ht.useDir&&Ht.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var a=this._axes[t],i=this._origin,o=r[0].dot(a)+i[t],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(a)+i[t];s=df(f,s),l=eA(f,l)}n[0]=s+Ht.touchThreshold,n[1]=l-Ht.touchThreshold,Ht.negativeSize=n[1]<n[0]},e})(),rA=[],nA=(function(e){wt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ut(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(rA)),r.union(i)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t})(oi),z1=St();function uu(e,t,r,n,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=X(n.duration,200),f=X(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(c=i.delay)),Z(c)&&(c=c(r,a)),Z(u)&&(u=u(r));var h={duration:u||0,delay:c,easing:f};return h}else return null}function Vv(e,t,r,n,a,i,o){var s=!1,l;Z(a)?(o=i,i=a,a=null):K(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var f=uu(e,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),i&&i()}function ve(e,t,r,n,a,i){Vv("update",e,t,r,n,a,i)}function Ge(e,t,r,n,a,i){Vv("enter",e,t,r,n,a,i)}function Xi(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function _l(e,t,r,n,a,i){Xi(e)||Vv("leave",e,t,r,n,a,i)}function bg(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),_l(e,{style:{opacity:0}
9},t,r,n)}function Ys(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||bg(a,t,r,n)}):bg(e,t,r,n)}function V1(e){z1(e).oldStyle=e.style}function aA(e){return z1(e).oldStyle}var ah={},zn=["x","y"],fo=["width","height"];function iA(e){return vt.extend(e)}var oA=ND;function sA(e,t){return oA(e,t)}function $e(e,t){ah[e]=t}function lA(e){if(ah.hasOwnProperty(e))return ah[e]}function Gv(e,t,r,n){var a=BD(e,t);return r&&(n==="center"&&(r=H1(r,a.getBoundingRect())),W1(a,r)),a}function G1(e,t,r){var n=new hr({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle(H1(t,i))}}});return n}function H1(e,t){var r=t.width/t.height,n=e.height*r,a;n<=e.width?a=e.height:(n=e.width,a=n/r);var i=e.x+e.width/2,o=e.y+e.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var uA=FD;function W1(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function co(e,t){return p1(e,e,{lineWidth:t}),e}function fA(e,t){return g1(e,e,t),e}var cA=Wn;function Hv(e,t){for(var r=_v([]);e&&e!==t;)Gi(r,e.getLocalTransform(),r),e=e.parent;return r}function Wv(e,t,r){return t&&!ce(t)&&(t=jl.getLocalTransform(t)),r&&(t=Ao([],t)),De([],e,t)}function U1(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:nr(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:nr(2*t[4]/t[2]),i=[e==="left"?-n:e==="right"?n:0,e==="top"?-a:e==="bottom"?a:0];return i=Wv(i,t,r),nr(i[0])>nr(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Sg(e){return!e.isGroup}function hA(e){return e.shape!=null}function $1(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){Sg(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return hA(o)&&(s.shape=rt(o.shape)),s}var i=n(e);t.traverse(function(o){if(Sg(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ve(o,l,r,ct(o).dataIndex)}}})}function Y1(e,t){return F(e,function(r){var n=r[0];n=me(n,t.x),n=io(n,t.x+t.width);var a=r[1];return a=me(a,t.y),a=io(a,t.y+t.height),[n,a]})}function vA(e,t){var r=me(e.x,t.x),n=io(e.x+e.width,t.x+t.width),a=me(e.y,t.y),i=io(e.y+e.height,t.y+t.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function fu(e,t,r){var n=O({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),it(a,r),new hr(n)):Gv(e.replace("path://",""),n,r,"center")}function dA(e,t,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(X1(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function X1(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,f=o-a,c=s-i,h=pf(f,c,l,u);if(pA(h))return!1;var v=e-a,d=t-i,p=pf(v,d,l,u)/h;if(p<0||p>1)return!1;var g=pf(v,d,f,c)/h;return!(g<0||g>1)}function pf(e,t,r,n){return e*n-r*t}function pA(e){return e<=1e-6&&e>=-1e-6}function bl(e,t,r,n,a){return t==null||(xt(t)?Tt[0]=Tt[1]=Tt[2]=Tt[3]=t:(Tt[0]=t[0],Tt[1]=t[1],Tt[2]=t[2],Tt[3]=t[3]),n&&(Tt[0]=me(0,Tt[0]),Tt[1]=me(0,Tt[1]),Tt[2]=me(0,Tt[2]),Tt[3]=me(0,Tt[3])),r&&(Tt[0]=-Tt[0],Tt[1]=-Tt[1],Tt[2]=-Tt[2],Tt[3]=-Tt[3]),xg(e,Tt,"x","width",3,1,a&&a[0]||0),xg(e,Tt,"y","height",0,2,a&&a[1]||0)),e}var Tt=[0,0,0,0];function xg(e,t,r,n,a,i,o){var s=t[i]+t[a],l=e[n];e[n]+=s,o=me(0,io(o,l)),e[n]<o?(e[n]=o,e[r]+=t[a]>=0?-t[a]:t[i]>=0?l+t[i]:nr(s)>1e-8?(l-o)*t[a]/s:0):e[r]-=t[a]}function Ro(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=$(t)?{formatter:t}:t,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&I(mt(l),function(f){Fe(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ct(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:it({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function ih(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Oo(e,t){if(e)if(N(e))for(var r=0;r<e.length;r++)ih(e[r],t);else ih(e,t)}function Uv(e){return!e||nr(e[1])<ls&&nr(e[2])<ls||nr(e[0])<ls&&nr(e[3])<ls}var ls=1e-5;function ho(e,t){return e?ut.copy(e,t):t.clone()}function $v(e,t){return t?M_(e||Cr(),t):void 0}
9function ja(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function gA(e){var t=-1/0,r=1/0;ih(e,function(i){n(i),n(i.getTextContent()),n(i.getTextGuideLine())});function n(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>t&&(t=o),o<r&&(r=o)}}return r>t&&(r=t=0),{min:r,max:t}}function Yv(e,t,r){Z1(e,t,r,-1/0)}function Z1(e,t,r,n){if(e.ignoreModelZ)return n;var a=e.getTextContent(),i=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),l=0;l<s.length;l++)n=me(Z1(s[l],t,r,n),n);else e.z=t,e.zlevel=r,n=me(e.z2||0,n);if(a&&(a.z=t,a.zlevel=r,isFinite(n)&&(a.z2=n+2)),i){var u=e.textGuideLineConfig;i.z=t,i.zlevel=r,isFinite(n)&&(i.z2=n+(u&&u.showAbove?1:-1))}return n}$e("circle",iu);$e("ellipse",Fv);$e("sector",rn);$e("ring",zv);$e("polygon",Eo);$e("polyline",ou);$e("rect",Ct);$e("line",Ir);$e("bezierCurve",su);$e("arc",lu);const mA=Object.freeze(Object.defineProperty({__proto__:null,Arc:lu,BezierCurve:su,BoundingRect:ut,Circle:iu,CompoundPath:O1,Ellipse:Fv,Group:Lt,Image:hr,IncrementalDisplayable:nA,Line:Ir,LinearGradient:N1,OrientedBoundingRect:F1,Path:vt,Point:pt,Polygon:Eo,Polyline:ou,RadialGradient:tA,Rect:Ct,Ring:zv,Sector:rn,Text:Ut,WH:fo,XY:zn,applyTransform:Wv,calcZ2Range:gA,clipPointsByRect:Y1,clipRectByRect:vA,createIcon:fu,ensureCopyRect:ho,ensureCopyTransform:$v,expandOrShrinkRect:bl,extendPath:sA,extendShape:iA,getShapeClass:lA,getTransform:Hv,groupTransition:$1,initProps:Ge,isBoundingRectAxisAligned:Uv,isElementRemoved:Xi,lineLineIntersect:X1,linePolygonIntersect:dA,makeImage:G1,makePath:Gv,mergePath:uA,registerShape:$e,removeElement:_l,removeElementWithFadeOut:Ys,resizePath:W1,retrieveZInfo:ja,setTooltipConfig:Ro,subPixelOptimize:cA,subPixelOptimizeLine:co,subPixelOptimizeRect:fA,transformDirection:U1,traverseElements:Oo,traverseUpdateZ:Yv,updateProps:ve},Symbol.toStringTag,{value:"Module"}));var cu={};function yA(e,t){for(var r=0;r<Ie.length;r++){var n=Ie[r],a=t[n],i=e.ensureState(n);i.style=i.style||{},i.style.text=a}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function wg(e,t,r){var n=e.labelFetcher,a=e.labelDataIndex,i=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Z(e.defaultText)?e.defaultText(a,e,r):e.defaultText);for(var l={normal:s},u=0;u<Ie.length;u++){var f=Ie[u],c=t[f];l[f]=X(n?n.getFormattedLabel(a,f,null,i,c&&c.get("formatter")):null,s)}return l}function Bo(e,t,r,n){r=r||cu;for(var a=e instanceof Ut,i=!1,o=0;o<og.length;o++){var s=t[og[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?e:e.getTextContent();if(i){a||(l||(l=new Ut,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=wg(r,t),f=t.normal,c=!!f.getShallow("show"),h=nn(f,n&&n.normal,r,!1,!a);h.text=u.normal,a||e.setTextConfig(Tg(f,r,!1));for(var o=0;o<Ie.length;o++){var v=Ie[o],s=t[v];if(s){var d=l.ensureState(v),p=!!X(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=nn(s,n&&n[v],r,!0,!a),d.style.text=u[v],!a){var g=e.ensureState(v);g.textConfig=Tg(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),r.enableTextSetter&&(hu(l).setLabelText=function(m){var y=wg(r,t,m);yA(l,y)})}else l&&(l.ignore=!0);e.dirty()}function si(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Ie.length;n++){var a=Ie[n];r[a]=e.getModel([a,t])}return r}function nn(e,t,r,n,a){var i={};return _A(i,e,r,n,a),t&&O(i,t),i}function Tg(e,t,r){t=t||{};var n={},a,i=e.getShallow("rotate"),o=X(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return a=e.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(n.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(n.layoutRect=t.layoutRect),n}function _A(e,t,r,n,a){r=r||cu;var i=t.ecModel,o=i&&i.option.textStyle,s=bA(t),l;if(s){l={};var u="richInheritPlainLabel",f=X(t.get(u),i?i.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var h=t.getModel(["rich",c]);Ag(l[c]={},h,o,t,f,r,n,a,!1,!0)}}l&&(e.rich=l);var v=t.get("overflow");v&&(e.overflow=v);var d=t.get("lineOverflow");d&&(e.lineOverflow=d);var p=e,g=t.get("minMargin");if(g!=null)g=xt(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=za.minMargin;else{var m=t.get("textMargin");m!=null&&(p.margin=gv(m),p.__marginType=za.textMargin)}Ag(e,t,o,null,null,r,n,a,!0,!1)}function bA(e){for(var t;e&&e!==e.ecModel;
9){var r=(e.option||cu).rich;if(r){t=t||{};for(var n=mt(r),a=0;a<n.length;a++){var i=n[a];t[i]=1}}e=e.parentModel}return t}var Cg=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Mg=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Dg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ag(e,t,r,n,a,i,o,s,l,u){r=!o&&r||cu;var f=i&&i.inheritColor,c=t.getShallow("color"),h=t.getShallow("textBorderColor"),v=X(t.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(h==="inherit"||h==="auto")&&(f?h=f:h=null),s||(c=c||r.color,h=h||r.textBorderColor),c!=null&&(e.fill=c),h!=null&&(e.stroke=h);var d=X(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var p=X(t.getShallow("textBorderType"),r.textBorderType);p!=null&&(e.lineDash=p);var g=X(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&v==null&&!u&&(v=i&&i.defaultOpacity),v!=null&&(e.opacity=v),!o&&!s&&e.fill==null&&i.inheritColor&&(e.fill=i.inheritColor);for(var m=0;m<Cg.length;m++){var y=Cg[m],_=a!==!1&&n?Ga(t.getShallow(y),n.getShallow(y),r[y]):X(t.getShallow(y),r[y]);_!=null&&(e[y]=_)}for(var m=0;m<Mg.length;m++){var y=Mg[m],_=t.getShallow(y);_!=null&&(e[y]=_)}if(e.verticalAlign==null){var b=t.getShallow("baseline");b!=null&&(e.verticalAlign=b)}if(!l||!i.disableBox){for(var m=0;m<Dg.length;m++){var y=Dg[m],_=t.getShallow(y);_!=null&&(e[y]=_)}var x=t.getShallow("borderType");x!=null&&(e.borderDash=x),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&f&&(e.backgroundColor=f),(e.borderColor==="auto"||e.borderColor==="inherit")&&f&&(e.borderColor=f)}}function q1(e,t){var r=t&&t.getModel("textStyle");return rr([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var hu=St();function SA(e,t,r,n){if(e){var a=hu(e);a.prevValue=a.value,a.value=r;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}var za={minMargin:1,textMargin:2},xA=["textStyle","color"],gf=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],mf=new Ut,wA=(function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(xA):null)},e.prototype.getFont=function(){return q1({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<gf.length;n++)r[gf[n]]=this.getShallow(gf[n]);return mf.useStyle(r),mf.update(),mf.getBoundingRect()},e})(),K1=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],TA=so(K1),CA=(function(){function e(){}return e.prototype.getLineStyle=function(t){return TA(this,t)},e})(),j1=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],MA=so(j1),DA=(function(){function e(){}return e.prototype.getItemStyle=function(t,r){return MA(this,t,r)},e})(),At=(function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){ht(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,a=n==null?n:n[t];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},e.prototype.getModel=function(t,r){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(i,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(rt(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!at.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var a=0;a<t.length&&!(t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e})();Av(At);_M(At);We(At,CA);We(At,DA);We(At,TM);We(At,wA);var AA=Math.round(Math.random()*10);function No(e){return[e||"",AA++].join("_")}function IA(e){var t={};e.registerSubTypeDefaulter=function(r,n){var a=ir(r);t[a.main]=n},e.determineSubType=function(r,n){var a=n.type;if(!a){var i=ir(r).main;e.hasSubTypes(r)&&t[i]&&(a=t[i](n))}return a}}function LA(e,t){e.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=r(o),f=u.graph,c=u.noEntryList,h={};for(I(i,function(y){h[y]=!0});c.length;){var v=c.pop(),d=f[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),I(d.successor,p?m:g)}I(h,function(){var y="";throw new Error(y)});function g(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function m(y){h[y]=!0,g(y)}};function r(i){var o={},s=[];return I(i,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=a(f,i);u.entryCount=c.length,u.entryCount===0&&s.push(l),I(c,function(h){ft(u.predecessor,h)<0&&u.predecessor.push(h);var v=n(o,h);ft(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return I(i,function(l){ft(o,l)>=0&&s.push(l)}),s}}function Xv(e,t){return ht(ht({},e,!0),t,!0)}const PA={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","Frid
9ay","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:". "}}}},kA={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}
9ï¼",withoutName:"第{seriesId}ä¸ªç³»åæ¯ä¸ä¸ª{seriesType}ï¼",separator:{middle:"ï¼",end:"ã"}}},data:{allData:"å
¶æ°æ®æ¯ââ",partialData:"å
¶ä¸ï¼å{displayCnt}项æ¯ââ",withName:"{name}çæ°æ®æ¯{value}",withoutName:"{value}",separator:{middle:"ï¼",end:""}}}};var Sl="ZH",Zv="EN",Ua=Zv,Xs={},qv={},Q1=at.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ua).toUpperCase();return e.indexOf(Sl)>-1?Sl:Ua})():Ua;function J1(e,t){e=e.toUpperCase(),qv[e]=new At(t),Xs[e]=t}function EA(e){if($(e)){var t=Xs[e.toUpperCase()]||{};return e===Sl||e===Zv?rt(t):ht(rt(t),rt(Xs[Ua]),!1)}else return ht(rt(e),rt(Xs[Ua]),!1)}function RA(e){return qv[e]}function OA(){return qv[Ua]}J1(Zv,PA);J1(Sl,kA);var BA=null;function xl(){return BA}var Kv=1e3,jv=Kv*60,Zi=jv*60,Ce=Zi*24,Ig=Ce*365,NA={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})/},Zs={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},FA="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",us="{yyyy}-{MM}-{dd}",Lg={year:"{yyyy}",month:"{yyyy}-{MM}",day:us,hour:us+" "+Zs.hour,minute:us+" "+Zs.minute,second:us+" "+Zs.second,millisecond:FA},jn=["year","month","day","hour","minute","second","millisecond"],zA=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function VA(e){return!$(e)&&!Z(e)?GA(e):e}function GA(e){e=e||{};var t={},r=!0;return I(jn,function(n){r&&(r=e[n]==null)}),I(jn,function(n,a){var i=e[n];t[n]={};for(var o=null,s=a;s>=0;s--){var l=jn[s],u=K(i)&&!N(i)?i[l]:i,f=void 0;N(u)?(f=u.slice(),o=f[0]||""):$(u)?(o=u,f=[o]):(o==null?o=Zs[n]:NA[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),t[n][l]=f}}),t}function Rr(e,t){return e+="","0000".substr(0,t-e.length)+e}function qi(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function HA(e){return e===qi(e)}function WA(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function vu(e,t,r,n){var a=ii(e),i=a[tb(r)](),o=a[Qv(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[Jv(r)](),u=a["get"+(r?"UTC":"")+"Day"](),f=a[td(r)](),c=(f-1)%12+1,h=a[ed(r)](),v=a[rd(r)](),d=a[nd(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof At?n:RA(n||Q1)||OA(),y=m.getModel("time"),_=y.get("month"),b=y.get("monthAbbr"),x=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Rr(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Rr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Rr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Rr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Rr(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Rr(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Rr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Rr(d,3)).replace(/{S}/g,d+"")}function UA(e,t,r,n,a){var i=null;if($(r))i=r;else if(Z(r)){var o={time:e.time,level:e.time.level},s=xl();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),i=r(e.value,t,o)}else{var l=e.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=wl(e.value,a);i=r[f][f][0]}}return vu(new Date(e.value),i,a,n)}function wl(e,t){var r=ii(e),n=r[Qv(t)]()+1,a=r[Jv(t)](),i=r[td(t)](),o=r[ed(t)](),s=r[rd(t)](),l=r[nd(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function oh(e,t,r){switch(t){case"year":e[eb(r)](0);case"month":e[rb(r)](1);case"day":e[nb(r)](0);case"hour":e[ab(r)](0);case"minute":e[ib(r)](0);case"second":e[ob(r)](0)}return e}function tb(e){return e?"getUTCFullYear":"getFullYear"}function Qv(e){return e?"getUTCMonth":"getMonth"}function Jv(e){return e?"getUTCDate":"getDate"}function td(e){return e?"getUTCHours":"getHours"}function ed(e){return e?"getUTCMinutes":"getMinutes"}function rd(e){return e?"getUTCSeconds":"getSeconds"}
9function nd(e){return e?"getUTCMilliseconds":"getMilliseconds"}function $A(e){return e?"setUTCFullYear":"setFullYear"}function eb(e){return e?"setUTCMonth":"setMonth"}function rb(e){return e?"setUTCDate":"setDate"}function nb(e){return e?"setUTCHours":"setHours"}function ab(e){return e?"setUTCMinutes":"setMinutes"}function ib(e){return e?"setUTCSeconds":"setSeconds"}function ob(e){return e?"setUTCMilliseconds":"setMilliseconds"}function sb(e){if(!jC(e))return $(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function lb(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var du=gv;function sh(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&rr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?ii(e):e;if(isNaN(+l)){if(s)return"-"}else return vu(l,n,r)}if(t==="ordinal")return mc(e)?a(e):xt(e)&&i(e)?e+"":"-";var u=pl(e);return i(u)?sb(u):mc(e)?a(e):typeof e=="boolean"?e+"":"-"}var Pg=["a","b","c","d","e","f","g"],yf=function(e,t){return"{"+e+(t??"")+"}"};function ub(e,t,r){N(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=Pg[i];e=e.replace(yf(o),yf(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];e=e.replace(yf(Pg[l],s),r?re(u):u)}return e}function YA(e,t){var r=$(e)?{color:e,extraCssText:t}:e||{},n=r.color,a=r.type;t=r.extraCssText;var i=r.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+re(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+re(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function ra(e,t){return t=t||"transparent",$(e)?e:K(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function kg(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var qs={},_f={},ad=(function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=n(qs),this._normalMasterList=n(_f);function n(a,i){var o=[];return I(a,function(s,l){var u=s.create(t,r);o=o.concat(u||[])}),o}},e.prototype.update=function(t,r){I(this._normalMasterList,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t==="matrix"||t==="calendar"){qs[t]=r;return}_f[t]=r},e.get=function(t){return _f[t]||qs[t]},e})();function XA(e){return!!qs[e]}var Eg={coord:1,coord2:2},ZA=q();function qA(e){var t=e.getShallow("coord",!0),r=Eg.coord;if(t==null){var n=ZA.get(e.type);n&&n.getCoord2&&(r=Eg.coord2,t=n.getCoord2(e))}return{coord:t,from:r}}var Sr={none:0,dataCoordSys:1,boxCoordSys:2};function KA(e,t){var r=e.getShallow("coordinateSystem"),n=e.getShallow("coordinateSystemUsage",!0),a=Sr.none;if(r){var i=e.mainType==="series";n==null&&(n=i?"data":"box"),n==="data"?(a=Sr.dataCoordSys,i||(a=Sr.none)):n==="box"&&(a=Sr.boxCoordSys,!i&&!XA(r)&&(a=Sr.none))}return{coordSysType:r,kind:a}}function jA(e){var t=e.targetModel,r=e.coordSysType,n=e.coordSysProvider,a=e.isDefaultDataCoordSys,i=KA(t),o=i.kind,s=i.coordSysType;if(a&&o!==Sr.dataCoordSys&&(o=Sr.dataCoordSys,s=r),o===Sr.none||s!==r)return!1;var l=n(r,t);return l?(o===Sr.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var Ks=I,QA=["left","right","top","bottom","width","height"],fs=[["width","left","right"],["height","top","bottom"]];function id(e,t,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;
9t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(e==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=i+p,v>n||l.newline?(i=0,v=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+r,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),e==="horizontal"?i=v+r:o=d+r)})}var $a=id;ot(id,"vertical");ot(id,"horizontal");function JA(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function an(e,t,r){r=du(r||0);var n=t.width,a=t.height,i=Ft(e.left,n),o=Ft(e.top,a),s=Ft(e.right,n),l=Ft(e.bottom,a),u=Ft(e.width,n),f=Ft(e.height,a),c=r[2]+r[0],h=r[1]+r[3],v=e.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(f)&&(f=a-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-f-c),e.left||e.right){case"center":i=n/2-u/2-r[3];break;case"right":i=n-u-h;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-f/2-r[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new ut((t.x||0)+i+r[3],(t.y||0)+o+r[0],u,f);return d.margin=r,d}var bf={rect:1};function pu(e,t,r){var n,a,i,o=e.boxCoordinateSystem,s;if(o){var l=qA(e),u=l.coord,f=l.from;if(o.dataToLayout){i=bf.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}}return i==null&&(i=bf.rect),i===bf.rect&&(n||(n={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function t2(e,t,r,n,a,i){i=i||e,i.x=e.x,i.y=e.y;var o;if(o=e.getBoundingRect(),e.needLocalTransform()){var s=e.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=an(it({width:o.width,height:o.height},t),r,n),u=l.x-o.x,f=l.y-o.y;return i.x+=u,i.y+=f,i===e&&e.markRedraw(),!0}function vo(e){var t=e.layoutMode||e.constructor.layoutMode;return K(t)?t:t?{type:t}:null}function on(e,t,r){var n=r&&r.ignoreSize;!N(n)&&(n=[n,n]);var a=o(fs[0],0),i=o(fs[1],1);l(fs[0],e,a),l(fs[1],e,i);function o(u,f){var c={},h=0,v={},d=0,p=2;if(Ks(u,function(y){v[y]=e[y]}),Ks(u,function(y){Fe(t,y)&&(c[y]=v[y]=t[y]),s(c,y)&&h++,s(v,y)&&d++}),n[f])return s(t,u[1])?v[u[2]]=null:s(t,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return c;for(var g=0;g<u.length;g++){var m=u[g];if(!Fe(c,m)&&Fe(e,m)){c[m]=e[m];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Ks(u,function(h){f[h]=c[h]})}}function Fo(e){return e2({},e)}function e2(e,t){return t&&e&&Ks(QA,function(r){Fe(t,r)&&(e[r]=t[r])}),e}var r2=St(),yt=(function(e){Y(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.uid=No("ec_cpt_model"),i}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=vo(this),i=a?Fo(r):{},o=n.getTheme();ht(r,o.get(this.mainType)),ht(r,this.getDefaultOption()),a&&on(r,i,a)},t.prototype.mergeOption=function(r,n){ht(this.option,r,!0);var a=vo(this);a&&on(this.option,r,a)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!gM(r))return r.defaultOption;var n=r2(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=ht(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return ko(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){return JA(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=(function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),t})(At);l1(yt,At);Jl(yt);IA(yt);LA(yt,n2);function n2(e){var t=[];return I(yt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.depen
9dencies||[])}),t=F(t,function(r){return ir(r).main}),e!=="dataset"&&ft(t,"dataset")<=0&&t.unshift("dataset"),t}var V={color:{},darkColor:{},size:{}},Pt=V.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};O(Pt,{primary:Pt.neutral80,secondary:Pt.neutral70,tertiary:Pt.neutral60,quaternary:Pt.neutral50,disabled:Pt.neutral20,border:Pt.neutral30,borderTint:Pt.neutral20,borderShade:Pt.neutral40,background:Pt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Pt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Pt.neutral70,axisLineTint:Pt.neutral40,axisTick:Pt.neutral70,axisTickMinor:Pt.neutral60,axisLabel:Pt.neutral70,axisSplitLine:Pt.neutral15,axisMinorSplitLine:Pt.neutral05});for(var In in Pt)if(Pt.hasOwnProperty(In)){var Rg=Pt[In];In==="theme"?V.darkColor.theme=Pt.theme.slice():In==="highlight"?V.darkColor.highlight="rgba(255,231,130,0.4)":In.indexOf("accent")===0?V.darkColor[In]=kc(Rg,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):V.darkColor[In]=kc(Rg,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}V.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var fb="";typeof navigator<"u"&&(fb=navigator.platform||"");var ya="rgba(0, 0, 0, 0.2)",cb=V.color.theme[0],a2=kc(cb,null,null,.9);const i2={darkMode:"auto",colorBy:"series",color:V.color.theme,gradientColor:[a2,cb],aria:{decal:{decals:[{color:ya,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ya,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ya,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ya,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ya,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ya,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:fb.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 hb=q(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ye="original",Jt="arrayRows",Ye="objectRows",vr="keyedColumns",jr="typedArray",vb="unknown",fr="column",la="row",pe={Must:1,Might:2,Not:3},db=St();function o2(e){db(e).datasetMap=q()}function s2(e,t,r){var n={},a=pb(t);if(!a||!e)return n;var i=[],o=[],s=t.ecModel,l=db(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,f,c;e=e.slice(),I(e,function(p,g){var m=K(p)?p:e[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=d(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});I(e,function(p,g){var m=p.name,y=d(p);if(f==null){var _=h.valueWayDim;v(n[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(f===g)v(n[m],0,y),v(i,0,y);else{var _=h.categoryWayDim;v(n[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function pb(e){var t=e.get("data",!0);if(!t)return ko(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Kt).models[0]}function l2(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:ko(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Kt).models}function gb(e,t){return u2(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function u2(e,t,r,n,a,i){var o,s=5;if(he(e))return pe.Not;var l,u;if(n){var f=n[i];K(f)?(l=f.name,u=f.type):$(f)&&(l=f)}if(u!=null)return u==="ordinal"?pe.Must:pe.Not;if(t===Jt){var c=e;if(r===la){for(var h=c[i],v=0;
9v<(h||[]).length&&v<s;v++)if((o=b(h[a+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[a+v];if(d&&(o=b(d[i]))!=null)return o}}else if(t===Ye){var p=e;if(!l)return pe.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=b(g[l]))!=null)return o}}else if(t===vr){var m=e;if(!l)return pe.Not;var h=m[l];if(!h||he(h))return pe.Not;for(var v=0;v<h.length&&v<s;v++)if((o=b(h[v]))!=null)return o}else if(t===ye)for(var y=e,v=0;v<y.length&&v<s;v++){var g=y[v],_=Po(g);if(!N(_))return pe.Not;if((o=b(_[i]))!=null)return o}function b(x){var S=$(x);if(x!=null&&Number.isFinite(Number(x))&&x!=="")return S?pe.Might:pe.Not;if(S&&x!=="-")return pe.Must}return pe.Not}var lh=q();function f2(e,t){Ae(lh.get(e)==null&&t),lh.set(e,t)}function c2(e,t,r){var n=lh.get(t);if(!n)return r;var a=n(e);return a?r.concat(a):r}var Og=St();St();var od=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var a=Bt(this.get("color",!0)),i=this.get("colorLayer",!0);return v2(this,Og,a,i,t,r,n)},e.prototype.clearColorPalette=function(){d2(this,Og)},e})();function h2(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function v2(e,t,r,n,a,i,o){i=i||e;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?r:h2(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function d2(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var cs,gi,Bg,Ng="\0_ec_inner",p2=1,sd=(function(e){Y(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new At(i),this._locale=new At(o),this._optionManager=s},t.prototype.setOption=function(r,n,a){var i=Vg(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(r,n){return this._resetOption(r,Vg(n))},t.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?Bg(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=i.getMediaOption(this);l.length&&I(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=q(),u=n&&n.replaceMergeMainTypeMap;o2(this),I(r,function(c,h){c!=null&&(yt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?rt(c):ht(a[h],c,!0))}),u&&u.each(function(c,h){yt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),yt.topologicalTravel(s,yt.getAllClassMainTypes(),f,this);function f(c){var h=c2(this,c,Bt(r[c])),v=i.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=JC(v,h,d);sM(p,c,yt),a[c]=null,i.set(c,null),o.set(c,0);var g=[],m=[],y=0,_;I(p,function(b,x){var S=b.existing,w=b.newOption;if(!w)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var C=c==="series",M=yt.getClass(c,b.keyInfo.subType,!C);if(!M)return;if(c==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===M)S.name=b.keyInfo.name,S.mergeOption(w,this),S.optionUpdated(w,!1);else{var T=O({componentIndex:x},b.keyInfo);S=new M(w,this,this,T),O(S,T),b.brandNew&&(S.__requireNewView=!0),S.init(w,this,this),S.optionUpdated(null,!0)}}S?(g.push(S.option),m.push(S),y++):(g.push(void 0),m.push(void 0))},this),a[c]=g,i.set(c,m),o.set(c,y),c==="series"&&cs(this)}this._seriesIndices||cs(this)},t.prototype.getOption=function(){var r=rt(this.option);return I(r,function(n,a){if(yt.hasClass(a)){for(var i=Bt(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!oo(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[Ng],r},t.prototype.setTheme=function(r){this._theme=new At(r),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],I(Bt(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=Fg("id",i,s):o!=null?l=Fg("name",o,s):l=Mt(s,function(u){return!!u}),zg(l,r)},t.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):Mt(this._componentsMap.get(a),function(u){return!!u});return l(zg(o,r));function s(u){var f=a+"Index",c=a+"Id",h=a+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:a,index:u[f],id:u[c],name:u[h]}:null}function l(u){return r.filter?Mt(u,r.filter):u}},t.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(Z(r)){var o=n,s=r;i.each(function(c,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=$(r)?i.get(r):K(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=ur(r,null);return Mt(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Mt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Mt(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){gi(this),I(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},t.prototype.eachRawSeries=function(r,n){I(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,a){gi(this),I(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(r,n,a){return I(this.getSeriesByType(r),n,a)},t.prototype.isSeriesFiltered=function(r){return gi(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){gi(this);var a=[];I(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=q(a)},t.prototype.restoreData=function(r){cs(this);var n=this._componentsMap,a=[];
9n.each(function(i,o){yt.hasClass(o)&&a.push(o)}),yt.topologicalTravel(a,yt.getAllClassMainTypes(),function(i){I(n.get(i),function(o){o&&(i!=="series"||!g2(o,r))&&o.restoreData()})})},t.internalField=(function(){cs=function(r){var n=r._seriesIndices=[];I(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=q(n)},gi=function(r){},Bg=function(r,n){r.option={},r.option[Ng]=p2,r._componentsMap=q({series:[]}),r._componentsCount=q();var a=n.aria;K(a)&&a.enabled==null&&(a.enabled=!0),m2(n,r._theme.option),ht(n,i2,!1),r._mergeOption(n,null)}})(),t})(At);function g2(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,a=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||a!=null&&e.name!==a}}function m2(e,t){var r=e.color&&!e.colorLayer;I(t,function(n,a){a==="colorLayer"&&r||a==="color"&&e.color||yt.hasClass(a)||(typeof n=="object"?e[a]=e[a]?ht(e[a],n,!1):rt(n):e[a]==null&&(e[a]=n))})}function Fg(e,t,r){if(N(t)){var n=q();return I(t,function(i){if(i!=null){var o=ur(i,null);o!=null&&n.set(i,!0)}}),Mt(r,function(i){return i&&n.get(i[e])})}else{var a=ur(t,null);return Mt(r,function(i){return i&&a!=null&&i[e]===a})}}function zg(e,t){return t.hasOwnProperty("subType")?Mt(e,function(r){return r&&r.subType===t.subType}):e}function Vg(e){var t=q();return e&&I(Bt(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}We(sd,od);var y2=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],mb=(function(){function e(t){I(y2,function(r){this[r]=lt(t[r],t)},this)}return e})(),_2=/^(min|max)?(.+)$/,b2=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(I(Bt(t.series),function(o){o&&o.data&&he(o.data)&&yc(o.data)}),I(Bt(t.dataset),function(o){o&&o.source&&he(o.source)&&yc(o.source)})),t=rt(t);var a=this._optionBackup,i=S2(t,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],rt(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(r=rt(n[a.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)x2(a[l].query,r,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!T2(o,this._currentMediaIndices)&&(s=F(o,function(f){return rt(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},e})();function S2(e,t,r){var n=[],a,i,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,f=!!e.media,c=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||f)&&(e.options=e.media=null),i=e),f&&N(u)&&I(u,function(v){v&&v.option&&(v.query?n.push(v):a||(a=v))}),h(i),I(l,function(v){return h(v)}),I(n,function(v){return h(v.option)});function h(v){I(t,function(d){d(v,r)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function x2(e,t,r){var n={width:t,height:r,aspectratio:t/r},a=!0;return I(e,function(i,o){var s=o.match(_2);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();w2(n[u],i,l)||(a=!1)}}),a}function w2(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function T2(e,t){return e.join(",")===t.join(",")}var Pe=I,po=K,Gg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Sf(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Gg.length;r<n;r++){var a=Gg[r],i=t.normal,o=t.emphasis;i&&i[a]&&(e[a]=e[a]||{},e[a].normal?ht(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(e[a]=e[a]||{},e[a].emphasis?ht(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function Zt(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,a=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,it(e[t],n)):e[t]=n),a&&(e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emp
9hasis.blurScope=a.blurScope))}}function Bi(e){Zt(e,"itemStyle"),Zt(e,"lineStyle"),Zt(e,"areaStyle"),Zt(e,"label"),Zt(e,"labelLine"),Zt(e,"upperLabel"),Zt(e,"edgeLabel")}function Et(e,t){var r=po(e)&&e[t],n=po(r)&&r.textStyle;if(n)for(var a=0,i=Fp.length;a<i;a++){var o=Fp[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}function xe(e){e&&(Bi(e),Et(e,"label"),e.emphasis&&Et(e.emphasis,"label"))}function C2(e){if(po(e)){Sf(e),Bi(e),Et(e,"label"),Et(e,"upperLabel"),Et(e,"edgeLabel"),e.emphasis&&(Et(e.emphasis,"label"),Et(e.emphasis,"upperLabel"),Et(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Sf(t),xe(t));var r=e.markLine;r&&(Sf(r),xe(r));var n=e.markArea;n&&xe(n);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!he(i))for(var o=0;o<i.length;o++)xe(i[o]);I(e.categories,function(u){Bi(u)})}if(a&&!he(a))for(var o=0;o<a.length;o++)xe(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)xe(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)N(l[o])?(xe(l[o][0]),xe(l[o][1])):xe(l[o]);e.type==="gauge"?(Et(e,"axisLabel"),Et(e,"title"),Et(e,"detail")):e.type==="treemap"?(Zt(e.breadcrumb,"itemStyle"),I(e.levels,function(u){Bi(u)})):e.type==="tree"&&Bi(e.leaves)}}function gr(e){return N(e)?e:e?[e]:[]}function Hg(e){return(N(e)?e[0]:e)||{}}function M2(e,t){Pe(gr(e.series),function(n){po(n)&&C2(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Pe(r,function(n){Pe(gr(e[n]),function(a){a&&(Et(a,"axisLabel"),Et(a.axisPointer,"label"))})}),Pe(gr(e.parallel),function(n){var a=n&&n.parallelAxisDefault;Et(a,"axisLabel"),Et(a&&a.axisPointer,"label")}),Pe(gr(e.calendar),function(n){Zt(n,"itemStyle"),Et(n,"dayLabel"),Et(n,"monthLabel"),Et(n,"yearLabel")}),Pe(gr(e.radar),function(n){Et(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Pe(gr(e.geo),function(n){po(n)&&(xe(n),Pe(gr(n.regions),function(a){xe(a)}))}),Pe(gr(e.timeline),function(n){xe(n),Zt(n,"label"),Zt(n,"itemStyle"),Zt(n,"controlStyle",!0);var a=n.data;N(a)&&I(a,function(i){K(i)&&(Zt(i,"label"),Zt(i,"itemStyle"))})}),Pe(gr(e.toolbox),function(n){Zt(n,"iconStyle"),Pe(n.feature,function(a){Zt(a,"iconStyle")})}),Et(Hg(e.axisPointer),"label"),Et(Hg(e.tooltip).axisPointer,"label")}function D2(e,t){for(var r=t.split(","),n=e,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function A2(e,t,r,n){for(var a=t.split(","),i=e,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=r)}function Wg(e){e&&I(I2,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var I2=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],L2=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],xf=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function mi(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<xf.length;r++){var n=xf[r][1],a=xf[r][0];t[n]!=null&&(t[a]=t[n])}}function Ug(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function $g(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function P2(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function yb(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&yb(e[r].children,t)}function _b(e,t){M2(e,t),e.series=Bt(e.series),I(e.series,function(r){if(K(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),Ug(r.label);var a=r.data;if(a&&!he(a))for(var i=0;i<a.length;i++)Ug(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=D2(r,"pointer.color");o!=null&&A2(r,"itemStyle.color",o)}else if(n==="bar"){mi(r),mi(r.backgroundStyle),mi(r.emphasis);var a=r.data;if(a&&!he(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(mi(a[i]),mi(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),$g(r),yb(r.data,$g)}else n==="graph"||n==="sankey"?P2(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapT
9ype),r.mapLocation&&it(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Wg(r)}}),e.dataRange&&(e.visualMap=e.dataRange),I(L2,function(r){var n=e[r];n&&(N(n)||(n=[n]),I(n,function(a){Wg(a)}))})}function k2(e){var t=q();e.eachSeries(function(r){var n=r.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=r.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:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),t.each(function(r){if(r.length!==0){var n=r[0].seriesModel,a=n.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&r.reverse(),I(r,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),E2(r)}})}function E2(e){I(e,function(t,r){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var h=o.get(t.stackedDimension,c);if(isNaN(h))return a;var v,d;s?d=o.getRawIndex(c):v=o.get(t.stackedByDimension,c);for(var p=NaN,g=r-1;g>=0;g--){var m=e[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=ZC(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var gu=(function(){function e(t){this.data=t.data||(t.sourceFormat===vr?{}:[]),this.sourceFormat=t.sourceFormat||vb,this.seriesLayoutBy=t.seriesLayoutBy||fr,this.startIndex=t.startIndex||
90,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&gb(this,n)===pe.Must&&(a.type="ordinal")}}return e})();function ld(e){return e instanceof gu}function uh(e,t,r){r=r||Sb(e);var n=t.seriesLayoutBy,a=O2(e,r,n,t.sourceHeader,t.dimensions),i=new gu({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:rt(t)});return i}function bb(e){return new gu({data:e,sourceFormat:he(e)?jr:ye})}function R2(e){return new gu({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:rt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Sb(e){var t=vb;if(he(e))t=jr;else if(N(e)){e.length===0&&(t=Jt);for(var r=0,n=e.length;r<n;r++){var a=e[r];if(a!=null){if(N(a)||he(a)){t=Jt;break}else if(K(a)){t=Ye;break}}}}else if(K(e)){for(var i in e)if(Fe(e,i)&&ce(e[i])){t=vr;break}}return t}function O2(e,t,r,n,a){var i,o;if(!e)return{dimensionsDefine:Yg(a),startIndex:o,dimensionsDetectedCount:i};if(t===Jt){var s=e;n==="auto"||n==null?Xg(function(u){u!=null&&u!=="-"&&($(u)?o==null&&(o=1):o=0)},r,s,10):o=xt(n)?n:n?1:0,!a&&o===1&&(a=[],Xg(function(u,f){a[f]=u!=null?u+"":""},r,s,1/0)),i=a?a.length:r===la?s.length:s[0]?s[0].length:null}else if(t===Ye)a||(a=B2(e));else if(t===vr)a||(a=[],I(e,function(u,f){a.push(f)}));else if(t===ye){var l=Po(e[0]);i=N(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Yg(a),dimensionsDetectedCount:i}}function B2(e){for(var t=0,r;t<e.length&&!(r=e[t++]););
9if(r)return mt(r)}function Yg(e){if(e){var t=q();return F(e,function(r,n){r=K(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function Xg(e,t,r,n){if(t===la)for(var a=0;a<r.length&&a<n;a++)e(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)e(i[a],a)}function xb(e){var t=e.sourceFormat;return t===Ye||t===vr}var Ln,Pn,kn,En,Zg,qg,wb=(function(){function e(t,r){var n=ld(t)?t:bb(t);this._source=n;var a=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===jr&&(this._offset=0,this._dimSize=r,this._data=a),qg(this,a,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=(function(){var t=e.prototype;t.pure=!1,t.persistent=!0})(),e.internalField=(function(){var t;qg=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=Zg[ud(u,f)];if(O(o,v),u===jr)o.getItem=r,o.count=a,o.fillStorage=n;else{var d=Tb(u,f);o.getItem=lt(d,null,s,c,h);var p=Cb(u,f);o.count=lt(p,null,s,c,h)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,m=l[h],y=0;y<g;y++){var _=f[y*c+h];m[o+y]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};Zg=(t={},t[Jt+"_"+fr]={pure:!0,appendData:i},t[Jt+"_"+la]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ye]={pure:!0,appendData:i},t[vr]={pure:!0,appendData:function(o){var s=this._data;I(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[ye]={appendData:i},t[jr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),e})(),hs=function(e){N(e)||r1("series.data or dataset.source must be an array.")};Ln={},Ln[Jt+"_"+fr]=hs,Ln[Jt+"_"+la]=hs,Ln[Ye]=hs,Ln[vr]=function(e,t){for(var r=0;r<t.length;r++){var n=t[r].name;n==null&&r1("dimension name must not be null/undefined.")}},Ln[ye]=hs;var Kg=function(e,t,r,n){return e[n]},N2=(Pn={},Pn[Jt+"_"+fr]=function(e,t,r,n){return e[n+t]},Pn[Jt+"_"+la]=function(e,t,r,n,a){n+=t;for(var i=a||[],o=e,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Pn[Ye]=Kg,Pn[vr]=function(e,t,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?e[s]:null;i[o]=l?l[n]:null}return i},Pn[ye]=Kg,Pn);function Tb(e,t){var r=N2[ud(e,t)];return r}var jg=function(e,t,r){return e.length},F2=(kn={},kn[Jt+"_"+fr]=function(e,t,r){return Math.max(0,e.length-t)},kn[Jt+"_"+la]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},kn[Ye]=jg,kn[vr]=function(e,t,r){var n=r[0].name,a=n!=null?e[n]:null;return a?a.length:0},kn[ye]=jg,kn);function Cb(e,t){var r=F2[ud(e,t)];return r}var wf=function(e,t,r){return e[t]},z2=(En={},En[Jt]=wf,En[Ye]=function(e,t,r){return e[r]},En[vr]=wf,En[ye]=function(e,t,r){var n=Po(e);return n instanceof Array?n[t]:n},En[jr]=wf,En);function Mb(e){var t=z2[e];return t}function ud(e,t){return e===Jt?e+"_"+t:e}function Qa(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var a=e.getStore(),i=a.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=a.getDimensionProperty(o);return Mb(i)(n,o,s)}else{var l=n;return i===ye&&(l=Po(n)),l}}}}var V2=/\{@(.+?)\}/g,fd=(function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),a=this.getRawValue(t,r),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",v=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,
9seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:r,value:a,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,a,i,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&N(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Z(i))return l.status=r,l.dimensionIndex=a,i(l);if($(i)){var f=ub(i,l);return f.replace(V2,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=Qa(s,t,d);if(o&&N(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return Qa(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e})();function Qg(e){var t,r;return K(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Ki(e){return new G2(e)}var G2=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v<d)){var p=this._progress;if(N(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,a,i){Jg.reset(r,n,a,i),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:Jg.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),N(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e})(),Jg=(function(){var e,t,r,n,a,i={reset:function(l,u,f,c){t=l,e=u,r=f,n=c,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return t<e?t++:null}function s(){var l=t%a*r+Math.ceil(t/a),u=t>=e?null:l<n?l:t;return t++,u}})();function Ya(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!xt(e)&&e!=null&&e!=="-"&&(e=+ii(e)),e==null||e===""?NaN:Number(e))}q({number:function(e){return parseFloat(e)},time:function(e){return+ii(e)},trim:function(e){return $(e)?rr(e):e}});var H2=(function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=xt(t)?t:pl(t),a=xt(r)?r:pl(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=$(t),l=$(r);
9s&&(n=l?t:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},e})(),W2=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Ya(t,r)},e})();function U2(e,t){var r=new W2,n=e.data,a=r.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==fr&&se(o);var s=[],l={},u=e.dimensionsDefine;if(u)I(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";Fe(l,m)&&se(_),l[m]=y}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var c=Tb(a,fr);t.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,i,s,p)},r.getRawData=lt($2,null,e)),r.cloneRawData=lt(Y2,null,e);var h=Cb(a,fr);r.count=lt(h,null,n,i,s);var v=Mb(a);r.retrieveValue=function(p,g){var m=c(n,i,s,p);return d(m,g)};var d=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return v(p,g,m.name)}};return r.getDimensionInfo=lt(X2,null,s,l),r.cloneAllDimensionInfo=lt(Z2,null,s),r}function $2(e){var t=e.sourceFormat;if(!cd(t)){var r="";se(r)}return e.data}function Y2(e){var t=e.sourceFormat,r=e.data;if(!cd(t)){var n="";se(n)}if(t===Jt){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(t===Ye){for(var a=[],i=0,o=r.length;i<o;i++)a.push(O({},r[i]));return a}}function X2(e,t,r){if(r!=null){if(xt(r)||!isNaN(r)&&!Fe(t,r))return e[r];if(Fe(t,r))return t[r]}}function Z2(e){return rt(e)}var Db=q();function q2(e){e=rt(e);var t=e.type,r="";t||se(r);var n=t.split(":");n.length!==2&&se(r);var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),e.__isBuiltIn=a,Db.set(t,e)}function K2(e,t,r){var n=Bt(e),a=n.length,i="";a||se(i);for(var o=0,s=a;o<s;o++){var l=n[o];t=j2(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function j2(e,t,r,n){var a="";t.length||se(a),K(e)||se(a);var i=e.type,o=Db.get(i);o||se(a);var s=F(t,function(u){return U2(u,o)}),l=Bt(o.transform({upstream:s[0],upstreamList:s,config:rt(e.config)}));return F(l,function(u,f){var c="";K(u)||se(c),u.data||se(c);var h=Sb(u.data);cd(h)||se(c);var v,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:fr,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:fr,sourceHeader:0,dimensions:u.dimensions};return uh(u.data,v,null)})}function cd(e){return e===Jt||e===Ye}var mu="undefined",Q2=typeof Uint32Array===mu?Array:Uint32Array,J2=typeof Uint16Array===mu?Array:Uint16Array,Ab=typeof Int32Array===mu?Array:Int32Array,tm=typeof Float64Array===mu?Array:Float64Array,Ib={float:tm,int:Ab,ordinal:Array,number:Array,time:tm},Tf;function _a(e){return e>65535?Q2:J2}function ba(){return[1/0,-1/0]}function tI(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function em(e,t,r,n,a){var i=Ib[r||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new i(n)}var fh=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=q()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=Tf[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],xb(a),this._dimensions=F(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(t,i),this._chunks[i]=new Ib[r||"float"](this._rawCount),this._rawExtent[i]=ba(),i},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[t]=ba());for(var l=i[t],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<i;u++){var f=a[u];em(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var v=h-s,d=0;d<i;d++){var f=a[d],p=Tf.arrayRows.call(this,t[v]||c,f.property,v,d);n[d][h]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=F(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=ba()),em(i,f,c.type,r,n)}if(a.fillStorage)a.fillStorage(t,r,i,l);else for(var h=[],v=t;v<r;v++){h=a.getItem(v,h);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(h,u[d],v,d);p[v]=g;var m=l[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],a=[];if(r==null){r=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(i){isNaN(i)||r.push(i)});var n=r.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<t)a=o+1;else if(r[o]>t)i=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=r[i]}else t=new n(r.buffer,0,a)}else{var n=_a(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=_a(n._rawCount),o=new i(a),s=[],l=t.length,u=0,f=t[0],c=n._chunks,h=0;h<a;h++){var v=void 0,d=n.getRawIndex(h);if(l===0)v=r(h);else if(l===1){var p=c[f][d];v=r(p,h)}else{for(var g=0;g<l;g++)s[g]=c[t[g]][d];s[g]=h,v=r.apply(null,s)}v&&(o[u++]=d)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var a=mt(t),i=a.length;if(!i)return this;var o=r.count(),s=_a(r._rawCount),l=new s(o),u=0,f=a[0],c=t[f][0],h=t[f][1],v=r._chunks,d=!1;if(!r._indices){var p=0;if(i===1){for(var g=v[a[0]],m=0;m<n;m++){var y=g[m];(y>=c&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[a[0]],_=v[a[1]],b=t[a[1]][0],x=t[a[1]][1],m=0;m<n;m++){var y=g[m],S=_[m];(y>=c&&y<=h||isNaN(y))&&(S>=b&&S<=x||isNaN(S))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var m=0;m<o;m++){var w=r.getRawIndex(m),y=v[a[0]][w];(y>=c&&y<=h||isNaN(y))&&(l[u++]=w)}else for(var m=0;m<o;m++){for(var C=!0,w=r.getRawIndex(m),M=0;M<i;M++){var T=a[M],y=v[T][w];(y<t[T][0]||y>t[T][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}
9return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var a=t._chunks,i=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<r.length;f++)u[r[f]]=ba();for(var c=0;c<s;c++){for(var h=t.getRawIndex(c),v=0;v<o;v++)l[v]=a[r[v]][h];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=r[f],g=d[f],m=u[p],y=a[p];y&&(y[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,h,v=new(_a(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var b=this.getRawIndex(_),x=i[b];isNaN(x)||(y+=x)}y/=g-p;var S=d,w=Math.min(d+l,o),C=d-1,M=i[u];f=-1,h=S;for(var T=-1,D=0,_=S;_<w;_++){var b=this.getRawIndex(_),x=i[b];if(isNaN(x)){D++,T<0&&(T=b);continue}c=Math.abs((C-m)*(x-M)-(C-_)*(y-M)),c>f&&(f=c,h=b)}D>0&&D<w-S&&(v[s++]=Math.min(T,h),h=Math.max(T,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(t,r){for(var n=this.clone([t],!0),a=n._chunks,i=Math.floor(1/r),o=a[t],s=this.count(),l=new(_a(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var c=f,h=o[this.getRawIndex(c)],v=f,d=o[this.getRawIndex(v)],p=i;f+i>s&&(p=s-f);for(var g=0;g<p;g++){var m=this.getRawIndex(f+g),y=o[m];y<h&&(h=y,c=f+g),y>d&&(d=y,v=f+g)}var _=this.getRawIndex(c),b=this.getRawIndex(v);c<v?(l[u++]=_,l[u++]=b):(l[u++]=b,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},e.prototype.downSample=function(t,r,n,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/r),u=o[t],f=this.count(),c=i._rawExtent[t]=ba(),h=new(_a(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var m=n(s),y=this.getRawIndex(Math.min(d+a(s,m)||0,f-1));u[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[t[0]][s],i);break;case 2:r(a[t[0]][s],a[t[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=i,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=ba();if(!r)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<a;u++){var f=this.getRawIndex(u),c=r[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},e.prototype.clone=function(t,r){var n=new e,a=this._chunks,i=t&&ni(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?tI(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=rt(this._extent),t._rawExtent=rt(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(r,n,a,i){return Ya(r[i],this._dimensions[i])}Tf={arrayRows:t,objectRows:function(r,n,a,i){return Ya(r[n],this._dimensions[i])},keyedColumns:t,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return Ya(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}})(),e})(),eI=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if(vs(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=he(s)?jr:ye,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=X(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=X(c.sourceHeader,h.sourceHeader),p=X(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=g?[uh(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);a=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);a=[uh(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&rm(i)}var o,s=[],l=[];return I(t,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&rm(c),s.push(f),l.push(u._getVersionSign())}),n?o=K2(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[R2(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];
9if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];vs(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new fh,s.initData(new wb(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(vs(t)){var r=pb(t);return r?[r.getSourceManager()]:[]}else return F(l2(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,a;if(vs(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},e})();function vs(e){return e.mainType==="series"}function rm(e){throw new Error(e)}var rI="line-height:1";function Lb(e){var t=e.lineHeight;return t==null?rI:"line-height:"+re(t+"")+"px"}function Pb(e,t){var r=e.color||V.color.tertiary,n=e.fontSize||12,a=e.fontWeight||"400",i=e.color||V.color.secondary,o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+re(n+"")+"px;color:"+re(r)+";font-weight:"+re(a+""),valueStyle:"font-size:"+re(o+"")+"px;color:"+re(i)+";font-weight:"+re(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var nI=[0,10,20,30],aI=["",` 10`,` 11 12`,` 13 14 15`];function na(e,t){return t.type=e,t}function ch(e){return e.type==="section"}function kb(e){return ch(e)?iI:oI}function Eb(e){if(ch(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return I(e.blocks,function(a){var i=Eb(a);i>=t&&(t=i+ +(n&&(!i||ch(a)&&!a.noHeader)))}),t}return 0}function iI(e,t,r,n){var a=t.noHeader,i=sI(Eb(t)),o=[],s=t.blocks||[];Ae(!s||N(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Fe(u,l)){var f=new H2(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}I(s,function(p,g){var m=t.valueFormatter,y=kb(p)(m?O(O({},e),{valueFormatter:m}):e,p,g>0?i.html:0,n);y!=null&&o.push(y)});var c=e.renderMode==="richText"?o.join(i.richText):hh(n,o.join(""),a?r:i.html);if(a)return c;var h=sh(t.header,"ordinal",e.useUTC),v=Pb(n,e.renderMode).nameStyle,d=Lb(n);return e.renderMode==="richText"?Rb(e,h,v)+i.richText+c:hh(n,'<div style="'+v+";"+d+';">'+re(h)+"</div>"+c,r)}function oI(e,t,r,n){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(b){return b=N(b)?b:[b],F(b,function(x,S){return sh(x,N(v)?v[S]:v,u)})};if(!(i&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||V.color.secondary,a),h=i?"":sh(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!i,g=!s&&i,m=Pb(n,a),y=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":c)+(i?"":Rb(e,h,y))+(o?"":fI(e,d,p,g,_)):hh(n,(s?"":c)+(i?"":lI(h,!s,y))+(o?"":uI(d,p,g,_)),r)}}function nm(e,t,r,n,a,i){if(e){var o=kb(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function sI(e){return{html:nI[e],richText:aI[e]}}function hh(e,t,r){var n='<div style="clear:both"></div>',a="margin: "+r+"px 0 0",i=Lb(e);return'<div style="'+a+";"+i+';">'+t+n+"</div>"}function lI(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+re(e)+"</span>"}function uI(e,t,r,n){var a=r?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=N(e)?e:[e],'<span style="'+i+";"+n+'">'+F(e,function(o){return re(o)}).join(" ")+"</span>"}function Rb(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function fI(e,t,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(N(t)?t.join(" "):t,i)}function cI(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return ra(n)}function Ob(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Cf=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=t1()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var a=n==="richText"?this._generateStyleName():null,i=YA({color:r,type:t,renderMode:n,markerId:a});return $(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};N(r)?I(r,function(i){return O(n,i)}):O(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e})();function hI(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(r),l=N(s),u=cI(t,r),f,c,h,v;if(o>1||l&&!o){var d=vI(s,t,r,i,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=f=Qa(a,r,i[0]),c=p.type}else v=f=l?s[0]:s;var g=Mv(t),m=g&&t.name||"",y=a.getName(r),_=n?m:y;
15return na("section",{header:m,noHeader:n||!g,sortParam:v,blocks:[na("nameValue",{markerType:"item",markerColor:u,name:_,noName:!rr(_),value:f,valueType:c,dataIndex:r})].concat(h||[])})}function vI(e,t,r,n,a){var i=t.getData(),o=ni(e,function(c,h,v){var d=i.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?I(n,function(c){f(Qa(i,r,c),c)}):I(e,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(na("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Or=St();function ds(e,t){return e.getName(t)||e.getId(t)}var js="__universalTransitionEnabled",cr=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Ki({count:pI,reset:gI}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=Or(this).sourceManager=new eI(this);i.prepareSource();var o=this.getInitialData(r,a);im(o,this),this.dataTask.context.data=o,Or(this).dataBeforeProcessed=o,am(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=vo(this),i=a?Fo(r):{},o=this.subType;yt.hasClass(o)&&(o+="Series"),ht(r,n.getTheme().get(this.subType)),ht(r,this.getDefaultOption()),$c(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&on(r,i,a)},t.prototype.mergeOption=function(r,n){r=ht(this.option,r,!0),this.fillDataTextStyle(r.data);var a=vo(this);a&&on(this.option,r,a);var i=Or(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);im(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Or(this).dataBeforeProcessed=o,am(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!he(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&$c(r[a],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=vh(this);if(n){var a=n.context.data;return r==null||!a.getLinkedData?a:a.getLinkedData(r)}else return Or(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=vh(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}Or(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return q(r)},t.prototype.getSourceManager=function(){return Or(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Or(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.indicesOfNearest=function(r,n,a,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(a);i==null&&(i=1/0);var f=[],c=1/0,h=-1,v=0;return o.each(n,function(d,p){var g=l.dataToCoord(d),m=u-g,y=Math.abs(m);y<=i&&((y<c||y===c&&m>=0&&h<0)&&(c=y,h=m,v=0),m===h&&(f[v++]=p))}),f.length=v,f},t.prototype.formatTooltip=function(r,n,a){return hI({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(at.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=od.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=ds(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=mt(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[ds(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[js])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){K(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=ds(r,c);u[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var v=n[l-1],h=ds(r,v);o.selectedMap=(a={},a[h]=!0,a),this._selectedDataIndicesMap=(i={},i[h]=r.getRawIndex(v),i)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return yt.registerClass(r)},t.protoInitialize=(function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),t})(yt);We(cr,fd);We(cr,od);l1(cr,yt);function am(e){var t=e.name;Mv(e)||(e.name=dI(e)||t)}function dI(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return I(r,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function pI(e){return e.model.getRawData().count()}function gI(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),mI}function mI(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function im(e,t){I(bT(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,ot(yI,t))})}function yI(e,t){var r=vh(e);return r&&r.setOutputEnd((t||this).count()),t}function vh(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(e.uid))}return n}}var de=(function(){function e(){this.group=new Lt,this.uid=No("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){},e.prototype.updateLayout=function(t,r,n,a){},e.prototype.updateVisual=function(t,r,n,a){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e})();Av(de);Jl(de);function hd(){var e=St();return function(t){var r=e(t),n=t.pipelineContext,a=!!r.large,i=!!r.progressiveRen
15der,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Bb=St(),_I=hd(),Ve=(function(){function e(){this.group=new Lt,this.uid=No("viewChart"),this.renderTask=Ki({plan:bI,reset:SI}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.highlight=function(t,r,n,a){var i=t.getData(a&&a.dataType);i&&sm(i,a,"emphasis")},e.prototype.downplay=function(t,r,n,a){var i=t.getData(a&&a.dataType);i&&sm(i,a,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateLayout=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateVisual=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.eachRendered=function(t){Oo(this.group,t)},e.markUpdateMethod=function(t,r){Bb(t).updateMethod=r},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function om(e,t,r){e&&eh(e)&&(t==="emphasis"?ta:ea)(e,r)}function sm(e,t,r){var n=Jn(e,t),a=t&&t.highlightKey!=null?ID(t.highlightKey):null;n!=null?I(Bt(n),function(i){om(e.getItemGraphicEl(i),r,a)}):e.eachItemGraphicEl(function(i){om(i,r,a)})}Av(Ve);Jl(Ve);function bI(e){return _I(e.model)}function SI(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&Bb(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,a),xI[l]}var xI={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Tl="\0__throttleOriginMethod",lm="\0__throttleRate",um="\0__throttleType";function yu(e,t,r){var n,a=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,e.apply(l,u||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),l=this,u=v;var p=f||t,g=f||r;f=null,s=n-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function vd(e,t,r,n){var a=e[t];if(a){var i=a[Tl]||a,o=a[um],s=a[lm];if(s!==r||o!==n){if(r==null||!n)return e[t]=i;a=e[t]=yu(i,r,n==="debounce"),a[Tl]=i,a[um]=n,a[lm]=r}return a}}function dh(e,t){var r=e[t];r&&r[Tl]&&(r.clear&&r.clear(),e[t]=r[Tl])}var fm=St(),cm={itemStyle:so(j1,!0),lineStyle:so(K1,!0)},wI={lineStyle:"stroke",itemStyle:"fill"};function Nb(e,t){var r=e.visualStyleMapper||cm[t];return r||cm.itemStyle}function Fb(e,t){var r=e.visualDrawType||wI[t];return r||"fill"}var TI={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),i=Nb(e,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Fb(e,n),u=o[l],f=Z(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Z(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||Z(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=e.getDataParams(d),g=O({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},yi=new At,CI={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=Nb(e,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){yi.option=l[n];var u=a(yi),f=o.ensureUniqueItemVisual(s,"style");O(f,u),yi.option.decal&&(o.setItemVisual(s,"decal",yi.option.decal),yi.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},MI={performRawSeries:!0,overallReset:function(e){var t=q();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),fm(r).scope=i}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=fm(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Fb(r,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],c=i.getItemVisual(f,"colorFromPalette");
15if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=r.getColorFromPalette(v,o,d)}})}})}},ps=Math.PI;function DI(e,t){t=t||{},it(t,{text:"loading",textColor:V.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:V.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Lt,n=new Ct({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var a=new Ut({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Ct({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(i);var o;return t.showSpinner&&(o=new lu({shape:{startAngle:-ps/2,endAngle:-ps/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:ps*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ps*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var zb=(function(){function e(t,r,n,a){this._stageTaskMap=q(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=q();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;I(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";Ae(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},e.prototype.prepareView=function(t,r,n,a){var i=t.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(r,i)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,a){a=a||{};var i=!1,o=this;I(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else c&&c.each(function(g,m){s(a,g)&&g.dirty();var y=o.getPerformArgs(g,a.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(i=!0)})}});
15function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=q(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||Ki({plan:kI,reset:EI,count:OI}));v.context={model:c,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,v)}},e.prototype._createOverallStageTask=function(t,r,n,a){var i=this,o=r.overallTask=r.overallTask||Ki({reset:AI});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=q(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";Ae(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):(c=!1,I(n.getSeries(),d));function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,Ki({reset:II,onDirty:PI})));m.context={model:p,overallProgress:c},m.agent=o,m.__block=c,i._pipe(p,m)}h&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},e.wrapStageHandler=function(t,r){return Z(t)&&(t={overallReset:t,seriesType:BI(t)}),t.uid=No("stageHandler"),r&&(t.visualType=r),t},e})();function AI(e){e.overallReset(e.ecModel,e.api,e.payload)}function II(e){return e.overallProgress&&LI}function LI(){this.agent.dirty(),this.getDownstream().dirty()}function PI(){this.agent&&this.agent.dirty()}function kI(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function EI(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Bt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?F(t,function(r,n){return Vb(n)}):RI}var RI=Vb(0);function Vb(e){return function(t,r){var n=r.data,a=r.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function OI(e){return e.data.count()}function BI(e){Cl=null;try{e(go,Gb)}catch{}return Cl}var go={},Gb={},Cl;Hb(go,sd);Hb(Gb,mb);go.eachSeriesByType=go.eachRawSeriesByType=function(e){Cl=e};go.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Cl=e.subType)};function Hb(e,t){for(var r in t.prototype)e[r]=Qt}
15var W=V.darkColor,NI=W.background,_i=function(){return{axisLine:{lineStyle:{color:W.axisLine}},splitLine:{lineStyle:{color:W.axisSplitLine}},splitArea:{areaStyle:{color:[W.backgroundTint,W.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:W.axisMinorSplitLine}},axisLabel:{color:W.axisLabel},axisName:{}}},hm={label:{color:W.secondary},itemStyle:{borderColor:W.borderTint},dividerLineStyle:{color:W.border}},Wb={darkMode:!0,color:W.theme,backgroundColor:NI,axisPointer:{lineStyle:{color:W.border},crossStyle:{color:W.borderShade},label:{color:W.tertiary}},legend:{textStyle:{color:W.secondary},pageTextStyle:{color:W.tertiary}},textStyle:{color:W.secondary},title:{textStyle:{color:W.primary},subtextStyle:{color:W.quaternary}},toolbox:{iconStyle:{borderColor:W.accent50}},tooltip:{backgroundColor:W.neutral20,defaultBorderColor:W.border,textStyle:{color:W.tertiary}},dataZoom:{borderColor:W.accent10,textStyle:{color:W.tertiary},brushStyle:{color:W.backgroundTint},handleStyle:{color:W.neutral00,borderColor:W.accent20},moveHandleStyle:{color:W.accent40},emphasis:{handleStyle:{borderColor:W.accent50}},dataBackground:{lineStyle:{color:W.accent30},areaStyle:{color:W.accent20}},selectedDataBackground:{lineStyle:{color:W.accent50},areaStyle:{color:W.accent30}}},visualMap:{textStyle:{color:W.secondary},handleStyle:{borderColor:W.neutral30}},timeline:{lineStyle:{color:W.accent10},label:{color:W.tertiary},controlStyle:{color:W.accent30,borderColor:W.accent30}},calendar:{itemStyle:{color:W.neutral00,borderColor:W.neutral20},dayLabel:{color:W.tertiary},monthLabel:{color:W.secondary},yearLabel:{color:W.secondary}},matrix:{x:hm,y:hm,backgroundColor:{borderColor:W.axisLine},body:{itemStyle:{borderColor:W.borderTint}}},timeAxis:_i(),logAxis:_i(),valueAxis:_i(),categoryAxis:_i(),line:{symbol:"circle"},graph:{color:W.theme},gauge:{title:{color:W.secondary},axisLine:{lineStyle:{color:[[1,W.neutral05]]}},axisLabel:{color:W.axisLabel},detail:{color:W.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:W.background}},radar:(function(){var e=_i();return e.axisName={color:W.axisLabel},e.axisLine.lineStyle.color=W.neutral20,e})(),treemap:{breadcrumb:{itemStyle:{color:W.neutral20,textStyle:{color:W.secondary}},emphasis:{itemStyle:{color:W.neutral30}}}},sunburst:{itemStyle:{borderColor:W.background}},map:{itemStyle:{borderColor:W.border,areaColor:W.neutral10},label:{color:W.tertiary},emphasis:{label:{color:W.primary},itemStyle:{areaColor:W.highlight}},select:{label:{color:W.primary},itemStyle:{areaColor:W.highlight}}},geo:{itemStyle:{borderColor:W.border,areaColor:W.neutral10},emphasis:{label:{color:W.primary},itemStyle:{areaColor:W.highlight}},select:{label:{color:W.primary},itemStyle:{color:W.highlight}}}};Wb.categoryAxis.splitLine.show=!1;var FI=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},a={};if($(t)){var i=ir(t);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};I(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(r.mainType=d,r[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,a,i));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),ph=["symbol","symbolSize","symbolRotate","symbolOffset"],vm=ph.concat(["symbolKeepAspect"]),zI={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<ph.length;o++){var s=ph[o],l=e.get(s);Z(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(O({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=mt(a);function f(c,h){for(var v=e.getRawValue(h),d=e.getDataParams(h),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(h,g,a[g](v,d))}}return{dataEach:i?f:null}}},VI={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<vm.length;s++){var l=vm[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function GI(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function dd(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function Sa(e,t,r,n,a){var i=e+t;r.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=Jn(c,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:N(h)?c.getName(h[0]):c.getName(h),selected:$(l)?l:O({},l)})}})}function HI(e,t,r){e.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(Sa("map","selectchanged",t,a,n),Sa("pie","selectchanged",t,a,n)):n.fromAction==="select"?(Sa("map","selected",t,a,n),Sa("pie","selected",t,a,n)):n.fromAction==="unselect"&&(Sa("map","unselected",t,a,n),Sa("pie","unselected",t,a,n))})}function Ni(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var WI=Math.round(Math.random()*9),UI=typeof Object.defineProperty=="function",$I=(function(){function e(){this._id="__ec_inner_"+WI++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return UI?Object.defineProperty(n,this._id,{value:r,enumerable:!1,
15configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e})(),YI=vt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n+i),e.lineTo(r-a,n+i),e.closePath()}}),XI=vt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n),e.lineTo(r,n+i),e.lineTo(r-a,n),e.closePath()}}),ZI=vt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),v=o*.6,d=o*.7;e.moveTo(r-f,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+f-c*v,l+s+h*v,r,n-d,r,n),e.bezierCurveTo(r,n-d,r-f+c*v,l+s+h*v,r-f,l+s),e.closePath()}}),qI=vt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;e.moveTo(a,i),e.lineTo(a+o,i+r),e.lineTo(a,i+r/4*3),e.lineTo(a-o,i+r),e.lineTo(a,i),e.closePath()}}),KI={line:Ir,rect:Ct,roundRect:Ct,square:Ct,circle:iu,diamond:XI,pin:ZI,arrow:qI,triangle:YI},jI={line:function(e,t,r,n,a){a.x1=e,a.y1=t+n/2,a.x2=e+r,a.y2=t+n/2},rect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n},roundRect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(e,t,r,n,a){var i=Math.min(r,n);a.x=e,a.y=t,a.width=i,a.height=i},circle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.r=Math.min(r,n)/2},diamond:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n},pin:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},arrow:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},triangle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n}},gh={};I(KI,function(e,t){gh[t]=new e});var QI=vt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=vl(e,t,r),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var a=gh[n];a||(n="rect",a=gh[n]),jI[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,r)}}});function JI(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||V.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function aa(e,t,r,n,a,i,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=G1(e.slice(8),new ut(t,r,n,a),o?"center":"cover"):e.indexOf("path://")===0?l=Gv(e.slice(7),{},new ut(t,r,n,a),o?"center":"cover"):l=new QI({shape:{symbolType:e,x:t,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=JI,i&&l.setColor(i),l}function pd(e){return N(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function _u(e,t){if(e!=null)return N(e)||(e=[e,e]),[Ft(e[0],t[0])||0,Ft(X(e[1],e[0]),t[1])||0]}function Un(e){return isFinite(e)}function tL(e,t,r){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,a=a*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),n=Un(n)?n:0,a=Un(a)?a:1,i=Un(i)?i:0,o=Un(o)?o:0;var s=e.createLinearGradient(n,i,a,o);return s}function eL(e,t,r){var n=r.width,a=r.height,i=Math.min(n,a),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*a+r.y,l=l*i),o=Un(o)?o:.5,s=Un(s)?s:.5,l=l>=0&&Un(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function dm(e,t,r){for(var n=t.type==="radial"?eL(e,t,r):tL(e,t,r),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function rL(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function gs(e){return parseInt(e,10)}function pm(e,t,r){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[a]||gs(s[n])||gs(e.style[n]))-(gs(s[i])||0)-(gs(s[o])||0)|0}function nL(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:xt(e)?[e]:N(e)?e:null}function gd(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&nL(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(r=F(r,function(i){return i/a}),n/=a)}return[r,n]}var aL=new Ar(!0);function Ml(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function gm(e){return typeof e=="string"&&e!=="none"}function Dl(e){var t=e.fill;return t!=null&&t!=="none"}function mm(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function ym(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function _m(e,t,r){var n=Iv(t.image,t.__image,r);if(tu(n)){var a=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Fs),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function iL(e,t,r,n){var a,i=Ml(r),o=Dl(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||aL,c=t.__dirty;if(!n){var h=r.fill,v=r.stroke,d=o&&!!h.colorStops,p=i&&!!v.colorStops,g=o&&!!h.image,m=i&&!!v.image,y=void 0,_=void 0,b=void 0,x=void 0,S=void 0;
15(d||p)&&(S=t.getBoundingRect()),d&&(y=c?dm(e,h,S):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(_=c?dm(e,v,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(b=c||!t.__canvasFillPattern?_m(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=b),m&&(x=c||!t.__canvasStrokePattern?_m(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),d?e.fillStyle=y:g&&(b?e.fillStyle=b:o=!1),p?e.strokeStyle=_:m&&(x?e.strokeStyle=x:i=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var C,M;e.setLineDash&&r.lineDash&&(a=gd(t),C=a[0],M=a[1]);var T=!0;(u||c&La)&&(f.setDPR(e.dpr),l?f.setContext(null):(f.setContext(e),T=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),T&&f.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=M),n||(r.strokeFirst?(i&&ym(e,r),o&&mm(e,r)):(o&&mm(e,r),i&&ym(e,r))),C&&e.setLineDash([])}function oL(e,t,r){var n=t.__image=Iv(r.image,t.__image,t,t.onload);if(!(!n||!tu(n))){var a=r.x||0,i=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;e.drawImage(n,u,f,r.sWidth,r.sHeight,a,i,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,h=s-f;e.drawImage(n,u,f,c,h,a,i,o,s)}else e.drawImage(n,a,i,o,s)}}function sL(e,t,r){var n,a=r.text;if(a!=null&&(a+=""),a){e.font=r.font||Dr,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=gd(t),i=n[0],o=n[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),r.strokeFirst?(Ml(r)&&e.strokeText(a,r.x,r.y),Dl(r)&&e.fillText(a,r.x,r.y)):(Dl(r)&&e.fillText(a,r.x,r.y),Ml(r)&&e.strokeText(a,r.x,r.y)),i&&e.setLineDash([])}}var bm=["shadowBlur","shadowOffsetX","shadowOffsetY"],Sm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Ub(e,t,r,n,a){var i=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){fe(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?qn.opacity:o}(n||t.blend!==r.blend)&&(i||(fe(e,a),i=!0),e.globalCompositeOperation=t.blend||qn.blend);for(var s=0;s<bm.length;s++){var l=bm[s];(n||t[l]!==r[l])&&(i||(fe(e,a),i=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(i||(fe(e,a),i=!0),e.shadowColor=t.shadowColor||qn.shadowColor),i}function xm(e,t,r,n,a){var i=mo(t,a.inHover),o=n?null:r&&mo(r,a.inHover)||{};if(i===o)return!1;var s=Ub(e,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(fe(e,a),s=!0),gm(i.fill)&&(e.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(fe(e,a),s=!0),gm(i.stroke)&&(e.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(fe(e,a),s=!0),e.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(fe(e,a),s=!0),e.lineWidth=u)}for(var f=0;f<Sm.length;f++){var c=Sm[f],h=c[0];(n||i[h]!==o[h])&&(s||(fe(e,a),s=!0),e[h]=i[h]||c[1])}return s}function lL(e,t,r,n,a){return Ub(e,mo(t,a.inHover),r&&mo(r,a.inHover),n,a)}function $b(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function uL(e,t,r){for(var n=!1,a=0;a<e.length;a++){var i=e[a];n=n||i.isZeroArea(),$b(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}r.allClipped=n}function fL(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var wm=1,Tm=2,Cm=3,Mm=4;function cL(e){var t=Dl(e),r=Ml(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function fe(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function mo(e,t){return t&&e.__hoverStyle||e.style}function hL(e,t){mh(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function mh(e,t,r,n){var a=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~tr,t.__isRendered=!1;return}var i=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||rL(i,o))&&(o&&o.length&&(fe(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(fe(e,r),e.save(),uL(i,e,r),s=!0),r.prevElClipPaths=i),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=t instanceof vt&&t.autoBatch&&cL(t.style);s||fL(a,u.transform)?(fe(e,r),$b(e,t)):f||fe(e,r);var c=mo(t,r.inHover);t instanceof vt?(r.lastDrawType!==wm&&(l=!0,r.lastDrawType=wm),xm(e,t,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),iL(e,t,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):t instanceof lo?(r.lastDrawType!==Cm&&(l=!0,r.lastDrawType=Cm),xm(e,t,u,l,r),sL(e,t,c)):t instanceof hr?(r.lastDrawType!==Tm&&(l=!0,r.lastDrawType=Tm),lL(e,t,u,l,r),oL(e,t,c)):t.getTemporalDisplayables&&(r.lastDrawType!==Mm&&(l=!0,r.lastDrawType=Mm),vL(e,t,r)),f&&n&&fe(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function vL(e,t,r){var n=t.getDisplayables(),a=t.getTemporalDisplayables();e.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),mh(e,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),mh(e,l,i,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}
15t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Mf=new $I,Dm=new qa(100),Am=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function yh(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";e.dirty&&Mf.delete(e);var i=Mf.get(e);if(i)return i;var o=it(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/r,Mf.set(e,s),e.dirty=!1,s;function l(u){for(var f=[r],c=!0,h=0;h<Am.length;++h){var v=o[Am[h]];if(v!=null&&!N(v)&&!$(v)&&!xt(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(a?"-svg":"");var p=Dm.get(d);p&&(a?u.svgElement=p:u.image=p)}var g=Xb(o.dashArrayX),m=dL(o.dashArrayY),y=Yb(o.symbol),_=pL(g),b=Zb(m),x=!a&&Jr.createCanvas(),S=a&&{tag:"g",attrs:{},key:"dcl",children:[]},w=M(),C;x&&(x.width=w.width*r,x.height=w.height*r,C=x.getContext("2d")),T(),c&&Dm.put(d,x||S),u.image=x,u.svgElement=S,u.svgWidth=w.width,u.svgHeight=w.height;function M(){for(var D=1,L=0,A=_.length;L<A;++L)D=Bp(D,_[L]);for(var P=1,L=0,A=y.length;L<A;++L)P=Bp(P,y[L].length);D*=P;var k=b*_.length*y.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function T(){C&&(C.clearRect(0,0,x.width,x.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,x.width,x.height)));for(var D=0,L=0;L<m.length;++L)D+=m[L];if(D<=0)return;for(var A=-b,P=0,k=0,E=0;A<w.height;){if(P%2===0){for(var B=k/2%y.length,R=0,z=0,G=0;R<w.width*2;){for(var H=0,L=0;L<g[E].length;++L)H+=g[E][L];if(H<=0)break;if(z%2===0){var U=(1-o.symbolSize)*.5,j=R+g[E][z]*U,st=A+m[P]*U,_t=g[E][z]*o.symbolSize,Vt=m[P]*o.symbolSize,ae=G/2%y[B].length;$t(j,st,_t,Vt,y[B][ae])}R+=g[E][z],++G,++z,z===g[E].length&&(z=0)}++E,E===g.length&&(E=0)}A+=m[P],++k,++P,P===m.length&&(P=0)}function $t(kt,It,J,dt,Le){var Nt=a?1:r,ui=aa(Le,kt*Nt,It*Nt,J*Nt,dt*Nt,o.color,o.symbolKeepAspect);if(a){var cn=n.painter.renderOneToVNode(ui);cn&&S.children.push(cn)}else hL(C,ui)}}}}function Yb(e){if(!e||e.length===0)return[["rect"]];if($(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!$(e[r])){t=!1;break}if(t)return Yb([e]);for(var n=[],r=0;r<e.length;++r)$(e[r])?n.push([e[r]]):n.push(e[r]);return n}function Xb(e){if(!e||e.length===0)return[[0,0]];if(xt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!xt(e[n])){r=!1;break}if(r)return Xb([e]);for(var a=[],n=0;n<e.length;++n)if(xt(e[n])){var t=Math.ceil(e[n]);a.push([t,t])}else{var t=F(e[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function dL(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(xt(e)){var t=Math.ceil(e);return[t,t]}var r=F(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function pL(e){return F(e,function(t){return Zb(t)})}function Zb(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function gL(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=yh(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=yh(a,t)}}})}var Re=new Ue,qb={};function mL(e,t){qb[e]=t}function yL(e){return qb[e]}var _L=1,bL=800,SL=900,xL=1e3,wL=2e3,TL=5e3,Kb=1e3,CL=1100,md=2e3,jb=3e3,ML=4e3,bu=4500,DL=4600,AL=5e3,IL=6e3,Qb=7e3,LL={PROCESSOR:{FILTER:xL,SERIES_FILTER:bL,STATISTIC:TL},VISUAL:{LAYOUT:Kb,PROGRESSIVE_LAYOUT:CL,GLOBAL:md,CHART:jb,POST_CHART_LAYOUT:DL,COMPONENT:ML,BRUSH:AL,CHART_ITEM:bu,ARIA:IL,DECAL:Qb}},Rt="__flagInMainProcess",ms="__mainProcessVersion",Gt="__pendingUpdate",Df="__needsUpdateStatus",Im=/^[a-zA-Z0-9_]+$/,Af="__connectUpdateStatus",Lm=0,PL=1,kL=2;function Jb(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return eS(this,e,t)}}function tS(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return eS(this,e,t)}}function eS(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Ue.prototype[t].apply(e,r)}var rS=(function(e){Y(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Ue),nS=rS.prototype;nS.on=tS("on");nS.off=tS("off");var Rn,If,ys,mr,_s,Lf,Pf,xa,wa,Pm,km,kf,Em,bs,Rm,aS,_e,Om,Ta,iS=(function(e){Y(t,e);function t(r,n,a){var i=e.call(this,new FI)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i._dom=r;var o="canvas",s="auto",l=!1;i[ms]=1,a.ssr&&WC(function(h){var v=ct(h),d=v.dataIndex;if(d!=null){var p=q();return p.set("series_index",v.seriesIndex),p.set("data_index",d),v.ssrType&&p.set("ssr_type",v.ssrType),p}});var u=i._zr=Rp(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:X(a.useDirtyRect,l),useCoarsePointer:X(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=yu(lt(u.flush,u),17),i._updateTheme(n),i._locale=EA(a.locale||Q1),i._coordSysMgr=new ad;var f=i._api=Rm(i);function c(h,v){return h.__prio-v.__prio}
15return zs(Il,c),zs(Sh,c),i._scheduler=new zb(i,f,Sh,Il),i._messageCenter=new rS,i._initEvents(),i.resize=lt(i.resize,i),u.animation.on("frame",i._onframe,i),Pm(u,i),km(u,i),yc(i),i}return t.prototype._onframe=function(){if(!this._disposed){Om(this);var r=this._scheduler;if(this[Gt]){var n=this[Gt].silent;this[Rt]=!0,Ta(this);try{Rn(this),mr.update.call(this,null,this[Gt].updateParams)}catch(l){throw this[Rt]=!1,this[Gt]=null,l}this._zr.flush(),this[Rt]=!1,this[Gt]=null,xa.call(this,n),wa.call(this,n)}else if(r.unfinished){var a=_L,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),Lf(this,i),r.performVisualTasks(i),bs(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,a){if(!this[Rt]){if(this._disposed){this.id;return}var i,o,s;if(K(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Rt]=!0,Ta(this),!this._model||n){var l=new b2(this._api),u=this._theme,f=this._model=new sd;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},xh);var c={seriesTransition:s,optionChanged:!0};if(a)this[Gt]={silent:i,updateParams:c},this[Rt]=!1,this.getZr().wakeUp();else{try{Rn(this),mr.update.call(this,null,c)}catch(h){throw this[Gt]=null,this[Rt]=!1,h}this._ssr||this._zr.flush(),this[Gt]=null,this[Rt]=!1,xa.call(this,i),wa.call(this,i)}}},t.prototype.setTheme=function(r,n){if(!this[Rt]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[Gt]&&(i==null&&(i=this[Gt].silent),o=this[Gt].updateParams,this[Gt]=null),this[Rt]=!0,Ta(this);try{this._updateTheme(r),a.setTheme(this._theme),Rn(this),mr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Rt]=!1,s}this[Rt]=!1,xa.call(this,i),wa.call(this,i)}}},t.prototype._updateTheme=function(r){$(r)&&(r=oS[r]),r&&(r=rt(r),r&&_b(r,!0),this._theme=r)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||at.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return I(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;I(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return I(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Bm[a]){var l=s,u=s,f=-s,c=-s,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();I(ji,function(_,b){if(_.group===a){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(rt(r)),S=_.getDom().getBoundingClientRect();l=i(S.left,l),u=i(S.top,u),f=o(S.right,f),c=o(S.bottom,c),h.push({dom:x,left:S.left,top:S.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,g=Jr.createCanvas(),m=Rp(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return I(h,function(_){var b=_.left-l,x=_.top-u;y+='<g transform="translate('+b+","+x+')">'+_.dom+"</g>"}
15),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Ct({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),I(h,function(_){var b=new hr({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(b)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n,a){return _s(this,"convertToPixel",r,n,a)},t.prototype.convertToLayout=function(r,n,a){return _s(this,"convertToLayout",r,n,a)},t.prototype.convertFromPixel=function(r,n,a){return _s(this,"convertFromPixel",r,n,a)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var a=this._model,i,o=$i(a,r);return I(o,function(s,l){l.indexOf("Models")>=0&&I(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(r,n){var a=this._model,i=$i(a,r,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?GI(s,l,n):dd(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;I(EL,function(a){var i=function(o){var s=r.getModel(),l=o.target,u,f=a==="globalout";if(f?u={}:l&&Ni(l,function(p){var g=ct(p);if(g&&g.dataIndex!=null){var m=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=m&&m.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=O({},g.eventData),!0},!0),u){var c=u.componentType,h=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=u.seriesIndex);var v=c&&h!=null&&s.getComponent(c,h),d=v&&r[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=o,u.type=a,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},r.trigger(a,u)}};i.zrEventfulCallAtLast=!0,r._zr.on(a,i,r)});var n=this._messageCenter;I(bh,function(a,i){n.on(i,function(o){r.trigger(i,o)})}),HI(n,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&o1(this.getDom(),_d,"");var n=this,a=n._api,i=n._model;I(n._componentsViews,function(o){o.dispose(i,a)}),I(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete ji[n.id]},t.prototype.resize=function(r){if(!this[Rt]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[Gt]&&(i==null&&(i=this[Gt].silent),a=!0,this[Gt]=null),this[Rt]=!0,Ta(this);try{a&&Rn(this),mr.update.call(this,{type:"resize",animation:O({duration:0},r&&r.animation)})}catch(o){throw this[Rt]=!1,o}this[Rt]=!1,xa.call(this,i),wa.call(this,i)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(K(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!wh[r]){var a=wh[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=O({},r);return n.type=_h[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(K(n)||(n={silent:!!n}
15),!!Al[r.type]&&this._model){if(this[Rt]){this._pendingActions.push(r);return}var a=n.silent;Pf.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&at.browser.weChat&&this._throttledZrFlush(),xa.call(this,a),wa.call(this,a)}},t.prototype.updateLabelLayout=function(){Re.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){Rn=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),If(c,!0),If(c,!1),h.plan()},If=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_<p.length;_++)p[_].__alive=!1;h?v.eachComponent(function(S,w){S!=="series"&&b(w)}):v.eachSeries(b);function b(S){var w=S.__requireNewView;S.__requireNewView=!1;var C="_ec_"+S.id+"_"+S.type,M=!w&&g[C];if(!M){var T=ir(S.type),D=h?de.getClass(T.main,T.sub):Ve.getClass(T.sub);M=new D,M.init(v,y),g[C]=M,p.push(M),m.add(M.group)}S.__viewId=M.__id=C,M.__alive=!0,M.__model=S,M.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!h&&d.prepareView(M,S,v,y)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!h&&x.renderTask.dispose(),m.remove(x.group),x.dispose(v,y),p.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},ys=function(c,h,v,d,p){var g=c._model;if(g.setUpdatePayload(v),!d){I([].concat(c._componentsViews).concat(c._chartsViews),x);return}var m={};m[d+"Id"]=v[d+"Id"],m[d+"Index"]=v[d+"Index"],m[d+"Name"]=v[d+"Name"];var y={mainType:d,query:m};p&&(y.subType=p);var _=v.excludeSeriesId,b;_!=null&&(b=q(),I(Bt(_),function(S){var w=ur(S,null);w!=null&&b.set(w,!0)})),g&&g.eachComponent(y,function(S){var w=b&&b.get(S.id)!=null;if(!w)if(vg(v))if(S instanceof cr)v.type===Kn&&!v.notBlur&&!S.get(["emphasis","disabled"])&&SD(S,v,c._api);else{var C=Bv(S.mainType,S.componentIndex,v.name,c._api),M=C.focusSelf,T=C.dispatchers;v.type===Kn&&M&&!v.notBlur&&Qc(S.mainType,S.componentIndex,c._api),T&&I(T,function(D){v.type===Kn?ta(D):ea(D)})}else rh(v)&&S instanceof cr&&(TD(S,v,c._api),cg(S),_e(c))},c),g&&g.eachComponent(y,function(S){var w=b&&b.get(S.id)!=null;w||x(c[d==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function x(S){S&&S.__alive&&S[h]&&S[h](S.__model,g,c._api,v)}},mr={prepareAndUpdate:function(c){Rn(this),mr.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(v){v.setUpdatePayload(c),m.restoreData(v,c),m.performSeriesTasks(v),g.create(v,d),m.performDataProcessorTasks(v,c),Lf(this,v),g.update(v,d),n(v),m.performVisualTasks(v,c);var y=v.get("backgroundColor")||"transparent";p.setBackgroundColor(y);var _=v.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),kf(this,v,d,c,h),Re.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(c);var p=[];v.eachComponent(function(m,y){if(m!=="series"){var _=h.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,v,d,c);b&&b.update&&p.push(_)}else p.push(_)}});var g=q();v.eachSeries(function(m){var y=h._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,v,d,c);_&&_.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),n(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:g}),bs(this,v,d,c,{},g),Re.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),Ve.markUpdateMethod(c,"updateView"),n(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),kf(this,h,this._api,c,{}),Re.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,v=this._model;v&&(v.setUpdatePayload(c),v.eachSeries(function(d){d.getData().clearAllVisual()}),Ve.markUpdateMethod(c,"updateVisual"),n(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}
15),v.eachComponent(function(d,p){if(d!=="series"){var g=h.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,h._api,c)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,c)}),Re.trigger("afterupdate",v,this._api))},updateLayout:function(c){mr.update.call(this,c)}};function r(c,h,v,d,p){if(c._disposed){c.id;return}for(var g=c._model,m=c._coordSysMgr.getCoordinateSystems(),y,_=$i(g,v),b=0;b<m.length;b++){var x=m[b];if(x[h]&&(y=x[h](g,_,d,p))!=null)return y}}_s=r,Lf=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},Pf=function(c,h){var v=this,d=this.getModel(),p=c.type,g=c.escapeConnect,m=Al[p],y=(m.update||"update").split(":"),_=y.pop(),b=y[0]!=null&&ir(y[0]);this[Rt]=!0,Ta(this);var x=[c],S=!1;c.batch&&(S=!0,x=F(c.batch,function(E){return E=it(O({},E),c),E.batch=null,E}));var w=[],C,M=[],T=m.nonRefinedEventType,D=rh(c),L=vg(c);if(L&&D1(this._api),I(x,function(E){var B=m.action(E,d,v._api);if(m.refineEvent?M.push(B):C=B,C=C||O({},E),C.type=T,w.push(C),L){var R=Dv(c),z=R.queryOptionMap,G=R.mainTypeSpecified,H=G?z.keys()[0]:"series";ys(v,_,E,H),_e(v)}else D?(ys(v,_,E,"series"),_e(v)):b&&ys(v,_,E,b.main,b.sub)}),_!=="none"&&!L&&!D&&!b)try{this[Gt]?(Rn(this),mr.update.call(this,c),this[Gt]=null):mr[_].call(this,c)}catch(E){throw this[Rt]=!1,E}if(S?C={type:T,escapeConnect:g,batch:w}:C=w[0],this[Rt]=!1,!h){var A=void 0;if(m.refineEvent){var P=m.refineEvent(M,c,d,this._api).eventContent;Ae(K(P)),A=it({type:m.refinedEventType},P),A.fromAction=c.type,A.fromActionPayload=c,A.escapeConnect=!0}var k=this._messageCenter;k.trigger(C.type,C),A&&k.trigger(A.type,A)}},xa=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();Pf.call(this,v,c)}},wa=function(c){!c&&this.trigger("updated")},Pm=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[Gt]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},km=function(c,h){c.on("mouseover",function(v){var d=v.target,p=Ni(d,eh);p&&(xD(p,v,h._api),_e(h))}).on("mouseout",function(v){var d=v.target,p=Ni(d,eh);p&&(wD(p,v,h._api),_e(h))}).on("click",function(v){var d=v.target,p=Ni(d,function(y){return ct(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=ct(p);h._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function a(c){var h=[],v=[],d=!1;if(c.eachComponent(function(y,_){var b=_.get("zlevel")||0,x=_.get("z")||0,S=_.getZLevelKey();d=d||!!S,(y==="series"?v:h).push({zlevel:b,z:x,idx:_.componentIndex,type:y,key:S})}),d){var p=h.concat(v),g,m;zs(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),I(p,function(y){var _=c.getComponent(y.type,y.idx),b=y.zlevel,x=y.key;g!=null&&(b=Math.max(g,b)),x?(b===g&&x!==m&&b++,m=x):m&&(b===g&&b++,m=""),g=b,_.setZLevel(b)})}}kf=function(c,h,v,d,p){a(h),Em(c,h,v,d,p),I(c._chartsViews,function(g){g.__alive=!1}),bs(c,h,v,d,p),I(c._chartsViews,function(g){g.__alive||g.remove(h,v)})},Em=function(c,h,v,d,p,g){I(g||c._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,h,v,d),l(y,m),f(y,m)})},bs=function(c,h,v,d,p,g){var m=c._scheduler;p=O(p||{},{updatedSeries:h.getSeries()}),Re.trigger("series:beforeupdate",h,v,p);var y=!1;h.eachSeries(function(_){var b=c._chartsMap[_.__viewId];b.__alive=!0;var x=b.renderTask;m.updatePayload(x,d),u(_,b),g&&g.get(_.uid)&&x.dirty(),x.perform(m.getPerformArgs(x))&&(y=!0),b.group.silent=!!_.get("silent"),s(_,b),cg(_)}),m.unfinished=y||m.unfinished,Re.trigger("series:layoutlabels",h,v,p),Re.trigger("series:transition",h,v,p),h.eachSeries(function(_){var b=c._chartsMap[_.__viewId];l(_,b),f(_,b)}),o(c,h),Re.trigger("series:afterupdate",h,v,p)},_e=function(c){c[Df]=!0,c.getZr().wakeUp()},Ta=function(c){c[ms]=(c[ms]+1)%1e3},Om=function(c){c[Df]&&(c.getZr().storage.traverse(function(h){Xi(h)||i(h)}),c[Df]=!1)};function i(c){for(var h=[],v=c.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===nu&&c.states.emphasis?h.push("emphasis"):c.hoverState===ru&&c.states.blur&&h.push("blur"),c.useStates(h)}function o(c,h){var v=c._zr,d=v.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!at.node&&!at.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=c._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function l(c,h){if(!c.preventAutoZ){var v=ja(c);h.eachRendered(function(d){return Yv(d,v.z,v.zlevel),!0})}}function u(c,h){h.eachRendered(function(v){if(!Xi(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Xi(m))return;if(m instanceof vt&&LD(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),b=m.getTextGuideLine();_&&(_.stateTransition=g),b&&(b.stateTransition=g)}m.__dirty&&i(m)}})}Rm=function(c){return new((function(h){Y(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){ta(d,p),_e(c)},v.prototype.leaveEmphasis=function(d,p){ea(d,p),_e(c)},v.prototype.enterBlur=function(d){w1(d),_e(c)},v.prototype.leaveBlur=function(d){Ov(d),_e(c)},v.prototype.enterSelect=function(d){T1(d),_e(c)},v.prototype.leaveSelect=function(d){C1(d),_e(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(
15d)},v.prototype.getMainProcessVersion=function(){return c[ms]},v})(mb))(c)},aS=function(c){function h(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[Af]=d}}I(_h,function(v,d){c._messageCenter.on(d,function(p){if(Bm[c.group]&&c[Af]!==Lm){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),m=[];I(ji,function(y){y!==c&&y.group===c.group&&m.push(y)}),h(m,Lm),I(m,function(y){y[Af]!==PL&&y.dispatchAction(g)}),h(m,kL)}})})}})(),t})(Ue),yd=iS.prototype;yd.on=Jb("on");yd.off=Jb("off");yd.one=function(e,t,r){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),n.off(e,a)}this.on.call(this,e,a,r)};var EL=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Al={},_h={},bh={},Sh=[],xh=[],Il=[],oS={},wh={},ji={},Bm={},RL=+new Date-0,_d="_echarts_instance_";function OL(e,t,r){var n=!(r&&r.ssr);if(n){var a=BL(e);if(a)return a}var i=new iS(e,t,r);return i.id="ec_"+RL++,ji[i.id]=i,n&&o1(e,_d,i.id),aS(i),Re.trigger("afterinit",i),i}function BL(e){return ji[cM(e,_d)]}function sS(e,t){oS[e]=t}function lS(e){ft(xh,e)<0&&xh.push(e)}function uS(e,t){Sd(Sh,e,t,wL)}function NL(e){bd("afterinit",e)}function FL(e){bd("afterupdate",e)}function bd(e,t){Re.on(e,t)}function dr(e,t,r){var n,a,i,o,s;Z(t)&&(r=t,t=""),K(e)?(n=e.type,a=e.event,o=e.update,s=e.publishNonRefinedEvent,r||(r=e.action),i=e.refineEvent):(n=e,a=t);function l(f){return f.toLowerCase()}a=l(a||n);var u=i?l(n):a;Al[n]||(Ae(Im.test(n)&&Im.test(a)),i&&Ae(a!==n),Al[n]={actionType:n,refinedEventType:a,nonRefinedEventType:u,update:o,action:r,refineEvent:i},bh[a]=1,i&&s&&(bh[u]=1),_h[u]=n)}function zL(e,t){ad.register(e,t)}function VL(e,t){Sd(Il,e,t,Kb,"layout")}function ua(e,t){Sd(Il,e,t,jb,"visual")}var Nm=[];function Sd(e,t,r,n,a){if((Z(t)||K(t))&&(r=t,t=n),!(ft(Nm,r)>=0)){Nm.push(r);var i=zb.wrapStageHandler(r,a);i.__prio=t,i.__raw=r,e.push(i)}}function fS(e,t){wh[e]=t}function GL(e,t,r){var n=yL("registerMap");n&&n(e,t,r)}var HL=q2;ua(md,TI);ua(bu,CI);ua(bu,MI);ua(md,zI);ua(bu,VI);ua(Qb,gL);lS(_b);uS(SL,k2);fS("default",DI);dr({type:Kn,event:Kn,update:Kn},Qt);dr({type:$s,event:$s,update:$s},Qt);dr({type:ml,event:Ev,update:ml,action:Qt,refineEvent:xd,publishNonRefinedEvent:!0});dr({type:Kc,event:Ev,update:Kc,action:Qt,refineEvent:xd,publishNonRefinedEvent:!0});dr({type:yl,event:Ev,update:yl,action:Qt,refineEvent:xd,publishNonRefinedEvent:!0});function xd(e,t,r,n){return{eventContent:{selected:CD(r),isFromClick:t.isFromClick||!1}}}sS("default",{});sS("dark",Wb);function bi(e){return e==null?0:e.length||1}function Fm(e){return e}var yo=(function(){function e(t,r,n,a,i,o){this._old=t,this._new=r,this._oldKeyGetter=n||Fm,this._newKeyGetter=a||Fm,this.context=i,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},a=new Array(t.length),i=new Array(r.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=n[s],u=bi(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],c=bi(u),h=bi(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(c>1)for(var v=0;v<c;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var a=t[n],i=r[a],o=bi(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);r[a]=null}},e.prototype._initIndexMap=function(t,r,n,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(n[o]=s),!!r){var l=r[s],u=bi(l);
15u===0?(r[s]=o,i&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e})(),WL=(function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e})();function UL(e,t){var r={},n=r.encode={},a=q(),i=[],o=[],s={};I(e.dimensions,function(h){var v=e.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;Ef(n,d)[p]=h,v.isExtraCoord||(a.set(d,1),YL(v.type)&&(i[0]=h),Ef(s,d)[p]=e.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}hb.each(function(g,m){var y=Ef(n,m),_=v.otherDims[m];_!=null&&_!==!1&&(y[_]=v.name)})});var l=[],u={};a.each(function(h,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=F(l,function(h){return e.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(i=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new WL(s,t),r}function Ef(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function $L(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function YL(e){return!(e==="ordinal"||e==="time")}var Qs=(function(){function e(t){this.otherDims={},t!=null&&O(this,t)}return e})(),XL=St(),ZL={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},cS=(function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=dS(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return X(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=xb(this.source),n=!pS(t),a="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=r?h.name:null,u=h.type)}i.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=ZL[u]||"f",f&&(a+=f.uid),a+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:i,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}t.push(a)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})();function hS(e){return e instanceof cS}function vS(e){for(var t=q(),r=0;r<(e||[]).length;r++){var n=e[r],a=K(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,r)}return t}function dS(e){var t=XL(e);return t.dimNameMap||(t.dimNameMap=vS(e.dimensionsDefine))}function pS(e){return e>30}var Si=K,Br=F,qL=typeof Int32Array>"u"?Array:Int32Array,KL="e\0\0",zm=-1,jL=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],QL=["_approximateExtent"],Vm,Ss,xi,wi,Rf,Ti,Of,Qi=(function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;hS(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],h=$(c)?new Qs({name:c}
15):c instanceof Qs?c:new Qs(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),i[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]);var p=f;xt(h.storeDimIndex)&&(p=h.storeDimIndex),d.itemName===0&&(this._nameDimIdx=p),d.itemId===0&&(this._idDimIdx=p),a&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=q();I(o,function(m){g.set(i[m].storeDimIndex,m)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var a=this._schema.getSourceDimension(r);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(xt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var a=this,i;if(t instanceof fh&&(i=t),!i){var o=this.dimensions,s=ld(t)||ce(t)?new wb(t,o.length):t;i=new fh;var l=Br(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=UL(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r&&r.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=r[l],o&&Of(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==jr&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===ye;if(l&&!a.pure)for(var u=[],f=t;f<r;f++){var c=a.getItem(f,u);if(!this.hasItemOption&&QC(c)&&(this.hasItemOption=!0),c){var h=c.name;i[f]==null&&h!=null&&(i[f]=ur(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=ur(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)Of(this,f);Vm(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Si(t)?O(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=xi(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},e.prototype.getId=function(t){return Ss(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,a=this._store;return N(t)?a.getValues(Br(t,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],a=n&&n[r];return a==null||isNaN(a)?zm:a},e.prototype.each=function(t,r,n){Z(t)&&(n=r,r=t,t=[]);var a=n||this,i=Br(wi(t),this._getStoreDimIndex,this);this._store.each(i,a?lt(r,a):r)},e.prototype.filterSelf=function(t,r,n){Z(t)&&(n=r,r=t,t=[]);var a=n||this,i=Br(wi(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?lt(r,a):r),this},e.prototype.selectRange=function(t){var r=this,n={},a=mt(t);return I(a,function(i){var o=r._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){Z(t)&&(n=r,r=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(r&&r.apply(this,arguments))},n),a},e.prototype.map=function(t,r,n,a){var i=n||a||this,o=Br(wi(t),this._getStoreDimIndex,this),s=Ti(this);return s._store=this._store.map(o,i?lt(r,i):r),s},e.prototype.modify=function(t,r,n,a){var i=n||a||this,o=Br(wi(t),this._getStoreDimIndex,this);this._store.modify(o,i?lt(r,i):r)},e.prototype.downSample=function(t,r,n,a){var i=Ti(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),r,n,a),i},e.prototype.minmaxDownSample=function(t,r){var n=Ti(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),n},e.prototype.lttbDownSample=function(t,r){var n=Ti(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new At(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;
15return new yo(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Ss(t,n)},function(n){return Ss(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Si(t)?O(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],a=n&&n[r];return a??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[r];return i==null&&(i=this.getVisual(r),N(i)?i=i.slice():Si(i)&&(i=O({},i)),a[r]=i),i},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Si(r)?O(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Si(t)?O(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?O(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;cD(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){I(this._graphicEls,function(n,a){n&&t&&t.call(r,n,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Br(this.dimensions,this._getDimInfo,this),this.hostModel)),Rf(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Z(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(pv(arguments)))})},e.internalField=(function(){Vm=function(t){var r=t._invertedIndicesMap;I(r,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=r[a]=new qL(o.categories.length);for(var l=0;l<n.length;l++)n[l]=zm;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},xi=function(t,r,n){return ur(t._getCategory(r,n),null)},Ss=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=xi(t,t._idDimIdx,r)),n==null&&(n=KL+r),n},wi=function(t){return N(t)||(t=t!=null?[t]:[]),t},Ti=function(t){var r=new e(t._schema?t._schema:Br(t.dimensions,t._getDimInfo,t),t.hostModel);return Rf(r,t),r},Rf=function(t,r){I(jL.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,I(QL,function(n){t[n]=rt(r[n])}),t._calculationInfo=O({},r._calculationInfo)},Of=function(t,r){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=a[r];if(s==null&&i!=null&&(n[r]=s=xi(t,i,r)),l==null&&o!=null&&(a[r]=l=xi(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[r]=l}}})(),e})();function JL(e,t){ld(e)||(e=bb(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=q(),i=[],o=eP(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&pS(o),l=n===e.dimensionsDefine,u=l?dS(e):vS(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var c=q(f),h=new Ab(o),v=0;v<h.length;v++)h[v]=-1;function d(M){var T=h[M];if(T<0){var D=n[M],L=K(D)?D:{name:D},A=new Qs,P=L.name;P!=null&&u.get(P)!=null&&(A.name=A.displayName=P),L.type!=null&&(A.type=L.type),L.displayName!=null&&(A.displayName=L.displayName);var k=i.length;return h[M]=k,A.storeDimIndex=M,i.push(A),A}return i[T]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(M,T){var D=Bt(M).slice();if(D.length===1&&!$(D[0])&&D[0]<0){c.set(T,!1);return}var L=c.set(T,[]);I(D,function(A,P){var k=$(A)?u.get(A):A;k!=null&&k<o&&(L[P]=k,g(d(k),T,P))})});var p=0;I(r,function(M){var T,D,L,A;if($(M))T=M,A={};else{A=M,T=A.name;var P=A.ordinalMeta;A.ordinalMeta=null,A=O({},A),A.ordinalMeta=P,D=A.dimsDef,L=A.otherDims,A.name=A.coordDim=A.coordDimIndex=A.dimsDef=A.otherDims=null}var k=c.get(T);if(k!==!1){if(k=Bt(k),!k.length)for(var E=0;E<(D&&D.length||1);E++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&k.push(p++)}I(k,function(B,R){var z=d(B);if(l&&A.type!=null&&(z.type=A.type),g(it(z,A),T,R),z.name==null&&D){var G=D[R];!K(G)&&(G={name:G}),z.name=z.displayName=G.name,z.defaultTooltip=G.defaultTooltip}L&&it(z.otherDims,L)})}});function g(M,T,D){hb.get(T)!=null?M.otherDims[T]=D:(M.coordDim=T,M.coordDimIndex=D,a.set(T,!0))}var m=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=m?y||1:0;var b=m||"value";function x(M){M.name==null&&(M.name=M.coordDim)}if(s)I(i,function(M){x(M)}),i.sort(function(M,T){return M.storeDimIndex-T.storeDimIndex});else for(var S=0;S<o;S++){var w=d(S),C=w.coordDim;C==null&&(w.coordDim=rP(b,a,_),w.coordDimIndex=0,(!m||y<=0)&&(w.isExtraCoord=!0),y--),x(w),w.type==null&&(gb(e,S)===pe.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return tP(i),new cS({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function tP(e){for(var t=q(),r=0;r<e.length;r++){var n=e[r],a=n.name,i=t.get(a)||0;i>0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function eP(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return I(t,function(i){var o;K(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function rP(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var nP=(function(){function e(t){this.coordSysDims=[],this.axisMap=q(),this.categoryAxisMap=q(),this.coordSysName=t}return e})();function aP(e){var t=e.get("coordinateSystem"),r=new nP(t),n=iP[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var iP={cartesian2d:function(e,t,r,n){var a=e.getReferringComponents("xAxis",Kt).models[0],i=e.getReferringComponents("yAxis",Kt).models[0];t.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),Ca(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),Ca(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var a=e.getReferringComponents("singleAxis",Kt).models[0];t.coordSysDims=["single"],r.set("single",a),Ca(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var a=e.getReferringComponents("polar",Kt).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),Ca(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),Ca(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();I(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Ca(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(e,t,r,n){var a=e.getReferringComponents("matrix",Kt).models[0];t.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");r.set("x",i),r.set("y",o),n.set("x",i),n.set("y",o)}};function Ca(e){return e.get("type")==="category"}function oP(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;sP(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,c,h;if(I(i,function(y,_){$(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;I(i,function(y){y.coordDim===v&&p++});var g={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),m.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function sP(e){return!hS(e.schema)}function ia(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function gS(e,t){return ia(e,t)?e.getCalculationInfo("stackResultDimension"):t}function lP(e,t){var r=e.get("coordinateSystem"),n=ad.get(r),a;return t&&t.coordSysDims&&(a=F(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=$L(l)}return o}
15)),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function uP(e,t,r){var n,a;return r&&I(e,function(i,o){var s=i.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(e[n].otherDims.itemName=0),n}function wd(e,t,r){r=r||{};var n=t.getSourceManager(),a,i=!1;a=n.getSource(),i=a.sourceFormat===ye;var o=aP(t),s=lP(t,o),l=r.useEncodeDefaulter,u=Z(l)?l:l?ot(s2,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=JL(a,f),h=uP(c.dimensions,r.createInvertedIndices,o),v=i?null:n.getSharedDataStore(c),d=oP(t,{schema:c,store:v}),p=new Qi(c,t);p.setCalculationInfo(d);var g=h!=null&&fP(a)?function(m,y,_,b){return b===h?_:this.defaultDimValueGetter(m,y,_,b)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,g),p}function fP(e){if(e.sourceFormat===ye){var t=cP(e.data||[]);return!N(Po(t))}}function cP(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}function Th(e){return e.type==="interval"||e.type==="log"}function hP(e,t,r,n,a){var i={},o=i.interval=J_(t/r);n!=null&&o<n&&(o=i.interval=n),a!=null&&o>a&&(o=i.interval=a);var s=i.intervalPrecision=_o(o),l=i.niceTickExtent=[Wt(Math.ceil(e[0]/o)*o,s),Wt(Math.floor(e[1]/o)*o,s)];return vP(l,e),i}function Bf(e){var t=Math.pow(10,Cv(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Wt(r*t)}function _o(e){return ar(e)+2}function Gm(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function vP(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Gm(e,0,t),Gm(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Td(e,t){return e>=t[0]&&e<=t[1]}var dP=(function(){function e(){this.normalize=Hm,this.scale=Wm}return e.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=lt(t.normalize,t),this.scale=lt(t.scale,t)):(this.normalize=Hm,this.scale=Wm)},e})();function Hm(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Wm(e,t){return e*(t[1]-t[0])+t[0]}function Ch(e,t,r){var n=Math.log(e);return[Math.log(r?t[0]:Math.max(0,t[0]))/n,Math.log(r?t[1]:Math.max(0,t[1]))/n]}var fn=(function(){function e(t){this._calculator=new dP,this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype._innerUnionExtent=function(t){var r=this._extent;this._innerSetExtent(t[0]<r[0]?t[0]:r[0],t[1]>r[1]?t[1]:r[1])},e.prototype.unionExtentFromData=function(t,r){this._innerUnionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){this._innerSetExtent(t,r)},e.prototype._innerSetExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},e.prototype.setBreaksFromOption=function(t){},e.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();Jl(fn);var pP=0,Mh=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++pP,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&F(n,gP);return new e({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!$(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,this._onCollect&&this._onCollect(t,r),r;var a=this._getOrCreateMap();return r=a.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,a.set(t,r),this._onCollect&&this._onCollect(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=q(this.categories))},e})();function gP(e){return K(e)&&e.value!=null?e.value:e+""}var Cd=(function(e){Y(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";
15var a=n.getSetting("ordinalMeta");return a||(a=new Mh({})),N(a)&&(a=new Mh({categories:F(a,function(i){return K(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:$(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return Td(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},t.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a.push(f),i[f]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(fn);fn.registerClass(Cd);var Nr=Wt,Ja=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},t.prototype.contain=function(r){return Td(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=_o(r)},t.prototype.getTicks=function(r){r=r||{};var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=xl(),l=[];if(!n)return l;r.breakTicks;var u=1e4;a[0]<i[0]&&(r.expandToNicedExtent?l.push({value:Nr(i[0]-n,o)}):l.push({value:a[0]}));for(var f=function(d,p){return Math.round((p-d)/n)},c=i[0];c<=i[1];){if(l.push({value:c}),c=Nr(c+n,o),this._brkCtx){var h=this._brkCtx.calcNiceTickMultiple(c,f);h>=0&&(c=Nr(c+h*n,o))}if(l.length>0&&c===l[l.length-1].value)break;if(l.length>u)return[]}var v=l.length?l[l.length-1].value:i[1];return a[1]>v&&(r.expandToNicedExtent?l.push({value:Nr(v+n,o)}):l.push({value:a[1]})),r.breakTicks,l},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),a=[],i=this.getExtent(),o=1;o<n.length;o++){var s=n[o],l=n[o-1];if(!(l.break||s.break)){for(var u=0,f=[],c=s.value-l.value,h=c/r,v=_o(h);u<r-1;){var d=Nr(l.value+(u+1)*h,v);d>i[0]&&d<i[1]&&f.push(d),u++}var p=xl();p&&p.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(g){return g},this._interval,i),a.push(f)}}return a},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=ar(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Nr(r.value,a,!0);return sb(i)},t.prototype.calcNiceTicks=function(r,n,a){r=r||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var s=hP(i,o,r,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);r.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(n[0]=Nr(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=Nr(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t})(fn);fn.registerClass(Ja);var mS=typeof Float32Array<"u",mP=mS?Float32Array:Array;function xr(e){return N(e)?mS?new Float32Array(e):e:new mP(e)}var yP="__ec_stack_";function yS(e){return e.get("stack")||yP+e.seriesIndex}function Md(e){return e.dim+e.index}function _S(e,t){var r=[];return t.eachSeriesByType(e,function(n){SS(n)&&r.push(n)}),r}function _P(e){var t={};
15I(e,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),h=f.dim+"_"+f.index,v=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),p=0,g=d.count();p<g;++p){var m=d.get(v,p);t[h]?t[h].push(m):t[h]=[m]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}r[n]=i}}return r}function bS(e){var t=_P(e),r=[];return I(e,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=Ft(n.get("barWidth"),s),p=Ft(n.get("barMaxWidth"),s),g=Ft(n.get("barMinWidth")||(xS(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap"),_=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,defaultBarGap:_,axisKey:Md(i),stackId:yS(n)})}),bP(r)}function bP(e){var t={};I(e,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return I(t,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=mt(i).length;s=Math.max(35-l*4,15)+"%"}var u=Ft(s,o),f=Ft(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),I(i,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var b=m.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),m.width=b,c-=b+f*b,h--}else{var b=v;y&&y<b&&(b=Math.min(y,c)),_&&_>b&&(b=_),b!==v&&(m.width=b,c-=b+f*b,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;I(i,function(m,y){m.width||(m.width=v),p=m,d+=m.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;I(i,function(m,y){r[a][y]=r[a][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),r}function SP(e,t,r){if(e&&t){var n=e[Md(t)];return n}}function xP(e,t){var r=_S(e,t),n=bS(r);I(r,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=yS(a),u=n[Md(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function wP(e){return{seriesType:e,plan:hd(),reset:function(t){if(SS(t)){var r=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=t.get("showBackground",!0),u=r.mapDimension(i.dim),f=r.getCalculationInfo("stackResultDimension"),c=ia(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=TP(a,i),d=xS(t),p=t.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var x=_.count,S=d&&xr(x*3),w=d&&l&&xr(x*3),C=d&&xr(x),M=n.master.getRect(),T=h?M.width:M.height,D,L=b.getStore(),A=0;(D=_.next())!=null;){var P=L.get(c?g:o,D),k=L.get(s,D),E=v,B=void 0;c&&(B=+P-L.get(o,D));var R=void 0,z=void 0,G=void 0,H=void 0;if(h){var U=n.dataToPoint([P,k]);if(c){var j=n.dataToPoint([B,k]);E=j[0]}R=E,z=U[1]+y,G=U[0]-E,H=m,Math.abs(G)<p&&(G=(G<0?-1:1)*p)}else{var U=n.dataToPoint([k,P]);if(c){var j=n.dataToPoint([k,B]);E=j[1]}R=U[0]+y,z=E,G=m,H=U[1]-E,Math.abs(H)<p&&(H=(H<=0?-1:1)*p)}d?(S[A]=R,S[A+1]=z,S[A+2]=h?G:H,w&&(w[A]=h?M.x:R,w[A+1]=h?z:M.y,w[A+2]=T),C[D]=D):b.setItemLayout(D,{x:R,y:z,width:G,height:H}),A+=3}d&&b.setLayout({largePoints:S,largeDataIndices:C,largeBackgroundPoints:w,valueAxisHorizontal:h})}}}}}}function SS(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function xS(e){return e.pipelineContext&&e.pipelineContext.large}function TP(e,t){var r=t.model.get("startValue");return r||(r=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?r>0?r:1:r))}var CP=function(e,t,r,n){for(;r<n;){var a=r+n>>>1;e[a][1]<t?r=a+1:n=a}return r},wS=(function(e){Y(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return vu(r.value,Lg[WA(qi(this._minLevelUnit))]||Lg.second,n,this.get
15Setting("locale"))},t.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return UA(r,n,a,o,i)},t.prototype.getTicks=function(r){var n=this._interval,a=this._extent,i=[];if(!n)return i;var o=this.getSetting("useUTC"),s=wl(a[1],o);i.push({value:a[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=EP(this._minLevelUnit,this._approxInterval,o,a,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(l);var u=wl(a[1],o);i.push({value:a[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}}),this.getSetting("useUTC");var f=jn.length-1,c=0;return I(i,function(h){f=Math.min(f,ft(jn,h.time.upperTimeUnit)),c=Math.max(c,h.time.level)}),i},t.prototype.calcNiceExtent=function(r){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=Ce,n[1]+=Ce),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-Ce}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,a){r=r||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var o=xs.length,s=Math.min(CP(xs,this._approxInterval,0,o),o-1);this._interval=xs[s][1],this._intervalPrecision=_o(this._interval),this._minLevelUnit=xs[Math.max(s-1,0)][0]},t.prototype.parse=function(r){return xt(r)?r:+ii(r)},t.prototype.contain=function(r){return Td(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.type="time",t})(Ja),xs=[["second",Kv],["minute",jv],["hour",Zi],["quarter-day",Zi*6],["half-day",Zi*12],["day",Ce*1.2],["half-week",Ce*3.5],["week",Ce*7],["month",Ce*31],["quarter",Ce*95],["half-year",Ig/2],["year",Ig]];function MP(e,t,r,n){return oh(new Date(t),e,n).getTime()===oh(new Date(r),e,n).getTime()}function DP(e,t){return e/=Ce,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function AP(e){var t=30*Ce;return e/=t,e>6?6:e>3?3:e>2?2:1}function IP(e){return e/=Zi,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Um(e,t){return e/=t?jv:Kv,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function LP(e){return J_(e)}function PP(e,t,r){var n=Math.max(0,ft(jn,t)-1);return oh(new Date(e),jn[n],r).getTime()}function kP(e,t){var r=new Date(0);r[e](1);var n=r.getTime();r[e](1+t);var a=r.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function EP(e,t,r,n,a,i){var o=1e4,s=zA,l=0;function u(A,P,k,E,B,R,z){for(var G=kP(B,A),H=P,U=new Date(H);H<k&&H<=n[1]&&(z.push({value:H}),!(l++>o));)if(U[B](U[E]()+A),H=U.getTime(),i){var j=i.calcNiceTickMultiple(H,G);j>0&&(U[B](U[E]()+j*A),H=U.getTime())}z.push({value:H,notAdd:!0})}function f(A,P,k){var E=[],B=!P.length;if(!MP(qi(A),n[0],n[1],r)){B&&(P=[{value:PP(n[0],A,r)},{value:n[1]}]);for(var R=0;R<P.length-1;R++){var z=P[R].value,G=P[R+1].value;if(z!==G){var H=void 0,U=void 0,j=void 0,st=!1;switch(A){case"year":H=Math.max(1,Math.round(t/Ce/365)),U=tb(r),j=$A(r);break;case"half-year":case"quarter":case"month":H=AP(t),U=Qv(r),j=eb(r);break;case"week":case"half-week":case"day":H=DP(t),U=Jv(r),j=rb(r),st=!0;break;case"half-day":case"quarter-day":case"hour":H=IP(t),U=td(r),j=nb(r);break;case"minute":H=Um(t,!0),U=ed(r),j=ab(r);break;case"second":H=Um(t,!1),U=rd(r),j=ib(r);break;case"millisecond":H=LP(t),U=nd(r),j=ob(r);break}G>=n[0]&&z<=n[1]&&u(H,z,G,U,j,st,E),A==="year"&&k.length>1&&R===0&&k.unshift({value:k[0].value-H})}}for(var R=0;R<E.length;R++)k.push(E[R])}}for(var c=[],h=[],v=0,d=0,p=0;p<s.length;++p){var g=qi(s[p]);if(HA(s[p])){f(s[p],c[c.length-1]||[],h);var m=s[p+1]?qi(s[p+1]):null;if(g!==m){if(h.length){d=v,h.sort(function(A,P){return A.value-P.value});for(var y=[],_=0;_<h.length;++_){var b=h[_].value;(_===0||h[_-1].value!==b)&&(y.push(h[_]),b>=n[0]&&b<=n[1]&&v++)}var x=a/t;if(v>x*1.5&&d>x/1.5||(c.push(y),v>x||e===s[p]))break}h=[]}}}for(var S=Mt(F(c,function(A){return Mt(A,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(A){return A.length>0}),w=[],C=S.length-1,p=0;p<S.length;++p)for(var M=S[p],T=0;T<M.length;++T){var D=wl(M[T].value,r);w.push({value:M[T].value,time:{level:C-p,upperTimeUnit:D,lowerTimeUnit:D}})}w.sort(function(A,P){return A.value-P.value});for(var L=[],p=0;p<w.length;++p)(p===0||w[p].value!==w[p-1].value)&&L.push(w[p]);return L}fn.registerClass(wS);var Dh=Wt,RP=Math.floor,OP=Math.ceil,ws=Math.pow,Ts=Math.log,TS=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;
15return r.type="log",r.base=10,r._originalScale=new Ja,r}return t.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),a=this._originalScale.getExtent(),i=e.prototype.getTicks.call(this,r),o=this.base;return this._originalScale._innerGetBreaks(),F(i,function(s){var l=s.value,u=null,f=ws(o,l);l===n[0]&&this._fixMin?u=a[0]:l===n[1]&&this._fixMax&&(u=a[1]);var c;return u!=null&&(f=Nf(f,u)),{value:f,break:c}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(r,n){this._originalScale.setExtent(r,n);var a=Ch(this.base,[r,n]);e.prototype.setExtent.call(this,a[0],a[1])},t.prototype.getExtent=function(){var r=this.base,n=e.prototype.getExtent.call(this);n[0]=ws(r,n[0]),n[1]=ws(r,n[1]);var a=this._originalScale.getExtent();return this._fixMin&&(n[0]=Nf(n[0],a[0])),this._fixMax&&(n[1]=Nf(n[1],a[1])),n},t.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var a=Ch(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(a)},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),a=this._getExtentSpanWithBreaks();if(!(!isFinite(a)||a<=0)){var i=KC(a),o=r/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Dh(OP(n[0]/i)*i),Dh(RP(n[1]/i)*i)];this._interval=i,this._intervalPrecision=_o(i),this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){e.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.contain=function(r){return r=Ts(r)/Ts(this.base),e.prototype.contain.call(this,r)},t.prototype.normalize=function(r){return r=Ts(r)/Ts(this.base),e.prototype.normalize.call(this,r)},t.prototype.scale=function(r){return r=e.prototype.scale.call(this,r),ws(this.base,r)},t.prototype.setBreaksFromOption=function(r){},t.type="log",t})(Ja);function Nf(e,t){return Dh(e,ar(t))}fn.registerClass(TS);var BP=(function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=r.get("min",!0);i==null&&(i=r.get("startValue",!0));var o=this._modelMinRaw=i;Z(o)?this._modelMinNum=Cs(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=Cs(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(Z(s)?this._modelMaxNum=Cs(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=Cs(t,s)),a)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=N(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[en(u[0],1),en(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?a?0:NaN:r-i[0]*o),l==null&&(l=t?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=eo(s)||eo(l)||t&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},e.prototype.modifyDataMinMax=function(t,r){this[FP[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=NP[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e})(),NP={min:"_determinedMin",max:"_determinedMax"},FP={min:"_dataMin",max:"_dataMax"};function CS(e,t,r){var n=e.rawExtentInfo;return n||(n=new BP(e,t,r),e.rawExtentInfo=n,n)}function Cs(e,t){return t==null?null:eo(t)?NaN:e.parse(t)}function MS(e,t){var r=e.type,n=CS(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&r==="time"){var s=_S("bar",o),l=!1;if(I(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=bS(s),f=zP(a,i,t,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function zP(e,t,r,n){var a=r.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=SP(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;I(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;I(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-e,c=1-(s+l)/i,h=f/c-f;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function $m(e,t){var r=t,n=MS(e,r),a=n.extent,i=r.get("splitNumber");e instanceof TS&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setBreaksFromOption(IS(r)),e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function VP(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Cd({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new wS({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(fn.getClass(t)||Ja)}}function GP(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function li(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var r=VA(t);return function(a,i){return e.scale.getFormattedLabel(a,i,r)}}else{if($(t))return function(a){var i=e.scale.getLabel(a),o=t.replace("{value}",i??"");return o};if(Z(t)){if(e.type==="category")return function(a,i){return t(Ll(e,a),a.value-e.scale.getExtent()[0],null)};var n=xl();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),t(Ll(e,a),i,o)}}else return function(a){return e.scale.getLabel(a)}}}function Ll(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Dd(e){var t=e.get("interval");return t??"auto"}function DS(e){return e.type==="category"&&Dd(e.getLabelModel())===0}function AS(e,t){var r={};return I(e.mapDimensionsAll(t),function(n){r[gS(e,n)]=!0}),mt(r)}function HP(e,t,r){t&&I(AS(t,r),function(n){var a=t.getApproximateExtent(n);a[0]<e[0]&&(e[0]=a[0]),a[1]>e[1]&&(e[1]=a[1])})}function ti(e){return e==="middle"||e==="center"}function bo(e){return e.getShallow("show")}function IS(e){var t=e.get("breaks",!0);t==null}var WP=(function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e})(),Ym=[],UP={registerPreprocessor:lS,registerProcessor:uS,registerPostInit:NL,registerPostUpdate:FL,registerUpdateLifecycle:bd,registerAction:dr,registerCoordinateSystem:zL,registerLayout:VL,registerVisual:ua,registerTransform:HL,registerLoading:fS,registerMap:GL,registerImpl:mL,PRIORITY:LL,ComponentModel:yt,ComponentView:de,SeriesModel:cr,ChartView:Ve,registerComponentModel:function(e){yt.registerClass(e)},registerComponentView:function(e){de.registerClass(e)},registerSeriesModel:function(e){cr.registerClass(e)},registerChartView:function(e){Ve.registerClass(e)},registerCustomSeries:function(e,t){},registerSubTypeDefaulter:function(e,t){yt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){GC(e,t)}};function Lr(e){if(N(e)){I(e,function(t){Lr(t)});return}ft(Ym,e)>=0||(Ym.push(e),Z(e)&&(e={install:e}),e.install(UP))}var $P=St(),Ji=St(),He={estimate:1,determine:2};function Pl(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function LS(e,t){var r=F(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function YP(e,t){var r=e.getLabelModel().get("customValues");if(r){var n=li(e),a=e.scale.getExtent(),i=LS(e,r),o=Mt(i,function(s){return s>=a[0]&&s<=a[1]});return{labels:F(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:e.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return e.type==="category"?ZP(e,t):KP(e)}function XP(e,t,r){var n=e.getTickModel().get("customValues");if(n){var a=e.scale.getExtent(),i=LS(e,n);return{ticks:Mt(i,function(o){return o>=a[0]&&o<=a[1]})}}return e.type==="category"?qP(e,t):{ticks:F(e.scale.getTicks(r),function(o){return o.value})}}function ZP(e,t){var r=e.getLabelModel(),n=PS(e,r,t);return!r.get("show")||e.scale.isBlank()?{labels:[]}:n}function PS(e,t,r){var n=QP(e),a=Dd(t),i=r.kind===He.estimate;if(!i){var o=ES(n,a);if(o)return o}var s,l;Z(a)?s=BS(e,a):(l=a==="auto"?JP(e,r):a,s=OS(e,l));var u={labels:s,labelCategoryInterval:l};return i?r.out.noPxChangeTryDetermine.push(function(){return Ah(n,a,u),!0}):Ah(n,a,u),u}function qP(e,t){var r=jP(e),n=Dd(t),a=ES(r,n);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),Z(n))i=BS(e,n,!0);else if(n==="auto"){var s=PS(e,e.getLabelModel(),Pl(He.determine));o=s.labelCategoryInterval,i=F(s.labels,function(l){return l.tickValue})}else o=n,i=OS(e,o,!0);return Ah(r,n,{ticks:i,tickCategoryInterval:o})}function KP(e){var t=e.scale.getTicks(),r=li(e);return{labels:F(t,function(n,a){return{formattedLabel:r(n,a),rawLabel:e.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var jP=kS("axisTick"),QP=kS("axisLabel");function kS(e){return function(r){return Ji(r)[e]||(Ji(r)[e]={list:[]})}}function ES(e,t){for(var r=0;r<e.list.length;r++)if(e.list[r].key===t)return e.list[r].value}function Ah(e,t,r){return e.list.push({key:t,value:r}),r}function JP(e,t){if(t.kind===He.estimate){var r=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Ji(e).autoInterval=r,!0}),r}var n=Ji(e).autoInterval;return n??(Ji(e).autoInterval=e.calculateCategoryInterval(t))}function tk(e,t){var r=t.kind,n=rk(e),a=li(e),i=(n.axisRotate-n.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],h=e.dataToCoord(c+1)-e.dataToCoord(c),v=Math.abs(h*Math.cos(i)),d=Math.abs(h*Math.sin(i)),p=0,g=0;c<=s[1];c+=u){var m=0,y=0,_=Tv(a({value:c}),n.font,"center","top");m=_.width*1.3,y=_.height*1.3,p=Math.max(p,m,7),g=Math.max(g,y,7)}var b=p/v,x=g/d;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));if(r===He.estimate)return t.out.noPxChangeTryDetermine.push(lt(ek,null,e,S,l)),S;var w=RS(e,S,l);return w??S}function ek(e,t,r){return RS(e,t,r)==null}function RS(e,t,r){var n=$P(e.model),a=e.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-r)<=1&&i>t&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=r,n.lastAutoInterval=t,n.axisExtent0=a[0],n.axisExtent1=a[1]}function rk(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function OS(e,t,r){var n=li(e),a=e.scale,i=a.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=DS(e),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(g){var m={value:g};
15s.push(r?g:{formattedLabel:n(m),rawLabel:a.getLabel(m),tickValue:g,time:void 0,break:void 0})}return s}function BS(e,t,r){var n=e.scale,a=li(e),i=[];return I(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(r?l:{formattedLabel:a(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var Xm=[0,1],nk=(function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return t>=n&&t<=a},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return j_(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,a=this.scale;return t=a.normalize(a.parse(t)),this.onBand&&a.type==="ordinal"&&(n=n.slice(),Zm(n,a.count())),Fn(t,Xm,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),Zm(n,a.count()));var i=Fn(t,n,Xm,r);return this.scale.scale(i)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=XP(this,r,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),a=n.ticks,i=F(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return ak(this,i,o,t.clamp),i},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=F(n,function(i){return F(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(t){return t=t||Pl(He.determine),YP(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},e.prototype.calculateCategoryInterval=function(t){return t=t||Pl(He.determine),tk(this,t)},e})();function Zm(e,t){var r=e[1]-e[0],n=t,a=r/n/2;e[0]+=a,e[1]-=a}function ak(e,t,r,n){var a=t.length;if(!e.onBand||r||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],t[0].onBand=!0,o=t[1]={coord:i[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;I(t,function(v){v.coord-=u/2,v.onBand=!0});var f=e.scale.getExtent();s=1+f[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s,tickValue:f[1]+1,onBand:!0},t.push(o)}var c=i[0]>i[1];h(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&h(i[0],t[0].coord)&&t.unshift({coord:i[0],onBand:!0}),h(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&h(o.coord,i[1])&&t.push({coord:i[1],onBand:!0});function h(v,d){return v=Wt(v),d=Wt(d),c?v>d:v<d}}var qm=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],ik=1,kl=2,NS=ik|kl;function El(e,t,r){r=r||NS,t?e.dirty|=r:e.dirty&=~r}function FS(e,t){return t=t||NS,e.dirty==null||!!(e.dirty&t)}function sn(e){if(e)return FS(e)&&ok(e,e.label,e),e}function ok(e,t,r){var n=t.getComputedTransform();e.transform=$v(e.transform,n);var a=e.localRect=ho(e.localRect,t.getBoundingRect()),i=t.style,o=i.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=za.textMargin);for(var c=0;c<4;c++)Ff[c]=f===za.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===za.textMargin&&bl(a,Ff,!1,!1);var h=e.rect=ho(e.rect,a);return n&&h.applyTransform(n),f===za.minMargin&&bl(h,Ff,!1,!1),e.axisAligned=Uv(n),(e.label=e.label||{}).ignore=t.ignore,El(e,!1),El(e,!0,kl),e}var Ff=[0,0,0,0];function sk(e,t,r){return e.transform=$v(e.transform,r),e.localRect=ho(e.localRect,t),e.rect=ho(e.rect,t),r&&e.rect.applyTransform(r),e.axisAligned=Uv(r),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function lk(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var r=e.transform;r&&(r[4]+=t.x,r[5]+=t.y);var n=e.rect;n&&(n.x+=t.x,n.y+=t.y);var a=e.obb;
15a&&a.fromBoundingRect(e.localRect,r)}}function Km(e,t){for(var r=0;r<qm.length;r++){var n=qm[r];e[n]==null&&(e[n]=t[n])}return sn(e)}function jm(e){var t=e.obb;return(!t||FS(e,kl))&&(e.obb=t=t||new F1,t.fromBoundingRect(e.localRect,e.transform),El(e,!1,kl)),t}function uk(e){var t=[];e.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<e.length;n++){var a=sn(e[n]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,l=0;l<t.length;l++)if(Ad(a,t[l],null,{touchThreshold:.05})){s=!0;break}s?(r(i),o&&r(o)):t.push(a)}}}function Ad(e,t,r,n){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,r,n)?!1:e.axisAligned&&t.axisAligned?!0:jm(e).intersect(jm(t),r,n)}const fk=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function ck(e){function t(r){return function(...a){if(!e.value)throw new Error("ECharts is not initialized yet.");return Reflect.apply(e.value[r],e.value,a)}}return fk.reduce((r,n)=>(r[n]=t(n),r),{})}function hk(e,t,r){Tr([r,e,t],([n,a,i],o,s)=>{let l=null;if(n&&a&&i){const{offsetWidth:u,offsetHeight:f}=n,{throttle:c=100,onResize:h}=i===!0?{}:i;let v=!1;const d=()=>{a.resize(),h?.()},p=c?yu(d,c):d;l=new ResizeObserver(()=>{!v&&(v=!0,n.offsetWidth===u&&n.offsetHeight===f)||n.offsetWidth===0||n.offsetHeight===0||p()}),l.observe(n)}s(()=>{l&&(l.disconnect(),l=null)})})}const vk={autoresize:[Boolean,Object]},dk=Symbol();function pk(e,t,r){const n=Bs(dk,{}),a=nt(()=>({...Ns(n),...r?.value}));u_(()=>{const i=e.value;i&&(t.value?i.showLoading(a.value):i.hideLoading())})}const gk={loading:Boolean,loadingOptions:Object};function zS(){return typeof window<"u"&&typeof document<"u"}const mk=/^on[^a-z]/,VS=e=>mk.test(e);function yk(e){const t={};for(const r in e)VS(r)||(t[r]=e[r]);return t}function _k(e){const t=Number(e);return Number.isInteger(t)&&t>=0&&t<Math.pow(2,32)-1&&String(t)===e}function bk(e,t){const r=new Set(e),n=new Set(t);if(r.size!==n.size)return!1;for(const a of r)if(!n.has(a))return!1;return!0}function GS(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}const HS={tooltip:["tooltip","formatter"],dataView:["toolbox","feature","dataView","optionToContent"]},Sk=Object.keys(HS);function zf(e){return Sk.some(t=>e===t||e.startsWith(t+"-"))}function xk(e,t){const r=zS()?document.createElement("div"):void 0,n=Au({}),a=Au({}),i=Au({}),o=pc(!1),s=()=>o.value&&r?nl(Dw,{to:r},Object.entries(e).filter(([c])=>zf(c)).map(([c,h])=>{const v=c;return nl("div",{ref:d=>{d instanceof HTMLElement&&(n[v]=d)},style:{display:"contents"}},a[v]?h?.(i[v]):void 0)})):void 0;function l(c){return c!==null&&typeof c=="object"&&!Array.isArray(c)}function u(c){const h={...c},v=(d,p)=>{const g=d[p];if(Array.isArray(g))return d[p]=[...g],d[p];if(l(g))return d[p]={...g},d[p];if(g===void 0)return d[p]=_k(p)?[]:{},d[p]};return Object.keys(e).filter(d=>zf(d)).forEach(d=>{const[p,...g]=d.split("-"),m=HS[p];if(!m)return;const y=[...g,...m];if(y.length===0)return;let _=h;for(let b=0;b<y.length-1;b++)if(_=v(_,y[b]),!_)return;_[y[y.length-1]]=b=>(a[d]=!0,i[d]=b,n[d])}),h}let f=[];return Mw(()=>{const c=Object.keys(e).filter(zf);bk(c,f)||(f.forEach(h=>{c.includes(h)||(delete i[h],delete a[h],delete n[h])}),f=c,t())}),$l(()=>{o.value=!0}),Yl(()=>{r?.remove()}),{teleportedSlots:s,patchOption:u}}let Fr=null;const Ih="x-vue-echarts";function wk(){if(Fr!=null)return Fr;const e=globalThis.customElements;if(!zS()||!e?.get)return Fr=!1,Fr;if(!e.get(Ih))try{class t extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}e.define(Ih,t)}catch{return Fr=!1,Fr}return Fr=!0,Fr}function Tk(e){if(!GS(e))return;const t=e.id;if(typeof t=="string")return t;if(typeof t=="number"&&Number.isFinite(t))return String(t)}function Qm(e){const t=e,r=Array.isArray(t.options)?t.options.length:0,n=Array.isArray(t.media)?t.media.length:0,a=Object.create(null),i=[],o=[];for(const s of Object.keys(t)){if(s==="options"||s==="media")continue;const l=t[s];if(Array.isArray(l)){const u=l,f=new Set;let c=0;for(let h=0;h<u.length;h++){const v=Tk(u[h]);v!==void 0?f.add(v):c++}a[s]={idsSorted:f.size>0?Array.from(f).sort():[],noIdCount:c}}else GS(l)?i.push(s):l!==void 0&&o.push(s)}return i.length>1&&i.sort(),o.length>1&&o.sort(),{optionsLength:r,mediaLength:n,arrays:a,objects:i,scalars:o}}function Jm(e,t){if(e.length===0)return[];if(t.length===0)return e.slice();const r=new Set(t),n=[];for(let a=0;a<e.length;a++){const i=e[a];r.has(i)||n.push(i)}return n}function Ck(e,t){if(e.length===0)return!1;if(t.length===0)return!0;const r=new Set(t);for(let n=0;n<e.length;n++)if(!r.has(e[n]))return!0;return!1}function Mk(e,t){const r=Qm(t);if(!e)return{option:t,signature:r,plan:{notMerge:!1}};if(r.optionsLength<e.optionsLength)return{option:t,signature:r,plan:{notMerge:!0}};if(r.mediaLength<e.mediaLength)return{option:t,signature:r,plan:{notMerge:!0}};if(Jm(e.scalars,r.scalars).length>0)return{option:t,signature:r,plan:{notMerge:!0}};const n=new Set,a=new Map,i=Jm(e.objects,r.objects);for(let u=0;u<i.length;u++)a.set(i[u],null);for(const u of Object.keys(e.arrays)){const f=e.arrays[u];if(!f)continue;const c=r.arrays[u];if(!c){(f.idsSorted.length>0||f.noIdCount>0)&&(a.set(u,[]),n.add(u));continue}if(Ck(f.idsSorted,c.idsSorted)){n.add(u);continue}c.noIdCount<f.noIdCount&&n.add(u)}let o=t,s=r;if(a.size>0){const u={...t};a.forEach((f,c)=>{u[c]=f}),o=u,s=Qm(o)}const l=n.size>0?Array.from(n).sort():void 0;return{option:o,signature:s,plan:l?{notMerge:!1,replaceMerge:l}:{notMerge:!1}}}var ty=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0;} 16x-vue-echarts>:first-child,x-vue-echarts>:first-child>canvas{border-radius:inherit;} 17`;if(typeof document<"u")if(Array.isArray(document.adoptedStyleSheets)&&"replaceSync"in CSSStyleSheet.prototype){const e=new CSSStyleSheet;e.replaceSync(ty),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}else{const e=document.createElement("style");e.textContent=ty,document.head.appendChild(e)}const Dk=wk(),Ak=Symbol(),Ik=Symbol(),Lk=Symbol();var Pk=te({name:"Echarts",inheritAttrs:!1,props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...vk,...gk},emits:{},slots:Object,setup(e,{attrs:t,expose:r,slots:n}){const a=pc(),i=pc(),o=Bs(Ak,null),s=Bs(Ik,null),l=Bs(Lk,null),{autoresize:u,manualUpdate:f,loading:c,loadingOptions:h}=Tw(e),v=nt(()=>e.theme||Ns(o)),d=nt(()=>e.initOptions||Ns(s)||void 0),p=nt(()=>e.updateOptions||Ns(l)),g=nt(()=>yk(t)),m={},y=new Map,{teleportedSlots:_,patchOption:b}=xk(n,()=>{!f.value&&e.option&&i.value&&w(i.value,e.option)});let x;function S(L){const A={},P=(L?.replaceMerge??[]).filter(k=>k!=null);return P.length>0&&(A.replaceMerge=[...new Set(P)]),L?.notMerge!==void 0&&(A.notMerge=L.notMerge),A}function w(L,A,P,k=!1){const E=b(A);if(k){L.setOption(E,P??{}),x=void 0;return}if(p.value){const z=P??p.value;L.setOption(E,z),x=void 0;return}const B=Mk(x,E),R=S(B.plan);L.setOption(B.option,R),x=B.signature}Object.keys(t).filter(L=>
17VS(L)).forEach(L=>{if(L.indexOf("Native:")===2){const E=`on${L.charAt(9).toUpperCase()}${L.slice(10)}`;m[E]=t[L];return}let A=L.charAt(2).toLowerCase()+L.slice(3),P;A.indexOf("zr:")===0&&(P=!0,A=A.substring(3));let k;A.substring(A.length-4)==="Once"&&(k=!0,A=A.substring(0,A.length-4)),y.set({event:A,zr:P,once:k},t[L])});function C(){if(!a.value)return;const L=i.value=OL(a.value,v.value,d.value);e.group&&(L.group=e.group),y.forEach((k,{zr:E,once:B,event:R})=>{if(!k)return;const z=E?L.getZr():L;if(B){const G=k;let H=!1;k=(...U)=>{H||(H=!0,G(...U),z.off(R,k))}}z.on(R,k)});function A(){L&&!L.isDisposed()&&L.resize()}function P(){const{option:k}=e;if(f.value){k&&w(L,k,void 0,!0);return}k&&w(L,k)}u.value?f_(()=>{A(),P()}):P()}const M=(L,A,P)=>{if(!e.manualUpdate)return;const k=typeof A=="boolean"?{notMerge:A,lazyUpdate:P}:A;i.value&&w(i.value,L,k??void 0,!0)};function T(){i.value&&(i.value.dispose(),i.value=void 0),x=void 0}Tr(()=>e.option,L=>{if(!L){x=void 0;return}f.value||i.value&&w(i.value,L)},{deep:!0}),Tr([f,d],()=>{T(),C()},{deep:!0}),Tr(v,L=>{i.value?.setTheme(L||{})},{deep:!0}),u_(()=>{e.group&&i.value&&(i.value.group=e.group)});const D=ck(i);return pk(i,c,h),hk(i,u,a),$l(()=>{C()}),Cw(()=>{Dk&&a.value?a.value.__dispose=T:T()}),r({setOption:M,root:a,chart:i,...D}),(()=>nl(Ih,{...g.value,...m,ref:a,class:["echarts",g.value.class]},_()))}}),kk=Pk,Vf=Math.sin,Gf=Math.cos,WS=Math.PI,On=Math.PI*2,Ek=180/WS,US=(function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){this._add("C",t,r,n,a,i,o)},e.prototype.quadraticCurveTo=function(t,r,n,a){this._add("Q",t,r,n,a)},e.prototype.arc=function(t,r,n,a,i,o){this.ellipse(t,r,n,n,0,a,i,o)},e.prototype.ellipse=function(t,r,n,a,i,o,s,l){var u=s-o,f=!l,c=Math.abs(u),h=Yr(c-On)||(f?u>=On:-u>=On),v=u>0?u%On:u%On+On,d=!1;h?d=!0:Yr(c)?d=!1:d=v>=WS==!!f;var p=t+n*Gf(o),g=r+a*Vf(o);this._start&&this._add("M",p,g);var m=Math.round(i*Ek);if(h){var y=1/this._p,_=(f?1:-1)*(On-y);this._add("A",n,a,m,1,+f,t+n*Gf(o+_),r+a*Vf(o+_)),y>.01&&this._add("A",n,a,m,0,+f,p,g)}else{var b=t+n*Gf(s),x=r+a*Vf(s);this._add("A",n,a,m,+d,+f,b,x)}},e.prototype.rect=function(t,r,n,a){this._add("M",t,r),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,a,i,o,s,l,u){for(var f=[],c=this._p,h=1;h<arguments.length;h++){var v=arguments[h];if(isNaN(v)){this._invalid=!0;return}f.push(Math.round(v*c)/c)}this._d.push(t+f.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e})(),Id="none",Rk=Math.round;function Ok(e){var t=e.fill;return t!=null&&t!==Id}function Bk(e){var t=e.stroke;return t!=null&&t!==Id}var Lh=["lineCap","miterLimit","lineJoin"],Nk=F(Lh,function(e){return"stroke-"+e.toLowerCase()});function Fk(e,t,r,n){var a=t.opacity==null?1:t.opacity;if(r instanceof hr){e("opacity",a);return}if(Ok(t)){var i=no(t.fill);e("fill",i.color);var o=t.fillOpacity!=null?t.fillOpacity*i.opacity*a:i.opacity*a;o<1&&e("fill-opacity",o)}else e("fill",Id);if(Bk(t)){var s=no(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?r.getLineScale():1,u=l?(t.lineWidth||0)/l:0,f=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*a:s.opacity*a,c=t.strokeFirst;if(u!==1&&e("stroke-width",u),c&&e("paint-order",c?"stroke":"fill"),f<1&&e("stroke-opacity",f),t.lineDash){var h=gd(r),v=h[0],d=h[1];v&&(d=Rk(d||0),e("stroke-dasharray",v.join(",")),(d||n)&&e("stroke-dashoffset",d))}for(var p=0;p<Lh.length;p++){var g=Lh[p];if(t[g]!==gl[g]){var m=t[g]||gl[g];m&&e(Nk[p],m)}}}}var $S="http://www.w3.org/2000/svg",YS="http://www.w3.org/1999/xlink",zk="http://www.w3.org/2000/xmlns/",Vk="http://www.w3.org/XML/1998/namespace",ey="ecmeta_";function XS(e){return document.createElementNS($S,e)}function zt(e,t,r,n,a){return{tag:e,attrs:r||{},children:n,text:a,key:t}}function Gk(e,t){var r=[];if(t)for(var n in t){var a=t[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),r.push(i))}return"<"+e+" "+r.join(" ")+">"}function Hk(e){return"</"+e+">"}
17function Ld(e,t){t=t||{};var r=t.newline?` 18`:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return Gk(o,s)+(o!=="style"?re(l):l||"")+(i?""+r+F(i,function(u){return n(u)}).join(r)+r:"")+Hk(o)}return n(e)}function Wk(e,t,r){r=r||{};var n=r.newline?` 19`:"",a=" {"+n,i=n+"}",o=F(mt(e),function(l){return l+a+F(mt(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+i}).join(n),s=F(mt(t),function(l){return"@keyframes "+l+a+F(mt(t[l]),function(u){return u+a+F(mt(t[l][u]),function(f){var c=t[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function Ph(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function ry(e,t,r,n){return zt("svg","root",{width:e,height:t,xmlns:$S,"xmlns:xlink":YS,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var Uk=0;function ZS(){return Uk++}var ny={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Bn="transform-origin";function $k(e,t,r){var n=O({},e.shape);O(n,t),e.buildPath(r,n);var a=new US;return a.reset(H_(e)),r.rebuildPath(a,1),a.generateStr(),a.getStr()}function Yk(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[Bn]=r+"px "+n+"px")}var Xk={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function qS(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function Zk(e,t,r){var n=e.shape.paths,a={},i,o;if(I(n,function(l){var u=Ph(r.zrId);u.animation=!0,Su(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,h=mt(f),v=h.length;if(v){o=h[v-1];var d=f[o];for(var p in d){var g=d[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var m in c){var y=c[m].animation;y.indexOf(o)>=0&&(i=y)}}}),!!i){t.d=!1;var s=qS(a,r);return i.replace(o,s)}}function ay(e){return $(e)?ny[e]?"cubic-bezier("+ny[e]+")":Sv(e)?e:"":""}function Su(e,t,r,n){var a=e.animators,i=a.length,o=[];if(e instanceof O1){var s=Zk(e,t,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=a[u],c=[f.getMaxTime()/1e3+"s"],h=ay(f.getClip().easing),v=f.getDelay();h?c.push(h):c.push("linear"),v&&c.push(v/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(y){var _=y[1],b=_.length,x={},S={},w={},C="animation-timing-function";function M($t,kt,It){for(var J=$t.getTracks(),dt=$t.getMaxTime(),Le=0;Le<J.length;Le++){var Nt=J[Le];if(Nt.needsAnimate()){var ui=Nt.keyframes,cn=Nt.propName;if(It&&(cn=It(cn)),cn)for(var Du=0;Du<ui.length;Du++){var zo=ui[Du],Vo=Math.round(zo.time/dt*100)+"%",Jd=ay(zo.easing),tp=zo.rawValue;($(tp)||xt(tp))&&(kt[Vo]=kt[Vo]||{},kt[Vo][cn]=zo.rawValue,Jd&&(kt[Vo][C]=Jd))}}}}for(var T=0;T<b;T++){var D=_[T],L=D.targetName;L?L==="shape"&&M(D,S):!n&&M(D,x)}for(var A in x){var P={};hl(P,e),O(P,x[A]);var k=W_(P),E=x[A][C];w[A]=k?{transform:k}:{},Yk(w[A],P),E&&(w[A][C]=E)}var B,R=!0;for(var A in S){w[A]=w[A]||{};var z=!B,E=S[A][C];z&&(B=new Ar);var G=B.len();B.reset(),w[A].d=$k(e,S[A],B);var H=B.len();if(!z&&G!==H){R=!1;break}E&&(w[A][C]=E)}if(!R)for(var A in w)delete w[A].d;if(!n)for(var T=0;T<b;T++){var D=_[T],L=D.targetName;L==="style"&&M(D,w,function(J){return Xk[J]})}for(var U=mt(w),j=!0,st,T=1;T<U.length;
19T++){var _t=U[T-1],Vt=U[T];if(w[_t][Bn]!==w[Vt][Bn]){j=!1;break}st=w[_t][Bn]}if(j&&st){for(var A in w)w[A][Bn]&&delete w[A][Bn];t[Bn]=st}if(Mt(U,function($t){return mt(w[$t]).length>0}).length){var ae=qS(w,r);return ae+" "+y[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=r.zrId+"-cls-"+ZS();r.cssNodes["."+m]={animation:o.join(",")},t.class=m}}function qk(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};iy(n,t,r)}else{var a=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},i=a.fill;if(!i){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(i=Ec(l))}var u=a.lineWidth;if(u){var f=!a.strokeNoScale&&e.transform?e.transform[0]:1;u=u/f}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),u&&(n["stroke-width"]=u),iy(n,t,r)}}function iy(e,t,r,n){var a=JSON.stringify(e),i=r.cssStyleCache[a];i||(i=r.zrId+"-cls-"+ZS(),r.cssStyleCache[a]=i,r.cssNodes["."+i+":hover"]=e),t.class=t.class?t.class+" "+i:i}var So=Math.round;function KS(e){return e&&$(e.src)}function jS(e){return e&&Z(e.toDataURL)}function Pd(e,t,r,n){Fk(function(a,i){var o=a==="fill"||a==="stroke";o&&G_(i)?JS(t,e,a,n):o&&xv(i)?tx(r,e,a,n):e[a]=i,o&&n.ssr&&i==="none"&&(e["pointer-events"]="visible")},t,r,!1),rE(r,e,n)}function kd(e,t){var r=HC(t);r&&(r.each(function(n,a){n!=null&&(e[(ey+a).toLowerCase()]=n+"")}),t.isSilent()&&(e[ey+"silent"]="true"))}function oy(e){return Yr(e[0]-1)&&Yr(e[1])&&Yr(e[2])&&Yr(e[3]-1)}function Kk(e){return Yr(e[4])&&Yr(e[5])}function Ed(e,t,r){if(t&&!(Kk(t)&&oy(t))){var n=1e4;e.transform=oy(t)?"translate("+So(t[4]*n)/n+" "+So(t[5]*n)/n+")":fC(t)}}function sy(e,t,r){for(var n=e.points,a=[],i=0;i<n.length;i++)a.push(So(n[i][0]*r)/r),a.push(So(n[i][1]*r)/r);t.points=a.join(" ")}function ly(e){return!e.smooth}function jk(e){var t=F(e,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,a){for(var i=0;i<t.length;i++){var o=t[i],s=r[o[0]];s!=null&&(n[o[1]]=So(s*a)/a)}}}var Qk={circle:[jk(["cx","cy","r"])],polyline:[sy,ly],polygon:[sy,ly]};function Jk(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function QS(e,t){var r=e.style,n=e.shape,a=Qk[e.type],i={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&H_(e)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&Jk(e))&&!(l<1)){s=e.type;var f=Math.pow(10,u);a[0](n,i,f)}else{var c=!e.path||e.shapeChanged();e.path||e.createPathProxy();var h=e.path;c&&(h.beginPath(),e.buildPath(h,e.shape),e.pathUpdated());var v=h.getVersion(),d=e,p=d.__svgPathBuilder;(d.__svgPathVersion!==v||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new US),p.reset(u),h.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=v,d.__svgPathStrokePercent=l),i.d=p.getStr()}return Ed(i,e.transform),Pd(i,r,e,t),kd(i,e),t.animation&&Su(e,i,t),t.emphasis&&qk(e,i,t),zt(s,e.id+"",i)}function tE(e,t){var r=e.style,n=r.image;if(n&&!$(n)&&(KS(n)?n=n.src:jS(n)&&(n=n.toDataURL())),!!n){var a=r.x||0,i=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),Ed(l,e.transform),Pd(l,r,e,t),kd(l,e),t.animation&&Su(e,l,t),zt("image",e.id+"",l)}}function eE(e,t){var r=e.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var a=r.font||Dr,i=r.x||0,o=hC(r.y||0,Lo(a),r.textBaseline),s=cC[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(y1(r)){var u="",f=r.fontStyle,c=m1(r.fontSize);if(!parseFloat(c))return;var h=r.fontFamily||m_,v=r.fontWeight;u+="font-size:"+c+";font-family:"+h+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),Ed(l,e.transform),Pd(l,r,e,t),kd(l,e),t.animation&&Su(e,l,t),zt("text",e.id+"",l,void 0,n)}}function uy(e,t){if(e instanceof vt)return QS(e,t);if(e instanceof hr)return tE(e,t);if(e instanceof lo)return eE(e,t)}function rE(e,t,r){var n=e.style;if(vC(n)){var a=dC(e),i=r.shadowCache,o=i[a];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,h=n.shadowBlur,v=no(n.shadowColor),d=v.opacity,p=v.color,g=h/2/l,m=h/2/u,y=g+" "+m;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=zt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[zt("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:y,"flood-color":p,"flood-opacity":d})]),i[a]=o}t.filter=Kl(o)}}function JS(e,t,r,n){var a=e[r],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(z_(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(V_(a))i="radialGradient",o.cx=X(a.x,.5),o.cy=X(a.y,.5),o.r=X(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=Rc(s[u].offset)*100+"%",h=s[u].color,v=no(h),d=v.color,p=v.opacity,g={offset:c};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(zt("stop",u+"",g))}var m=zt(i,"",o,l),y=Ld(m),_=n.gradientCache,b=_[y];b||(b=n.zrId+"-g"+n.gradientIdx++,_[y]=b,o.id=b,n.defs[b]=zt(i,b,o,l)),t[r]=Kl(b)}
19function tx(e,t,r,n){var a=e.style[r],i=e.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(F_(a)){var h=a.imageWidth,v=a.imageHeight,d=void 0,p=a.image;if($(p)?d=p:KS(p)?d=p.src:jS(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Ae(h,g),Ae(v,g)}else if(h==null||v==null){var m=function(T,D){if(T){var L=T.elm,A=h||D.width,P=v||D.height;T.tag==="pattern"&&(u?(P=1,A/=i.width):f&&(A=1,P/=i.height)),T.attrs.width=A,T.attrs.height=P,L&&(L.setAttribute("width",A),L.setAttribute("height",P))}},y=Iv(d,null,e,function(T){l||m(S,T),m(c,T)});y&&y.width&&y.height&&(h=h||y.width,v=v||y.height)}c=zt("image","img",{href:d,width:h,height:v}),o.width=h,o.height=v}else a.svgElement&&(c=rt(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(c){var _,b;l?_=b=1:u?(b=1,_=o.width/i.width):f?(_=1,b=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),b!=null&&!isNaN(b)&&(o.height=b);var x=W_(a);x&&(o.patternTransform=x);var S=zt("pattern","",o,[c]),w=Ld(S),C=n.patternCache,M=C[w];M||(M=n.zrId+"-p"+n.patternIdx++,C[w]=M,o.id=M,S=n.defs[M]=zt("pattern",M,o,[c])),t[r]=Kl(M)}}function nE(e,t,r){var n=r.clipPathCache,a=r.defs,i=n[e.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var o={id:i};n[e.id]=i,a[i]=zt("clipPath",i,o,[QS(e,r)])}t["clip-path"]=Kl(i)}function fy(e){return document.createTextNode(e)}function Vn(e,t,r){e.insertBefore(t,r)}function cy(e,t){e.removeChild(t)}function hy(e,t){e.appendChild(t)}function ex(e){return e.parentNode}function rx(e){return e.nextSibling}function Hf(e,t){e.textContent=t}var vy=58,aE=120,iE=zt("","");function kh(e){return e===void 0}function Je(e){return e!==void 0}function oE(e,t,r){for(var n={},a=t;a<=r;++a){var i=e[a].key;i!==void 0&&(n[i]=a)}return n}function Fi(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function xo(e){var t,r=e.children,n=e.tag;if(Je(n)){var a=e.elm=XS(n);if(Rd(iE,e),N(r))for(t=0;t<r.length;++t){var i=r[t];i!=null&&hy(a,xo(i))}else Je(e.text)&&!K(e.text)&&hy(a,fy(e.text))}else e.elm=fy(e.text);return e.elm}function nx(e,t,r,n,a){for(;n<=a;++n){var i=r[n];i!=null&&Vn(e,xo(i),t)}}function Rl(e,t,r,n){for(;r<=n;++r){var a=t[r];if(a!=null)if(Je(a.tag)){var i=ex(a.elm);cy(i,a.elm)}else cy(e,a.elm)}}function Rd(e,t){var r,n=t.elm,a=e&&e.attrs||{},i=t.attrs||{};if(a!==i){for(r in i){var o=i[r],s=a[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==aE?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(zk,r,o):r.charCodeAt(3)===vy?n.setAttributeNS(Vk,r,o):r.charCodeAt(5)===vy?n.setAttributeNS(YS,r,o):n.setAttribute(r,o))}for(r in a)r in i||n.removeAttribute(r)}}function sE(e,t,r){for(var n=0,a=0,i=t.length-1,o=t[0],s=t[i],l=r.length-1,u=r[0],f=r[l],c,h,v,d;n<=i&&a<=l;)o==null?o=t[++n]:s==null?s=t[--i]:u==null?u=r[++a]:f==null?f=r[--l]:Fi(o,u)?(Pa(o,u),o=t[++n],u=r[++a]):Fi(s,f)?(Pa(s,f),s=t[--i],f=r[--l]):Fi(o,f)?(Pa(o,f),Vn(e,o.elm,rx(s.elm)),o=t[++n],f=r[--l]):Fi(s,u)?(Pa(s,u),Vn(e,s.elm,o.elm),s=t[--i],u=r[++a]):(kh(c)&&(c=oE(t,n,i)),h=c[u.key],kh(h)?Vn(e,xo(u),o.elm):(v=t[h],v.tag!==u.tag?Vn(e,xo(u),o.elm):(Pa(v,u),t[h]=void 0,Vn(e,v.elm,o.elm))),u=r[++a]);(n<=i||a<=l)&&(n>i?(d=r[l+1]==null?null:r[l+1].elm,nx(e,d,r,a,l)):Rl(e,t,n,i))}function Pa(e,t){var r=t.elm=e.elm,n=e.children,a=t.children;e!==t&&(Rd(e,t),kh(t.text)?Je(n)&&Je(a)?n!==a&&sE(r,n,a):Je(a)?(Je(e.text)&&Hf(r,""),nx(r,null,a,0,a.length-1)):Je(n)?Rl(r,n,0,n.length-1):Je(e.text)&&Hf(r,""):e.text!==t.text&&(Je(n)&&Rl(r,n,0,n.length-1),Hf(r,t.text)))}function lE(e,t){if(Fi(e,t))Pa(e,t);else{var r=e.elm,n=ex(r);xo(t),n!==null&&(Vn(n,t.elm,rx(r)),Rl(n,[e],0,0))}return t}var uE=0,fE=(function(){function e(t,r,n){if(this.type="svg",this.refreshHover=dy(),this.configLayer=dy(),this.storage=r,this._opts=n=O({},n),this.root=t,this._id="zr"+uE++,this._oldVNode=ry(n.width,n.height),t&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=XS("svg");Rd(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;
19left:0;top:0;user-select:none",lE(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return uy(t,Ph(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=Ph(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=cE(n,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=zt("g","main",{},[]);this._paintList(r,i,l?l.children:o),l&&o.push(l);var u=F(mt(i.defs),function(h){return i.defs[h]});if(u.length&&o.push(zt("defs","defs",{},u)),t.animation){var f=Wk(i.cssNodes,i.cssAnims,{newline:!0});if(f){var c=zt("style","stl",{},[],f);o.push(c)}}return ry(n,a,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},Ld(this.renderToVNode({animation:X(t.cssAnimation,!0),emphasis:X(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:X(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var a=t.length,i=[],o=0,s,l,u=0,f=0;f<a;f++){var c=t[f];if(!c.invisible){var h=c.__clipPaths,v=h&&h.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(v-1,d-1);p>=0&&!(h&&l&&h[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var m=p+1;m<v;m++){var y={};nE(h[m],y,r);var _=zt("g","clip-g-"+u++,y,[]);(s?s.children:n).push(_),i[o++]=_,s=_}l=h;var b=uy(c,r);b&&(s?s.children:n).push(b)}}},e.prototype.resize=function(t,r){var n=this._opts,a=this.root,i=this._viewport;if(t!=null&&(n.width=t),r!=null&&(n.height=r),a&&i&&(i.style.display="none",t=pm(a,0,n),r=pm(a,1,n),i.style.display=""),this._width!==t||this._height!==r){if(this._width=t,this._height=r,i){var o=i.style;o.width=t+"px",o.height=r+"px"}if(xv(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",r))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var r=this.renderToString(),n="data:image/svg+xml;";return t?(r=gC(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},e})();function dy(e){return function(){}}function cE(e,t,r,n){var a;if(r&&r!=="none")if(a=zt("rect","bg",{width:e,height:t,x:"0",y:"0"}),G_(r))JS({fill:r},a.attrs,"fill",n);else if(xv(r))tx({style:{fill:r},dirty:Qt,getBoundingRect:function(){return{width:e,height:t}}},a.attrs,"fill",n);else{var i=no(r),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}function hE(e){e.registerPainter("svg",fE)}var vE=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return wd(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Lt,a=aa("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(a),a.setStyle(r.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=r.itemHeight*.8,u=aa(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=V.color.neutral00,u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(cr);function Od(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=Qa(e,t,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<r.length;o++)i.push(Qa(e,t,r[o]));return i.join(" ")}}function ax(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!N(t))return t+"";for(var n=[],a=0;a<r.length;a++){var i=e.getDimensionIndex(r[a]);i>=0&&n.push(t[i])}return n.join(" ")}var Bd=(function(e){Y(t,e);function t(r,n,a,i){var o=e.call(this)||this;return o.updateData(r,n,a,i),o}return t.prototype._createSymbol=function(r,n,a,i,o,s){this.removeAll();var l=aa(r,-1,-1,2,2,null,s);l.attr({z2:X(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=dE,this._symbolType=r,this.add(l)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){ta(this.childAt(0))},t.prototype.downplay=function(){ea(this.childAt(0))},t.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},t.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},t.prototype.updateData=function(r,n,a,i){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=t.getSymbolZ2(r,n),f=o!==this._symbolType,c=i&&i.disableAnimation;if(f){var h=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,h)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(d):ve(v,d,s,n),V1(v)}if(this._updateCommon(r,n,l,a,i),f){var v=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Ge(v,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,a,i,o){var s=this.childAt(0),l=r.hostModel,u,f,c,h,v,d,p,g,m;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,d=i.emphasisDisabled),!i||r.hasItemOption){var y=i&&i.itemModel?i.itemModel:r.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=si(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var x=_u(r.getItemVisual(n,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),m&&s.attr("cursor",m);var S=r.getItemVisual(n,"style"),w=S.fill;if(s instanceof hr){var C=s.style;s.useStyle(O({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},S))}else s.__isEmptyBrush?s.useStyle(O({},S)):s.useStyle(S),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=r.getItemVisual(n,"liftZ"),T=this._z2;M!=null?T==null&&(this._z2=s.z2,s.z2+=M):T!=null&&(s.z2=T,this._z2=null);var D=o&&o.useNameLabel;Bo(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:w,defaultOpacity:S.opacity});function L(k){return D?r.getName(k):Od(r,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var A=s.ensureState("emphasis");A.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;A.scaleX=this._sizeX*P,A.scaleY=this._sizeY*P,this.setSymbolScale(1),uo(this,h,v,d)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,a){var i=this.childAt(0),o=ct(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&_l(l,{style:{opacity:0}
19},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();_l(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return pd(r.getItemVisual(n,"symbolSize"))},t.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},t})(Lt);function dE(e,t){this.parent.drift(e,t)}function Wf(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function py(e){return e!=null&&!K(e)&&(e={isIgnore:e}),e||{}}function gy(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:si(t),cursorStyle:t.get("cursor")}}var ix=(function(){function e(t){this.group=new Lt,this._SymbolCtor=t||Bd}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=py(r);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=gy(t),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return t.getItemLayout(c)};i||n.removeAll(),t.diff(i).add(function(c){var h=f(c);if(Wf(t,h,c,r)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=i.getItemGraphicEl(h),d=f(c);if(!Wf(t,d,c,r)){n.remove(v);return}var p=t.getItemVisual(c,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):ve(v,m,a)}n.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=f,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=gy(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=py(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=r.getItemLayout(i);if(Wf(r,o,i,n)){var s=new this._SymbolCtor(r,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){Oo(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},n.hostModel)}):r.removeAll()},e})();function ox(e,t,r){var n=e.getBaseAxis(),a=e.getOtherAxis(n),i=pE(a,r),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=F(e.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return ia(t,c[0])&&(h=!0,c[0]=v),ia(t,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function pE(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:xt(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function sx(e,t,r,n){var a=NaN;e.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=r.get(e.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function gE(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,a){r.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function mE(e,t,r,n,a,i,o,s){for(var l=gE(e,t),u=[],f=[],c=[],h=[],v=[],d=[],p=[],g=ox(a,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<l.length;_++){var b=l[_],x=!0,S=void 0,w=void 0;switch(b.cmd){case"=":S=b.idx*2,w=b.idx1*2;var C=m[S],M=m[S+1],T=y[w],D=y[w+1];(isNaN(C)||isNaN(M))&&(C=T,M=D),u.push(C,M),f.push(T,D),c.push(r[S],r[S+1]),h.push(n[w],n[w+1]),p.push(t.getRawIndex(b.idx1));break;case"+":var L=b.idx,A=g.dataDimsForPoint,P=a.dataToPoint([t.get(A[0],L),t.get(A[1],L)]);w=L*2,u.push(P[0],P[1]),f.push(y[w],y[w+1]);var k=sx(g,a,t,L);c.push(k[0],k[1]),h.push(n[w],n[w+1]),p.push(t.getRawIndex(L));break;case"-":x=!1}x&&(v.push(b),d.push(d.length))}d.sort(function(_t,Vt){return p[_t]-p[Vt]});for(var E=u.length,B=xr(E),R=xr(E),z=xr(E),G=xr(E),H=[],_=0;_<d.length;_++){var U=d[_],j=_*2,st=U*2;B[j]=u[st],B[j+1]=u[st+1],R[j]=f[st],R[j+1]=f[st+1],z[j]=c[st],z[j+1]=c[st+1],G[j]=h[st],G[j+1]=h[st+1],H[_]=v[U]}return{current:B,next:R,stackedOnCurrent:z,stackedOnNext:G,status:H}}var zr=Math.min,Vr=Math.max;function Qn(e,t){return isNaN(e)||isNaN(t)}function Eh(e,t,r,n,a,i,o,s,l){for(var u,f,c,h,v,d,p=r,g=0;g<n;g++){var m=t[p*2],y=t[p*2+1];if(p>=a||p<0)break;if(Qn(m,y)){if(l){p+=i;continue}break}if(p===r)e[i>0?"moveTo":"lineTo"](m,y),c=m,h=y;else{var _=m-u,b=y-f;if(_*_+b*b<.5){p+=i;continue}if(o>0){for(var x=p+i,S=t[x*2],w=t[x*2+1];S===m&&w===y&&g<n;)g++,x+=i,p+=i,S=t[x*2],w=t[x*2+1],m=t[p*2],y=t[p*2+1],_=m-u,b=y-f;var C=g+1;if(l)for(;Qn(S,w)&&C<n;)C++,x+=i,S=t[x*2],w=t[x*2+1];var M=.5,T=0,D=0,L=void 0,A=void 0;if(C>=n||Qn(S,w))v=m,d=y;else{T=S-u,D=w-f;var P=m-u,k=S-m,E=y-f,B=w-y,R=void 0,z=void 0;if(s==="x"){R=Math.abs(P),z=Math.abs(k);var G=T>0?1:-1;v=m-G*R*o,d=y,L=m+G*z*o,A=y}else if(s==="y"){R=Math.abs(E),z=Math.abs(B);var H=D>0?1:-1;v=m,d=y-H*R*o,L=m,A=y+H*z*o}else R=Math.sqrt(P*P+E*E),z=Math.sqrt(k*k+B*B),M=z/(z+R),v=m-T*o*(1-M),d=y-D*o*(1-M),L=m+T*o*M,A=y+D*o*M,L=zr(L,Vr(S,m)),A=zr(A,Vr(w,y)),L=Vr(L,zr(S,m)),A=Vr(A,zr(w,y)
19),T=L-m,D=A-y,v=m-T*R/z,d=y-D*R/z,v=zr(v,Vr(u,m)),d=zr(d,Vr(f,y)),v=Vr(v,zr(u,m)),d=Vr(d,zr(f,y)),T=m-v,D=y-d,L=m+T*z/R,A=y+D*z/R}e.bezierCurveTo(c,h,v,d,m,y),c=L,h=A}else e.lineTo(m,y)}u=m,f=y,p+=i}return g}var lx=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),yE=(function(e){Y(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:V.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new lx},t.prototype.buildPath=function(r,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Qn(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Qn(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=Eh(r,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=Ar.CMD,s,l,u=n==="x",f=[],c=0;c<i.length;){var h=i[c++],v=void 0,d=void 0,p=void 0,g=void 0,m=void 0,y=void 0,_=void 0;switch(h){case o.M:s=i[c++],l=i[c++];break;case o.L:if(v=i[c++],d=i[c++],_=u?(r-s)/(v-s):(r-l)/(d-l),_<=1&&_>=0){var b=u?(d-l)*_+l:(v-s)*_+s;return u?[r,b]:[b,r]}s=v,l=d;break;case o.C:v=i[c++],d=i[c++],p=i[c++],g=i[c++],m=i[c++],y=i[c++];var x=u?ll(s,v,p,m,r,f):ll(l,d,g,y,r,f);if(x>0)for(var S=0;S<x;S++){var w=f[S];if(w<=1&&w>=0){var b=u?Yt(l,d,g,y,w):Yt(s,v,p,m,w);return u?[r,b]:[b,r]}}s=m,l=y;break}}},t})(vt),_E=(function(e){Y(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(lx),bE=(function(e){Y(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new _E},t.prototype.buildPath=function(r,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Qn(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Qn(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=Eh(r,a,o,s,s,1,n.smooth,l,n.connectNulls);Eh(r,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t})(vt);function ux(e,t,r,n,a){var i=e.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new Ct({shape:{x:o,y:s,width:l,height:u}});if(t){var h=e.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=Z(a)?function(g){a(g,c)}:null;Ge(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return c}function fx(e,t,r){var n=e.getArea(),a=Wt(n.r0,1),i=Wt(n.r,1),o=new rn({shape:{cx:Wt(e.cx,1),cy:Wt(e.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,Ge(o,{shape:{endAngle:n.endAngle,r:i}},r)}return o}function SE(e,t,r,n,a){if(e){if(e.type==="polar")return fx(e,t,r);if(e.type==="cartesian2d")return ux(e,t,r,n,a)}else return null;return null}function xu(e,t){return e.type===t}function my(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function yy(e){for(var t=1/0,r=1/0,n=-1/0,a=-1/0,i=0;i<e.length;){var o=e[i++],s=e[i++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),a=Math.max(s,a))}return[[t,r],[n,a]]}function _y(e,t){var r=yy(e),n=r[0],a=r[1],i=yy(t),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function by(e){return xt(e)?e:e?.5:0}function xE(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),a=xr(n*2),i=0;i<n;i++){var o=sx(r,e,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Gr(e,t,r,n,a){var i=r.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],h=[];if(a){for(l=0;l<e.length;l+=2){var v=t||e;!isNaN(v[l])&&!isNaN(v[l+1])&&h.push(e[l],e[l+1])}e=h}for(l=0;l<e.length-2;l+=2)switch(c[0]=e[l+2],c[1]=e[l+3],f[0]=e[l],f[1]=e[l+1],s.push(f[0],f[1]),n){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function wE(e,t){var r=[],n=e.length,a,i;function o(f,c,h){var v=f.coord,d=(h-v)/(c.coord-v),p=uC(d,[f.color,c.color]);return{coord:h,color:p}}for(var s=0;s<n;
19s++){var l=e[s],u=l.coord;if(u<0)a=l;else if(u>t){i?r.push(o(i,l,t)):a&&r.push(o(a,l,0),o(a,l,t));break}else a&&(r.push(o(a,l,0)),a=null),r.push(l),i=l}return r}function TE(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=F(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=wE(u,a==="x"?r.getWidth():r.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,m=g-p;if(m<.001)return"transparent";I(h,function(_){_.offset=(_.coord-p)/m}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var y=new N1(0,0,0,0,h,!0);return y[a]=p,y[a+"2"]=g,y}}}function CE(e,t,r){var n=e.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(a&&ME(i,t))){var o=t.mapDimension(i.dim),s={};return I(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function ME(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Bd.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function DE(e,t){return isNaN(e)||isNaN(t)}function AE(e){for(var t=e.length/2;t>0&&DE(e[t*2-2],e[t*2-1]);t--);return t-1}function Sy(e,t){return[e[t*2],e[t*2+1]]}function IE(e,t,r){for(var n=e.length/2,a=r==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+a],!(isNaN(o)||isNaN(e[u*2+1-a]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function cx(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Ie.length;t++)if(e.get([Ie[t],"endLabel","show"]))return!0;return!1}function Uf(e,t,r,n){if(xu(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=cx(n)?function(v,d){e._endLabelOnDuring(v,d,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),f=ux(t,r,n,function(){var v=e._endLabel;v&&r&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return fx(t,r,n)}function LE(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),a=r.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||i,verticalAlign:e.get("verticalAlign")||o}}}var PE=(function(e){Y(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Lt,n=new ix;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=lt(this._changePolyState,this)},t.prototype.render=function(r,n,a){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=i.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,m=!n.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),b=ox(i,s,_),x=y&&xE(i,s,b),S=r.get("showSymbol"),w=r.get("connectNulls"),C=S&&!c&&CE(r,s,i),M=this._data;M&&M.eachItemGraphicEl(function(_t,Vt){_t.__temp&&(o.remove(_t),M.setItemGraphicEl(Vt,null))}),S||v.remove(),o.add(g);var T=c?!1:r.get("step"),D;i&&i.getArea&&r.get("clip",!0)&&(D=i.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var L=TE(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===i.type&&T===this._step))S&&v.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(_t){return[f[_t*2],f[_t*2+1]]}}),m&&this._initSymbolLabelAnimation(s,i,D),T&&(x&&(x=Gr(x,f,i,T,w)),f=Gr(f,null,i,T,w)),d=this._newPolyline(f),y?p=this._newPolygon(f,x):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(r,i,ra(L)),g.setClipPath(Uf(this,i,!0,r));else{y&&!p?p=this._newPolygon(f,x):p&&!y&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(r,i,ra(L));var A=g.getClipPath();if(A){var P=Uf(this,i,!1,r);Ge(A,{shape:P.shape},r)}else g.setClipPath(Uf(this,i,!0,r));S&&v.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,get
19SymbolPoint:function(_t){return[f[_t*2],f[_t*2+1]]}}),(!my(this._stackedOnPoints,x)||!my(this._points,f))&&(m?this._doUpdateAnimation(s,x,i,a,T,_,w):(T&&(x&&(x=Gr(x,f,i,T,w)),f=Gr(f,null,i,T,w)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:x})))}var k=r.getModel("emphasis"),E=k.get("focus"),B=k.get("blurScope"),R=k.get("disabled");if(d.useStyle(it(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),th(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var z=d.getState("emphasis").style;z.lineWidth=+d.style.lineWidth+1}ct(d).seriesIndex=r.seriesIndex,uo(d,E,B,R);var G=by(r.get("smooth")),H=r.get("smoothMonotone");if(d.setShape({smooth:G,smoothMonotone:H,connectNulls:w}),p){var U=s.getCalculationInfo("stackedOnSeries"),j=0;p.useStyle(it(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),U&&(j=by(U.get("smooth"))),p.setShape({smooth:G,stackedOnSmooth:j,smoothMonotone:H,connectNulls:w}),th(p,r,"areaStyle"),ct(p).seriesIndex=r.seriesIndex,uo(p,E,B,R)}var st=this._changePolyState;s.eachItemGraphicEl(function(_t){_t&&(_t.onHoverStateChange=st)}),this._polyline.onHoverStateChange=st,this._data=s,this._coordSys=i,this._stackedOnPoints=x,this._points=f,this._step=T,this._valueOrigin=_,r.get("triggerLineEvent")&&(this.packEventData(r,d),p&&this.packEventData(r,p))},t.prototype.packEventData=function(r,n){ct(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,a,i){var o=r.getData(),s=Jn(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=r.get("zlevel")||0,v=r.get("z")||0;u=new Bd(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ve.prototype.highlight.call(this,r,n,a,i)},t.prototype.downplay=function(r,n,a,i){var o=r.getData(),s=Jn(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Ve.prototype.downplay.call(this,r,n,a,i)},t.prototype._changePolyState=function(r){var n=this._polygon;lg(this._polyline,r),n&&lg(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new yE({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new bE({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(r,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");Z(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=Z(c)?c(null):c;r.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(a)if(o){var b=a,x=n.pointToCoord(g);i?(m=b.startAngle,y=b.endAngle,_=-x[1]/180*Math.PI):(m=b.r0,y=b.r,_=x[0])}else{var S=a;i?(m=S.x,y=S.x+S.width,_=v.x):(m=S.y+S.height,y=S.y,_=v.y)}var w=y===m?0:(_-m)/(y-m);l&&(w=1-w);var C=Z(c)?c(d):f*w+h,M=p.getSymbolPath(),T=M.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:C}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,a){var i=r.getModel("endLabel");if(cx(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ut({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=AE(l);f>=0&&(Bo(s,si(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?ax(o,v):Od(o,c
19)},enableTextSetter:!0},LE(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,b=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,x=(m?p:0)*(y?-1:1),S=(m?0:-p)*(y?-1:1),w=m?"x":"y",C=IE(c,b,w),M=C.range,T=M[1]-M[0],D=void 0;if(T>=1){if(T>1&&!v){var L=Sy(c,M[0]);u.attr({x:L[0]+x,y:L[1]+S}),o&&(D=h.getRawValue(M[0]))}else{var L=f.getPointOn(b,w);L&&u.attr({x:L[0]+x,y:L[1]+S});var A=h.getRawValue(M[0]),P=h.getRawValue(M[1]);o&&(D=vM(a,d,A,P,C.t))}i.lastFrameIndex=M[0]}else{var k=r===1||i.lastFrameIndex>0?M[0]:0,L=Sy(c,k);o&&(D=h.getRawValue(k)),u.attr({x:L[0]+x,y:L[1]+S})}if(o){var E=hu(u);typeof E.setLabelText=="function"&&E.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(r,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,h=mE(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(d=Gr(h.stackedOnCurrent,h.current,a,o,l),v=Gr(h.current,null,a,o,l),g=Gr(h.stackedOnNext,h.next,a,o,l),p=Gr(h.next,null,a,o,l)),_y(v,p)>3e3||f&&_y(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var m={shape:{points:p}};h.current!==v&&(m.shape.__points=h.next),u.stopAnimation(),ve(u,m,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),ve(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=h.status,b=0;b<_.length;b++){var x=_[b].cmd;if(x==="="){var S=r.getItemGraphicEl(_[b].idx1);S&&y.push({el:S,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,C=0;C<y.length;C++){var M=y[C].el,T=y[C].ptIdx*2;M.x=w[T],M.y=w[T+1],M.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(Ve);function kE(e,t){return{seriesType:e,plan:hd(),reset:function(r){var n=r.getData(),a=r.coordinateSystem;if(r.pipelineContext,!!a){var i=F(a.dimensions,function(c){return n.mapDimension(c)}).slice(0,2),o=i.length,s=n.getCalculationInfo("stackResultDimension");ia(n,i[0])&&(i[0]=s),ia(n,i[1])&&(i[1]=s);var l=n.getStore(),u=n.getDimensionIndex(i[0]),f=n.getDimensionIndex(i[1]);return o&&{progress:function(c,h){for(var v=c.end-c.start,d=xr(v*o),p=[],g=[],m=c.start,y=0;m<c.end;m++){var _=void 0;if(o===1){var b=l.get(u,m);_=a.dataToPoint(b,null,g)}else p[0]=l.get(u,m),p[1]=l.get(f,m),_=a.dataToPoint(p,null,g);d[y++]=_[0],d[y++]=_[1]}h.setLayout("points",d)}}}}}}var EE={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},RE=function(e){return Math.round(e.length/2)};function hx(e){return{seriesType:e,reset:function(t,r,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"?t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v)):i==="minmax"&&t.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/v));var d=void 0;$(i)?d=EE[i]:Z(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,d,RE))}}}}}function OE(e){e.registerChartView(PE),e.registerSeriesModel(vE),e.registerLayout(kE("line")),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,hx("line"))}var Rh=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return wd(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(r),s=i.dataToPoint(o);if(a)I(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),g=o[v],m=n[v]==="x1"||n[v]==="y1";if(m&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,b=1,x=0;x<d.length;x++){var S=d[x].coord,w=x===d.length-1?d[x-1].tickValue+b:d[x].tickValue;if(w===g){_=S;break}else if(w<g)y=S;else if(y!=null&&w>g){_=(S+y)/2;break}x===1&&(b=w-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t})(cr);cr.registerClass(Rh);var BE=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return wd(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Xv(Rh.defaultOption,{clip:!0,roundCap:!1,showBackgroun
19d:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:V.color.primary,borderWidth:2}},realtimeSort:!1}),t})(Rh),NE=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),xy=(function(e){Y(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new NE},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?c-f<v:f-c<v;d||(f=c-(h?v:-v));var p=Math.cos(f),g=Math.sin(f),m=Math.cos(c),y=Math.sin(c);d?(r.moveTo(p*o+a,g*o+i),r.arc(p*u+a,g*u+i,l,-Math.PI+f,f,!h)):r.moveTo(p*s+a,g*s+i),r.arc(a,i,s,f,c,!h),r.arc(m*u+a,y*u+i,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&r.arc(a,i,o,c,f,h)},t})(vt);function FE(e,t){t=t||{};var r=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return vl(n,a,i);var s=e(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,v=u.r0,d=(h+v)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=r?Math.abs(h-v)/2:0,_=Math.cos,b=Math.sin,x=f+h*_(p),S=c+h*b(p),w="left",C="top";switch(s){case"startArc":x=f+(v-l)*_(m),S=c+(v-l)*b(m),w="center",C="top";break;case"insideStartArc":x=f+(v+l)*_(m),S=c+(v+l)*b(m),w="center",C="bottom";break;case"startAngle":x=f+d*_(p)+Ms(p,l+y,!1),S=c+d*b(p)+Ds(p,l+y,!1),w="right",C="middle";break;case"insideStartAngle":x=f+d*_(p)+Ms(p,-l+y,!1),S=c+d*b(p)+Ds(p,-l+y,!1),w="left",C="middle";break;case"middle":x=f+d*_(m),S=c+d*b(m),w="center",C="middle";break;case"endArc":x=f+(h+l)*_(m),S=c+(h+l)*b(m),w="center",C="bottom";break;case"insideEndArc":x=f+(h-l)*_(m),S=c+(h-l)*b(m),w="center",C="top";break;case"endAngle":x=f+d*_(g)+Ms(g,l+y,!0),S=c+d*b(g)+Ds(g,l+y,!0),w="left",C="middle";break;case"insideEndAngle":x=f+d*_(g)+Ms(g,-l+y,!0),S=c+d*b(g)+Ds(g,-l+y,!0),w="right",C="middle";break;default:return vl(n,a,i)}return n=n||{},n.x=x,n.y=S,n.align=w,n.verticalAlign=C,n}}function zE(e,t,r,n){if(xt(n)){e.setTextConfig({rotation:n});return}else if(N(t)){e.setTextConfig({rotation:0});return}var a=e.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),e.setTextConfig({rotation:f})}function Ms(e,t,r){return t*Math.sin(e)*(r?-1:1)}function Ds(e,t,r){return t*Math.cos(e)*(r?1:-1)}function VE(e,t,r){var n=e.get("borderRadius");if(n==null)return{cornerRadius:0};N(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:F(n,function(i){return en(i,a)})}}var $f=Math.max,Yf=Math.min;function GE(e,t){var r=e.getArea&&e.getArea();if(xu(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=a,r.width+=a*2):(r.y-=a,r.height+=a*2)}}return r}var HE=(function(e){Y(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,a,i){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,a):this._renderNormal(r,n,a,i))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){Oo(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,a,i){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var h=r.isAnimationEnabled()?r:null,v=WE(r,u);v&&this._enableRealtimeSort(v,s,a);var d=r.get("clip",!0)||v,p=GE(u,s);o.removeClipPath();
19var g=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,b=[],x=this._backgroundEls,S=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function C(D){var L=As[u.type](s,D);if(!L)return null;var A=KE(u,c,L);return A.useStyle(y.getItemStyle()),u.type==="cartesian2d"?A.setShape("r",_):A.setShape("cornerRadius",_),b[D]=A,A}s.diff(l).add(function(D){var L=s.getItemModel(D),A=As[u.type](s,D,L);if(A&&(m&&C(D),!(!s.hasValue(D)||!Dy[u.type](A)))){var P=!1;d&&(P=wy[u.type](p,A));var k=Ty[u.type](r,s,D,A,c,h,f.model,!1,g);v&&(k.forceLabelAnimation=!0),Ay(k,s,D,L,A,r,c,u.type==="polar"),S?k.attr({shape:A}):v?Cy(v,h,k,A,D,c,!1,!1):Ge(k,{shape:A},r,D),s.setItemGraphicEl(D,k),o.add(k),k.ignore=P}}).update(function(D,L){var A=s.getItemModel(D),P=As[u.type](s,D,A);if(P){if(m){var k=void 0;x.length===0?k=C(L):(k=x[L],k.useStyle(y.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",_):k.setShape("cornerRadius",_),b[D]=k);var E=As[u.type](s,D),B=dx(c,E,u);ve(k,{shape:B},h,D)}var R=l.getItemGraphicEl(L);if(!s.hasValue(D)||!Dy[u.type](P)){o.remove(R);return}var z=!1;d&&(z=wy[u.type](p,P),z&&o.remove(R));var G=R&&(R.type==="sector"&&g||R.type==="sausage"&&!g);if(G&&(R&&Ys(R,r,L),R=null),R?V1(R):R=Ty[u.type](r,s,D,P,c,h,f.model,!0,g),v&&(R.forceLabelAnimation=!0),w){var H=R.getTextContent();if(H){var U=hu(H);U.prevValue!=null&&(U.prevValue=U.value)}}else Ay(R,s,D,A,P,r,c,u.type==="polar");S?R.attr({shape:P}):v?Cy(v,h,R,P,D,c,!0,w):ve(R,{shape:P},r,D,null),s.setItemGraphicEl(D,R),R.ignore=z,o.add(R)}}).remove(function(D){var L=l.getItemGraphicEl(D);L&&Ys(L,r,D)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new Lt);M.removeAll();for(var T=0;T<b.length;++T)M.add(b[T]);o.add(M),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(r,n,a){this._clear(),Ly(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),Ly(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&SE(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,a){var i=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,a){var i=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:F(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,a){for(var i=a.scale,o=r.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,a,i){if(this._isOrderChangedWithinSameData(r,n,a)){var o=this._dataSort(r,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,a){var i=n.baseAxis,o=this._dataSort(r,i,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackgroun
19d(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Ys(i,r,ct(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(Ve),wy={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,i=e.y+e.height,o=$f(t.x,e.x),s=Yf(t.x+t.width,a),l=$f(t.y,e.y),u=Yf(t.y+t.height,i),f=s<o,c=u<l;return t.x=f&&o>a?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var a=Yf(t.r,e.r),i=$f(t.r0,e.r0);t.r=a,t.r0=i;var o=a-i<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},Ty={cartesian2d:function(e,t,r,n,a,i,o,s,l){var u=new Ct({shape:O({},n),z2:1});if(u.__dataIndex=r,u.name="item",i){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(e,t,r,n,a,i,o,s,l){var u=!a&&l?xy:rn,f=new u({shape:n,z2:1});f.name="item";var c=vx(a);if(f.calculateTextPosition=FE(c,{isRoundCap:u===xy}),i){var h=f.shape,v=a?"r":"endAngle",d={};h[v]=a?n.r0:n.startAngle,d[v]=n[v],(s?ve:Ge)(f,{shape:d},i)}return f}};function WE(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function Cy(e,t,r,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?ve:Ge)(r,{shape:l},t,a,null);var f=t?e.baseAxis.model:null;(o?ve:Ge)(r,{shape:u},f,a)}function My(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var UE=["x","y","width","height"],$E=["cx","cy","r","startAngle","endAngle"],Dy={cartesian2d:function(e){return!My(e,UE)},polar:function(e){return!My(e,$E)}},As={cartesian2d:function(e,t,r){var n=e.getItemLayout(t);if(!n)return null;var a=r?XE(r,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function YE(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function vx(e){return(function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}})(e)}function Ay(e,t,r,n,a,i,o,s){var l=t.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var f=e.shape,c=VE(n.getModel("itemStyle"),f);O(f,c),e.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var h=n.getShallow("cursor");h&&e.attr("cursor",h);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",d=si(n);Bo(e,d,{labelFetcher:i,labelDataIndex:r,defaultText:Od(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=e.getTextContent();if(s&&p){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,zE(e,g==="outside"?v:g,vx(o),n.get(["label","rotate"]))}SA(p,d,i.getRawValue(r),function(y){return ax(t,y)});var m=n.getModel(["emphasis"]);uo(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),th(e,n),YE(a)&&(e.style.fill="none",e.style.stroke="none",I(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function XE(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var ZE=(function(){function e(){}return e})(),Iy=(function(e){Y(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new ZE},t.prototype.buildPath=function(r,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[i]=u,l[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],r.rect(s[0],s[1],l[0],l[1])},t})(vt);function Ly(e,t,r,n){var a=e.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=e.getModel("backgroundStyle"),u=a.getLayout("largeBackgroun
19dPoints");if(u){var f=new Iy({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),r&&r.push(f)}var c=new Iy({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,t.add(c),c.useStyle(a.getVisual("style")),c.style.stroke=null,ct(c).seriesIndex=e.seriesIndex,e.get("silent")||(c.on("mousedown",Py),c.on("mousemove",Py)),r&&r.push(c)}var Py=yu(function(e){var t=this,r=qE(t,e.offsetX,e.offsetY);ct(t).dataIndex=r>=0?r:null},30,!1);function qE(e,t,r){for(var n=e.baseDimIdx,a=1-n,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,f=0,c=i.length/3;f<c;f++){var h=f*3;if(l[n]=u,l[a]=i[h+2],s[n]=i[h+n],s[a]=i[h+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function dx(e,t,r){if(xu(r,"cartesian2d")){var n=t,a=r.getArea();return{x:e?n.x:a.x,y:e?a.y:n.y,width:e?n.width:a.width,height:e?a.height:n.height}}else{var a=r.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:i.r0,r:e?a.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:Math.PI*2}}}function KE(e,t,r){var n=e.type==="polar"?rn:Ct;return new n({shape:dx(t,r,e),silent:!0,z2:0})}function jE(e){e.registerChartView(HE),e.registerSeriesModel(BE),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,ot(xP,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,wP("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,hx("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var px={left:0,right:0,top:0,bottom:0},Ol=["25%","25%"],QE=(function(e){Y(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(r,n){var a=Fo(r.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&r.outerBounds&&on(r.outerBounds,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&on(this.option.outerBounds,r.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:px,outerBoundsContain:"all",outerBoundsClampWidth:Ol[0],outerBoundsClampHeight:Ol[1],backgroundColor:V.color.transparent,borderWidth:1,borderColor:V.color.neutral30},t})(yt),Oh=(function(e){Y(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Kt).models[0]},t.type="cartesian2dAxis",t})(yt);We(Oh,WP);var gx={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:V.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:V.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:V.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[V.color.backgroundTint,V.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:V.color.neutral00,borderColor:V.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},JE=ht({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},gx),Nd=ht({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:V.color.axisMinorSplitLine,width:1}}},gx),tR=ht({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Nd),eR=it({logBase:10},Nd);const rR={category:JE,value:Nd,time:tR,log:eR};var nR={value:1,category:1,time:1,log:1},aR=null;function iR(){return aR}function ky(e,t,r,n){I(nR,function(a,i){var o=ht(ht({},rR[i],!0),n,!0),s=(function(l){Y(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=vo(this),v=h?Fo(f):{},d=c.getTheme();ht(f,d.get(i+"Axis")),ht(f,this.getDefaultOption()),f.type=Ey(f),h&&on(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Mh.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){return{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u})(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",Ey)}function Ey(e){return e.type||(e.data?"category":"value")}var oR=(function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return F(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Mt(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e})(),Bh=["x","y"];function Ry(e){return(e.type==="interval"||e.type==="time")&&!e.hasBreaks()}var sR=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Bh,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Ry(r)||!Ry(n))){var a=r.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-a[0]*f,v=o[1]-i[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=Ao([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");
19return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var a=this.dataToPoint(r),i=this.dataToPoint(n),o=this.getArea(),s=new ut(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,a){a=a||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return De(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(r[0]),u=i.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n,a){if(a=a||[],this._invTransform)return De(a,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(r[0]),n),a[1]=o.coordToData(o.toLocalCoord(r[1]),n),a},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-r,o=Math.min(a[0],a[1])-r,s=Math.max(n[0],n[1])-i+r,l=Math.max(a[0],a[1])-o+r;return new ut(i,o,s,l)},t})(oR),lR=(function(e){Y(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t})(nk),uR="expandAxisBreak",Xr=Math.PI,fR=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],cR=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],wo=St(),mx=St(),yx=(function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var r=t.axis.dim,n=t.componentIndex,a=this.recordMap,i=a[r]||(a[r]=[]);return i[n]||(i[n]={ready:{}})},e})();function hR(e,t,r,n){var a=r.axis,i=t.ensureRecord(r),o=[],s,l=Fd(e.axisName)&&ti(e.nameLocation);I(n,function(d){var p=sn(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?Ao(Ci,g.transform):_v(Ci),p.transform&&Gi(Ci,Ci,p.transform),ut.copy(Is,p.localRect),Is.applyTransform(Ci),s?s.union(Is):ut.copy(s=new ut(0,0,0,0),Is))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=a.getExtent(),h=Math.min(c[0],c[1]),v=Math.max(c[0],c[1])-h;s.union(new ut(h,0,v,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Ci=Cr(),Is=new ut(0,0,0,0),_x=function(e,t,r,n,a,i){if(ti(e.nameLocation)){var o=i.stOccupiedRect;o&&bx(sk({},o,i.transGroup.transform),n,a)}else Sx(i.labelInfoList,i.dirVec,n,a)};function bx(e,t,r){var n=new pt;Ad(e,t,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&lk(t,n)}function Sx(e,t,r,n){for(var a=pt.dot(n,t)>=0,i=0,o=e.length;i<o;i++){var s=e[a?i:o-1-i];s.label.ignore||bx(s,r,n)}}var Qr=(function(){function e(t,r,n,a){this.group=new Lt,this._axisModel=t,this._api=r,this._local={},this._shared=a||new yx(_x),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(t){var r=this._cfg.raw;r.position=t.position,r.labelOffset=t.labelOffset,this._resetCfgDetermined(r)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},a=X(t.axisName,r.get("name")),i=r.get("nameMoveOverlap");(i==null||i==="auto")&&(i=X(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:X(t.nameDirection,1),tickDirection:X(t.tickDirection,1),labelDirection:X(t.labelDirection,1),labelOffset:X(t.labelOffset,0),silent:X(t.silent,!0),axisName:a,nameLocation:Ga(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Fd(a)&&i,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new Lt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new pt(Math.cos(-o.rotation),Math.sin(-o.rotation))},e.prototype.build=function(t,r){var n=this;
19return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),I(vR,function(a){t[a]&&dR[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},e.innerTextLayout=function(t,r,n){var a=Q_(r-t),i,o;return dl(a)?(o=n>0?"top":"bottom",i="center"):dl(a-Xr)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Xr?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e})(),vR=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],dR={axisLine:function(e,t,r,n,a,i,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=i.transform,f=[l[0],0],c=[l[1],0],h=f[0]>c[0];u&&(De(f,f,u),De(c,c,u));var v=O({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())iR().buildAxisBreakLine(n,a,i,d);else{var p=new Ir(O({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));co(p.shape,p.style.lineWidth),p.anid="line",a.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var m=n.get(["axisLine","symbolSize"]);$(g)&&(g=[g,g]),($(m)||xt(m))&&(m=[m,m]);var y=_u(n.get(["axisLine","symbolOffset"])||0,m),_=m[0],b=m[1];I([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(x,S){if(g[S]!=="none"&&g[S]!=null){var w=aa(g[S],-_/2,-b/2,_,b,v.stroke,!0),C=x.r+x.offset,M=h?c:f;w.attr({rotation:x.rotate,x:M[0]+C*Math.cos(e.rotation),y:M[1]-C*Math.sin(e.rotation),silent:!0,z2:11}),a.add(w)}})}}},axisTickLabelEstimate:function(e,t,r,n,a,i,o,s){var l=By(t,a,s);l&&Oy(e,t,r,n,a,i,o,He.estimate)},axisTickLabelDetermine:function(e,t,r,n,a,i,o,s){var l=By(t,a,s);l&&Oy(e,t,r,n,a,i,o,He.determine);var u=yR(e,a,i,n);mR(e,t.labelLayoutList,u),_R(e,a,i,n,e.tickDirection)},axisName:function(e,t,r,n,a,i,o,s){var l=r.ensureRecord(n);t.nameEl&&(a.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=e.axisName;if(Fd(u)){var f=e.nameLocation,c=e.nameDirection,h=n.getModel("nameTextStyle"),v=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new pt(0,0),m=new pt(0,0);f==="start"?(g.x=d[0]-p*v,m.x=-p):f==="end"?(g.x=d[1]+p*v,m.x=p):(g.x=(d[0]+d[1])/2,g.y=e.labelOffset+c*v,m.y=c);var y=Cr();m.transform(bv(y,y,e.rotation));var _=n.get("nameRotate");_!=null&&(_=_*Xr/180);var b,x;ti(f)?b=Qr.innerTextLayout(e.rotation,_??e.rotation,c):(b=pR(e.rotation,f,_||0,d),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=h.getFont(),w=n.get("nameTruncate",!0)||{},C=w.ellipsis,M=ro(e.raw.nameTruncateMaxWidth,w.maxWidth,x),T=s.nameMarginLevel||0,D=new Ut({x:g.x,y:g.y,rotation:b.rotation,silent:Qr.isLabelSilent(n),style:nn(h,{text:u,font:S,overflow:"truncate",width:M,ellipsis:C,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||b.textAlign,verticalAlign:h.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(Ro({el:D,componentModel:n,itemName:u}),D.__fullText=u,D.anid="name",n.get("triggerEvent")){var L=Qr.makeAxisEventDataBase(n);L.targetType="axisName",L.name=u,ct(D).eventData=L}i.add(D),D.updateTransform(),t.nameEl=D;var A=l.nameLayout=sn({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:ti(f)?fR[T]:cR[T]});if(l.nameLocation=f,a.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&A){var P=r.ensureRecord(n);r.resolveAxisNameOverlap(e,r,n,A,m,P)}}}};function Oy(e,t,r,n,a,i,o,s){Tx(t)||bR(e,t,a,s,n,o);var l=t.labelLayoutList;SR(e,n,l,i),e.rotation;var u=e.optionHideOverlap;gR(n,l,u),u&&uk(Mt(l,function(f){return f&&!f.label.ignore})),hR(e,r,n,l)}function pR(e,t,r,n){var a=Q_(r-e),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return dl(a-Xr/2)?(o=l?"bottom":"top",i="center"):dl(a-Xr*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<Xr*1.5&&a>
19Xr/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function gR(e,t,r){if(DS(e.axis))return;function n(s,l,u){var f=sn(t[l]),c=sn(t[u]);if(!(!f||!c)){if(s===!1||f.suggestIgnore){zi(f.label);return}if(c.suggestIgnore){zi(c.label);return}var h=.1;if(!r){var v=[0,0,0,0];f=Km({marginForce:v},f),c=Km({marginForce:v},c)}Ad(f,c,null,{touchThreshold:h})&&zi(s?c.label:f.label)}}var a=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]),o=t.length;n(a,0,1),n(i,o-1,o-2)}function mR(e,t,r){e.showMinorTicks||I(t,function(n){if(n&&n.label.ignore)for(var a=0;a<r.length;a++){var i=r[a],o=mx(i),s=wo(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){zi(i);return}}})}function zi(e){e&&(e.ignore=!0)}function xx(e,t,r,n,a){for(var i=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(De(o,o,t),De(s,s,t));var f=new Ir({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});co(f.shape,f.style.lineWidth),f.anid=a+"_"+e[l].tickValue,i.push(f);var c=mx(f);c.onBand=!!e[l].onBand,c.tickValue=e[l].tickValue}return i}function yR(e,t,r,n){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=e.tickDirection*i.get("length"),u=a.getTicksCoords(),f=xx(u,r.transform,l,it(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)t.add(f[c]);return f}function _R(e,t,r,n,a){var i=n.axis,o=n.getModel("minorTick");if(!(!e.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=a*o.get("length"),f=it(l.getLineStyle(),it(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var h=xx(s[c],r.transform,u,f,"minorticks_"+c),v=0;v<h.length;v++)t.add(h[v])}}function By(e,t,r){if(Tx(e)){var n=e.axisLabelsCreationContext,a=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(t.remove(e.labelGroup),Nh(e,null,null,null))}return!0}function bR(e,t,r,n,a,i){var o=a.axis,s=ro(e.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new Lt;r.add(l);var u=Pl(n);if(!s||o.scale.isBlank()){Nh(t,[],l,u);return}var f=a.getModel("axisLabel"),c=o.getViewLabels(u),h=(ro(e.raw.labelRotate,f.get("rotate"))||0)*Xr/180,v=Qr.innerTextLayout(e.rotation,h,e.labelDirection),d=a.getCategories&&a.getCategories(!0),p=[],g=a.get("triggerEvent"),m=1/0,y=-1/0;I(c,function(b,x){var S,w=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(b.tickValue):b.tickValue,C=b.formattedLabel,M=b.rawLabel,T=f;if(d&&d[w]){var D=d[w];K(D)&&D.textStyle&&(T=new At(D.textStyle,f,a.ecModel))}var L=T.getTextColor()||a.get(["axisLine","lineStyle","color"]),A=T.getShallow("align",!0)||v.textAlign,P=X(T.getShallow("alignMinLabel",!0),A),k=X(T.getShallow("alignMaxLabel",!0),A),E=T.getShallow("verticalAlign",!0)||T.getShallow("baseline",!0)||v.textVerticalAlign,B=X(T.getShallow("verticalAlignMinLabel",!0),E),R=X(T.getShallow("verticalAlignMaxLabel",!0),E),z=10+(((S=b.time)===null||S===void 0?void 0:S.level)||0);m=Math.min(m,z),y=Math.max(y,z);var G=new Ut({x:0,y:0,rotation:0,silent:Qr.isLabelSilent(a),z2:z,style:nn(T,{text:C,align:x===0?P:x===c.length-1?k:A,verticalAlign:x===0?B:x===c.length-1?R:E,fill:Z(L)?L(o.type==="category"?M:o.type==="value"?w+"":w,x):L})});G.anid="label_"+w;var H=wo(G);if(H.break=b.break,H.tickValue=w,H.layoutRotation=v.rotation,Ro({el:G,componentModel:a,itemName:C,formatterParamsExtra:{isTruncated:function(){return G.isTruncated},value:M,tickIndex:x}}),g){var U=Qr.makeAxisEventDataBase(a);U.targetType="axisLabel",U.value=M,U.tickIndex=x,b.break&&(U.break={start:b.break.parsedBreak.vmin,end:b.break.parsedBreak.vmax}),o.type==="category"&&(U.dataIndex=w),ct(G).eventData=U,b.break&&wR(a,i,G,b.break)}p.push(G),l.add(G)});var _=F(p,function(b){return{label:b,priority:wo(b).break?b.z2+(y-m+1):b.z2,defaultAttr:{ignore:b.ignore}}});Nh(t,_,l,u)}function Tx(e){return!!e.labelLayoutList}function Nh(e,t,r,n){e.labelLayoutList=t,e.labelGroup=r,e.axisLabelsCreationContext=n}function SR(e,t,r,n){var a=t.get(["axisLabel","margin"]);I(r,function(i,o){var s=sn(i);if(s){var l=s.label,u=wo(l);s.suggestIgnore=l.ignore,l.ignore=!1,hl(yr,xR),yr.x=t.axis.dataToCoord(u.tickValue),yr.y=e.labelOffset+e.labelDirection*a,yr.rotation=u.layoutRotation,n.add(yr),yr.updateTransform(),n.remove(yr),yr.decomposeTransform(),hl(l,yr),l.markRedraw(),El(s,!0),sn(s)}})}var yr=new Ct,xR=new Ct;function Fd(e){return!!e}function wR(e,t,r,n){r.on("click",function(a){var i={type:uR,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(i)})}function Bl(e,t,r){r=r||{};var n=t.axis,a={},i=n.getAxesOnZeroOf()[0],o=n.position,s=i?"onZero":o,l=n.dim,u=[e.x,e.x+e.width,e.y,e.y+e.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,h=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(i){var v=i.toGlobalCoord(i.dataToCoord(0));h[f.onZero]=Math.max(Math.min(v,h[1]),h[0])}a.position=[l==="y"?h[f[s]]:u[0],l==="x"?h[f[s]]:u[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],a.labelOffset=i?h[f[o]]-h[f.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),ro(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var p=t.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-p:p,a.z2=1,a}function TR(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Ny(e){var t={xAxisModel:null,yAxisModel:null};return I(t,function(r,n){var a=n.replace(/Model$/,""),i=e.getReferringComponents(a,Kt).models[0];t[n]=i}),t}function CR(e,t,r,n,a,i){for(var o=Bl(e,r),s=!1,l=!1,u=0;u<t.length;u++)Th(t[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new Qr(r,n,o,a)}function MR(e,t,r){var n=Bl(t,r);e.updateCfg(n)}function DR(e,t,r){var n=Ja.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,{expandToNicedExtent:!0}),o=a.length-1,s=n.getInterval.call(r),l=MS(e,t),u=l.extent,f=l.fixMin,c=l.fixMax;e.type==="log"&&(u=Ch(e.base,u,!0)),e.setBreaksFromOption(IS(t)),e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var h=n.getExtent.call(e);f&&(u[0]=h[0]),c&&(u[1]=h[1]);var v=n.getInterval.call(e),d=u[0],p=u[1];if(f&&c)v=(p-d)/o;else if(f)for(p=u[0]+v*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)v=Bf(v),p=u[0]+v*o;else if(c)for(d=u[1]-v*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)v=Bf(v),d=u[1]-v*o;else{var g=e.getTicks().length-1;g>o&&(v=Bf(v));var m=v*o;p=Math.ceil(u[1]/v)*v,d=Wt(p-m),d<0&&u[0]>=0?(d=0,p=Wt(m)):p>0&&u[1]<=0&&(p=0,d=-Wt(m))}var y=(a[0].value-i[0].value)/s,_=(a[o].value-i[o].value)/s;n.setExtent.call(e,d+v*y,p+v*_),n.setInterval.call(e,v),(y||_)&&n.setNiceExtent.call(e,d+v,p-v)}var Fy=[[3,1],[0,2]],AR=(function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Bh,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=mt(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;Th(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):($m(p,d),Th(p)&&(s=v))}f.length&&(s||(s=f.pop(),$m(s.scale,s.model)),I(f,function(g){DR(g.scale,g.model,s.scale)}
19))}}a(n.x),a(n.y);var i={};I(n.x,function(o){zy(n,"y",o,i)}),I(n.y,function(o){zy(n,"x",o,i)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var a=pu(t,r),i=this._rect=an(t.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(Fh(o,i),!n){var u=PR(i,s,o,l,r),f=void 0;if(l)zh?(zh(this._axesList,i),Fh(o,i)):f=Hy(i.clone(),"axisLabel",null,i,o,u,a);else{var c=kR(t,i,a),h=c.outerBoundsRect,v=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;h&&(f=Hy(h,v,d,i,o,u,a))}Cx(i,o,He.determine,null,f,a)}I(this._coordsList,function(p){p.calcAffineTransform()})},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}K(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===r)return i[a]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",Kt).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",Kt).models[0],i=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ft(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,I(s.x,function(f,c){I(s.y,function(h,v){var d="x"+c+"y"+v,p=new sR(d);p.master=a,p.model=t,a._coordsMap[d]=p,a._coordsList.push(p),p.addAxis(f),p.addAxis(h)})});function u(f){return function(c,h){if(Xf(c,t)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new lR(f,VP(c),[0,0],c.get("type"),v),p=d.type==="category";d.onBand=p&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=i,d.index=h,i._axesList.push(d),s[f][h]=d,l[f]++}}}},e.prototype._updateScale=function(t,r){I(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),t.eachSeries(function(a){if(TR(a)){var i=Ny(a),o=i.xAxisModel,s=i.yAxisModel;if(!Xf(o,r)||!Xf(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),f=l.getAxis("x"),c=l.getAxis("y");n(u,f),n(u,c)}},this);function n(a,i){I(AS(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return I(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);ft(r,i)<0&&r.push(i),ft(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(a,i){var o=new e(a,t,r);o.name="grid_"+i,o.resize(a,r,!0),a.coordinateSystem=o,n.push(o)}),t.eachSeries(function(a){jA({targetModel:a,coordSysType:"cartesian2d",coordSysProvider:i});function i(){var o=Ny(a),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),n},e.dimensions=Bh,e})();function Xf(e,t){return e.getCoordSysModel()===t}function zy(e,t,r,n){r.getAxesOnZeroOf=function(){return i?[i]:[]};var a=e[t],i,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Vy(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&Vy(a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function Vy(e){return e&&e.type!=="category"&&e.type!=="time"&&GP(e)}function IR(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(a){return a+t}:function(a){return n-a+t},e.toLocalCoord=e.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}function Fh(e,t){I(e.x,function(r){return Gy(r,t.x,t.width)}),I(e.y,function(r){return Gy(r,t.y,t.height)})}function Gy(e,t,r){var n=[0,r],a=e.inverse?1:0;e.setExtent(n[a],n[1-a]),IR(e,t)}var zh;function LR(e){zh=e}function Hy(e,t,r,n,a,i,o){Cx(n,a,He.estimate,t,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=pT(s,function(h){return h>0})==null;return bl(n,s,!0,!0,r),Fh(a,n),l;function u(h){I(a[zn[h]],function(v){if(bo(v.model)){var d=i.ensureRecord(v.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var m=p[g],y=v.scale.normalize(wo(m.label).tickValue);y=h===1?1-y:y,f(m.rect,h,y),f(m.rect,1-h,NaN)}var _=d.nameLayout;if(_){var y=ti(d.nameLocation)?.5:NaN;f(_.rect,h,y),f(_.rect,1-h,NaN)}}})}function f(h,v,d){var p=e[zn[v]]-h[zn[v]],g=h[fo[v]]+h[zn[v]]-(e[fo[v]]+e[zn[v]]);p=c(p,1-d),g=c(g,d);var m=Fy[v][0],y=Fy[v][1];s[m]=me(s[m],p),s[y]=me(s[y],g)}function c(h,v){return h>0&&!eo(v)&&v>1e-4&&(h/=v),h}}function PR(e,t,r,n,a){var i=new yx(ER);return I(r,function(o){return I(o,function(s){if(bo(s.model)){var l=!n;s.axisBuilder=CR(e,t,s.model,a,i,l)}})}),i}function Cx(e,t,r,n,a,i){var o=r===He.determine;I(t,function(u){return I(u,function(f){bo(f.model)&&(MR(f.axisBuilder,e,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[zn[1-u]]=e[fo[u]]<=i.refContainer[fo[u]]*.5?0:1-u===1?2:1}I(t,function(u,f){return I(u,function(c){bo(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}
19),o&&c.axisBuilder.build({axisLine:!0}))})})}function kR(e,t,r){var n,a=e.get("outerBoundsMode",!0);a==="same"?n=t.clone():(a==null||a==="auto")&&(n=an(e.get("outerBounds",!0)||px,r.refContainer));var i=e.get("outerBoundsContain",!0),o;i==null||i==="auto"||ft(["all","axisLabel"],i)<0?o="all":o=i;var s=[Uc(X(e.get("outerBoundsClampWidth",!0),Ol[0]),t.width),Uc(X(e.get("outerBoundsClampHeight",!0),Ol[1]),t.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var ER=function(e,t,r,n,a,i){var o=r.axis.dim==="x"?"y":"x";_x(e,t,r,n,a,i),ti(e.nameLocation)||I(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Sx(s.labelInfoList,s.dirVec,n,a)})};function RR(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return OR(r,e,t),r.seriesInvolved&&NR(r,e),r}function OR(e,t,r){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];I(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=To(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(I(s.getAxes(),ot(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&I(d.baseAxes,ot(p,v?"cross":!0,h)),v&&I(d.otherAxes,ot(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",a),b=_.get("show");if(!(!b||b==="auto"&&!g&&!Vh(_))){m==null&&(m=_.get("triggerTooltip")),_=g?BR(y,c,a,t,g,m):_;var x=_.get("snap"),S=_.get("triggerEmphasis"),w=To(y.model),C=m||x||y.type==="category",M=e.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:S,involveSeries:C,snap:x,useHandle:Vh(_),seriesModels:[],linkGroup:null};u[w]=M,e.seriesInvolved=e.seriesInvolved||C;var T=FR(i,y);if(T!=null){var D=o[T]||(o[T]={axesInfo:{}});D.axesInfo[w]=M,D.mapper=i[T].mapper,M.linkGroup=D}}}})}function BR(e,t,r,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};I(s,function(h){l[h]=rt(o.get(h))}),l.snap=e.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&it(u,c.textStyle)}}return e.model.getModel("axisPointer",new At(l,r,n))}function NR(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||I(e.coordSysAxesInfo[To(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function FR(e,t){for(var r=t.model,n=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(Zf(i[n+"AxisId"],r.id)||Zf(i[n+"AxisIndex"],r.componentIndex)||Zf(i[n+"AxisName"],r.name))return a}}function Zf(e,t){return e==="all"||N(e)&&ft(e,t)>=0||e===t}function zR(e){var t=zd(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Vh(r);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function zd(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[To(e)]}function VR(e){var t=zd(e);return t&&t.axisPointerModel}function Vh(e){return!!e.get(["handle","show"])}function To(e){return e.type+"||"+e.id}var Wy={},Mx=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.axisPointerClass&&zR(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},t.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},t.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=VR(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){Wy[r]=n},t.getAxisPointerClass=function(r){return r&&Wy[r]},t.type="axis",t})(de),Gh=St();function GR(e,t,r,n){var a=r.axis;
19if(!a.scale.isBlank()){var i=r.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=Gh(e).splitAreaColors,h=q(),v=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var g=a.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=N(s)?s:[s];for(var d=1;d<u.length;d++){var y=a.toGlobalCoord(u[d].coord),_=void 0,b=void 0,x=void 0,S=void 0;a.isHorizontal()?(_=g,b=l.y,x=y-_,S=l.height,g=_+x):(_=l.x,b=g,x=l.width,S=y-b,g=b+S);var w=u[d-1].tickValue;w!=null&&h.set(w,v),t.add(new Ct({anid:w!=null?"area_"+w:null,shape:{x:_,y:b,width:x,height:S},style:it({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%f}Gh(e).splitAreaColors=h}}}function HR(e){Gh(e).splitAreaColors=null}var WR=["splitArea","splitLine","minorSplitLine","breakArea"],Dx=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Lt,this.group.add(this._axisGroup),!!bo(r)){this._axisGroup.add(r.axis.axisBuilder.group),I(WR,function(l){r.get([l,"show"])&&UR[l](this,this._axisGroup,r,r.getCoordSysModel(),a)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||$1(o,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)}},t.prototype.remove=function(){HR(this)},t.type="cartesianAxis",t})(Mx),UR={splitLine:function(e,t,r,n,a){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=N(l)?l:[l];for(var c=n.coordinateSystem.getRect(),h=i.isHorizontal(),v=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],m=s.getLineStyle(),y=0;y<d.length;y++){var _=i.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var b=d[y].tickValue;h?(p[0]=_,p[1]=c.y,g[0]=_,g[1]=c.y+c.height):(p[0]=c.x,p[1]=_,g[0]=c.x+c.width,g[1]=_);var x=v++%l.length,S=new Ir({anid:b!=null?"line_"+b:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:it({stroke:l[x]},m),silent:!0});co(S.shape,m.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,r,n,a){var i=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var c=[],h=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var g=i.toGlobalCoord(f[d][p].coord);u?(c[0]=g,c[1]=l.y,h[0]=g,h[1]=l.y+l.height):(c[0]=l.x,c[1]=g,h[0]=l.x+l.width,h[1]=g);
19var m=new Ir({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:v,silent:!0});co(m.shape,v.lineWidth),t.add(m)}},splitArea:function(e,t,r,n,a){GR(e,t,r,n)},breakArea:function(e,t,r,n,a){r.axis.scale}},Ax=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t})(Dx),$R=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Ax.type,r}return t.type="yAxis",t})(Dx),YR=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Ct({shape:r.coordinateSystem.getRect(),style:it({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(de),Uy={offset:0};function XR(e){e.registerComponentView(YR),e.registerComponentModel(QE),e.registerCoordinateSystem("cartesian2d",AR),ky(e,"x",Oh,Uy),ky(e,"y",Oh,Uy),e.registerComponentView(Ax),e.registerComponentView($R),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Vd=St();function ZR(e,t,r){Vd(e)[t]=r}function qR(e,t,r){var n=Vd(e),a=n[t];a===r&&(n[t]=null)}function $y(e,t){return!!Vd(e)[t]}dr({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Qt);var KR={axisPointer:1,tooltip:1,brush:1};function Ix(e,t,r){var n=t.getComponentByElement(e.topTarget);if(!n||n===r||KR.hasOwnProperty(n.mainType))return!1;var a=n.coordinateSystem;if(!a||a.model===r)return!1;var i=ja(n),o=ja(r);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var jR=(function(e){Y(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var a=lt(n._mousedownHandler,n),i=lt(n._mousemoveHandler,n),o=lt(n._mouseupHandler,n),s=lt(n._mousewheelHandler,n),l=lt(n._pinchHandler,n);return n.enable=function(u,f){var c=f.zInfo,h=ja(c.component),v=h.z,d=h.zlevel,p={component:c.component,z:v,zlevel:d,z2:X(c.z2,-1/0)},g=O({},f.triggerInfo);this._opt=it(O({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:g}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this._enabled=!0,this.disable(),(u===!0||u==="move"||u==="pan")&&(Di(r,"mousedown",a,p),Di(r,"mousemove",i,p),Di(r,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(Di(r,"mousewheel",s,p),Di(r,"pinch",l,p)))},n.disable=function(){this._enabled=!1,Ai(r,"mousedown",a),Ai(r,"mousemove",i),Ai(r,"mouseup",o),Ai(r,"mousewheel",s),Ai(r,"pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(r,n,a){var i=this._opt,o=i.zInfoParsed;
19if(Ix(r,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(r,n,a)),u&&s.isInClip&&!s.isInClip(r,n,a)&&(u=!1),u},t.prototype._decideCursorStyle=function(r,n,a,i){var o=r.target;if(!o&&this._checkPointer(r,n,a))return"grab";if(i)return o&&o.cursor||"default"},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!(sp(r)||Mi(r))){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=r.offsetX,i=r.offsetY;this._checkPointer(r,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){var n=this._zr;if(!(r.gestureEvent==="pinch"||$y(n,"globalPan")||Mi(r))){var a=r.offsetX,i=r.offsetY;if(!this._dragging||!Js("moveOnMouseMove",r,this._opt)){var o=this._decideCursorStyle(r,a,i,!1);o&&n.setCursorStyle(o);return}n.setCursorStyle("grabbing");var s=this._x,l=this._y,u=a-s,f=i-l;this._x=a,this._y=i,this._opt.preventDefaultMouseMove&&ol(r.event),r.__ecRoamConsumed=!0,Yy(this,"pan","moveOnMouseMove",r,{dx:u,dy:f,oldX:s,oldY:l,newX:a,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){if(!Mi(r)){var n=this._zr;if(!sp(r)){this._dragging=!1;var a=this._decideCursorStyle(r,r.offsetX,r.offsetY,!0);a&&n.setCursorStyle(a)}}},t.prototype._mousewheelHandler=function(r){if(!Mi(r)){var n=Js("zoomOnMouseWheel",r,this._opt),a=Js("moveOnMouseWheel",r,this._opt),i=r.wheelDelta,o=Math.abs(i),s=r.offsetX,l=r.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",r,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var c=Math.abs(i),h=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(r){if(!($y(this._zr,"globalPan")||Mi(r))){var n=r.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(r,n,a,i,o){r._checkPointer(i,o.originX,o.originY)&&(ol(i.event),i.__ecRoamConsumed=!0,Yy(r,n,a,i,o))},t})(Ue);function Mi(e){return e.__ecRoamConsumed}var QR=St();function wu(e){var t=QR(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function Di(e,t,r,n){for(var a=wu(e),i=a.roam,o=i[t]=i[t]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;
19if((l.zlevel-n.zlevel||l.z-n.z||l.z2-n.z2)<=0)break}o.splice(s,0,{listener:r,zInfoParsed:n}),JR(e,t)}function Ai(e,t,r){for(var n=wu(e),a=n.roam[t]||[],i=0;i<a.length;i++)if(a[i].listener===r){a.splice(i,1),a.length||tO(e,t);return}}function JR(e,t){var r=wu(e);r.uniform[t]||e.on(t,r.uniform[t]=function(n){var a=r.roam[t];if(a)for(var i=0;i<a.length;i++)a[i].listener(n)})}function tO(e,t){var r=wu(e),n=r.uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function Yy(e,t,r,n,a){a.isAvailableBehavior=lt(Js,null,r,n),e.trigger(t,a)}function Js(e,t,r){var n=r[e];return!e||n&&(!$(n)||t.event[n+"Key"])}var Xy=Ir.prototype,qf=su.prototype,Lx=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})();(function(e){Y(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Lx);function Kf(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var eO=(function(e){Y(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:V.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Lx},t.prototype.buildPath=function(r,n){Kf(n)?Xy.buildPath.call(this,r,n):qf.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return Kf(this.shape)?Xy.pointAt.call(this,r):qf.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,a=Kf(n)?[n.x2-n.x1,n.y2-n.y1]:qf.tangentAt.call(this,r);return mv(a,a)},t})(vt),jf=["fromSymbol","toSymbol"];function Zy(e){return"_"+e+"Type"}function qy(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var a=t.getItemVisual(r,e+"Size"),i=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=pd(a),u=_u(o||0,l);return n+l+u+(i||"")+(s||"")}function Ky(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var a=t.getItemVisual(r,e+"Size"),i=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=pd(a),u=_u(o||0,l),f=aa(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=e,f}}function rO(e){var t=new eO({name:"line",subPixelOptimize:!0});return Hh(t.shape,e),t}function Hh(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var nO=(function(e){Y(t,e);function t(r,n,a){var i=e.call(this)||this;return i._createLine(r,n,a),i}return t.prototype._createLine=function(r,n,a){var i=r.hostModel,o=r.getItemLayout(n),s=r.getItemVisual(n,"z2"),l=rO(o);l.shape.percent=0,Ge(l,{z2:X(s,0),shape:{percent:1}},i,n),this.add(l),I(jf,function(u){var f=Ky(u,r,n);this.add(f),this[Zy(u)]=qy(u,r,n)},this),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};Hh(l.shape,s),ve(o,l,i,n),I(jf,function(u){var f=qy(u,r,n),c=Zy(u);if(this[c]!==f){this.remove(this.childOfName(u));var h=Ky(u,r,n);this.add(h)}this[c]=f},this),this._updateCommonStl(r,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,f=a&&a.labelStatesModels,c=a&&a.emphasisDisabled,h=a&&a.focus,v=a&&a.blurScope;if(!a||r.hasItemOption){var d=r.getItemModel(n),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),h=p.get("focus"),v=p.get("blurScope"),f=si(d)}var g=r.getItemVisual(n,"style"),m=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,I(jf,function(S){var w=this.childOfName(S);if(w){w.setColor(m),w.style.opacity=g.opacity;for(var C=0;C<Ie.length;C++){var M=Ie[C],T=o.getState(M);if(T){var D=T.style||{},L=w.ensureState(M),A=L.style||(L.style={});D.stroke!=null&&(A[w.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(A.opacity=D.opacity)}}w.markRedraw()}},this);var y=i.getRawValue(n);Bo(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(S,w){return i.getFormattedLabel(S,w,r.dataType)}},inheritColor:m||V.color.neutral99,defaultOpacity:g.opacity,defaultText:(y==null?r.getName(n):isFinite(y)?Wt(y):y)+""});var _=this.getTextContent();if(_){var b=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=b.get("position")||"middle";var x=b.get("distance");N(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),uo(this,h,v,c)},t.prototype.highlight=function(){ta(this)},t.prototype.downplay=function(){ea(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");Hh(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),a=r.childOfName("toSymbol"),i=r.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),h=T_([],c,f);mv(h,h);function v(T,D){var L=T.__specifiedRotation;if(L==null){var A=l.tangentAt(D);T.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(A[1],A[0]))}else T.attr("rotation",L)}if(n&&(n.setPosition(f),v(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(c),v(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,g=i.__labelDistance,m=g[0]*o,y=g[1]*o,_=u/2,b=l.tangentAt(_),x=[b[1],-b[0]],S=l.pointAt(_);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var w=b[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var C=-Math.atan2(b[1],b[0]);c[0]<f[0]&&(C=Math.PI+C),i.rotation=C}var M=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":M=-y,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":M=y,p="top";break;default:M=0,p="middle"}switch(i.__position){case"end":i.x=h[0]*m+c[0],i.y=h[1]*y+c[1],d=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*m+f[0],i.y=-h[1]*y+f[1],d=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=m*w+f[0],i.y=f[1]+M,d=b[0]<0?"right":"left",i.originX=-m*w,i.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=S[0],i.y=S[1]+M,d="center",i.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*w+c[0],i.y=c[1]+M,d=b[0]>=0?"right":"left",i.originX=m*w,i.originY=-M;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},t})(Lt),aO=(function(){function e(t){this.group=new Lt,this._LineCtor=t||nO}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var o=jy(t);t.diff(i).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=jy(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!iO(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=r.getItemLayout(a);if(Qf(i)){var o=new this._LineCtor(r,a,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){Oo(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var a=t.getItemLayout(r);if(Qf(a)){var i=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,i),this.group.add(i)}},e.prototype._doUpdate=function(t,r,n,a,i){var o=t.getItemGraphicEl(n);if(!Qf(r.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(r,a,i):o=new this._LineCtor(r,a,i),r.setItemGraphicEl(a,o),this.group.add(o)},e})();function iO(e){return e.animators&&e.animators.length>0}function jy(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:si(t)}}function Qy(e){return isNaN(e[0])||isNaN(e[1])}function Qf(e){return e&&!Qy(e[0])&&!Qy(e[1])}function Tu(e,t,r,n,a,i){e=e||0;var o=r[1]-r[0];if(a!=null&&(a=Ma(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Ma(s,[0,o]),a=i=Ma(s,[a,i]),n=0}t[0]=Ma(t[0],r),t[1]=Ma(t[1],r);var l=Jf(t,n);t[n]+=e;var u=a||0,f=r.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=Ma(t[n],f);var c;return c=Jf(t,n),a!=null&&(c.sign!==l.sign||c.span<a)&&(t[1-n]=t[n]+l.sign*a),c=Jf(t,n),i!=null&&c.span>i&&(t[1-n]=t[n]+c.sign*i),t}function Jf(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function Ma(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var oa=!0,Co=Math.min,ei=Math.max,oO=Math.pow,sO=1e4,lO=6,uO=6,Jy="globalPan",fO={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},cO={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},t0={brushStyle:{lineWidth:2,stroke:V.color.backgroundTint,fill:V.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},hO=0,vO=(function(e){Y(t,e);function t(r){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new Lt,n._uid="brushController_"+hO++,I(bO,function(a,i){this._handlers[i]=lt(a,this)},n),n}return t.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},t.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||ZR(n,Jy,this._uid),I(this._handlers,function(a,i){n.on(i,a)}),this._brushType=r.brushType,this._brushOption=ht(rt(t0),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;qR(r,Jy,this._uid),I(this._handlers,function(n,a){r.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};I(r,function(a){n[a.panelId]=rt(a)})}else this._panels=null;return this},t.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(r){r=F(r,function(h){return ht(rt(t0),h,
19!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new yo(a,r,u,l).add(f).update(f).remove(c).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function f(h,v){var d=r[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var p=i[h]=v!=null?(a[v].__brushOption=d,a[v]):kx(o,Px(o,d));Gd(o,p)}}function c(h){a[h]!==s&&o.group.remove(a[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),Wh(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t})(Ue);function Px(e,t){var r=Cu[t.brushType].createCover(e,t);return r.__brushOption=t,Rx(r,t),e.group.add(r),r}function kx(e,t){var r=Hd(t);return r.endCreating&&(r.endCreating(e,t),Rx(t,t.__brushOption)),t}function Ex(e,t){var r=t.__brushOption;Hd(t).updateCoverShape(e,t,r.range,r)}function Rx(e,t){var r=t.z;r==null&&(r=sO),e.traverse(function(n){n.z=r,n.z2=r})}function Gd(e,t){Hd(t).updateCommon(e,t),Ex(e,t)}function Hd(e){return Cu[e.__brushOption.brushType]}function Wd(e,t,r){var n=e._panels;if(!n)return oa;var a,i=e._transform;return I(n,function(o){o.isTargetByCursor(t,r,i)&&(a=o)}),a}function Ox(e,t){var r=e._panels;if(!r)return oa;var n=t.__brushOption.panelId;return n!=null?r[n]:oa}function Wh(e){var t=e._covers,r=t.length;return I(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function sa(e,t){var r=F(e._covers,function(n){var a=n.__brushOption,i=rt(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function dO(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],n=t[0],a=r[0]-n[0],i=r[1]-n[1],o=oO(a*a+i*i,.5);return o>lO}function Bx(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Nx(e,t,r,n){var a=new Lt;return a.add(new Ct({name:"main",style:Ud(r),silent:!0,draggable:!0,cursor:"move",drift:ot(e0,e,t,a,["n","s","w","e"]),ondragend:ot(sa,t,{isEnd:!0})})),I(n,function(i){a.add(new Ct({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ot(e0,e,t,a,i),ondragend:ot(sa,t,{isEnd:!0})}))}),a}function Fx(e,t,r,n){var a=n.brushStyle.lineWidth||0,i=ei(a,uO),o=r[0][0],s=r[1][0],l=o-a/2,u=s-a/2,f=r[0][1],c=r[1][1],h=f-i+a/2,v=c-i+a/2,d=f-o,p=c-s,g=d+a,m=p+a;_r(e,t,"main",o,s,d,p),n.transformable&&(_r(e,t,"w",l,u,i,m),_r(e,t,"e",h,u,i,m),_r(e,t,"n",l,u,g,i),_r(e,t,"s",l,v,g,i),_r(e,t,"nw",l,u,i,i),_r(e,t,"ne",h,u,i,i),_r(e,t,"sw",l,v,i,i),_r(e,t,"se",h,v,i,i))}function Uh(e,t){var r=t.__brushOption,n=r.transformable,a=t.childAt(0);a.useStyle(Ud(r)),a.attr({silent:!n,cursor:n?"move":"default"}),I([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?$h(e,i[0]):gO(e,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?cO[s]+"-resize":null})})}function _r(e,t,r,n,a,i,o){var s=t.childOfName(r);s&&s.setShape(yO($d(e,t,[[n,a],[n+i,a+o]])))}function Ud(e){return it({strokeNoScale:!0},e.brushStyle)}function zx(e,t,r,n){var a=[Co(e,r),Co(t,n)],i=[ei(e,r),ei(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function pO(e){return Hv(e.group)}function $h(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=U1(r[t],pO(e));return n[a]}function gO(e,t){var r=[$h(e,t[0]),$h(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function e0(e,t,r,n,a,i){var o=r.__brushOption,s=e.toRectRange(o.range),l=Vx(t,a,i);I(n,function(u){var f=fO[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=e.fromRectRange(zx(s[0][0],s[1][0],s[0][1],s[1][1])),Gd(t,r),sa(t,{isEnd:!1})}function mO(e,t,r,n){var a=t.__brushOption.range,i=Vx(e,r,n);I(a,function(o){o[0]+=i[0],o[1]+=i[1]}),Gd(e,t),sa(e,{isEnd:!1})}function Vx(e,t,r){var n=e.group,a=n.transformCoordToLocal(t,r),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function $d(e,t,r){var n=Ox(e,t);return n&&n!==oa?n.clipPath(r,e._transform):rt(r)}function yO(e){var t=Co(e[0][0],e[1][0]),r=Co(e[0][1],e[1][1]),n=ei(e[0][0],e[1][0]),a=ei(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:a-r}}function _O(e,t,r){if(!(!e._brushType||SO(e,t.offsetX,t.offsetY))){var n=e._zr,a=e._covers,i=Wd(e,t,r);if(!e._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===oa||s.panelId===i.panelId)&&Cu[s.brushType].contain(a[o],r[0],r[1]))return}i&&n.setCursorStyle("crosshair")}}function Yh(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Xh(e,t,r){return e.childOfName("main").contain(t,r)}function Gx(e,t,r,n){var a=e._creatingCover,i=e._creatingPanel,o=e._brushOption,s;if(e._track.push(r.slice()),dO(e)||a){if(i&&!a){o.brushMode==="single"&&Wh(e);var l=rt(o);l.brushType=r0(l.brushType,i),l.panelId=i===oa?null:i.panelId,a=e._creatingCover=Px(e,l),e._covers.push(a)}if(a){var u=Cu[r0(e._brushType,i)],f=a.__brushOption;f.range=u.getCreatingRange($d(e,a,e._track)),n&&(kx(e,a),u.updateCommon(e,a)),E
19x(e,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&Wd(e,t,r)&&Wh(e)&&(s={isEnd:n,removeOnClick:!0});return s}function r0(e,t){return e==="auto"?t.defaultBrushType:e}var bO={mousedown:function(e){if(this._dragging)n0(this,e);else if(!e.target||!e.target.draggable){Yh(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=Wd(this,e,t);r&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,r=e.offsetY,n=this.group.transformCoordToLocal(t,r);if(_O(this,e,n),this._dragging){Yh(e);var a=Gx(this,e,n,!1);a&&sa(this,a)}},mouseup:function(e){n0(this,e)}};function n0(e,t){if(e._dragging){Yh(t);var r=t.offsetX,n=t.offsetY,a=e.group.transformCoordToLocal(r,n),i=Gx(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&sa(e,i)}}function SO(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var Cu={lineX:a0(0),lineY:a0(1),rect:{createCover:function(e,t){function r(n){return n}return Nx({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Bx(e);return zx(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){Fx(e,t,r,n)},updateCommon:Uh,contain:Xh},polygon:{createCover:function(e,t){var r=new Lt;return r.add(new ou({name:"main",style:Ud(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Eo({name:"main",draggable:!0,drift:ot(mO,e,t),ondragend:ot(sa,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:$d(e,t,r)})},updateCommon:Uh,contain:Xh}};function a0(e){return{createCover:function(t,r){return Nx({toRectRange:function(n){var a=[n,[0,100]];return e&&a.reverse(),a},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=Bx(t),n=Co(r[0][e],r[1][e]),a=ei(r[0][e],r[1][e]);return[n,a]},updateCoverShape:function(t,r,n,a){var i,o=Ox(t,r);if(o!==oa&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(e);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,i];e&&l.reverse(),Fx(t,r,l,a)},updateCommon:Uh,contain:Xh}}function xO(e){return e=Yd(e),function(t){return Y1(t,e)}}function wO(e,t){return e=Yd(e),function(r){var n=t??r,a=n?e.width:e.height,i=n?e.x:e.y;return[i,i+(a||0)]}}function TO(e,t,r){var n=Yd(e);return function(a,i){return n.contain(i[0],i[1])&&!Ix(a,t,r)}}function Yd(e){return ut.create(e)}var Gn=St(),i0=rt,tc=lt,CO=(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Lt,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var h=ot(o0,r,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}l0(s,r,!0),this._renderHandle(i)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),a=t.axis,i=a.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=zd(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,a,i){},e.prototype.createPointerEl=function(t,r,n,a){var i=r.pointer;if(i){var o=Gn(t).pointerEl=new mA[i.type](i0(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,a){if(r.label){var i=Gn(t).labelEl=new Ut(i0(r.label));t.add(i),s0(i,a)}},e.prototype.updatePointerEl=function(t,r,n){var a=Gn(t).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,a){var i=Gn(t).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),s0(i,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=fu(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ol(u.event)},onmousedown:tc(this._onHandleDragMove,this,0,0),drift:tc(this._onHandleDragMove,this),ondragend:tc(this._onHandleDragEnd,this)}),n.add(a)),l0(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");N(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,vd(this,"_doDispat
19chAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){o0(this._axisPointerModel,!r&&this._moveAnimation,this._handle,ec(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(ec(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(ec(a)),Gn(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),dh(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e})();function o0(e,t,r,n){Hx(Gn(r).lastProp,n)||(Gn(r).lastProp=n,t?ve(r,n,e):(r.stopAnimation(),r.attr(n)))}function Hx(e,t){if(K(e)&&K(t)){var r=!0;return I(t,function(n,a){r=r&&Hx(e[a],n)}),!!r}else return e===t}function s0(e,t){e[t.get(["label","show"])?"show":"hide"]()}function ec(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function l0(e,t,r){var n=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}function MO(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function DO(e,t,r,n,a){var i=r.get("value"),o=Wx(i,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=du(s.get("padding")||0),u=s.getFont(),f=Tv(o,u),c=a.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=a.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),AO(c,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:nn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function AO(e,t,r,n){var a=n.getWidth(),i=n.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+r,i)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Wx(e,t,r,n,a){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:a.precision}),o=a.formatter;if(o){var s={value:Ll(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};I(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),$(o)?i=o.replace("{value}",i):Z(o)&&(i=o(s))}return i}function Ux(e,t,r){var n=Cr();return bv(n,n,r.rotation),Cc(n,n,r.position),Wv([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function IO(e,t,r,n,a,i){var o=Qr.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),DO(t,n,a,i,{position:Ux(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function LO(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function PO(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var kO=(function(e){Y(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=u0(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=MO(i),v=EO[u](s,c,f);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=Bl(l.getRect(),a);IO(n,r,d,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=Bl(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Ux(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=u0(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},t})(CO);function u0(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var EO={line:function(e,t,r){var n=LO([t,r[0]],[t,r[1]],f0(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:PO([t-n/2,r[0]],[n,a],f0(e))}}};function f0(e){return e.dim==="x"?0:1}var RO=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:V.color.border,width:1,type:"dashed"},shadowStyle:{color:V.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:V.color.neutral00,padding:[5,7,5,7],backgroundColor:V.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:V.color.accent40,throttle:40}},t})(yt),wr=St(),OO=I;function $x(e,t,r){if(!at.node){var n=t.getZr();wr(n).records||(wr(n).records={}),BO(n,t);var a=wr(n).records[e]||(wr(n).records[e]={});a.handler=r}}function BO(e,t){if(wr(e).initialized)return;wr(e).initialized=!0,r("click",ot(c0,"click")),r("mousemove",ot(c0,"mousemove")),r("globalout",FO);function r(n,a){e.on(n,function(i){var o=zO(t);OO(wr(e).records,function(s){s&&a(s,i,o.dispatchAction)}),NO(o.pendings,t)})}}function NO(e,t){var r=e.showTip.length,n=e.hideTip.length,a;r?a=e.showTip[r-1]:n&&(a=e.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function FO(e,t,r){e.handler("leave",null,r)}function c0(e,t,r,n){t.handler(e,r,n)}function zO(e){var t={showTip:[],hideTip:[]},r=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function Zh(e,t){if(!at.node){var r=t.getZr(),n=(wr(r).records||{})[e];n&&(wr(r).records[e]=null)}}var VO=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";$x("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>
19=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){Zh("axisPointer",n)},t.prototype.dispose=function(r,n){Zh("axisPointer",n)},t.type="axisPointer",t})(de);function Yx(e,t){var r=[],n=e.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=Jn(i,e);if(o==null||o<0||N(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(i.getValues(F(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var h0=St();function GO(e,t,r){var n=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||lt(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){tl(a)&&(a=Yx({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=tl(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||tl(a),h={},v={},d={list:[],map:{}},p={showPointer:ot(WO,v),showTooltip:ot(UO,d)};I(s.coordSysMap,function(m,y){var _=l||m.containPoint(a);I(s.coordSysAxesInfo[y],function(b,x){var S=b.axis,w=ZO(u,b);if(!c&&_&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=S.pointToData(a)),C!=null&&v0(b,C,p,!1,h)}})});var g={};return I(f,function(m,y){var _=m.linkGroup;_&&!v[y]&&I(_.axesInfo,function(b,x){var S=v[x];if(b!==m&&S){var w=S.value;_.mapper&&(w=m.axis.scale.parse(_.mapper(w,d0(b),d0(m)))),g[m.key]=w}})}),I(g,function(m,y){v0(f[y],m,p,!0,h)}),$O(v,f,h),YO(d,a,e,o),XO(f,o,r),h}}function v0(e,t,r,n,a){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=HO(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&O(a,s[0]),!n&&e.snap&&i.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function HO(e,t){var r=t.axis,n=r.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return I(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,e,r);h=v.dataIndices,c=v.nestestValue}else{if(h=l.indicesOfNearest(n,f[0],e,r.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=e-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,a=c,i.length=0),I(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}
19))}}),{payloadBatch:i,snapToValue:a}}function WO(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function UO(e,t,r,n){var a=r.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=To(l),f=e.map[u];f||(f=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function $O(e,t,r){var n=r.axesInfo=[];I(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function YO(e,t,r,n){if(tl(t)||!e.list.length){n({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function XO(e,t,r){var n=r.getZr(),a="axisPointerLastHighlights",i=h0(n)[a]||{},o=h0(n)[a]={};I(e,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&I(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];I(i,function(u,f){!o[f]&&l.push(u)}),I(o,function(u,f){!i[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function ZO(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function d0(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function tl(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Xd(e){Mx.registerAxisPointerClass("CartesianAxisPointer",kO),e.registerComponentModel(RO),e.registerComponentView(VO),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!N(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=RR(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},GO)}function qO(e){Lr(XR),Lr(Xd)}var p0=["x","y","radius","angle","single"],KO=["cartesian2d","polar","singleAxis"];function jO(e){var t=e.get("coordinateSystem");return ft(KO,t)>=0}function $n(e){return e+"Axis"}function QO(e,t){var r=q(),n=[],a=q();e.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var i;do i=!1,e.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var d=r.get(h);d&&d[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(r.get(c)||r.set(c,[]))[h]=!0})}return n}function JO(e){var t=e.ecModel,r={infoList:[],infoMap:q()};return e.eachTargetAxis(function(n,a){var i=t.getComponent($n(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(i)}}}),r}var rc=(function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e})(),qh=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,a){var i=g0(r);this.settledOption=i,this.mergeDefaultAndTheme(r,a),this._doInit(i)},t.prototype.mergeOption=function(r){var n=g0(r);ht(this.option,r,!0),ht(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var a=this.settledOption;I([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=q(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return I(p0,function(a){var i=this.getReferringComponents($n(a),fM);if(i.specified){n=!0;var o=new rc;I(i.models,function(s){o.add(s.componentIndex)}),r.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(c){var h=new rc;if(h.add(c.componentIndex),r.set(f,h),i=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",Kt).models[0];v&&I(u,function(d){c.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Kt).models[0]&&h.add(d.componentIndex)})}}}i&&I(p0,function(u){if(i){var f=a.findComponents({mainType:$n(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new rc;c.add(f[0].componentIndex),r.set(u,c),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,a=this.get("rangeMode");I([["start","startValue"],["end","endValue"]],function(i,o){var s=r[i[0]]!=null,l=r[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,a){r==null&&(r=this.ecModel.getComponent($n(n),a))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(a,i){I(a.indexList,function(o){r.call(n,i,o)})})},t.prototype.getAxisProxy=function(r,n){var a=this.getAxisModel(r,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent($n(r),n)},t.prototype.setRawRange=function(r){var n=this.option,a=this.settledOption;I([["start","startValue"],["end","endValue"]],function(i){(r[i[0]]!=null||r[i[1]]!=null)&&(n[i[0]]=a[i[0]]=r[i[0]],n[i[1]]=a[i[1]]=r[i[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;I(["start","startValue","end","endValue"],function(a){n[a]=r[a]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t})(yt);function g0(e){var t={};return I(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var tB=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t})(qh),Xx=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.dataZoomModel=r,this.ecModel=n,this.api=a},t.type="dataZoom",t})(de),eB=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t})(Xx),ka=I,m0=YC,rB=(function(){function e(t,r,n,a){this._dimName=t,this._axisIndex=r,this.ecModel=a,this._dataZoomModel=n}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if(jO(r)){var n=$n(this._dimName),a=r.getReferringComponents(n,Kt).models[0];a&&this._axisIndex===a.componentIndex&&t.push(r)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return rt(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;
19ka(["start","end"],function(h,v){var d=t[h],p=t[h+"Value"];i[v]==="percent"?(d==null&&(d=o[v]),p=a.parse(Fn(d,o,r))):(u=!0,p=p==null?r[v]:a.parse(p),d=Fn(p,r,o)),l[v]=p==null||isNaN(p)?r[v]:p,s[v]=d==null||isNaN(d)?o[v]:d}),m0(l),m0(s);var f=this._minMaxSpan;u?c(l,s,r,o,!1):c(s,l,o,r,!0);function c(h,v,d,p,g){var m=g?"Span":"ValueSpan";Tu(0,h,d,"all",f["min"+m],f["max"+m]);for(var y=0;y<2;y++)v[y]=Fn(h[y],d,p,!0),g&&(v[y]=a.parse(v[y]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=nB(this,this._dimName,r),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,r){if(t!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;ka(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(i==="weakFilter"){var c=u.getStore(),h=F(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,p,g,m=0;m<f.length;m++){var y=c.get(h[m],v),_=!isNaN(y),b=y<o[0],x=y>o[1];if(_&&!b&&!x)return!0;_&&(g=!0),b&&(d=!0),x&&(p=!0)}return g&&d&&p})}else ka(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});ka(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;ka(["min","max"],function(a){var i=r.get(a+"Span"),o=r.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Fn(n[0]+o,n,[0,100],!0):i!=null&&(o=Fn(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var a=j_(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;r[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),r[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},e})();function nB(e,t,r){var n=[1/0,-1/0];ka(r,function(o){HP(n,o.getData(),t)});var a=e.getAxisModel(),i=CS(a.axis.scale,a,n).calculate();return[i.min,i.max]}var aB={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent($n(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var r=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new rB(a,i,s,e),r.push(o.__dzAxisProxy))});var n=q();return I(r,function(a){I(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).reset(r)}),r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();r.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function iB(e){e.registerAction("dataZoom",function(t,r){var n=QO(r,t);I(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var y0=!1;function Zx(e){y0||(y0=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,aB),iB(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function oB(e){e.registerComponentModel(tB),e.registerComponentView(eB),Zx(e)}var Oe=(function(){function e(){}return e})(),qx={};function Ii(e,t){qx[e]=t}function Kx(e){return qx[e]}var sB=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;I(this.option.feature,function(n,a){var i=Kx(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(r)),ht(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0}
19,t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:V.color.border,borderRadius:0,borderWidth:0,padding:V.size.m,itemSize:15,itemGap:V.size.s,showTitle:!0,iconStyle:{borderColor:V.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:V.color.accent50}},tooltip:{show:!1,position:"bottom"}},t})(yt);function jx(e,t){var r=du(t.get("padding")),n=t.getItemStyle(["color","opacity"]);n.fill=t.get("backgroundColor");var a=new Ct({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1});return a}var lB=(function(e){Y(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a,i){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},f=this._features||(this._features={}),c=[];I(u,function(y,_){c.push(_)}),new yo(this._featureNames||[],c).add(h).update(h).remove(ot(h,null)).execute(),this._featureNames=c;function h(y,_){var b=c[y],x=c[_],S=u[b],w=new At(S,r,r.ecModel),C;if(i&&i.newTitle!=null&&i.featureName===b&&(S.title=i.newTitle),b&&!x){if(uB(b))C={onclick:w.option.onclick,featureName:b};else{var M=Kx(b);if(!M)return;C=new M}f[b]=C}else if(C=f[x],!C)return;C.uid=No("toolbox-feature"),C.model=w,C.ecModel=n,C.api=a;var T=C instanceof Oe;if(!b&&x){T&&C.dispose&&C.dispose(n,a);return}if(!w.get("show")||T&&C.unusable){T&&C.remove&&C.remove(n,a);return}v(w,C,b),w.setIconStatus=function(D,L){var A=this.option,P=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[D]=L,P[D]&&(L==="emphasis"?ta:ea)(P[D])},C instanceof Oe&&C.render&&C.render(w,n,a,i)}function v(y,_,b){var x=y.getModel("iconStyle"),S=y.getModel(["emphasis","iconStyle"]),w=_ instanceof Oe&&_.getIcons?_.getIcons():y.get("icon"),C=y.get("title")||{},M,T;$(w)?(M={},M[b]=w):M=w,$(C)?(T={},T[b]=C):T=C;var D=y.iconPaths={};I(M,function(L,A){var P=fu(L,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(x.getItemStyle());var k=P.ensureState("emphasis");k.style=S.getItemStyle();var E=new Ut({style:{text:T[A],align:S.get("textAlign"),borderRadius:S.get("textBorderRadius"),padding:S.get("textPadding"),fill:null,font:q1({fontStyle:S.get("textFontStyle"),fontFamily:S.get("textFontFamily"),fontSize:S.get("textFontSize"),fontWeight:S.get("textFontWeight")},n)},ignore:!0});P.setTextContent(E),Ro({el:P,componentModel:r,itemName:A,formatterParamsExtra:{title:T[A]}}),P.__title=T[A],P.on("mouseover",function(){var B=S.getItemStyle(),R=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";E.setStyle({fill:S.get("textFill")||B.fill||B.stroke||V.color.neutral99,backgroundColor:S.get("textBackgroundColor")}),P.setTextConfig({position:S.get("textPosition")||R}),E.ignore=!r.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){y.get(["iconStatus",A])!=="emphasis"&&a.leaveEmphasis(this),E.hide()}),(y.get(["iconStatus",A])==="emphasis"?ta:ea)(P),o.add(P),P.on("click",lt(_.onclick,_,
19n,a,A)),D[A]=P})}var d=pu(r,a).refContainer,p=r.getBoxLayoutParams(),g=r.get("padding"),m=an(p,d,g);$a(r.get("orient"),o,r.get("itemGap"),m.width,m.height),t2(o,p,d,g),o.add(jx(o.getBoundingRect(),r)),l||o.eachChild(function(y){var _=y.__title,b=y.ensureState("emphasis"),x=b.textConfig||(b.textConfig={}),S=y.getTextContent(),w=S&&S.ensureState("emphasis");if(w&&!Z(w)&&_){var C=w.style||(w.style={}),M=Tv(_,Ut.makeFont(C)),T=y.x+o.x,D=y.y+o.y+s,L=!1;D+M.height>a.getHeight()&&(x.position="top",L=!0);var A=L?-5-M.height:s+10;T+M.width/2>a.getWidth()?(x.position=["100%",A],C.align="right"):T-M.width/2<0&&(x.position=[0,A],C.align="left")}})},t.prototype.updateView=function(r,n,a,i){I(this._features,function(o){o instanceof Oe&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(r,n){I(this._features,function(a){a instanceof Oe&&a.remove&&a.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){I(this._features,function(a){a instanceof Oe&&a.dispose&&a.dispose(r,n)})},t.type="toolbox",t})(de);function uB(e){return e.indexOf("my")===0}var fB=(function(e){Y(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var a=this.model,i=a.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||r.get("backgroundColor")||V.color.neutral00,connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=at.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,m=new Uint8Array(g);g--;)m[g]=d.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var b=_.contentWindow,x=b.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),b.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var S=a.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(S&&S[0]||"")+'" /></body>',C=window.open();C.document.write(w),C.document.title=i}},t.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:V.color.neutral00,name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t})(Oe),_0="__ec_magicType_stack__",cB=[["line","bar"],["stack"]],hB=(function(e){Y(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),a={};return I(r.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(b0[a]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,d=b0[a](h,v,c,i);d&&(it(d,c.option),s.series.push(d));var p=c.coordinateSystem;
19if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",_=c.getReferringComponents(y,Kt).models[0],b=_.componentIndex;s[y]=s[y]||[];for(var x=0;x<=b;x++)s[y][b]=s[y][b]||{};s[y][b].boundaryGap=a==="bar"}}};I(cB,function(c){ft(c,a)>=0&&I(c,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=ht({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t})(Oe),b0={line:function(e,t,r,n){if(e==="bar")return ht({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return ht({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var a=r.get("stack")===_0;if(e==="line"||e==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),ht({id:t,stack:a?"":_0},n.get(["option","stack"])||{},!0)}};dr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var Mu=new Array(60).join("-"),ri=" ";function vB(e){var t={},r=[],n=[];return e.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else r.push(a)}else r.push(a)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function dB(e){var t=[];return I(e,function(r,n){var a=r.categoryAxis,i=r.valueAxis,o=i.dim,s=[" "].concat(F(r.series,function(v){return v.name})),l=[a.model.getCategories()];I(r.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(ri)],f=0;f<l[0].length;f++){for(var c=[],h=0;h<l.length;h++)c.push(l[h][f]);u.push(c.join(ri))}t.push(u.join(` 20`))}),t.join(` 21 22`+Mu+` 23 24`)}function pB(e){return F(e,function(t){var r=t.getRawData(),n=[t.name],a=[];return r.each(r.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=r.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+ri:"")+a.join(ri))}),n.join(` 25`)}).join(` 26 27`+Mu+` 28 29`)}function gB(e){var t=vB(e);return{value:Mt([dB(t.seriesGroupByCategoryAxis),pB(t.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(` 30 31`+Mu+` 32 33`),meta:t.meta}}function Nl(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function mB(e){var t=e.slice(0,e.indexOf(` 34`));if(t.indexOf(ri)>=0)return!0}var Kh=new RegExp("["+ri+"]+","g");function yB(e){for(var t=e.split(/\n+/g),r=Nl(t.shift()).split(Kh),n=[],a=F(r,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=Nl(t[i]).split(Kh);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function _B(e){for(var t=e.split(/\n+/g),r=Nl(t.shift()),n=[],a=0;a<t.length;a++){var i=Nl(t[a]);if(i){var o=i.split(Kh),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:r,data:n}}function bB(e,t){var r=e.split(new RegExp(` 35*`+Mu+` 36*`,"g")),n={series:[]};return I(r,function(a,i){if(mB(a)){var o=yB(a),s=t[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=_B(a);n.series.push(o)}}),n}var SB=(function(e){Y(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}
36return t.prototype.onclick=function(r,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||V.color.neutral00;var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var c=i.get("optionToContent"),h=i.get("contentToOption"),v=gB(r);if(Z(c)){var d=c(n.getOption());$(d)?u.innerHTML=d:Za(d)&&u.appendChild(d)}else{f.readOnly=i.get("readOnly");var p=f.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),f.value=v.value,u.appendChild(f)}var g=v.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),b=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var x=this;function S(){a.removeChild(o),x._dom=null}Tc(_,"click",S),Tc(b,"click",function(){if(h==null&&c!=null||h!=null&&c==null){S();return}var w;try{Z(h)?w=h(u,n.getOption()):w=bB(f.value,g)}catch(C){throw S(),new Error("Data view format error "+C)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),S()}),_.innerHTML=l[1],b.innerHTML=l[2],b.style.cssText=_.style.cssText=y,!i.get("readOnly")&&m.appendChild(b),m.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},t.prototype.remove=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.getDefaultOption=function(r){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:V.color.background,textColor:V.color.primary,textareaColor:V.color.background,textareaBorderColor:V.color.border,buttonColor:V.color.accent50,buttonTextColor:V.color.neutral00};return n},t})(Oe);function xB(e,t){return F(e,function(r,n){var a=t&&t[n];if(K(a)&&!N(a)){var i=K(r)&&!N(r);i||(r={value:r});var o=a.name!=null&&r.name==null;return r=it(r,a),o&&delete r.name,r}else return r})}dr({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];I(e.newOption.series,function(n){var a=t.getSeriesByName(n.name)[0];if(!a)r.push(O({type:"scatter"},n));else{var i=a.get("data");r.push({name:n.name,data:xB(n.data,i)})}}),t.mergeOption(it({series:r},e.newOption))});var Qx=I,Jx=St();function wB(e,t){var r=Zd(e);Qx(t,function(n,a){for(var i=r.length-1;i>=0;i--){var o=r[i];if(o[a])break}if(i<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();r[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),r.push(t)}function TB(e){var t=Zd(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return Qx(r,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function CB(e){Jx(e).snapshots=null}function MB(e){return Zd(e).length}function Zd(e){var t=Jx(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var DB=(function(e){Y(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){CB(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t})(Oe);dr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var AB=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],tw=(function(){function e(t,r,n){var a=this;this._targetInfoList=[];var i=S0(r,t);I(IB,function(o,s){(!n||!n.include||ft(n.include,s)>=0)&&o(i,a._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=nc[n.brushType](0,i,a);n.__rangeOffset={offset:C0[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){I(t,function(a){var i=this.findTargetInfo(a,r);i&&i!==!0&&I(i.coordSyses,function(o){var s=nc[a.brushType](1,o,a.range,!0);n(a,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){I(t,function(n){var a=this.findTargetInfo(n,r);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=nc[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?C0[n.brushType](i.values,o.offset,LB(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,r){return F(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:xO(a),isTargetByCursor:TO(a,t,n.coordSysModel),getLinearBrushOtherExtent:wO(a)}})},e.prototype.controlSeries=function(t,r,n){var a=this.findTargetInfo(t,n);return a===!0||a&&ft(a.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,a=S0(r,t),i=0;i<n.length;i++){var o=n[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<x0.length;l++)if(x0[l](a,o))return o}return!0},e})();function jh(e){return e[0]>e[1]&&e.reverse(),e}function S0(e,t){return $i(e,t,{includeMainTypes:AB})}var IB={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,a=e.gridModels,i=q(),o={},s={};!r&&!n&&!a||(I(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),I(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),I(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}
36),i.each(function(l){var u=l.coordinateSystem,f=[];I(u.getCartesians(),function(c,h){(ft(r,c.getAxis("x").model)>=0||ft(n,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:w0.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){I(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:w0.geo})})}},x0=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,a=e.gridModel;return!a&&r&&(a=r.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],w0={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Hv(e)),t}},nc={lineX:ot(T0,0),lineY:ot(T0,1),rect:function(e,t,r,n){var a=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),i=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[jh([a[0],i[0]]),jh([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=F(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function T0(e,t,r,n){var a=r.getAxis(["x","y"][e]),i=jh(F([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[e]=i,o[1-e]=[NaN,NaN],{values:i,xyMinMax:o}}var C0={lineX:ot(M0,0),lineY:ot(M0,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return F(e,function(n,a){return[n[0]-r[0]*t[a][0],n[1]-r[1]*t[a][1]]})}};function M0(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function LB(e,t){var r=D0(e),n=D0(t),a=[r[0]/n[0],r[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function D0(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var Qh=I,PB=oM("toolbox-dataZoom_"),kB=(function(e){Y(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a,i){this._brushController||(this._brushController=new vO(a.getZr()),this._brushController.on("brush",lt(this._onBrush,this)).mount()),OB(r,n,this,i,a),RB(r,n)},t.prototype.onclick=function(r,n,a){EB[a].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new tw(qd(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,c){if(c.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",c,f[0]),s("y",c,f[1])):s({lineX:"x",lineY:"y"}[h],c,f)}}),wB(i,a),this._dispatchZoomAction(a);function s(u,f,c){var h=f.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(c=Tu(0,c.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,f.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(r){var n=[];Qh(r,function(a,i){n.push(rt(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:V.color.backgroundTint}};return n},t})(Oe),EB={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(TB(this.ecModel))}};function qd(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function RB(e,t){e.setIconStatus("back",MB(t)>1?"emphasis":"normal")}function OB(e,t,r,n,a){var i=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var o=new tw(qd(e),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}f2("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),a=[],i=qd(n),o=$i(e,i);Qh(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Qh(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:PB+u+c};h[f]=c,a.push(h)}return a});function BB(e){e.registerComponentModel(sB),e.registerComponentView(lB),Ii("saveAsImage",fB),Ii("magicType",hB),Ii("dataView",SB),Ii("dataZoom",kB),Ii("restore",DB),Lr(oB)}var NB=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:V.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:V.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:V.color.borderShade,width:1,type:"dashed",textStyle:{}}}
36,textStyle:{color:V.color.tertiary,fontSize:14}},t})(yt);function ew(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function rw(e){if(at.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var nw=rw(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),FB=rw(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function aw(e,t){if(!e)return t;t=lb(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function zB(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var VB=aw(FB,"transition"),Kd=aw(nw,"transform"),GB="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(at.transform3dSupported?"will-change:transform;":"");function HB(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function WB(e,t,r){if(!$(r)||r==="inside")return"";var n=e.get("backgroundColor"),a=e.get("borderWidth");t=ra(t);var i=HB(r),o=Math.max(Math.round(a)*1.5,6),s="",l=Kd+":",u;ft(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+a,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function UB(e,t,r){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return r&&(a=" "+e/2+"s "+n,i="opacity"+a+",visibility"+a),t||(a=" "+e+"s "+n,i+=(i.length?",":"")+(at.transformSupported?""+Kd+a:",left"+a+",top"+a)),VB+":"+i}function A0(e,t,r){var n=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!at.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=at.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+Kd+":"+o+";":[["top",0],["left",0],[nw,o]]}function $B(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var a=X(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+a+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),I(["decoration","align"],function(u){var f=e.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function YB(e,t,r,n){var a=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),u=e.get("shadowOffsetX"),f=e.get("shadowOffsetY"),c=e.getModel("textStyle"),h=Ob(e,"html"),v=u+"px "+f+"px "+s+"px "+l;return a.push("box-shadow:"+v),t&&i>0&&a.push(UB(i,r,n)),o&&a.push("background-color:"+o),I(["width","color","radius"],function(d){var p="border-"+d,g=lb(p),m=e.get(g);m!=null&&a.push(p+":"+m+(d==="color"?"":"px"))}),a.push($B(c)),h!=null&&a.push("padding:"+du(h).join("px ")+"px"),a.join(";")+";"}function I0(e,t,r,n,a){var i=t&&t.painter;if(r){var o=i&&i.getViewportRoot();o&&IT(e,o,r,n,a)}else{e[0]=n,e[1]=a;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var XB=(function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,at.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=r.appendTo,o=i&&($(i)?document.querySelector(i):Za(i)?i:Z(i)&&i(t.getDom()));I0(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Se(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=zB(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=GB+YB(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+A0(i[0],i[1],!0)+("border-color:"+ra(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if($(i)&&n.get("trigger")==="item"&&!ew(n)&&(s=WB(n,a,i)),$(t))o.innerHTML=t+s;else if(t){o.innerHTML="",N(t)||(t=[t]);for(var l=0;l<t.length;l++)Za(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var n=this._styleCoord;if(I0(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=A0(n[0],n[1]);I(i,function(o){a[o[0]]=o[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",at.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(lt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;LT(t&&t.painter&&t.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},e})(),ZB=(function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),P0(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,a,i){var o=this;K(t)&&se(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Ut({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Ob(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),I(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),I(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect
36(),n=L0(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var a=this._styleCoord;P0(a,this._zr,t,r),t=a[0],r=a[1];var i=n.style,o=Wr(i.borderWidth||0),s=L0(i);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(lt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e})();function Wr(e){return Math.max(0,e)}function L0(e){var t=Wr(e.shadowBlur||0),r=Wr(e.shadowOffsetX||0),n=Wr(e.shadowOffsetY||0);return{left:Wr(t-r),right:Wr(t+r),top:Wr(t-n),bottom:Wr(t+n)}}function P0(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var qB=new Ct({shape:{x:-1,y:-1,width:2,height:2}}),KB=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(at.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=hM(a.get("renderMode"));this._tooltipContent=i==="richText"?new ZB(n):new XB(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(r,n,a){if(!(at.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?vd(this,"_updatePosition",50,"fixRate"):dh(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");$x("itemTooltip",this._api,lt(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||at.node||!a.getDom())){var o=k0(i,a);this._ticket="";var s=i.dataByCoordSys,l=tN(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=qB;f.x=i.x,f.y=i.y,f.update(),ct(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,i))return;var c=Yx(i,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(k0(i,a))},t.prototype._manuallyAxisShowTip=function(r,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=Li([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(r,n){var a=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){var s=ct(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Ni(a,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ct(f).dataIndex!=null?l=f:ct(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=lt(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Li([n.tooltipOption],i),l=this._renderMode,u=[],f=na("section",{blocks:[],noHeader:!0}),c=[],h=new Cf;I(r,function(y){I(y.dataByAxis,function(_){var b=a.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!b||x==null)){var S=Wx(x,b.axis,a,_.seriesDataIndices,_.valueLabelOpt),w=na("section",{header:S,noHeader:!rr(S),sortBlocks:!0,blocks:[]});f.blocks.push(w),I(_.seriesDataIndices,function(C){var M=a.getSeriesByIndex(C.seriesIndex),T=C.dataIndexInside,D=M.getDataParams(T);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Ll(b.axis,{value:x}),D.axisValueLabel=S,D.marker=h.makeTooltipMarker("item",ra(D.color),l);var L=Qg(M.formatTooltip(T,!0,null)),A=L.frag;if(A){var P=Li([M],i).get("valueFormatter");w.blocks.push(P?O({valueFormatter:P},A):A)}L.text&&c.push(L.text),u.push(D)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),p=nm(f,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?` 37 38`:"<br/>",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=ct(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=r.positionDefault,p=Li([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),y=new Cf;m.marker=y.makeTooltipMarker("item",ra(m.color),v);var _=Qg(u.formatTooltip(f,!1,c)),b=p.get("order"),x=p.get("valueFormatter"),S=_.frag,w=S?nm(x?O({valueFormatter:x},S):S,y,v,b,i.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,a){var i=this._renderMode==="html",o=ct(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if($(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=rt(l),l.content=re(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=r.positionDefault,d=Li(c,this._tooltipModel,v?{position:v}
38:null),p=d.get("content"),g=Math.random()+"",m=new Cf;this._showOrMove(d,function(){var y=rt(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,r.offsetX,r.offsetY,r.position,n,m)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,a,i,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var v=n,d=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),p=d.color;if(h)if($(h)){var g=r.ecModel.get("useUTC"),m=N(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=vu(m.axisValue,v,g)),v=ub(v,a,!0)}else if(Z(h)){var _=lt(function(b,x){b===this._ticket&&(c.setContent(x,f,r,p,l),this._updatePosition(r,l,o,s,c,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;c.setContent(v,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,a,u)}},t.prototype._getNearestPoint=function(r,n,a,i,o){if(a==="axis"||N(n))return{color:i||o};if(!N(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),h=r.get("align"),v=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Z(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),N(n))a=Ft(n[0],u),i=Ft(n[1],f);else if(K(n)){var p=n;p.width=c[0],p.height=c[1];var g=an(p,{width:u,height:f});a=g.x,i=g.y,h=null,v=null}else if($(n)&&l){var m=JB(n,d,c,r.get("borderWidth"));a=m[0],i=m[1]}else{var m=jB(a,i,o,u,f,h?null:20,v?null:20);a=m[0],i=m[1]}if(h&&(a-=E0(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=E0(v)?c[1]/2:v==="bottom"?c[1]:0),ew(r)){var m=QB(a,i,o,u,f);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&I(a,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&I(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&I(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&I(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],b=i[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){at.node||!n.getDom()||(dh(this,"_updatePosition"),this._tooltipContent.dispose(),Zh("itemTooltip",n))},t.type="tooltip",t})(de);function Li(e,t,r){var n=t.ecModel,a;r?(a=new At(r,n,n),a=new At(t.option,a,n)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof At&&(o=o.get("tooltip",!0)),$(o)&&(o={formatter:o}),o&&(a=new At(o,a,n)))}return a}function k0(e,t){return e.dispatchAction||lt(t.dispatchAction,t)}function jB(e,t,r,n,a,i,o){var s=r.getSize(),l=s[0],u=s[1];return i!=null&&(e+l+i+2>n?e-=l+i:e+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[e,t]}function QB(e,t,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function JB(e,t,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function E0(e){return e==="center"||e==="middle"}function tN(e,t,r){var n=Dv(e).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=ko(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ct(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function eN(e){Lr(Xd),e.registerComponentModel(NB),e.registerComponentView(KB),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Qt),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Qt)}var rN=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:V.size.m,backgroundColor:V.color.transparent,borderColor:V.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:V.color.primary},subtextStyle:{fontSize:12,color:V.color.quaternary}},t})(yt),nN=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=X(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Ut({style:nn(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}
38),c=f.getBoundingRect(),h=r.get("subtext"),v=new Ut({style:nn(s,{text:h,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){kg(d,"_"+r.get("target"))}),p&&v.on("click",function(){kg(p,"_"+r.get("subtarget"))}),ct(f).eventData=ct(v).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(f),h&&i.add(v);var m=i.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=pu(r,a),b=an(y,_.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),i.x=b.x,i.y=b.y,i.markRedraw();var x={align:l,verticalAlign:u};f.setStyle(x),v.setStyle(x),m=i.getBoundingRect();var S=b.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var C=new Ct({shape:{x:m.x-S[3],y:m.y-S[0],width:m.width+S[1]+S[3],height:m.height+S[0]+S[2],r:r.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t})(de);function aN(e){e.registerComponentModel(rN),e.registerComponentView(nN)}function iw(e,t){if(!e)return!1;for(var r=N(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function Ls(e){$c(e,"label",["show"])}var Ps=St(),ln=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r.preventAutoZ=!0,r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),this._mergeOption(r,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(at.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Ps(s)[o];if(!l||!l.data){Ps(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&Ls(l),I(l.data,function(f){f instanceof Array?(Ls(f[0]),Ls(f[1])):Ls(f)}),u=this.createMarkerModelFromSeries(l,this,n),O(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Ps(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return na("section",{header:this.name,blocks:[na("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.prototype.getDataParams=function(r,n){var a=fd.prototype.getDataParams.call(this,r,n),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},t.getMarkerModelFromSeries=function(r,n){return Ps(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t})(yt);We(ln,fd.prototype);var iN=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t})(ln);function oN(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function sN(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function ks(e,t,r,n,a,i,o){var s=[],l=ia(t,a),u=l?t.getCalculationInfo("stackResultDimension"):a,f=Fl(t,u,e),c=t.hostModel,h=c.indicesOfNearest(r,u,f)[0];s[i]=t.get(n,h),s[o]=t.get(u,h);var v=t.get(a,h),d=ar(t.get(a,h));return d=Math.min(d,20),d>=0&&(s[o]=+s[o].toFixed(d)),[s,v]}var Es={min:ot(ks,"min"),max:ot(ks,"max"),average:ot(ks,"average"),median:ot(ks,"median")};function Jh(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,a=n&&n.dimensions;if(!sN(t)&&!N(t.coord)&&N(a)){var i=ow(t,r,n,e);if(t=rt(t),t.type&&Es[t.type]&&i.baseAxis&&i.valueAxis){var o=ft(a,i.baseAxis.dim),s=ft(a,i.valueAxis.dim),l=Es[t.type](r,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}
38else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!N(a)){t.coord=[];var u=e.getBaseAxis();if(u&&t.type&&Es[t.type]){var f=n.getOtherAxis(u);f&&(t.value=Fl(r,r.mapDimension(f.dim),t.type))}}else for(var c=t.coord,h=0;h<2;h++)Es[c[h]]&&(c[h]=Fl(r,r.mapDimension(a[h]),c[h]));return t}}function ow(e,t,r,n){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=r.getAxis(lN(n,a.valueDataDim)),a.baseAxis=r.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=r.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function lN(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function tv(e,t){return e&&e.containData&&t.coord&&!oN(t)?e.containData(t.coord):!0}function sw(e,t){return e?function(r,n,a,i){var o=i<2?r.coord&&r.coord[i]:r.value;return Ya(o,t[i])}:function(r,n,a,i){return Ya(r.value,t[i])}}function Fl(e,t,r){if(r==="average"){var n=0,a=0;return e.each(t,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var ac=St(),lw=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=q()},t.prototype.render=function(r,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){ac(s).keep=!1}),n.eachSeries(function(s){var l=ln.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!ac(s).keep&&i.group.remove(s.group)}),uN(n,o,this.type)},t.prototype.markKeep=function(r){ac(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var a=this;I(r,function(i){var o=ln.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?w1(l):Ov(l))})}})},t.type="marker",t})(de);function uN(e,t,r){e.eachSeries(function(n){var a=ln.getMarkerModelFromSeries(n,r),i=t.get(n.id);if(a&&i&&i.group){var o=ja(a),s=o.z,l=o.zlevel;Yv(i.group,s,l)}})}function R0(e,t,r){var n=t.coordinateSystem,a=r.getWidth(),i=r.getHeight(),o=n&&n.getArea&&n.getArea();e.each(function(s){var l=e.getItemModel(s),u=l.get("relativeTo")==="coordinate",f=u?o?o.width:0:a,c=u?o?o.height:0:i,h=u&&o?o.x:0,v=u&&o?o.y:0,d,p=Ft(l.get("x"),f)+h,g=Ft(l.get("y"),c)+v;if(!isNaN(p)&&!isNaN(g))d=[p,g];else if(t.getMarkerPosition)d=t.getMarkerPosition(e.getValues(e.dimensions,s));else if(n){var m=e.get(n.dimensions[0],s),y=e.get(n.dimensions[1],s);d=n.dataToPoint([m,y])}isNaN(p)||(d[0]=p),isNaN(g)||(d[1]=g),e.setItemLayout(s,d)})}var fN=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=ln.getMarkerModelFromSeries(i,"markPoint");o&&(R0(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new ix),c=cN(o,r,n);n.setData(c),R0(n.getData(),r,i),c.each(function(h){var v=c.getItemModel(h),d=v.getShallow("symbol"),p=v.getShallow("symbolSize"),g=v.getShallow("symbolRotate"),m=v.getShallow("symbolOffset"),y=v.getShallow("symbolKeepAspect");if(Z(d)||Z(p)||Z(g)||Z(m)){var _=n.getRawValue(h),b=n.getDataParams(h);Z(d)&&(d=d(_,b)),Z(p)&&(p=p(_,b)),Z(g)&&(g=g(_,b)),Z(m)&&(m=m(_,b))}var x=v.getModel("itemStyle").getItemStyle(),S=v.get("z2"),w=dd(l,"color");x.fill||(x.fill=w),c.setItemVisual(h,{z2:X(S,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:x})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(h){h.traverse(function(v){ct(v).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t})(lw);function cN(e,t,r){var n;e?n=F(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return O(O({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Qi(n,r),i=F(r.get("data"),ot(Jh,t));e&&(i=Mt(i,ot(tv,e)));var o=sw(!!e,n);return a.initData(i,null,o),a}function hN(e){e.registerComponentModel(iN),e.registerComponentView(fN),e.registerPreprocessor(function(t){iw(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var vN=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t})(ln),Rs=St(),dN=function(e,t,r,n){var a=e.getData(),i;if(N(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=ro(n.yAxis,n.xAxis);else{var u=ow(n,a,t,e);s=u.valueAxis;var f=gS(a,u.valueDataDim);l=Fl(a,f,o)}var c=s.dim==="x"?0:1,h=1-c,v=rt(n),d={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,d.coord[h]=1/0;var p=r.get("precision");p>=0&&xt(l)&&(l=+l.toFixed(Math.min(p,20))),v.coord[c]=d.coord[c]=l,i=[v,d,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var g=[Jh(e,i[0]),Jh(e,i[1]),O({},i[2])];return g[2].type=g[2].type||null,ht(g[2],g[0]),ht(g[2],g[1]),g};function zl(e){return!isNaN(e)&&!isFinite(e)}function O0(e,t,r,n){var a=1-e,i=n.dimensions[e];return zl(t[a])&&zl(r[a])&&t[e]===r[e]&&n.getAxis(i).containData(t[e])}function pN(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(O0(1,r,n,e)||O0(0,r,n,e)))return!0}return tv(e,t[0])&&tv(e,t[1])}function ic(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=Ft(o.get("x"),a.getWidth()),u=Ft(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var f=i.dimensions,c=e.get(f[0],t),h=e.get(f[1],t);s=i.dataToPoint([c,h])}if(xu(i,"cartesian2d")){var v=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;zl(e.get(f[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[r?0:1]):zl(e.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var gN=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=ln.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Rs(o).from,u=Rs(o).to;l.each(function(f){ic(l,f,!0,i,a),ic(u,f,!1,i,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new aO);this.group.add(f.group);var c=mN(o,r,n),h=c.from,v=c.to,d=c.line;Rs(n).from=h,Rs(n).to=v,n.setData(d);var p=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");N(p)||(p=[p,p]),N(g)||(g=[g,g]),N(m)||(m=[m,m]),N(y)||(y=[y,y]),c.from.each(function(b){_(h,b,!0),_(v,b,!1)}),d.each(function(b){var x=d.getItemModel(b),S=x.getModel("lineStyle").getLineStyle();d.setItemLayout(b,[h.getItemLayout(b),v.getItemLayout(b)]);var w=x.get("z2");S.stroke==null&&(S.stroke=h.getItemVisual(b,"style").fill),d.setItemVisual(b,{z2:X(w,0),fromSymbolKeepAspect:h.getItemVisual(b,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(b,"symbolOffset"),fromSymbolRotate:h.getItemVisual(b,"symbolRotate"),fromSymbolSize:h.getItemVisual(b,"symbolSize"),fromSymbol
38:h.getItemVisual(b,"symbol"),toSymbolKeepAspect:v.getItemVisual(b,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(b,"symbolOffset"),toSymbolRotate:v.getItemVisual(b,"symbolRotate"),toSymbolSize:v.getItemVisual(b,"symbolSize"),toSymbol:v.getItemVisual(b,"symbol"),style:S})}),f.updateData(d),c.line.eachItemGraphicEl(function(b){ct(b).dataModel=n,b.traverse(function(x){ct(x).dataModel=n})});function _(b,x,S){var w=b.getItemModel(x);ic(b,x,S,r,i);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=dd(l,"color")),b.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:X(w.get("symbolOffset",!0),y[S?0:1]),symbolRotate:X(w.get("symbolRotate",!0),m[S?0:1]),symbolSize:X(w.get("symbolSize"),g[S?0:1]),symbol:X(w.get("symbol",!0),p[S?0:1]),style:C})}this.markKeep(f),f.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t})(lw);function mN(e,t,r){var n;e?n=F(e&&e.dimensions,function(u){var f=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return O(O({},f),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Qi(n,r),i=new Qi(n,r),o=new Qi([],r),s=F(r.get("data"),ot(dN,t,e,r));e&&(s=Mt(s,ot(pN,e)));var l=sw(!!e,n);return a.initData(F(s,function(u){return u[0]}),null,l),i.initData(F(s,function(u){return u[1]}),null,l),o.initData(F(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}function yN(e){e.registerComponentModel(vN),e.registerComponentView(gN),e.registerPreprocessor(function(t){iw(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var _N=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},ev=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),N(n)&&I(n,function(i,o){$(i)&&(i={type:i}),n[o]=ht(i,_N(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<r.length;a++){var i=r[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();
38r.isSeriesFiltered(l)||(a=a.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&Mv(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=q(),s=F(i,function(l){return($(l)||xt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new At(l,this,this.ecModel))},this);this._data=Mt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;I(i,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;I(r,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;I(r,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ft(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:V.size.m,align:"auto",backgroundColor:V.color.transparent,borderColor:V.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:V.color.disabled,inactiveBorderColor:V.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:V.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miter
38Limit:"inherit"},textStyle:{color:V.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:V.color.tertiary,borderWidth:1,borderColor:V.color.border},emphasis:{selectorLabel:{show:!0,color:V.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(yt),Da=ot,rv=I,Os=Lt,uw=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Os),this.group.add(this._selectorGroup=new Os),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,a,l,s,u);var f=pu(r,a).refContainer,c=r.getBoxLayoutParams(),h=r.get("padding"),v=an(c,f,h),d=this.layoutInner(r,o,v,i,l,u),p=an(it({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=jx(d,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this.getContentGroup(),f=q(),c=n.get("selectedMode"),h=n.get("triggerEvent"),v=[];a.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),rv(n.getData(),function(d,p){var g=this,m=d.get("name");if(!this.newlineDisabled&&(m===""||m===` 39`)){var y=new Os;y.newline=!0,u.add(y);return}var _=a.getSeriesByName(m)[0];if(!f.get(m))if(_){var b=_.getData(),x=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),w=b.getVisual("style"),C=this._createItem(_,m,p,d,n,r,x,w,S,c,i);C.on("click",Da(B0,m,null,i,v)).on("mouseover",Da(nv,_.name,null,i,v)).on("mouseout",Da(av,_.name,null,i,v)),a.ssr&&C.eachChild(function(M){var T=ct(M);T.seriesIndex=_.seriesIndex,T.dataIndex=p,T.ssrType="legend"}),h&&C.eachChild(function(M){g.packEventData(M,n,_,p,m)}),f.set(m,!0)}else a.eachRawSeries(function(M){var T=this;if(!f.get(m)&&M.legendVisualProvider){var D=M.legendVisualProvider;if(!D.containName(m))return;var L=D.indexOfName(m),A=D.getItemVisual(L,"style"),P=D.getItemVisual(L,"legendIcon"),k=ze(A.fill);k&&k[3]===0&&(k[3]=.2,A=O(O({},A),{fill:Io(k,"rgba")}));var E=this._createItem(M,m,p,d,n,r,{},A,P,c,i);E.on("click",Da(B0,null,m,i,v)).on("mouseover",Da(nv,null,m,i,v)).on("mouseout",Da(av,null,m,i,v)),a.ssr&&E.eachChild(function(B){var R=ct(B);R.seriesIndex=M.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),h&&E.eachChild(function(B){T.packEventData(B,n,M,p,m)}),f.set(m,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype.packEventData=function(r,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};ct(r).eventData=s},t.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();rv(r,function(u){var f=u.type,c=new Ut({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Bo(c,{normal:h,emphasis:v},{defaultText:u.title}),Jc(c)})},t.prototype._createItem=function(r,n,a,i,o,s,l,u,f,c,h){var v=r.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var b=bN(f,i,l,u,v,g,h),x=new Os,S=i.getModel("textStyle");if(Z(r.getLegendIcon)&&(!_||_==="inherit"))x.add(r.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var w=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;x.add(SN({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:b.itemStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,M=s,T=o.get("formatter"),D=n;$(T)&&T?D=T.replace("{name}",n??""):Z(T)&&(D=T(n));var L=g?S.getTextColor():i.get("inactiveColor");x.add(new Ut({style:nn(S,{text:D,x:C,y:p/2,fill:L,align:M,verticalAlign:"middle"},{inheritColor:L})}));
39var A=new Ct({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Ro({el:A,componentModel:o,itemName:n,itemTooltipOption:P.option}),x.add(A),x.eachChild(function(k){k.silent=!0}),A.silent=!c,this.getContentGroup().add(x),Jc(x),x.__legendDataIndex=a,x},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();$a(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){$a("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:c[p]+=h[g]+d,v[1-p]+=f[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+h[g],_[m]=Math.max(f[m],h[m]),_[y]=Math.min(0,h[y]+v[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(de);function bN(e,t,r,n,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),rv(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:yh(c,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:r).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function SN(e){var t=e.icon||"roundRect",r=aa(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=V.color.neutral00,r.style.lineWidth=2),r}function B0(e,t,r,n){av(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),nv(e,t,r,n)}function fw(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,a=t.length;n<a&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function nv(e,t,r,n){fw(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function av(e,t,r,n){fw(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function xN(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Pi(e,t,r){var n=e==="allSelect"||e==="inverseSelect",a={},i=[];r.eachComponent({mainType:"legend",query:t},function(s){n?s[e]():s[e](t.name),N0(s,a),i.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){I(a,function(l,u){s[l?"select":"unSelect"](u)}),N0(s,o)}),n?{selected:o,legendIndex:i}:{name:t.name,selected:o}}function N0(e,t){var r=t||{};return I(e.getData(),function(n){var a=n.get("name");if(!(a===` 40`||a==="")){var i=e.isSelected(a);Fe(r,a)?r[a]=r[a]&&i:r[a]=i}}),r}function wN(e){e.registerAction("legendToggleSelect","legendselectchanged",ot(Pi,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",ot(Pi,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",ot(Pi,"inverseSelect")),e.registerAction("legendSelect","legendselected",ot(Pi,"select")),e.registerAction("legendUnSelect","legendunselected",ot(Pi,"unSelect"))}function cw(e){e.registerComponentModel(ev),e.registerComponentView(uw),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,xN),e.registerSubTypeDefaulter("legend",function(){return"plain"}),wN(e)}var TN=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,a){var i=Fo(r);e.prototype.init.call(this,r,n,a),F0(this,r,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),F0(this,this.option,r)},t.type="legend.scroll",t.defaultOption=Xv(ev.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:V.color.accent50,pageIconInactiveColor:V.color.accent10,pageIconSize:15,pageTextStyle:{color:V.color.tert
40iary},animationDurationUpdate:800}),t})(ev);function F0(e,t,r){var n=e.getOrient(),a=[1,1];a[n.index]=0,on(t,r,{type:"box",ignoreSize:!!a})}var z0=Lt,oc=["width","height"],sc=["x","y"],CN=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new z0),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new z0)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,a,i,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),h=N(c)?c:[c,c];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new Ut({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var m=p+"DataIndex",y=fu(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:lt(u._pageGo,u,m,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});y.name=p,f.add(y)}},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=oc[u],c=sc[u],h=oc[1-u],v=sc[1-u];o&&$a("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=rt(a);o&&(m[f]=a[f]-p[f]-d);var y=this._layoutContentAndController(r,i,m,u,f,h,v,c);if(o){if(s==="end")g[u]+=y[f]+d;else{var _=p[f]+d;g[u]-=_,y[c]-=_}y[f]+=p[f]+d,g[1-u]+=y[v]+y[h]/2-p[h]/2,y[h]=Math.max(y[h],p[h]),y[v]=Math.min(y[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,a,i,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;$a(r.get("orient"),f,r.get("itemGap"),i?a.width:null,i?null:a.height),$a("horizontal",h,r.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>a[o],g=[-v.x,-v.y];n||(g[i]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=X(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var b=r.get("pageButtonPosition",!0);b==="end"?y[i]+=a[o]-d[o]:m[i]+=d[o]+_}y[1-i]+=v[s]/2-d[s]/2,f.setPosition(g),c.setPosition(m),h.setPosition(y);var x={x:0,y:0};if(x[o]=p?a[o]:v[o],x[s]=Math.max(v[s],d[s]),x[l]=Math.min(0,d[l]+y[1-i]),c.__rectSize=a[o],p){var S={x:0,y:0};S[o]=Math.max(a[o]-d[o]-_,0),S[s]=x[s],c.setClipPath(new Ct({shape:S})),c.__rectSize=S[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&ve(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?r:null),this._updatePageInfoView(r,w),x},t.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;I(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",$(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=oc[o],l=sc[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=b(c);d.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=h;++g)_=b(f[g]),(!_&&y.e>m.s+i||_&&!x(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=b(f[g]),(!_||!x(y,_.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=_;return d;
40function b(S){if(S){var w=S.getBoundingRect(),C=w[l]+S[l];return{s:C,e:C+w[s],i:S.__legendDataIndex}}}function x(S,w){return S.e>=w&&S.s<=w+i}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===r&&(n=s)}),n??i},t.type="legend.scroll",t})(uw);function MN(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function DN(e){Lr(cw),e.registerComponentModel(TN),e.registerComponentView(CN),MN(e)}function AN(e){Lr(cw),Lr(DN)}var IN=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=Xv(qh.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t})(qh),jd=St();function LN(e,t,r){jd(e).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)})}function PN(e,t){for(var r=jd(e).coordSysRecordMap,n=r.keys(),a=0;a<n.length;a++){var i=n[a],o=r.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||hw(r,o))}}}function hw(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function kN(e,t){var r={model:t,containsPoint:ot(RN,t),dispatchAction:ot(EN,e),dataZoomInfoMap:null,controller:null},n=r.controller=new jR(e.getZr());return I(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];r.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function EN(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function RN(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function ON(e,t,r){var n,a="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return e.each(function(s){var l=s.model,u=l.get("disabled",!0)?!1:l.get("zoomLock",!0)?"move":!0;i[a+u]>i[a+n]&&(n=u),o=o&&l.get("preventDefaultMouseMove",!0)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:r,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function BN(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=jd(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=q());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=JO(i);I(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,kN(r,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=q());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){hw(a,i);return}var f=ON(l,i,r);o.enable(f.controlType,f.opt),vd(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var NN=(function(e){Y(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,a){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),LN(a,r,{pan:lt(lc.pan,this),zoom:lt(lc.zoom,this),scrollMove:lt(lc.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){PN(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t})(Xx),lc={zoom:function(e,t,r,n){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=uc[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Tu(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:V0(function(e,t,r,n,a,i){var o=uc[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:V0(function(e,t,r,n,a,i){var o=uc[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,r);return o.signal*(e[1]-e[0])*i.scrollDelta})};function V0(e){return function(t,r,n,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,a);if(Tu(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var uc={grid:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,r,n,a){var i=r.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function FN(e){Zx(e),e.registerComponentModel(IN),e.registerComponentView(NN),BN(e)}var Qe=Ar.CMD;function Va(e,t){return Math.abs(e-t)<1e-5}function iv(e){var t=e.data,r=e.len(),n=[],a,i=0,o=0,s=0,l=0;function u(A,P){a&&a.length>2&&n.push(a),a=[A,P]}
40function f(A,P,k,E){Va(A,k)&&Va(P,E)||a.push(A,P,k,E,k,E)}function c(A,P,k,E,B,R){var z=Math.abs(P-A),G=Math.tan(z/4)*4/3,H=P<A?-1:1,U=Math.cos(A),j=Math.sin(A),st=Math.cos(P),_t=Math.sin(P),Vt=U*B+k,ae=j*R+E,$t=st*B+k,kt=_t*R+E,It=B*G*H,J=R*G*H;a.push(Vt-It*j,ae+J*U,$t+It*_t,kt-J*st,$t,kt)}for(var h,v,d,p,g=0;g<r;){var m=t[g++],y=g===1;switch(y&&(i=t[g],o=t[g+1],s=i,l=o,(m===Qe.L||m===Qe.C||m===Qe.Q)&&(a=[s,l])),m){case Qe.M:i=s=t[g++],o=l=t[g++],u(s,l);break;case Qe.L:h=t[g++],v=t[g++],f(i,o,h,v),i=h,o=v;break;case Qe.C:a.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],o=t[g++]);break;case Qe.Q:h=t[g++],v=t[g++],d=t[g++],p=t[g++],a.push(i+2/3*(h-i),o+2/3*(v-o),d+2/3*(h-d),p+2/3*(v-p),d,p),i=d,o=p;break;case Qe.A:var _=t[g++],b=t[g++],x=t[g++],S=t[g++],w=t[g++],C=t[g++]+w;g+=1;var M=!t[g++];h=Math.cos(w)*x+_,v=Math.sin(w)*S+b,y?(s=h,l=v,u(s,l)):f(i,o,h,v),i=Math.cos(C)*x+_,o=Math.sin(C)*S+b;for(var T=(M?-1:1)*Math.PI/2,D=w;M?D>C:D<C;D+=T){var L=M?Math.max(D+T,C):Math.min(D+T,C);c(D,L,_,b,x,S)}break;case Qe.R:s=i=t[g++],l=o=t[g++],h=s+t[g++],v=l+t[g++],u(h,l),f(h,l,h,v),f(h,v,s,v),f(s,v,s,l),f(s,l,h,l);break;case Qe.Z:a&&f(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function ov(e,t,r,n,a,i,o,s,l,u){if(Va(e,r)&&Va(t,n)&&Va(a,o)&&Va(i,s)){l.push(o,s);return}var f=2/u,c=f*f,h=o-e,v=s-t,d=Math.sqrt(h*h+v*v);h/=d,v/=d;var p=r-e,g=n-t,m=a-o,y=i-s,_=p*p+g*g,b=m*m+y*y;if(_<c&&b<c){l.push(o,s);return}var x=h*p+v*g,S=-h*m-v*y,w=_-x*x,C=b-S*S;if(w<c&&x>=0&&C<c&&S>=0){l.push(o,s);return}var M=[],T=[];tn(e,r,a,o,.5,M),tn(t,n,i,s,.5,T),ov(M[0],T[0],M[1],T[1],M[2],T[2],M[3],T[3],l,u),ov(M[4],T[4],M[5],T[5],M[6],T[6],M[7],T[7],l,u)}function zN(e,t){var r=iv(e),n=[];t=t||1;for(var a=0;a<r.length;a++){var i=r[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],c=i[u++],h=i[u++],v=i[u++],d=i[u++],p=i[u++];ov(s,l,f,c,h,v,d,p,o,t),s=d,l=p}n.push(o)}return n}function vw(e,t,r){var n=e[t],a=e[1-t],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,c=r-f;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function G0(e,t,r){for(var n=e.r0,a=e.r,i=e.startAngle,o=e.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,f=l>Math.abs(u),c=vw([l,u],f?0:1,t),h=(f?s:u)/c.length,v=0;v<c.length;v++)for(var d=(f?u:s)/c[v],p=0;p<c[v];p++){var g={};f?(g.startAngle=i+h*v,g.endAngle=i+h*(v+1),g.r0=n+d*p,g.r=n+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=n+h*v,g.r=n+h*(v+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,r.push(g)}}function VN(e,t,r){for(var n=e.width,a=e.height,i=n>a,o=vw([n,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",c=e[s]/o.length,h=0;h<o.length;h++)for(var v=e[l]/o[h],d=0;d<o[h];d++){var p={};p[u]=h*c,p[f]=d*v,p[s]=c,p[l]=v,p.x+=e.x,p.y+=e.y,r.push(p)}}function H0(e,t,r,n){return e*n-r*t}function GN(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,f=o-a,c=s-i,h=H0(f,c,l,u);if(Math.abs(h)<1e-6)return null;var v=e-a,d=t-i,p=H0(v,d,f,c)/h;return p<0||p>1?null:new pt(p*l+e,p*u+t)}function HN(e,t,r){var n=new pt;pt.sub(n,r,t),n.normalize();var a=new pt;pt.sub(a,e,t);var i=a.dot(n);return i}function Aa(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function WN(e,t,r){for(var n=e.length,a=[],i=0;i<n;i++){var o=e[i],s=e[(i+1)%n],l=GN(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&a.push({projPt:HN(l,t,r),pt:l,idx:i})}if(a.length<2)return[{points:e},{points:e}];a.sort(function(g,m){return g.projPt-m.projPt});var u=a[0],f=a[a.length-1];if(f.idx<u.idx){var c=u;u=f,f=c}for(var h=[u.pt.x,u.pt.y],v=[f.pt.x,f.pt.y],d=[h],p=[v],i=u.idx+1;i<=f.idx;i++)Aa(d,e[i].slice());Aa(d,v),Aa(d,h);for(var i=f.idx+1;i<=u.idx+n;i++)Aa(p,e[i%n].slice());return Aa(p,h),Aa(p,v),[{points:d},{points:p}]}function W0(e){var t=e.points,r=[],n=[];v1(t,r,n);var a=new ut(r[0],r[1],n[0]-r[0],n[1]-r[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new pt,f=new pt;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),WN(t,u,f)}function Vl(e,t,r,n){if(r===1)n.push(t);else{var a=Math.floor(r/2),i=e(t);Vl(e,i[0],a,n),Vl(e,i[1],r-a,n)}return n}function UN(e,t){for(var r=[],n=0;n<t;n++)r.push(Nv(e));return r}function $N(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function YN(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function XN(e,t){var r=[],n=e.shape,a;
40switch(e.type){case"rect":VN(n,t,r),a=Ct;break;case"sector":G0(n,t,r),a=rn;break;case"circle":G0({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),a=rn;break;default:var i=e.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=F(zN(e.getUpdatedPathProxy(),o),function(m){return YN(m)}),l=s.length;if(l===0)Vl(W0,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var f=0,c=F(s,function(m){var y=[],_=[];v1(m,y,_);var b=(_[1]-y[1])*(_[0]-y[0]);return f+=b,{poly:m,area:b}});c.sort(function(m,y){return y.area-m.area});for(var h=t,u=0;u<l;u++){var v=c[u];if(h<=0)break;var d=u===l-1?h:Math.ceil(v.area/f*t);d<0||(Vl(W0,{points:v.poly},d,r),h-=d)}}a=Eo;break}if(!a)return UN(e,t);for(var p=[],u=0;u<r.length;u++){var g=new a;g.setShape(r[u]),$N(e,g),p.push(g)}return p}function ZN(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var a=[],i=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,c=[o[0],o[1]],h=l,v=2;v<s;){var d=o[v-2],p=o[v-1],g=o[v++],m=o[v++],y=o[v++],_=o[v++],b=o[v++],x=o[v++];if(h<=0){c.push(g,m,y,_,b,x);continue}for(var S=Math.min(h,f-1)+1,w=1;w<=S;w++){var C=w/S;tn(d,g,y,b,C,a),tn(p,m,_,x,C,i),d=a[3],p=i[3],c.push(a[1],i[1],a[2],i[2],d,p),g=a[5],m=i[5],y=a[6],_=i[6]}h-=S-1}return o===e?[c,t]:[e,c]}function U0(e,t){for(var r=e.length,n=e[r-2],a=e[r-1],i=[],o=0;o<t.length;)i[o++]=n,i[o++]=a;return i}function qN(e,t){for(var r,n,a,i=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],f=void 0,c=void 0;l?u?(r=ZN(l,u),f=r[0],c=r[1],n=f,a=c):(c=U0(a||l,l),f=l):(f=U0(n||u,u),c=u),i.push(f),o.push(c)}return[i,o]}function $0(e){for(var t=0,r=0,n=0,a=e.length,i=0,o=a-2;i<a;o=i,i+=2){var s=e[o],l=e[o+1],u=e[i],f=e[i+1],c=s*f-u*l;t+=c,r+=(s+u)*c,n+=(l+f)*c}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function KN(e,t,r,n){for(var a=(e.length-2)/6,i=1/0,o=0,s=e.length,l=s-2,u=0;u<a;u++){for(var f=u*6,c=0,h=0;h<s;h+=2){var v=h===0?f:(f+h-2)%l+2,d=e[v]-r[0],p=e[v+1]-r[1],g=t[h]-n[0],m=t[h+1]-n[1],y=g-d,_=m-p;c+=y*y+_*_}c<i&&(i=c,o=u)}return o}function jN(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function QN(e,t,r,n){for(var a=[],i,o=0;o<e.length;o++){var s=e[o],l=t[o],u=$0(s),f=$0(l);i==null&&(i=u[2]<0!=f[2]<0);var c=[],h=[],v=0,d=1/0,p=[],g=s.length;i&&(s=jN(s));for(var m=KN(s,l,u,f)*6,y=g-2,_=0;_<y;_+=2){var b=(m+_)%y+2;c[_+2]=s[b]-u[0],c[_+3]=s[b+1]-u[1]}c[0]=s[m]-u[0],c[1]=s[m+1]-u[1];for(var x=n/r,S=-n/2;S<=n/2;S+=x){for(var w=Math.sin(S),C=Math.cos(S),M=0,_=0;_<s.length;_+=2){var T=c[_],D=c[_+1],L=l[_]-f[0],A=l[_+1]-f[1],P=L*C-A*w,k=L*w+A*C;p[_]=P,p[_+1]=k;var E=P-T,B=k-D;M+=E*E+B*B}if(M<d){d=M,v=S;for(var R=0;R<p.length;R++)h[R]=p[R]}}a.push({from:c,to:h,fromCp:u,toCp:f,rotation:-v})}return a}function Gl(e){return e.__isCombineMorphing}var dw="__mOriginal_";function Hl(e,t,r){var n=dw+t,a=e[n]||e[t];e[n]||(e[n]=e[t]);var i=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function to(e,t){var r=dw+t;e[r]&&(e[t]=e[r],e[r]=null)}function Y0(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=t[0]*i+t[2]*o+t[4],n[a++]=t[1]*i+t[3]*o+t[5]}}function pw(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),a=qN(iv(r),iv(n)),i=a[0],o=a[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&Y0(i,s),l&&Y0(o,l),Hl(t,"updateTransform",{replace:u}),t.transform=null;var f=QN(i,o,10,Math.PI),c=[];Hl(t,"buildPath",{replace:function(h){for(var v=t.__morphT,d=1-v,p=[],g=0;g<f.length;g++){var m=f[g],y=m.from,_=m.to,b=m.rotation*v,x=m.fromCp,S=m.toCp,w=Math.sin(b),C=Math.cos(b);MT(p,x,S,v);for(var M=0;M<y.length;M+=2){var T=y[M],D=y[M+1],L=_[M],A=_[M+1],P=T*d+L*v,k=D*d+A*v;c[M]=P*C-k*w+p[0],c[M+1]=P*w+k*C+p[1]}var E=c[0],B=c[1];h.moveTo(E,B);for(var M=2;M<y.length;){var L=c[M++],A=c[M++],R=c[M++],z=c[M++],G=c[M++],H=c[M++];E===L&&B===A&&R===G&&z===H?h.lineTo(G,H):h.bezierCurveTo(L,A,R,z,G,H),E=G,B=H}}}})}function Qd(e,t,r){if(!e||!t)return t;var n=r.done,a=r.during;pw(e,t),t.__morphT=0;function i(){to(t,"buildPath"),to(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},it({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},r)),t}function JN(e,t,r,n,a,i){var o=16;e=a===r?0:Math.round(32767*(e-r)/(a-r)),t=i===n?0:Math.round(32767*(t-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,c=0;(e&u)>0&&(f=1),(t&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function Wl(e){var t=1/0,r=1/0,n=-1/0,a=-1/0,i=F(e,function(s){var l=s.getBoundingRect
40(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),r=Math.min(c,r),n=Math.max(f,n),a=Math.max(c,a),[f,c]}),o=F(i,function(s,l){return{cp:s,z:JN(s[0],s[1],t,r,n,a),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function gw(e){return XN(e.path,e.count)}function sv(){return{fromIndividuals:[],toIndividuals:[],count:0}}function t5(e,t,r){var n=[];function a(x){for(var S=0;S<x.length;S++){var w=x[S];Gl(w)?a(w.childrenRef()):w instanceof vt&&n.push(w)}}a(e);var i=n.length;if(!i)return sv();var o=r.dividePath||gw,s=o({path:t,count:i});if(s.length!==i)return sv();n=Wl(n),s=Wl(s);for(var l=r.done,u=r.during,f=r.individualDelay,c=new jl,h=0;h<i;h++){var v=n[h],d=s[h];d.parent=t,d.copyTransform(c),f||pw(v,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(x){for(var S=0;S<s.length;S++)s[S].addSelfToZr(x)}Hl(t,"addSelfToZr",{after:function(x){p(x)}}),Hl(t,"removeSelfFromZr",{after:function(x){for(var S=0;S<s.length;S++)s[S].removeSelfFromZr(x)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,to(t,"addSelfToZr"),to(t,"removeSelfFromZr")}var m=s.length;if(f)for(var y=m,_=function(){y--,y===0&&(g(),l&&l())},h=0;h<m;h++){var b=f?it({delay:(r.delay||0)+f(h,m,n[h],s[h]),done:_},r):r;Qd(n[h],s[h],b)}else t.__morphT=0,t.animateTo({__morphT:1},it({during:function(x){for(var S=0;S<m;S++){var w=s[S];w.__morphT=t.__morphT,w.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<e.length;x++)to(e[x],"updateTransform");l&&l()}},r));return t.__zr&&p(t.__zr),{fromIndividuals:n,toIndividuals:s,count:m}}function e5(e,t,r){var n=t.length,a=[],i=r.dividePath||gw;function o(v){for(var d=0;d<v.length;d++){var p=v[d];Gl(p)?o(p.childrenRef()):p instanceof vt&&a.push(p)}}if(Gl(e)){o(e.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(Nv(a[l++%s]));a.length=n}else{a=i({path:e,count:n});for(var f=e.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==n)return sv()}a=Wl(a),t=Wl(t);for(var c=r.individualDelay,u=0;u<n;u++){var h=c?it({delay:(r.delay||0)+c(u,n,a[u],t[u])},r):r;Qd(a[u],t[u],h)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function X0(e){return N(e[0])}function Z0(e,t){for(var r=[],n=e.length,a=0;a<n;a++)r.push({one:e[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,o=void 0;for(o=0;o<i;o++)r[o%n].many.push(t[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!r[a].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var i=l.length,u=Math.ceil(i/2);r[a].many=l.slice(u,i),r[s].many=l.slice(0,u),s++}return r}var r5={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var a=Nv(e.path);a.setStyle("opacity",r),t.push(a)}return t},split:null};function fc(e,t,r,n,a,i){if(!e.length||!t.length)return;var o=uu("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;X0(e)&&(u=e,f=t),X0(t)&&(u=t,f=e);function c(m,y,_,b,x){var S=m.many,w=m.one;if(S.length===1&&!x){var C=y?S[0]:w,M=y?w:S[0];if(Gl(C))c({many:[C],one:M},!0,_,b,!0);else{var T=s?it({delay:s(_,b)},l):l;Qd(C,M,T),i(C,M,C,M,T)}}else for(var D=it({dividePath:r5[r],individualDelay:s&&function(B,R,z,G){return s(B+_,b)}},l),L=y?t5(S,w,D):e5(w,S,D),A=L.fromIndividuals,P=L.toIndividuals,k=A.length,E=0;E<k;E++){var T=s?it({delay:s(E,k)},l):l;i(A[E],P[E],y?S[E]:m.one,y?m.one:S[E],T)}}for(var h=u?u===e:e.length>t.length,v=u?Z0(f,u):Z0(h?t:e,[h?e:t]),d=0,p=0;p<v.length;p++)d+=v[p].many.length;for(var g=0,p=0;p<v.length;p++)c(v[p],h,g,d),g+=v[p].many.length}function Nn(e){if(!e)return[];if(N(e)){for(var t=[],r=0;r<e.length;r++)t.push(Nn(e[r]));return t}var n=[];return e.traverse(function(a){a instanceof vt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var mw=1e4,n5=0,q0=1,K0=2,a5=St();function i5(e,t){for(var r=e.dimensions,n=0;n<r.length;n++){var a=e.getDimensionInfo(r[n]);if(a&&a.otherDims[t]===0)return r[n]}}function o5(e,t,r){var n=e.getDimensionInfo(r),a=n&&n.ordinalMeta;if(n){var i=e.get(n.name,t);return a&&a.categories[i]||i+""}}function j0(e,t,r,n){var a=n?"itemChildGroupId":"itemGroupId",i=i5(e,a);if(i){var o=o5(e,t,i);return o}var s=e.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return r||e.getId(t)}function Q0(e){var t=[];return I(e,function(r){var n=r.data,a=r.dataGroupId;if(!(n.count()>mw))for(var i=n.getIndices(),o=0;o<i.length;o++)t.push({data:n,groupId:j0(n,o,a,!1),childGroupId:j0(n,o,a,!0),divide:r.divide,dataIndex:o})}),t}function cc(e,t,r){e.traverse(function(n){n instanceof vt&&Ge(n,{style:{opacity:0}
40},t,{dataIndex:r,isFrom:!0})})}function hc(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Ia(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function s5(e,t,r){var n=uu("update",r,t);n&&e.traverse(function(a){if(a instanceof oi){var i=aA(a);i&&a.animateFrom({style:i},n)}})}function l5(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var a=e[n],i=t[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function yw(e,t,r){var n=Q0(e),a=Q0(t);function i(_,b,x,S,w){(x||_)&&b.animateFrom({style:x&&x!==_?O(O({},x.style),_.style):_.style},w)}var o=!1,s=n5,l=q(),u=q();n.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<a.length;f++){var c=a[f].groupId;if(u.get(c)){s=q0;break}var h=a[f].childGroupId;if(h&&l.get(h)){s=K0;break}}function v(_,b){return function(x){var S=x.data,w=x.dataIndex;return b?S.getId(w):_?s===q0?x.childGroupId:x.groupId:s===K0?x.childGroupId:x.groupId}}var d=l5(n,a),p={};if(!d)for(var f=0;f<a.length;f++){var g=a[f],m=g.data.getItemGraphicEl(g.dataIndex);m&&(p[m.id]=!0)}function y(_,b){var x=n[b],S=a[_],w=S.data.hostModel,C=x.data.getItemGraphicEl(x.dataIndex),M=S.data.getItemGraphicEl(S.dataIndex);if(C===M){M&&s5(M,S.dataIndex,w);return}C&&p[C.id]||M&&(Ia(M),C?(Ia(C),hc(C),o=!0,fc(Nn(C),Nn(M),S.divide,w,_,i)):cc(M,w,_))}new yo(n,a,v(!0,d),v(!1,d),null,"multiple").update(y).updateManyToOne(function(_,b){var x=a[_],S=x.data,w=S.hostModel,C=S.getItemGraphicEl(x.dataIndex),M=Mt(F(b,function(T){return n[T].data.getItemGraphicEl(n[T].dataIndex)}),function(T){return T&&T!==C&&!p[T.id]});C&&(Ia(C),M.length?(I(M,function(T){Ia(T),hc(T)}),o=!0,fc(Nn(M),Nn(C),x.divide,w,_,i)):cc(C,w,x.dataIndex))}).updateOneToMany(function(_,b){var x=n[b],S=x.data.getItemGraphicEl(x.dataIndex);if(!(S&&p[S.id])){var w=Mt(F(_,function(M){return a[M].data.getItemGraphicEl(a[M].dataIndex)}),function(M){return M&&M!==S}),C=a[_[0]].data.hostModel;w.length&&(I(w,function(M){return Ia(M)}),S?(Ia(S),hc(S),o=!0,fc(Nn(S),Nn(w),x.divide,C,_[0],i)):I(w,function(M){return cc(M,C,_[0])}))}}).updateManyToMany(function(_,b){new yo(b,_,function(x){return n[x].data.getId(n[x].dataIndex)},function(x){return a[x].data.getId(a[x].dataIndex)}).update(function(x,S){y(_[x],b[S])}).execute()}).execute(),o&&I(t,function(_){var b=_.data,x=b.hostModel,S=x&&r.getViewOfSeriesModel(x),w=uu("update",x,0);S&&x.isAnimationEnabled()&&w&&w.duration>0&&S.group.traverse(function(C){C instanceof vt&&!C.animators.length&&C.animateFrom({style:{opacity:0}},w)})})}function J0(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function t_(e){return N(e)?e.sort().join(","):e}function Ur(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function u5(e,t){var r=q(),n=q(),a=q();return I(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=J0(i),f=t_(u);n.set(f,{dataGroupId:s,data:l}),N(u)&&I(u,function(c){a.set(c,{key:f,dataGroupId:s,data:l})})}),I(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=J0(i),u=t_(l),f=n.get(u);if(f)r.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Ur(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Ur(s),data:s}]});else if(N(l)){var c=[];I(l,function(d){var p=n.get(d);p.data&&c.push({dataGroupId:p.dataGroupId,divide:Ur(p.data),data:p.data})}),c.length&&r.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Ur(s)}]})}else{var h=a.get(l);if(h){var v=r.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Ur(h.data)}],newSeries:[]},r.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Ur(s)})}}}}),r}function e_(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function f5(e,t,r,n){var a=[],i=[];I(Bt(e.from),function(o){var s=e_(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Ur(t.oldData[s]),groupIdDim:o.dimension})}),I(Bt(e.to),function(o){var s=e_(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Ur(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&yw(a,i,n)}function c5(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){I(Bt(n.seriesTransition),function(a){I(Bt(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][js]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var a=a5(r);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)I(Bt(i),function(v){f5(v,a,n,r)});else{var o=u5(a,n);I(o.keys(),function(v){var d=o.get(v);yw(d.oldSeries,d.newSeries,r)})}I(n.updatedSeries,function(v){v[js]&&(v[js]=!1)})}for(var s=t.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],c=0;c<s.length;c++){var h=s[c].getData();h.count()<mw&&(l.push(s[c]),u.push(s[c].get("dataGroupId")),f.push(h))}})}function h5(){LR(v5)}function v5(e,t){I(e,function(r){if(!r.model.get(["axisLabel","inside"])){var n=d5(r);if(n){var a=r.isHorizontal()?"height":"width",i=r.model.get(["axisLabel","margin"]);t[a]-=n[a]+i,r.position==="top"?t.y+=n.height+i:r.position==="left"&&(t.x+=n.width+i)}}})}function d5(e){var t=e.model,r=e.scale;if(!t.get(["axisLabel","show"])||r.isBlank())return;var n,a,i=r.getExtent();r instanceof Cd?a=r.count():(n=r.getTicks(),a=n.length);var o=e.getLabelModel(),s=li(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var c=n?n[f]:{value:i[0]+f}
40,h=s(c,f),v=o.getTextRect(h),d=p(v,o.get("rotate")||0);l?l.union(d):l=d}return l;function p(g,m){var y=m*Math.PI/180,_=g.width,b=g.height,x=_*Math.abs(Math.cos(y))+Math.abs(b*Math.sin(y)),S=_*Math.abs(Math.sin(y))+Math.abs(b*Math.cos(y)),w=new ut(g.x,g.y,x,S);return w}}Lr([hE,jE,OE,qO,eN,AN,FN,yN,hN,BB,aN,Xd,c5,h5]);const p5=["setOption","getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"],g5=te({inheritAttrs:!1,setup(e,{attrs:t,slots:r,expose:n}){const a=jt(null),i=Object.fromEntries(p5.map(o=>[o,(...s)=>(a.value?.[o])(...s)]));return n({...i,root:ep(()=>a.value?.root),chart:ep(()=>a.value?.chart)}),()=>nl(kk,{...t,ref:a},r)}}),m5={},y5={class:"skeleton-chart"},_5={class:"y-axis"},b5={class:"chart-area"},S5={class:"grid-lines"},x5={class:"bars"};function w5(e,t){return et(),gt("div",y5,[Q("div",_5,[(et(),gt(Ne,null,or(5,r=>Q("div",{key:r,class:"y-label"})),64))]),Q("div",b5,[Q("div",S5,[(et(),gt(Ne,null,or(5,r=>Q("div",{key:r,class:"grid-line"})),64))]),Q("div",x5,[(et(),gt(Ne,null,or(12,r=>Q("div",{key:r,class:"bar",style:Xl({height:`${20+Math.sin(r*.8)*30+40}%`})},null,4)),64))])])])}const T5=Object.assign(ne(m5,[["render",w5],["__scopeId","data-v-6642d845"]]),{__name:"SkeletonChart"}),C5={class:"no-series-overlay"},M5=te({__name:"NoSeriesSelected",setup(e){const t=un().t;return(r,n)=>(et(),gt("div",C5,Ot(tt(t)("page.personal_stats.charts.no_series_selected")),1))}}),D5=Object.assign(ne(M5,[["__scopeId","data-v-f00a8ea0"]]),{__name:"StatsChartsNoSeriesSelected"}),A5={class:"chart-container"},I5=te({__name:"StackedLineChart",props:{data:{type:Object,required:!0},filterOutSeriesWithZeroLabelValues:{type:Boolean,default:!1},useCurrencyFormatterForYAxis:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},tooltipFormatter:{type:Function,default:null}},setup(e){const t=nt(()=>uv().hasDarkTheme.value),r=jt(null),n=jt(!1),a=e,i=jt(0),o=nt(()=>a.filterOutSeriesWithZeroLabelValues?a.data.seriesData.filter(g=>g.legendNumberValue!==0):a.data.seriesData),s=jt(new Set),l=nt(()=>s.value.size===0);Tr(o,g=>{s.value=new Set(g.map(m=>m.name))},{immediate:!0});const u=g=>{r.value?.dispatchAction({type:"legendSelect",name:g})},f=g=>{r.value?.dispatchAction({type:"legendUnSelect",name:g})},c=(g,m)=>{m?(s.value.add(g),u(g)):(s.value.delete(g),f(g))};Tr(()=>a.data,()=>{o.value.forEach(g=>{u(g.name)}),i.value+=1});const h=(g,m)=>{const y=parseInt(g.slice(1,3),16),_=parseInt(g.slice(3,5),16),b=parseInt(g.slice(5,7),16);return`rgba(${y}, ${_}, ${b}, ${m})`},v=g=>{if(Array.isArray(g))return"";const m=g,_={period:a.data.categories[m.dataIndex],series:[{color:m.color,seriesName:m.seriesName,selectedValue:m.value,dataIndex:m.dataIndex,tooltipKey:a.data.seriesData.find(b=>b.name===m.seriesName)?.tooltipKey}]};return a.tooltipFormatter?a.tooltipFormatter(_):"Passed formatter not implemented"},d=Mo(),p=nt(()=>({backgroundColor:"var(--color-bg-main)",tooltip:{trigger:"item",backgroundColor:"var(--color-bg-main)",borderRadius:10,borderWidth:0,enterable:!0,textStyle:{color:"red"},formatter:v,extraCssText:"z-index: 5;"},legend:{show:!1},grid:{left:"5%",right:"5%",bottom:"5%",top:"5%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:a.data.categories,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{formatter:Xa.formatDateForChartXAxis,color:"var(--color-main-black)",fontSize:10,rotate:0}},yAxis:{type:"value",axisLabel:{formatter:g=>a.useCurrencyFormatterForYAxis?d.format(g):g.toString(),color:"var(--color-main-black)",fontSize:10}},dataZoom:[{type:"inside",start:0,end:100}],series:o.value.map(g=>({name:g.name,type:"line",smooth:!1,symbol:"circle",symbolSize:8,itemStyle:{color:g.color,borderColor:"transparent",borderWidth:20},showAllSymbol:!0,data:g.data,lineStyle:{color:g.color,width:2},emphasis:{focus:"series",scale:!0},areaStyle:{color:h(g.color,.25)}}))}));return(g,m)=>{const y=jw,_=eT,b=g5,x=T5,S=D5;return et(),gt("div",null,[c_(Dt(_,null,{default:Be(()=>[e.isLoading?(et(),gt(Ne,{key:0},or(3,w=>Dt(y,{key:w,"legend-key":String(w),label:"",color:"var(--color-skeleton)",value:"","
40is-loading":!0},null,8,["legend-key"])),64)):(et(!0),gt(Ne,{key:1},or(tt(o),w=>(et(),Me(y,{key:`${w.name}-${tt(i)}`,"legend-key":w.name,label:w.name,color:w.color,value:w.legendValue,onToggle:c},null,8,["legend-key","label","color","value"]))),128))]),_:1},512),[[h_,tt(n)]]),Q("div",A5,[Dt(b,{ref_key:"chartRef",ref:r,class:"stacked-line-chart",option:tt(p),theme:tt(t)?"dark":void 0,autoresize:"",onRendered:m[0]||(m[0]=w=>n.value=!0)},null,8,["option","theme"]),Dt(a_,{name:"fade"},{default:Be(()=>[!tt(n)||e.isLoading?(et(),Me(x,{key:0,class:"skeleton-overlay"})):Mr("",!0)]),_:1}),tt(l)?(et(),Me(S,{key:0})):Mr("",!0)])])}}}),_w=Object.assign(ne(I5,[["__scopeId","data-v-bcbb3670"]]),{__name:"StatsChartsStackedLineChart"}),L5={class:"tabs"},P5={class:"tab-buttons"},k5=["onClick"],E5=["textContent"],R5={class:"select-fallback select-fallback--tiny"},O5={class:"content"},B5=te({__name:"Tabs",props:dc({tabs:{type:Array,required:!0},selectData:{type:Ul,default:null}},{modelValue:{type:String,required:!0},modelModifiers:{},select:{type:String,default:""},selectModifiers:{}}),emits:["update:modelValue","update:select"],setup(e){const t=lv(),r=nt(()=>t.getIsMobile),n=e,a=vc(e,"modelValue"),i=vc(e,"select"),o=jt([]),s=jt({opacity:0}
40),l=()=>{const f=n.tabs.findIndex(p=>p.key===a.value);if(f===-1||!o.value[f]){s.value={opacity:0};return}const c=o.value[f],h=c.offsetWidth,v=h*.75,d=(h-v)/2;s.value={width:`${v}px`,transform:`translateX(${c.offsetLeft+d}px)`}};Tr([a,()=>n.tabs.map(f=>f.percentageChange?.value)],()=>f_(l),{immediate:!0}),$l(()=>{l()});const u=f=>{a.value=f};return(f,c)=>{const h=kw,v=d_,d=i_;return et(),gt("div",L5,[Q("div",{class:rl(["header",{mobile:tt(r)}])},[Q("div",P5,[(et(!0),gt(Ne,null,or(e.tabs,p=>(et(),gt("button",{key:p.key,ref_for:!0,ref_key:"tabButtonRefs",ref:o,class:rl(["tab-button",{active:p.key===a.value}]),onClick:g=>u(p.key)},[Q("span",{textContent:Ot(p.label)},null,8,E5),p.percentageChange&&p.percentageChange.value!==null&&p.percentageChange.value!==0?(et(),Me(h,{key:0,percentage:p.percentageChange.value,help:p.percentageChange.help,grayed:p.key!==a.value},null,8,["percentage","help","grayed"])):Mr("",!0)],10,k5))),128)),Q("div",{class:"underline",style:Xl(tt(s))},null,4)]),e.selectData?(et(),Me(d,{key:0},{fallback:Be(()=>[Q("div",R5,[Q("span",null,Ot(e.selectData.options[0]?.text??""),1)])]),default:Be(()=>[Dt(v,{modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=p=>i.value=p),data:e.selectData,tiny:"",class:"tab-select"},null,8,["modelValue","data"])]),_:1})):Mr("",!0)],2),Q("div",O5,[l_(f.$slots,"default",{activeTabKey:a.value},void 0,!0)])])}}}),bw=Object.assign(ne(B5,[["__scopeId","data-v-0478e936"]]),{__name:"StatsTabs"}),qt={Followers:{Total:"#685CD3",New:"#50B637",Cancelled:"#D2452D"},Earnings:{Total:"#685CD3",Subscriptions:"#5CBDD3",Gifted:"#B637B0",Tips:"#4cae34",Unlocks:"#6B21A8",Series:"#D3885C",VolumeDiscount:"#D35C5E",Venues:"#D3B95C"}},Zr=["#2563EB","#DC2626","#16A34A","#F59E0B","#8B5CF6","#D97706","#06B6D4","#F97316","#6366F1","#84CC16","#14B8A6","#A855F7","#EF4444","#0EA5E9","#22C55E","#EAB308","#E11D48","#7C3AED","#0891B2","#C026D3","#4F46E5","#65A30D","#0D9488","#EA580C","#2DD4BF","#A3E635","#38BDF8","#FB7185","#818CF8","#1D4ED8","#B91C1C","#15803D","#A16207","#7E22CE","#0E7490","#C2410C","#4338CA","#4D7C0F","#0F766E","#9333EA","#059669","#9F1239","#1E40AF","#166534","#92400E","#6B21A8","#155E75"],r_=["#685CD3","#50B637","#D3B95C"],N5={class:"line-chart-tooltip"},F5={class:"period"},z5={class:"wrapper"},V5={class:"serie__color"},G5={class:"serie__detail"},H5={class:"serie__detail__row label"},W5=["title"],U5=["textContent"],$5=["textContent"],Y5=["title"],X5=["textContent"],Z5=["textContent"],q5=te({__name:"ChartTooltip",props:{data:{type:Object,required:!0},detail:{type:Object,required:!0},chartType:{type:String,required:!0},grouping:{type:String,required:!0}},setup(e){const t=e,r=un().t,n=fv(),a=Mo(),i=nt(()=>Xa.formatDateForChartXAxis(t.detail.period)),o=T=>t.data.periods[T],s=T=>({color:T.color,label:T.seriesName,value:t.chartType==="earnings"?a.format(T.selectedValue):n.value.format(T.selectedValue),breakdown:[]}),l=T=>(T.tiers_total??[]).sort((D,L)=>D.followers.total-L.followers.total).map(D=>({label:D.tier_name,value:n.value.format(D.followers.total)})),u=T=>(T.tiers??[]).sort((D,L)=>D.new-L.new).map(D=>({label:D.title,value:n.value.format(D.new)})),f=T=>(T.tiers??[]).sort((D,L)=>L.cancelled-D.cancelled).map(D=>({label:D.title,value:n.value.format(D.cancelled)})),c=T=>[{label:r("page.personal_stats.charts.tooltip.new_endors"),value:n.value.format(T.new)},{label:r("page.personal_stats.charts.tooltip.cancelled_endors"),value:n.value.format(T.cancelled)}],h=T=>T.series.map(D=>({label:D.series_name,value:n.value.format(D.purchased_count+D.gifted_count)})),v=T=>[{label:r("page.personal_stats.charts.tooltip.bought_series"),value:n.value.format(T.purchased_count)},{label:r("page.personal_stats.charts.tooltip.gifted_series"),value:n.value.format(T.gifted_count)}],d=(T,D,L)=>[...T].sort((A,P)=>D(P)-D(A)).map(A=>({label:L(A),value:a.format(D(A))})),p=T=>d(T.tiers,D=>D.earnings.total_subscription,D=>D.title),g=T=>d(T.tiers,D=>D.earnings.gifted,D=>D.title),m=T=>d(T.series,D=>D.earnings_total,D=>D.series_name),y=T=>d(T.venues??[],D=>D.earnings_total,D=>D.venue_name),_=nt(()=>t.data.periods.some(T=>(T.venues??[]).length>0)),b=T=>{const D=[{label:r("page.personal_stats.charts.earnings.subscriptions"),value:T.earnings.subscriptions},{label:r("page.personal_stats.charts.earnings.gifted"),value:T.earnings.gifted_subscriptions},{label:r("page.personal_stats.charts.earnings.tips"),value:T.earnings.tips},{label:r("page.personal_stats.charts.earnings.unlocks"),value:T.earnings.post_unlocks},{label:r("page.personal_stats.charts.earnings.series"),value:T.earnings.series},{label:r("page.personal_stats.charts.earnings.volume_discount"),value:T.earnings.volume_discounts}];return _.value&&D.push({label:r("page.personal_stats.charts.earnings.venues"),value:T.earnings.venues??0}),d(D,L=>L.value,L=>L.label)},x=T=>[{label:r("page.personal_stats.charts.tooltip.bought_subscription"),value:a.format(T.earnings.total-T.earnings.gifted)},{label:r("page.personal_stats.charts.tooltip.gifted_subscription"),value:a.format(T.earnings.gifted)}],S=T=>[{label:r("page.personal_stats.charts.tooltip.bought_series"),value:a.format(T.earnings_purchased)},{label:r("page.personal_stats.charts.tooltip.gifted_series"),value:a.format(T.earnings_g
40ifted)}],w=T=>{const D=o(T.dataIndex);if(t.chartType==="endors"){if(t.grouping==="none"){if(T.tooltipKey==="total")return l(D);if(T.tooltipKey==="new")return u(D);if(T.tooltipKey==="cancelled")return f(D)}if(t.grouping==="tiers"){const L=D.tiers.find(A=>A.title===T.seriesName);return c(L)}}if(t.chartType==="series"){if(t.grouping==="none")return h(D);if(t.grouping==="tiers"){const L=D.series.find(A=>A.series_name===T.seriesName);return v(L)}}if(t.chartType==="earnings"){if(t.grouping==="none"){if(T.tooltipKey==="subscriptions")return p(D);if(T.tooltipKey==="gifted_subscriptions")return g(D);if(T.tooltipKey==="series")return m(D);if(T.tooltipKey==="venues")return y(D);if(T.tooltipKey==="total")return b(D)}if(t.grouping==="tiers"){if(T.tooltipKey==="tiers"){const L=D.tiers.find(A=>A.title===T.seriesName);return x(L)}if(T.tooltipKey==="series"){const L=r("page.personal_stats.charts.earnings.series_prefix"),A=T.seriesName.replace(L,""),P=D.series.find(k=>k.series_name===A);return S(P)}}}return[]},C=nt(()=>M.value?t.detail.series.map(T=>({...s(T),breakdown:w(T)})):t.detail.series.map(T=>({...s(T)}))),M=nt(()=>!(t.chartType==="earnings"&&(t.grouping==="none"||t.grouping==="tiers")&&t.detail.series.every(T=>!T.tooltipKey)));return(T,D)=>(et(),gt("div",N5,[Q("p",F5,Ot(tt(i)),1),Q("div",z5,[(et(!0),gt(Ne,null,or(tt(C),(L,A)=>(et(),gt("div",{key:`${L.label}-${A}`,class:"serie"},[Q("div",V5,[Q("div",{style:Xl({backgroundColor:L.color})},null,4)]),Q("div",G5,[Q("div",H5,[Q("div",{title:L.label},[Q("span",{textContent:Ot(L.label)},null,8,U5)],8,W5),Q("span",{textContent:Ot(L.value)},null,8,$5)]),(et(!0),gt(Ne,null,or(L.breakdown,(P,k)=>(et(),gt("div",{key:`${L.label}-${P.label}-${k}`,class:"serie__detail__row"},[Q("div",{title:P.label},[Q("span",{textContent:Ot(P.label)},null,8,X5)],8,Y5),Q("span",{textContent:Ot(P.value)},null,8,Z5)]))),128))])]))),128))])]))}}),Sw=Object.assign(ne(q5,[["__scopeId","data-v-f0a0bb07"]]),{__name:"StatsChartsChartTooltip"}),K5={class:"chart-container"},j5="In Favorites",Q5=te({__name:"FollowersCharts",props:{data:{type:Object,required:!0},selectedPeriod:{type:Object,required:!0},isLoading:{type:Boolean,default:!1}},setup(e){const t=e,r=un().t,n=fv(),a=uv(),i=nt(()=>a.user.value?.allows_newsletter??!1),o=jt("endors"),s=Aw(),l=nt(()=>s.getUserSeries.length>0),u=nt(()=>{const S=[{key:"endors",label:r("page.personal_stats.simple_view.follower_tabs.endors")}];return i.value&&S.push({key:"newsletter",label:r("page.personal_stats.simple_view.follower_tabs.newsletter")}),l.value&&S.push({key:"series",label:r("page.personal_stats.simple_view.follower_tabs.series")}),S}),f=nt(()=>t.data.aggregate.tiers_breakdown.length>1),c=jt("none"),h=nt(()=>{if(!(!f.value||o.value==="newsletter"))return new Ul({isTranslated:!0,options:[new al("none",r("page.personal_stats.charts.group_type.none")),new al("tiers",r(`page.personal_stats.charts.group_type.${o.value==="endors"?"tiers":"series"}`))]})}),v=nt(()=>t.data.periods.map(S=>S.period_label)),d=nt(()=>{if(c.value==="none")return{categories:v.value,seriesData:[{name:r("page.personal_stats.charts.followers.total"),data:t.data.periods.map(w=>w.total_active_subscriptions),color:qt.Followers.Total,legendValue:n.value.format(t.data.end_of_period_totals.active_subscriptions),legendNumberValue:t.data.end_of_period_totals.active_subscriptions,tooltipKey:"total"},{name:r("page.personal_stats.charts.followers.new"),data:t.data.periods.map(w=>w.total_new_paid_subscriptions),color:qt.Followers.New,legendValue:n.value.format(t.data.aggregate.new_paid_subscriptions),legendNumberValue:t.data.aggregate.new_paid_subscriptions,tooltipKey:"new"},{name:r("page.personal_stats.charts.followers.cancelled"),data:t.data.periods.map(w=>w.total_cancelled),color:qt.Followers.Cancelled,legendValue:n.value.format(t.data.aggregate.cancelled_paid_subscriptions),legendNumberValue:t.data.aggregate.cancelled_paid_subscriptions,tooltipKey:"cancelled"}]};const S=t.data.aggregate.tiers_breakdown.filter(w=>w.tier_name!==j5).map((w,C)=>{const T=(t.data.end_of_period_totals?.tiers??[]).find(D=>D.tier_title===w.tier_name)?.subscriptions??0;return{name:w.tier_name,data:t.data.periods.map(D=>{const L=D.tiers_total?.find(A=>A.tier_id===w.tier_id);return L?L.followers.total:-1}),color:Zr[C%Zr.length],legendValue:n.value.format(T),legendNumberValue:T}});return{categories:v.value,seriesData:S}}),p=nt(()=>({categories:v.value,seriesData:[{name:r("page.personal_stats.charts.followers.total"),data:t.data.periods.map(S=>S.total_in_favorites),color:qt.Followers.Total,legendValue:n.value.format(t.data.end_of_period_totals.in_favorites),legendNumberValue:t.data.end_of_period_totals.in_favorites},{name:r("page.personal_stats.charts.followers.new"),data:t.data.periods.map(S=>S.new_in_favorites),color:qt.Followers.New,legendValue:n.value.format(t.data.aggregate.new_in_favorites),legendNumberValue:t.data.aggregate.new_in_favorites},{name:r("page.personal_stats.charts.followers.cancelled"),data:t.data.periods.map(S=>
40S.cancelled_in_favorites),color:qt.Followers.Cancelled,legendValue:n.value.format(t.data.aggregate.cancelled_in_favorites),legendNumberValue:t.data.aggregate.cancelled_in_favorites}]})),g=nt(()=>{if(c.value==="none"){const w=t.data.aggregate.series_gifted_count+t.data.aggregate.series_purchased_count;return{categories:v.value,seriesData:[{name:r("page.personal_stats.charts.series.total"),data:t.data.periods.map(C=>(C.series_total??[]).map(M=>M.purchased_count+M.gifted_count).reduce((M,T)=>M+T,0)),color:qt.Followers.Total,legendValue:n.value.format(t.data.end_of_period_totals.total_series_purchased),legendNumberValue:t.data.end_of_period_totals.total_series_purchased},{name:r("page.personal_stats.charts.series.new"),data:t.data.periods.map(C=>C.series_gifted_count+C.series_purchased_count),color:qt.Followers.New,legendValue:n.value.format(w),legendNumberValue:w}]}}const S=t.data.aggregate.series_breakdown.map((w,C)=>({name:w.series_name,data:t.data.periods.map(M=>{const T=M.series?.find(D=>D.series_id===w.series_id);return(T?.purchased_count??0)+(T?.gifted_count??0)}),color:Zr[C%Zr.length],legendValue:n.value.format(w.gifted_count+w.purchased_count),legendNumberValue:w.gifted_count+w.purchased_count}));return{categories:v.value,seriesData:S}}),m=nt(()=>{if(o.value==="endors")return d.value;if(o.value==="newsletter")return p.value;if(o.value==="series")return g.value;throw Error("unreachable code")}),y=document.createElement("div");Yl(()=>{Ea(null,y)});const _=v_().appContext;let b={isEmpty:!0,cacheKey:"",value:""};const x=S=>{const w=`${S.period}-${S.series.length}-${S.series[0].dataIndex}-${S.series[0].selectedValue}-${S.series[0].seriesName}-${o.value}-${c.value}`;if(!b.isEmpty&&b.cacheKey===w)return b.value;const C=Dt(Sw,{detail:S,data:t.data,chartType:o.value,grouping:c.value});C.appContext=_,Ea(C,y);const M=y.innerHTML;return b={isEmpty:!1,cacheKey:w,value:M},M};return(S,w)=>{const C=_w,M=bw;return et(),Me(M,{modelValue:tt(o),"onUpdate:modelValue":w[0]||(w[0]=T=>Yn(o)?o.value=T:null),select:tt(c),"onUpdate:select":w[1]||(w[1]=T=>Yn(c)?c.value=T:null),tabs:tt(u),"select-data":tt(h),class:"tabs"},{default:Be(()=>[Q("div",K5,[Dt(C,{data:tt(m),"is-loading":e.isLoading,"tooltip-formatter":x},null,8,["data","is-loading"])])]),_:1},8,["modelValue","select","tabs","select-data"])}}}),J5=Object.assign(ne(Q5,[["__scopeId","data-v-82e004c5"]]),{__name:"StatsFollowersCharts"}),tF={class:"earnings"},eF={class:"provision-info"},n_="stats-detail-earnings",rF=te({__name:"EarningsCard",props:{data:{type:Object,required:!0},isLoading:{type:Boolean,default:!1}},setup(e){const t=e,r=lv(),n=un().t,a=Mo(),i=nt(()=>`${a.format(t.data.totals.earnings_from_beginning)}`),o=nt(()=>t.data.meta.is_apple_enabled?`${n("page.personal_stats.earnings_card.apple_label")} <b>${a.format(t.data.totals.earnings_from_beginning_apple)} ${n("page.personal_stats.earnings_card.apple_until")} ${t.data.meta.apple_month}/${t.data.meta.apple_year}</b>`:""),s=(f,c,h)=>!f||f.length===0?[]:[{title:a.format(f.reduce((v,d)=>v+d.earnings_total,0)),subtitle:c,rows:f.map(v=>({value:a.format(v.earnings_total),rawValue:v.earnings_total,label:h(v)})).sort((v,d)=>d.rawValue-v.rawValue)}],l=nt(()=>{const f=(t.data.totals.tiers??[]).map(g=>{const m=[];if(g.subscription_lengths.quarterly.earnings>0||g.subscription_lengths.halfyearly.earnings>0||g.subscription_lengths.yearly.earnings>0){const y=_=>{const b=g.subscription_lengths[_];if(b.earnings>0){const x=n(`payment.long_term_subscription_options_adj.${_}`),S=b.apple_earnings>0&&t.data.meta.is_apple_enabled?{label:n("page.personal_stats.earnings_card.apple_earnings_info"),value:a.format(b.apple_earnings)}:void 0;m.unshift({rawValue:b.earnings,value:a.format(b.earnings),label:x,info:S})}};y("monthly"),y("quarterly"),y("halfyearly"),y("yearly")}return m.sort((y,_)=>_.rawValue-y.rawValue),(g.one_time_payments?.gifted_subscriptions_count??0)>0&&m.push({value:a.format(g.one_time_payments.gifted_subscriptions),rawValue:g.one_time_payments.gifted_subscriptions,label:n("page.personal_stats.earnings_card.gifted_label",{count:g.one_time_payments.gifted_subscriptions_count})}),{title:t.data.meta.is_apple_enabled?`${a.format(g.total_earnings)} / ${a.format(g.apple)}`:`${a.format(g.total_earnings)}
40`,subtitle:n(`page.personal_stats.earnings_card.tier_breakdown_subtitle${t.data.meta.is_apple_enabled?"":"_no_apple"}`,{title:g.tier_title}),rows:m}}),c=t.data.totals,h=(c.one_time_payments?.volume_discounts??0)>0?[{title:a.format(c.one_time_payments.volume_discounts),subtitle:n("page.personal_stats.earnings_card.volume_discount"),rows:[]}]:[],v=(c.one_time_payments?.tips??0)+(c.one_time_payments?.post_unlocks??0)>0?[{title:a.format(c.one_time_payments.total),subtitle:n("page.personal_stats.earnings_card.one_time_payments"),rows:[{value:a.format(c.one_time_payments.tips),rawValue:c.one_time_payments.tips,label:n("page.personal_stats.earnings_card.tips")},{value:a.format(c.one_time_payments.post_unlocks),rawValue:c.one_time_payments.post_unlocks,label:n("page.personal_stats.earnings_card.unlocks")}].sort((g,m)=>m.rawValue-g.rawValue)}]:[],d=s(c.series,n("page.personal_stats.earnings_card.series"),g=>g.series_name),p=s(c.venues,n("page.personal_stats.earnings_card.venues"),g=>g.venue_name);return{header:{title:n("page.personal_stats.earnings_card.title"),value:i.value,info:[o.value]},breakdown:[...f,...h,...v,...d,...p]}}),u=()=>{r.showModal(n_)};return(f,c)=>{const h=p_,v=g_;return et(),gt("div",tF,[Dt(h,{title:f.$t("page.personal_stats.earnings_card.title"),value:tt(i),info:[tt(o)],"is-loading":e.isLoading,onOpen:u},null,8,["title","value","info","is-loading"]),Dt(v,{name:n_,data:tt(l)},{info:Be(()=>[Q("div",eF,[Q("p",null,Ot(f.$t("page.personal_stats.earnings_card.provision_info")),1)])]),_:1},8,["data"])])}}}),nF=Object.assign(ne(rF,[["__scopeId","data-v-0ed3c302"]]),{__name:"StatsEarningsCard"}),aF={class:"line-chart-tooltip"},iF={class:"period"},oF={class:"wrapper"},sF={class:"serie__color"},lF={class:"serie__detail"},uF={class:"serie__detail__row label"},fF=["title"],cF=["textContent"],hF=["textContent"],vF=["title"],dF=["textContent"],pF=["textContent"],gF=te({__name:"ExpectedEarningsChartTooltip",props:{data:{type:Object,required:!0},detail:{type:Object,required:!0}},setup(e){const t=e,r=un().t,n=Mo(),a=nt(()=>Xa.formatDateForChartXAxis(t.detail.period)),i=nt(()=>t.detail.series.map(o=>{const u=t.data.months[o.dataIndex].by_tier.find(c=>c.tier_name===o.seriesName)?.by_length??{},f=Object.keys(u).map(c=>{const h=u[c].total;return{label:r("page.personal_stats.charts.tooltip."+c),value:n.format(h)}});return{color:o.color,label:o.seriesName,value:n.format(o.selectedValue),breakdown:f}}));return(o,s)=>(et(),gt("div",aF,[Q("p",iF,Ot(tt(a)),1),Q("div",oF,[(et(!0),gt(Ne,null,or(tt(i),(l,u)=>(et(),gt("div",{key:`${l.label}-${u}`,class:"serie"},[Q("div",sF,[Q("div",{style:Xl({backgroundColor:l.color})},null,4)]),Q("div",lF,[Q("div",uF,[Q("div",{title:l.label},[Q("span",{textContent:Ot(l.label)},null,8,cF)],8,fF),Q("span",{textContent:Ot(l.value)},null,8,hF)]),(et(!0),gt(Ne,null,or(l.breakdown,(f,c)=>(et(),gt("div",{key:`${l.label}-${f.label}-${c}`,class:"serie__detail__row"},[Q("div",{title:f.label},[Q("span",{textContent:Ot(f.label)},null,8,dF)],8,vF),Q("span",{textContent:Ot(f.value)},null,8,pF)]))),128))])]))),128))])]))}}),mF=Object.assign(ne(gF,[["__scopeId","data-v-6651d2c2"]]),{__name:"StatsChartsExpectedEarningsChartTooltip"}),yF=o_(()=>s_(()=>import("./StackedBarChart-BPkX-U0R.js"),__vite__mapDeps([3,2,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url).then(e=>e.default||e)),_F={class:"chart-container"},bF=te({__name:"EarningsCharts",props:{data:{type:Object,required:!0},selectedPeriod:{type:Object,required:!0},isLoading:{type:Boolean,default:!1},expectedEarningsData:{type:Object,default:()=>null},isExpectedEarningsLoading:{type:Boolean,default:!1}},setup(e){const t=e,r=un().t,n=Mo(),a=nt(()=>t.data.aggregate.tiers_breakdown.length>1),i=jt("none"),o=nt(()=>{if(!(!a.value||s.value!=="earnings"))return new Ul({isTranslated:!0,options:[new al("none",r("page.personal_stats.charts.group_type.none")),new al("tiers",r("page.personal_stats.charts.group_type.tiers"))]})}),s=jt("earnings"),l=nt(()=>{const S=[{key:"earnings",label:r("page.personal_stats.simple_view.earnings_tabs.earnings"),percentageChange:{value:t.data.aggregate.earnings_change_percent,help:""}}];return t.expectedEarningsData!==null&&S.push({key:"expected-earnings",label:r("page.personal_stats.simple_view.earnings_tabs.expected_earnings")}),S}),u=nt(()=>t.data.periods.map(S=>
40S.period_label)),f=nt(()=>t.data.periods.some(S=>(S.venues??[]).length>0)),c=nt(()=>{const S=[{name:r("page.personal_stats.charts.earnings.total"),data:t.data.periods.map(w=>w.earnings.total),color:qt.Earnings.Total,legendValue:n.format(t.data.aggregate.earnings.total),legendNumberValue:t.data.aggregate.earnings.total,tooltipKey:"total"},{name:r("page.personal_stats.charts.earnings.subscriptions"),data:t.data.periods.map(w=>w.earnings.subscriptions),color:qt.Earnings.Subscriptions,legendValue:n.format(t.data.aggregate.earnings.subscriptions),legendNumberValue:t.data.aggregate.earnings.subscriptions,tooltipKey:"subscriptions"},{name:r("page.personal_stats.charts.earnings.tips"),data:t.data.periods.map(w=>w.earnings.tips),color:qt.Earnings.Tips,legendValue:n.format(t.data.aggregate.earnings.tips),legendNumberValue:t.data.aggregate.earnings.tips},{name:r("page.personal_stats.charts.earnings.unlocks"),data:t.data.periods.map(w=>w.earnings.post_unlocks),color:qt.Earnings.Unlocks,legendValue:n.format(t.data.aggregate.earnings.post_unlocks),legendNumberValue:t.data.aggregate.earnings.post_unlocks},{name:r("page.personal_stats.charts.earnings.gifted"),data:t.data.periods.map(w=>w.earnings.gifted_subscriptions),color:qt.Earnings.Gifted,legendValue:n.format(t.data.aggregate.earnings.gifted_subscriptions),legendNumberValue:t.data.aggregate.earnings.gifted_subscriptions,tooltipKey:"gifted_subscriptions"},{name:r("page.personal_stats.charts.earnings.series"),data:t.data.periods.map(w=>w.earnings.series),color:qt.Earnings.Series,legendValue:n.format(t.data.aggregate.earnings.series),legendNumberValue:t.data.aggregate.earnings.series,tooltipKey:"series"},{name:r("page.personal_stats.charts.earnings.volume_discount"),data:t.data.periods.map(w=>w.earnings.volume_discounts),color:qt.Earnings.VolumeDiscount,legendValue:n.format(t.data.aggregate.earnings.volume_discounts),legendNumberValue:t.data.aggregate.earnings.volume_discounts}];return f.value&&S.push({name:r("page.personal_stats.charts.earnings.venues"),data:t.data.periods.map(w=>w.earnings.venues??0),color:qt.Earnings.Venues,legendValue:n.format(t.data.aggregate.earnings.venues),legendNumberValue:t.data.aggregate.earnings.venues,tooltipKey:"venues"}),{categories:u.value,seriesData:S}}),h=nt(()=>{const S=t.data.periods[0]?.tiers_total??[],w=t.data.periods[0]?.series_total??[];let C=0;const M=S.map(L=>{const P=t.data.aggregate.tiers_breakdown.find(k=>k.tier_id===L.tier_id)?.earnings.total??0;return{name:L.tier_name,data:t.data.periods.map(k=>k.tiers?.find(B=>B.title===L.tier_name)?.earnings.total??0),color:Zr[C++%Zr.length],legendValue:n.format(P),legendNumberValue:P,tooltipKey:"tiers"}}),T=r("page.personal_stats.charts.earnings.series_prefix"),D=w.map(L=>{const P=t.data.aggregate.series_breakdown.find(k=>k.series_id===L.series_id)?.earnings_total??0;return{name:`${T}${L.series_name}`,data:t.data.periods.map(k=>k.series?.find(B=>B.series_id===L.series_id)?.earnings_total??0),color:Zr[C++%Zr.length],legendValue:n.format(P),legendNumberValue:P,tooltipKey:"series"}});return{categories:u.value,seriesData:[...M,...D]}}),v=nt(()=>{if(i.value==="none")return c.value;if(i.value==="tiers")return h.value;throw new Error("unreachable code")}),d=nt(()=>{if(!t.expectedEarningsData||t.expectedEarningsData.months.length===0)return{categories:[],seriesData:[]};const w=t.expectedEarningsData.months[0].by_tier.map((C,M)=>{const T=t.expectedEarningsData.months.reduce((D,L)=>{const A=L.by_tier.find(P=>P.tier_id===C.tier_id);return D+(A?.total??0)},0);return{name:C.tier_name,color:r_[M%r_.length],legendValue:n.format(T),legendNumberValue:T,data:t.expectedEarningsData.months.map(D=>D.by_tier.find(A=>A.tier_id===C.tier_id)?.total??0)}});return{categories:t.expectedEarningsData.months.map(C=>C.period),seriesData:w}}),p=v_().appContext,g=document.createElement("div"),m=document.createElement("div");Yl(()=>{Ea(null,g),Ea(null,m)});let y={isEmpty:!0,cacheKey:"",value:""};const _=S=>{const w=`${S.period}-${S.series.length}-${S.series[0].dataIndex}-${S.series[0].selectedValue}-${S.series[0].seriesName}-${s.value}-${i.value}`;if(!y.isEmpty&&y.cacheKey===w)return y.value;const C=Dt(Sw,{detail:S,data:t.data,chartType:s.value,grouping:i.value});C.appContext=p,Ea(C,g);const M=g.innerHTML;return y={isEmpty:!1,cacheKey:w,value:M},M};let b={isEmpty:!0,cacheKey:"",value:""};const x=S=>{const w=`${S.period}-${S.series.length}-${S.series[0].dataIndex}-${S.series[0].selectedValue}-${S.series[0].seriesName}`;
40if(!b.isEmpty&&b.cacheKey===w)return b.value;const C=Dt(mF,{detail:S,data:t.expectedEarningsData});C.appContext=p,Ea(C,g);const M=g.innerHTML;return b={isEmpty:!1,cacheKey:w,value:M},M};return(S,w)=>{const C=_w,M=yF,T=bw;return et(),Me(T,{modelValue:tt(s),"onUpdate:modelValue":w[0]||(w[0]=D=>Yn(s)?s.value=D:null),select:tt(i),"onUpdate:select":w[1]||(w[1]=D=>Yn(i)?i.value=D:null),tabs:tt(l),"select-data":tt(o),class:"tabs"},{default:Be(()=>[Q("div",_F,[c_(Dt(C,{data:tt(v),"is-loading":e.isLoading,"filter-out-series-with-zero-label-values":tt(i)==="none","tooltip-formatter":_,"use-currency-formatter-for-y-axis":""},null,8,["data","is-loading","filter-out-series-with-zero-label-values"]),[[h_,tt(s)==="earnings"]]),tt(s)==="expected-earnings"&&e.expectedEarningsData!==null?(et(),Me(M,{key:0,data:tt(d),"is-loading":e.isExpectedEarningsLoading,"tooltip-formatter":x,"use-currency-formatter-for-y-axis":""},null,8,["data","is-loading"])):Mr("",!0)])]),_:1},8,["modelValue","select","tabs","select-data"])}}}),SF=Object.assign(ne(bF,[["__scopeId","data-v-afa5b16a"]]),{__name:"StatsEarningsCharts"}
40),xF={class:"stat-view"},wF={key:0,class:"last-sync"},TF=["textContent"],CF=te({__name:"View",props:{data:{type:Object,required:!0},selectedPeriod:{type:Object,required:!0},isLoading:{type:Boolean,default:!1},expectedEarningsData:{type:Object,default:()=>null},isExpectedEarningsLoading:{type:Boolean,default:!1}},setup(e){const t=e,r=nt(()=>t.data.meta.last_sync?el.fromFormat(t.data.meta.last_sync,"yyyy-MM-dd HH:mm:ss").toFormat("HH:mm"):""),n=Iw();return(a,i)=>{const o=Ww,s=Ew,l=J5,u=nF,f=SF;return et(),gt("div",xF,[e.data.meta.last_sync?(et(),gt("div",wF,[Q("p",{class:"info-text",textContent:Ot(a.$t("page.personal_stats.last_sync",{lastSync:tt(r)}))},null,8,TF)])):Mr("",!0),Dt(o,{data:e.data,"selected-period":e.selectedPeriod,"is-loading":e.isLoading},null,8,["data","selected-period","is-loading"]),e.data.meta.has_cancellation_feedback?(et(),Me(s,{key:1,to:tt(n)("subscription_cancellation_feedback"),class:"cancellation-feedback-link"},{default:Be(()=>[Lw(Ot(a.$t("page.subscription_cancellation_feedback.title")),1)]),_:1},8,["to"])):Mr("",!0),Dt(l,{data:e.data,"selected-period":e.selectedPeriod,"is-loading":e.isLoading},null,8,["data","selected-period","is-loading"]),Dt(u,{data:e.data,"is-loading":e.isLoading},null,8,["data","is-loading"]),Dt(f,{data:e.data,"expected-earnings-data":e.expectedEarningsData,"is-expected-earnings-loading":e.isExpectedEarningsLoading,"selected-period":e.selectedPeriod,"is-loading":e.isLoading},null,8,["data","expected-earnings-data","is-expected-earnings-loading","selected-period","is-loading"])])}}}),MF=Object.assign(ne(CF,[["__scopeId","data-v-386857a4"]]),{__name:"StatsView"}),DF={class:"stats-error"},AF=["innerHTML"],IF=te({__name:"Error",props:{allowTryAgain:{type:Boolean,default:!0}},emits:["retry"],setup(e){return(t,r)=>{const n=Rw;return et(),gt("div",DF,[r[1]||(r[1]=Pw('<svg class="error-icon" viewBox="0 0 120 100" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-b2cb3b76><rect x="10" y="60" width="15" height="30" rx="2" fill="#d1d5db" data-v-b2cb3b76></rect><rect x="35" y="40" width="15" height="50" rx="2" fill="#d1d5db" data-v-b2cb3b76></rect><rect x="60" y="50" width="15" height="40" rx="2" fill="#d1d5db" data-v-b2cb3b76></rect><rect x="85" y="25" width="15" height="65" rx="2" fill="#d1d5db" data-v-b2cb3b76></rect><circle cx="95" cy="20" r="18" fill="#e5e7eb" stroke="#9ca3af" stroke-width="1" data-v-b2cb3b76></circle><path d="M88 13L102 27M102 13L88 27" stroke="#9ca3af" stroke-width="1" stroke-linecap="round" data-v-b2cb3b76></path><line x1="5" y1="92" x2="115" y2="92" stroke="#d1d5db" stroke-width="2" stroke-linecap="round" data-v-b2cb3b76></line></svg>',1)),Q("p",{class:"error-text",innerHTML:t.$t(`page.personal_stats.error.${e.allowTryAgain?"message":"no_data"}`)},null,8,AF),e.allowTryAgain?(et(),Me(n,{key:0,text:t.$t("page.personal_stats.error.retry"),onClick:r[0]||(r[0]=a=>t.$emit("retry"))},null,8,["text"])):Mr("",!0)])}}}),LF=Object.assign(ne(IF,[["__scopeId","data-v-b2cb3b76"]]),{__name:"StatsError"}),PF=te({__name:"PageV2",props:{hasError:{type:Boolean,default:!1},periodData:{type:Object,required:!0},selectedPeriod:{type:Object,required:!0},expectedEarningsData:{type:Object,default:()=>null},isExpectedEarningsLoading:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1}},emits:["retry","period-changed","range-changed"],setup(e,{emit:t}){const r=e,n=nt(()=>r.periodData.meta.synced_from?el.fromFormat(r.periodData.meta.synced_from,"yyyy-MM-dd").toJSDate():void 0),a=t,i=async(s,l,u)=>await a("period-changed",s,l,u),o=async(s,l)=>await a("range-changed",s,l);return(s,l)=>{const u=Vw,f=MF,c=LF;return!e.hasError&&tt(n)!==void 0?(et(),gt(Ne,{key:0},[Dt(u,{"min-date":tt(n),onPeriodChanged:i,onRangeChanged:o},null,8,["min-date"]),Dt(f,{data:e.periodData,"selected-period":e.selectedPeriod,"expected-earnings-data":e.expectedEarningsData,"is-expected-earnings-loading":e.isExpectedEarningsLoading,"is-loading":e.isLoading},null,8,["data","selected-period","expected-earnings-data","is-expected-earnings-loading","is-loading"])],64)):(et(),Me(c,{key:1,"allow-try-again":e.hasError,onRetry:l[0]||(l[0]=h=>a("retry"))},null,8,["allow-try-again"]))}}}),kF=Object.assign(PF,{__name:"StatsPageV2"}),zF=Object.freeze(Object.defineProperty({__proto__:null,default:kF},Symbol.toStringTag,{value:"Module"}));
40export{zF as P,jw as _,eT as a,g5 as b,T5 as c,D5 as d};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.