From 4b55eb54b071e4551677878e06dbf89e89563c2a Mon Sep 17 00:00:00 2001 From: dekun Date: Sun, 28 Jun 2026 17:16:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=8D=E7=9B=98=E7=BB=9F=E8=AE=A1=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=88=86=E8=89=B2=E5=A0=86=E5=8F=A0=E6=9F=B1=E7=8A=B6?= =?UTF-8?q?=E5=9B=BE=EF=BC=8C=E6=9B=BF=E4=BB=A3=E8=8A=82=E7=82=B9=E6=A0=91?= =?UTF-8?q?=E5=9B=BE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- .../{index-BlbLMdT7.js => index-9cr1FyU2.js} | 34 +++--- frontend/dist/index.html | 2 +- frontend/src/components/ExamReviewPanel.tsx | 4 +- frontend/src/components/ReviewBarChart.tsx | 112 ++++++++++++++++++ 4 files changed, 132 insertions(+), 20 deletions(-) rename frontend/dist/assets/{index-BlbLMdT7.js => index-9cr1FyU2.js} (91%) create mode 100644 frontend/src/components/ReviewBarChart.tsx diff --git a/frontend/dist/assets/index-BlbLMdT7.js b/frontend/dist/assets/index-9cr1FyU2.js similarity index 91% rename from frontend/dist/assets/index-BlbLMdT7.js rename to frontend/dist/assets/index-9cr1FyU2.js index f2d1b96..8c77356 100644 --- a/frontend/dist/assets/index-BlbLMdT7.js +++ b/frontend/dist/assets/index-9cr1FyU2.js @@ -295,7 +295,7 @@ html body { &${o}-slide-right-leave${o}-slide-right-leave-active${t}-placement-rightTop, &${o}-slide-right-leave${o}-slide-right-leave-active${t}-placement-rightBottom`]:{animationName:af},[`&${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-left, &${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-leftTop, - &${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-leftBottom`]:{animationName:sf}}},vy(e,h),{[`${t} ${n}`]:{position:`relative`,margin:0},[`${n}-submenu-popup`]:{position:`absolute`,zIndex:r,background:`transparent`,boxShadow:`none`,transformOrigin:`0 0`,"ul, li":{listStyle:`none`,margin:0}},[`${t}, ${t}-menu-submenu`]:{...eo(e),[n]:{padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,...ao(e),"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${q(l)} ${q(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:`relative`,display:`flex`,alignItems:`center`},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:`auto`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},[`> a, > ${n}-item-label > a`]:{color:`inherit`,transition:`all ${c}`,"&:hover":{color:`inherit`},"&::after":{position:`absolute`,inset:0,content:`""`}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:`auto`,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:`flex`,margin:0,padding:`${q(l)} ${q(m)}`,color:e.colorText,fontWeight:`normal`,fontSize:u,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...ao(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:`not-allowed`,"&:hover":{color:f,backgroundColor:h,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${q(e.marginXXS)} 0`,overflow:`hidden`,lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:`absolute`,insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:`0 !important`,color:e.colorIcon,fontSize:p,fontStyle:`normal`}}},[`${n}-item-group-list`]:{margin:`0 ${q(e.marginXS)}`,padding:0,listStyle:`none`},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:`relative`},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[lf(e,`slide-up`),lf(e,`slide-down`),lf(e,`slide-left`),lf(e,`slide-right`),Qd(e,`move-up`),Qd(e,`move-down`),yf(e,`zoom-big`)]]},Zfe=hc(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=Bo(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Xfe(a),Yfe(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,..._y({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Tv(e)}),{resetStyle:!1}),BT=h.forwardRef((e,t)=>{let{menu:n,arrow:r,prefixCls:i,children:a,trigger:o,disabled:s,dropdownRender:c,popupRender:l,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:p,open:g,onOpenChange:_,mouseEnterDelay:v=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:b=!0,placement:x=``,transitionName:S,classNames:C,styles:w,destroyPopupOnHide:T,destroyOnHidden:E}=e,{getPrefixCls:D,direction:O,getPopupContainer:k,className:A,style:j,classNames:M,styles:N}=zr(`dropdown`),P={...e,mouseEnterDelay:v,mouseLeaveDelay:y,autoAdjustOverflow:b},[F,I]=kr([M,C],[N,w],{props:P}),L={...j,...p,...I.root},R=l||c;Nr(`Dropdown`);let z=h.useMemo(()=>{let e=D();return S===void 0?x.startsWith(`top`)?`${e}-slide-down`:x.startsWith(`left`)?`${e}-slide-right`:x.startsWith(`right`)?`${e}-slide-left`:`${e}-slide-up`:S},[D,x,S]),B=h.useMemo(()=>x?x.includes(`Center`)?x.slice(0,x.indexOf(`Center`)):x:O===`rtl`?`bottomRight`:`bottomLeft`,[x,O]),V=D(`dropdown`,i),H=ug(V),[U,W]=Zfe(V,H),[,G]=mc(),ee=h.Children.only(br(a)?h.createElement(`span`,null,a):a),K=Le(t,Ve(ee)),te=du(ee,{className:m(`${V}-trigger`,{[`${V}-rtl`]:O===`rtl`},ee.props.className),disabled:ee.props.disabled??s,ref:K}),ne=s?[]:o,re=!!ne?.includes(`contextMenu`),[ie,ae]=ye(!1,g),oe=pe(e=>{_?.(e,{source:`trigger`}),ae(e)}),se=m(d,f,U,W,H,A,F.root,{[`${V}-rtl`]:O===`rtl`}),ce=by({arrowPointAtCenter:_r(r)&&r.pointAtCenter,autoAdjustOverflow:b,offset:G.marginXXS,arrowWidth:r?G.sizePopupArrow:0,borderRadius:G.borderRadius}),le=pe(()=>{n?.selectable&&n?.multiple||(_?.(!1,{source:`menu`}),ae(!1))}),ue=()=>{let e=Ht(F,[`root`]),t=Ht(I,[`root`]),r;return n?.items&&(r=h.createElement(zT,{...n,classNames:{...e,subMenu:{...e}},styles:{...t,subMenu:{...t}}})),R&&(r=R(r)),r=h.Children.only(typeof r==`string`?h.createElement(`span`,null,r):r),h.createElement(jT,{prefixCls:`${V}-menu`,rootClassName:m(W,H),expandIcon:h.createElement(`span`,{className:`${V}-menu-submenu-arrow`},O===`rtl`?h.createElement(TT,{className:`${V}-menu-submenu-arrow-icon`}):h.createElement(Af,{className:`${V}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:le,validator:({mode:e})=>{}},r)},[de,fe]=_d(`Dropdown`,L.zIndex),me=h.createElement(Zm,{alignPoint:re,...Ht(e,[`rootClassName`,`onOpenChange`]),mouseEnterDelay:v,mouseLeaveDelay:y,visible:ie,builtinPlacements:ce,arrow:!!r,overlayClassName:se,prefixCls:V,getPopupContainer:u||k,transitionName:z,trigger:ne,overlay:ue,placement:B,onVisibleChange:oe,overlayStyle:{...L,zIndex:de},autoDestroy:E??T},te);return de&&(me=h.createElement(dd.Provider,{value:fe},me)),me}),Qfe=Lg(BT,`align`,void 0,`dropdown`,e=>e);BT._InternalPanelDoNotUseOrYouWillBeFired=e=>h.createElement(Qfe,{...e},h.createElement(`span`,null));var VT=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=h.useContext(Ir),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:g,autoFocus:_,trigger:v,align:y,open:b,onOpenChange:x,placement:S,getPopupContainer:C,href:w,icon:T=h.createElement(Mm,null),title:E,buttonsRender:D=e=>e,mouseEnterDelay:O,mouseLeaveDelay:k,overlayClassName:A,overlayStyle:j,destroyOnHidden:M,destroyPopupOnHide:N,dropdownRender:P,popupRender:F,...I}=e,L=n(`dropdown`,i),R=`${L}-button`,z={menu:p,arrow:g,autoFocus:_,align:y,disabled:s,trigger:s?[]:v,onOpenChange:x,getPopupContainer:C||t,mouseEnterDelay:O,mouseLeaveDelay:k,classNames:{root:A},styles:{root:j},destroyOnHidden:M,popupRender:F||P},{compactSize:B,compactItemClassnames:V}=bd(L,r),H=m(R,V,f);`destroyPopupOnHide`in e&&(z.destroyPopupOnHide=N),`open`in e&&(z.open=b),`placement`in e?z.placement=S:z.placement=r===`rtl`?`bottomLeft`:`bottomRight`;let[U,W]=D([h.createElement(Cp,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:w,title:E},d),h.createElement(Cp,{type:a,danger:o,icon:T})]);return h.createElement(Iy.Compact,{className:H,size:B,block:!0,...I},U,h.createElement(BT,{...z},W))};VT.__ANT_BUTTON=!0;var HT=BT;HT.Button=VT;var UT={},WT=`SELECT_ALL`,GT=`SELECT_INVERT`,$fe=`SELECT_NONE`,KT=[],qT=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),_r(t)&&e in t&&qT(e,t[e],n)}),n),epe=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,getTitleCheckboxProps:o,onChange:s,onSelect:c,onSelectAll:l,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:g,selections:_,fixed:v,renderCell:y,hideSelectAll:b,checkStrictly:x=!0}=t||{},{prefixCls:S,data:C,pageData:w,getRecordByKey:T,getRowKey:E,expandType:D,childrenColumnName:O,locale:k,getPopupContainer:A}=e,j=Nr(`Table`),[M,N]=fee(e=>e),[P,F]=ye(i||KT,r),I=P??KT,L=h.useRef(new Map),R=(0,h.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=T(e);!n&&L.current.has(e)&&(n=L.current.get(e)),t.set(e,n)}),L.current=t}},[T,n]);h.useEffect(()=>{R(I)},[I,R]);let z=(0,h.useMemo)(()=>qT(O,w),[O,w]),{keyEntities:B}=(0,h.useMemo)(()=>{if(x)return{keyEntities:null};let e=C;if(n){let t=new Set(z.map(E)),n=Array.from(L.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat(fr(e),fr(n))}return Zw(e,{externalGetKey:E,childrenPropName:O})},[C,E,x,O,n,z]),V=(0,h.useMemo)(()=>{let e=new Map;return z.forEach((t,n)=>{let r=E(t,n),i=(a?a(t):null)||{};e.set(r,i)}),e},[z,E,a]),H=(0,h.useCallback)(e=>{let t=E(e),n;return n=V.has(t)?V.get(E(e)):a?a(e):void 0,!!n?.disabled},[V,E]),[U,W]=(0,h.useMemo)(()=>{if(x)return[I,[]];let{checkedKeys:e,halfCheckedKeys:t}=ST(I,!0,B,H);return[e||[],t]},[I,x,B,H]),G=(0,h.useMemo)(()=>{let e=g===`radio`?U.slice(0,1):U;return new Set(e)},[U,g]),ee=(0,h.useMemo)(()=>g===`radio`?new Set:new Set(W),[W,g]);h.useEffect(()=>{t||F(KT)},[!!t]);let K=(0,h.useCallback)((e,t)=>{let r,i;R(e),n?(r=e,i=e.map(e=>L.current.get(e))):(r=[],i=[],e.forEach(e=>{let t=T(e);t!==void 0&&(r.push(e),i.push(t))})),F(r),s?.(r,i,{type:t})},[F,T,s,n]),te=(0,h.useCallback)((e,t,n,r)=>{if(c){let i=n.map(T);c(T(e),t,i,r)}K(n,`single`)},[c,T,K]),ne=(0,h.useMemo)(()=>!_||b?null:(_===!0?[WT,GT,$fe]:_).map(e=>{let t;return t=e===`SELECT_ALL`?{key:`all`,text:k.selectionAll,onSelect(){K(C.reduce((e,t,n)=>{let r=E(t,n);return(!V.get(r)?.disabled||G.has(r))&&e.push(r),e},[]),`all`)}}:e===`SELECT_INVERT`?{key:`invert`,text:k.selectInvert,onSelect(){let e=new Set(G);w.forEach((t,n)=>{let r=E(t,n);V.get(r)?.disabled||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);u&&(j.deprecated(!1,`onSelectInvert`,`onChange`),u(t)),K(t,`invert`)}}:e===`SELECT_NONE`?{key:`none`,text:k.selectNone,onSelect(){d?.(),K(Array.from(G).filter(e=>V.get(e)?.disabled),`none`)}}:e,{...t,onSelect:e=>{t.onSelect?.(e),N(null)}}}),[_,b,k.selectionAll,k.selectInvert,k.selectNone,V,G,C,w,E,u,K]);return[(0,h.useCallback)(e=>{if(!t)return e.filter(e=>e!==UT);let n=fr(e),r=new Set(G),i=z.reduce((e,t,n)=>{let r=E(t,n);return V.get(r).disabled||e.push(r),e},[]),a=i.every(e=>r.has(e)),s=i.some(e=>r.has(e)),c=()=>{let e=[];a?i.forEach(t=>{r.delete(t),e.push(t)}):i.forEach(t=>{r.has(t)||(r.add(t),e.push(t))});let t=Array.from(r);l?.(!a,t.map(T),e.map(T)),K(t,`all`),N(null)},u,d;if(g!==`radio`){let e;if(ne){let t={getPopupContainer:A,items:ne.map((e,t)=>{let{key:n,text:r,onSelect:a}=e;return{key:n??t,onClick:()=>{a?.(i)},label:r}})};e=h.createElement(`div`,{className:`${S}-selection-extra`},h.createElement(HT,{menu:t,getPopupContainer:A},h.createElement(`span`,null,h.createElement(Nv,null))))}let t=z.reduce((e,t,n)=>{let i=E(t,n),a=V.get(i)||{},o={checked:r.has(i),...a};return o.disabled&&e.push(o),e},[]),n=!!t.length&&t.length===z.length,l=n&&t.every(({checked:e})=>e),f=n&&t.some(({checked:e})=>e),p=o?.()||{},{onChange:m,disabled:g}=p;d=h.createElement(xg,{"aria-label":e?`Custom selection`:`Select all`,...p,checked:n?l:!!z.length&&a,indeterminate:n?!l&&f:!a&&s,onChange:e=>{c(),m?.(e)},disabled:g??(z.length===0||n),skipGroup:!0}),u=!b&&h.createElement(`div`,{className:`${S}-selection`},d,e)}let C;C=g===`radio`?(e,t,n)=>{let i=E(t,n),a=r.has(i),o=V.get(i),s=`Select row ${n+1}`;return{node:h.createElement(aS,{"aria-label":s,...o,checked:a,onClick:e=>{e.stopPropagation(),o?.onClick?.(e)},onChange:e=>{r.has(i)||te(i,!0,[i],e.nativeEvent),o?.onChange?.(e)}}),checked:a}}:(e,t,n)=>{let a=E(t,n),o=r.has(a),s=ee.has(a),c=V.get(a),l;l=D===`nest`?s:c?.indeterminate??s;let u=o?`Row ${n+1} selected`:`Select row ${n+1}`;return{node:h.createElement(xg,{"aria-label":u,...c,indeterminate:l,checked:o,skipGroup:!0,onClick:e=>{e.stopPropagation(),c?.onClick?.(e)},onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,s=i.indexOf(a),l=G.size>0&&i.some(e=>G.has(e));if(n&&x&&l){let e=M(s,i,r),t=Array.from(r);f?.(!o,t.map(T),e.map(T)),K(t,`multiple`)}else{let e=U;if(x){let n=o?mT(e,a):hT(e,a);te(a,!o,n,t)}else{let{checkedKeys:n,halfCheckedKeys:r}=ST([].concat(fr(e),[a]),!0,B,H),i=n;if(o){let e=new Set(n);e.delete(a),i=ST(Array.from(e),{checked:!1,halfCheckedKeys:r},B,H).checkedKeys}te(a,!o,i,t)}}N(o?null:s),c?.onChange?.(e)}}),checked:o}};let w=(e,t,n)=>{let{node:r,checked:i}=C(e,t,n);return y?y(i,t,n,r):r};if(!n.includes(UT))if(n.findIndex(e=>e.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`)===0){let[e,...t]=n;n=[e,UT].concat(fr(t))}else n=[UT].concat(fr(n));let O=n.indexOf(UT);n=n.filter((e,t)=>e!==UT||t===O);let k=n[O-1],j=n[O+1],P=v;P===void 0&&(j?.fixed===void 0?k?.fixed!==void 0&&(P=k.fixed):P=j.fixed),P&&k&&k.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`&&k.fixed===void 0&&(k.fixed=P);let F=m(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:_&&g===`checkbox`}),I={fixed:P,width:p,className:`${S}-selection-column`,title:t?.columnTitle?vr(t.columnTitle)?t.columnTitle(d):t.columnTitle:u,render:w,onCell:t.onCell,align:t.align,[gw]:{className:F}};return n.map(e=>e===UT?I:e)},[E,z,t,U,G,ee,p,ne,D,V,f,te,H]),G]};function tpe(e,t,n,r){let i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}var JT=e=>pr(e)&&e===e.window,npe=e=>{if(typeof window>`u`)return 0;let t=0;return JT(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!JT(e)&&!hr(t)&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};function rpe(e,t={}){let{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=npe(a),s=Date.now(),c,l=()=>{let t=Date.now()-s,n=tpe(t>i?i:t,o,e,i);JT(a)?a.scrollTo(window.pageXOffset,n):a instanceof Document||a.constructor.name===`HTMLDocument`?a.documentElement.scrollTop=n:a.scrollTop=n,t{en.cancel(c)}}var ipe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z`}}]},name:`double-left`,theme:`outlined`}}))());function YT(){return YT=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,YT({},e,{ref:t,icon:ipe.default}))),ape=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z`}}]},name:`double-right`,theme:`outlined`}}))());function ZT(){return ZT=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,ZT({},e,{ref:t,icon:ape.default}))),ope={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`},spe=[10,20,50,100],cpe=e=>{let{pageSizeOptions:t=spe,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=h.useState(``),m=h.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),g=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,_=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},v=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},y=e=>{f!==``&&(e.keyCode===Et.ENTER||e.type===`click`)&&(p(``),o?.(m))},b=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),x=`${s}-options`;if(!u&&!o)return null;let S=null,C=null,w=null;return u&&d&&(S=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${x}-size-changer`,options:b().map(e=>({label:g(e),value:e}))})),o&&(a&&(w=typeof a==`boolean`?h.createElement(`button`,{type:`button`,onClick:y,onKeyUp:y,disabled:c,className:`${x}-quick-jumper-button`},n.jump_to_confirm):h.createElement(`span`,{onClick:y,onKeyUp:y},a)),C=h.createElement(`div`,{className:`${x}-quick-jumper`},n.jump_to,h.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:_,onKeyUp:y,onBlur:v,"aria-label":n.page}),n.page,w)),h.createElement(`li`,{className:x},S,C)},$T=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=m(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},g=l(n,`page`,h.createElement(`a`,{rel:`nofollow`},n));return g?h.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},g):null};function eE(){return eE=Object.assign?Object.assign.bind():function(e){for(var t=1;tn;function tE(){}function nE(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function rE(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var upe=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=tE,hideOnSinglePage:f,align:p,showPrevNextJumpers:g=!0,showQuickJumper:_,showLessItems:v,showTitle:y=!0,onShowSizeChange:b=tE,locale:x=ope,style:S,totalBoundaryShowSizeChanger:C=50,disabled:w,simple:T,showTotal:E,showSizeChanger:D=c>C,sizeChangerRender:O,pageSizeOptions:k,itemRender:A=lpe,jumpPrevIcon:j,jumpNextIcon:M,prevIcon:N,nextIcon:P}=e,F=h.useRef(null),[I,L]=ye(u,l),[R,z]=ye(s,o),B=Math.max(1,Math.min(R,rE(void 0,I,c))),[V,H]=h.useState(B);(0,h.useEffect)(()=>{H(B)},[B]),`current`in e;let U=Math.max(1,B-(v?3:5)),W=Math.min(rE(void 0,I,c),B+(v?3:5));function G(n,r){let i=n||h.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=h.createElement(n,e)),i}function ee(e){let t=e.target.value,n=rE(void 0,I,c),r;return r=t===``?t:Number.isNaN(Number(t))?V:t>=n?n:Number(t),r}function K(e){return nE(e)&&e!==B&&nE(c)&&c>0}let te=c>I?_:!1;function ne(e){(e.keyCode===Et.UP||e.keyCode===Et.DOWN)&&e.preventDefault()}function re(e){let t=ee(e);switch(t!==V&&H(t),e.keyCode){case Et.ENTER:oe(t);break;case Et.UP:oe(t-1);break;case Et.DOWN:oe(t+1);break;default:break}}function ie(e){oe(ee(e))}function ae(e){let t=rE(e,I,c),n=B>t&&t!==0?t:B;L(e),H(n),b?.(B,e),z(n),d?.(n,e)}function oe(e){if(K(e)&&!w){let t=rE(void 0,I,c),n=e;return e>t?n=t:e<1&&(n=1),n!==V&&H(n),z(n),d?.(n,I),n}return B}let se=B>1,ce=Bc?c:B*I])),Te=null,Ee=rE(void 0,I,c);if(f&&c<=I)return null;let De=[],Oe={rootPrefixCls:t,onClick:oe,onKeyPress:pe,showTitle:y,itemRender:A,page:-1,className:i?.item,style:a?.item},ke=B-1>0?B-1:0,Ae=B+1=Fe*2&&B!==3,c=!!Te&&Ee-B>=Fe*2&&B!==Ee-2;!v&&s&&o!==Ee&&(a+=1),!v&&c&&a!==1&&--o;for(let e=a;e<=o;e+=1)De.push(h.createElement($T,eE({},Oe,{key:e,page:e,active:B===e})));if(s&&(De[0]=h.cloneElement(De[0],{className:m(`${t}-item-after-jump-prev`,De[0].props.className)}),De.unshift(Se)),c){let e=De[De.length-1];De[De.length-1]=h.cloneElement(e,{className:m(`${t}-item-before-jump-next`,e.props.className)}),De.push(Te)}a!==1&&De.unshift(h.createElement($T,eE({},Oe,{key:1,page:1}))),o!==Ee&&De.push(h.createElement($T,eE({},Oe,{key:Ee,page:Ee})))}let Ie=ve(ke);if(Ie){let e=!se||!Ee;Ie=h.createElement(`li`,{title:y?x.prev_page:null,onClick:le,tabIndex:e?null:0,onKeyDown:me,className:m(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Ie)}let Le=be(Ae);if(Le){let e,n;T?(e=!ce,n=se?0:null):(e=!ce||!Ee,n=e?null:0),Le=h.createElement(`li`,{title:y?x.next_page:null,onClick:ue,tabIndex:n,onKeyDown:he,className:m(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Le)}let Re=m(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:T,[`${t}-disabled`]:w});return h.createElement(`ul`,eE({className:Re,style:S,ref:F},Ce),we,Ie,T?Pe:De,Le,h.createElement(cpe,{locale:x,rootPrefixCls:t,disabled:w,selectPrefixCls:n,changeSize:ae,pageSize:I,pageSizeOptions:k,quickGo:te?oe:null,goButton:Ne,showSizeChanger:D,sizeChangerRender:O}))},dpe=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},fpe=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...xv(e),width:e.paginationMiniQuickJumperInputWidth}}}}},ppe=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...bv(e)}}}}},mpe=e=>{let{componentCls:t,antCls:n}=e,[,r]=vc(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${q(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:`none`,transition:`border-color ${e.motionDurationMid}`,color:`inherit`,"&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${q(e.inputOutlineOffset)} 0 ${q(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},hpe=e=>{let{componentCls:t}=e,n=`${t}-options-quick-jumper input, ${t}-simple-pager input`;return{[`&${t}-filled`]:{[n]:{background:e.colorFillTertiary,borderColor:`transparent`,"&:hover":{background:e.colorFillSecondary},"&:focus":{borderColor:e.activeBorderColor,outline:0,backgroundColor:e.activeBg},"&[disabled]":{...rv(e)}}},[`&${t}-borderless`]:{[n]:{background:`transparent`,border:`none`,"&:focus":{outline:`none`,boxShadow:`none`},"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-underlined`]:{[n]:{background:e.colorBgContainer,borderWidth:`${q(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${e.colorBorder} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${e.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus":{borderColor:`transparent transparent ${e.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg},"&[disabled]":{color:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`}}}}},gpe=e=>{let{componentCls:t,iconCls:n,sizeLG:r,antCls:i}=e,[,a]=vc(i,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,inset:0,display:`inline-flex`,justifyContent:`center`,alignItems:`center`,margin:`auto`,color:e.colorTextDisabled,textAlign:`center`,opacity:1,transition:`all ${e.motionDurationMid}`,[`${n}-ellipsis > svg`]:{width:r,height:r}}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + &${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-leftBottom`]:{animationName:sf}}},vy(e,h),{[`${t} ${n}`]:{position:`relative`,margin:0},[`${n}-submenu-popup`]:{position:`absolute`,zIndex:r,background:`transparent`,boxShadow:`none`,transformOrigin:`0 0`,"ul, li":{listStyle:`none`,margin:0}},[`${t}, ${t}-menu-submenu`]:{...eo(e),[n]:{padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,...ao(e),"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${q(l)} ${q(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:`relative`,display:`flex`,alignItems:`center`},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:`auto`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},[`> a, > ${n}-item-label > a`]:{color:`inherit`,transition:`all ${c}`,"&:hover":{color:`inherit`},"&::after":{position:`absolute`,inset:0,content:`""`}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:`auto`,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:`flex`,margin:0,padding:`${q(l)} ${q(m)}`,color:e.colorText,fontWeight:`normal`,fontSize:u,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...ao(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:`not-allowed`,"&:hover":{color:f,backgroundColor:h,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${q(e.marginXXS)} 0`,overflow:`hidden`,lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:`absolute`,insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:`0 !important`,color:e.colorIcon,fontSize:p,fontStyle:`normal`}}},[`${n}-item-group-list`]:{margin:`0 ${q(e.marginXS)}`,padding:0,listStyle:`none`},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:`relative`},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[lf(e,`slide-up`),lf(e,`slide-down`),lf(e,`slide-left`),lf(e,`slide-right`),Qd(e,`move-up`),Qd(e,`move-down`),yf(e,`zoom-big`)]]},Zfe=hc(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=Bo(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Xfe(a),Yfe(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,..._y({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Tv(e)}),{resetStyle:!1}),BT=h.forwardRef((e,t)=>{let{menu:n,arrow:r,prefixCls:i,children:a,trigger:o,disabled:s,dropdownRender:c,popupRender:l,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:p,open:g,onOpenChange:_,mouseEnterDelay:v=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:b=!0,placement:x=``,transitionName:S,classNames:C,styles:w,destroyPopupOnHide:T,destroyOnHidden:E}=e,{getPrefixCls:D,direction:O,getPopupContainer:k,className:A,style:j,classNames:M,styles:N}=zr(`dropdown`),P={...e,mouseEnterDelay:v,mouseLeaveDelay:y,autoAdjustOverflow:b},[F,I]=kr([M,C],[N,w],{props:P}),L={...j,...p,...I.root},R=l||c;Nr(`Dropdown`);let z=h.useMemo(()=>{let e=D();return S===void 0?x.startsWith(`top`)?`${e}-slide-down`:x.startsWith(`left`)?`${e}-slide-right`:x.startsWith(`right`)?`${e}-slide-left`:`${e}-slide-up`:S},[D,x,S]),B=h.useMemo(()=>x?x.includes(`Center`)?x.slice(0,x.indexOf(`Center`)):x:O===`rtl`?`bottomRight`:`bottomLeft`,[x,O]),V=D(`dropdown`,i),H=ug(V),[U,W]=Zfe(V,H),[,G]=mc(),ee=h.Children.only(br(a)?h.createElement(`span`,null,a):a),K=Le(t,Ve(ee)),te=du(ee,{className:m(`${V}-trigger`,{[`${V}-rtl`]:O===`rtl`},ee.props.className),disabled:ee.props.disabled??s,ref:K}),ne=s?[]:o,re=!!ne?.includes(`contextMenu`),[ie,ae]=ye(!1,g),oe=pe(e=>{_?.(e,{source:`trigger`}),ae(e)}),se=m(d,f,U,W,H,A,F.root,{[`${V}-rtl`]:O===`rtl`}),ce=by({arrowPointAtCenter:_r(r)&&r.pointAtCenter,autoAdjustOverflow:b,offset:G.marginXXS,arrowWidth:r?G.sizePopupArrow:0,borderRadius:G.borderRadius}),le=pe(()=>{n?.selectable&&n?.multiple||(_?.(!1,{source:`menu`}),ae(!1))}),ue=()=>{let e=Ht(F,[`root`]),t=Ht(I,[`root`]),r;return n?.items&&(r=h.createElement(zT,{...n,classNames:{...e,subMenu:{...e}},styles:{...t,subMenu:{...t}}})),R&&(r=R(r)),r=h.Children.only(typeof r==`string`?h.createElement(`span`,null,r):r),h.createElement(jT,{prefixCls:`${V}-menu`,rootClassName:m(W,H),expandIcon:h.createElement(`span`,{className:`${V}-menu-submenu-arrow`},O===`rtl`?h.createElement(TT,{className:`${V}-menu-submenu-arrow-icon`}):h.createElement(Af,{className:`${V}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:le,validator:({mode:e})=>{}},r)},[de,fe]=_d(`Dropdown`,L.zIndex),me=h.createElement(Zm,{alignPoint:re,...Ht(e,[`rootClassName`,`onOpenChange`]),mouseEnterDelay:v,mouseLeaveDelay:y,visible:ie,builtinPlacements:ce,arrow:!!r,overlayClassName:se,prefixCls:V,getPopupContainer:u||k,transitionName:z,trigger:ne,overlay:ue,placement:B,onVisibleChange:oe,overlayStyle:{...L,zIndex:de},autoDestroy:E??T},te);return de&&(me=h.createElement(dd.Provider,{value:fe},me)),me}),Qfe=Lg(BT,`align`,void 0,`dropdown`,e=>e);BT._InternalPanelDoNotUseOrYouWillBeFired=e=>h.createElement(Qfe,{...e},h.createElement(`span`,null));var VT=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=h.useContext(Ir),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:g,autoFocus:_,trigger:v,align:y,open:b,onOpenChange:x,placement:S,getPopupContainer:C,href:w,icon:T=h.createElement(Mm,null),title:E,buttonsRender:D=e=>e,mouseEnterDelay:O,mouseLeaveDelay:k,overlayClassName:A,overlayStyle:j,destroyOnHidden:M,destroyPopupOnHide:N,dropdownRender:P,popupRender:F,...I}=e,L=n(`dropdown`,i),R=`${L}-button`,z={menu:p,arrow:g,autoFocus:_,align:y,disabled:s,trigger:s?[]:v,onOpenChange:x,getPopupContainer:C||t,mouseEnterDelay:O,mouseLeaveDelay:k,classNames:{root:A},styles:{root:j},destroyOnHidden:M,popupRender:F||P},{compactSize:B,compactItemClassnames:V}=bd(L,r),H=m(R,V,f);`destroyPopupOnHide`in e&&(z.destroyPopupOnHide=N),`open`in e&&(z.open=b),`placement`in e?z.placement=S:z.placement=r===`rtl`?`bottomLeft`:`bottomRight`;let[U,W]=D([h.createElement(Cp,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:w,title:E},d),h.createElement(Cp,{type:a,danger:o,icon:T})]);return h.createElement(Iy.Compact,{className:H,size:B,block:!0,...I},U,h.createElement(BT,{...z},W))};VT.__ANT_BUTTON=!0;var HT=BT;HT.Button=VT;var UT={},WT=`SELECT_ALL`,GT=`SELECT_INVERT`,KT=`SELECT_NONE`,qT=[],$fe=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),_r(t)&&e in t&&$fe(e,t[e],n)}),n),epe=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,getTitleCheckboxProps:o,onChange:s,onSelect:c,onSelectAll:l,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:g,selections:_,fixed:v,renderCell:y,hideSelectAll:b,checkStrictly:x=!0}=t||{},{prefixCls:S,data:C,pageData:w,getRecordByKey:T,getRowKey:E,expandType:D,childrenColumnName:O,locale:k,getPopupContainer:A}=e,j=Nr(`Table`),[M,N]=fee(e=>e),[P,F]=ye(i||qT,r),I=P??qT,L=h.useRef(new Map),R=(0,h.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=T(e);!n&&L.current.has(e)&&(n=L.current.get(e)),t.set(e,n)}),L.current=t}},[T,n]);h.useEffect(()=>{R(I)},[I,R]);let z=(0,h.useMemo)(()=>$fe(O,w),[O,w]),{keyEntities:B}=(0,h.useMemo)(()=>{if(x)return{keyEntities:null};let e=C;if(n){let t=new Set(z.map(E)),n=Array.from(L.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat(fr(e),fr(n))}return Zw(e,{externalGetKey:E,childrenPropName:O})},[C,E,x,O,n,z]),V=(0,h.useMemo)(()=>{let e=new Map;return z.forEach((t,n)=>{let r=E(t,n),i=(a?a(t):null)||{};e.set(r,i)}),e},[z,E,a]),H=(0,h.useCallback)(e=>{let t=E(e),n;return n=V.has(t)?V.get(E(e)):a?a(e):void 0,!!n?.disabled},[V,E]),[U,W]=(0,h.useMemo)(()=>{if(x)return[I,[]];let{checkedKeys:e,halfCheckedKeys:t}=ST(I,!0,B,H);return[e||[],t]},[I,x,B,H]),G=(0,h.useMemo)(()=>{let e=g===`radio`?U.slice(0,1):U;return new Set(e)},[U,g]),ee=(0,h.useMemo)(()=>g===`radio`?new Set:new Set(W),[W,g]);h.useEffect(()=>{t||F(qT)},[!!t]);let K=(0,h.useCallback)((e,t)=>{let r,i;R(e),n?(r=e,i=e.map(e=>L.current.get(e))):(r=[],i=[],e.forEach(e=>{let t=T(e);t!==void 0&&(r.push(e),i.push(t))})),F(r),s?.(r,i,{type:t})},[F,T,s,n]),te=(0,h.useCallback)((e,t,n,r)=>{if(c){let i=n.map(T);c(T(e),t,i,r)}K(n,`single`)},[c,T,K]),ne=(0,h.useMemo)(()=>!_||b?null:(_===!0?[WT,GT,KT]:_).map(e=>{let t;return t=e===`SELECT_ALL`?{key:`all`,text:k.selectionAll,onSelect(){K(C.reduce((e,t,n)=>{let r=E(t,n);return(!V.get(r)?.disabled||G.has(r))&&e.push(r),e},[]),`all`)}}:e===`SELECT_INVERT`?{key:`invert`,text:k.selectInvert,onSelect(){let e=new Set(G);w.forEach((t,n)=>{let r=E(t,n);V.get(r)?.disabled||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);u&&(j.deprecated(!1,`onSelectInvert`,`onChange`),u(t)),K(t,`invert`)}}:e===`SELECT_NONE`?{key:`none`,text:k.selectNone,onSelect(){d?.(),K(Array.from(G).filter(e=>V.get(e)?.disabled),`none`)}}:e,{...t,onSelect:e=>{t.onSelect?.(e),N(null)}}}),[_,b,k.selectionAll,k.selectInvert,k.selectNone,V,G,C,w,E,u,K]);return[(0,h.useCallback)(e=>{if(!t)return e.filter(e=>e!==UT);let n=fr(e),r=new Set(G),i=z.reduce((e,t,n)=>{let r=E(t,n);return V.get(r).disabled||e.push(r),e},[]),a=i.every(e=>r.has(e)),s=i.some(e=>r.has(e)),c=()=>{let e=[];a?i.forEach(t=>{r.delete(t),e.push(t)}):i.forEach(t=>{r.has(t)||(r.add(t),e.push(t))});let t=Array.from(r);l?.(!a,t.map(T),e.map(T)),K(t,`all`),N(null)},u,d;if(g!==`radio`){let e;if(ne){let t={getPopupContainer:A,items:ne.map((e,t)=>{let{key:n,text:r,onSelect:a}=e;return{key:n??t,onClick:()=>{a?.(i)},label:r}})};e=h.createElement(`div`,{className:`${S}-selection-extra`},h.createElement(HT,{menu:t,getPopupContainer:A},h.createElement(`span`,null,h.createElement(Nv,null))))}let t=z.reduce((e,t,n)=>{let i=E(t,n),a=V.get(i)||{},o={checked:r.has(i),...a};return o.disabled&&e.push(o),e},[]),n=!!t.length&&t.length===z.length,l=n&&t.every(({checked:e})=>e),f=n&&t.some(({checked:e})=>e),p=o?.()||{},{onChange:m,disabled:g}=p;d=h.createElement(xg,{"aria-label":e?`Custom selection`:`Select all`,...p,checked:n?l:!!z.length&&a,indeterminate:n?!l&&f:!a&&s,onChange:e=>{c(),m?.(e)},disabled:g??(z.length===0||n),skipGroup:!0}),u=!b&&h.createElement(`div`,{className:`${S}-selection`},d,e)}let C;C=g===`radio`?(e,t,n)=>{let i=E(t,n),a=r.has(i),o=V.get(i),s=`Select row ${n+1}`;return{node:h.createElement(aS,{"aria-label":s,...o,checked:a,onClick:e=>{e.stopPropagation(),o?.onClick?.(e)},onChange:e=>{r.has(i)||te(i,!0,[i],e.nativeEvent),o?.onChange?.(e)}}),checked:a}}:(e,t,n)=>{let a=E(t,n),o=r.has(a),s=ee.has(a),c=V.get(a),l;l=D===`nest`?s:c?.indeterminate??s;let u=o?`Row ${n+1} selected`:`Select row ${n+1}`;return{node:h.createElement(xg,{"aria-label":u,...c,indeterminate:l,checked:o,skipGroup:!0,onClick:e=>{e.stopPropagation(),c?.onClick?.(e)},onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,s=i.indexOf(a),l=G.size>0&&i.some(e=>G.has(e));if(n&&x&&l){let e=M(s,i,r),t=Array.from(r);f?.(!o,t.map(T),e.map(T)),K(t,`multiple`)}else{let e=U;if(x){let n=o?mT(e,a):hT(e,a);te(a,!o,n,t)}else{let{checkedKeys:n,halfCheckedKeys:r}=ST([].concat(fr(e),[a]),!0,B,H),i=n;if(o){let e=new Set(n);e.delete(a),i=ST(Array.from(e),{checked:!1,halfCheckedKeys:r},B,H).checkedKeys}te(a,!o,i,t)}}N(o?null:s),c?.onChange?.(e)}}),checked:o}};let w=(e,t,n)=>{let{node:r,checked:i}=C(e,t,n);return y?y(i,t,n,r):r};if(!n.includes(UT))if(n.findIndex(e=>e.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`)===0){let[e,...t]=n;n=[e,UT].concat(fr(t))}else n=[UT].concat(fr(n));let O=n.indexOf(UT);n=n.filter((e,t)=>e!==UT||t===O);let k=n[O-1],j=n[O+1],P=v;P===void 0&&(j?.fixed===void 0?k?.fixed!==void 0&&(P=k.fixed):P=j.fixed),P&&k&&k.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`&&k.fixed===void 0&&(k.fixed=P);let F=m(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:_&&g===`checkbox`}),I={fixed:P,width:p,className:`${S}-selection-column`,title:t?.columnTitle?vr(t.columnTitle)?t.columnTitle(d):t.columnTitle:u,render:w,onCell:t.onCell,align:t.align,[gw]:{className:F}};return n.map(e=>e===UT?I:e)},[E,z,t,U,G,ee,p,ne,D,V,f,te,H]),G]};function tpe(e,t,n,r){let i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}var JT=e=>pr(e)&&e===e.window,npe=e=>{if(typeof window>`u`)return 0;let t=0;return JT(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!JT(e)&&!hr(t)&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};function rpe(e,t={}){let{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=npe(a),s=Date.now(),c,l=()=>{let t=Date.now()-s,n=tpe(t>i?i:t,o,e,i);JT(a)?a.scrollTo(window.pageXOffset,n):a instanceof Document||a.constructor.name===`HTMLDocument`?a.documentElement.scrollTop=n:a.scrollTop=n,t{en.cancel(c)}}var ipe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z`}}]},name:`double-left`,theme:`outlined`}}))());function YT(){return YT=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,YT({},e,{ref:t,icon:ipe.default}))),ape=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z`}}]},name:`double-right`,theme:`outlined`}}))());function ZT(){return ZT=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,ZT({},e,{ref:t,icon:ape.default}))),ope={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`},spe=[10,20,50,100],cpe=e=>{let{pageSizeOptions:t=spe,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=h.useState(``),m=h.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),g=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,_=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},v=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},y=e=>{f!==``&&(e.keyCode===Et.ENTER||e.type===`click`)&&(p(``),o?.(m))},b=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),x=`${s}-options`;if(!u&&!o)return null;let S=null,C=null,w=null;return u&&d&&(S=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${x}-size-changer`,options:b().map(e=>({label:g(e),value:e}))})),o&&(a&&(w=typeof a==`boolean`?h.createElement(`button`,{type:`button`,onClick:y,onKeyUp:y,disabled:c,className:`${x}-quick-jumper-button`},n.jump_to_confirm):h.createElement(`span`,{onClick:y,onKeyUp:y},a)),C=h.createElement(`div`,{className:`${x}-quick-jumper`},n.jump_to,h.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:_,onKeyUp:y,onBlur:v,"aria-label":n.page}),n.page,w)),h.createElement(`li`,{className:x},S,C)},$T=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=m(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},g=l(n,`page`,h.createElement(`a`,{rel:`nofollow`},n));return g?h.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},g):null};function eE(){return eE=Object.assign?Object.assign.bind():function(e){for(var t=1;tn;function tE(){}function nE(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function rE(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var upe=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=tE,hideOnSinglePage:f,align:p,showPrevNextJumpers:g=!0,showQuickJumper:_,showLessItems:v,showTitle:y=!0,onShowSizeChange:b=tE,locale:x=ope,style:S,totalBoundaryShowSizeChanger:C=50,disabled:w,simple:T,showTotal:E,showSizeChanger:D=c>C,sizeChangerRender:O,pageSizeOptions:k,itemRender:A=lpe,jumpPrevIcon:j,jumpNextIcon:M,prevIcon:N,nextIcon:P}=e,F=h.useRef(null),[I,L]=ye(u,l),[R,z]=ye(s,o),B=Math.max(1,Math.min(R,rE(void 0,I,c))),[V,H]=h.useState(B);(0,h.useEffect)(()=>{H(B)},[B]),`current`in e;let U=Math.max(1,B-(v?3:5)),W=Math.min(rE(void 0,I,c),B+(v?3:5));function G(n,r){let i=n||h.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=h.createElement(n,e)),i}function ee(e){let t=e.target.value,n=rE(void 0,I,c),r;return r=t===``?t:Number.isNaN(Number(t))?V:t>=n?n:Number(t),r}function K(e){return nE(e)&&e!==B&&nE(c)&&c>0}let te=c>I?_:!1;function ne(e){(e.keyCode===Et.UP||e.keyCode===Et.DOWN)&&e.preventDefault()}function re(e){let t=ee(e);switch(t!==V&&H(t),e.keyCode){case Et.ENTER:oe(t);break;case Et.UP:oe(t-1);break;case Et.DOWN:oe(t+1);break;default:break}}function ie(e){oe(ee(e))}function ae(e){let t=rE(e,I,c),n=B>t&&t!==0?t:B;L(e),H(n),b?.(B,e),z(n),d?.(n,e)}function oe(e){if(K(e)&&!w){let t=rE(void 0,I,c),n=e;return e>t?n=t:e<1&&(n=1),n!==V&&H(n),z(n),d?.(n,I),n}return B}let se=B>1,ce=Bc?c:B*I])),Te=null,Ee=rE(void 0,I,c);if(f&&c<=I)return null;let De=[],Oe={rootPrefixCls:t,onClick:oe,onKeyPress:pe,showTitle:y,itemRender:A,page:-1,className:i?.item,style:a?.item},ke=B-1>0?B-1:0,Ae=B+1=Fe*2&&B!==3,c=!!Te&&Ee-B>=Fe*2&&B!==Ee-2;!v&&s&&o!==Ee&&(a+=1),!v&&c&&a!==1&&--o;for(let e=a;e<=o;e+=1)De.push(h.createElement($T,eE({},Oe,{key:e,page:e,active:B===e})));if(s&&(De[0]=h.cloneElement(De[0],{className:m(`${t}-item-after-jump-prev`,De[0].props.className)}),De.unshift(Se)),c){let e=De[De.length-1];De[De.length-1]=h.cloneElement(e,{className:m(`${t}-item-before-jump-next`,e.props.className)}),De.push(Te)}a!==1&&De.unshift(h.createElement($T,eE({},Oe,{key:1,page:1}))),o!==Ee&&De.push(h.createElement($T,eE({},Oe,{key:Ee,page:Ee})))}let Ie=ve(ke);if(Ie){let e=!se||!Ee;Ie=h.createElement(`li`,{title:y?x.prev_page:null,onClick:le,tabIndex:e?null:0,onKeyDown:me,className:m(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Ie)}let Le=be(Ae);if(Le){let e,n;T?(e=!ce,n=se?0:null):(e=!ce||!Ee,n=e?null:0),Le=h.createElement(`li`,{title:y?x.next_page:null,onClick:ue,tabIndex:n,onKeyDown:he,className:m(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Le)}let Re=m(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:T,[`${t}-disabled`]:w});return h.createElement(`ul`,eE({className:Re,style:S,ref:F},Ce),we,Ie,T?Pe:De,Le,h.createElement(cpe,{locale:x,rootPrefixCls:t,disabled:w,selectPrefixCls:n,changeSize:ae,pageSize:I,pageSizeOptions:k,quickGo:te?oe:null,goButton:Ne,showSizeChanger:D,sizeChangerRender:O}))},dpe=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},fpe=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...xv(e),width:e.paginationMiniQuickJumperInputWidth}}}}},ppe=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...bv(e)}}}}},mpe=e=>{let{componentCls:t,antCls:n}=e,[,r]=vc(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${q(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:`none`,transition:`border-color ${e.motionDurationMid}`,color:`inherit`,"&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${q(e.inputOutlineOffset)} 0 ${q(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},hpe=e=>{let{componentCls:t}=e,n=`${t}-options-quick-jumper input, ${t}-simple-pager input`;return{[`&${t}-filled`]:{[n]:{background:e.colorFillTertiary,borderColor:`transparent`,"&:hover":{background:e.colorFillSecondary},"&:focus":{borderColor:e.activeBorderColor,outline:0,backgroundColor:e.activeBg},"&[disabled]":{...rv(e)}}},[`&${t}-borderless`]:{[n]:{background:`transparent`,border:`none`,"&:focus":{outline:`none`,boxShadow:`none`},"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-underlined`]:{[n]:{background:e.colorBgContainer,borderWidth:`${q(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${e.colorBorder} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${e.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus":{borderColor:`transparent transparent ${e.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg},"&[disabled]":{color:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`}}}}},gpe=e=>{let{componentCls:t,iconCls:n,sizeLG:r,antCls:i}=e,[,a]=vc(i,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,inset:0,display:`inline-flex`,justifyContent:`center`,alignItems:`center`,margin:`auto`,color:e.colorTextDisabled,textAlign:`center`,opacity:1,transition:`all ${e.motionDurationMid}`,[`${n}-ellipsis > svg`]:{width:r,height:r}}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next @@ -341,7 +341,7 @@ html body { > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]:{[t]:{marginBlock:q(v(r).mul(-1).equal()),marginInline:`${q(v(a).sub(i).equal())} - ${q(v(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:`0 !important`,borderBlock:`0 !important`,[`${t}-measure-cell-content`]:{height:0,overflow:`hidden`,pointerEvents:`none`}}}},[`${t}-footer`]:{padding:`${q(r)} ${q(i)}`,color:g,background:_}}}},Zme=e=>{let{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:c,paddingSM:l,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:h,fontSizeSM:g,lineHeight:_,lineWidth:v,colorIcon:y,colorIconHover:b,opacityLoading:x,controlInteractiveSize:S}=e,C=new cs(i).onBackground(n).toHexString(),w=new cs(a).onBackground(n).toHexString(),T=new cs(t).onBackground(n).toHexString(),E=new cs(y),D=new cs(b),O=S/2-v,k=O*2+v*3;return{headerBg:T,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:w,bodySortBg:T,rowHoverBg:T,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:l,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:T,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*_-v*3)/2-Math.ceil((g*1.4-v*3)/2),headerIconColor:E.clone().setA(E.a*x).toRgbString(),headerIconHoverColor:D.clone().setA(D.a*x).toRgbString(),expandIconHalfInner:O,expandIconSize:k,expandIconScale:S/k}},Qme=2,$me=hc(`Table`,e=>{let{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:l,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:_,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:b,footerBg:x,footerColor:S,headerBorderRadius:C,cellFontSize:w,cellFontSizeMD:T,cellFontSizeSM:E,headerSplitColor:D,fixedHeaderSortActiveBg:O,headerFilterHoverBg:k,filterDropdownBg:A,expandIconBg:j,selectionColumnWidth:M,stickyScrollBarBg:N,calc:P}=e,F=Bo(e,{tableFontSize:w,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:_,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:b,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:D,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:l,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:A,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:Qme,tableFontSizeMiddle:T,tableFontSizeSmall:E,tableSelectionColumnWidth:M,tableExpandIconBg:j,tableExpandColumnWidth:P(i).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[Xme(F),Vme(F),Jme(F),Kme(F),Rme(F),Pme(F),Hme(F),Lme(F),Jme(F),Ime(F),Wme(F),Bme(F),qme(F),Fme(F),Gme(F),Ume(F),Yme(F)]},Zme,{resetFont:!1,unitless:{expandIconScale:!0}}),ehe=[],the=h.createContext({}),nhe=e=>{let{ariaProps:t,component:n=`table`}=h.useContext(the);return h.createElement(n,{...t,...e})},rhe=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,classNames:o,styles:s,size:c,bordered:l,dropdownPrefixCls:u,dataSource:d,pagination:f,rowSelection:p,rowKey:g,rowClassName:_,column:v,columns:y,children:b,childrenColumnName:x,onChange:S,getPopupContainer:C,loading:w,expandIcon:T,expandable:E,expandedRowRender:D,expandIconColumnIndex:O,indentSize:k,scroll:A,sortDirections:j,locale:M,showSorterTooltip:N={target:`full-header`},virtual:P}=e;Nr(`Table`);let F=Epe(h.useMemo(()=>y||Cw(b),[y,b]),v),I=kg(h.useMemo(()=>F.some(e=>e.responsive),[F])),L=h.useMemo(()=>{let e=new Set(Object.keys(I).filter(e=>I[e]));return F.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[F,I]),R=Ht(e,[`className`,`style`,`column`,`columns`]),z=R.components,B=qt(R,{aria:!0}),V=Object.keys(B).length>0,H=h.useMemo(()=>({ariaProps:B,component:z?.header?.table}),[B,z?.header?.table]),U=h.useMemo(()=>V?{...z,header:{...z?.header,table:nhe}}:z,[z,V]),{locale:W=zc,table:G}=h.useContext(Ir),{getPrefixCls:ee,direction:K,renderEmpty:te,getPopupContainer:ne,className:re,style:ie,classNames:ae,styles:oe}=zr(`table`),se=qu(e=>c===`middle`?`medium`:c??e),ce={...e,size:se,bordered:l},le=Dr(ie),ue=Dr(a),[de,fe]=kr([ae,o],[oe,le,s,ue],{props:ce},{pagination:{_default:`root`},header:{_default:`wrapper`},body:{_default:`wrapper`}}),pe={...W.Table,...M},[me]=Kc(`global`,zc.global),he=d||ehe,ge=ee(`table`,n),_e=ee(`dropdown`,u),[,ve]=mc(),ye=h.useMemo(()=>_r(p)?{columnWidth:ve.Table?.selectionColumnWidth,...p}:p,[p,ve.Table?.selectionColumnWidth]),be=ug(ge),[xe,Se]=$me(ge,be),Ce={childrenColumnName:x,expandIconColumnIndex:O,...E,expandIcon:E?.expandIcon??G?.expandable?.expandIcon},{childrenColumnName:we=`children`}=Ce,Te=h.useMemo(()=>he.some(e=>e?.[we])?`nest`:D||E?.expandedRowRender?`row`:null,[we,he]),Ee={body:h.useRef(null)},De=Tpe(ge),Oe=h.useRef(null),ke=h.useRef(null);ld(t,()=>({...ke.current,nativeElement:Oe.current}));let Ae=g||G?.rowKey||`key`,je=A??G?.scroll,Me=h.useMemo(()=>vr(Ae)?Ae:e=>e?.[Ae],[Ae]),[Ne]=_me(he,we,Me),Pe={},Fe=(e,t,n=!1)=>{let r={...Pe,...e};n&&(Pe.resetPagination?.(),r.pagination?.current&&(r.pagination.current=1),f&&f.onChange?.(1,r.pagination?.pageSize)),A&&A.scrollToFirstRowOnChange!==!1&&Ee.body.current&&rpe(0,{getContainer:()=>Ee.body.current}),S?.(r.pagination,r.filters,r.sorter,{currentDataSource:EE(NE(he,r.sorterStates,we),r.filterStates,we),action:t})},[Ie,Le,Re,ze]=kme({prefixCls:ge,mergedColumns:L,baseColumns:F,onSorterChange:(e,t)=>{Fe({sorter:e,sorterStates:t},`sort`,!1)},sortDirections:j||[`ascend`,`descend`],tableLocale:pe,showSorterTooltip:N,globalLocale:me}),Be=h.useMemo(()=>NE(he,Le,we),[we,he,Le]);Pe.sorter=ze(),Pe.sorterStates=Le;let[Ve,He,Ue]=gme({prefixCls:ge,locale:pe,dropdownPrefixCls:_e,mergedColumns:L,onFilterChange:(e,t)=>{Fe({filters:e,filterStates:t},`filter`,!0)},getPopupContainer:C||ne,rootClassName:m(i,be)}),We=EE(Be,He,we);Pe.filters=Ue,Pe.filterStates=He;let[Ge]=jme(h.useMemo(()=>{let e={};return Object.keys(Ue).forEach(t=>{Ue[t]!==null&&(e[t]=Ue[t])}),{...Re,filters:e}},[Re,Ue])),[Ke,qe]=yme(We.length,(e,t)=>{Fe({pagination:{...Pe.pagination,current:e,pageSize:t}},`paginate`)},f);Pe.pagination=f===!1?{}:vme(Ke,f),Pe.resetPagination=qe;let Je=h.useMemo(()=>{if(f===!1||!Ke.pageSize)return We;let{current:e=1,total:t,pageSize:n=10}=Ke;return We.lengthn?We.slice((e-1)*n,e*n):We:We.slice((e-1)*n,e*n)},[!!f,We,Ke?.current,Ke?.pageSize,Ke?.total]),[Ye,Xe]=epe({prefixCls:ge,data:We,pageData:Je,getRowKey:Me,getRecordByKey:Ne,expandType:Te,childrenColumnName:we,locale:pe,getPopupContainer:C||ne},ye),Ze=(e,t,n)=>m({[`${ge}-row-selected`]:Xe.has(Me(e,t))},vr(_)?_(e,t,n):_);Ce.__PARENT_RENDER_ICON__=Ce.expandIcon,Ce.expandIcon=Ce.expandIcon||T||wpe(pe),Te===`nest`&&Ce.expandIconColumnIndex===void 0?Ce.expandIconColumnIndex=+!!ye:Ce.expandIconColumnIndex>0&&ye&&--Ce.expandIconColumnIndex,hr(Ce.indentSize)||(Ce.indentSize=hr(k)?k:15);let Qe=h.useCallback(e=>Ge(Ye(Ve(Ie(e)))),[Ie,Ve,Ye]),$e,et;if(f!==!1&&Ke?.total){let e;e=Ke.size?Ke.size:se===`small`||se===`medium`?`small`:void 0;let t=(t=`end`)=>h.createElement(Cpe,{...Ke,classNames:de.pagination,styles:fe.pagination,className:m(`${ge}-pagination ${ge}-pagination-${t}`,Ke.className),size:e}),{placement:n,position:r}=Ke,i=n??r,a=e=>{let t=e.toLowerCase();return t.includes(`center`)?`center`:t.includes(`left`)||t.includes(`start`)?`start`:`end`};if(Array.isArray(i)){let[e,n]=[`top`,`bottom`].map(e=>i.find(t=>t.includes(e))),r=i.every(e=>`${e}`==`none`);!e&&!n&&!r&&(et=t()),e&&($e=t(a(e))),n&&(et=t(a(n)))}else et=t()}let tt=h.useMemo(()=>{if(typeof w==`boolean`)return{spinning:w};if(_r(w))return{spinning:!0,...w}},[w]),nt=m(Se,be,`${ge}-wrapper`,re,{[`${ge}-wrapper-rtl`]:K===`rtl`},r,i,de.root,xe),rt=h.useMemo(()=>tt?.spinning&&he===ehe?null:M?.emptyText===void 0?te?.(`Table`)||h.createElement(cC,{componentName:`Table`}):M.emptyText,[tt?.spinning,he,M?.emptyText,te]),it=P?Nme:Mme,at={},ot=h.useMemo(()=>{let{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:i,paddingSM:a}=ve,o=Math.floor(e*t);switch(se){case`medium`:return a*2+o+n;case`small`:return i*2+o+n;default:return r*2+o+n}},[ve,se]);return P&&(at.listItemHeight=ot),h.createElement(`div`,{ref:Oe,className:nt,style:fe.root},h.createElement(LC,{spinning:!1,...tt},$e,h.createElement(the.Provider,{value:H},h.createElement(it,{...at,...R,components:U,scroll:je,classNames:de,styles:fe,ref:ke,columns:L,direction:K,expandable:Ce,prefixCls:ge,className:m({[`${ge}-medium`]:se===`medium`,[`${ge}-small`]:se===`small`,[`${ge}-bordered`]:l,[`${ge}-empty`]:he.length===0},Se,be,xe),data:Je,rowKey:Me,rowClassName:Ze,emptyText:rt,internalHooks:HC,internalRefs:Ee,transformColumns:Qe,getContainerWidth:De,measureRowRender:e=>h.createElement(xy.Provider,{value:!0},h.createElement(Iu,{getPopupContainer:e=>e},e))})),et))}),PE=h.forwardRef((e,t)=>{let n=h.useRef(0);return n.current+=1,h.createElement(rhe,{...e,ref:t,_renderTimes:n.current})});PE.SELECTION_COLUMN=UT,PE.EXPAND_COLUMN=VC,PE.SELECTION_ALL=WT,PE.SELECTION_INVERT=GT,PE.SELECTION_NONE=$fe,PE.Column=bfe,PE.ColumnGroup=xfe,PE.Summary=cw;var FE=PE,ihe=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:{...eo(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}},[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,backgroundColor:e.colorBgContainerDisabled,a:{cursor:`not-allowed`,pointerEvents:`none`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},IE=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Bo(e,{tagFontSize:i,tagLineHeight:q(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},LE=e=>{let t=ip(new Df(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new cs(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},RE=hc(`Tag`,e=>ihe(IE(e)),LE),ahe=h.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,onKeyDown:u,disabled:d,...f}=e,{getPrefixCls:p,tag:g}=h.useContext(Ir),_=h.useContext(gu),v=d??_,y=e=>{v||(c?.(!a),l?.(e))},b=e=>{u?.(e),!(e.defaultPrevented||v)&&e.key===` `&&(e.preventDefault(),c?.(!a))},x=p(`tag`,n),[S,C]=RE(x),w=m(x,`${x}-checkable`,{[`${x}-checkable-checked`]:a,[`${x}-checkable-disabled`]:v},g?.className,i,S,C);return h.createElement(`span`,{...f,ref:t,role:`checkbox`,"aria-checked":a,"aria-disabled":v||void 0,tabIndex:v?-1:0,style:{...r,...g?.style},className:w,onClick:y,onKeyDown:b},s,h.createElement(`span`,null,o))}),ohe=h.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:g,..._}=e,{getPrefixCls:v,direction:y,className:b,style:x,classNames:S,styles:C}=zr(`tag`),w=v(`tag`,r),T=`${w}-checkable-group`,[E,D]=RE(w,ug(w)),O=Dr(x),k=Dr(o),[A,j]=kr([S,s],[C,O,c,k],{props:e}),M=(0,h.useMemo)(()=>Array.isArray(u)?u.map(e=>_r(e)?e:{value:e,label:e}):[],[u]),[N,P]=ye(f,d),F=(e,t)=>{let n=null;if(g){let r=N||[];n=e?[].concat(fr(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;P(n),p?.(n)},I=h.useRef(null);(0,h.useImperativeHandle)(t,()=>({nativeElement:I.current}));let L=qt(_,{aria:!0,data:!0});return h.createElement(`div`,{...L,className:m(T,b,i,{[`${T}-disabled`]:l,[`${T}-rtl`]:y===`rtl`},E,D,a,A.root),style:j.root,id:n,ref:I},M.map(e=>h.createElement(ahe,{key:e.value,className:m(`${T}-item`,A.item,e.className),style:{...j.item,...e.style},checked:g?(N||[]).includes(e.value):N===e.value,onChange:t=>F(t,e),disabled:l},e.label)))});function she(e,t){let{color:n,variant:r,bordered:i}=e;return h.useMemo(()=>{let e=n?.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n?.replace(`-inverse`,``):n;o===void 0&&a===`solid`&&(o=`default`);let s=Ty(o),c=Coe(o),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new cs(o).toHsl();e.l=.95,l.backgroundColor=new cs(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var che=e=>yc(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),lhe=_c([`Tag`,`preset`],e=>che(IE(e)),LE);function uhe(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var zE=(e,t,n)=>{let r=uhe(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},dhe=_c([`Tag`,`status`],e=>{let t=IE(e);return[zE(t,`success`,`Success`),zE(t,`processing`,`Info`),zE(t,`error`,`Error`),zE(t,`warning`,`Warning`)]},LE),BE=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:c,variant:l,onClose:u,bordered:d,disabled:f,href:p,target:g,styles:_,classNames:v,...y}=e,{getPrefixCls:b,direction:x,className:S,variant:C,style:w,classNames:T,styles:E}=zr(`tag`),[D,O,k,A,j]=she(e,C),M=k||A,N=h.useContext(gu),P=f??N,{tag:F}=h.useContext(Ir),[I,L]=h.useState(!0),R=Ht(y,[`closeIcon`,`closable`]),z={...e,color:O,variant:D,disabled:P},[B,V]=kr([T,v],[E,_],{props:z}),H=h.useMemo(()=>{let e={...V.root,...w,...a};return P||(e={...j,...e}),e},[V.root,w,a,j,P]),U=b(`tag`,n),[W,G]=RE(U),ee=m(U,S,B.root,`${U}-${D}`,{[`${U}-${O}`]:M,[`${U}-hidden`]:!I,[`${U}-rtl`]:x===`rtl`,[`${U}-disabled`]:P},r,i,W,G),K=e=>{P||(e.stopPropagation(),u?.(e),!e.defaultPrevented&&L(!1))},te=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.currentTarget.click())},[,ne]=nd(Xu(e),Xu(F),{closable:!1,closeIconRender:e=>uu(e,h.createElement(`span`,{role:`button`,tabIndex:P?-1:0,"aria-disabled":P||void 0,className:m(`${U}-close-icon`,B.close),onClick:K,onKeyDown:te,style:V.close},e),e=>({onClick:t=>{e?.onClick?.(t),K(t)},onKeyDown:t=>{e?.onKeyDown?.(t),t.defaultPrevented||te(t)},role:`button`,tabIndex:P?-1:0,"aria-disabled":P||void 0,className:m(e?.className,`${U}-close-icon`,B.close),style:{...V.close,...e?.style}}))}),re=vr(y.onClick)||o&&o.type===`a`,ie=du(s,{className:m(h.isValidElement(s)?s.props?.className:void 0,B.icon),style:V.icon}),ae=ie?h.createElement(h.Fragment,null,ie,o&&h.createElement(`span`,{className:B.content,style:V.content},o)):o,oe=p?`a`:`span`,se=h.createElement(oe,{...R,ref:t,className:ee,style:H,href:P?void 0:p,target:g,onClick:P?void 0:R.onClick,...p&&P?{"aria-disabled":!0}:{}},ae,ne,k&&h.createElement(lhe,{key:`preset`,prefixCls:U}),A&&h.createElement(dhe,{key:`status`,prefixCls:U}));return re?h.createElement(Ku,{component:`Tag`},se):se});BE.CheckableTag=ahe,BE.CheckableTagGroup=ohe;var fhe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z`}}]},name:`edit`,theme:`outlined`}}))());function VE(){return VE=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,VE({},e,{ref:t,icon:fhe.default}))),mhe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z`}}]},name:`enter`,theme:`outlined`}}))());function HE(){return HE=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,HE({},e,{ref:t,icon:mhe.default}))),ghe=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},_he=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[` + ${q(v(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:`0 !important`,borderBlock:`0 !important`,[`${t}-measure-cell-content`]:{height:0,overflow:`hidden`,pointerEvents:`none`}}}},[`${t}-footer`]:{padding:`${q(r)} ${q(i)}`,color:g,background:_}}}},Zme=e=>{let{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:c,paddingSM:l,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:h,fontSizeSM:g,lineHeight:_,lineWidth:v,colorIcon:y,colorIconHover:b,opacityLoading:x,controlInteractiveSize:S}=e,C=new cs(i).onBackground(n).toHexString(),w=new cs(a).onBackground(n).toHexString(),T=new cs(t).onBackground(n).toHexString(),E=new cs(y),D=new cs(b),O=S/2-v,k=O*2+v*3;return{headerBg:T,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:w,bodySortBg:T,rowHoverBg:T,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:l,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:T,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*_-v*3)/2-Math.ceil((g*1.4-v*3)/2),headerIconColor:E.clone().setA(E.a*x).toRgbString(),headerIconHoverColor:D.clone().setA(D.a*x).toRgbString(),expandIconHalfInner:O,expandIconSize:k,expandIconScale:S/k}},Qme=2,$me=hc(`Table`,e=>{let{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:l,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:_,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:b,footerBg:x,footerColor:S,headerBorderRadius:C,cellFontSize:w,cellFontSizeMD:T,cellFontSizeSM:E,headerSplitColor:D,fixedHeaderSortActiveBg:O,headerFilterHoverBg:k,filterDropdownBg:A,expandIconBg:j,selectionColumnWidth:M,stickyScrollBarBg:N,calc:P}=e,F=Bo(e,{tableFontSize:w,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:_,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:b,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:D,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:l,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:A,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:Qme,tableFontSizeMiddle:T,tableFontSizeSmall:E,tableSelectionColumnWidth:M,tableExpandIconBg:j,tableExpandColumnWidth:P(i).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[Xme(F),Vme(F),Jme(F),Kme(F),Rme(F),Pme(F),Hme(F),Lme(F),Jme(F),Ime(F),Wme(F),Bme(F),qme(F),Fme(F),Gme(F),Ume(F),Yme(F)]},Zme,{resetFont:!1,unitless:{expandIconScale:!0}}),ehe=[],the=h.createContext({}),nhe=e=>{let{ariaProps:t,component:n=`table`}=h.useContext(the);return h.createElement(n,{...t,...e})},rhe=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,classNames:o,styles:s,size:c,bordered:l,dropdownPrefixCls:u,dataSource:d,pagination:f,rowSelection:p,rowKey:g,rowClassName:_,column:v,columns:y,children:b,childrenColumnName:x,onChange:S,getPopupContainer:C,loading:w,expandIcon:T,expandable:E,expandedRowRender:D,expandIconColumnIndex:O,indentSize:k,scroll:A,sortDirections:j,locale:M,showSorterTooltip:N={target:`full-header`},virtual:P}=e;Nr(`Table`);let F=Epe(h.useMemo(()=>y||Cw(b),[y,b]),v),I=kg(h.useMemo(()=>F.some(e=>e.responsive),[F])),L=h.useMemo(()=>{let e=new Set(Object.keys(I).filter(e=>I[e]));return F.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[F,I]),R=Ht(e,[`className`,`style`,`column`,`columns`]),z=R.components,B=qt(R,{aria:!0}),V=Object.keys(B).length>0,H=h.useMemo(()=>({ariaProps:B,component:z?.header?.table}),[B,z?.header?.table]),U=h.useMemo(()=>V?{...z,header:{...z?.header,table:nhe}}:z,[z,V]),{locale:W=zc,table:G}=h.useContext(Ir),{getPrefixCls:ee,direction:K,renderEmpty:te,getPopupContainer:ne,className:re,style:ie,classNames:ae,styles:oe}=zr(`table`),se=qu(e=>c===`middle`?`medium`:c??e),ce={...e,size:se,bordered:l},le=Dr(ie),ue=Dr(a),[de,fe]=kr([ae,o],[oe,le,s,ue],{props:ce},{pagination:{_default:`root`},header:{_default:`wrapper`},body:{_default:`wrapper`}}),pe={...W.Table,...M},[me]=Kc(`global`,zc.global),he=d||ehe,ge=ee(`table`,n),_e=ee(`dropdown`,u),[,ve]=mc(),ye=h.useMemo(()=>_r(p)?{columnWidth:ve.Table?.selectionColumnWidth,...p}:p,[p,ve.Table?.selectionColumnWidth]),be=ug(ge),[xe,Se]=$me(ge,be),Ce={childrenColumnName:x,expandIconColumnIndex:O,...E,expandIcon:E?.expandIcon??G?.expandable?.expandIcon},{childrenColumnName:we=`children`}=Ce,Te=h.useMemo(()=>he.some(e=>e?.[we])?`nest`:D||E?.expandedRowRender?`row`:null,[we,he]),Ee={body:h.useRef(null)},De=Tpe(ge),Oe=h.useRef(null),ke=h.useRef(null);ld(t,()=>({...ke.current,nativeElement:Oe.current}));let Ae=g||G?.rowKey||`key`,je=A??G?.scroll,Me=h.useMemo(()=>vr(Ae)?Ae:e=>e?.[Ae],[Ae]),[Ne]=_me(he,we,Me),Pe={},Fe=(e,t,n=!1)=>{let r={...Pe,...e};n&&(Pe.resetPagination?.(),r.pagination?.current&&(r.pagination.current=1),f&&f.onChange?.(1,r.pagination?.pageSize)),A&&A.scrollToFirstRowOnChange!==!1&&Ee.body.current&&rpe(0,{getContainer:()=>Ee.body.current}),S?.(r.pagination,r.filters,r.sorter,{currentDataSource:EE(NE(he,r.sorterStates,we),r.filterStates,we),action:t})},[Ie,Le,Re,ze]=kme({prefixCls:ge,mergedColumns:L,baseColumns:F,onSorterChange:(e,t)=>{Fe({sorter:e,sorterStates:t},`sort`,!1)},sortDirections:j||[`ascend`,`descend`],tableLocale:pe,showSorterTooltip:N,globalLocale:me}),Be=h.useMemo(()=>NE(he,Le,we),[we,he,Le]);Pe.sorter=ze(),Pe.sorterStates=Le;let[Ve,He,Ue]=gme({prefixCls:ge,locale:pe,dropdownPrefixCls:_e,mergedColumns:L,onFilterChange:(e,t)=>{Fe({filters:e,filterStates:t},`filter`,!0)},getPopupContainer:C||ne,rootClassName:m(i,be)}),We=EE(Be,He,we);Pe.filters=Ue,Pe.filterStates=He;let[Ge]=jme(h.useMemo(()=>{let e={};return Object.keys(Ue).forEach(t=>{Ue[t]!==null&&(e[t]=Ue[t])}),{...Re,filters:e}},[Re,Ue])),[Ke,qe]=yme(We.length,(e,t)=>{Fe({pagination:{...Pe.pagination,current:e,pageSize:t}},`paginate`)},f);Pe.pagination=f===!1?{}:vme(Ke,f),Pe.resetPagination=qe;let Je=h.useMemo(()=>{if(f===!1||!Ke.pageSize)return We;let{current:e=1,total:t,pageSize:n=10}=Ke;return We.lengthn?We.slice((e-1)*n,e*n):We:We.slice((e-1)*n,e*n)},[!!f,We,Ke?.current,Ke?.pageSize,Ke?.total]),[Ye,Xe]=epe({prefixCls:ge,data:We,pageData:Je,getRowKey:Me,getRecordByKey:Ne,expandType:Te,childrenColumnName:we,locale:pe,getPopupContainer:C||ne},ye),Ze=(e,t,n)=>m({[`${ge}-row-selected`]:Xe.has(Me(e,t))},vr(_)?_(e,t,n):_);Ce.__PARENT_RENDER_ICON__=Ce.expandIcon,Ce.expandIcon=Ce.expandIcon||T||wpe(pe),Te===`nest`&&Ce.expandIconColumnIndex===void 0?Ce.expandIconColumnIndex=+!!ye:Ce.expandIconColumnIndex>0&&ye&&--Ce.expandIconColumnIndex,hr(Ce.indentSize)||(Ce.indentSize=hr(k)?k:15);let Qe=h.useCallback(e=>Ge(Ye(Ve(Ie(e)))),[Ie,Ve,Ye]),$e,et;if(f!==!1&&Ke?.total){let e;e=Ke.size?Ke.size:se===`small`||se===`medium`?`small`:void 0;let t=(t=`end`)=>h.createElement(Cpe,{...Ke,classNames:de.pagination,styles:fe.pagination,className:m(`${ge}-pagination ${ge}-pagination-${t}`,Ke.className),size:e}),{placement:n,position:r}=Ke,i=n??r,a=e=>{let t=e.toLowerCase();return t.includes(`center`)?`center`:t.includes(`left`)||t.includes(`start`)?`start`:`end`};if(Array.isArray(i)){let[e,n]=[`top`,`bottom`].map(e=>i.find(t=>t.includes(e))),r=i.every(e=>`${e}`==`none`);!e&&!n&&!r&&(et=t()),e&&($e=t(a(e))),n&&(et=t(a(n)))}else et=t()}let tt=h.useMemo(()=>{if(typeof w==`boolean`)return{spinning:w};if(_r(w))return{spinning:!0,...w}},[w]),nt=m(Se,be,`${ge}-wrapper`,re,{[`${ge}-wrapper-rtl`]:K===`rtl`},r,i,de.root,xe),rt=h.useMemo(()=>tt?.spinning&&he===ehe?null:M?.emptyText===void 0?te?.(`Table`)||h.createElement(cC,{componentName:`Table`}):M.emptyText,[tt?.spinning,he,M?.emptyText,te]),it=P?Nme:Mme,at={},ot=h.useMemo(()=>{let{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:i,paddingSM:a}=ve,o=Math.floor(e*t);switch(se){case`medium`:return a*2+o+n;case`small`:return i*2+o+n;default:return r*2+o+n}},[ve,se]);return P&&(at.listItemHeight=ot),h.createElement(`div`,{ref:Oe,className:nt,style:fe.root},h.createElement(LC,{spinning:!1,...tt},$e,h.createElement(the.Provider,{value:H},h.createElement(it,{...at,...R,components:U,scroll:je,classNames:de,styles:fe,ref:ke,columns:L,direction:K,expandable:Ce,prefixCls:ge,className:m({[`${ge}-medium`]:se===`medium`,[`${ge}-small`]:se===`small`,[`${ge}-bordered`]:l,[`${ge}-empty`]:he.length===0},Se,be,xe),data:Je,rowKey:Me,rowClassName:Ze,emptyText:rt,internalHooks:HC,internalRefs:Ee,transformColumns:Qe,getContainerWidth:De,measureRowRender:e=>h.createElement(xy.Provider,{value:!0},h.createElement(Iu,{getPopupContainer:e=>e},e))})),et))}),PE=h.forwardRef((e,t)=>{let n=h.useRef(0);return n.current+=1,h.createElement(rhe,{...e,ref:t,_renderTimes:n.current})});PE.SELECTION_COLUMN=UT,PE.EXPAND_COLUMN=VC,PE.SELECTION_ALL=WT,PE.SELECTION_INVERT=GT,PE.SELECTION_NONE=KT,PE.Column=bfe,PE.ColumnGroup=xfe,PE.Summary=cw;var FE=PE,ihe=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:{...eo(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}},[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,backgroundColor:e.colorBgContainerDisabled,a:{cursor:`not-allowed`,pointerEvents:`none`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},IE=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Bo(e,{tagFontSize:i,tagLineHeight:q(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},LE=e=>{let t=ip(new Df(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new cs(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},RE=hc(`Tag`,e=>ihe(IE(e)),LE),ahe=h.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,onKeyDown:u,disabled:d,...f}=e,{getPrefixCls:p,tag:g}=h.useContext(Ir),_=h.useContext(gu),v=d??_,y=e=>{v||(c?.(!a),l?.(e))},b=e=>{u?.(e),!(e.defaultPrevented||v)&&e.key===` `&&(e.preventDefault(),c?.(!a))},x=p(`tag`,n),[S,C]=RE(x),w=m(x,`${x}-checkable`,{[`${x}-checkable-checked`]:a,[`${x}-checkable-disabled`]:v},g?.className,i,S,C);return h.createElement(`span`,{...f,ref:t,role:`checkbox`,"aria-checked":a,"aria-disabled":v||void 0,tabIndex:v?-1:0,style:{...r,...g?.style},className:w,onClick:y,onKeyDown:b},s,h.createElement(`span`,null,o))}),ohe=h.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:g,..._}=e,{getPrefixCls:v,direction:y,className:b,style:x,classNames:S,styles:C}=zr(`tag`),w=v(`tag`,r),T=`${w}-checkable-group`,[E,D]=RE(w,ug(w)),O=Dr(x),k=Dr(o),[A,j]=kr([S,s],[C,O,c,k],{props:e}),M=(0,h.useMemo)(()=>Array.isArray(u)?u.map(e=>_r(e)?e:{value:e,label:e}):[],[u]),[N,P]=ye(f,d),F=(e,t)=>{let n=null;if(g){let r=N||[];n=e?[].concat(fr(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;P(n),p?.(n)},I=h.useRef(null);(0,h.useImperativeHandle)(t,()=>({nativeElement:I.current}));let L=qt(_,{aria:!0,data:!0});return h.createElement(`div`,{...L,className:m(T,b,i,{[`${T}-disabled`]:l,[`${T}-rtl`]:y===`rtl`},E,D,a,A.root),style:j.root,id:n,ref:I},M.map(e=>h.createElement(ahe,{key:e.value,className:m(`${T}-item`,A.item,e.className),style:{...j.item,...e.style},checked:g?(N||[]).includes(e.value):N===e.value,onChange:t=>F(t,e),disabled:l},e.label)))});function she(e,t){let{color:n,variant:r,bordered:i}=e;return h.useMemo(()=>{let e=n?.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n?.replace(`-inverse`,``):n;o===void 0&&a===`solid`&&(o=`default`);let s=Ty(o),c=Coe(o),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new cs(o).toHsl();e.l=.95,l.backgroundColor=new cs(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var che=e=>yc(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),lhe=_c([`Tag`,`preset`],e=>che(IE(e)),LE);function uhe(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var zE=(e,t,n)=>{let r=uhe(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},dhe=_c([`Tag`,`status`],e=>{let t=IE(e);return[zE(t,`success`,`Success`),zE(t,`processing`,`Info`),zE(t,`error`,`Error`),zE(t,`warning`,`Warning`)]},LE),BE=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:c,variant:l,onClose:u,bordered:d,disabled:f,href:p,target:g,styles:_,classNames:v,...y}=e,{getPrefixCls:b,direction:x,className:S,variant:C,style:w,classNames:T,styles:E}=zr(`tag`),[D,O,k,A,j]=she(e,C),M=k||A,N=h.useContext(gu),P=f??N,{tag:F}=h.useContext(Ir),[I,L]=h.useState(!0),R=Ht(y,[`closeIcon`,`closable`]),z={...e,color:O,variant:D,disabled:P},[B,V]=kr([T,v],[E,_],{props:z}),H=h.useMemo(()=>{let e={...V.root,...w,...a};return P||(e={...j,...e}),e},[V.root,w,a,j,P]),U=b(`tag`,n),[W,G]=RE(U),ee=m(U,S,B.root,`${U}-${D}`,{[`${U}-${O}`]:M,[`${U}-hidden`]:!I,[`${U}-rtl`]:x===`rtl`,[`${U}-disabled`]:P},r,i,W,G),K=e=>{P||(e.stopPropagation(),u?.(e),!e.defaultPrevented&&L(!1))},te=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.currentTarget.click())},[,ne]=nd(Xu(e),Xu(F),{closable:!1,closeIconRender:e=>uu(e,h.createElement(`span`,{role:`button`,tabIndex:P?-1:0,"aria-disabled":P||void 0,className:m(`${U}-close-icon`,B.close),onClick:K,onKeyDown:te,style:V.close},e),e=>({onClick:t=>{e?.onClick?.(t),K(t)},onKeyDown:t=>{e?.onKeyDown?.(t),t.defaultPrevented||te(t)},role:`button`,tabIndex:P?-1:0,"aria-disabled":P||void 0,className:m(e?.className,`${U}-close-icon`,B.close),style:{...V.close,...e?.style}}))}),re=vr(y.onClick)||o&&o.type===`a`,ie=du(s,{className:m(h.isValidElement(s)?s.props?.className:void 0,B.icon),style:V.icon}),ae=ie?h.createElement(h.Fragment,null,ie,o&&h.createElement(`span`,{className:B.content,style:V.content},o)):o,oe=p?`a`:`span`,se=h.createElement(oe,{...R,ref:t,className:ee,style:H,href:P?void 0:p,target:g,onClick:P?void 0:R.onClick,...p&&P?{"aria-disabled":!0}:{}},ae,ne,k&&h.createElement(lhe,{key:`preset`,prefixCls:U}),A&&h.createElement(dhe,{key:`status`,prefixCls:U}));return re?h.createElement(Ku,{component:`Tag`},se):se});BE.CheckableTag=ahe,BE.CheckableTagGroup=ohe;var fhe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z`}}]},name:`edit`,theme:`outlined`}}))());function VE(){return VE=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,VE({},e,{ref:t,icon:fhe.default}))),mhe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z`}}]},name:`enter`,theme:`outlined`}}))());function HE(){return HE=Object.assign?Object.assign.bind():function(e){for(var t=1;th.createElement(W,HE({},e,{ref:t,icon:mhe.default}))),ghe=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},_he=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[` h${t}&, div&-h${t}, div&-h${t} > textarea, @@ -405,30 +405,30 @@ yyyy`);var r=bI(t),i=n?`getUTC`:`get`,a=r[i+`FullYear`](),o=r[i+`Month`]()+1,s=r `];function VG(e,t){return t.type=e,t}function HG(e){return e.type===`section`}function UG(e){return HG(e)?zDe:BDe}function WG(e){if(HG(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return Q(e.blocks,function(e){var n=WG(e);n>=t&&(t=n+ +(r&&(!n||HG(e)&&!e.noHeader)))}),t}return 0}function zDe(e,t,n,r){var i=t.noHeader,a=VDe(WG(t)),o=[],s=t.blocks||[];yj(!s||tj(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(Aj(l,c)){var u=new CG(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}Q(s,function(n,i){var s=t.valueFormatter,c=UG(n)(s?Z(Z({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):KG(r,o.join(``),i?n:a.html);if(i)return d;var f=CU(t.header,`ordinal`,e.useUTC),p=BG(r,e.renderMode).nameStyle,m=zG(r);return e.renderMode===`richText`?qG(e,f,p)+a.richText+d:KG(r,`
`+cM(f)+`
`+d,n)}function BDe(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=tj(e)?e:[e],JA(e,function(e,t){return CU(e,tj(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||$.color.secondary,i),f=a?``:CU(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=BG(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:qG(e,f,v))+(o?``:WDe(e,m,h,g,y)):KG(r,(s?``:d)+(a?``:HDe(f,!s,v))+(o?``:UDe(m,h,g,y)),n)}}function GG(e,t,n,r,i,a){if(e)return UG(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function VDe(e){return{html:LDe[e],richText:RDe[e]}}function KG(e,t,n){var r=`
`,i=`margin: `+n+`px 0 0`,a=zG(e);return`
`+t+r+`
`}function HDe(e,t,n){var r=t?`margin-left:2px`:``;return``+cM(e)+``}function UDe(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=tj(e)?e:[e],``+JA(e,function(e){return cM(e)}).join(`  `)+``}function qG(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function WDe(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(tj(t)?t.join(` `):t,a)}function JG(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return kU(n)}function YG(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var XG=function(){function e(){this.richTextStyles={},this._nextStyleNameId=OI()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=OU({color:t,type:e,renderMode:n,markerId:r});return rj(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};tj(t)?Q(t,function(e){return Z(n,e)}):Z(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function ZG(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=tj(s),l=JG(t,n),u,d,f,p;if(o>1||c&&!o){var m=GDe(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=hG(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=KI(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return VG(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[VG(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!bj(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function GDe(e,t,n,r,i){var a=t.getData(),o=YA(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?Q(r,function(e){u(hG(a,n,e),e)}):Q(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(VG(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var QG=YI();function $G(e,t){return e.getName(t)||e.getId(t)}var eK=`__universalTransitionEnabled`,tK=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=vG({count:qDe,reset:JDe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(QG(this).sourceManager=new FG(this)).prepareSource();var r=this.getInitialData(e,n);rK(r,this),this.dataTask.context.data=r,QG(this).dataBeforeProcessed=r,nK(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=ZU(this),r=n?$U(e):{},i=this.subType;tW.hasClass(i)&&(i+=`Series`),BA(e,t.getTheme().get(this.subType)),BA(e,this.getDefaultOption()),zI(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&QU(e,r,n)},t.prototype.mergeOption=function(e,t){e=BA(this.option,e,!0),this.fillDataTextStyle(e.data);var n=ZU(this);n&&QU(this.option,e,n);var r=QG(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);rK(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,QG(this).dataBeforeProcessed=i,nK(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!cj(e))for(var t=[`show`],n=0;n=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return ZG({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(TA.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=vW.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[$G(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){oj(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c0&&this._innerSelect(e,t)}},t.registerClass=function(e){return tW.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(tW);KA(tK,gG),KA(tK,vW),CL(tK,tW);function nK(e){var t=e.name;KI(e)||(e.name=KDe(e)||t)}function KDe(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return Q(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function qDe(e){return e.model.getRawData().count()}function JDe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),YDe}function YDe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function rK(e,t){Q(Dj(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,ej(XDe,t))})}function XDe(e,t){var n=iK(e);return n&&n.setOutputEnd((t||this).count()),t}function iK(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var aK=function(){function e(){this.group=new BF,this.uid=MH(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();SL(aK),wL(aK);function oK(){var e=YI();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var sK=YI(),ZDe=oK(),cK=function(){function e(){this.group=new BF,this.uid=MH(`viewChart`),this.renderTask=vG({plan:QDe,reset:$De}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&uK(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&uK(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){QV(this.group,e)},e.markUpdateMethod=function(e,t){sK(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function lK(e,t,n){e&&uB(e)&&(t===`emphasis`?Kz:qz)(e,n)}function uK(e,t,n){var r=JI(e,t),i=t&&t.highlightKey!=null?OTe(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){lK(e,n,i)}):Q(RI(r),function(t){lK(e.getItemGraphicEl(t),n,i)})}SL(cK,[`dispose`]),wL(cK);function QDe(e){return ZDe(e.model)}function $De(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&sK(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),eOe[c]}var eOe={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)}}},dK=`\0__throttleOriginMethod`,fK=`\0__throttleRate`,pK=`\0__throttleType`;function mK(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function hK(e,t,n,r){var i=e[t];if(i){var a=i[dK]||i,o=i[pK];if(i[fK]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=mK(a,n,r===`debounce`),i[dK]=a,i[pK]=r,i[fK]=n}return i}}function gK(e,t){var n=e[t];n&&n[dK]&&(n.clear&&n.clear(),e[t]=n[dK])}var _K=YI(),vK={itemStyle:TL(AH,!0),lineStyle:TL(kH,!0)},tOe={lineStyle:`stroke`,itemStyle:`fill`};function yK(e,t){return e.visualStyleMapper||vK[t]||(console.warn(`Unknown style type '`+t+`'.`),vK.itemStyle)}function bK(e,t){return e.visualDrawType||tOe[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var nOe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=yK(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=bK(e,r),c=a[s],l=nj(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||nj(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||nj(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=Z({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},xK=new jH,rOe={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=yK(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){xK.option=n[r];var o=i(xK);Z(e.ensureUniqueItemVisual(t,`style`),o),xK.option.decal&&(e.setItemVisual(t,`decal`,xK.option.decal),xK.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},iOe={performRawSeries:!0,overallReset:function(e){var t=Ej();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();_K(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=_K(e).scope,a=bK(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},SK=Math.PI;function aOe(e,t){t||={},UA(t,{text:`loading`,textColor:$.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:$.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new BF,r=new qR({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new ZR({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new qR({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new ZB({shape:{startAngle:-SK/2,endAngle:-SK/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:SK*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:SK*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var CK=function(){function e(e,t,n,r){this._stageTaskMap=Ej(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):gL(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=Ej();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Q(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});yj(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;Q(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=Ej(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||vG({plan:uOe,reset:dOe,count:pOe}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||vG({reset:oOe});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=Ej(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;yj(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):Q(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,vG({reset:sOe,onDirty:lOe})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return nj(e)&&(e={overallReset:e,seriesType:mOe(e)}),e.uid=MH(`stageHandler`),t&&(e.visualType=t),e},e}();function oOe(e){e.overallReset(e.ecModel,e.api,e.payload)}function sOe(e){return e.dirtyOnOverallProgress&&cOe}function cOe(){this.agent.dirty(),this.getDownstream().dirty()}function lOe(){this.agent&&this.agent.dirty()}function uOe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function dOe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=RI(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?JA(t,function(e,t){return wK(t)}):fOe}var fOe=wK(0);function wK(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),PK=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],FK=PK.concat([`symbolKeepAspect`]),gOe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o=0&&eq(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function tq(e,t,n){for(var r=t.type===`radial`?MOe(e,t,n):jOe(e,t,n),i=t.colorStops,a=0;a0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:aj(e)?[e]:tj(e)?e:null}function iq(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&POe(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=JA(n,function(e){return e/i}),r/=i)}return[n,r]}var FOe=new ER(!0);function aq(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function oq(e){return typeof e==`string`&&e!==`none`}function sq(e){var t=e.fill;return t!=null&&t!==`none`}function cq(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function lq(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function uq(e,t,n){var r=DL(t.image,t.__image,n);if(kL(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Mj),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function IOe(e,t,n,r,i){var a,o=aq(n),s=sq(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||FOe,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?tq(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?tq(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?uq(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?uq(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=iq(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&lq(e,n),s&&cq(e,n)):(s&&cq(e,n),o&&lq(e,n)),T&&e.setLineDash([])}function LOe(e,t,n){var r=t.__image=DL(n.image,t.__image,t,t.onload);if(!(!r||!kL(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function ROe(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=iq(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(aq(n)&&e.strokeText(i,n.x,n.y),sq(n)&&e.fillText(i,n.x,n.y)):(sq(n)&&e.fillText(i,n.x,n.y),aq(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var dq=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],fq=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function pq(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){bq(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?WL.opacity:o}(r||t.blend!==n.blend)&&(a||=(bq(e,i),!0),e.globalCompositeOperation=t.blend||WL.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[Rq]){if(this._disposed){this.id;return}var r,i,a;if(oj(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[Rq]=!0,mJ(this),!this._model||t){var o=new ZEe(this._api),s=this._theme,c=this._model=new TW;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},xJ);var l={seriesTransition:a,optionChanged:!0};if(n)this[Bq]={silent:r,updateParams:l},this[Rq]=!1,this.getZr().wakeUp();else{try{Xq(this),$q.update.call(this,null,l)}catch(e){throw this[Bq]=null,this[Rq]=!1,e}this._ssr||this._zr.flush(),this[Bq]=null,this[Rq]=!1,rJ.call(this,r),iJ.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[Rq]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[Bq]&&(r??=this[Bq].silent,i=this[Bq].updateParams,this[Bq]=null),this[Rq]=!0,mJ(this);try{this._updateTheme(e),n.setTheme(this._theme),Xq(this),$q.update.call(this,{type:`setTheme`},i)}catch(e){throw this[Rq]=!1,e}this[Rq]=!1,rJ.call(this,r),iJ.call(this,r)}}},t.prototype._updateTheme=function(e){rj(e)&&(e=CJ[e]),e&&(e=zA(e),e&&GW(e,!0),this._theme=e)},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||TA.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return Q(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;Q(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return Q(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(EJ[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();Q(TJ,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(zA(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=EA.createCanvas(),h=UF(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return Q(u,function(e){var t=e.left-o,n=e.top-s;g+=``+e.dom+``}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}else return e.connectedBackgroundColor&&h.add(new qR({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),Q(u,function(e){var t=new HR({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return eJ(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return eJ(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return eJ(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return Q(XI(n,e),function(e,n){n.indexOf(`Models`)>=0&&Q(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=XI(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?LK(i,t):IK(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;Q(lke,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&VK(i,function(e){var t=cz(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}else if(t.eventData)return a=Z({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;Q(yJ,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),vOe(t,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,this.getDom()&&tL(this.getDom(),DJ,``);var e=this,t=e._api,n=e._model;Q(e._componentsViews,function(e){e.dispose(n,t)}),Q(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete TJ[e.id]},t.prototype.resize=function(e){if(!this[Rq]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[Bq]&&(r??=this[Bq].silent,n=!0,this[Bq]=null),this[Rq]=!0,mJ(this);try{n&&Xq(this),$q.update.call(this,{type:`resize`,animation:Z({duration:0},e&&e.animation)})}catch(e){throw this[Rq]=!1,e}this[Rq]=!1,rJ.call(this,r),iJ.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(oj(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),wJ[e]){var n=wJ[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=Z({},e);return t.type=vJ[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(oj(t)||(t={silent:!!t}),_J[e.type]&&this._model){if(this[Rq]){this._pendingActions.push(e);return}var n=t.silent;nJ.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&TA.browser.weChat&&this._throttledZrFlush(),rJ.call(this,n),iJ.call(this,n)}},t.prototype.updateLabelLayout=function(){HK.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Xq=function(e){xOe(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),Zq(e,!0),Zq(e,!1),t.plan()},Zq=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;chj(t.get(`hoverLayerThreshold`),cW.hoverLayerThreshold)&&!TA.node&&!TA.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=rH(e);t.eachRendered(function(e){return aH(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!gV(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(gV(e))return;if(e instanceof BR&&kTe(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}uJ=function(e){return new(function(t){X(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Kz(t,n),fJ(e)},n.prototype.leaveEmphasis=function(t,n){qz(t,n),fJ(e)},n.prototype.enterBlur=function(t){Jz(t),fJ(e)},n.prototype.leaveBlur=function(t){Yz(t),fJ(e)},n.prototype.enterSelect=function(t){Xz(t),fJ(e)},n.prototype.leaveSelect=function(t){Zz(t),fJ(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[zq]},n.prototype.usingTHL=function(){return e._usingTHL},n}(yz))(e)},dJ=function(e){function t(e,t){for(var n=0;n=0)){BJ.push(n);var o=CK.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function HJ(e,t){wJ[e]=t}function yke(e){DA({createCanvas:e})}function UJ(e,t,n){var r=WK(`registerMap`);r&&r(e,t,n)}function bke(e){var t=WK(`getMap`);return t&&t(e)}var WJ=ADe;zJ(Nq,nOe),zJ(Fq,rOe),zJ(Fq,iOe),zJ(Nq,gOe),zJ(Fq,_Oe),zJ(Iq,KOe),jJ(GW),MJ(QOe,lDe),HJ(`default`,aOe),IJ({type:Dz,event:Dz,update:Dz},jj),IJ({type:Oz,event:Oz,update:Oz},jj),IJ({type:kz,event:Mz,update:kz,action:jj,refineEvent:GJ,publishNonRefinedEvent:!0}),IJ({type:Az,event:Mz,update:Az,action:jj,refineEvent:GJ,publishNonRefinedEvent:!0}),IJ({type:jz,event:Mz,update:jz,action:jj,refineEvent:GJ,publishNonRefinedEvent:!0});function GJ(e,t,n,r){return{eventContent:{selected:wTe(n),isFromClick:t.isFromClick||!1}}}AJ(`default`,{}),AJ(`dark`,NK);var xke={},KJ=[],Ske={registerPreprocessor:jJ,registerProcessor:MJ,registerPostInit:NJ,registerPostUpdate:PJ,registerUpdateLifecycle:FJ,registerAction:IJ,registerCoordinateSystem:LJ,registerLayout:RJ,registerVisual:zJ,registerTransform:WJ,registerLoading:HJ,registerMap:UJ,registerImpl:yOe,PRIORITY:Lq,ComponentModel:tW,ComponentView:aK,SeriesModel:tK,ChartView:cK,registerComponentModel:function(e){tW.registerClass(e)},registerComponentView:function(e){aK.registerClass(e)},registerSeriesModel:function(e){tK.registerClass(e)},registerChartView:function(e){cK.registerClass(e)},registerCustomSeries:function(e,t){KK(e,t)},registerSubTypeDefaulter:function(e,t){tW.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){WF(e,t)}};function qJ(e){if(tj(e)){Q(e,function(e){qJ(e)});return}WA(KJ,e)>=0||(KJ.push(e),nj(e)&&(e={install:e}),e.install(Ske))}function JJ(e){return e==null?0:e.length||1}function YJ(e){return e}var XJ=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||YJ,this._newKeyGetter=r||YJ,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f1)for(var o=0;o30}var aY=oj,oY=JA,Oke=typeof Int32Array>`u`?Array:Int32Array,kke=`e\0\0`,sY=-1,Ake=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],jke=[`_approximateExtent`],cY,lY,uY,dY,fY,pY,mY,hY=function(){function e(e,t){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,r=!1;tY(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),tj(i)?i=i.slice():aY(i)&&(i=Z({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,aY(t)?Z(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){aY(e)?Z(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?Z(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){lz(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){Q(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:oY(this.dimensions,this._getDimInfo,this),this.hostModel),fY(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];nj(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(_j(arguments)))})},e.internalField=function(){cY=function(e){var t=e._invertedIndicesMap;Q(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new Oke(a.categories.length);for(var s=0;s1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function Mke(e,t){return gY(e,t).dimensions}function gY(e,t){qW(e)||(e=YW(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Ej(),a=[],o=Nke(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&iY(o),c=r===e.dimensionsDefine,l=c?rY(e):nY(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=Ej(u),f=new OG(o),p=0;p0&&(e.name+=t-1)}),new eY({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function Nke(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Q(t,function(e){var t;oj(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function Pke(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var Fke=function(){function e(e){this.coordSysDims=[],this.axisMap=Ej(),this.categoryAxisMap=Ej(),this.coordSysName=e}return e}();function Ike(e){var t=e.get(`coordinateSystem`),n=new Fke(t),r=Lke[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var Lke={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,QI).models[0],a=e.getReferringComponents(`yAxis`,QI).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),_Y(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),_Y(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,QI).models[0];t.coordSysDims=[`single`],n.set(`single`,i),_Y(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,QI).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),_Y(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),_Y(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();Q(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),_Y(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,QI).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function _Y(e){return e.get(`type`)===`category`}function vY(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;Rke(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(Q(a,function(e,t){rj(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),Q(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;Q(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function Rke(e){return!tY(e.schema)}function yY(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function bY(e,t){return yY(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function zke(e,t){var n=e.get(`coordinateSystem`),r=NU.get(n),i;return t&&t.coordSysDims&&(i=JA(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=QJ(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function Bke(e,t,n){var r,i;return n&&Q(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function xY(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=YW(e)):(i=r.getSource(),a=i.sourceFormat===fz);var o=Ike(t),s=zke(t,o),c=n.useEncodeDefaulter,l=nj(c)?c:c?ej(dW,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=gY(i,u),f=Bke(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=vY(t,{schema:d,store:p}),h=new hY(d,t);h.setCalculationInfo(m);var g=f!=null&&Vke(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function Vke(e){if(e.sourceFormat===`original`)return!tj(VI(Hke(e.data||[])))}function Hke(e){for(var t=0;t=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){MY(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),MY(r,e,t,n)},freeze:function(){}};function MY(e,t,n,r){dL(n,r)&&(e[t][0]=n,e[t][1]=r)}function NY(e){return PY(e)||IY(e)}function PY(e){return e.type===`interval`}function FY(e){return e.type===`time`}function IY(e){return e.type===`log`}function LY(e){return e.type===`ordinal`}function qke(e){var t=SI(e),n=nI(10,t),r=$F(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,uI(r*n,-t)}function RY(e){return fI(e)+2}function zY(e,t){return rI(e)/rI(t)}function BY(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var WY=function(e){X(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,EY(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new CY({}),tj(i)&&(i=new CY({categories:JA(i,function(e){return oj(e)?e.value:e})})),r._ordinalMeta=i;var a=TY(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,DY(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:rj(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=$F(e),e},t.prototype.getTicks=function(){var e=[];return UY(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=XF(a,t.length);i=0&&e=0&&e=0&&eo[0]&&mi[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=XF(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=uI(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=uI(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?uI(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return GY(this,e,GH(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=fI(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),bU(uI(e.value,n,!0))},t.type=`interval`,t}(SY);SY.registerClass(KY);var Yke=function(e,t,n,r){for(;n>>1;e[i][1]16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Zke(e){var t=30*XH;return e/=t,e>6?6:e>3?3:e>2?2:1}function Qke(e){return e/=YH,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function XY(e,t){return e/=t?JH:qH,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function $ke(e){return ZF(CI(e,!0),1)}function eAe(e,t,n){var r=Math.max(0,WA(tU,t)-1);return oU(new Date(e),tU[r],n).getTime()}function tAe(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function nAe(e,t,n,r,i,a){var o=CEe,s=0;function c(e,t,n,i,o,c,l){for(var u=tAe(o,e),d=t,f=new Date(d);d3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!YY(rU(e),r[0],r[1],n)){s&&(i=[{value:eAe(r[0],e,n)},{value:r[1]}]);for(var l=0;l=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=XA(JA(u,function(e){return XA(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;mr[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.values&&(a=s);var c=JY.length,l=Math.min(Yke(JY,a,0,c),c-1),u=JY[l][1],d=JY[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};SY.registerClass(qY);var ZY=0,QY=1,iAe=2,$Y=function(e){X(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=KY.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[ZY]=i[QY]=a[ZY]=a[QY]=NaN,EY(r,t.mapperMethods);var s=UH(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},iAe,l),r.powStub=new KY({breakParsed:l.original}),r.intervalStub=new KY({breakParsed:l.transformed}),DY(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=UH(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return JA(i.getTicks(e||{}),function(e){var i=e.value,o=BY(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,GH(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return GY(this,e,GH(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(zY(e,this.base))},scale:function(e){return BY(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=zY(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return eX.depth=n,tX.lookup=this._lookup,BY(n===2?e:this.intervalStub.transformOut(e,eX),this.base,tX)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!dL(t,n)||t<=0||n<=0)){var r=nX,i=nX;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[ZY]=t,r[QY]=n);var o=this.base;this.intervalStub.setExtent2(e,i[ZY]=zY(t,o),i[QY]=zY(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return dL(t[0],t[1])&&jI(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(SY);SY.registerClass($Y);var eX={},tX={},nX=[],rX={value:1,category:1,time:1,log:1},iX=YI();function aX(e){var t=e.get(`type`);return(t==null||!Aj(rX,t)&&!SY.getClass(t))&&(t=`value`),t}function oX(e,t,n){var r=UH(),i;switch(r&&(i=fX(e,t,n)),t){case`category`:return new WY({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:oL()});case`time`:return new qY({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new $Y({logBase:e.get(`logBase`),breakOption:i});case`value`:return new KY({breakOption:i});default:return new((SY.getClass(t))||KY)({})}}function aAe(e,t,n){var r=n?kY(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return dL(i,a)?i===t||a===t?2:it?1:3:3}function oAe(e){iX(e).noOnMyZero=!0}function sAe(e){return iX(e).noOnMyZero}function sX(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=wEe(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(rj(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(nj(t)){if(e.type===`category`)return function(n,r){return t(cX(e,n),n.value-e.scale.getExtent()[0],null)};var r=UH();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(cX(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function cX(e,t){var n=e.scale;return LY(n)?n.getLabel(t):t.value}function lX(e){return e.get(`interval`)??`auto`}function cAe(e){return e.type===`category`&&lX(e.getLabelModel())===0}function lAe(e,t){var n={};return Q(e.mapDimensionsAll(t),function(t){n[bY(e,t)]=!0}),QA(n)}function uX(e){return e===`middle`||e===`center`}function dX(e){return e.getShallow(`show`)}function fX(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!UH()||!n||!uAe(t)?void 0:r}function uAe(e){return e!==`category`}function pX(e,t,n,r,i,a){var o=IY(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=Jke(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function mX(e,t){return LY(e)?e.getRawOrdinalNumber(t.value):t.value}function hX(e,t){return LY(e)&&!!t.get(`boundaryGap`)}var gX=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),dAe=pL(),_X=YI(),fAe=YI();function vX(e,t){var n=e.model,r=_X(YK(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function pAe(e,t){return bX(vX(e,t))}function mAe(e,t){var n=[];return yX(e.model.ecModel,function(e){for(var r=0;r0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=MX(e,t.get(`startValue`,!0)),x=b!=null;!jI(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),jI(b)&&(x||!_||v)&&(bu[1]&&!d[1]&&(u[1]=b,d[1]=!0)),jX(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),jX(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function jX(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),fL(t))}function MX(e,t){return t==null?null:pj(t)?NaN:e.parse(t)}function xAe(e,t){var n;if(LY(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=tj(r)?r:[r,r]}return[NX(n[0]),NX(n[1])]}function NX(e){return DF(typeof e==`boolean`?0:e,1)||0}function PX(e){var t=yAe(e.scale);return t.extent||=oL(),t}function SAe(e,t){PX(e).dimIdxInCoord=t.get(e.dim)}function FX(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||CAe(n,e,i,r,t)}function CAe(e,t,n,r,i){var a=PX(t),o=a.extent,s=!1;hAe(t,function(r){if(r.boxCoordinateSystem){var i=FU(r).coord,c=a.dimIdxInCoord;if(c>=0&&tj(i)){var l=i[c];l!=null&&!tj(l)&&sL(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;Q(lAe(u,n),function(e){pwe(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=TAe(e,t,r);IX(e,new AX(e,r,o,s,c),i),a.extent=null}function wAe(e,t){var n=e.scale;IX(n,new AX(n,e.model,t,!1,!1),bAe)}function IX(e,t,n){e.rawExtentInfo=t,t.from=n}function LX(e,t){RX.set(e,t)}var RX=Ej();function zX(e,t,n,r,i){e.rawExtentInfo||wAe({scale:e,model:t},i||oL());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function TAe(e,t,n){var r=hX(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return wX(t,function(e){a=!!RX.get(e)||a}),a}function EAe(e,t,n,r){if(n.ctnShp){var i;if(wX(e,function(t){var n=RX.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],cL(i,a[0]),lL(i,a[1]),oAe(e))}}),i){var a=t.getExtent();if(LY(t))e.onBand||t.setExtent2(1,XF(a[0],a[0]+i[0]),ZF(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=XF(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=ZF(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]a[1])&&t.setExtent2(1,o[0],o[1])}}}}function BX(e,t){var n=IY(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=VY(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?OAe(r,t):DAe(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=RY(d)),i[0]||(s[0]=uI(eI(s[0]/u)*u,l)),i[1]||(s[1]=uI(tI(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),pX(e,i,o,s,a,c)}function DAe(e,t){var n=HY(t.splitNumber,5),r=AY(e),i=t.minInterval,a=t.maxInterval,o=CI(r/n,!0);i!=null&&oa&&(o=a);var s=RY(o),c=e.getExtent(),l=[uI(tI(c[0]/o)*o,s),uI(eI(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function OAe(e,t){var n=HY(t.splitNumber,10),r=e.getExtent(),i=AY(e),a=ZF(xI(i),1);n/i*a<=.5&&(a*=10);var o=RY(a),s=[uI(tI(r[0]/a)*a,o),uI(eI(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function VX(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;HX(t,n,r,i,null)}function HX(e,t,n,r,i){var a=zX(e,t,r,n,i),o=PY(e)||FY(e);UX(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&EAe(n,e,a,r)}function UX(e,t){kAe[e.type](e,t)}var kAe={interval:BX,log:BX,time:rAe,ordinal:jj},AAe=s({createDimensions:()=>Mke,createList:()=>jAe,createScale:()=>NAe,createSymbol:()=>ZK,createTextStyle:()=>FAe,dataStack:()=>MAe,enableHoverEmphasis:()=>iB,getECData:()=>cz,getLayoutRect:()=>KU,mixinAxisModelCommonMethods:()=>PAe});function jAe(e){return xY(null,e)}var MAe={isDimensionStacked:yY,enableDataStack:vY,getStackedDimension:bY};function NAe(e,t){var n=t;t instanceof jH||(n=new jH(t));var r=aX(n),i=oX(n,r,!1);return e[1]n&&(t=i,n=o)}if(t)return RAe(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Q(i,function(t){t.type===`polygon`?qX(t.exterior,n,r,e):Q(t.points,function(t){qX(t,n,r,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new VM(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;loopGeo:for(var r=0,i=n.length;r>1^-(s&1),c=c>>1^-(c&1),s+=i,c+=a,i=s,a=c,r.push([s/n,c/n])}return r}function eZ(e,t){return e=BAe(e),JA(XA(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case`Polygon`:var a=r.coordinates;i.push(new YX(a[0],a.slice(1)));break;case`MultiPolygon`:Q(r.coordinates,function(e){e[0]&&i.push(new YX(e[0],e.slice(1)))});break;case`LineString`:i.push(new XX([r.coordinates]));break;case`MultiLineString`:i.push(new XX(r.coordinates))}var o=new ZX(n[t||`name`],i,n.cp);return o.properties=n,o})}var VAe=s({MAX_SAFE_INTEGER:()=>_I,asc:()=>dI,getPercentWithPrecision:()=>qCe,getPixelPrecision:()=>KCe,getPrecision:()=>fI,getPrecisionSafe:()=>pI,isNumeric:()=>DI,isRadianAroundZero:()=>yI,linearMap:()=>oI,nice:()=>CI,numericToNumber:()=>EI,parseDate:()=>bI,parsePercent:()=>sI,quantile:()=>wI,quantity:()=>xI,quantityExponent:()=>SI,reformIntervals:()=>TI,remRadian:()=>vI,round:()=>GCe}),HAe=s({format:()=>iU,parse:()=>bI,roundTime:()=>oU}),UAe=s({Arc:()=>ZB,BezierCurve:()=>XB,BoundingRect:()=>VM,Circle:()=>kB,CompoundPath:()=>QB,Ellipse:()=>AB,Group:()=>BF,Image:()=>HR,IncrementalDisplayable:()=>uV,Line:()=>qB,LinearGradient:()=>eV,Polygon:()=>GB,Polyline:()=>KB,RadialGradient:()=>tV,Rect:()=>qR,Ring:()=>UB,Sector:()=>HB,Text:()=>ZR,clipPointsByRect:()=>VV,clipRectByRect:()=>HV,createIcon:()=>UV,extendPath:()=>EV,extendShape:()=>TV,getShapeClass:()=>OV,getTransform:()=>IV,initProps:()=>hV,makeImage:()=>AV,makePath:()=>kV,mergePath:()=>MV,registerShape:()=>DV,resizePath:()=>NV,updateProps:()=>mV}),WAe=s({addCommas:()=>bU,capitalFirst:()=>MEe,encodeHTML:()=>cM,formatTime:()=>jEe,formatTpl:()=>EU,getTextRect:()=>AEe,getTooltipMarker:()=>OU,normalizeCssArray:()=>SU,toCamelCase:()=>xU,truncateText:()=>kwe}),GAe=s({bind:()=>$A,clone:()=>zA,curry:()=>ej,defaults:()=>UA,each:()=>Q,extend:()=>Z,filter:()=>XA,indexOf:()=>WA,inherits:()=>GA,isArray:()=>tj,isFunction:()=>nj,isObject:()=>oj,isString:()=>rj,map:()=>JA,merge:()=>BA,reduce:()=>YA}),KAe=YI(),tZ=YI(),nZ={estimate:1,determine:2};function rZ(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function qAe(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:JA(iZ(n,r),function(t,n){return{formattedLabel:sX(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?YAe(e,t):ZAe(e)}function JAe(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:iZ(i,r)}:e.type===`category`?XAe(e,t):{ticks:r.getTicks(n)}}function iZ(e,t){var n=t.getExtent(),r=[];return Q(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),mL(r,_we,null),dI(r),JA(r,function(e){return{value:e}})}function YAe(e,t){var n=e.getLabelModel(),r=aZ(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function aZ(e,t,n){var r=$Ae(e),i=lX(t),a=n.kind===nZ.estimate;if(!a){var o=sZ(r,i);if(o)return o}var s,c;nj(i)?s=uZ(e,i,!1):(c=i===`auto`?eje(e,n):i,s=uZ(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return cZ(r,i,l),!0}):cZ(r,i,l),l}function XAe(e,t){var n=QAe(e),r=lX(t),i=sZ(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),nj(r))a=uZ(e,r,!0);else if(r===`auto`){var s=aZ(e,e.getLabelModel(),rZ(nZ.determine));o=s.labelCategoryInterval,a=JA(s.labels,function(e){return e.tick})}else o=r,a=uZ(e,o,!0);return cZ(n,r,{ticks:a,tickCategoryInterval:o})}function ZAe(e){var t=e.scale.getTicks(),n=sX(e);return{labels:JA(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var QAe=oZ(`axisTick`),$Ae=oZ(`axisLabel`);function oZ(e){return function(t){return tZ(t)[e]||(tZ(t)[e]={list:[]})}}function sZ(e,t){for(var n=0;nu&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=CF(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===nZ.estimate?(t.out.noPxChangeTryDetermine.push($A(nje,null,e,S,c)),S):lZ(e,S,c)??S}function nje(e,t,n){return lZ(e,t,n)==null}function lZ(e,t,n){var r=KAe(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function rje(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 uZ(e,t,n){var r=sX(e),i=e.scale,a=[],o=nj(t);return UY(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var ije=.8;function dZ(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=Gke(r);jI(o)||(o=NaN);var s=e.getExtent(),c=QF(s[1]-s[0]);return LY(r)?aje(n,e,o,c):i&&oje(n,e,o,c,i),a!=null&&(n.w=jI(n.w)?ZF(a,n.w):a),n}function aje(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function oje(e,t,n,r,i){var a=!1,o=-1/0;Q(i.key?[pAe(t,i.key)]:mAe(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),jI(n)&&n>0&&jI(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*ije,e.w2=e.w*n/r)}var fZ=[0,1],pZ=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),oI(e,fZ,mZ(this),t)},e.prototype.coordToData=function(e,t){var n=oI(e,mZ(this),fZ,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=JA(JAe(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(mX(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=sje(this,n,r);return JA(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(LY(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),JA(this.scale.getMinorTicks(e),function(e){return JA(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=rZ(nZ.determine),qAe(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return dZ(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=rZ(nZ.determine),tje(this,e)},e}();function mZ(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function sje(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=dZ(e).w;if(!i)return!1;Q(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}function cje(e){var t=tW.extend(e);return tW.registerClass(t),t}function lje(e){var t=aK.extend(e);return aK.registerClass(t),t}function uje(e){var t=tK.extend(e);return tK.registerClass(t),t}function dje(e){var t=cK.extend(e);return cK.registerClass(t),t}var hZ=Math.PI*2,gZ=ER.CMD,fje=[`top`,`right`,`bottom`,`left`];function pje(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case`top`:r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case`bottom`:r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case`left`:r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case`right`:r.set(n.x+a+t,n.y+o/2),i.set(1,0);break}}function mje(e,t,n,r,i,a,o,s,c){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var u=o*n+e,d=s*n+t;if(Math.abs(r-i)%hZ<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=AR(i),i=AR(f)}else r=AR(r),i=AR(i);r>i&&(i+=hZ);var p=Math.atan2(s,o);if(p<0&&(p+=hZ),p>=r&&p<=i||p+hZ>=r&&p+hZ<=i)return c[0]=u,c[1]=d,l-n;var m=n*Math.cos(r)+e,h=n*Math.sin(r)+t,g=n*Math.cos(i)+e,_=n*Math.sin(i)+t,v=(m-o)*(m-o)+(h-s)*(h-s),y=(g-o)*(g-o)+(_-s)*(_-s);return v0){t=t/180*Math.PI,bZ.fromArray(e[0]),xZ.fromArray(e[1]),SZ.fromArray(e[2]),OM.sub(CZ,bZ,xZ),OM.sub(wZ,SZ,xZ);var n=CZ.len(),r=wZ.len();if(!(n<.001||r<.001)){CZ.scale(1/n),wZ.scale(1/r);var i=CZ.dot(wZ);if(Math.cos(t)1&&OM.copy(DZ,SZ),DZ.toArray(e[1])}}}}function _je(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,bZ.fromArray(e[0]),xZ.fromArray(e[1]),SZ.fromArray(e[2]),OM.sub(CZ,xZ,bZ),OM.sub(wZ,SZ,xZ);var r=CZ.len(),i=wZ.len();if(!(r<.001||i<.001)&&(CZ.scale(1/r),wZ.scale(1/i),CZ.dot(t)=o)OM.copy(DZ,SZ);else{DZ.scaleAndAdd(wZ,a/Math.tan(Math.PI/2-s));var c=SZ.x===xZ.x?(DZ.y-xZ.y)/(SZ.y-xZ.y):(DZ.x-xZ.x)/(SZ.x-xZ.x);if(isNaN(c))return;c<0?OM.copy(DZ,xZ):c>1&&OM.copy(DZ,SZ)}DZ.toArray(e[1])}}}function kZ(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function vje(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=qj(r[0],r[1]),a=qj(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=Xj([],r[1],r[0],o/i),c=Xj([],r[1],r[2],o/a),l=Xj([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i0)for(var c=0;c0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function xje(e){for(var t=0;t=0&&n.attr(i.oldLayoutSelect),WA(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),mV(n,c,t,s)}else if(n.attr(c),!CH(n).valueAnimation){var d=hj(n.style.opacity,1);n.style.opacity=0,hV(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};YZ(f,c,XZ),YZ(f,n.states.select,XZ)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};YZ(p,c,XZ),YZ(p,n.states.emphasis,XZ)}TH(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=wje(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),mV(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,hV(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),ZZ=YI();function Eje(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=ZZ(t).labelManager;r||=ZZ(t).labelManager=new Tje,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=ZZ(t).labelManager;Q(n.updatedSeries,function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var QZ=Math.sin,$Z=Math.cos,eQ=Math.PI,tQ=Math.PI*2,Dje=180/eQ,nQ=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str=``,this._p=10**(e||4)},e.prototype.moveTo=function(e,t){this._add(`M`,e,t)},e.prototype.lineTo=function(e,t){this._add(`L`,e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add(`C`,e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add(`Q`,e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var c=o-a,l=!s,u=Math.abs(c),d=dP(u-tQ)||(l?c>=tQ:-c>=tQ),f=c>0?c%tQ:c%tQ+tQ,p=!1;p=d?!0:dP(u)?!1:f>=eQ==!!l;var m=e+n*$Z(a),h=t+r*QZ(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*Dje);if(d){var _=1/this._p,v=(l?1:-1)*(tQ-_);this._add(`A`,n,r,g,1,+l,e+n*$Z(a+v),t+r*QZ(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*$Z(o),b=t+r*QZ(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d`}function Lje(e){return``}function lQ(e,t){t||={};var n=t.newline?` `:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return Ije(i,a)+(i===`style`?o||``:cM(o))+(t?``+n+JA(t,function(e){return r(e)}).join(n)+n:``)+Lje(i)}return r(e)}function Rje(e,t,n){n||={};var r=n.newline?` -`:``,i=` {`+r,a=r+`}`,o=JA(QA(e),function(t){return t+i+JA(QA(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=JA(QA(t),function(e){return`@keyframes `+e+i+JA(QA(t[e]),function(n){return n+i+JA(QA(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[``].join(r)}function uQ(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function dQ(e,t,n,r){return cQ(`svg`,`root`,{width:e,height:t,xmlns:aQ,"xmlns:xlink":oQ,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var zje=0;function fQ(){return zje++}var pQ={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`},mQ=`transform-origin`;function Bje(e,t,n){var r=Z({},e.shape);Z(r,t),e.buildPath(n,r);var i=new nQ;return i.reset(bP(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function Vje(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[mQ]=n+`px `+r+`px`)}var Hje={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function hQ(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function Uje(e,t,n){var r=e.shape.paths,i={},a,o;if(Q(r,function(e){var t=uQ(n.zrId);t.animation=!0,_Q(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=QA(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=hQ(i,n);return a.replace(o,s)}}function gQ(e){return rj(e)?pQ[e]?`cubic-bezier(`+pQ[e]+`)`:IN(e)?e:``:``}function _Q(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof QB){var s=Uje(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l0}).length)return hQ(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+fQ();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function Wje(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};vQ(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=sP(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),vQ(r,t,n,!0)}}function vQ(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+fQ(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var yQ=Math.round;function bQ(e){return e&&rj(e.src)}function xQ(e){return e&&nj(e.toDataURL)}function SQ(e,t,n,r){Mje(function(i,a){var o=i===`fill`||i===`stroke`;o&&vP(a)?AQ(t,e,i,r):o&&hP(a)?jQ(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),Zje(n,e,r)}function CQ(e,t){var n=KF(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[Fje+`silent`]=`true`))}function wQ(e){return dP(e[0]-1)&&dP(e[1])&&dP(e[2])&&dP(e[3]-1)}function Gje(e){return dP(e[4])&&dP(e[5])}function TQ(e,t,n){if(t&&!(Gje(t)&&wQ(t))){var r=n?10:1e4;e.transform=wQ(t)?`translate(`+yQ(t[4]*r)/r+` `+yQ(t[5]*r)/r+`)`:aCe(t)}}function EQ(e,t,n){for(var r=e.points,i=[],a=0;a`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;yj(f,g),yj(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=DL(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=cQ(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=zA(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=xP(i);x&&(o.patternTransform=x);var S=cQ(`pattern`,``,o,[d]),C=lQ(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=cQ(`pattern`,T,o,[d])),t[n]=yP(T)}}function Qje(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=cQ(`clipPath`,a,o,[OQ(e,n)])}t[`clip-path`]=yP(a)}function MQ(e){return document.createTextNode(e)}function NQ(e,t,n){e.insertBefore(t,n)}function PQ(e,t){e.removeChild(t)}function FQ(e,t){e.appendChild(t)}function IQ(e){return e.parentNode}function LQ(e){return e.nextSibling}function RQ(e,t){e.textContent=t}var zQ=58,$je=120,eMe=cQ(``,``);function BQ(e){return e===void 0}function VQ(e){return e!==void 0}function tMe(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function HQ(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function UQ(e){var t,n=e.children,r=e.tag;if(VQ(r)){var i=e.elm=sQ(r);if(KQ(eMe,e),tj(n))for(t=0;ta?(m=n[c+1]==null?null:n[c+1].elm,WQ(e,m,n,i,c)):GQ(e,t,r,a))}function qQ(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(KQ(e,t),BQ(t.text)?VQ(r)&&VQ(i)?r!==i&&nMe(n,r,i):VQ(i)?(VQ(e.text)&&RQ(n,``),WQ(n,null,i,0,i.length-1)):VQ(r)?GQ(n,r,0,r.length-1):VQ(e.text)&&RQ(n,``):e.text!==t.text&&(VQ(r)&&GQ(n,r,0,r.length-1),RQ(n,t.text)))}function rMe(e,t){if(HQ(e,t))qQ(e,t);else{var n=e.elm,r=IQ(n);UQ(t),r!==null&&(NQ(r,t.elm,LQ(n)),GQ(r,[e],0,0))}return t}var iMe=0,aMe=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=oMe(`configLayer`),this.storage=t,this._opts=n=Z({},n),this.root=e,this._id=`zr`+iMe++,this._oldVNode=dQ(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=sQ(`svg`);KQ(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,rMe(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return kQ(e,uQ(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=uQ(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=sMe(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=cQ(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=JA(QA(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(cQ(`defs`,`defs`,{},c)),e.animation){var l=Rje(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=cQ(`style`,`stl`,{},[],l);a.push(u)}}return dQ(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},lQ(this.renderToVNode({animation:hj(e.cssAnimation,!0),emphasis:hj(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:hj(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g=a}}for(var l=XQ(this),u=l.startIdx;u=0)&&(a=!0)}),!(!a&&!i.__dirty)){var o=n._opts.useDirtyRect&&!YQ(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}i$(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},u$),TA.wxa&&o$(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r)if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=YQ(e),c=s&&EA.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d15){d++;break}}}Cq(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=$Q,t=0);var i=a$(this._i,e)[t];return i||(i=n$(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&BA(i,this._layerConfig[e],!0),(n||r&&e!==$Q)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&uMe(e)){for(var l=o.length,u=0;u0&&(c=a$(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),a$(i,t)[n]=e,!r&&!e.virtual)if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom);e.painter||=this}},e.prototype.eachLayer=function(e,t){return o$(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return o$(this._i,function(n,r){e.call(t,n,r)},s$)},e.prototype.eachOtherLayer=function(e,t){return o$(this._i,function(n,r){e.call(t,n,r)},c$)},e.prototype.getLayers=function(){var e={};return o$(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(YQ(t)?s=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=rq(i,0,r),t=rq(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,o$(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer($Q).resize(e,t)}return this},e.prototype.clearLayer=function(e){Q(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[$Q][0].dom;var t=new ZQ(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;o$(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s-1&&(s.style.stroke=s.style.fill,s.style.fill=$.color.neutral00,s.style.lineWidth=2),t},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,triggerEvent:!1},t}(tK);function d$(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=hG(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o=0&&r.push(t[a])}return r.join(` `)}var p$=function(e){X(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=ZK(e,-1,-1,2,2,null,a);o.attr({z2:hj(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=_Me,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Kz(this.childAt(0))},t.prototype.downplay=function(){qz(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):mV(f,p,o,n),bV(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,hV(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=hH(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=$K(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof HR){var S=a.style;a.useStyle(Z({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(Z({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;mH(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):d$(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),aB(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=cz(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&_V(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();_V(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return QK(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(BF);function _Me(e,t){this.parent.drift(e,t)}function m$(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function h$(e){return e!=null&&!oj(e)&&(e={isIgnore:e}),e||{}}function g$(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:hH(t),cursorStyle:t.get(`cursor`)}}function _$(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var v$=function(){function e(e){this.group=new BF,this._SymbolCtor=e||p$}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=h$(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=g$(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);m$(e,i,r,t)&&_$(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!m$(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):mV(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i0?n=r[0]:r[1]<0&&(n=r[1]),n}function b$(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function x$(e,t){return!isFinite(e)||!isFinite(t)}var yMe=typeof Float32Array<`u`?Float32Array:void 0,bMe=typeof Float64Array<`u`?Float64Array:void 0;function S$(e){return C$({ctor:yMe},e).arr}function C$(e,t){var n=e.arr,r=e.ctor;if(t>_I&&(t=_I),!n||e.typed&&n.length=i||h<0)break;if(x$(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g=r||x$(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,M=v-u,N=C-v,P=void 0,F=void 0;if(s===`x`){P=Math.abs(A),F=Math.abs(j);var I=E>0?1:-1;p=_-I*P*o,m=v,O=_+I*F*o,k=v}else if(s===`y`){P=Math.abs(M),F=Math.abs(N);var L=D>0?1:-1;p=_,m=v-L*P*o,O=_,k=v+L*F*o}else P=Math.sqrt(A*A+M*M),F=Math.sqrt(j*j+N*N),T=F/(F+P),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=w$(O,T$(S,_)),k=w$(k,T$(C,v)),O=T$(O,w$(S,_)),k=T$(k,w$(C,v)),E=O-_,D=k-v,p=_-E*P/F,m=v-D*P/F,p=w$(p,T$(l,_)),m=w$(m,T$(u,v)),p=T$(p,w$(l,_)),m=T$(m,w$(u,v)),E=_-p,D=v-m,O=_+E*F/P,k=v+D*F/P}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var D$=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),CMe=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new D$},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&x$(n[i*2-2],n[i*2-1]);i--);for(;r=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?DN(i,u,f,m,e,s):DN(a,d,p,h,e,s);if(v>0)for(var y=0;y=0){var _=o?TN(a,d,p,h,b):TN(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},t}(BR),wMe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(D$),O$=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new wMe},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&x$(n[a*2-2],n[a*2-1]);a--);for(;i=0,a=e.fill||$.color.neutral99;B$(r,t);var o=r.textFill==null;return i?o&&(r.textFill=n.insideFill||$.color.neutral00,!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),r.textStrokeWidth??=2):(o&&(r.textFill=e.fill||n.outsideFill||$.color.neutral00),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,Q(t.rich,function(e){B$(e,e)}),r}function B$(e,t){t&&(Aj(t,`fill`)&&(e.textFill=t.fill),Aj(t,`stroke`)&&(e.textStroke=t.fill),Aj(t,`lineWidth`)&&(e.textStrokeWidth=t.lineWidth),Aj(t,`font`)&&(e.font=t.font),Aj(t,`fontStyle`)&&(e.fontStyle=t.fontStyle),Aj(t,`fontWeight`)&&(e.fontWeight=t.fontWeight),Aj(t,`fontSize`)&&(e.fontSize=t.fontSize),Aj(t,`fontFamily`)&&(e.fontFamily=t.fontFamily),Aj(t,`align`)&&(e.textAlign=t.align),Aj(t,`verticalAlign`)&&(e.textVerticalAlign=t.verticalAlign),Aj(t,`lineHeight`)&&(e.textLineHeight=t.lineHeight),Aj(t,`width`)&&(e.textWidth=t.width),Aj(t,`height`)&&(e.textHeight=t.height),Aj(t,`backgroundColor`)&&(e.textBackgroundColor=t.backgroundColor),Aj(t,`padding`)&&(e.textPadding=t.padding),Aj(t,`borderColor`)&&(e.textBorderColor=t.borderColor),Aj(t,`borderWidth`)&&(e.textBorderWidth=t.borderWidth),Aj(t,`borderRadius`)&&(e.textBorderRadius=t.borderRadius),Aj(t,`shadowColor`)&&(e.textBoxShadowColor=t.shadowColor),Aj(t,`shadowBlur`)&&(e.textBoxShadowBlur=t.shadowBlur),Aj(t,`shadowOffsetX`)&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Aj(t,`shadowOffsetY`)&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Aj(t,`textShadowColor`)&&(e.textShadowColor=t.textShadowColor),Aj(t,`textShadowBlur`)&&(e.textShadowBlur=t.textShadowBlur),Aj(t,`textShadowOffsetX`)&&(e.textShadowOffsetX=t.textShadowOffsetX),Aj(t,`textShadowOffsetY`)&&(e.textShadowOffsetY=t.textShadowOffsetY))}function V$(e,t){if(e.length===t.length){for(var n=0;nt){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function DMe(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=JA(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=EMe(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;Q(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new eV(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function OMe(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&kMe(a,t))){var o=t.mapDimension(a.dim),s={};return Q(a.getViewLabels(),function(e){e.tick.offInterval||(s[mX(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function kMe(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;or)return!1;return!0}function AMe(e){for(var t=e.length/2;t>0&&x$(e[t*2-2],e[t*2-1]);t--);return t-1}function K$(e,t){return[e[t*2],e[t*2+1]]}function jMe(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function q$(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var M=f.getState(`emphasis`).style;M.lineWidth=+f.style.lineWidth+1}cz(f).seriesIndex=e.seriesIndex,aB(f,k,A,j);var N=W$(e.get(`smooth`)),P=e.get(`smoothMonotone`);if(f.setShape({smooth:N,smoothMonotone:P,connectNulls:x}),p){var F=a.getCalculationInfo(`stackedOnSeries`),I=0;p.useStyle(UA(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),F&&(I=W$(F.get(`smooth`))),p.setShape({smooth:N,stackedOnSmooth:I,smoothMonotone:P,connectNulls:x}),cB(p,e,`areaStyle`),cz(p).seriesIndex=e.seriesIndex,aB(p,k,A,j)}var L=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=L)}),this._polyline.onHoverStateChange=L,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_;var R=e.get(`triggerEvent`),z=e.get(`triggerLineEvent`),B=z===!0||R===!0||R===`line`,V=z===!0||R===!0||R===`area`;this.packEventData(e,f,B),p&&this.packEventData(e,p,V)},t.prototype.packEventData=function(e,t,n){cz(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=JI(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(x$(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new p$(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else cK.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=JI(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else cK.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Vz(this._polyline,e),t&&Vz(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new CMe({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new O$({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);nj(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=nj(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=nj(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(q$(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new ZR({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=AMe(o);c>=0&&(mH(a,hH(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?d$(i,e):f$(i,n)},enableTextSetter:!0},MMe(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=jMe(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=K$(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=rL(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=K$(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=CH(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=SMe(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=G$(u.stackedOnCurrent,u.current,n,i,o),d=G$(u.current,null,n,i,o),m=G$(u.stackedOnNext,u.next,n,i,o),p=G$(u.next,null,n,i,o)),U$(d,p)>3e3||c&&U$(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),mV(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),mV(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;tt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;rj(i)?p=PMe[i]:nj(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,FMe))}}}}}function IMe(e){e.registerChartView(NMe),e.registerSeriesModel(gMe),e.registerLayout(Y$(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,X$(`line`))}var Z$=function(e){X(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(pZ),Q$=null;function LMe(e){Q$||=e}function $$(){return Q$}var e1=`expandAxisBreak`,RMe=`collapseAxisBreak`,zMe=`toggleAxisBreak`,t1=`axisbreakchanged`,BMe={type:e1,event:t1,update:`update`,refineEvent:n1},VMe={type:RMe,event:t1,update:`update`,refineEvent:n1},HMe={type:zMe,event:t1,update:`update`,refineEvent:n1};function n1(e,t,n,r){var i=[];return Q(e,function(e){i=i.concat(e.eventBreaks)}),{eventContent:{breaks:i}}}function UMe(e){e.registerAction(BMe,t),e.registerAction(VMe,t),e.registerAction(HMe,t);function t(e,t){var n=[],r=XI(t,e);function i(t,i){Q(r[t],function(t){Q(t.updateAxisBreaks(e).breaks,function(e){var r;n.push(UA((r={},r[i]=t.componentIndex,r),e))})})}return i(`xAxisModels`,`xAxisIndex`),i(`yAxisModels`,`yAxisIndex`),i(`singleAxisModels`,`singleAxisIndex`),{eventBreaks:n}}}var r1=Math.PI,WMe=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],GMe=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],i1=YI(),a1=YI(),o1=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function KMe(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=b1(e.axisName)&&uX(e.nameLocation);Q(r,function(e){var t=LZ(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?EM(s1,n.transform):bM(s1),t.transform&&SM(s1,s1,t.transform),VM.copy(c1,t.localRect),c1.applyTransform(s1),s?s.union(c1):VM.copy(s=new VM(0,0,0,0),c1))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new VM(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var s1=yM(),c1=new VM(0,0,0,0),l1=function(e,t,n,r,i,a){if(uX(e.nameLocation)){var o=a.stOccupiedRect;o&&u1(bje({},o,a.transGroup.transform),r,i)}else d1(a.labelInfoList,a.dirVec,r,i)};function u1(e,t,n){var r=new OM;GZ(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&BZ(t,r)}function d1(e,t,n,r){for(var i=OM.dot(r,t)>=0,a=0,o=e.length;a0?`top`:`bottom`,i=`center`):yI(r-r1)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),qMe=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],JMe={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(Zj(u,u,l),Zj(d,d,l));var p=Z({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&KH(r.axis.scale))$$().buildAxisBreakLine(r,i,a,m);else{var h=new qB(Z({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));PV(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);rj(g)&&(g=[g,g]),(rj(_)||aj(_))&&(_=[_,_]);var v=$K(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];Q([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=ZK(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){g1(t,i,s)&&p1(e,t,n,r,i,a,o,nZ.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){g1(t,i,s)&&p1(e,t,n,r,i,a,o,nZ.determine);var c=QMe(e,i,a,r);ZMe(e,t.labelLayoutList,c),$Me(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(b1(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new OM(0,0),_=new OM(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=yM();_.transform(wM(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*r1/180);var b,x;uX(u)?b=f1.innerTextLayout(e.rotation,y??e.rotation,d):(b=YMe(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=mj(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new ZR({x:g.x,y:g.y,rotation:b.rotation,silent:f1.isLabelSilent(r),style:gH(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(XV({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=f1.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,cz(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=LZ({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:uX(u)?WMe[E]:GMe[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function p1(e,t,n,r,i,a,o,s){_1(t)||eNe(e,t,i,s,r,o);var c=t.labelLayoutList;tNe(e,r,c,a),iNe(r,e.rotation,c);var l=e.optionHideOverlap;XMe(r,c,l),l&&WZ(XA(c,function(e){return e&&!e.label.ignore})),KMe(e,n,r,c)}function YMe(e,t,n,r){var i=vI(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return yI(i-r1/2)?(o=c?`bottom`:`top`,a=`center`):yI(i-r1*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=ir1/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function XMe(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(cAe(r))return;function a(e,a,o){var s=LZ(t[a]),c=LZ(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=i1(s.label).labelInfo.tick;if(FY(l)&&u.notNice||LY(l)&&u.offInterval){m1(s.label);return}}if(e===!1||s.suggestIgnore){m1(s.label);return}if(c.suggestIgnore){m1(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=VZ({marginForce:f},s),c=VZ({marginForce:f},c)}GZ(s,c,null,{touchThreshold:d})&&m1(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function ZMe(e,t,n){e.showMinorTicks||Q(t,function(e){if(e&&e.label.ignore)for(var t=0;t=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}C$(S1,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r0&&v0?-2:-1,n.serUids=r}var S1=C$({ctor:bMe},50);function C1(e){return function(t,n){var r=dZ(t,{fromStat:{key:e}});if(jI(r.w2))return[-r.w2/2,r.w2/2]}}function w1(e){return e+`|&`}function T1(e,t){return e+`|&`+t}function E1(e){return uNe(),{liPosMinGap:!LY(e.scale)}}var D1=`pictorialBar`;function O1(e,t,n,r){OX(e,{key:t,seriesType:n,coordSysType:r,getMetrics:E1})}function k1(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var A1={left:0,right:0,top:0,bottom:0},j1=[`25%`,`25%`],M1=`cartesian2d`,fNe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=$U(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&QU(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&QU(this.option.outerBounds,t.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:A1,outerBoundsContain:`all`,outerBoundsClampWidth:j1[0],outerBoundsClampHeight:j1[1],backgroundColor:$.color.transparent,borderWidth:1,borderColor:$.color.neutral30},t}(tW),pNe=pL(),N1=`__ec_stack_`;function P1(e){return e.get(`stack`)||N1+e.seriesIndex}function mNe(e){if(LY(e.axis.scale)){for(var t=dZ(e.axis),n=[],r=0;ro&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=ZF(u,0);var d=0,f;Q(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return Q(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function I1(e){return{seriesType:e,overallReset:function(t){var n=T1(e,M1);CX(t,n,function(t){var r=hNe(t,e);xX(t,n,function(e){var t=r.columnMap[P1(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function L1(e){return{seriesType:e,plan:oK(),reset:function(e){if(aNe(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=yY(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(k1(i))),p=R1(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&S$(r*3),c=p&&s&&S$(r*3),l=p&&S$(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,QF(k)s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},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}(tK);tK.registerClass(B1);var vNe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return xY(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=gL(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=NH(B1.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:$.color.primary,borderWidth:2}},realtimeSort:!1}),t}(B1),yNe=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}(),V1=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new yNe},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-cMath.PI/2&&ua)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){yV(t,e,cz(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(cK),q1={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=G1(t.x,e.x),s=K1(t.x+t.width,i),c=G1(t.y,e.y),l=K1(t.y+t.height,a),u=si?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=K1(t.r,e.r),a=G1(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},J1={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new qR({shape:Z({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?V1:HB,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=bNe($1(i),{isRoundCap:l===V1}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?mV:hV)(u,{shape:p},a)}return u}};function CNe(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function Y1(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?mV:hV)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?mV:hV)(n,{shape:l},u,i)}function X1(e,t){for(var n=0;n0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function ENe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function $1(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function e0(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;Z(u,W1(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?jNe(i,a.coordinateSystem):MNe(i,a.coordinateSystem),p=hH(r);mH(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:d$(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`?!0:null,xNe(e,h===`outside`?f:h,$1(o),r.get([`label`,`rotate`]))}wH(m,p,a.getRawValue(n),function(e){return f$(t,e)});var g=r.getModel([`emphasis`]);aB(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),cB(e,r),ENe(i)&&(e.style.fill=`none`,e.style.stroke=`none`,Q(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function DNe(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var ONe=function(){function e(){}return e}(),t0=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new ONe},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c=0?n:null},30,!1);function kNe(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function i0(e,t,n){if(P$(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function ANe(e,t,n){return new(e.type===`polar`?HB:qR)({shape:i0(t,n,e),silent:!0,z2:0})}function jNe(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function MNe(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function NNe(e){e.registerChartView(SNe),e.registerSeriesModel(vNe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,I1(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,L1(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,X$(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),z1(e)}function a0(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(!(!n||!n.length)){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),PNe=YI(),c0=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new s0($A(this.getData,this),$A(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return o0(this,{coordDimensions:[`value`],encodeDefaulter:ej(fW,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=PNe(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=hI(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){zI(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:`truncate`,position:`outer`,alignTo:`none`,edgeDistance:`25%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:`solid`}},itemStyle:{borderWidth:1,borderJoin:`round`},showEmptyCircle:!0,emptyCircleStyle:{color:`lightgray`,opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:`expansion`,animationDuration:1e3,animationTypeUpdate:`transition`,animationEasingUpdate:`cubicInOut`,animationDurationUpdate:500,animationEasing:`cubicInOut`},t}(tK);PEe({fullType:c0.type,getCoord2:function(e){return e.getShallow(`center`)}});var FNe=Math.PI/180;function l0(e,t,n,r,i,a,o,s,c,l){if(e.length<2)return;function u(e){for(var a=e.rB,o=a*a,s=0;sn?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}d0(a,r)}}}function d0(e,t){f0.rect=e,RZ(f0,t,LNe)}var LNe={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},f0={};function p0(e){return e.position===`center`}function RNe(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*FNe,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),_=t.getItemModel(e),v=_.getModel(`label`),y=v.get(`position`)||_.get([`emphasis`,`label`,`position`]),b=v.get(`distanceToLabelLine`),x=v.get(`alignTo`),S=sI(v.get(`edgeDistance`),l),C=v.get(`bleedMargin`);C??=Math.min(l,f)>200?10:2;var w=_.getModel(`labelLine`),T=w.get(`length`);T=sI(T,l);var E=w.get(`length2`);if(E=sI(E,l),Math.abs(d.endAngle-d.startAngle)0?`right`:`left`:O>0?`left`:`right`}var V=Math.PI,H=0,U=v.get(`rotate`);if(aj(U))H=V/180*U;else if(y===`center`)H=0;else if(U===`radial`||U===!0)H=O<0?-D+V:-D;else if(U===`tangential`||U===`tangential-noflip`&&y!==`outside`&&y!==`outer`){var W=Math.atan2(O,k);W<0&&(W=V*2+W),k>0&&U!==`tangential-noflip`&&(W=V+W),H=W-V}if(a=!!H,h.x=A,h.y=j,h.rotation=H,h.setStyle({verticalAlign:`middle`}),P){h.setStyle({align:N});var G=h.states.select;G&&(G.x+=h.x,G.y+=h.y)}else{var ee=new VM(0,0,0,0);d0(ee,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new OM(O,k),linePoints:M,textAlign:N,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:ee,unconstrainedWidth:ee.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:P})}}),!a&&e.get(`avoidLabelOverlap`)&&INe(n,r,i,c,l,f,u,d);for(var h=0;hr?(l=O+x*r/2,u=l):(l=O+C,u=i-C),n.setItemLayout(t,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?oI(e,b,[c,s]):s}),O=i}),E0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l=n.r0}},t.type=`pie`,t}(cK);function UNe(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(aj(r)&&!isNaN(r)&&r<0)})}}}function WNe(e){e.registerChartView(HNe),e.registerSeriesModel(c0),zK(`pie`,e.registerAction),e.registerLayout(zNe),e.registerProcessor(a0(`pie`)),e.registerProcessor(UNe(`pie`))}var GNe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return xY(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get(`progressiveThreshold`))},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:``},t.type=`series.scatter`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:$.color.primary}},universalTransition:{divideShape:`clone`}},t}(tK),_0=4,KNe=function(){function e(){}return e}(),qNe=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new KNe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.buildPath=function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,a=i.shape,o=e.getContext?e.getContext():e,s=o&&r[0]<_0,c=this.softClipShape,l;if(s){this._ctx=o;return}for(this._ctx=null,l=this._off;l=0;s--){var c=s*2,l=r[c]-a/2,u=r[c+1]-o/2;if(e>=l&&t>=u&&e<=l+a&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,c=-1/0,l=-1/0,u=0;u=0&&(c.dataIndex=n+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),YNe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,v0(e)),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),hL(t),v0(t)),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),this._finished){var i=Y$(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(v0(e))}else return{update:!0}},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return(!n||r!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=r?new JNe:new v$,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type=`scatter`,t}(cK);function v0(e){return{clipShape:N$(e)}}var y0=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,QI).models[0]},t.type=`cartesian2dAxis`,t}(tW);KA(y0,gX);var b0={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:`auto`,onZeroAxisIndex:null,lineStyle:{color:$.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:$.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:$.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[$.color.backgroundTint,$.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:$.color.neutral00,borderColor:$.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},XNe=BA({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},b0),x0=BA({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:$.color.axisMinorSplitLine,width:1}}},b0),S0={category:XNe,value:x0,time:BA({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},x0),log:UA({logBase:10},x0)};function C0(e,t,n,r){Q(rX,function(i,a){var o=BA(BA({},S0[a],!0),r,!0),s=function(e){X(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=ZU(this),r=n?$U(e):{};BA(e,t.getTheme().get(a+`Axis`)),BA(e,this.getDefaultOption()),e.type=w0(e),n&&QU(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=CY.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=$$();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,w0)}function w0(e){return e.type||(e.data?`category`:`value`)}var ZNe=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return JA(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),XA(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),T0=[`x`,`y`];function E0(e){return(e.type===`interval`||e.type===`time`)&&!KH(e)}var QNe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=M1,t.dimensions=T0,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!E0(e)||!E0(t))){var n=kY(e,null),r=kY(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=EM([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new VM(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return Zj(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return Zj(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new VM(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(ZNe);function D0(e,t){var n=e.scale,r=e.model,i=zX(n,r,r.ecModel,e,null),a=IY(n),o=IY(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=QF(l[0].value-l[1].value),g=QF(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h=C[1])return!0})):b[1]?(T=C[1],A(function(){if(P(),k=uI(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=uI(tI(C[0]/E)*E,D),O=uI(eI(C[1]/E)*E,D);var e=$F((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=eI(t/2);n=t%2==0?[o,o]:w+T=C[1])return!0}})}pX(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}var O0=[[3,1],[0,2]],$Ne=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=T0,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;Q(this._axesList,function(e){FX(e,1);var t=e.scale;LY(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=QA(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):VX(i)}Q(n,function(e){tPe(e,e.__alignTo)?VX(e):D0(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};Q(n.x,function(e){k0(n,`y`,e,i)}),Q(n.y,function(e){k0(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=YU(e,t),i=this._rect=KU(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(M0(a,i),!n){var c=iPe(i,o,a,s,t),l=void 0;if(s)P0?(P0(this._axesList,i),M0(a,i)):l=F0(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=aPe(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=F0(d,f,p,i,a,c,r))}I0(i,a,nZ.determine,null,l,r),Q(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}oj(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r=0;i--){var a=e[+t[i]];NY(a.scale)&&fX(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&Q(r,function(e){e.__alignTo=n})}function tPe(e,t){return KH(e.scale)||KH(t.scale)||t.scale.getTicks().length<2}function nPe(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function M0(e,t){Q(e.x,function(e){return N0(e,t.x,t.width)}),Q(e.y,function(e){return N0(e,t.y,t.height)})}function N0(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),nPe(e,t)}var P0;function rPe(e){P0=e}function F0(e,t,n,r,i,a,o){I0(r,i,nZ.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=ZA(s,function(e){return e>0})==null;return qV(r,s,!0,!0,n),M0(i,r),c;function l(e){Q(i[CV[e]],function(t){if(dX(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i0&&!pj(t)&&t>1e-4&&(e/=t),e}}function iPe(e,t,n,r,i){var a=new o1(oPe);return Q(n,function(n){return Q(n,function(n){if(dX(n.model)){var o=!r;n.axisBuilder=sNe(e,t,n.model,i,a,o)}})}),a}function I0(e,t,n,r,i,a){var o=n===nZ.determine;Q(t,function(t){return Q(t,function(t){dX(t.model)&&(cNe(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[CV[1-t]]=e[wV[t]]<=a.refContainer[wV[t]]*.5?0:1-t==1?2:1}Q(t,function(e,t){return Q(e,function(e){dX(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function aPe(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=KU(e.get(`outerBounds`,!0)||A1,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||WA([`all`,`axisLabel`],a)<0?`all`:a,s=[cI(hj(e.get(`outerBoundsClampWidth`,!0),j1[0]),t.width),cI(hj(e.get(`outerBoundsClampHeight`,!0),j1[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var oPe=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;l1(e,t,n,r,i,a),uX(e.nameLocation)||Q(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&d1(e.labelInfoList,e.dirVec,r,i)})};function sPe(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return cPe(n,e,t),n.seriesInvolved&&uPe(n,e),n}function cPe(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];Q(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=B0(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(Q(n.getAxes(),ej(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&Q(f.baseAxes,ej(p,d?`cross`:!0,u)),d&&Q(f.otherAxes,ej(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!z0(d))){s??=d.get(`triggerTooltip`),d=r?lPe(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=B0(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:z0(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=dPe(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function lPe(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};Q(s,function(e){c[e]=zA(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&UA(l,u.textStyle)}return e.model.getModel(`axisPointer`,new jH(c,n,r))}function uPe(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||Q(e.coordSysAxesInfo[B0(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function dPe(e,t){for(var n=t.model,r=t.dim,i=0;i=0||e===t}function fPe(e){var t=R0(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=z0(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o0;return o&&s}var yPe=YI();function $0(e,t,n,r){if(e instanceof Z$&&e.scale.type!==`ordinal`)return n;var i=e.model,a=i.get(`jitter`);if(!(a>0))return n;var o=i.get(`jitterOverlap`),s=i.get(`jitterMargin`)||0,c=LY(e.scale)?dZ(e).w:null;return o?e2(n,a,c,r):bPe(e,t,n,r,a,s)}function e2(e,t,n,r){if(n===null)return e+(Math.random()-.5)*t;var i=n-r*2,a=Math.min(Math.max(0,t),i);return e+(Math.random()-.5)*a}function bPe(e,t,n,r,i,a){var o=yPe(e);o.items||=[];var s=o.items,c=t2(s,t,n,r,i,a,1),l=t2(s,t,n,r,i,a,-1),u=Math.abs(c-n)i/2||d&&f>d/2-r?e2(n,i,d,r):(s.push({fixedCoord:t,floatCoord:u,r}),u)}function t2(e,t,n,r,i,a,o){for(var s=n,c=0;ci/2)return Number.MAX_VALUE;if(o===1&&m>s||o===-1&&m0&&!f.min?f.min=0:f.min!=null&&f.min<0&&!f.max&&(f.max=0);var p=s;f.color!=null&&(p=UA({color:f.color},s));var m=BA(zA(f),{boundaryGap:e,splitNumber:t,clockwise:n,scale:r,axisLine:i,axisTick:a,axisLabel:o,name:f.text,showName:c,nameLocation:`end`,nameGap:u,nameTextStyle:p,triggerEvent:d},!1);if(rj(l)){var h=m.name;m.name=l.replace(`{value}`,h??``)}else nj(l)&&(m.name=l(m.name,m));var g=new jH(m,null,this.ecModel);return KA(g,gX.prototype),g.mainType=`radar`,g.componentIndex=this.componentIndex,g.uid=MH(`ec_radar`),g},this);this._indicatorModels=f},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=a2,t.defaultOption={z:0,center:[`50%`,`50%`],radius:`50%`,startAngle:90,clockwise:!1,axisName:{show:!0,color:$.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:`polygon`,axisLine:BA({lineStyle:{color:$.color.neutral20}},r2.axisLine),axisLabel:o2(r2.axisLabel,!1),axisTick:o2(r2.axisTick,!1),splitLine:o2(r2.splitLine,!0),splitArea:o2(r2.splitArea,!0),indicator:[]},t}(tW),kPe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,t){var n=e.coordinateSystem;Q(JA(n.getIndicatorAxes(),function(e){var r=e.model.get(`showName`)?e.name:``;return new f1(e.model,t,{axisName:r,position:[n.cx,n.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){e.build(),this.group.add(e.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(!n.length)return;var r=e.get(`shape`),i=e.getModel(`splitLine`),a=e.getModel(`splitArea`),o=i.getModel(`lineStyle`),s=a.getModel(`areaStyle`),c=i.get(`show`),l=a.get(`show`),u=o.get(`color`),d=s.get(`color`),f=tj(u)?u:[u],p=tj(d)?d:[d],m=[],h=[];function g(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}if(r===`circle`)for(var _=n[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b<_.length;b++){if(c){var x=g(m,f,b);m[x].push(new kB({shape:{cx:v,cy:y,r:_[b].coord}}))}if(l&&b<_.length-1){var x=g(h,p,b);h[x].push(new UB({shape:{cx:v,cy:y,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var S,C=JA(n,function(e,n){var r=e.getTicksCoords();return S=S==null?r.length-1:Math.min(r.length-1,S),JA(r,function(e){return t.coordToPoint(e.coord,n)})}),w=[],b=0;b<=S;b++){for(var T=[],E=0;E3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(u2(this._zr,`globalPan`)||p2(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(hM(r.event),r.__ecRoamConsumed=!0,_2(e,t,n,r,i))},t}(tM);function p2(e){return e.__ecRoamConsumed}var zPe=YI();function m2(e){var t=zPe(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function h2(e,t,n,r){for(var i=m2(e).roam,a=i[t]=i[t]||[],o=0;o=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&o!=null&&s!=null&&(u=aFe(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var f=r;r=new BF,r.add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return!t.ignoreRootClip&&o!=null&&s!=null&&r.setClipPath(new qR({shape:{x:0,y:0,width:o,height:s}})),{root:r,width:o,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,a){var o=e.nodeName.toLowerCase(),s,c=r;if(o===`defs`&&(i=!0),o===`text`&&(a=!0),o===`defs`||o===`switch`)s=t;else{if(!i){var l=b2[o];if(l&&Aj(b2,o)){s=l.call(this,e,t);var u=e.getAttribute(`name`);if(u){var d={name:u,namedFrom:null,svgNodeTagLower:o,el:s};n.push(d),o===`g`&&(c=d)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:o,el:s});t.add(s)}}var f=GPe[o];if(f&&Aj(GPe,o)){var p=f.call(this,e),m=e.getAttribute(`id`);m&&(this._defs[m]=p)}}if(s&&s.isGroup)for(var h=e.firstChild;h;)h.nodeType===1?this._parseNode(h,s,n,c,i,a):h.nodeType===3&&a&&this._parseText(h,s),h=h.nextSibling},e.prototype._parseText=function(e,t){var n=new VR({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});C2(t,n),w2(e,n,this._defsUsePending,!1,!1),YPe(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9),r.font=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+`px`,r.fontFamily||`sans-serif`].join(` `);var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=(function(){b2={g:function(e,t){var n=new BF;return C2(t,n),w2(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new qR;return C2(t,n),w2(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute(`x`)||`0`),y:parseFloat(e.getAttribute(`y`)||`0`),width:parseFloat(e.getAttribute(`width`)||`0`),height:parseFloat(e.getAttribute(`height`)||`0`)}),n.silent=!0,n},circle:function(e,t){var n=new kB;return C2(t,n),w2(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),r:parseFloat(e.getAttribute(`r`)||`0`)}),n.silent=!0,n},line:function(e,t){var n=new qB;return C2(t,n),w2(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute(`x1`)||`0`),y1:parseFloat(e.getAttribute(`y1`)||`0`),x2:parseFloat(e.getAttribute(`x2`)||`0`),y2:parseFloat(e.getAttribute(`y2`)||`0`)}),n.silent=!0,n},ellipse:function(e,t){var n=new AB;return C2(t,n),w2(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),rx:parseFloat(e.getAttribute(`rx`)||`0`),ry:parseFloat(e.getAttribute(`ry`)||`0`)}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=JPe(n));var i=new GB({shape:{points:r||[]},silent:!0});return C2(t,i),w2(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=JPe(n));var i=new KB({shape:{points:r||[]},silent:!0});return C2(t,i),w2(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new HR;return C2(t,n),w2(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute(`xlink:href`)||e.getAttribute(`href`),x:+e.getAttribute(`x`),y:+e.getAttribute(`y`),width:+e.getAttribute(`width`),height:+e.getAttribute(`height`)}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute(`x`)||`0`,r=e.getAttribute(`y`)||`0`,i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`;this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new BF;return C2(t,o),w2(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var n=e.getAttribute(`x`),r=e.getAttribute(`y`);n!=null&&(this._textX=parseFloat(n)),r!=null&&(this._textY=parseFloat(r));var i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`,o=new BF;return C2(t,o),w2(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=DB(e.getAttribute(`d`)||``);return C2(t,n),w2(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),e}(),GPe={lineargradient:function(e){var t=new eV(parseInt(e.getAttribute(`x1`)||`0`,10),parseInt(e.getAttribute(`y1`)||`0`,10),parseInt(e.getAttribute(`x2`)||`10`,10),parseInt(e.getAttribute(`y2`)||`0`,10));return KPe(e,t),qPe(e,t),t},radialgradient:function(e){var t=new tV(parseInt(e.getAttribute(`cx`)||`0`,10),parseInt(e.getAttribute(`cy`)||`0`,10),parseInt(e.getAttribute(`r`)||`0`,10));return KPe(e,t),qPe(e,t),t}};function KPe(e,t){e.getAttribute(`gradientUnits`)===`userSpaceOnUse`&&(t.global=!0)}function qPe(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()===`stop`){var r=n.getAttribute(`offset`),i=void 0;i=r&&r.indexOf(`%`)>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};rFe(n,a,a);var o=a.stopColor||n.getAttribute(`stop-color`)||`#000000`,s=a.stopOpacity||n.getAttribute(`stop-opacity`);if(s){var c=ZN(o);c&&c[3]&&(c[3]*=UN(s),o=iP(c,`rgba`))}t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function C2(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||={},UA(t.__inheritedStyle,e.__inheritedStyle))}function JPe(e){for(var t=T2(e),n=[],r=0;r0;a-=2){var o=r[a],s=r[a-1],c=T2(o);switch(i||=yM(),s){case`translate`:CM(i,i,[parseFloat(c[0]),parseFloat(c[1]||`0`)]);break;case`scale`:TM(i,i,[parseFloat(c[0]),parseFloat(c[1]||c[0])]);break;case`rotate`:wM(i,i,-parseFloat(c[0])*E2,[parseFloat(c[1]||`0`),parseFloat(c[2]||`0`)]);break;case`skewX`:var l=Math.tan(parseFloat(c[0])*E2);SM(i,[1,0,l,1,0,0],i);break;case`skewY`:var u=Math.tan(parseFloat(c[0])*E2);SM(i,[1,u,0,1,0,0],i);break;case`matrix`:i[0]=parseFloat(c[0]),i[1]=parseFloat(c[1]),i[2]=parseFloat(c[2]),i[3]=parseFloat(c[3]),i[4]=parseFloat(c[4]),i[5]=parseFloat(c[5]);break}}t.setLocalTransform(i)}}var nFe=/([^\s:;]+)\s*:\s*([^:;]+)/g;function rFe(e,t,n){var r=e.getAttribute(`style`);if(r){nFe.lastIndex=0;for(var i;(i=nFe.exec(r))!=null;){var a=i[1],o=Aj(x2,a)?x2[a]:null;o&&(t[o]=i[2]);var s=Aj(S2,a)?S2[a]:null;s&&(n[s]=i[2])}}}function iFe(e,t,n){for(var r=0;r1e-6;Q2[0]=o?(i[0]-r.x)/a:i[0],Q2[1]=o?(i[1]-r.y)/a:i[1],Zj(Q2,Q2,e.mtRawInv);var s=UFe(e,Q2);qFe(t,s,a),Q(n,function(e){e!==t&&qFe(e,s.slice(),a)})}var Q2=[];function qFe(e,t,n){var r=e.option;r.center=t,r.zoom=n}function $2(e,t){if(t){var n=t.min||0,r=t.max||1/0;e=Math.max(Math.min(r,e),n)}return e}function JFe(e,t){var n=t.getShallow(`nodeScaleRatio`,!0)||1,r=N2(e);return((r.zoom-1)*n+1)/(r.trans[2].scaleX||1)}function e4(e,t,n,r,i,a,o,s){if(!Z2(e)){n.disable();return}n.enable(hj(e.get(`roam`),o),{api:t,zInfo:{component:e},triggerInfo:{roamTrigger:e.get(`roamTrigger`),isInSelf:r,isInClip:function(e,t,n){return!i||i.contain(t,n)}}});function c(n){var r=e.mainType,i=sH(UA({type:XFe(r,e.subType,vz)},n));s&&(i.componentType=r),i[r+`Id`]=e.id,t.dispatchAction(i)}n.off(`pan`).off(`zoom`).on(`pan`,function(e){a&&a(`pan`),c({dx:e.dx,dy:e.dy})}).on(`zoom`,function(e){a&&a(`zoom`),c({zoom:e.scale,originX:e.originX,originY:e.originY})})}function YFe(e){return function(t,n,r){return t4.copy(e.getBoundingRect()),t4.applyTransform(e.getComputedTransform()),t4.contain(n,r)}}var t4=new VM(0,0,0,0);function n4(e,t,n){var r=XFe(t,n,vz);e.registerAction({type:r,event:r,update:`none`},function(e,r,i){r.eachComponent(eL(e,t,n),function(t){RFe(e,t),zFe(e,t,r,i)})})}function XFe(e,t,n){return(e===`series`?t===`map`?`geo`:t:e)+n}function ZFe(e){return e.zoom!=null}function r4(e,t,n,r,i,a,o){var s=new P2(null,GFe(e.ecModel,t));return H2(s,n,r,i,a),o?U2(s,o.x,o.y,o.width,o.height):U2(s,n,r,i,a),V2(s,e),s}var i4=[`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`],QFe=Ej(i4),$Fe=Ej(i4.concat([`g`])),eIe=Ej(i4.concat([`g`])),tIe=YI();function a4(e){var t=e.getItemStyle(),n=e.get(`areaColor`);return n!=null&&(t.fill=n),t}function nIe(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var rIe=function(){function e(e){var t=this.group=new BF,n=this._transformGroup=new BF;t.add(n),this.uid=MH(`ec_map_draw`),this._controller=new f2(e.getZr()),n.add(this._regionsGroup=new BF),n.add(this._svgGroup=new BF)}return e.prototype.draw=function(e,t,n,r,i){var a=this,o=e.getData&&e.getData();o4(e)&&t.eachComponent({mainType:`series`,subType:`map`},function(t){!o&&t.getHostGeoModel()===e&&(o=t.getData())});var s=e.coordinateSystem,c=s.view,l=this._regionsGroup,u=this._transformGroup,d=!l.childAt(0)||i,f;s.shouldClip()?(f=L2(null,c),this.group.setClipPath(new qR({shape:f.clone()}))):this.group.removeClipPath(),J2(u,1,c,d?null:e);var p=o&&o.getVisual(`visualMeta`)&&o.getVisual(`visualMeta`).length>0;s.resourceType===`geoJSON`?this._buildGeoJSON(c,n,s,e,o,p):s.resourceType===`geoSVG`&&this._buildSVG(c,n,s,e,o,p),e4(e,n,this._controller,function(t,n,r){return e.coordinateSystem.containPoint([n,r])},f,function(){a._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(e,l,n,r)},e.prototype.__updateOnOwnRoam=function(e){J2(this._transformGroup,1,e.coordinateSystem.view,null)},e.prototype._buildGeoJSON=function(e,t,n,r,i,a){var o=this._regionsGroupByName=Ej(),s=Ej(),c=this._regionsGroup,l=n.projection,u=l&&l.stream,d=fF(R2(null,e,0));function f(e,t){return t&&(e=t(e)),e&&Zj([],e,d)}function p(e){for(var t=[],n=!u&&l&&l.project,r=0;r=0)&&(u=e);var d=o?{normal:{align:`center`,verticalAlign:`middle`}}:null;mH(n,hH(i),{labelFetcher:u,labelDataIndex:l,defaultText:r},d);var f=n.getTextContent();if(f&&(tIe(f).ignore=f.ignore,n.textConfig&&o)){var p=n.getBoundingRect().clone();n.textConfig.layoutRect=p,n.textConfig.position=[(o[0]-p.x)/p.width*100+`%`,(o[1]-p.y)/p.height*100+`%`]}n.disableLabelAnimation=!0}else n.removeTextContent(),n.removeTextConfig(),n.disableLabelAnimation=null}function oIe(e,t,n,r,i,a){t?t.setItemGraphicEl(a,n):cz(n).eventData={componentType:`geo`,componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:r,region:i&&i.option||{}}}function sIe(e,t,n,r,i){t||XV({el:n,componentModel:e,itemName:r,itemTooltipOption:i.get(`tooltip`)})}function cIe(e,t,n,r){t.highDownSilentOnTouch=!!e.get(`selectedMode`);var i=r.getModel(`emphasis`),a=i.get(`focus`);return aB(t,a,i.get(`blurScope`),i.get(`disabled`)),o4(e)&&DTe(t,e,n),a}function lIe(e,t,n){var r=[],i;function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),Q(e,function(e){s.lineStart();for(var t=0;t-1&&(n.style.stroke=n.style.fill,n.style.fill=$.color.neutral00,n.style.lineWidth=2),n},t.prototype.__ownRoamView=function(){return s4(this)?this.coordinateSystem.view:null},t.type=`series.map`,t.dependencies=[`geo`],t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystem:`geo`,map:``,left:`center`,top:`center`,aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:$.color.tertiary},itemStyle:{borderWidth:.5,borderColor:$.color.border,areaColor:$.color.background},emphasis:{label:{show:!0,color:$.color.primary},itemStyle:{areaColor:$.color.highlight}},select:{label:{show:!0,color:$.color.primary},itemStyle:{color:$.color.highlight}},nameProperty:`name`},t}(tK);function dIe(e){return e.indexOf(`i`)===0}function s4(e){return c4(e.seriesGroup)===e&&!e.getHostGeoModel()}function c4(e){return e.f[0]}function l4(e,t){var n={};return e.eachRawSeriesByType(`map`,function(r){var i=r.getHostGeoModel(),a=i?`o`+i.id:`i`+r.getMapType(),o=n[a]=n[a]||{f:[],r:[]};!e.isSeriesFiltered(r)&&!t&&o.f.push(r),o.r.push(r)}),n}var fIe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`map`,t}return t.prototype.render=function(e,t,n,r){if(!(r&&r.type===`mapToggleSelect`&&r.from===this.uid)){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){var a=this._mapDraw;a&&r&&r.type===`geoRoam`&&a.resetForLabelLayout(),r&&r.type===`geoRoam`&&r.componentType===`series`&&r.seriesId===e.id?a&&i.add(a.group):s4(e)?(a||=this._mapDraw=new rIe(n),i.add(a.group),a.draw(e,t,n,this,r)):this._clearMapDraw(),e.get(`showLegendSymbol`)&&t.getComponent(`legend`)&&this._renderSymbols(e)}}},t.prototype.__updateOnOwnRoam=function(e,t,n){var r=this._mapDraw;s4(t)&&r&&r.__updateOnOwnRoam(t)},t.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},t.prototype.dispose=function(){this._clearMapDraw()},t.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e){var t=e.originalData,n=this.group;t.each(t.mapDimension(`value`),function(r,i){if(!isNaN(r)){var a=t.getItemLayout(i);if(!(!a||!a.point)){var o=a.point,s=a.offset,c=new kB({style:{fill:e.getData().getVisual(`style`).fill},shape:{cx:o[0]+s*9,cy:o[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var l=c4(e.seriesGroup).getData(),u=t.getName(i),d=l.indexOfName(u),f=t.getItemModel(i),p=f.getModel(`label`),m=l.getItemGraphicEl(d);mH(c,hH(f),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:u}),c.disableLabelAnimation=!0,p.get(`position`)||c.setTextConfig({position:`bottom`}),m.onHoverStateChange=function(e){Vz(c,e)}}n.add(c)}}})},t.type=`map`,t}(cK),pIe={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},mIe=[`lng`,`lat`],hIe=function(e){X(t,e);function t(t,n,r){var i=e.call(this)||this;i.dimensions=mIe,i.type=`geo`,i._nameCoordMap=Ej(),i.name=t;var a=r.projection,o=M2.load(n,r.nameMap,r.nameProperty),s=M2.getGeoResource(n);i.resourceType=s?s.type:null;var c=i.regions=o.regions,l=pIe[s.type];i._clip=r.clip,i.view=new P2(a?!1:l.invertLongitute,GFe(r.ecModel,r.api),i),i.map=n,i._regionsMap=o.regionsMap,i.regions=o.regions,i.projection=a;var u;if(a)for(var d=0;d1?(b.width=y,b.height=y/g):(b.height=y,b.width=y*g),b.y=v[1]-b.height/2,b.x=v[0]-b.width/2;else{var x=e.getBoxLayoutParams();x.aspect=g,b=KU(x,h),b=qU(e,b,g)}U2(n,b.x,b.y,b.width,b.height),V2(n,e)}function vIe(e,t){Q(t.get(`geoCoord`),function(t,n){e.addGeoCoord(n,t)})}var yIe=new(function(){function e(){this.dimensions=mIe}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get(`nameProperty`),aspectScale:e.get(`aspectScale`),projection:e.get(`projection`),clip:e.getShallow(`clip`,!0)}}return e.eachComponent(`geo`,function(i,a){var o=i.get(`map`),s=new hIe(o+a,o,Z({nameMap:i.get(`nameMap`),api:t,ecModel:e},r(i)));n.push(s),i.coordinateSystem=s,s.model=i,s.resize=_Ie,s.resize(i,t)}),e.eachSeries(function(e){LU({targetModel:e,coordSysType:`geo`,coordSysProvider:function(){var t=e.subType===`map`?e.getHostGeoModel():e.getReferringComponents(`geo`,QI).models[0];return t&&t.coordinateSystem},allowNotFound:!0})}),Q(l4(e,!0),function(i,a){if(dIe(a)){var o=i.r[0],s=[];Q(i.r,function(e){s.push(e.get(`nameMap`)),e.seriesGroup=null});var c=a.slice(1),l=new hIe(c,c,Z({nameMap:VA(s),api:t,ecModel:e},r(o))),u;Q(i.r,function(e){u=hj(u,e.get(`scaleLimit`))}),n.push(l),l.resize=_Ie,l.resize(o,t),Q(i.r,function(e){e.coordinateSystem=l,vIe(l,e)})}}),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),a=Ej(),o=0;o=0;a--){var o=i[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(o)}}function jIe(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){PIe(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=FIe(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function MIe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function NIe(e){return arguments.length?e:RIe}function u4(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function PIe(e){for(var t=e.children,n=t.length,r=0,i=0;--n>=0;){var a=t[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}function FIe(e,t,n,r){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,c=i.hierNode.modifier,l=a.hierNode.modifier,u=o.hierNode.modifier,d=s.hierNode.modifier;s=d4(s),a=f4(a),s&&a;){i=d4(i),o=f4(o),i.hierNode.ancestor=e;var f=s.hierNode.prelim+d-a.hierNode.prelim-l+r(s,a);f>0&&(LIe(IIe(s,e,n),e,f),l+=f,c+=f),d+=s.hierNode.modifier,l+=a.hierNode.modifier,c+=i.hierNode.modifier,u+=o.hierNode.modifier}s&&!d4(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-c),a&&!f4(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=l-u,n=e)}return n}function d4(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function f4(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function IIe(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function LIe(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function RIe(e,t){return e.parentNode===t.parentNode?1:2}var p4=YI();function zIe(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,KIe(t,n,e),Q(n,function(n){Q(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,ej(BIe,e))})}),t.wrapMethod(`cloneShallow`,ej(HIe,e)),Q(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,ej(VIe,e))}),yj(n[t.dataType]===t)}function BIe(e,t){if(GIe(this)){var n=Z({},p4(this).datas);n[this.dataType]=t,KIe(t,n,e)}else m4(t,this.dataType,p4(this).mainData,e);return t}function VIe(e,t){return e.struct&&e.struct.update(),t}function HIe(e,t){return Q(p4(t).datas,function(n,r){n!==t&&m4(n.cloneShallow(),r,t,e)}),t}function UIe(e){var t=p4(this).mainData;return e==null||t==null?t:p4(t).datas[e]}function WIe(){var e=p4(this).mainData;return e==null?[{data:e}]:JA(QA(p4(e).datas),function(t){return{type:t,data:p4(e).datas[t]}})}function GIe(e){return p4(e).mainData===e}function KIe(e,t,n){p4(e).datas={},Q(t,function(t,r){m4(t,r,e,n)})}function m4(e,t,n,r){p4(n).datas[t]=e,p4(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=UIe,e.getLinkedDataAll=WIe}var qIe=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||``,this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){nj(e)&&(n=t,t=e,e=null),e||={},rj(e)&&(e={order:e});var r=e.order||`preorder`,i=this[e.attr||`children`],a;r===`preorder`&&(a=t.call(n,this));for(var o=0;!a&&ot&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=n.getData().tree.root,i=e.targetNode;if(rj(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=r.getNodeById(a)))return{node:i}}}function YIe(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function _4(e,t){return WA(YIe(e),t)>=0}function v4(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var y4=`tree`,XIe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=new jH(e.leaves||{},this,this.ecModel),r=h4.createTree(t,this,i);function i(e){e.wrapMethod(`getItemModel`,function(e,t){var i=r.getNodeByDataIndex(t);return i&&i.children.length&&i.isExpand||(e.parentModel=n),e})}var a=0;r.eachNode(`preorder`,function(e){e.depth>a&&(a=e.depth)});var o=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode(`preorder`,function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&t.collapsed!=null?!t.collapsed:e.depth<=o}),r.data},t.prototype.getOrient=function(){var e=this.get(`orient`);return e===`horizontal`?e=`LR`:e===`vertical`&&(e=`TB`),e},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData().tree,i=r.root.children[0],a=r.getNodeByDataIndex(e),o=a.getValue(),s=a.name;a&&a!==i;)s=a.parentNode.name+`.`+s,a=a.parentNode;return VG(`nameValue`,{name:s,value:o,noValue:isNaN(o)||o==null})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=v4(r,this),n.collapsed=!r.isExpand,n},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type=`series.`+y4,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`12%`,top:`12%`,right:`12%`,bottom:`12%`,layout:`orthogonal`,edgeShape:`curve`,edgeForkPosition:`50%`,roam:!1,roamTrigger:`global`,nodeScaleRatio:.4,center:null,zoom:1,orient:`LR`,symbol:`emptyCircle`,symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:$.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:`lightsteelblue`,borderWidth:1.5},label:{show:!0},animationEasing:`linear`,animationDuration:700,animationDurationUpdate:500},t}(tK),ZIe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),QIe=function(e){X(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new ZIe},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,a=n[0],o=n[r-1];if(r===1){e.moveTo(i[0],i[1]),e.lineTo(a[0],a[1]);return}var s=t.orient,c=s===`TB`||s===`BT`?0:1,l=1-c,u=sI(t.forkPosition,1),d=[];d[c]=i[c],d[l]=i[l]+(o[l]-i[l])*u,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(a[0],a[1]),d[c]=a[c],e.lineTo(d[0],d[1]),d[c]=o[c],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var f=1;fv.x,x||(b-=Math.PI));var C=x?`left`:`right`,w=s.getModel(`label`),T=w.get(`rotate`),E=Math.PI/180*T,D=g.getTextContent();D&&(g.setTextConfig({position:w.get(`position`)||C,rotation:T==null?-b:E,origin:`center`}),D.setStyle(`verticalAlign`,`middle`))}var O=s.get([`emphasis`,`focus`]),k=O===`relative`?Dj(o.getAncestorsIndices(),o.getDescendantIndices()):O===`ancestor`?o.getAncestorsIndices():O===`descendant`?o.getDescendantIndices():null;k&&(cz(n).focus=k),nLe(i,o,u,n,m,p,h,r),n.__edge&&(n.onHoverStateChange=function(t){if(t!==`blur`){var r=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);r&&r.hoverState===1||Vz(n.__edge,t)}})}function nLe(e,t,n,r,i,a,o,s){var c=t.getModel(),l=e.get(`edgeShape`),u=e.get(`layout`),d=e.getOrient(),f=e.get([`lineStyle`,`curveness`]),p=e.get(`edgeForkPosition`),m=c.getModel(`lineStyle`).getLineStyle(),h=r.__edge;if(l===`curve`)t.parentNode&&t.parentNode!==n&&(h||=r.__edge=new XB({shape:b4(u,d,f,i,i)}),mV(h,{shape:b4(u,d,f,a,o)},e));else if(l===`polyline`&&u===`orthogonal`&&t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,_=[],v=0;v=0;a--)n.push(i[a])}}function sLe(e,t){e.eachSeriesByType(`tree`,function(e){cLe(e,t)})}function cLe(e,t){var n=YU(e,t).refContainer,r=KU(e.getBoxLayoutParams(),n);e.layoutInfo=r;var i=e.get(`layout`),a=0,o=0,s=null;i===`radial`?(a=2*Math.PI,o=Math.min(r.height,r.width)/2,s=NIe(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(a=r.width,o=r.height,s=NIe());var c=e.getData().tree.root,l=c.children[0];if(l){AIe(c),oLe(l,jIe,s),c.hierNode.modifier=-l.hierNode.prelim,x4(l,MIe);var u=l,d=l,f=l;x4(l,function(e){var t=e.getLayout().x;td.getLayout().x&&(d=e),e.depth>f.depth&&(f=e)});var p=u===d?1:s(u,d)/2,m=p-u.getLayout().x,h=0,g=0,_=0,v=0;if(i===`radial`)h=a/(d.getLayout().x+p+m),g=o/(f.depth-1||1),x4(l,function(e){_=(e.getLayout().x+m)*h,v=(e.depth-1)*g;var t=u4(_,v);e.setLayout({x:t.x,y:t.y,rawX:_,rawY:v},!0)});else{var y=e.getOrient();y===`RL`||y===`LR`?(g=o/(d.getLayout().x+p+m),h=a/(f.depth-1||1),x4(l,function(e){v=(e.getLayout().x+m)*g,_=y===`LR`?(e.depth-1)*h:a-(e.depth-1)*h,e.setLayout({x:_,y:v},!0)})):(y===`TB`||y===`BT`)&&(h=a/(d.getLayout().x+p+m),g=o/(f.depth-1||1),x4(l,function(e){_=(e.getLayout().x+m)*h,v=y===`TB`?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:_,y:v},!0)}))}}}function lLe(e){e.registerAction({type:`treeExpandAndCollapse`,event:`treeExpandAndCollapse`,update:`update`},function(e,t){t.eachComponent({mainType:uz,subType:y4,query:e},function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand})}),n4(e,uz,y4)}var uLe=_L(y4,dLe);function dLe(e){e.eachSeriesByType(y4,function(e){var t=e.getData();t.tree.eachNode(function(e){var n=e.getModel().getModel(`itemStyle`).getItemStyle();Z(t.ensureUniqueItemVisual(e.dataIndex,`style`),n)})})}function fLe(e){e.registerChartView($Ie),e.registerSeriesModel(XIe),e.registerLayout(sLe),e.registerVisual(uLe),lLe(e)}var pLe=[`treemapZoomToNode`,`treemapRender`,`treemapMove`];function mLe(e){for(var t=0;t1;)r=r.parentNode;var i=yW(e.ecModel,r.name||r.dataIndex+``,n);t.setVisual(`decal`,i)})}var gLe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};_Le(n);var r=e.levels||[],i=new jH({itemStyle:this.designatedVisualItemStyle={}},this,t);r=e.levels=vLe(r,t);var a=JA(r||[],function(e){return new jH(e,i,t)},this),o=h4.createTree(n,this,s);function s(e){e.wrapMethod(`getItemModel`,function(e,t){var n=o.getNodeByDataIndex(t);return e.parentModel=(n?a[n.depth]:null)||i,e})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e);return VG(`nameValue`,{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=v4(this.getData().tree.getNodeByDataIndex(t),this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},Z(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=Ej(),this._idIndexMapCount=0);var n=t.get(e);return n??t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){hLe(this)},t.type=`series.treemap`,t.layoutMode=`box`,t.defaultOption={progressive:0,coordinateSystemUsage:`box`,left:$.size.l,top:$.size.xxxl,right:$.size.l,bottom:$.size.xxxl,sort:!0,clipWindow:`origin`,squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:`▶`,zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:`global`,nodeClick:`zoomToNode`,animation:!0,animationDurationUpdate:900,animationEasing:`quinticInOut`,breadcrumb:{show:!0,height:22,left:`center`,bottom:$.size.m,emptyItemWidth:25,itemStyle:{color:$.color.backgroundShade,textStyle:{color:$.color.secondary}},emphasis:{itemStyle:{color:$.color.background}}},label:{show:!0,distance:0,padding:5,position:`inside`,color:$.color.neutral00,overflow:`truncate`},upperLabel:{show:!1,position:[0,`50%`],height:20,overflow:`truncate`,verticalAlign:`middle`},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:$.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,`50%`],overflow:`truncate`,verticalAlign:`middle`}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:`index`,visibleMin:10,childrenVisibleMin:null,levels:[]},t}(tK);function _Le(e){var t=0;Q(e.children,function(e){_Le(e);var n=e.value;tj(n)&&(n=n[0]),t+=n});var n=e.value;tj(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),tj(e.value)?e.value[0]=n:e.value=n}function vLe(e,t){var n=RI(t.get(`color`)),r=RI(t.get([`aria`,`decal`,`decals`]));if(n){e||=[];var i,a;Q(e,function(e){var t=new jH(e),n=t.get(`color`),r=t.get(`decal`);(t.get([`itemStyle`,`color`])||n&&n!==`none`)&&(i=!0),(t.get([`itemStyle`,`decal`])||r&&r!==`none`)&&(a=!0)});var o=e[0]||={};return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),e}}var yLe=8,bLe=8,S4=5,xLe=function(){function e(e){this.group=new BF,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel(`breadcrumb`),a=this.group;if(a.removeAll(),!(!i.get(`show`)||!n)){var o=i.getModel(`itemStyle`),s=i.getModel(`emphasis`),c=o.getModel(`textStyle`),l=s.getModel([`itemStyle`,`textStyle`]),u=YU(e,t).refContainer,d={left:i.get(`left`),right:i.get(`right`),top:i.get(`top`),bottom:i.get(`bottom`)},f={emptyItemWidth:i.get(`emptyItemWidth`),totalWidth:0,renderList:[]},p=KU(d,u);this._prepare(n,f,c),this._renderContent(e,f,p,o,s,c,l,r),XU(a,d,u)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=GI(r.getModel().get(`name`),``),a=n.getTextRect(i),o=Math.max(a.width+yLe*2,t.emptyItemWidth);t.totalWidth+=o+bLe,t.renderList.push({node:r,text:i,width:o})}},e.prototype._renderContent=function(e,t,n,r,i,a,o,s){for(var c=0,l=t.emptyItemWidth,u=e.get([`breadcrumb`,`height`]),d=t.totalWidth,f=t.renderList,p=i.getModel(`itemStyle`).getItemStyle(),m=f.length-1;m>=0;m--){var h=f[m],g=h.node,_=h.width,v=h.text;d>n.width&&(d-=_-l,_=l,v=null);var y=new GB({shape:{points:SLe(c,0,_,u,m===f.length-1,m===0)},style:UA(r.getItemStyle(),{lineJoin:`bevel`}),textContent:new ZR({style:gH(a,{text:v})}),textConfig:{position:`inside`},z2:10*1e4,onclick:ej(s,g)});y.disableLabelAnimation=!0,y.getTextContent().ensureState(`emphasis`).style=gH(o,{text:v}),y.ensureState(`emphasis`).style=p,aB(y,i.get(`focus`),i.get(`blurScope`),i.get(`disabled`)),this.group.add(y),CLe(y,e,g),c+=_+bLe}},e.prototype.remove=function(){this.group.removeAll()},e}();function SLe(e,t,n,r,i,a){var o=[[i?e:e-S4,t],[e+n,t],[e+n,t+r],[i?e:e-S4,t+r]];return!a&&o.splice(2,0,[e+n+S4,t+r/2]),!i&&o.push([e,t+r/2]),o}function CLe(e,t,n){cz(e).eventData={componentType:`series`,componentSubType:`treemap`,componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:`treemap`,selfType:`breadcrumb`,nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&v4(n,t)}}var wLe=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;r=0;c--){var l=i[r===`asc`?o-c-1:c].getValue();l/n*ts[1]&&(s[1]=t)})),{sum:r,dataExtent:s}}function ILe(e,t,n){for(var r=0,i=1/0,a=0,o=void 0,s=e.length;ar&&(r=o));var c=e.area*e.area,l=t*t*n;return c?C4(l*r/c,c/(l*i)):1/0}function LLe(e,t,n,r,i){var a=t===n.width?0:1,o=1-a,s=[`x`,`y`],c=[`width`,`height`],l=n[s[a]],u=t?e.area/t:0;(i||u>n[c[o]])&&(u=n[c[o]]);for(var d=0,f=e.length;d_I&&(u=_I),i=c}uGLe||Math.abs(e.dy)>GLe)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:`treemapMove`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,r=e.scale,i=this.seriesModel;if(this._state!==`animating`){var a=i.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new VM(o.x,o.y,o.width,o.height),c=i.layoutInfo,l=HLe(c,o),u=l*r;u=ULe(u,i);var d=u/l;t-=c.x,n-=c.y;var f=yM();CM(f,f,[-t,-n]),TM(f,f,[d,d]),CM(f,f,[t,n]),s.applyTransform(f),this.api.dispatchAction({type:`treemapRender`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(e){var t=this;e.on(`click`,function(e){if(t._state===`ready`){var n=t.seriesModel.get(`nodeClick`,!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if(n===`zoomToNode`)t._zoomToNode(r);else if(n===`link`){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get(`link`,!0),s=a.get(`target`,!0)||`blank`;o&&AU(o,s)}}}}},this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=e.get(`leafDepth`,!0)==null?this.findTarget(t.getWidth()/2,t.getHeight()/2):{node:e.getViewRoot()},n||={node:e.getData().tree.root}),(this._breadcrumb||=new xLe(this.group)).render(e,t,n.node,function(t){r._state!==`animating`&&(_4(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=k4(),this._state=`ready`,this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:`treemapZoomToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:`treemapRootToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:`viewChildren`,order:`preorder`},function(r){var i=this._storage.background[r.getRawIndex()];if(i){var a=i.transformCoordToLocal(e,t),o=i.shape;if(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height)n={node:r,offsetX:a[0],offsetY:a[1]};else return!1}},this),n},t.type=`treemap`,t}(cK);function k4(){return{nodeGroup:[],background:[],content:[]}}function $Le(e,t,n,r,i,a,o,s,c,l){if(!o)return;var u=o.getLayout(),d=e.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!u||!u.isInView)return;var p=u.width,m=u.height,h=u.borderWidth,g=u.invisible,_=o.getRawIndex(),v=s&&s.getRawIndex(),y=o.viewChildren,b=u.upperHeight,x=y&&y.length,S=f.getModel(`itemStyle`),C=f.getModel([`emphasis`,`itemStyle`]),w=f.getModel([`blur`,`itemStyle`]),T=f.getModel([`select`,`itemStyle`]),E=S.get(`borderRadius`)||0,D=V(`nodeGroup`,E4);if(!D)return;if(c.add(D),D.x=u.x||0,D.y=u.y||0,D.markRedraw(),O4(D).nodeWidth=p,O4(D).nodeHeight=m,u.isAboveViewRoot)return D;var O=V(`background`,WLe,l,YLe);O&&I(D,O,x&&u.upperLabelHeight);var k=f.getModel(`emphasis`),A=k.get(`focus`),j=k.get(`blurScope`),M=k.get(`disabled`),N=A===`ancestor`?o.getAncestorsIndices():A===`descendant`?o.getDescendantIndices():A;if(x)uB(D)&&lB(D,!1),O&&(lB(O,!M),d.setItemGraphicEl(o.dataIndex,O),oB(O,N,j));else{var P=V(`content`,WLe,l,XLe);P&&L(D,P),O.disableMorphing=!0,O&&uB(O)&&lB(O,!1),lB(D,!M),d.setItemGraphicEl(o.dataIndex,D);var F=f.getShallow(`cursor`);F&&P.attr(`cursor`,F),oB(D,N,j)}return D;function I(t,n,r){var i=cz(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:m,r:E}),g)R(n);else{n.invisible=!1;var a=o.getVisual(`style`),s=a.stroke,c=ZLe(S);c.fill=s;var l=D4(C);l.fill=C.get(`borderColor`);var u=D4(w);u.fill=w.get(`borderColor`);var d=D4(T);if(d.fill=T.get(`borderColor`),r){var f=p-2*h;z(n,s,a.opacity,{x:h,y:0,width:f,height:b})}else n.removeTextContent();n.setStyle(c),n.ensureState(`emphasis`).style=l,n.ensureState(`blur`).style=u,n.ensureState(`select`).style=d,Uz(n)}t.add(n)}function L(t,n){var r=cz(n);r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(p-2*h,0),a=Math.max(m-2*h,0);if(n.culling=!0,n.setShape({x:h,y:h,width:i,height:a,r:E}),g)R(n);else{n.invisible=!1;var s=o.getVisual(`style`),c=s.fill,l=ZLe(S);l.fill=c,l.decal=s.decal;var u=D4(C),d=D4(w),f=D4(T);z(n,c,s.opacity,null),n.setStyle(l),n.ensureState(`emphasis`).style=u,n.ensureState(`blur`).style=d,n.ensureState(`select`).style=f,Uz(n)}t.add(n)}function R(e){!e.invisible&&a.push(e)}function z(t,n,r,i){var a=f.getModel(i?qLe:KLe),s=GI(f.get(`name`),null),c=a.getShallow(`show`);mH(t,hH(f,i?qLe:KLe),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var d=l.style,p=vj(d.padding||0);i&&(t.setTextConfig({layoutRect:i}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-p[1]-p[3],0),n=Math.max((i?i.height:t.shape.height)-p[0]-p[2],0);(d.width!==e||d.height!==n)&&l.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow=`truncate`,B(d,i,u);var m=l.getState(`emphasis`);B(m?m.style:null,i,u)}}function B(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&i!=null){var a=e.get(`drillDownIcon`,!0);t.text=a?a+` `+i:i}}function V(e,r,a,o){var s=v!=null&&n[e][v],c=i[e];return s?(n[e][v]=null,H(c,s)):g||(s=new r,s instanceof qL&&(s.z2=eRe(a,o)),U(c,s)),t[e][_]=s}function H(e,t){var n=e[_]={};t instanceof E4?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Z({},t.shape)}function U(e,t){var n=e[_]={},a=o.parentNode,s=t instanceof BF;if(a&&(!r||r.direction===`drillDown`)){var c=0,l=0,u=i.background[a.getRawIndex()];!r&&u&&u.oldShape&&(c=u.oldShape.width,l=u.oldShape.height),s?(n.oldX=0,n.oldY=l):n.oldShape={x:c,y:l,width:0,height:0}}n.fadein=!s}}function eRe(e,t){return e*JLe+t}var A4=Q,tRe=oj,j4=-1,M4=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=zA(t);this.type=r,this.mappingMethod=n,this._normalizeData=oRe[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(N4(i),nRe(i)):n===`category`?i.categories?rRe(i):N4(i,!0):(yj(n!==`linear`||i.dataExtent),N4(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return $A(this._normalizeData,this)},e.listVisualTypes=function(){return QA(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){oj(e)?Q(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=tj(t)?[]:oj(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&A4(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(tj(e))e=e.slice();else if(tRe(e)){var t=[];A4(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a=0;a--)r[a]??(delete n[t[a]],t.pop())}function N4(e,t){var n=e.visual,r=[];oj(n)?A4(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),aRe(e,r)}function P4(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:R4([0,1])}}function iRe(e){var t=this.option.visual;return t[Math.round(oI(e,[0,1],[0,t.length-1],!0))]||{}}function F4(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function I4(e){var t=this.option.visual;return t[this.option.loop&&e!==j4?e%t.length:e]}function L4(){return this.option.visual[0]}function R4(e){return{linear:function(t){return oI(t,e,this.option.visual,!0)},category:I4,piecewise:function(t,n){var r=z4.call(this,n);return r??=oI(t,e,this.option.visual,!0),r},fixed:L4}}function z4(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[M4.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function aRe(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=JA(t,function(e){return ZN(e)||[0,0,0,1]})),t}var oRe={linear:function(e){return oI(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=M4.findPieceIndex(e,t,!0);if(n!=null)return oI(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??j4},fixed:jj};function B4(e,t,n){return e?t<=n:t=n.length||e===n[e.depth])&&uRe(e,hRe(i,c,e,t,m,r),n,r)})}}}function dRe(e,t,n){var r=Z({},t),i=n.designatedVisualItemStyle;return Q([`color`,`colorAlpha`,`colorSaturation`],function(n){i[n]=t[n];var a=e.get(n);i[n]=null,a!=null&&(r[n]=a)}),r}function fRe(e){var t=V4(e,`color`);if(t){var n=V4(e,`colorAlpha`),r=V4(e,`colorSaturation`);return r&&(t=nP(t,null,null,r)),n&&(t=rP(t,n)),t}}function pRe(e,t){return t==null?null:nP(t,null,null,e)}function V4(e,t){var n=e[t];if(n!=null&&n!==`none`)return n}function mRe(e,t,n,r,i,a){if(!(!a||!a.length)){var o=H4(t,`color`)||i.color!=null&&i.color!==`none`&&(H4(t,`colorAlpha`)||H4(t,`colorSaturation`));if(o){var s=t.get(`visualMin`),c=t.get(`visualMax`),l=n.dataExtent.slice();s!=null&&sl[1]&&(l[1]=c);var u=t.get(`colorMappingBy`),d={type:o.name,dataExtent:l,visual:o.range};d.type===`color`&&(u===`index`||u===`id`)?(d.mappingMethod=`category`,d.loop=!0):d.mappingMethod=`linear`;var f=new M4(d);return cRe(f).drColorMappingBy=u,f}}}function H4(e,t){var n=e.get(t);return tj(n)&&n.length?{name:t,range:n}:null}function hRe(e,t,n,r,i,a){var o=Z({},t);if(i){var s=i.type,c=s===`color`&&cRe(i).drColorMappingBy,l=c===`index`?r:c===`id`?a.mapIdToIndex(n.getId()):n.getValue(e.get(`visualDimension`));o[s]=i.mapValueToVisual(l)}return o}function gRe(e){e.registerSeriesModel(gLe),e.registerChartView(QLe),e.registerVisual(lRe),e.registerLayout(ALe),mLe(e)}function U4(e){return`_EC_`+e}var _Re=function(){function e(e){this.type=`graph`,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=e==null?``+t:``+e;var n=this._nodesMap;if(!n[U4(e)]){var r=new W4(e,t);return r.hostGraph=this,this.nodes.push(r),n[U4(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[U4(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(aj(e)&&(e=this.nodes[e]),aj(t)&&(t=this.nodes[t]),e instanceof W4||(e=r[U4(e)]),t instanceof W4||(t=r[U4(t)]),!(!e||!t)){var a=e.id+`-`+t.id,o=new vRe(e,t,n);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),i[a]=o,o}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof W4&&(e=e.id),t instanceof W4&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+`-`+t]:n[e+`-`+t]||n[t+`-`+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof W4||(t=this._nodesMap[U4(t)]),t){for(var i=n===`out`?`outEdges`:n===`in`?`inEdges`:`edges`,a=0;a=0&&n.node2.dataIndex>=0});for(var i=0,a=r.length;i=0&&!e.hasKey(p)&&(e.set(p,!0),a.push(f.node1))}for(s=0;s=0&&!e.hasKey(v)&&(e.set(v,!0),o.push(_.node2))}}}return{edge:e.keys(),node:t.keys()}},e}(),vRe=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=Ej(),t=Ej();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i=0&&!e.hasKey(u)&&(e.set(u,!0),n.push(l.node1))}for(i=0;i=0&&!e.hasKey(m)&&(e.set(m,!0),r.push(p.node2))}return{edge:e.keys(),node:t.keys()}},e}();function yRe(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||`value`),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}KA(W4,yRe(`hostGraph`,`data`)),KA(vRe,yRe(`hostGraph`,`edgeData`));function G4(e,t,n,r,i){for(var a=new _Re(r),o=0;o `+f)),l++)}var p=n.get(`coordinateSystem`),m;if(p===`cartesian2d`||p===`polar`||p===`matrix`)m=xY(e,n);else{var h=NU.get(p),g=h&&h.dimensions||[];WA(g,`value`)<0&&g.concat([`value`]);var _=gY(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;m=new hY(_,n),m.initData(e)}var v=new hY([`value`],n);return v.initData(c,s),i&&i(m,v),zIe({mainData:m,struct:a,structAttr:`graph`,datas:{node:m,edge:v},datasAttr:{node:`data`,edge:`edgeData`}}),a.update(),a}var K4=`-->`,q4=function(e){return e.get(`autoCurveness`)||null},bRe=function(e,t){var n=q4(e),r=20,i=[];if(aj(n))r=n;else if(tj(n)){e.__curvenessList=n;return}t>r&&(r=t);var a=r%2?r+2:r+3;i=[];for(var o=0;o `),value:i.value,noValue:i.value==null})}return ZG({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=JA(this.option.categories||[],function(e){return e.value==null?Z({value:0},e):e}),t=new hY([`value`],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e)})},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get(`layout`)===`force`&&this.get([`force`,`layoutAnimation`]))},t.prototype.__ownRoamView=function(){var e=this.coordinateSystem;return IFe(e)&&e},t.type=`series.`+Z4,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`],t.defaultOption={z:2,coordinateSystem:`view`,legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:`center`,top:`center`,symbol:`circle`,symbolSize:10,edgeSymbol:[`none`,`none`],edgeSymbolSize:10,edgeLabel:{position:`middle`,distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:`{b}`},itemStyle:{},lineStyle:{color:$.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:$.color.primary}}},t}(tK);function Q4(e){return e instanceof Array||(e=[e,e]),e}var DRe=_L(Z4,ORe);function ORe(e){e.eachSeriesByType(Z4,function(e){var t=e.getGraph(),n=e.getEdgeData(),r=Q4(e.get(`edgeSymbol`)),i=Q4(e.get(`edgeSymbolSize`));n.setVisual(`fromSymbol`,r&&r[0]),n.setVisual(`toSymbol`,r&&r[1]),n.setVisual(`fromSymbolSize`,i&&i[0]),n.setVisual(`toSymbolSize`,i&&i[1]),n.setVisual(`style`,e.getModel(`lineStyle`).getLineStyle()),n.each(function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),a=Q4(r.getShallow(`symbol`,!0)),o=Q4(r.getShallow(`symbolSize`,!0)),s=r.getModel(`lineStyle`).getLineStyle(),c=n.ensureUniqueItemVisual(e,`style`);switch(Z(c,s),c.stroke){case`source`:var l=i.node1.getVisual(`style`);c.stroke=l&&l.fill;break;case`target`:var l=i.node2.getVisual(`style`);c.stroke=l&&l.fill;break}a[0]&&i.setVisual(`fromSymbol`,a[0]),a[1]&&i.setVisual(`toSymbol`,a[1]),o[0]&&i.setVisual(`fromSymbolSize`,o[0]),o[1]&&i.setVisual(`toSymbolSize`,o[1])})})}function kRe(e){var t=e.coordinateSystem;if(!(t&&t.type!==`view`)){var n=e.getGraph();n.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get(`x`),+t.get(`y`)])}),$4(n,e)}}function $4(e,t){e.eachEdge(function(e,n){var r=gj(e.getModel().get([`lineStyle`,`curveness`]),-X4(e,t,n,!0),0),i=Lj(e.node1.getLayout()),a=Lj(e.node2.getLayout()),o=[i,a];+r&&o.push([(i[0]+a[0])/2-(i[1]-a[1])*r,(i[1]+a[1])/2-(a[0]-i[0])*r]),e.setLayout(o)})}var ARe=_L(Z4,jRe);function jRe(e,t){e.eachSeriesByType(Z4,function(e){var t=e.get(`layout`),n=e.coordinateSystem;if(n&&n.type!==`view`){var r=e.getData(),i=[];Q(n.dimensions,function(e){i=i.concat(r.mapDimensionsAll(e))});for(var a=0;a0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if(r.__position!==`start`&&r.__position!==`end`){var S=-Math.atan2(v[1],v[0]);l[0].8?`left`:u[0]<-.8?`right`:`center`,p=u[1]>.8?`top`:u[1]<-.8?`bottom`:`middle`;break;case`start`:r.x=-u[0]*h+c[0],r.y=-u[1]*g+c[1],f=u[0]>.8?`right`:u[0]<-.8?`left`:`center`,p=u[1]>.8?`bottom`:u[1]<-.8?`top`:`middle`;break;case`insideStartTop`:case`insideStart`:case`insideStartBottom`:r.x=h*x+c[0],r.y=c[1]+C,f=v[0]<0?`right`:`left`,r.originX=-h*x,r.originY=-C;break;case`insideMiddleTop`:case`insideMiddle`:case`insideMiddleBottom`:case`middle`:r.x=b[0],r.y=b[1]+C,f=`center`,r.originY=-C;break;case`insideEndTop`:case`insideEnd`:case`insideEndBottom`:r.x=-h*x+l[0],r.y=l[1]+C,f=v[0]>=0?`right`:`left`,r.originX=h*x,r.originY=-C;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||f})}},t}(BF),u3=function(){function e(e){this.group=new BF,this._LineCtor=e||l3}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=XRe(e);e.diff(i).add(function(n){t._doAdd(e,n,a)}).update(function(n,r){t._doUpdate(i,e,r,n,a)}).remove(function(e){r.remove(i.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=XRe(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[];function r(e){!e.isGroup&&!YRe(e)&&(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var i=e.start;i0}function XRe(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{lineStyle:t.getModel(`lineStyle`).getLineStyle(),emphasisLineStyle:n.getModel([`lineStyle`]).getLineStyle(),blurLineStyle:t.getModel([`blur`,`lineStyle`]).getLineStyle(),selectLineStyle:t.getModel([`select`,`lineStyle`]).getLineStyle(),emphasisDisabled:n.get(`disabled`),blurScope:n.get(`blurScope`),focus:n.get(`focus`),labelStatesModels:hH(t)}}function ZRe(e){return isNaN(e[0])||isNaN(e[1])}function d3(e){return e&&!ZRe(e[0])&&!ZRe(e[1])}var f3=[],p3=[],m3=[],h3=jN,g3=Yj,QRe=Math.abs;function $Re(e,t,n){for(var r=e[0],i=e[1],a=e[2],o=1/0,s,c=n*n,l=.1,u=.1;u<=.9;u+=.1){f3[0]=h3(r[0],i[0],a[0],u),f3[1]=h3(r[1],i[1],a[1],u);var d=QRe(g3(f3,t)-c);d=0?s+=l:s-=l:m>=0?s-=l:s+=l}return s}function _3(e,t){var n=[],r=PN,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(e,s){var c=e.getLayout(),l=e.getVisual(`fromSymbol`),u=e.getVisual(`toSymbol`);c.__original||(c.__original=[Lj(c[0]),Lj(c[1])],c[2]&&c.__original.push(Lj(c[2])));var d=c.__original;if(c[2]!=null){if(Ij(i[0],d[0]),Ij(i[1],d[2]),Ij(i[2],d[1]),l&&l!==`none`){var f=t3(e.node1),p=$Re(i,d[0],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(u&&u!==`none`){var f=t3(e.node2),p=$Re(i,d[1],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}Ij(c[0],i[0]),Ij(c[1],i[2]),Ij(c[2],i[1])}else{if(Ij(a[0],d[0]),Ij(a[1],d[1]),Vj(o,a[1],a[0]),Gj(o,o),l&&l!==`none`){var f=t3(e.node1);Bj(a[0],a[0],o,f*t)}if(u&&u!==`none`){var f=t3(e.node2);Bj(a[1],a[1],o,-f*t)}Ij(c[0],a[0]),Ij(c[1],a[1])}})}var eze=YI();function tze(e){if(e)return eze(e).bridge}function nze(e,t){e&&(eze(e).bridge=t)}var rze=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Z4,t}return t.prototype.init=function(e,t){var n=new v$,r=new u3,i=this.group,a=new BF;this._controller=new f2(t.getZr()),a.add(n.group),a.add(r.group),i.add(a),this._symbolDraw=n,this._lineDraw=r,this._mainGroup=a,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=Z2(e),a=!1;this._model=e,this._api=n,this._active=!0;var o=this._mainGroup,s=this._getThumbnailInfo();s&&s.bridge.reset(n);var c=this._symbolDraw,l=this._lineDraw;i&&J2(o,2,i,this._firstRender?null:e),_3(e.getGraph(),e3(e));var u=e.getData();c.updateData(u);var d=e.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),i&&e4(e,n,this._controller,function(t,n,r){return e.coordinateSystem.containPoint([n,r])},null),clearTimeout(this._layoutTimeout);var f=e.forceLayout,p=e.get([`force`,`layoutAnimation`]);f&&(a=!0,this._startForceLayoutIteration(f,n,p));var m=e.get(`layout`);u.graph.eachNode(function(t){var i=t.dataIndex,a=t.getGraphicEl(),o=t.getModel();if(a){a.off(`drag`).off(`dragend`);var s=o.get(`draggable`);s&&a.on(`drag`,function(o){switch(m){case`force`:f.warmUp(),!r._layouting&&r._startForceLayoutIteration(f,n,p),f.setFixed(i),u.setItemLayout(i,[a.x,a.y]);break;case`circular`:u.setItemLayout(i,[a.x,a.y]),t.setLayout({fixed:!0},!0),r3(e,`symbolSize`,t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;default:u.setItemLayout(i,[a.x,a.y]),$4(e.getGraph(),e),r.updateLayout(e);break}}).on(`dragend`,function(){f&&f.setUnfixed(i)}),a.setDraggable(s,!!o.get(`cursor`)),o.get([`emphasis`,`focus`])===`adjacency`&&(cz(a).focus=t.getAdjacentDataIndices())}}),u.graph.eachEdge(function(e){var t=e.getGraphicEl(),n=e.getModel().get([`emphasis`,`focus`]);t&&n===`adjacency`&&(cz(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})});var h=e.get(`layout`)===`circular`&&e.get([`circular`,`rotateLabel`]),g=u.getLayout(`cx`),_=u.getLayout(`cy`);u.graph.eachNode(function(e){PRe(e,h,g,_)}),this._firstRender=!1,a||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},t.prototype._startForceLayoutIteration=function(e,t,n){var r=this,i=!1;(function a(){e.step(function(e){r.updateLayout(r._model),(e||!i)&&(i=!0,r._renderThumbnail(r._model,t,r._symbolDraw,r._lineDraw)),(r._layouting=!e)&&(n?r._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype.__updateOnOwnRoam=function(e,t,n){var r=Z2(t);!this._active||!r||(J2(this._mainGroup,2,r,null),ZFe(e)&&(this._updateNodeAndLinkScale(),_3(t.getGraph(),e3(t)),this._lineDraw.updateLayout(),n.updateLabelLayout()),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=e3(e);t.eachItemGraphicEl(function(e,t){e&&e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(_3(e.getGraph(),e3(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,t=e.coordinateSystem;if(t.type===`view`){var n=tze(e);if(n)return{bridge:n,coordSys:t}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(I2(null,e.coordSys),this._api)},t.prototype._renderThumbnail=function(e,t,n,r){var i=this._getThumbnailInfo();if(i){var a=new BF,o=n.group.children(),s=r.group.children(),c=new BF,l=new BF;a.add(l),a.add(c);for(var u=0;u `),value:r.value,noValue:r.value==null})}return VG(`nameValue`,{name:r.name,value:r.value,noValue:r.value==null})},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(n===`node`){var i=this.getData(),a=this.getGraph().getNodeByIndex(t);r.name??=i.getName(t),r.value??=a.getLayout().value}return r},t.type=`series.`+v3,t.defaultOption={z:2,coordinateSystem:`none`,legendHoverLink:!0,colorBy:`data`,left:0,top:0,right:0,bottom:0,width:null,height:null,center:[`50%`,`50%`],radius:[`70%`,`80%`],clockwise:!0,startAngle:90,endAngle:`auto`,minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:`source`,opacity:.2},label:{show:!0,position:`outside`,distance:5},emphasis:{focus:`adjacency`,lineStyle:{opacity:.5}}},t}(tK),uze=function(e){X(t,e);function t(t,n,r){var i=e.call(this)||this;cz(i).dataType=`node`,i.z2=2;var a=new ZR;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.graph.getNodeByIndex(t),o=e.hostModel,s=a.getModel(),c=s.getModel(`emphasis`),l=e.getItemLayout(t),u=Z(W1(s.getModel(`itemStyle`),l,!0),l),d=this;if(isNaN(u.startAngle)){d.setShape(u);return}r?d.setShape(u):mV(d,{shape:u},o,t);var f=Z(W1(s.getModel(`itemStyle`),l,!0),l);i.setShape(f),i.useStyle(e.getItemVisual(t,`style`)),cB(i,s),this._updateLabel(o,s,a),e.setItemGraphicEl(t,d),cB(d,s,`itemStyle`);var p=c.get(`focus`);aB(this,p===`adjacency`?a.getAdjacentDataIndices():p,c.get(`blurScope`),c.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this.getTextContent(),i=n.getLayout(),a=(i.startAngle+i.endAngle)/2,o=Math.cos(a),s=Math.sin(a),c=t.getModel(`label`);r.ignore=!c.get(`show`);var l=hH(t),u=n.getVisual(`style`);mH(r,l,{labelFetcher:{getFormattedLabel:function(n,r,i,a,o,s){return e.getFormattedLabel(n,r,`node`,a,gj(o,l.normal&&l.normal.get(`formatter`),t.get(`name`)),s)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+``,inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:`startArc`});var d=c.get(`position`)||`outside`,f=c.get(`distance`)||0,p=d===`outside`?i.r+f:(i.r+i.r0)/2;this.textConfig={inside:d!==`outside`};var m=d===`outside`?o>0?`left`:`right`:c.get(`align`)||`center`,h=d===`outside`?s>0?`top`:`bottom`:c.get(`verticalAlign`)||`middle`;r.attr({x:o*p+i.cx,y:s*p+i.cy,rotation:0,style:{align:m,verticalAlign:h}})},t}(HB);(function(){function e(){this.s1=[0,0],this.s2=[0,0],this.sStartAngle=0,this.sEndAngle=0,this.t1=[0,0],this.t2=[0,0],this.tStartAngle=0,this.tEndAngle=0,this.cx=0,this.cy=0,this.r=0,this.clockwise=!0}return e})();var dze=function(e){X(t,e);function t(t,n,r,i){var a=e.call(this)||this;return cz(a).dataType=`edge`,a.updateData(t,n,r,i,!0),a}return t.prototype.buildPath=function(e,t){e.moveTo(t.s1[0],t.s1[1]);var n=.7,r=t.clockwise;e.arc(t.cx,t.cy,t.r,t.sStartAngle,t.sEndAngle,!r),e.bezierCurveTo((t.cx-t.s2[0])*n+t.s2[0],(t.cy-t.s2[1])*n+t.s2[1],(t.cx-t.t1[0])*n+t.t1[0],(t.cy-t.t1[1])*n+t.t1[1],t.t1[0],t.t1[1]),e.arc(t.cx,t.cy,t.r,t.tStartAngle,t.tEndAngle,!r),e.bezierCurveTo((t.cx-t.t2[0])*n+t.t2[0],(t.cy-t.t2[1])*n+t.t2[1],(t.cx-t.s1[0])*n+t.s1[0],(t.cy-t.s1[1])*n+t.s1[1],t.s1[0],t.s1[1]),e.closePath()},t.prototype.updateData=function(e,t,n,r,i){var a=e.hostModel,o=t.graph.getEdgeByIndex(n),s=o.getLayout(),c=o.node1.getModel(),l=t.getItemModel(o.dataIndex),u=l.getModel(`lineStyle`),d=l.getModel(`emphasis`),f=d.get(`focus`),p=Z(W1(c.getModel(`itemStyle`),s,!0),s),m=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){m.setShape(p);return}i?(m.setShape(p),fze(m,o,e,u)):(bV(m),fze(m,o,e,u),mV(m,{shape:p},a,n)),aB(this,f===`adjacency`?o.getAdjacentDataIndices():f,d.get(`blurScope`),d.get(`disabled`)),cB(m,l,`lineStyle`),t.setItemGraphicEl(o.dataIndex,m)},t}(BR);function fze(e,t,n,r){var i=t.node1,a=t.node2,o=e.style;switch(e.setStyle(r.getLineStyle()),r.get(`color`)){case`source`:o.fill=n.getItemVisual(i.dataIndex,`style`).fill,o.decal=i.getVisual(`style`).decal;break;case`target`:o.fill=n.getItemVisual(a.dataIndex,`style`).fill,o.decal=a.getVisual(`style`).decal;break;case`gradient`:var s=n.getItemVisual(i.dataIndex,`style`).fill,c=n.getItemVisual(a.dataIndex,`style`).fill;if(rj(s)&&rj(c)){var l=e.shape;o.fill=new eV((l.s1[0]+l.s2[0])/2,(l.s1[1]+l.s2[1])/2,(l.t1[0]+l.t2[0])/2,(l.t1[1]+l.t2[1])/2,[{offset:0,color:s},{offset:1,color:c}],!0)}break}}var pze=Math.PI/180,mze=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=v3,t}return t.prototype.init=function(e,t){},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group,o=-e.get(`startAngle`)*pze;if(r.diff(i).add(function(e){if(r.getItemLayout(e)){var t=new uze(r,e,o);cz(t).dataIndex=e,a.add(t)}}).update(function(t,n){var s=i.getItemGraphicEl(n);if(!r.getItemLayout(t)){s&&yV(s,e,n);return}s?s.updateData(r,t,o):s=new uze(r,t,o),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&yV(n,e,t)}).execute(),!i){var s=e.get(`center`);this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=sI(s[0],n.getWidth()),this.group.originY=sI(s[1],n.getHeight()),hV(this.group,{scaleX:1,scaleY:1},e)}this._data=r,this.renderEdges(e,o)},t.prototype.renderEdges=function(e,t){var n=e.getData(),r=e.getEdgeData(),i=this._edgeData,a=this.group;r.diff(i).add(function(e){var i=new dze(n,r,e,t);cz(i).dataIndex=e,a.add(i)}).update(function(e,o){var s=i.getItemGraphicEl(o);s.updateData(n,r,e,t),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&yV(n,e,t)}).execute(),this._edgeData=r},t.prototype.dispose=function(){},t.type=v3,t}(cK),y3=Math.PI/180,hze=_L(v3,gze);function gze(e,t){e.eachSeriesByType(v3,function(e){_ze(e,t)})}function _ze(e,t){var n=e.getData(),r=n.graph,i=e.getEdgeData();if(i.count()){var a=GU(e,t),o=a.cx,s=a.cy,c=a.r,l=a.r0,u=Math.max((e.get(`padAngle`)||0)*y3,0),d=Math.max((e.get(`minAngle`)||0)*y3,0),f=-e.get(`startAngle`)*y3,p=f+Math.PI*2,m=e.get(`clockwise`),h=m?1:-1,g=[f,p];TR(g,!m);var _=g[0],v=g[1]-_,y=n.getSum(`value`)===0&&i.getSum(`value`)===0,b=[],x=0;r.eachEdge(function(e){var t=y?1:e.getValue(`value`);y&&(t>0||d)&&(x+=2);var n=e.node1.dataIndex,r=e.node2.dataIndex;b[n]=(b[n]||0)+t,b[r]=(b[r]||0)+t});var S=0;if(r.eachNode(function(e){var t=e.getValue(`value`);isNaN(t)||(b[e.dataIndex]=Math.max(t,b[e.dataIndex]||0)),!y&&(b[e.dataIndex]>0||d)&&x++,S+=b[e.dataIndex]||0}),!(x===0||S===0)){u*x>=Math.abs(v)&&(u=Math.max(0,(Math.abs(v)-d*x)/x)),(u+d)*x>=Math.abs(v)&&(d=(Math.abs(v)-u*x)/x);var C=(v-u*x*h)/S,w=0,T=0,E=0,D=1/0;r.eachNode(function(e){var t=b[e.dataIndex]||0,n=C*(S?t:1)*h;Math.abs(n)T){var k=w/T;r.eachNode(function(e){var t=e.getLayout().angle;Math.abs(t)>=d?e.setLayout({angle:t*k,ratio:k},!0):e.setLayout({angle:d,ratio:d===0?1:t/d},!0)})}else r.eachNode(function(e){if(!O){var t=e.getLayout().angle;t-Math.min(t/E,1)*wd&&d>0){var n=O?1:Math.min(t/E,1),r=t-d,i=Math.min(r,Math.min(A,w*n));A-=i,e.setLayout({angle:t-i,ratio:(t-i)/t},!0)}else d>0&&e.setLayout({angle:d,ratio:t===0?1:d/t},!0)}});var j=_,M=[];r.eachNode(function(e){var t=Math.max(e.getLayout().angle,d);e.setLayout({cx:o,cy:s,r0:l,r:c,startAngle:j,endAngle:j+t*h,clockwise:m},!0),M[e.dataIndex]=j,j+=(t+u)*h}),r.eachEdge(function(e){var t=y?1:e.getValue(`value`),n=C*(S?t:1)*h,r=e.node1.dataIndex,i=M[r]||0,a=i+Math.abs((e.node1.getLayout().ratio||1)*n)*h,c=[o+l*Math.cos(i),s+l*Math.sin(i)],u=[o+l*Math.cos(a),s+l*Math.sin(a)],d=e.node2.dataIndex,f=M[d]||0,p=f+Math.abs((e.node2.getLayout().ratio||1)*n)*h,g=[o+l*Math.cos(f),s+l*Math.sin(f)],_=[o+l*Math.cos(p),s+l*Math.sin(p)];e.setLayout({s1:c,s2:u,sStartAngle:i,sEndAngle:a,t1:g,t2:_,tStartAngle:f,tEndAngle:p,cx:o,cy:s,r:l,value:t,clockwise:m}),M[r]=a,M[d]=p})}}}function vze(e){e.registerChartView(mze),e.registerSeriesModel(lze),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,hze),e.registerProcessor(a0(`chord`))}var yze=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),bze=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`pointer`,n}return t.prototype.getDefaultShape=function(){return new yze},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,a=t.width,o=t.angle,s=t.x-n(o)*a*(a>=i/3?1:2),c=t.y-r(o)*a*(a>=i/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,c),e.lineTo(t.x+n(o)*a,t.y+r(o)*a),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(o)*a,t.y-r(o)*a),e.lineTo(s,c)},t}(BR);function xze(e,t){var n=e.get(`center`),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i);return{cx:sI(n[0],t.getWidth()),cy:sI(n[1],t.getHeight()),r:sI(e.get(`radius`),a/2)}}function b3(e,t){var n=e==null?``:e+``;return t&&(rj(t)?n=t.replace(`{value}`,n):nj(t)&&(n=t(e))),n}var Sze=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get([`axisLine`,`lineStyle`,`color`]),i=xze(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var a=this.group,o=e.get(`clockwise`),s=-e.get(`startAngle`)/180*Math.PI,c=-e.get(`endAngle`)/180*Math.PI,l=e.getModel(`axisLine`),u=l.get(`roundCap`)?V1:HB,d=l.get(`show`),f=l.getModel(`lineStyle`),p=f.get(`width`),m=[s,c];TR(m,!o),s=m[0],c=m[1];for(var h=c-s,g=s,_=[],v=0;d&&v=e&&(t===0?0:r[t-1][0])Math.PI/2&&(R+=Math.PI)):L===`tangential`?R=-S-Math.PI/2:aj(L)&&(R=L*Math.PI/180),R===0?l.add(new ZR({style:gH(_,{text:N,x:F,y:I,verticalAlign:k<-.8?`top`:k>.8?`bottom`:`middle`,align:O<-.4?`left`:O>.4?`right`:`center`},{inheritColor:P}),silent:!0})):l.add(new ZR({style:gH(_,{text:N,x:F,y:I,verticalAlign:`middle`,align:`center`},{inheritColor:P}),silent:!0,originX:F,originY:I,rotation:R}))}if(g.get(`show`)&&A!==v){var j=g.get(`distance`);j=j?j+c:c;for(var z=0;z<=y;z++){O=Math.cos(S),k=Math.sin(S);var B=new qB({shape:{x1:O*(f-j)+u,y1:k*(f-j)+d,x2:O*(f-x-j)+u,y2:k*(f-x-j)+d},silent:!0,style:E});E.stroke===`auto`&&B.setStyle({stroke:r((A+z/y)/v)}),l.add(B),S+=w}S-=w}else S+=C}},t.prototype._renderPointer=function(e,t,n,r,i,a,o,s,c){var l=this.group,u=this._data,d=this._progressEls,f=[],p=e.get([`pointer`,`show`]),m=e.getModel(`progress`),h=m.get(`show`),g=e.getData(),_=g.mapDimension(`value`),v=+e.get(`min`),y=+e.get(`max`),b=[v,y],x=[a,o];function S(t,n){var r=g.getItemModel(t).getModel(`pointer`),a=sI(r.get(`width`),i.r),o=sI(r.get(`length`),i.r),s=e.get([`pointer`,`icon`]),c=r.get(`offsetCenter`),l=sI(c[0],i.r),u=sI(c[1],i.r),d=r.get(`keepAspect`),f=s?ZK(s,l-a/2,u-o,a,o,null,d):new bze({shape:{angle:-Math.PI/2,width:a,r:o,x:l,y:u}});return f.rotation=-(n+Math.PI/2),f.x=i.cx,f.y=i.cy,f}function C(e,t){var n=m.get(`roundCap`)?V1:HB,r=m.get(`overlap`),o=r?m.get(`width`):c/g.count(),l=r?i.r-o:i.r-(e+1)*o,u=r?i.r:i.r-e*o,d=new n({shape:{startAngle:a,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:l,r:u}});return r&&(d.z2=oI(g.get(_,e),[v,y],[100,0],!0)),d}(h||p)&&(g.diff(u).add(function(t){var n=g.get(_,t);if(p){var r=S(t,a);hV(r,{rotation:-((isNaN(+n)?x[0]:oI(n,b,x,!0))+Math.PI/2)},e),l.add(r),g.setItemGraphicEl(t,r)}if(h){var i=C(t,a);hV(i,{shape:{endAngle:oI(n,b,x,m.get(`clip`))}},e),l.add(i),lz(e.seriesIndex,g.dataType,t,i),f[t]=i}}).update(function(t,n){var r=g.get(_,t);if(p){var i=u.getItemGraphicEl(n),o=i?i.rotation:a,s=S(t,o);s.rotation=o,mV(s,{rotation:-((isNaN(+r)?x[0]:oI(r,b,x,!0))+Math.PI/2)},e),l.add(s),g.setItemGraphicEl(t,s)}if(h){var c=d[n],v=C(t,c?c.shape.endAngle:a);mV(v,{shape:{endAngle:oI(r,b,x,m.get(`clip`))}},e),l.add(v),lz(e.seriesIndex,g.dataType,t,v),f[t]=v}}).execute(),g.each(function(e){var t=g.getItemModel(e),n=t.getModel(`emphasis`),i=n.get(`focus`),a=n.get(`blurScope`),o=n.get(`disabled`),s=r(oI(g.get(_,e),b,[0,1],!0));if(p){var c=g.getItemGraphicEl(e),l=g.getItemVisual(e,`style`),u=l.fill;if(c instanceof HR){var d=c.style;c.useStyle(Z({image:d.image,x:d.x,y:d.y,width:d.width,height:d.height},l))}else c.useStyle(l),c.type!==`pointer`&&c.setColor(u);c.setStyle(t.getModel([`pointer`,`itemStyle`]).getItemStyle()),c.style.fill===`auto`&&c.setStyle(`fill`,s),c.z2EmphasisLift=0,cB(c,t),aB(c,i,a,o)}if(h){var m=f[e];m.useStyle(g.getItemVisual(e,`style`)),m.setStyle(t.getModel([`progress`,`itemStyle`]).getItemStyle()),m.style.fill===`auto`&&m.setStyle(`fill`,s),m.z2EmphasisLift=0,cB(m,t),aB(m,i,a,o)}}),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel(`anchor`);if(n.get(`show`)){var r=n.get(`size`),i=n.get(`icon`),a=n.get(`offsetCenter`),o=n.get(`keepAspect`),s=ZK(i,t.cx-r/2+sI(a[0],t.r),t.cy-r/2+sI(a[1],t.r),r,r,null,o);s.z2=+!!n.get(`showAbove`),s.setStyle(n.getModel(`itemStyle`).getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var a=this,o=e.getData(),s=o.mapDimension(`value`),c=+e.get(`min`),l=+e.get(`max`),u=new BF,d=[],f=[],p=e.isAnimationEnabled(),m=e.get([`pointer`,`showAbove`]);o.diff(this._data).add(function(e){d[e]=new ZR({silent:!0}),f[e]=new ZR({silent:!0})}).update(function(e,t){d[e]=a._titleEls[t],f[e]=a._detailEls[t]}).execute(),o.each(function(t){var n=o.getItemModel(t),a=o.get(s,t),h=new BF,g=r(oI(a,[c,l],[0,1],!0)),_=n.getModel(`title`);if(_.get(`show`)){var v=_.get(`offsetCenter`),y=i.cx+sI(v[0],i.r),b=i.cy+sI(v[1],i.r),x=d[t];x.attr({z2:m?0:2,style:gH(_,{x:y,y:b,text:o.getName(t),align:`center`,verticalAlign:`middle`},{inheritColor:g})}),h.add(x)}var S=n.getModel(`detail`);if(S.get(`show`)){var C=S.get(`offsetCenter`),w=i.cx+sI(C[0],i.r),T=i.cy+sI(C[1],i.r),E=sI(S.get(`width`),i.r),D=sI(S.get(`height`),i.r),O=e.get([`progress`,`show`])?o.getItemVisual(t,`style`).fill:g,x=f[t],k=S.get(`formatter`);x.attr({z2:m?0:2,style:gH(S,{x:w,y:T,text:b3(a,k),width:isNaN(E)?null:E,height:isNaN(D)?null:D,align:`center`,verticalAlign:`middle`},{inheritColor:O})}),wH(x,{normal:S},a,function(e){return b3(e,k)}),p&&TH(x,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return b3(o?o.interpolatedValue:a,k)}}),h.add(x)}u.add(h)}),this.group.add(u),this._titleEls=d,this._detailEls=f},t.type=`gauge`,t}(cK),Cze=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`itemStyle`,n}return t.prototype.getInitialData=function(e,t){return o0(this,[`value`])},t.type=`series.gauge`,t.defaultOption={z:2,colorBy:`data`,center:[`50%`,`50%`],legendHoverLink:!0,radius:`75%`,startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,$.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:$.color.axisTick,width:3,type:`solid`}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:$.color.axisTickMinor,width:1,type:`solid`}},axisLabel:{show:!0,distance:15,color:$.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:`60%`,width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:`circle`,offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:$.color.neutral00,borderWidth:0,borderColor:$.color.theme[0]}},title:{show:!0,offsetCenter:[0,`20%`],color:$.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:$.color.transparent,borderWidth:0,borderColor:$.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,`40%`],color:$.color.primary,fontSize:30,fontWeight:`bold`,lineHeight:30,valueAnimation:!1}},t}(tK);function wze(e){e.registerChartView(Sze),e.registerSeriesModel(Cze)}var x3=`funnel`,Tze=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new s0($A(this.getData,this),$A(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return o0(this,{coordDimensions:[`value`],encodeDefaulter:ej(fW,this)})},t.prototype._defaultLabelLine=function(e){zI(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension(`value`),a=n.getSum(i);return r.percent=a?+(n.get(i,t)/a*100).toFixed(2):0,r.$vars.push(`percent`),r},t.type=`series.`+x3,t.defaultOption={coordinateSystemUsage:`box`,z:2,legendHoverLink:!0,colorBy:`data`,left:80,top:60,right:80,bottom:65,minSize:`0%`,maxSize:`100%`,sort:`descending`,orient:`vertical`,gap:0,funnelAlign:`center`,label:{show:!0,position:`outer`},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:$.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:$.color.primary}}},t}(tK),Eze=[`itemStyle`,`opacity`],Dze=function(e){X(t,e);function t(t,n){var r=e.call(this)||this,i=r,a=new KB,o=new ZR;return i.setTextContent(o),r.setTextGuideLine(a),r.updateData(t,n,!0),r}return t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,a=e.getItemModel(t),o=e.getItemLayout(t),s=a.getModel(`emphasis`),c=a.get(Eze);c??=1,n||bV(r),r.useStyle(e.getItemVisual(t,`style`)),r.style.lineJoin=`round`,n?(r.setShape({points:o.points}),r.style.opacity=0,hV(r,{style:{opacity:c}},i,t)):mV(r,{style:{opacity:c},shape:{points:o.points}},i,t),cB(r,a),this._updateLabel(e,t),aB(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),a=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t).label,c=e.getItemVisual(t,`style`),l=c.fill;mH(i,hH(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}});var u=o.getModel(`label`).get(`color`)===`inherit`?l:null;n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var d=s.linePoints;r.setShape({points:d}),n.textGuideLineConfig={anchor:d?new OM(d[0][0],d[0][1]):null},mV(i,{style:{x:s.x,y:s.y}},a,t),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),AZ(n,jZ(o),{stroke:l})},t}(GB),Oze=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=x3,t.ignoreLabelLineUpdate=!0,t}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group;r.diff(i).add(function(e){var t=new Dze(r,e);r.setItemGraphicEl(e,t),a.add(t)}).update(function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),a.add(n),r.setItemGraphicEl(e,n)}).remove(function(t){yV(i.getItemGraphicEl(t),e,t)}).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type=x3,t}(cK);function kze(e,t){for(var n=e.mapDimension(`value`),r=e.mapArray(n,function(e){return e}),i=[],a=t===`ascending`,o=0,s=e.count();o-1&&(i=`left`),n&&WA([`left`,`right`],i)>-1&&(i=`bottom`)),i===`left`?(p=(s[3][0]+s[0][0])/2,m=(s[3][1]+s[0][1])/2,h=p-_,u=h-5,l=`right`):i===`right`?(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,h=p+_,u=h+5,l=`left`):i===`top`?(p=(s[3][0]+s[0][0])/2,m=(s[3][1]+s[0][1])/2,g=m-_,d=g-5,l=`center`):i===`bottom`?(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,g=m+_,d=g+5,l=`center`):i===`rightTop`?(p=n?s[3][0]:s[1][0],m=n?s[3][1]:s[1][1],n?(g=m-_,d=g-5,l=`center`):(h=p+_,u=h+5,l=`top`)):i===`rightBottom`?(p=s[2][0],m=s[2][1],n?(g=m+_,d=g+5,l=`center`):(h=p+_,u=h+5,l=`bottom`)):i===`leftTop`?(p=s[0][0],m=n?s[0][1]:s[1][1],n?(g=m-_,d=g-5,l=`center`):(h=p-_,u=h-5,l=`right`)):i===`leftBottom`?(p=n?s[1][0]:s[3][0],m=n?s[1][1]:s[2][1],n?(g=m+_,d=g+5,l=`center`):(h=p-_,u=h-5,l=`right`)):(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,n?(g=m+_,d=g+5,l=`center`):(h=p+_,u=h+5,l=`left`)),n?(h=p,u=h):(g=m,d=g),f=[[p,m],[h,g]]}o.label={linePoints:f,x:u,y:d,verticalAlign:`middle`,textAlign:l,inside:c}})}var jze=_L(x3,Mze);function Mze(e,t){e.eachSeriesByType(x3,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=e.get(`sort`),a=YU(e,t),o=KU(e.getBoxLayoutParams(),a.refContainer),s=Nze(e),c=o.width,l=o.height,u=kze(n,i),d=o.x,f=o.y,p=s?[sI(e.get(`minSize`),l),sI(e.get(`maxSize`),l)]:[sI(e.get(`minSize`),c),sI(e.get(`maxSize`),c)],m=n.getDataExtent(r),h=e.get(`min`),g=e.get(`max`);h??=Math.min(m[0],0),g??=m[1];var _=e.get(`funnelAlign`),v=e.get(`gap`),y=((s?c:l)-v*(n.count()-1))/n.count(),b=function(e,t){if(s){var i=oI(n.get(r,e)||0,[h,g],p,!0),a=void 0;switch(_){case`top`:a=f;break;case`center`:a=f+(l-i)/2;break;case`bottom`:a=f+(l-i);break}return[[t,a],[t,a+i]]}var o=oI(n.get(r,e)||0,[h,g],p,!0),u;switch(_){case`left`:u=d;break;case`center`:u=d+(c-o)/2;break;case`right`:u=d+c-o;break}return[[u,t],[u+o,t]]};i===`ascending`&&(y=-y,v=-v,s?d+=c:f+=l,u=u.reverse());for(var x=0;xXze)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);r.behavior!==`none`&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!C3(this,`mousemove`))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r===`jump`&&this._throttledDispatchExpand.debounceNextCall(t.get(`axisExpandDebounce`)),this._throttledDispatchExpand(r===`none`?null:{axisExpandWindow:n.axisExpandWindow,animation:r===`jump`?null:{duration:0}})}}};function C3(e,t){var n=e._model;return n.get(`axisExpandable`)&&n.get(`axisExpandTriggerOn`)===t}var w3=`parallel`,T3=w3,$ze=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&BA(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get(`parallelIndex`);return n!=null&&t.getComponent(`parallel`,n)===this},t.prototype.setAxisExpand=function(e){Q([`axisExpandable`,`axisExpandCenter`,`axisExpandCount`,`axisExpandWidth`,`axisExpandWindow`],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[];Q(XA(this.ecModel.queryComponents({mainType:`parallelAxis`}),function(e){return(e.get(`parallelIndex`)||0)===this.componentIndex},this),function(n){e.push(`dim`+n.get(`dim`)),t.push(n.componentIndex)})},t.type=T3,t.dependencies=[`parallelAxis`],t.layoutMode=`box`,t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:`horizontal`,axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:`click`,parallelAxisDefault:null},t}(tW),eBe=function(e){X(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||`value`,o.axisIndex=a,o}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get(`layout`)!==`horizontal`},t}(pZ);function E3(e,t,n,r,i,a){e||=0;var o=gI(n[1],-n[0]);if(i!=null&&(i=O3(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(gI(t[1],-t[0]));s=O3(s,[0,o]),i=a=O3(s,[i,a]),r=0}t[0]=O3(t[0],n),t[1]=O3(t[1],n);var c=D3(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=gI(u[0],l):u[1]=gI(u[1],-l),t[r]=O3(t[r],u);var d=D3(t,r);return i!=null&&(d.sign!==c.sign||d.spana&&(t[1-r]=gI(t[r],d.sign*a)),t}function D3(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function O3(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var tBe=function(){function e(e,t,n){this.type=w3,this._axesMap=Ej(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;Q(r,function(e,n){var r=i[n],a=t.getComponent(`parallelAxis`,r),o=aX(a),s=this._axesMap.set(e,new eBe(e,oX(a,o,!1),[0,0],o,r));s.onBand=hX(s.scale,a),s.inverse=a.get(`inverse`),a.axis=s,s.model=a,s.coordinateSystem=a.coordinateSystem=this},this)},e.prototype.update=function(e,t){Q(this.dimensions,function(e){var t=this._axesMap.get(e);FX(t,1),VX(t)},this)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,a=e[1-i],o=e[i];return a>=n&&a<=n+t.axisLength&&o>=r&&o<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype.resize=function(e,t){var n=YU(e,t).refContainer;this._rect=KU(e.getBoxLayoutParams(),n),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=[`x`,`y`],r=[`width`,`height`],i=e.get(`layout`),a=i===`horizontal`?0:1,o=t[r[a]],s=[0,o],c=this.dimensions.length,l=k3(e.get(`axisExpandWidth`),s),u=k3(e.get(`axisExpandCount`)||0,[0,c]),d=e.get(`axisExpandable`)&&c>3&&c>u&&u>1&&l>0&&o>0,f=e.get(`axisExpandWindow`),p;f?(p=k3(f[1]-f[0],s),f[1]=f[0]+p):(p=k3(l*(u-1),s),f=[l*(e.get(`axisExpandCenter`)||eI(c/2))-p/2],f[1]=f[0]+p);var m=(o-p)/(c-u);m<3&&(m=0);var h=[eI(uI(f[0]/l,1))+1,tI(uI(f[1]/l,1))-1],g=m/l*f[0];return{layout:i,pixelDimIndex:a,layoutBase:t[n[a]],layoutLength:o,axisBase:t[n[1-a]],axisLength:t[r[1-a]],axisExpandable:d,axisExpandWidth:l,axisCollapseWidth:m,axisExpandWindow:f,axisCount:c,winInnerIndices:h,axisExpandWindow0Pos:g}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each(function(e){var t=[0,r.axisLength],n=+!!e.inverse;e.setExtent(t[n],t[1-n])}),Q(n,function(t,n){var a=(r.axisExpandable?rBe:nBe)(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:aI/2,vertical:0},c=[o[i].x+e.x,o[i].y+e.y],l=s[i],u=yM();wM(u,u,l),CM(u,u,c),this._axesLayout[t]={position:c,rotation:l,transform:u,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){n??=0,r??=e.count();var i=this._axesMap,a=this.dimensions,o=[],s=[];Q(a,function(t){o.push(e.mapDimension(t)),s.push(i.get(t).model)});for(var c=this.hasAxisBrushed(),l=n;li*(1-u[0])?(c=`jump`,s=o-i*(1-u[2])):(s=o-i*u[1])>=0&&(s=o-i*(1-u[1]))<=0&&(s=0),s*=t.axisExpandWidth/l,s?E3(s,r,a,`all`):c=`none`;else{var f=r[1]-r[0];r=[ZF(0,a[1]*o/f-f/2)],r[1]=XF(a[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:c}},e}();function k3(e,t){return XF(ZF(e,t[0]),t[1])}function nBe(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function rBe(e,t){var n=t.layoutLength,r=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,c=a,l=!1,u;return e=0;n--)dI(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return`normal`;if(e==null||isNaN(+e))return`inactive`;if(t.length===1){var n=t[0];if(n[0]<=e&&e<=n[1])return`active`}else for(var r=0,i=t.length;rcBe}function xBe(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function SBe(e,t,n,r){var i=new BF;return i.add(new qR({name:`main`,style:H3(n),silent:!0,draggable:!0,cursor:`move`,drift:ej(DBe,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:ej(z3,t,{isEnd:!0})})),Q(r,function(n){i.add(new qR({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ej(DBe,e,t,i,n),ondragend:ej(z3,t,{isEnd:!0})}))}),i}function CBe(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=N3(i,lBe),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;V3(e,t,`main`,o,s,m,h),r.transformable&&(V3(e,t,`w`,c,l,a,_),V3(e,t,`e`,f,l,a,_),V3(e,t,`n`,c,l,g,a),V3(e,t,`s`,c,p,g,a),V3(e,t,`nw`,c,l,a,a),V3(e,t,`ne`,f,l,a,a),V3(e,t,`sw`,c,p,a,a),V3(e,t,`se`,f,p,a,a))}function B3(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(H3(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),Q([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?U3(e,n[0]):EBe(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?fBe[a]+`-resize`:null})})}function V3(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(ABe(W3(e,t,[[r,i],[r+a,i+o]])))}function H3(e){return UA({strokeNoScale:!0},e.brushStyle)}function wBe(e,t,n,r){var i=[M3(e,n),M3(t,r)],a=[N3(e,n),N3(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function TBe(e){return IV(e.group)}function U3(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[RV({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],TBe(e))]}function EBe(e,t){var n=[U3(e,t[0]),U3(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function DBe(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=kBe(t,i,a);Q(r,function(e){var t=dBe[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(wBe(s[0][0],s[1][0],s[0][1],s[1][1])),F3(t,n),z3(t,{isEnd:!1})}function OBe(e,t,n,r){var i=t.__brushOption.range,a=kBe(e,n,r);Q(i,function(e){e[0]+=a[0],e[1]+=a[1]}),F3(e,t),z3(e,{isEnd:!1})}function kBe(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function W3(e,t,n){var r=yBe(e,t);return r&&r!==j3?r.clipPath(n,e._transform):zA(n)}function ABe(e){var t=M3(e[0][0],e[1][0]),n=M3(e[0][1],e[1][1]),r=N3(e[0][0],e[1][0]),i=N3(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function jBe(e,t,n){if(!(!e._brushType||IBe(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,a=L3(e,t,n);if(!e._dragging)for(var o=0;or.getWidth()||n<0||n>r.getHeight()}var q3={lineX:LBe(0),lineY:LBe(1),rect:{createCover:function(e,t){function n(e){return e}return SBe({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=xBe(e);return wBe(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){CBe(e,t,n,r)},updateCommon:B3,contain:K3},polygon:{createCover:function(e,t){var n=new BF;return n.add(new KB({name:`main`,style:H3(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new GB({name:`main`,draggable:!0,drift:ej(OBe,e,t),ondragend:ej(z3,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:W3(e,t,n)})},updateCommon:B3,contain:K3}};function LBe(e){return{createCover:function(t,n){return SBe({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=xBe(t);return[M3(n[0][e],n[1][e]),N3(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=yBe(t,n);if(o!==j3&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),CBe(t,n,c,i)},updateCommon:B3,contain:K3}}function RBe(e){return e=J3(e),function(t){return VV(t,e)}}function zBe(e,t){return e=J3(e),function(n){var r=t??n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function BBe(e,t,n){var r=J3(e);return function(e,i){return r.contain(i[0],i[1])&&!d2(e,t,n)}}function J3(e){return VM.create(e)}var VBe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new P3(n.getZr())).on(`brush`,$A(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!HBe(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new BF,this.group.add(this._axisGroup),e.get(`show`)){var a=WBe(e,t),o=a.coordinateSystem,s=e.getAreaSelectStyle(),c=s.width,l=e.axis.dim,u=o.getAxisLayout(l),d=Z({strokeContainThreshold:c},u),f=new f1(e,n,d);f.build(),this._axisGroup.add(f.group),this._refreshBrushController(d,s,e,a,c,n),BV(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,a){var o=n.axis.getExtent(),s=o[1]-o[0],c=Math.min(30,Math.abs(s)*.1),l=VM.create({x:o[0],y:-i/2,width:s,height:i});l.x-=c,l.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:`pl`,clipPath:RBe(l),isTargetByCursor:BBe(l,a,r),getLinearBrushOtherExtent:zBe(l,0)}]).enableBrush({brushType:`lineX`,brushStyle:t,removeOnClick:!0}).updateCovers(UBe(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=JA(t,function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`axisAreaSelect`,parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type=`parallelAxis`,t}(aK);function HBe(e,t,n){return n&&n.type===`axisAreaSelect`&&t.findComponents({mainType:`parallelAxis`,query:n})[0]===e}function UBe(e){var t=e.axis;return JA(e.activeIntervals,function(e){return{brushType:`lineX`,panelId:`pl`,range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function WBe(e,t){return t.getComponent(`parallel`,e.get(`parallelIndex`))}var GBe={type:`axisAreaSelect`,event:`axisAreaSelected`};function KBe(e){e.registerAction(GBe,function(e,t){t.eachComponent({mainType:`parallelAxis`,query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),e.registerAction(`parallelAxisExpand`,function(e,t){t.eachComponent({mainType:`parallel`,query:e},function(t){t.setAxisExpand(e)})})}var qBe={type:`value`,areaSelectStyle:{width:20,borderWidth:1,borderColor:`rgba(160,197,232)`,color:`rgba(160,197,232)`,opacity:.3},realtime:!0,z:10};function JBe(e){e.registerComponentView(Zze),e.registerComponentModel($ze),e.registerCoordinateSystem(`parallel`,aBe),e.registerPreprocessor(qze),e.registerComponentModel(A3),e.registerComponentView(VBe),C0(e,`parallel`,A3,qBe),KBe(e)}function YBe(e){qJ(JBe),e.registerChartView(Ize),e.registerSeriesModel(Hze),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Kze)}var Y3=`sankey`,XBe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o=0&&(a[i[o].depth]=new jH(i[o],this,t));return G4(r,n,this,!0,s).data;function s(e,t){e.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e}),t.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})}},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||e==null}if(n===`edge`){var i=this.getDataParams(e,n),a=i.data,o=i.value;return VG(`nameValue`,{name:a.source+` -- `+a.target,value:o,noValue:r(o)})}else{var s=this.getGraph().getNodeByIndex(e).getLayout().value,c=this.getDataParams(e,n).data.name;return VG(`nameValue`,{name:c==null?null:c+``,value:s,noValue:r(s)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);return r.value==null&&n===`node`&&(r.value=this.getGraph().getNodeByIndex(t).getLayout().value),r},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type=`series.`+Y3,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`5%`,top:`5%`,right:`20%`,bottom:`5%`,orient:`horizontal`,nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:`global`,center:null,zoom:1,label:{show:!0,position:`right`,fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:`justify`,lineStyle:{color:$.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:$.color.primary}},animationEasing:`linear`,animationDuration:1e3},t}(tK),ZBe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),QBe=function(e){X(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ZBe},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient===`vertical`?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Kz(this)},t.prototype.downplay=function(){qz(this)},t}(BR),$Be=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Y3,t._mainGroup=new BF,t}return t.prototype.init=function(e,t){this._controller=new f2(t.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,t,n){var r=e.getGraph(),i=this._mainGroup,a=e.layoutInfo,o=a.width,s=a.height,c=e.getData(),l=e.getData(`edge`),u=e.get(`orient`);i.removeAll(),i.x=a.x,i.y=a.y,this._updateViewCoordSys(e,n),e4(e,n,this._controller,YFe(i),null),r.eachEdge(function(t){var n=new QBe,r=cz(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType=`edge`;var a=t.getModel(),c=a.getModel(`lineStyle`),d=c.get(`curveness`),f=t.node1.getLayout(),p=t.node1.getModel(),m=p.get(`localX`),h=p.get(`localY`),g=t.node2.getLayout(),_=t.node2.getModel(),v=_.get(`localX`),y=_.get(`localY`),b=t.getLayout(),x,S,C,w,T,E,D,O;n.shape.extent=Math.max(1,b.dy),n.shape.orient=u,u===`vertical`?(x=(m==null?f.x:m*o)+b.sy,S=(h==null?f.y:h*s)+f.dy,C=(v==null?g.x:v*o)+b.ty,w=y==null?g.y:y*s,T=x,E=S*(1-d)+w*d,D=C,O=S*d+w*(1-d)):(x=(m==null?f.x:m*o)+f.dx,S=(h==null?f.y:h*s)+b.sy,C=v==null?g.x:v*o,w=(y==null?g.y:y*s)+b.ty,T=x*(1-d)+C*d,E=S,D=x*d+C*(1-d),O=w),n.setShape({x1:x,y1:S,x2:C,y2:w,cpx1:T,cpy1:E,cpx2:D,cpy2:O}),n.useStyle(c.getItemStyle()),eVe(n.style,u,t);var k=``+a.get(`value`),A=hH(a,`edgeLabel`);mH(n,A,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,`edge`,i,gj(a,A.normal&&A.normal.get(`formatter`),k),o)}},labelDataIndex:t.dataIndex,defaultText:k}),n.setTextConfig({position:`inside`});var j=a.getModel(`emphasis`);cB(n,a,`lineStyle`,function(e){var n=e.getItemStyle();return eVe(n,u,t),n}),i.add(n),l.setItemGraphicEl(t.dataIndex,n);var M=j.get(`focus`);aB(n,M===`adjacency`?t.getAdjacentDataIndices():M===`trajectory`?t.getTrajectoryDataIndices():M,j.get(`blurScope`),j.get(`disabled`))}),r.eachNode(function(t){var n=t.getLayout(),r=t.getModel(),a=r.get(`localX`),l=r.get(`localY`),u=r.getModel(`emphasis`),d=r.get([`itemStyle`,`borderRadius`])||0,f=new qR({shape:{x:a==null?n.x:a*o,y:l==null?n.y:l*s,width:n.dx,height:n.dy,r:d},style:r.getModel(`itemStyle`).getItemStyle(),z2:10});mH(f,hH(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,`node`)}},labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle(`fill`,t.getVisual(`color`)),f.setStyle(`decal`,t.getVisual(`style`).decal),cB(f,r),i.add(f),c.setItemGraphicEl(t.dataIndex,f),cz(f).dataType=`node`;var p=u.get(`focus`);aB(f,p===`adjacency`?t.getAdjacentDataIndices():p===`trajectory`?t.getTrajectoryDataIndices():p,u.get(`blurScope`),u.get(`disabled`))}),c.eachItemGraphicEl(function(t,r){c.getItemModel(r).get(`draggable`)&&(t.drift=function(t,i){this.shape.x+=t,this.shape.y+=i,this.dirty(),n.dispatchAction({type:`dragNode`,seriesId:e.id,dataIndex:c.getRawIndex(r),localX:this.shape.x/o,localY:this.shape.y/s})},t.draggable=!0,t.cursor=`move`)}),!this._data&&e.isAnimationEnabled()&&i.setClipPath(tVe(i.getBoundingRect(),e,function(){i.removeClipPath()})),this._data=e.getData(),this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,t,n){J2(this.group,2,t.coordinateSystem,null)},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype._updateViewCoordSys=function(e,t){var n=e.layoutInfo,r=e.coordinateSystem=r4(e,t,n.x,n.y,n.width,n.height);J2(this.group,2,r,this._firstRender?null:e)},t.type=Y3,t}(cK);function eVe(e,t,n){switch(e.fill){case`source`:e.fill=n.node1.getVisual(`color`),e.decal=n.node1.getVisual(`style`).decal;break;case`target`:e.fill=n.node2.getVisual(`color`),e.decal=n.node2.getVisual(`style`).decal;break;case`gradient`:var r=n.node1.getVisual(`color`),i=n.node2.getVisual(`color`);rj(r)&&rj(i)&&(e.fill=new eV(0,0,+(t===`horizontal`),+(t===`vertical`),[{color:r,offset:0},{color:i,offset:1}]))}}function tVe(e,t,n){var r=new qR({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return hV(r,{shape:{width:e.width+20}},t,n),r}var nVe=_L(Y3,rVe);function rVe(e,t){e.eachSeriesByType(Y3,function(e){var n=e.get(`nodeWidth`),r=e.get(`nodeGap`),i=YU(e,t).refContainer,a=KU(e.getBoxLayoutParams(),i);e.layoutInfo=a;var o=a.width,s=a.height,c=e.getGraph(),l=c.nodes,u=c.edges;aVe(l),iVe(l,u,n,r,o,s,XA(l,function(e){return e.getLayout().value===0}).length===0?e.get(`layoutIterations`):0,e.get(`orient`),e.get(`nodeAlign`))})}function iVe(e,t,n,r,i,a,o,s,c){oVe(e,t,n,i,a,s,c),dVe(e,t,a,i,r,o,s),bVe(e,s)}function aVe(e){Q(e,function(e){var t=$3(e.outEdges,Q3),n=$3(e.inEdges,Q3),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)})}function oVe(e,t,n,r,i,a,o){for(var s=[],c=[],l=[],u=[],d=0,f=0;f=0;_&&g.depth>p&&(p=g.depth),h.setLayout({depth:_?g.depth:d},!0),a===`vertical`?h.setLayout({dy:n},!0):h.setLayout({dx:n},!0);for(var v=0;vd-1?p:d-1;o&&o!==`left`&&cVe(e,o,a,C),uVe(e,a===`vertical`?(i-n)/C:(r-n)/C,a)}function sVe(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function cVe(e,t,n,r){if(t===`right`){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)c*=.99,mVe(s,c,o),X3(s,i,n,r,o),yVe(s,c,o),X3(s,i,n,r,o)}function fVe(e,t){var n=[],r=t===`vertical`?`y`:`x`,i=nL(e,function(e){return e.getLayout()[r]});return dI(i.keys),Q(i.keys,function(e){n.push(i.buckets.get(e))}),n}function pVe(e,t,n,r,i,a){var o=1/0;Q(e,function(e){var t=e.length,s=0;Q(e,function(e){s+=e.getLayout().value});var c=a===`vertical`?(r-(t-1)*i)/s:(n-(t-1)*i)/s;c0&&(o=s.getLayout()[a]+c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]+s.getLayout()[d]+t;var p=i===`vertical`?r:n;if(c=l-t-p,c>0){o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0),l=o;for(var f=u-2;f>=0;--f)s=e[f],c=s.getLayout()[a]+s.getLayout()[d]+t-l,c>0&&(o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]}})}function mVe(e,t,n){Q(e.slice().reverse(),function(e){Q(e,function(e){if(e.outEdges.length){var r=$3(e.outEdges,hVe,n)/$3(e.outEdges,Q3);if(isNaN(r)){var i=e.outEdges.length;r=i?$3(e.outEdges,gVe,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-Z3(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-Z3(e,n))*t;e.setLayout({y:o},!0)}}})})}function hVe(e,t){return Z3(e.node2,t)*e.getValue()}function gVe(e,t){return Z3(e.node2,t)}function _Ve(e,t){return Z3(e.node1,t)*e.getValue()}function vVe(e,t){return Z3(e.node1,t)}function Z3(e,t){return t===`vertical`?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Q3(e){return e.getValue()}function $3(e,t,n){for(var r=0,i=e.length,a=-1;++aa&&(a=t)}),Q(n,function(t){var n=new M4({type:`color`,mappingMethod:`linear`,dataExtent:[i,a],visual:e.get(`color`)}).mapValueToVisual(t.getLayout().value),r=t.getModel().get([`itemStyle`,`color`]);r==null?(t.setVisual(`color`,n),t.setVisual(`style`,{fill:n})):(t.setVisual(`color`,r),t.setVisual(`style`,{fill:r}))})}r.length&&Q(r,function(e){var t=e.getModel().get(`lineStyle`);e.setVisual(`style`,t)})})}function CVe(e){e.registerChartView($Be),e.registerSeriesModel(XBe),e.registerLayout(nVe),e.registerVisual(xVe),e.registerAction({type:`dragNode`,event:`dragnode`,update:`update`},function(e,t){t.eachComponent({mainType:uz,subType:Y3,query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),n4(e,uz,Y3)}var wVe=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},e.prototype.getInitialData=function(e,t){var n,r=t.getComponent(`xAxis`,this.get(`xAxisIndex`)),i=t.getComponent(`yAxis`,this.get(`yAxisIndex`)),a=r.get(`type`),o=i.get(`type`),s,c=e.layout;a===`category`?(c=`horizontal`,n=r.getOrdinalMeta(),s=!this._hasEncodeRule(`x`)):o===`category`&&(c=`vertical`,n=i.getOrdinalMeta(),s=!this._hasEncodeRule(`y`)),c||=o===`time`?`vertical`:`horizontal`,this._layout=c;var l=[`x`,`y`],u=c===`horizontal`?0:1,d=this._baseAxisDim=l[u],f=l[1-u],p=[r,i],m=p[u].get(`type`),h=p[1-u].get(`type`),g=e.data;if(g&&s){var _=[];Q(g,function(e,t){var n;tj(e)?(n=e.slice(),e.unshift(t)):tj(e.value)?(n=Z({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,_.push(n)}),e.data=_}var v=this.defaultValueDimensions,y=[{name:d,type:QJ(m),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:[`base`]},{name:f,type:QJ(h),dimsDef:v.slice()}];return o0(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:ej(dW,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+`Axis`,this.get(e+`AxisIndex`)).axis},e.prototype.getWhiskerBoxesLayout=function(){return this._layout},e}();function e6(e,t){for(var n=t.ends.length,r=0,i=0;ih){var b=[_,y];r.push(b)}}}return{boxData:n,outliers:r}}var zVe={type:`echarts:boxplot`,transform:function(e){var t=e.upstream;t.sourceFormat!==`arrayRows`&&PI(``);var n=RVe(t.getRawData(),e.config);return[{dimensions:[`ItemName`,`Low`,`Q1`,`Q2`,`Q3`,`High`],data:n.boxData},{data:n.outliers}]}};function BVe(e){e.registerSeriesModel(TVe),e.registerChartView(EVe),e.registerLayout(NVe),e.registerTransform(zVe),LVe(e)}var n6=`candlestick`,VVe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`open`,defaultTooltip:!0},{name:`close`,defaultTooltip:!0},{name:`lowest`,defaultTooltip:!0},{name:`highest`,defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return`open`},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type=`series.`+n6,t.dependencies=[`xAxis`,`yAxis`,`grid`],t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:`#eb5454`,color0:`#47b262`,borderColor:`#eb5454`,borderColor0:`#47b262`,borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:`mod`,animationEasing:`linear`,animationDuration:300},t}(tK);KA(VVe,wVe,!0);var HVe=[`itemStyle`,`borderColor`],UVe=[`itemStyle`,`borderColor0`],WVe=[`itemStyle`,`borderColorDoji`],GVe=[`itemStyle`,`color`],KVe=[`itemStyle`,`color0`];function r6(e,t){return t.get(e>0?GVe:KVe)}function i6(e,t){return t.get(e===0?WVe:e>0?HVe:UVe)}var qVe={seriesType:n6,plan:oK(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;(n=e.next())!=null;){var r=t.getItemModel(n),i=t.getItemLayout(n).sign,a=r.getItemStyle();a.fill=r6(i,r),a.stroke=i6(i,r)||a.fill,Z(t.ensureUniqueItemVisual(n,`style`),a)}}}}},JVe=[`color`,`borderColor`],YVe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){QV(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout(`isSimpleBox`),a=e.get(`clip`,!0),o=e.coordinateSystem,s=o.getArea&&o.getArea(),c=a&&j$(o,!1,e);this._data||r.removeAll();var l=$Ve(e);t.diff(n).add(function(n){if(t.hasValue(n)){var o=t.getItemLayout(n),u=a?e6(s,o):0;if(u===2)return;var d=a6(o,n,l,!0);hV(d,{shape:{points:o.ends}},e,n),M$(u===1,d,c),o6(d,t,n,i),r.add(d),t.setItemGraphicEl(n,d)}}).update(function(o,u){var d=n.getItemGraphicEl(u);if(!t.hasValue(o)){r.remove(d);return}var f=t.getItemLayout(o),p=a?e6(s,f):0;if(p===2){r.remove(d);return}d?(mV(d,{shape:{points:f.ends}},e,o),bV(d)):d=a6(f,o,l),o6(d,t,o,i),M$(p===1,d,c),r.add(d),t.setItemGraphicEl(o,d)}).remove(function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),tHe(e,this.group);var t=e.get(`clip`,!0)?j$(e.coordinateSystem,!1,e):null;M$(!!t,this.group,t)},t.prototype._incrementalRenderNormal=function(e,t){for(var n=t.getData(),r=n.getLayout(`isSimpleBox`),i=$Ve(t),a;(a=e.next())!=null;){var o=a6(n.getItemLayout(a),a,i);o6(o,n,a,r),o.incremental=hL(t),this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){tHe(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),M$(!1,this.group,null),this._data=null},t.type=n6,t}(cK),XVe=function(){function e(){}return e}(),ZVe=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`normalCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new XVe},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(BR);function a6(e,t,n,r){var i=e.ends;return new ZVe({shape:{points:r?QVe(i,n,e):i},z2:100})}function o6(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,`style`)),e.style.strokeNoScale=!0;var a=i.getShallow(`cursor`);a&&e.attr(`cursor`,a),e.__simpleBox=r,cB(e,i);var o=t.getItemLayout(n).sign;Q(e.states,function(e,t){var n=i.getModel(t),r=r6(o,n),a=i6(o,n)||r,s=e.style||={};r&&(s.fill=r),a&&(s.stroke=a)});var s=i.getModel(`emphasis`);aB(e,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))}function QVe(e,t,n){return JA(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}function $Ve(e){return+(e.getWhiskerBoxesLayout()===`horizontal`)}var eHe=function(){function e(){}return e}(),s6=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new eHe},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;rh?x[a]:b[a],ends:w,brushRect:O(g,_,p)})}function E(e,n){var r=[];return r[i]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function D(e,t,n){var a=t.slice(),o=t.slice();a[i]=FV(a[i]+r/2,1,!1),o[i]=FV(o[i]-r/2,1,!0),n?e.push(a,o):e.push(o,a)}function O(e,t,n){var o=E(e,n),s=E(t,n);return o[i]-=r/2,s[i]-=r/2,{x:o[0],y:o[1],width:a?r:s[0]-o[0],height:a?s[1]-o[1]:r}}function k(e){return e[i]=FV(e[i],1),e}}function m(n,r){for(var o=S$(n.count*4),c=0,p,m=[],h=[],g,_=r.getStore(),v=!!e.get([`itemStyle`,`borderColorDoji`]);(g=n.next())!=null;){var y=_.get(s,g),b=_.get(l,g),x=_.get(u,g),S=_.get(d,g),C=_.get(f,g);if(isNaN(y)||isNaN(S)||isNaN(C)){o[c++]=NaN,c+=3;continue}o[c++]=aHe(_,g,b,x,u,v),m[i]=y,m[a]=S,p=t.dataToPoint(m,null,h),o[c++]=p?p[0]:NaN,o[c++]=p?p[1]:NaN,m[a]=C,p=t.dataToPoint(m,null,h),o[c++]=p?p[1]:NaN}r.setLayout(`largePoints`,o)}}};function aHe(e,t,n,r,i,a){return n>r?-1:n0?e.get(i,t-1)<=r?1:-1:1}function oHe(e,t){var n=dZ(e.getBaseAxis(),{fromStat:{key:w1(n6)},min:1}).w,r=sI(hj(e.get(`barMaxWidth`),n),n),i=sI(hj(e.get(`barMinWidth`),1),n),a=e.get(`barWidth`);return a==null?ZF(XF(n/2,r),i):sI(a,n)}function sHe(e){rHe(e,function(){var t=w1(n6);OX(e,{key:t,seriesType:n6,getMetrics:E1}),LX(t,C1(t))})}function cHe(e){e.registerChartView(YVe),e.registerSeriesModel(VVe),e.registerPreprocessor(nHe),e.registerVisual(qVe),e.registerLayout(iHe),sHe(e)}function lHe(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType===`stroke`?n:null,fill:t.brushType===`fill`?n:null}})})}var uHe=function(e){X(t,e);function t(t,n){var r=e.call(this)||this,i=new p$(t,n),a=new BF;return r.add(i),r.add(a),r.updateData(t,n),r}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),a=0;a0&&(a=this._getLineLength(r)/c*1e3),a!==this._period||o!==this._loop||s!==this._roundTrip){r.stopAnimation();var u=void 0;u=nj(l)?l(n):l,r.__t>0&&(u=-a*r.__t),this._animateSymbol(r,a,u,o,s)}this._period=a,this._loop=o,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var a=this,o=e.animate(``,r).when(i?t*2:t,{__t:i?2:1}).delay(n).during(function(){a._updateSymbolPosition(e)});r||o.done(function(){a.remove(e)}),o.start()}},t.prototype._getLineLength=function(e){return qj(e.__p1,e.__cp1)+qj(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t<=1?e.__t:2-e.__t,a=[e.x,e.y],o=a.slice(),s=jN,c=MN;a[0]=s(t[0],r[0],n[0],i),a[1]=s(t[1],r[1],n[1],i);var l=e.__t<=1?c(t[0],r[0],n[0],i):c(n[0],r[0],t[0],1-i),u=e.__t<=1?c(t[1],r[1],n[1],i):c(n[1],r[1],t[1],1-i);e.rotation=-Math.atan2(u,l)-Math.PI/2,(this._symbolType===`line`||this._symbolType===`rect`||this._symbolType===`roundRect`)&&(e.__lastT!==void 0&&e.__lastT=0&&!(r[o]<=t);o--);o=Math.min(o,i-2)}else{for(o=a;ot);o++);o=Math.min(o-1,i-2)}var s=(t-r[o])/(r[o+1]-r[o]),c=n[o],l=n[o+1];e.x=c[0]*(1-s)+s*l[0],e.y=c[1]*(1-s)+s*l[1];var u=e.__t<=1?l[0]-c[0]:c[0]-l[0],d=e.__t<=1?l[1]-c[1]:c[1]-l[1];e.rotation=-Math.atan2(d,u)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(hHe),vHe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),yHe=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new vHe},t.prototype.buildPath=function(e,t){var n=t.segs,r=t.curveness,i;if(t.polyline)for(i=this._off;i0){e.moveTo(n[i++],n[i++]);for(var o=1;o0){var d=(s+l)/2-(c-u)*r,f=(c+u)/2-(l-s)*r;e.quadraticCurveTo(d,f,l,u)}else e.lineTo(l,u)}this.incremental&&(this._off=i,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s0)for(var l=r[s++],u=r[s++],d=1;d0){if(OR(l,u,(l+f)/2-(u-p)*i,(u+p)/2-(f-l)*i,f,p,a,e,t))return o}else if(DR(l,u,f,p,a,e,t))return o;o++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,r=1/0,i=-1/0,a=-1/0,o=0;o0&&(a.dataIndex=n+e.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),xHe={seriesType:`lines`,plan:oK(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get(`polyline`),r=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,c=i.end-i.start;if(n){for(var l=0,u=i.start;u0&&c&&s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)}),i.updateData(r);var l=e.get(`clip`,!0)&&j$(e.coordinateSystem,!1,e);l?this.group.setClipPath(l):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateLineDraw(r,e).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData(),hL(t)),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=this._lineDraw;if(!this._finished||!i||!i.updateLayout)return{update:!0};var a=xHe.reset(e,t,n);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),i.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get(`polyline`),a=t.pipelineContext.large;return(!n||r!==this._hasEffet||i!==this._isPolyline||a!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=a?new bHe:new u3(i?r?_He:gHe:r?hHe:l3),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get([`effect`,`show`])},t.prototype._clearLayer=function(e){var t=uH(e);t&&this._lastZlevel!=null&&t.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type=`lines`,t}(cK),CHe=typeof Uint32Array>`u`?Array:Uint32Array,wHe=typeof Float64Array>`u`?Array:Float64Array;function THe(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=JA(t,function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),VA([t,e[0],e[1]])}))}var EHe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`lineStyle`,n.visualDrawType=`stroke`,n}return t.prototype.init=function(t){t.data=t.data||[],THe(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(THe(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Dj(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Dj(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow(`coords`)},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],r=this._flatCoordsOffset[e*2+1],i=0;i `)}return VG(`nameValue`,{name:o,value:i,noValue:i==null||isNaN(i)})},t.prototype.preventIncremental=function(){return!!this.get([`effect`,`show`])},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?1e4:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?2e4:this.get(`progressiveThreshold`))},t.prototype.getZLevelKey=function(){var e=this.getModel(`effect`),t=e.get(`trailLength`);return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get(`show`)&&t>0?t+``:``},t.type=`series.lines`,t.dependencies=[`grid`,`polar`,`geo`,`calendar`],t.defaultOption={coordinateSystem:`geo`,z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:[`none`,`none`],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:`circle`,symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:`end`},lineStyle:{opacity:.5}},t}(tK);function l6(e){return e instanceof Array||(e=[e,e]),e}var DHe={seriesType:`lines`,reset:function(e){var t=l6(e.get(`symbol`)),n=l6(e.get(`symbolSize`)),r=e.getData();r.setVisual(`fromSymbol`,t&&t[0]),r.setVisual(`toSymbol`,t&&t[1]),r.setVisual(`fromSymbolSize`,n&&n[0]),r.setVisual(`toSymbolSize`,n&&n[1]);function i(e,t){var n=e.getItemModel(t),r=l6(n.getShallow(`symbol`,!0)),i=l6(n.getShallow(`symbolSize`,!0));r[0]&&e.setItemVisual(t,`fromSymbol`,r[0]),r[1]&&e.setItemVisual(t,`toSymbol`,r[1]),i[0]&&e.setItemVisual(t,`fromSymbolSize`,i[0]),i[1]&&e.setItemVisual(t,`toSymbolSize`,i[1])}return{dataEach:r.hasItemOption?i:null}}};function OHe(e){e.registerChartView(SHe),e.registerSeriesModel(EHe),e.registerLayout(xHe),e.registerVisual(DHe)}var kHe=256,AHe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=EA.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,`inRange`),c=this._getGradient(i,`outOfRange`),l=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext(`2d`),f=e.length;u.width=t,u.height=n;for(var p=0;p0){var E=a(v)?s:c;v>0&&(v=v*w+C),b[x++]=E[T],b[x++]=E[T+1],b[x++]=E[T+2],b[x++]=E[T+3]*v*256}else x+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||=EA.createCanvas(),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var r=e.getContext(`2d`);return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor=$.color.neutral99,r.beginPath(),r.arc(-t,t,this.pointSize,0,Math.PI*2,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}();function jHe(e,t,n){var r=e[1]-e[0];t=JA(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}});var i=t.length,a=0;return function(e){var r;for(r=a;r=0;r--){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r=t[0]&&e<=t[1]}}var NHe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r;t.eachComponent(`visualMap`,function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;i.type===`cartesian2d`||i.type===`calendar`||i.type===`matrix`?this._renderOnGridLike(e,n,0,e.getData().count()):F$(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(F$(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnGridLike(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){QV(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,n,r,i){var a=e.coordinateSystem,o=P$(a,`cartesian2d`),s=P$(a,`matrix`),c,l,u,d;if(o){var f=a.getAxis(`x`),p=a.getAxis(`y`);c=dZ(f).w+.5,l=dZ(p).w+.5,u=f.scale.getExtent(),d=p.scale.getExtent()}for(var m=this.group,h=e.getData(),g=e.getModel([`emphasis`,`itemStyle`]).getItemStyle(),_=e.getModel([`blur`,`itemStyle`]).getItemStyle(),v=e.getModel([`select`,`itemStyle`]).getItemStyle(),y=e.get([`itemStyle`,`borderRadius`]),b=hH(e),x=e.getModel(`emphasis`),S=x.get(`focus`),C=x.get(`blurScope`),w=x.get(`disabled`),T=o||s?[h.mapDimension(`x`),h.mapDimension(`y`),h.mapDimension(`value`)]:[h.mapDimension(`time`),h.mapDimension(`value`)],E=n;Eu[1]||Ad[1])continue;var j=a.dataToPoint([k,A]);D=new qR({shape:{x:j[0]-c/2,y:j[1]-l/2,width:c,height:l},style:O})}else if(s){var M=a.dataToLayout([h.get(T[0],E),h.get(T[1],E)]).rect;if(pj(M.x))continue;D=new qR({z2:1,shape:M,style:O})}else{if(isNaN(h.get(T[1],E)))continue;var N=a.dataToLayout([h.get(T[0],E)]),M=N.contentRect||N.rect;if(pj(M.x)||pj(M.y))continue;D=new qR({z2:1,shape:M,style:O})}if(h.hasItemOption){var P=h.getItemModel(E),F=P.getModel(`emphasis`);g=F.getModel(`itemStyle`).getItemStyle(),_=P.getModel([`blur`,`itemStyle`]).getItemStyle(),v=P.getModel([`select`,`itemStyle`]).getItemStyle(),y=P.get([`itemStyle`,`borderRadius`]),S=F.get(`focus`),C=F.get(`blurScope`),w=F.get(`disabled`),b=hH(P)}D.shape.r=y;var I=e.getRawValue(E),L=`-`;I&&I[2]!=null&&(L=I[2]+``),mH(D,b,{labelFetcher:e,labelDataIndex:E,defaultOpacity:O.opacity,defaultText:L}),D.ensureState(`emphasis`).style=g,D.ensureState(`blur`).style=_,D.ensureState(`select`).style=v,aB(D,S,C,w),D.incremental=hL(e,i),i&&(D.states.emphasis.hoverLayer=2),m.add(D),h.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new AHe;s.blurSize=t.get(`blurSize`),s.pointSize=t.get(`pointSize`),s.minOpacity=t.get(`minOpacity`),s.maxOpacity=t.get(`maxOpacity`);var c=e.getViewRect().clone(),l=e.getRoamTransform();c.applyTransform(l);var u=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,r.getWidth()),p=Math.min(c.height+c.y,r.getHeight()),m=f-u,h=p-d,g=[o.mapDimension(`lng`),o.mapDimension(`lat`),o.mapDimension(`value`)],_=o.mapArray(g,function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=u,i[1]-=d,i.push(r),i}),v=n.getExtent(),y=n.type===`visualMap.continuous`?MHe(v,n.option.range):jHe(v,n.getPieceList(),n.option.selected);s.update(_,m,h,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new HR({style:{width:m,height:h,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type=`heatmap`,t}(cK),PHe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return xY(null,this,{generateCoord:`value`})},t.prototype.preventIncremental=function(){var e=NU.get(this.get(`coordinateSystem`));if(e&&e.dimensions)return e.dimensions[0]===`lng`&&e.dimensions[1]===`lat`},t.type=`series.heatmap`,t.dependencies=[`grid`,`geo`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:$.color.primary}}},t}(tK);function FHe(e){e.registerChartView(NHe),e.registerSeriesModel(PHe)}var IHe=[`itemStyle`,`borderWidth`],LHe=[{xy:`x`,wh:`width`,index:0,posDesc:[`left`,`right`]},{xy:`y`,wh:`height`,index:1,posDesc:[`top`,`bottom`]}],u6=new kB,RHe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=D1,t}return t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis().isHorizontal(),c=o.master.getRect(),l={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:s,valueDim:LHe[+s],categoryDim:LHe[1-s]};i.diff(a).add(function(e){if(i.hasValue(e)){var t=zHe(i,e,YHe(i,e),l),n=QHe(i,l,t);i.setItemGraphicEl(e,n),r.add(n),nUe(n,l,t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!i.hasValue(e)){r.remove(n);return}var o=zHe(i,e,YHe(i,e),l),s=tUe(i,o);n&&s!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?$He(n,l,o):n=QHe(i,l,o,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=o,r.add(n),nUe(n,l,o)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&eUe(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute();var u=e.get(`clip`,!0)?j$(e.coordinateSystem,!1,e):null;return u?r.setClipPath(u):r.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get(`animation`)?r&&r.eachItemGraphicEl(function(t){eUe(r,cz(t).dataIndex,e,t)}):n.removeAll()},t.type=D1,t}(cK);function zHe(e,t,n,r){var i=e.getItemLayout(t),a=n.get(`symbolRepeat`),o=n.get(`symbolClip`),s=n.get(`symbolPosition`)||`start`,c=(n.get(`symbolRotate`)||0)*Math.PI/180||0,l=n.get(`symbolPatternSize`)||2,u=n.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,`symbol`)||`circle`,style:e.getItemVisual(t,`style`),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get(`symbolRepeatDirection`),symbolPatternSize:l,rotation:c,animationModel:u?n:null,hoverScale:u&&n.get([`emphasis`,`scale`]),z2:n.getShallow(`z`,!0)||0};BHe(n,a,i,r,d),VHe(e,t,i,a,o,d.boundingLength,d.pxSign,l,r,d),HHe(n,d.symbolScale,c,r,d);var f=d.symbolSize;return UHe(n,f,i,a,o,$K(n.get(`symbolOffset`),f),s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function BHe(e,t,n,r,i){var a=r.valueDim,o=e.get(`symbolBoundingData`),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=s.toGlobalCoord(s.dataToCoord(0)),l=1-(n[a.wh]<=0),u;if(tj(o)){var d=[d6(s,o[0])-c,d6(s,o[1])-c];d[1]=0?1:-1:u>0?1:-1}function d6(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function VHe(e,t,n,r,i,a,o,s,c,l){var u=c.valueDim,d=c.categoryDim,f=Math.abs(n[d.wh]),p=e.getItemVisual(t,`symbolSize`),m=tj(p)?p.slice():p==null?[`100%`,`100%`]:[p,p];m[d.index]=sI(m[d.index],f),m[u.index]=sI(m[u.index],r?f:Math.abs(a)),l.symbolSize=m;var h=l.symbolScale=[m[0]/s,m[1]/s];h[u.index]*=(c.isHorizontal?-1:1)*o}function HHe(e,t,n,r,i){var a=e.get(IHe)||0;a&&(u6.attr({scaleX:t[0],scaleY:t[1],rotation:n}),u6.updateTransform(),a/=u6.getLineScale(),a*=t[r.valueDim.index]),i.valueLineWidth=a||0}function UHe(e,t,n,r,i,a,o,s,c,l,u,d){var f=u.categoryDim,p=u.valueDim,m=d.pxSign,h=Math.max(t[p.index]+s,0),g=h;if(r){var _=Math.abs(c),v=mj(e.get(`symbolMargin`),`15%`)+``,y=!1;v.lastIndexOf(`!`)===v.length-1&&(y=!0,v=v.slice(0,v.length-1));var b=sI(v,t[p.index]),x=Math.max(h+b*2,0),S=y?0:b*2,C=DI(r),w=C?r:rUe((_+S)/x);b=(_-w*h)/2/(y?w:Math.max(w-1,1)),x=h+b*2,S=y?0:b*2,!C&&r!==`fixed`&&(w=l?rUe((Math.abs(l)+S)/x):0),g=w*x-S,d.repeatTimes=w,d.symbolMargin=b}var T=g/2*m,E=d.pathPosition=[];E[f.index]=n[f.wh]/2,E[p.index]=o===`start`?T:o===`end`?c-T:c/2,a&&(E[0]+=a[0],E[1]+=a[1]);var D=d.bundlePosition=[];D[f.index]=n[f.xy],D[p.index]=n[p.xy];var O=d.barRectShape=Z({},n);O[p.wh]=m*Math.max(Math.abs(n[p.wh]),Math.abs(E[p.index]+T)),O[f.wh]=n[f.wh];var k=d.clipShape={};k[f.xy]=-n[f.xy],k[f.wh]=u.ecSize[f.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}function WHe(e){var t=e.symbolPatternSize,n=ZK(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!==`image`&&n.setStyle({strokeNoScale:!0}),n}function GHe(e,t,n,r){var i=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,c=t.valueDim,l=n.repeatTimes||0,u=0,d=a[t.valueDim.index]+o+n.symbolMargin*2;for(f6(e,function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=l,u0:r<0)&&(i=l-1-e),t[c.index]=d*(i-l/2+.5)+s[c.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function KHe(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?p6(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=e.__pictorialMainPath=WHe(n),i.add(a),p6(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function qHe(e,t,n){var r=Z({},t.barRectShape),i=e.__pictorialBarRect;i?p6(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new qR({z2:2,shape:r,silent:!0,style:{stroke:`transparent`,fill:`transparent`,lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function JHe(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,a=Z({},n.clipShape),o=t.valueDim,s=n.animationModel,c=n.dataIndex;if(i)mV(i,{shape:a},s,c);else{a[o.wh]=0,i=new qR({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var l={};l[o.wh]=n.clipShape[o.wh],xV[r?`updateProps`:`initProps`](i,{shape:l},s,c)}}}function YHe(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=XHe,n.isAnimationEnabled=ZHe,n}function XHe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function ZHe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow(`animation`)}function QHe(e,t,n,r){var i=new BF,a=new BF;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?GHe(i,t,n):KHe(i,t,n),qHe(i,n,r),JHe(i,t,n,r),i.__pictorialShapeStr=tUe(e,n),i.__pictorialSymbolMeta=n,i}function $He(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;mV(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?GHe(e,t,n,!0):KHe(e,t,n,!0),qHe(e,n,!0),JHe(e,t,n,!0)}function eUe(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];f6(r,function(e){a.push(e)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),Q(a,function(e){_V(e,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function tUe(e,t){return[e.getItemVisual(t.dataIndex,`symbol`)||`none`,!!t.symbolRepeat,!!t.symbolClip].join(`:`)}function f6(e,t,n){Q(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function p6(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&xV[i?`updateProps`:`initProps`](e,n,r.animationModel,r.dataIndex,a)}function nUe(e,t,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel(`emphasis`),o=a.getModel(`itemStyle`).getItemStyle(),s=i.getModel([`blur`,`itemStyle`]).getItemStyle(),c=i.getModel([`select`,`itemStyle`]).getItemStyle(),l=i.getShallow(`cursor`),u=a.get(`focus`),d=a.get(`blurScope`),f=a.get(`scale`);f6(e,function(e){if(e instanceof HR){var t=e.style;e.useStyle(Z({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState(`emphasis`);r.style=o,f&&(r.scaleX=e.scaleX*1.1,r.scaleY=e.scaleY*1.1),e.ensureState(`blur`).style=s,e.ensureState(`select`).style=c,l&&(e.cursor=l),e.z2=n.z2});var p=t.valueDim.posDesc[+(n.boundingLength>0)],m=e.__pictorialBarRect;m.ignoreClip=!0,mH(m,hH(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:d$(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),aB(e,u,d,a.get(`disabled`))}function rUe(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var iUe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol=`roundRect`,n}return t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type=`series.`+D1,t.dependencies=[`grid`],t.defaultOption=NH(B1.defaultOption,{symbol:`circle`,symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:`end`,symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:`-100%`,clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:$.color.primary}}}),t}(B1);function aUe(e){e.registerChartView(RHe),e.registerSeriesModel(iUe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,I1(D1)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,L1(D1)),z1(e)}var m6=2,h6=`themeRiver`,oUe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new s0($A(this.getData,this),$A(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=nL(e,function(e){return n.hasOwnProperty(e[0]+``)||(n[e[0]+``]=-1),e[2]}),i=[];r.buckets.each(function(e,t){i.push({name:t,dataList:e})});for(var a=i.length,o=0;oa&&(a=s),r.push(s)}for(var l=0;la&&(a=d)}return{y0:i,max:a}}function pUe(e){e.registerChartView(sUe),e.registerSeriesModel(oUe),e.registerLayout(lUe),e.registerProcessor(a0(h6))}var mUe=2,hUe=4,gUe=function(e){X(t,e);function t(t,n,r,i){var a=e.call(this)||this;a.z2=mUe,a.textConfig={inside:!0},cz(a).seriesIndex=n.seriesIndex;var o=new ZR({z2:hUe,silent:t.getModel().get([`label`,`silent`])});return a.setTextContent(o),a.updateData(!0,t,n,r,i),a}return t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n||=this._seriesModel,r||=this._ecModel;var a=this;cz(a).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel(`emphasis`),c=t.getLayout(),l=Z({},c);l.label=null;var u=t.getVisual(`style`);u.lineJoin=`bevel`;var d=t.getVisual(`decal`);d&&(u.decal=Dq(d,i)),Z(l,W1(o.getModel(`itemStyle`),l,!0)),Q(Tz,function(e){var t=a.ensureState(e),n=o.getModel([e,`itemStyle`]);t.style=n.getItemStyle();var r=W1(n,l);r&&(t.shape=r)}),e?(a.setShape(l),a.shape.r=c.r0,hV(a,{shape:{r:c.r}},n,t.dataIndex)):(mV(a,{shape:l},n),bV(a)),a.useStyle(u),this._updateLabel(n);var f=o.getShallow(`cursor`);f&&a.attr(`cursor`,f),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get(`focus`),m=p===`relative`?Dj(t.getAncestorsIndices(),t.getDescendantIndices()):p===`ancestor`?t.getAncestorsIndices():p===`descendant`?t.getDescendantIndices():p;aB(this,m,s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel(`label`),i=this.node.getLayout(),a=i.endAngle-i.startAngle,o=(i.startAngle+i.endAngle)/2,s=Math.cos(o),c=Math.sin(o),l=this,u=l.getTextContent(),d=this.node.dataIndex,f=r.get(`minAngle`)/180*Math.PI;u.ignore=!(r.get(`show`)&&!(f!=null&&Math.abs(a)T&&!yI(D-T)&&D0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new gUe(r,e,t,n),c.add(i.virtualPiece)),a.piece.off(`click`),i.virtualPiece.on(`click`,function(e){i._rootToNode(a.parentNode)})):i.virtualPiece&&=(c.remove(i.virtualPiece),null)}},t.prototype._initEvents=function(){var e=this;this.group.off(`click`),this.group.on(`click`,function(t){var n=!1;e.seriesModel.getViewRoot().eachNode(function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get(`nodeClick`);if(i===`rootToNode`)e._rootToNode(r);else if(i===`link`){var a=r.getModel(),o=a.get(`link`);o&&AU(o,a.get(`target`,!0)||`_blank`)}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:_6,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=g6,t}(cK),CUe=_L(g6,wUe);function wUe(e){var t={};function n(e,n,r){if(e.depth===0)return $.color.neutral50;for(var i=e;i&&i.depth>1;)i=i.parentNode;var a=n.getColorFromPalette(i.name||i.dataIndex+``,t);return e.depth>1&&rj(a)&&(a=$N(a,(e.depth-1)/(r-1)*.5)),a}e.eachSeriesByType(g6,function(e){var t=e.getData(),r=t.tree;r.eachNode(function(i){var a=i.getModel().getModel(`itemStyle`).getItemStyle();a.fill||=n(i,e,r.root.height),Z(t.ensureUniqueItemVisual(i.dataIndex,`style`),a)})})}var TUe=Math.PI/180,EUe=_L(g6,DUe);function DUe(e,t){e.eachSeriesByType(g6,function(e){var n=e.get(`center`),r=e.get(`radius`);tj(r)||(r=[0,r]),tj(n)||(n=[n,n]);var i=t.getWidth(),a=t.getHeight(),o=Math.min(i,a),s=sI(n[0],i),c=sI(n[1],a),l=sI(r[0],o/2),u=sI(r[1],o/2),d=-e.get(`startAngle`)*TUe,f=e.get(`minAngle`)*TUe,p=e.getData().tree.root,m=e.getViewRoot(),h=m.depth,g=e.get(`sort`);g!=null&&OUe(m,g);var _=0;Q(m.children,function(e){!isNaN(e.getValue())&&_++});var v=m.getValue(),y=Math.PI/(v||_)*2,b=m.depth>0,x=m.height-(b?-1:1),S=(u-l)/(x||1),C=e.get(`clockwise`),w=e.get(`stillShowZeroSum`),T=C?1:-1,E=function(t,n){if(t){var r=n;if(t!==p){var i=t.getValue(),a=v===0&&w?y:i*y;ar[1]&&r.reverse(),{coordSys:{type:`polar`,cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:$A(BUe,e)}}}function HUe(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:`calendar`,x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}function UUe(e){var t=e.getRect();return{coordSys:{type:`matrix`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}var WUe={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},GUe=QA(WUe);YA(mF,function(e,t){return e[t]=1,e},{}),mF.join(`, `);var y6=[``,`style`,`shape`,`extra`],b6=YI();function x6(e,t,n,r,i){var a=e+`Animation`,o=fV(e,r,i)||{},s=b6(t).userDuring;return o.duration>0&&(o.during=s?$A(ZUe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Z(o,n[a]),o}function S6(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=b6(e),l=t.style;c.userDuring=t.during;var u={},d={};if(eWe(e,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m0&&e.animateFrom(g,_)}else JUe(e,t,i||0,n,u);KUe(e,t),l?e.dirty():e.markRedraw()}function KUe(e,t){for(var n=b6(e).leaveToProps,r=0;r0&&e.animateFrom(i,a)}}function YUe(e,t){Aj(t,`silent`)&&(e.silent=t.silent),Aj(t,`ignore`)&&(e.ignore=t.ignore),e instanceof qL&&Aj(t,`invisible`)&&(e.invisible=t.invisible),e instanceof BR&&Aj(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var T6={},XUe={setTransform:function(e,t){return T6.el[e]=t,this},getTransform:function(e){return T6.el[e]},setShape:function(e,t){var n=T6.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=T6.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=T6.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=T6.el.style;if(t)return t[e]},setExtra:function(e,t){var n=T6.el.extra||(T6.el.extra={});return n[e]=t,this},getExtra:function(e){var t=T6.el.extra;if(t)return t[e]}};function ZUe(){var e=this,t=e.el;if(t){var n=b6(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}T6.el=t,r(XUe)}}function QUe(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c)if(!o&&(o=r[e]={}),w6(c))Z(o,a);else for(var l=RI(c),u=0;u=0){!o&&(o=r[e]={});for(var p=QA(a),u=0;u=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=QA(n),l=0;l=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a}function C(n,r){r??=u;var i=t.getItemVisual(r,`style`),a=i&&i.fill,o=i&&i.opacity,s=y(r,k6).getItemStyle();a!=null&&(s.fill=a),o!=null&&(s.opacity=o);var c={inheritColor:rj(a)?a:$.color.neutral99},l=b(r,k6),d=gH(l,null,c,!1,!0);d.text=l.getShallow(`show`)?hj(e.getFormattedLabel(r,k6),d$(t,r)):null;var f=_H(l,c,!1);return E(n,s),s=z$(s,d,f),n&&T(s,n),s.legacy=!0,s}function w(n,r){r??=u;var i=y(r,O6).getItemStyle(),a=b(r,O6),o=gH(a,null,null,!0,!0);o.text=a.getShallow(`show`)?gj(e.getFormattedLabel(r,O6),e.getFormattedLabel(r,k6),d$(t,r)):null;var s=_H(a,null,!0);return E(n,i),i=z$(i,o,s),n&&T(i,n),i.legacy=!0,i}function T(e,t){for(var n in t)Aj(t,n)&&(e[n]=t[n])}function E(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function D(e,n){if(n??=u,Aj(jUe,e)){var r=t.getItemVisual(n,`style`);return r?r[jUe[e]]:null}if(Aj(MUe,e))return t.getItemVisual(n,e)}function O(e){if(o.type===`cartesian2d`)return mNe(UA({axis:o.getBaseAxis()},e))}function k(){return n.getCurrentSeriesIndices()}function A(e){return SH(e,n)}}function hWe(e){var t={};return Q(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=t[i]=t[i]||[];a[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function B6(e,t,n,r,i,a,o){if(!r){a.remove(t);return}var s=V6(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&aB(s,r.focus,r.blurScope,r.emphasisDisabled),s}function V6(e,t,n,r,i,a){var o=-1,s=t;t&&gWe(t,r,i)&&(o=WA(a.childrenRef(),t),t=null);var c=!t,l=t;l?l.clearStates():(l=R6(r),s&&lWe(s,l)),r.morph===!1?l.disableMorphing=!0:l.disableMorphing&&=!1,r.tooltipDisabled&&(l.tooltipDisabled=!0),F6.normal.cfg=F6.normal.conOpt=F6.emphasis.cfg=F6.emphasis.conOpt=F6.blur.cfg=F6.blur.conOpt=F6.select.cfg=F6.select.conOpt=null,F6.isLegacy=!1,vWe(l,n,r,i,c,F6),_We(l,n,r,i,c),z6(e,l,n,r,F6,i,c),Aj(r,`info`)&&(v6(l).info=r.info);for(var u=0;u=0?a.replaceAt(l,o):a.add(l),l}function gWe(e,t,n){var r=v6(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i===`path`&&DWe(a)&&EWe(a)!==r.customPathData||i===`image`&&Aj(o,`image`)&&o.image!==r.customImagePath}function _We(e,t,n,r,i){var a=n.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&gWe(o,a,r)&&(o=null),o||(o=R6(a),e.setClipPath(o)),z6(null,o,t,a,null,r,i)}}function vWe(e,t,n,r,i,a){if(!(e.isGroup||e.type===`compoundPath`)){yWe(n,null,a),yWe(n,O6,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,c=a.blur.conOpt,l=a.select.conOpt;if(o!=null||s!=null||l!=null||c!=null){var u=e.getTextContent();if(o===!1)u&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:`text`},u?u.clearStates():(u=R6(o),e.setTextContent(u)),z6(null,u,t,o,null,r,i);for(var d=o&&o.style,f=0;f=u;p--)xWe(t,t.childAt(p),i)}}function xWe(e,t,n){t&&C6(t,v6(e).option,n)}function SWe(e){new XJ(e.oldChildren,e.newChildren,CWe,CWe,e).add(wWe).update(wWe).remove(TWe).execute()}function CWe(e,t){return(e&&e.name)??sWe+t}function wWe(e,t){var n=this.context,r=e==null?null:n.newChildren[e],i=t==null?null:n.oldChildren[t];V6(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function TWe(e){var t=this.context,n=t.oldChildren[e];n&&C6(n,v6(n).option,t.seriesModel)}function EWe(e){return e&&(e.pathData||e.d)}function DWe(e){return e&&(Aj(e,`pathData`)||Aj(e,`d`))}function OWe(e){e.registerChartView(uWe),e.registerSeriesModel(NUe)}var W6=YI(),kWe=zA,G6=$A,K6=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new BF,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=ej(AWe,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}NWe(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&dZ(r).w>o)return!0;if(a){var s=R0(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=W6(e).pointerEl=new xV[i.type](kWe(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=W6(e).labelEl=new ZR(kWe(t.label));e.add(i),MWe(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=W6(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=W6(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),MWe(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=UV(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){hM(e.event)},onmousedown:G6(this._onHandleDragMove,this,0,0),drift:G6(this._onHandleDragMove,this),ondragend:G6(this._onHandleDragEnd,this)}),n.add(r)),NWe(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);tj(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,hK(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){AWe(this._axisPointerModel,!t&&this._moveAnimation,this._handle,q6(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(q6(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(q6(r)),W6(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),gK(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function AWe(e,t,n,r){jWe(W6(n).lastProp,r)||(W6(n).lastProp=r,t?mV(n,r,e):(n.stopAnimation(),n.attr(r)))}function jWe(e,t){if(oj(e)&&oj(t)){var n=!0;return Q(t,function(t,r){n&&=jWe(e[r],t)}),!!n}else return e===t}function MWe(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function q6(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function NWe(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function J6(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function PWe(e,t,n,r,i){var a=IWe(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=SU(o.get(`padding`)||0),c=o.getFont(),l=CF(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),FWe(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:gH(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function FWe(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function IWe(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:cX(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Q(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),rj(o)?a=o.replace(`{value}`,a):nj(o)&&(a=o(s))}return a}function Y6(e,t,n){var r=yM();return wM(r,r,n.rotation),CM(r,r,n.position),LV([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function LWe(e,t,n,r,i,a){var o=f1.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),PWe(t,r,i,a,{position:Y6(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function X6(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function RWe(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function zWe(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r,startAngle:i,endAngle:a,clockwise:!0}}function Z6(e,t,n){return dZ(e,{fromStat:{sers:JA(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function Q6(e,t,n){return[ZF(XF(t[0],t[1]),e-n/2),XF(e+n/2,ZF(t[0],t[1]))]}var BWe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=VWe(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=J6(r),f=HWe[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}LWe(t,e,x1(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=x1(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=Y6(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=VWe(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=XF(o[1],l[c]),l[c]=ZF(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(K6);function VWe(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var HWe={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:X6([t,r[0]],[t,r[1]],UWe(e))}},shadow:function(e,t,n,r,i,a){var o=Z6(e,i,a),s=r[1]-r[0],c=Q6(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:RWe([l,r[0]],[u-l,s],UWe(e))}}};function UWe(e){return e.dim===`x`?0:1}var WWe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}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:$.color.border,width:1,type:`dashed`},shadowStyle:{color:$.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:$.color.neutral00,padding:[5,7,5,7],backgroundColor:$.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:$.color.accent40,throttle:40}},t}(tW),$6=YI(),GWe=Q;function KWe(e,t,n){if(!TA.node){var r=t.getZr();$6(r).records||($6(r).records={}),qWe(r,t);var i=$6(r).records[e]||($6(r).records[e]={});i.handler=n}}function qWe(e,t){if($6(e).initialized)return;$6(e).initialized=!0,n(`click`,ej(e8,`click`)),n(`mousemove`,ej(e8,`mousemove`)),n(`mousewheel`,ej(e8,`mousewheel`)),n(`globalout`,YWe);function n(n,r){e.on(n,function(n){var i=XWe(t);GWe($6(e).records,function(e){e&&r(e,n,i.dispatchAction)}),JWe(i.pendings,t)})}}function JWe(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function YWe(e,t,n){e.handler(`leave`,null,n)}function e8(e,t,n,r){t.handler(e,n,r)}function XWe(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function t8(e,t){if(!TA.node){var n=t.getZr();($6(n).records||{})[e]&&($6(n).records[e]=null)}}var ZWe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;KWe(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){t8(`axisPointer`,t)},t.prototype.dispose=function(e,t){t8(`axisPointer`,t)},t.type=`axisPointer`,t}(aK);function QWe(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=JI(a,e);if(o==null||o<0||tj(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(JA(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var $We=YI();function eGe(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||$A(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){n8(i)&&(i=QWe({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=n8(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||n8(i),f={},p={},m={list:[],map:{}},h={showPointer:ej(rGe,p),showTooltip:ej(iGe,m)};Q(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);Q(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=cGe(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&tGe(e,o,h,!1,f)}})});var g={};return Q(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&Q(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,lGe(t),lGe(e)))),g[e.key]=a}})}),Q(g,function(e,t){tGe(u[t],e,h,!0,f)}),aGe(p,u,f),oGe(m,i,e,o),sGe(u,o,n),f}}function tGe(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=nGe(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&Z(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function nGe(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return Q(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(jI(u)){var p=e-u,m=Math.abs(p);m<=o&&((m=0&&s<0)&&(o=m,s=p,i=u,a.length=0),Q(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function rGe(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function iGe(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=B0(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function aGe(e,t,n){var r=n.axesInfo=[];Q(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function oGe(e,t,n,r){if(n8(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function sGe(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=$We(r)[i]||{},o=$We(r)[i]={};Q(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&Q(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}Q(a,function(e,t){!o[t]&&c.push(l(e))}),Q(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function cGe(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function lGe(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function n8(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function r8(e){H0.registerAxisPointerClass(`CartesianAxisPointer`,BWe),e.registerComponentModel(WWe),e.registerComponentView(ZWe),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!tj(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=sPe(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},eGe)}function uGe(e){qJ(Y0),qJ(r8)}var dGe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis;a.dim===`angle`&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=a.getExtent(),c=o.getOtherAxis(a).getExtent(),l=a.dataToCoord(t),u=r.get(`type`);if(u&&u!==`none`){var d=J6(r),f=pGe[u](a,o,l,s,c,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}PWe(e,n,r,i,fGe(t,n,r,o,r.get([`label`,`margin`])))},t}(K6);function fGe(e,t,n,r,i){var a=t.axis,o=a.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var c=r.getRadiusAxis().getExtent(),l,u,d;if(a.dim===`radius`){var f=yM();wM(f,f,s),CM(f,f,[r.cx,r.cy]),l=LV([o,-i],f);var p=t.getModel(`axisLabel`).get(`rotate`)||0,m=f1.innerTextLayout(s,p*Math.PI/180,-1);u=m.textAlign,d=m.textVerticalAlign}else{var h=c[1];l=r.coordToPoint([h+i,o]);var g=r.cx,_=r.cy;u=Math.abs(l[0]-g)/h<.3?`center`:l[0]>g?`left`:`right`,d=Math.abs(l[1]-_)/h<.3?`middle`:l[1]>_?`top`:`bottom`}return{position:l,align:u,verticalAlign:d}}var pGe={line:function(e,t,n,r,i){return e.dim===`angle`?{type:`Line`,shape:X6(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:`Circle`,shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r,i,a,o){var s=Math.PI/180,c=Z6(e,a,o),l;if(e.dim===`angle`)l=zWe(t.cx,t.cy,i[0],i[1],(-n-c/2)*s,(-n+c/2)*s);else{var u=Q6(n,r,c),d=u[0],f=u[1];l=zWe(t.cx,t.cy,d,f,0,Math.PI*2)}return{type:`Sector`,shape:l}}},i8=`polar`,mGe=i8,hGe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},t.type=i8,t.dependencies=[`radiusAxis`,`angleAxis`],t.defaultOption={z:0,center:[`50%`,`50%`],radius:`80%`},t}(tW),a8=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`polar`,QI).models[0]},t.type=`polarAxis`,t}(tW);KA(a8,gX);var gGe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`angleAxis`,t}(a8),_Ge=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`radiusAxis`,t}(a8),o8=function(e){X(t,e);function t(t,n){return e.call(this,`radius`,t,n)||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t}(pZ);o8.prototype.dataToRadius=pZ.prototype.dataToCoord,o8.prototype.radiusToData=pZ.prototype.coordToData;var vGe=YI(),s8=function(e){X(t,e);function t(t,n){return e.call(this,`angle`,t,n||[0,360])||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var a=r[0],o=e.dataToCoord(a+1)-e.dataToCoord(a),s=Math.abs(o),c=CF(a==null?``:a+``,t.getFont(),`center`,`top`),l=Math.max(c.height,7)/s;isNaN(l)&&(l=1/0);var u=Math.max(0,Math.floor(l)),d=vGe(e.model),f=d.lastAutoInterval,p=d.lastTickCount;return f!=null&&p!=null&&Math.abs(f-u)<=1&&Math.abs(p-i)<=1&&f>u?u=f:(d.lastTickCount=i,d.lastAutoInterval=u),u},t}(pZ);s8.prototype.dataToAngle=pZ.prototype.dataToCoord,s8.prototype.angleToData=pZ.prototype.coordToData;var yGe=[`radius`,`angle`],bGe=function(){function e(e){this.dimensions=yGe,this.type=i8,this.cx=0,this.cy=0,this._radiusAxis=new o8,this._angleAxis=new s8,this.axisPointerEnabled=!0,this.name=e||``,this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t=`_`+e+`Axis`;return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=e!=null&&e!==`auto`?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],n)},e.prototype.pointToData=function(e,t,n){n||=[];var r=this.pointToCoord(e);return n[0]=this._radiusAxis.radiusToData(r[0],t),n[1]=this._angleAxis.angleToData(r[1],t),n},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);r.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var c=Math.atan2(-n,t)/Math.PI*180,l=co;)c+=l*360;return[s,c]},e.prototype.coordToPoint=function(e,t){t||=[];var n=e[0],r=e[1]/180*Math.PI;return t[0]=Math.cos(r)*n+this.cx,t[1]=-Math.sin(r)*n+this.cy,t},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180,i=1e-4;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,a=n*n+r*r,o=this.r,s=this.r0;return o!==s&&a-i<=o*o&&a+i>=s*s},x:this.cx-t[1],y:this.cy-t[1],width:t[1]*2,height:t[1]*2}},e.prototype.convertToPixel=function(e,t,n){return xGe(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return xGe(t)===this?this.pointToData(n):null},e}();function xGe(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function SGe(e,t,n){var r=t.get(`center`),i=YU(t,n).refContainer;e.cx=sI(r[0],i.width)+i.x,e.cy=sI(r[1],i.height)+i.y;var a=e.getRadiusAxis(),o=Math.min(i.width,i.height)/2,s=t.get(`radius`);s==null?s=[0,`100%`]:tj(s)||(s=[0,s]);var c=[sI(s[0],o),sI(s[1],o)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}function CGe(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(FX(r,1),FX(i,1),VX(r),VX(i),r.type===`category`&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function wGe(e){return e.mainType===`angleAxis`}function TGe(e,t){if(e.type=aX(t),e.scale=oX(t,e.type,!1),e.onBand=hX(e.scale,t),e.inverse=t.get(`inverse`),wGe(t)){e.inverse=e.inverse!==t.get(`clockwise`);var n=t.get(`startAngle`),r=t.get(`endAngle`)??n+(e.inverse?-360:360);e.setExtent(n,r)}t.axis=e,e.model=t}var EGe={dimensions:yGe,create:function(e,t){var n=[];return e.eachComponent(mGe,function(e,r){var i=new bGe(r+``);i.update=CGe;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel(`radiusAxis`),c=e.findAxisModel(`angleAxis`);TGe(a,s),TGe(o,c),SGe(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e}),e.eachSeries(function(e){if(e.get(`coordinateSystem`)===`polar`){var t=e.coordinateSystem=e.getReferringComponents(mGe,QI).models[0].coordinateSystem;t&&(EX(t.getRadiusAxis(),e,i8),EX(t.getAngleAxis(),e,i8))}}),n}},DGe=[`axisLine`,`axisLabel`,`axisTick`,`minorTick`,`splitLine`,`minorSplitLine`,`splitArea`];function c8(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function l8(e){return+!e.getRadiusAxis().inverse}function OGe(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var kGe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`PolarAxisPointer`,n}return t.prototype.render=function(e,t){if(this.group.removeAll(),e.get(`show`)){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),a=n.getTicksCoords({breakTicks:`none`}),o=n.getMinorTicksCoords(),s=[];Q(n.getViewLabels(),function(e){if(!e.tick.offInterval){e=zA(e);var t=n.scale;e.coord=n.dataToCoord(mX(t,e.tick)),s.push(e)}}),OGe(s),OGe(a),Q(DGe,function(t){e.get([t,`show`])&&(!n.scale.isBlank()||t===`axisLine`)&&AGe[t](this.group,e,r,a,o,i,s)},this)}},t.type=`angleAxis`,t}(H0),AGe={axisLine:function(e,t,n,r,i,a){var o=t.getModel([`axisLine`,`lineStyle`]),s=n.getAngleAxis(),c=Math.PI/180,l=s.getExtent(),u=l8(n),d=+!u,f,p=Math.abs(l[1]-l[0])===360?`Circle`:`Arc`;f=a[d]===0?new xV[p]({shape:{cx:n.cx,cy:n.cy,r:a[u],startAngle:-l[0]*c,endAngle:-l[1]*c,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):new UB({shape:{cx:n.cx,cy:n.cy,r:a[u],r0:a[d]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,e.add(f)},axisTick:function(e,t,n,r,i,a){var o=t.getModel(`axisTick`),s=(o.get(`inside`)?-1:1)*o.get(`length`),c=a[l8(n)],l=JA(r,function(e){return new qB({shape:c8(n,[c,c+s],e.coord)})});e.add(MV(l,{style:UA(o.getModel(`lineStyle`).getLineStyle(),{stroke:t.get([`axisLine`,`lineStyle`,`color`])})}))},minorTick:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel(`axisTick`),s=t.getModel(`minorTick`),c=(o.get(`inside`)?-1:1)*s.get(`length`),l=a[l8(n)],u=[],d=0;dm?`left`:`right`,_=Math.abs(p[1]-h)/f<.3?`middle`:p[1]>h?`top`:`bottom`;if(s&&s[d]){var v=s[d];oj(v)&&v.textStyle&&(o=new jH(v.textStyle,c,c.ecModel))}var y=new ZR({silent:f1.isLabelSilent(t),style:gH(o,{x:p[0],y:p[1],fill:o.getTextColor()||t.get([`axisLine`,`lineStyle`,`color`]),text:r.formattedLabel,align:g,verticalAlign:_})});if(e.add(y),XV({el:y,componentModel:t,itemName:r.formattedLabel,formatterParamsExtra:{isTruncated:function(){return y.isTruncated},value:r.rawLabel,tickIndex:i}}),u){var b=f1.makeAxisEventDataBase(t);b.targetType=`axisLabel`,b.value=r.rawLabel,cz(y).eventData=b}},this)},splitLine:function(e,t,n,r,i,a){var o=t.getModel(`splitLine`).getModel(`lineStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=0;u=0?`p`:`n`,T=y;_&&(r[a][C]||(r[a][C]={p:y,n:y}),T=r[a][C][w]);var E=void 0,D=void 0,O=void 0,k=void 0;if(u.dim===`radius`){var A=u.dataToCoord(S)-y,j=e.dataToCoord(C);QF(A)=k})}}function BGe(e,t){var n=T1(t,i8),r=dZ(e,{fromStat:{key:n},min:1}).w,i=r,a=0,o=`20%`,s=`30%`,c={};xX(e,n,function(e){var t=IGe(e);c[t]||a++,c[t]=c[t]||{width:0,maxWidth:0};var n=sI(e.get(`barWidth`),r),l=sI(e.get(`barMaxWidth`),r),u=e.get(`barGap`),d=e.get(`barCategoryGap`);n&&!c[t].width&&(n=XF(i,n),c[t].width=n,i-=n),l&&(c[t].maxWidth=l),u!=null&&(s=u),d!=null&&(o=d)});var l={},u=sI(o,r),d=sI(s,1),f=(i-u)/(a+(a-1)*d);f=ZF(f,0),Q(c,function(e,t){var n=e.maxWidth;n&&n=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e,t,n){n||=[];var r=this.getAxis();return n[0]=r.coordToData(r.toLocalCoord(e[r.orient===`horizontal`?0:1])),n},e.prototype.dataToPoint=function(e,t,n){var r=this.getAxis(),i=this.getRect();n||=[];var a=r.orient===`horizontal`?0:1;return e instanceof Array&&(e=e[0]),n[a]=r.toGlobalCoord(r.dataToCoord(+e)),n[1-a]=a===0?i.y+i.height/2:i.x+i.width/2,n},e.prototype.convertToPixel=function(e,t,n){return QGe(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return QGe(t)===this?this.pointToData(n):null},e}();function QGe(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function $Ge(e,t){var n=[];return e.eachComponent(Z0,function(r,i){var a=new ZGe(r,e,t);a.name=`single_`+i,a.resize(r,t),r.coordinateSystem=a,n.push(a)}),e.eachSeries(function(e){if(e.get(`coordinateSystem`)===`singleAxis`){var t=e.getReferringComponents(Z0,QI).models[0],n=e.coordinateSystem=t&&t.coordinateSystem;n&&EX(n.getAxis(),e,X0)}}),n}var eKe={create:$Ge,dimensions:XGe},tKe=[`x`,`y`],nKe=[`width`,`height`],rKe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.coordinateSystem,s=d8(a),c=f8(o,s),l=f8(o,1-s),u=o.dataToPoint(t)[0],d=r.get(`type`);if(d&&d!==`none`){var f=J6(r),p=iKe[d](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);p.style=f,e.graphicKey=p.type,e.pointer=p}LWe(t,e,u8(n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=u8(t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=Y6(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.coordinateSystem,o=d8(i),s=f8(a,o),c=[e.x,e.y];c[o]+=t[o],c[o]=Math.min(s[1],c[o]),c[o]=Math.max(s[0],c[o]);var l=f8(a,1-o),u=(l[1]+l[0])/2,d=[u,u];return d[o]=c[o],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:`middle`}}},t}(K6),iKe={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:X6([t,r[0]],[t,r[1]],d8(e))}},shadow:function(e,t,n,r,i,a){var o=Z6(e,i,a),s=r[1]-r[0],c=Q6(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:RWe([l,r[0]],[u-l,s],d8(e))}}};function d8(e){return+!e.isHorizontal()}function f8(e,t){var n=e.getRect();return[n[tKe[t]],n[tKe[t]]+n[nKe[t]]]}var aKe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`single`,t}(aK);function oKe(e){qJ(r8),H0.registerAxisPointerClass(`SingleAxisPointer`,rKe),e.registerComponentView(aKe),e.registerComponentView(qGe),e.registerComponentModel(Q0),C0(e,`single`,Q0,Q0.defaultOption),e.registerCoordinateSystem(`single`,eKe)}var sKe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=$U(t);e.prototype.init.apply(this,arguments),cKe(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),cKe(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type=`calendar`,t.layoutMode=`box`,t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:`horizontal`,splitLine:{show:!0,lineStyle:{color:$.color.axisLine,width:1,type:`solid`}},itemStyle:{color:$.color.neutral00,borderWidth:1,borderColor:$.color.neutral10},dayLabel:{show:!0,firstDay:0,position:`start`,margin:$.size.s,color:$.color.secondary},monthLabel:{show:!0,position:`start`,margin:$.size.s,align:`center`,formatter:null,color:$.color.secondary},yearLabel:{show:!0,position:null,margin:$.size.xl,formatter:null,color:$.color.quaternary,fontFamily:`sans-serif`,fontWeight:`bolder`,fontSize:20}},t}(tW);function cKe(e,t){var n=e.cellSize,r=tj(n)?n:e.cellSize=[n,n];r.length===1&&(r[1]=r[0]),QU(e,t,{type:`box`,ignoreSize:JA([0,1],function(e){return IEe(t,e)&&(r[e]=`auto`),r[e]!=null&&r[e]!==`auto`})})}var lKe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,a=i.getRangeInfo(),o=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,a,r),this._renderLines(e,a,o,r),this._renderYearText(e,a,o,r),this._renderMonthText(e,s,o,r),this._renderWeekText(e,s,a,o,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel(`itemStyle`).getItemStyle(),a=r.getCellWidth(),o=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var c=r.dataToCalendarLayout([s],!1).tl,l=new qR({shape:{x:c[0],y:c[1],width:a,height:o},cursor:`default`,style:i});n.add(l)}},t.prototype._renderLines=function(e,t,n,r){var i=this,a=e.coordinateSystem,o=e.getModel([`splitLine`,`lineStyle`]).getLineStyle(),s=e.get([`splitLine`,`show`]),c=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var l=t.start,u=0;l.time<=t.end.time;u++){f(l.formatedDate),u===0&&(l=a.getDateInfo(t.start.y+`-`+t.start.m));var d=l.date;d.setMonth(d.getMonth()+1),l=a.getDateInfo(d)}f(a.getNextNDay(t.end.time,1).formatedDate);function f(t){i._firstDayOfMonth.push(a.getDateInfo(t)),i._firstDayPoints.push(a.dataToCalendarLayout([t],!1).tl);var c=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(c[0]),i._blpoints.push(c[c.length-1]),s&&i._drawSplitline(c,o,r)}s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,c,n),o,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,c,n),o,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i=n===`horizontal`?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new KB({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),a=[],o=0;o<7;o++){var s=r.getNextNDay(i.time,o),c=r.dataToCalendarLayout([s.time],!1);a[2*s.day]=c.tl,a[2*s.day+1]=c[n===`horizontal`?`bl`:`tr`]}return a},t.prototype._formatterLabel=function(e,t){return rj(e)&&e?DU(e,t):nj(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var a=t[0],o=t[1],s=[`center`,`bottom`];r===`bottom`?(o+=i,s=[`center`,`top`]):r===`left`?a-=i:r===`right`?(a+=i,s=[`center`,`top`]):o-=i;var c=0;return(r===`left`||r===`right`)&&(c=Math.PI/2),{rotation:c,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel(`yearLabel`);if(i.get(`show`)){var a=i.get(`margin`),o=i.get(`position`);o||=n===`horizontal`?`left`:`top`;var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(s[0][0]+s[1][0])/2,l=(s[0][1]+s[1][1])/2,u=n===`horizontal`?0:1,d={top:[c,s[u][1]],bottom:[c,s[1-u][1]],left:[s[1-u][0],l],right:[s[u][0],l]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+`-`+t.end.y);var p=i.get(`formatter`),m={start:t.start.y,end:t.end.y,nameMap:f},h=new ZR({z2:30,style:gH(i,{text:this._formatterLabel(p,m)}),silent:i.get(`silent`)});h.attr(this._yearTextPositionControl(h,d[o],n,o,a)),r.add(h)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var a=`left`,o=`top`,s=e[0],c=e[1];return n===`horizontal`?(c+=i,t&&(a=`center`),r===`start`&&(o=`bottom`)):(s+=i,t&&(o=`middle`),r===`start`&&(a=`right`)),{x:s,y:c,align:a,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel(`monthLabel`);if(i.get(`show`)){var a=i.get(`nameMap`),o=i.get(`margin`),s=i.get(`position`),c=i.get(`align`),l=[this._tlpoints,this._blpoints];(!a||rj(a))&&(a&&(t=VH(a)||t),a=t.get([`time`,`monthAbbr`])||[]);var u=s===`start`?0:1,d=n===`horizontal`?0:1;o=s===`start`?-o:o;for(var f=c===`center`,p=i.get(`silent`),m=0;m=i.start.time&&r.timeo.end.time&&t.reverse(),t},e.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var r=Math.floor(t[1].time/p8)-Math.floor(t[0].time/p8)+1,i=new Date(t[0].time),a=i.getDate(),o=t[1].date.getDate();i.setDate(a+r-1);var s=i.getDate();if(s!==o)for(var c=i.getTime()-t[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-t[1].time)*c>0;)r-=c,i.setDate(s-c);var l=Math.floor((r+t[0].day+6)/7),u=n?-l+1:l-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:r,weeks:l,nthWeek:u,fweek:t[0].day,lweek:t[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||e===0&&tr.lweek)return null;var i=(e-1)*7-r.fweek+t,a=new Date(r.start.time);return a.setDate(+r.start.d+i),this.getDateInfo(a)},e.create=function(t,n){var r=[];return t.eachComponent(`calendar`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachComponent(function(e,t){LU({targetModel:t,coordSysType:`calendar`,coordSysProvider:RU})}),r},e.dimensions=[`time`,`value`],e}();function m8(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}function dKe(e){e.registerComponentModel(sKe),e.registerComponentView(lKe),e.registerCoordinateSystem(`calendar`,uKe)}var h8={level:1,leaf:2,nonLeaf:3},g8={none:0,all:1,body:2,corner:3};function _8(e,t,n){var r=t[CV[n]].getCell(e);return!r&&aj(e)&&e<0&&(r=t[CV[1-n]].getUnitLayoutInfo(n,Math.round(e))),r}function fKe(e){var t=e||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function pKe(e,t,n,r,i){mKe(e[0],t,i,n,r,0),mKe(e[1],t,i,n,r,1)}function mKe(e,t,n,r,i,a){e[0]=1/0,e[1]=-1/0;var o=r[a],s=tj(o)?o:[o],c=s.length,l=!!n;if(c>=1?(hKe(e,t,s,l,i,a,0),c>1&&hKe(e,t,s,l,i,a,c-1)):e[0]=e[1]=NaN,l){var u=-i[CV[1-a]].getLocatorCount(a),d=i[CV[a]].getLocatorCount(a)-1;n===g8.body?u=ZF(0,u):n===g8.corner&&(d=XF(-1,d)),d=t[0]&&e[0]<=t[1]}function bKe(e,t){e.id.set(t[0][0],t[1][0]),e.span.set(t[0][1]-e.id.x+1,t[1][1]-e.id.y+1)}function xKe(e,t){e[0][0]=t[0][0],e[0][1]=t[0][1],e[1][0]=t[1][0],e[1][1]=t[1][1]}function SKe(e,t,n,r){var i=_8(t[r][0],n,r),a=_8(t[r][1],n,r);e[CV[r]]=e[wV[r]]=NaN,i&&a&&(e[CV[r]]=i.xy,e[wV[r]]=a.xy+a.wh-i.xy)}function y8(e,t,n,r){return e[CV[t]]=n,e[CV[1-t]]=r,e}function CKe(e){return e&&(e.type===h8.leaf||e.type===h8.nonLeaf)?e:null}function b8(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var wKe=function(){function e(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e===`x`?0:1,this._model=t,this._uniqueValueGen=TKe(e);var n=t.get(`data`,!0),r=t.get(`length`,!0);if(n!=null&&!tj(n)&&(n=[]),n)this._initByDimModelData(n);else if(r!=null){n=Array(r);for(var i=0;i=1,y=n[CV[r]],b=a.getLocatorCount(r)-1,x=new iL;for(o.resetLayoutIterator(x,r);x.next();)S(x.item);for(a.resetLayoutIterator(x,r);x.next();)S(x.item);function S(e){pj(e.wh)&&(e.wh=_),e.xy=y,e.id[CV[r]]===b&&!v&&(e.wh=n[CV[r]]+n[wV[r]]-e.xy),y+=e.wh}}function UKe(e,t){for(var n=t[CV[e]].resetCellIterator();n.next();){var r=n.item;N8(r.rect,e,r.id,r.span,t),N8(r.rect,1-e,r.id,r.span,t),r.type===h8.nonLeaf&&(r.xy=r.rect[CV[e]],r.wh=r.rect[wV[e]])}}function WKe(e,t){e.travelExistingCells(function(e){var n=e.span;if(n){var r=e.spanRect,i=e.id;N8(r,0,i,n,t),N8(r,1,i,n,t)}})}function N8(e,t,n,r,i){e[wV[t]]=0;var a=n[CV[t]]<0?i[CV[1-t]]:i[CV[t]],o=a.getUnitLayoutInfo(t,n[CV[t]]);if(e[CV[t]]=o.xy,e[wV[t]]=o.wh,r[CV[t]]>1){var s=a.getUnitLayoutInfo(t,n[CV[t]]+r[CV[t]]-1);e[wV[t]]=s.xy+s.wh-o.xy}}function GKe(e,t,n){return P8(cI(e,n[wV[t]]),n[wV[t]])}function P8(e,t){return Math.max(Math.min(e,hj(t,1/0)),0)}function F8(e){var t=e.matrixModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var I8={inBody:1,inCorner:2,outside:3},L8={x:null,y:null,point:[]};function KKe(e,t,n,r,i){var a=n[CV[t]],o=n[CV[1-t]],s=a.getUnitLayoutInfo(t,a.getLocatorCount(t)-1),c=a.getUnitLayoutInfo(t,0),l=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),u=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,d=e.point[t]=r[t];if(!c&&!u){e[CV[t]]=I8.outside;return}if(i===g8.body){c?(e[CV[t]]=I8.inBody,d=XF(s.xy+s.wh,ZF(c.xy,d)),e.point[t]=d):e[CV[t]]=I8.outside;return}else if(i===g8.corner){u?(e[CV[t]]=I8.inCorner,d=XF(u.xy+u.wh,ZF(l.xy,d)),e.point[t]=d):e[CV[t]]=I8.outside;return}var f=c?c.xy:u?u.xy+u.wh:NaN,p=l?l.xy:f,m=s?s.xy+s.wh:f;if(dm){if(!i){e[CV[t]]=I8.outside;return}d=m}e.point[t]=d,e[CV[t]]=f<=d&&d<=m?I8.inBody:p<=d&&d<=f?I8.inCorner:I8.outside}function qKe(e,t,n,r){var i=1-n;if(e[CV[n]]!==I8.outside)for(r[CV[n]].resetCellIterator(M8);M8.next();){var a=M8.item;if(XKe(e.point[n],a.rect,n)&&XKe(e.point[i],a.rect,i)){t[n]=a.ordinal,t[i]=a.id[CV[i]];return}}}function JKe(e,t,n,r){if(e[CV[n]]!==I8.outside){for((e[CV[n]]===I8.inCorner?r[CV[1-n]]:r[CV[n]]).resetLayoutIterator(j8,n);j8.next();)if(YKe(e.point[n],j8.item)){t[n]=j8.item.id[CV[n]];return}}}function YKe(e,t){return t.xy<=e&&e<=t.xy+t.wh}function XKe(e,t,n){return t[CV[n]]<=e&&e<=t[CV[n]]+t[wV[n]]}function ZKe(e){e.registerComponentModel(AKe),e.registerComponentView(IKe),e.registerCoordinateSystem(`matrix`,VKe)}function QKe(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function $Ke(e,t){var n;return Q(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}function eqe(e,t,n){var r=Z({},n),i=e[t],a=n.$action||`merge`;a===`merge`?i?(BA(i,r,!0),QU(i,r,{ignoreSize:!0}),eW(n,i),R8(n,i),R8(n,i,`shape`),R8(n,i,`style`),R8(n,i,`extra`),n.clipPath=i.clipPath):e[t]=r:a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}var tqe=[`transition`,`enterFrom`,`leaveTo`],nqe=tqe.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function R8(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?tqe:nqe,i=0;i=0;c--){var l=n[c],u=GI(l.id,null),d=u==null?null:i.get(u);if(d){var f=d.parent,h=z8(f),g=f===r?{width:a,height:o}:{width:h.width,height:h.height},_={},v=XU(d,l,g,null,{hv:l.hv,boundingMode:l.bounding},_);if(!z8(d).isNew&&v){for(var y=l.transition,b={},x=0;x=0)?b[S]=C:d[S]=C}mV(d,b,e,0)}else d.attr(_)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){V8(n,z8(n).option,t,e._lastGraphicModel)}),this._elMap=Ej()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(aK);function B8(e){var t=new(Aj(aqe,e)?aqe[e]:OV(e))({});return z8(t).type=e,t}function sqe(e,t,n,r){var i=B8(n);return t.add(i),r.set(e,i),z8(i).id=e,z8(i).isNew=!0,i}function V8(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){V8(e,t,n,r)}),C6(e,t,r),n.removeKey(z8(e).id))}function cqe(e,t,n,r){e.isGroup||Q([[`cursor`,qL.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];Aj(t,r)?e[r]=hj(t[r],n[1]):e[r]??(e[r]=n[1])}),Q(QA(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=nj(r)?r:null}}),Aj(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function lqe(e){return e=Z({},e),Q([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(BU),function(t){delete e[t]}),e}function uqe(e,t,n){var r=cz(e).eventData;!e.silent&&!e.ignore&&!r&&(r=cz(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function dqe(e){e.registerComponentModel(iqe),e.registerComponentView(oqe),e.registerPreprocessor(function(e){var t=e.graphic;tj(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var fqe=[`x`,`y`,`radius`,`angle`,`single`],pqe=YI(),mqe=[`cartesian2d`,`polar`,`singleAxis`];function hqe(e){return WA(mqe,e.get(`coordinateSystem`))>=0}function H8(e){return e+`Axis`}function gqe(e,t){var n=Ej(),r=[],i=Ej();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function _qe(e){var t=e.ecModel,n={infoList:[],infoMap:Ej()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(H8(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}function vqe(e){var t=pqe(JK(e));return t.axisProxyMap||=Ej()}function U8(e){if(e)return vqe(e.ecModel).get(e.uid)}function yqe(e,t){vqe(e.ecModel).set(e.uid,t)}function bqe(e,t){var n=t.getAxisModel().axis.__alignTo;return n&&e.getAxisProxy(n.dim,n.model.componentIndex)?U8(n.model):null}var W8=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),G8=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=xqe(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=xqe(e);BA(this.option,e,!0),BA(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Q([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=Ej();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Q(fqe,function(n){var r=this.getReferringComponents(H8(n),uwe);if(r.specified){t=!0;var i=new W8;Q(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new W8;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,QI).models[0];o&&Q(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,QI).models[0]&&a.add(e.componentIndex)})}}}r&&Q(fqe,function(t){if(r){var i=n.findComponents({mainType:H8(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new W8;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);Q([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(H8(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){Q(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){return U8(this.getAxisModel(e,t))},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(H8(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Q([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Q([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getWindow().percent},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(e,t).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return U8(e);for(var t,n=this._targetAxisInfoMap.keys(),r=0;ra[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else Q(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});Q(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._extent;Q([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=oI(i,[0,100],n,!0)-n[0]):i=oI(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e}(),Tqe={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(H8(r),i),n)})})}var n=[];t(function(t,r,i,a){if(!U8(i)){var o=new wqe(t,r,a,e);n.push(o),yqe(i,o)}});var r=Ej();return Q(n,function(e){Q(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){var n=[];e.eachTargetAxis(function(t,r){var i=e.getAxisProxy(t,r),a=bqe(e,i);a?n.push([i,a]):i.reset(e,null)}),Q(n,function(t){t[0].reset(e,t[1].getWindow().percentInverted)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getWindow(),r=n.percent,i=n.value;e.setCalculatedRange({start:r[0],end:r[1],startValue:i[0],endValue:i[1]})}})}};function Eqe(e){e.registerAction(`dataZoom`,function(e,t){Q(gqe(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var Dqe=pL();function q8(e){Dqe(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Tqe),Eqe(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`})})}function Oqe(e){e.registerComponentModel(Sqe),e.registerComponentView(Cqe),q8(e)}var J8=function(){function e(){}return e}(),kqe={};function Y8(e,t){kqe[e]=t}function Aqe(e){return kqe[e]}var jqe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=r.getTheme().get(`toolbox`),a=i?i.feature:null;a&&(this._themeFeatureOption=Z({},a),i.feature={}),e.prototype.init.call(this,t,n,r),a&&(i.feature=a)},t.prototype.optionUpdated=function(){Q(this.option.feature,function(e,t){var n=this._themeFeatureOption,r=Aqe(t);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(this.ecModel)),n&&n[t]&&(BA(e,n[t]),n[t]=null),BA(e,r.defaultOption))},this)},t.type=`toolbox`,t.layoutMode={type:`box`,ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:`horizontal`,left:`right`,top:`top`,backgroundColor:`transparent`,borderColor:$.color.border,borderRadius:0,borderWidth:0,padding:$.size.m,itemSize:15,itemGap:$.size.s,showTitle:!0,iconStyle:{borderColor:$.color.accent50,color:`none`},emphasis:{iconStyle:{borderColor:$.color.accent70}},tooltip:{show:!1,position:`bottom`}},t}(tW);function Mqe(e,t){var n=SU(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new qR({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var Nqe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||=Ej(),l=[];Q(s,function(e,t){l.push(t)}),new XJ(this._featureNames||[],l).add(u).update(u).remove(ej(u,null)).execute(),this._featureNames=XA(l,function(e){return c.hasKey(e)});function u(i,a){var o=i!=null&&a==null,u=i!=null&&a!=null,f=i==null,p=o||u?l[i]:l[a],m=s[p],h=o||u?new jH(m,e,t):null,g=h&&h.get(`show`),_;if(o){if(!g)return;if(Pqe(p))_={onclick:h.option.onclick,featureName:p};else{var v=Aqe(p);if(!v)return;_=new v}c.set(p,_)}else _=c.get(p);if(f||!g){Fqe(_)&&_.dispose&&_.dispose(t,n),c.removeKey(p);return}r&&r.newTitle!=null&&r.featureName===p&&(m.title=r.newTitle),o&&(_.uid=MH(`toolbox-feature`)),_.model=h,_.ecModel=t,_.api=n,d(h,_,p),h.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?Kz:qz)(r[e])},Fqe(_)&&_.render&&_.render(h,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof J8&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;rj(d)?(p={},p[c]=d):p=d,rj(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};Q(p,function(c,d){var f=UV(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new ZR({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:SH({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),XV({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||$.color.neutral99,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?Kz:qz)(f),i.add(f),f.on(`click`,$A(s.onclick,s,t,n,d)),h[d]=f})}var f=YU(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=KU(p,f,m);UU(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),XU(i,p,f,m),i.add(Mqe(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||={},s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!nj(c)&&t){var l=c.style||={},u=CF(t,ZR.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},t.prototype.updateView=function(e,t,n,r){Q(this._features,function(e){e&&e instanceof J8&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.dispose=function(e,t){Q(this._features,function(n){n&&n instanceof J8&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(aK);function Pqe(e){return e.indexOf(`my`)===0}function Fqe(e){return e instanceof J8}var Iqe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){var n=this.model,r=n.get(`name`)||e.get(`title.0.text`)||`echarts`,i=t.getZr().painter.getType()===`svg`,a=i?`svg`:n.get(`type`,!0)||`png`,o=t.getConnectedDataURL({type:a,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||$.color.neutral00,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),s=TA.browser;if(typeof MouseEvent==`function`&&(s.newEdge||!s.ie&&!s.edge)){var c=document.createElement(`a`);c.download=r+`.`+a,c.target=`_blank`,c.href=o;var l=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(`,`),d=u[0].indexOf(`base64`)>-1,f=i?decodeURIComponent(u[1]):u[1];d&&(f=window.atob(f));var p=r+`.`+a;if(window.navigator.msSaveOrOpenBlob){for(var m=f.length,h=new Uint8Array(m);m--;)h[m]=f.charCodeAt(m);var g=new Blob([h]);window.navigator.msSaveOrOpenBlob(g,p)}else{var _=document.createElement(`iframe`);document.body.appendChild(_);var v=_.contentWindow,y=v.document;y.open(`image/svg+xml`,`replace`),y.write(f),y.close(),v.focus(),y.execCommand(`SaveAs`,!0,p),document.body.removeChild(_)}}else{var b=n.get(`lang`),x=``,S=window.open();S.document.write(x),S.document.title=r}},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:$.color.neutral00,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},t}(J8),X8=`__ec_magicType_stack__`,Lqe=[[`line`,`bar`],[`stack`]],Rqe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return Q(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if(zqe[n]){var a={series:[]};Q(Lqe,function(e){WA(e,n)>=0&&Q(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=zqe[n](t,i,e,r);o&&(UA(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,QI).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=BA({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},t}(J8),zqe={line:function(e,t,n,r){if(e===`bar`)return BA({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return BA({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===X8;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),BA({id:t,stack:i?``:X8},r.get([`option`,`stack`])||{},!0)}};IJ({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var Z8=Array(60).join(`-`),Q8=` `;function Bqe(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=lNe(a);t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function Vqe(e){var t=[];return Q(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(JA(e.series,function(e){return e.name})),o=[r.model.getCategories()];Q(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(Q8)],c=0;c`].join(r)}function uQ(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function dQ(e,t,n,r){return cQ(`svg`,`root`,{width:e,height:t,xmlns:aQ,"xmlns:xlink":oQ,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var zje=0;function fQ(){return zje++}var pQ={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`},mQ=`transform-origin`;function Bje(e,t,n){var r=Z({},e.shape);Z(r,t),e.buildPath(n,r);var i=new nQ;return i.reset(bP(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function Vje(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[mQ]=n+`px `+r+`px`)}var Hje={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function hQ(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function Uje(e,t,n){var r=e.shape.paths,i={},a,o;if(Q(r,function(e){var t=uQ(n.zrId);t.animation=!0,_Q(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=QA(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=hQ(i,n);return a.replace(o,s)}}function gQ(e){return rj(e)?pQ[e]?`cubic-bezier(`+pQ[e]+`)`:IN(e)?e:``:``}function _Q(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof QB){var s=Uje(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l0}).length)return hQ(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+fQ();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function Wje(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};vQ(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=sP(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),vQ(r,t,n,!0)}}function vQ(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+fQ(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var yQ=Math.round;function bQ(e){return e&&rj(e.src)}function xQ(e){return e&&nj(e.toDataURL)}function SQ(e,t,n,r){Mje(function(i,a){var o=i===`fill`||i===`stroke`;o&&vP(a)?AQ(t,e,i,r):o&&hP(a)?jQ(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),Zje(n,e,r)}function CQ(e,t){var n=KF(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[Fje+`silent`]=`true`))}function wQ(e){return dP(e[0]-1)&&dP(e[1])&&dP(e[2])&&dP(e[3]-1)}function Gje(e){return dP(e[4])&&dP(e[5])}function TQ(e,t,n){if(t&&!(Gje(t)&&wQ(t))){var r=n?10:1e4;e.transform=wQ(t)?`translate(`+yQ(t[4]*r)/r+` `+yQ(t[5]*r)/r+`)`:aCe(t)}}function EQ(e,t,n){for(var r=e.points,i=[],a=0;a`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;yj(f,g),yj(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=DL(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=cQ(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=zA(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=xP(i);x&&(o.patternTransform=x);var S=cQ(`pattern`,``,o,[d]),C=lQ(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=cQ(`pattern`,T,o,[d])),t[n]=yP(T)}}function Qje(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=cQ(`clipPath`,a,o,[OQ(e,n)])}t[`clip-path`]=yP(a)}function MQ(e){return document.createTextNode(e)}function NQ(e,t,n){e.insertBefore(t,n)}function PQ(e,t){e.removeChild(t)}function FQ(e,t){e.appendChild(t)}function IQ(e){return e.parentNode}function LQ(e){return e.nextSibling}function RQ(e,t){e.textContent=t}var zQ=58,$je=120,eMe=cQ(``,``);function BQ(e){return e===void 0}function VQ(e){return e!==void 0}function tMe(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function HQ(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function UQ(e){var t,n=e.children,r=e.tag;if(VQ(r)){var i=e.elm=sQ(r);if(KQ(eMe,e),tj(n))for(t=0;ta?(m=n[c+1]==null?null:n[c+1].elm,WQ(e,m,n,i,c)):GQ(e,t,r,a))}function qQ(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(KQ(e,t),BQ(t.text)?VQ(r)&&VQ(i)?r!==i&&nMe(n,r,i):VQ(i)?(VQ(e.text)&&RQ(n,``),WQ(n,null,i,0,i.length-1)):VQ(r)?GQ(n,r,0,r.length-1):VQ(e.text)&&RQ(n,``):e.text!==t.text&&(VQ(r)&&GQ(n,r,0,r.length-1),RQ(n,t.text)))}function rMe(e,t){if(HQ(e,t))qQ(e,t);else{var n=e.elm,r=IQ(n);UQ(t),r!==null&&(NQ(r,t.elm,LQ(n)),GQ(r,[e],0,0))}return t}var iMe=0,aMe=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=oMe(`configLayer`),this.storage=t,this._opts=n=Z({},n),this.root=e,this._id=`zr`+iMe++,this._oldVNode=dQ(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=sQ(`svg`);KQ(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,rMe(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return kQ(e,uQ(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=uQ(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=sMe(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=cQ(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=JA(QA(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(cQ(`defs`,`defs`,{},c)),e.animation){var l=Rje(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=cQ(`style`,`stl`,{},[],l);a.push(u)}}return dQ(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},lQ(this.renderToVNode({animation:hj(e.cssAnimation,!0),emphasis:hj(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:hj(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g=a}}for(var l=XQ(this),u=l.startIdx;u=0)&&(a=!0)}),!(!a&&!i.__dirty)){var o=n._opts.useDirtyRect&&!YQ(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}i$(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},u$),TA.wxa&&o$(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r)if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=YQ(e),c=s&&EA.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d15){d++;break}}}Cq(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=$Q,t=0);var i=a$(this._i,e)[t];return i||(i=n$(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&BA(i,this._layerConfig[e],!0),(n||r&&e!==$Q)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&uMe(e)){for(var l=o.length,u=0;u0&&(c=a$(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),a$(i,t)[n]=e,!r&&!e.virtual)if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom);e.painter||=this}},e.prototype.eachLayer=function(e,t){return o$(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return o$(this._i,function(n,r){e.call(t,n,r)},s$)},e.prototype.eachOtherLayer=function(e,t){return o$(this._i,function(n,r){e.call(t,n,r)},c$)},e.prototype.getLayers=function(){var e={};return o$(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(YQ(t)?s=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=rq(i,0,r),t=rq(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,o$(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer($Q).resize(e,t)}return this},e.prototype.clearLayer=function(e){Q(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[$Q][0].dom;var t=new ZQ(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;o$(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s-1&&(s.style.stroke=s.style.fill,s.style.fill=$.color.neutral00,s.style.lineWidth=2),t},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,triggerEvent:!1},t}(tK);function d$(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=hG(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o=0&&r.push(t[a])}return r.join(` `)}var p$=function(e){X(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=ZK(e,-1,-1,2,2,null,a);o.attr({z2:hj(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=_Me,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Kz(this.childAt(0))},t.prototype.downplay=function(){qz(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):mV(f,p,o,n),bV(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,hV(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=hH(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=$K(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof HR){var S=a.style;a.useStyle(Z({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(Z({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;mH(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):d$(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),aB(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=cz(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&_V(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();_V(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return QK(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(BF);function _Me(e,t){this.parent.drift(e,t)}function m$(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function h$(e){return e!=null&&!oj(e)&&(e={isIgnore:e}),e||{}}function g$(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:hH(t),cursorStyle:t.get(`cursor`)}}function _$(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var v$=function(){function e(e){this.group=new BF,this._SymbolCtor=e||p$}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=h$(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=g$(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);m$(e,i,r,t)&&_$(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!m$(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):mV(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i0?n=r[0]:r[1]<0&&(n=r[1]),n}function b$(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function x$(e,t){return!isFinite(e)||!isFinite(t)}var yMe=typeof Float32Array<`u`?Float32Array:void 0,bMe=typeof Float64Array<`u`?Float64Array:void 0;function S$(e){return C$({ctor:yMe},e).arr}function C$(e,t){var n=e.arr,r=e.ctor;if(t>_I&&(t=_I),!n||e.typed&&n.length=i||h<0)break;if(x$(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g=r||x$(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,M=v-u,N=C-v,P=void 0,F=void 0;if(s===`x`){P=Math.abs(A),F=Math.abs(j);var I=E>0?1:-1;p=_-I*P*o,m=v,O=_+I*F*o,k=v}else if(s===`y`){P=Math.abs(M),F=Math.abs(N);var L=D>0?1:-1;p=_,m=v-L*P*o,O=_,k=v+L*F*o}else P=Math.sqrt(A*A+M*M),F=Math.sqrt(j*j+N*N),T=F/(F+P),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=w$(O,T$(S,_)),k=w$(k,T$(C,v)),O=T$(O,w$(S,_)),k=T$(k,w$(C,v)),E=O-_,D=k-v,p=_-E*P/F,m=v-D*P/F,p=w$(p,T$(l,_)),m=w$(m,T$(u,v)),p=T$(p,w$(l,_)),m=T$(m,w$(u,v)),E=_-p,D=v-m,O=_+E*F/P,k=v+D*F/P}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var D$=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),CMe=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new D$},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&x$(n[i*2-2],n[i*2-1]);i--);for(;r=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?DN(i,u,f,m,e,s):DN(a,d,p,h,e,s);if(v>0)for(var y=0;y=0){var _=o?TN(a,d,p,h,b):TN(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},t}(BR),wMe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(D$),O$=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new wMe},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&x$(n[a*2-2],n[a*2-1]);a--);for(;i=0,a=e.fill||$.color.neutral99;B$(r,t);var o=r.textFill==null;return i?o&&(r.textFill=n.insideFill||$.color.neutral00,!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),r.textStrokeWidth??=2):(o&&(r.textFill=e.fill||n.outsideFill||$.color.neutral00),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,Q(t.rich,function(e){B$(e,e)}),r}function B$(e,t){t&&(Aj(t,`fill`)&&(e.textFill=t.fill),Aj(t,`stroke`)&&(e.textStroke=t.fill),Aj(t,`lineWidth`)&&(e.textStrokeWidth=t.lineWidth),Aj(t,`font`)&&(e.font=t.font),Aj(t,`fontStyle`)&&(e.fontStyle=t.fontStyle),Aj(t,`fontWeight`)&&(e.fontWeight=t.fontWeight),Aj(t,`fontSize`)&&(e.fontSize=t.fontSize),Aj(t,`fontFamily`)&&(e.fontFamily=t.fontFamily),Aj(t,`align`)&&(e.textAlign=t.align),Aj(t,`verticalAlign`)&&(e.textVerticalAlign=t.verticalAlign),Aj(t,`lineHeight`)&&(e.textLineHeight=t.lineHeight),Aj(t,`width`)&&(e.textWidth=t.width),Aj(t,`height`)&&(e.textHeight=t.height),Aj(t,`backgroundColor`)&&(e.textBackgroundColor=t.backgroundColor),Aj(t,`padding`)&&(e.textPadding=t.padding),Aj(t,`borderColor`)&&(e.textBorderColor=t.borderColor),Aj(t,`borderWidth`)&&(e.textBorderWidth=t.borderWidth),Aj(t,`borderRadius`)&&(e.textBorderRadius=t.borderRadius),Aj(t,`shadowColor`)&&(e.textBoxShadowColor=t.shadowColor),Aj(t,`shadowBlur`)&&(e.textBoxShadowBlur=t.shadowBlur),Aj(t,`shadowOffsetX`)&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Aj(t,`shadowOffsetY`)&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Aj(t,`textShadowColor`)&&(e.textShadowColor=t.textShadowColor),Aj(t,`textShadowBlur`)&&(e.textShadowBlur=t.textShadowBlur),Aj(t,`textShadowOffsetX`)&&(e.textShadowOffsetX=t.textShadowOffsetX),Aj(t,`textShadowOffsetY`)&&(e.textShadowOffsetY=t.textShadowOffsetY))}function V$(e,t){if(e.length===t.length){for(var n=0;nt){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function DMe(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=JA(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=EMe(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;Q(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new eV(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function OMe(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&kMe(a,t))){var o=t.mapDimension(a.dim),s={};return Q(a.getViewLabels(),function(e){e.tick.offInterval||(s[mX(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function kMe(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;or)return!1;return!0}function AMe(e){for(var t=e.length/2;t>0&&x$(e[t*2-2],e[t*2-1]);t--);return t-1}function K$(e,t){return[e[t*2],e[t*2+1]]}function jMe(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function q$(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var M=f.getState(`emphasis`).style;M.lineWidth=+f.style.lineWidth+1}cz(f).seriesIndex=e.seriesIndex,aB(f,k,A,j);var N=W$(e.get(`smooth`)),P=e.get(`smoothMonotone`);if(f.setShape({smooth:N,smoothMonotone:P,connectNulls:x}),p){var F=a.getCalculationInfo(`stackedOnSeries`),I=0;p.useStyle(UA(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),F&&(I=W$(F.get(`smooth`))),p.setShape({smooth:N,stackedOnSmooth:I,smoothMonotone:P,connectNulls:x}),cB(p,e,`areaStyle`),cz(p).seriesIndex=e.seriesIndex,aB(p,k,A,j)}var L=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=L)}),this._polyline.onHoverStateChange=L,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_;var R=e.get(`triggerEvent`),z=e.get(`triggerLineEvent`),B=z===!0||R===!0||R===`line`,V=z===!0||R===!0||R===`area`;this.packEventData(e,f,B),p&&this.packEventData(e,p,V)},t.prototype.packEventData=function(e,t,n){cz(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=JI(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(x$(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new p$(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else cK.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=JI(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else cK.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Vz(this._polyline,e),t&&Vz(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new CMe({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new O$({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);nj(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=nj(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=nj(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(q$(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new ZR({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=AMe(o);c>=0&&(mH(a,hH(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?d$(i,e):f$(i,n)},enableTextSetter:!0},MMe(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=jMe(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=K$(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=rL(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=K$(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=CH(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=SMe(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=G$(u.stackedOnCurrent,u.current,n,i,o),d=G$(u.current,null,n,i,o),m=G$(u.stackedOnNext,u.next,n,i,o),p=G$(u.next,null,n,i,o)),U$(d,p)>3e3||c&&U$(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),mV(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),mV(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;tt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;rj(i)?p=PMe[i]:nj(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,FMe))}}}}}function IMe(e){e.registerChartView(NMe),e.registerSeriesModel(gMe),e.registerLayout(Y$(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,X$(`line`))}var Z$=function(e){X(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(pZ),Q$=null;function LMe(e){Q$||=e}function $$(){return Q$}var e1=`expandAxisBreak`,RMe=`collapseAxisBreak`,zMe=`toggleAxisBreak`,t1=`axisbreakchanged`,BMe={type:e1,event:t1,update:`update`,refineEvent:n1},VMe={type:RMe,event:t1,update:`update`,refineEvent:n1},HMe={type:zMe,event:t1,update:`update`,refineEvent:n1};function n1(e,t,n,r){var i=[];return Q(e,function(e){i=i.concat(e.eventBreaks)}),{eventContent:{breaks:i}}}function UMe(e){e.registerAction(BMe,t),e.registerAction(VMe,t),e.registerAction(HMe,t);function t(e,t){var n=[],r=XI(t,e);function i(t,i){Q(r[t],function(t){Q(t.updateAxisBreaks(e).breaks,function(e){var r;n.push(UA((r={},r[i]=t.componentIndex,r),e))})})}return i(`xAxisModels`,`xAxisIndex`),i(`yAxisModels`,`yAxisIndex`),i(`singleAxisModels`,`singleAxisIndex`),{eventBreaks:n}}}var r1=Math.PI,WMe=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],GMe=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],i1=YI(),a1=YI(),o1=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function KMe(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=b1(e.axisName)&&uX(e.nameLocation);Q(r,function(e){var t=LZ(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?EM(s1,n.transform):bM(s1),t.transform&&SM(s1,s1,t.transform),VM.copy(c1,t.localRect),c1.applyTransform(s1),s?s.union(c1):VM.copy(s=new VM(0,0,0,0),c1))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new VM(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var s1=yM(),c1=new VM(0,0,0,0),l1=function(e,t,n,r,i,a){if(uX(e.nameLocation)){var o=a.stOccupiedRect;o&&u1(bje({},o,a.transGroup.transform),r,i)}else d1(a.labelInfoList,a.dirVec,r,i)};function u1(e,t,n){var r=new OM;GZ(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&BZ(t,r)}function d1(e,t,n,r){for(var i=OM.dot(r,t)>=0,a=0,o=e.length;a0?`top`:`bottom`,i=`center`):yI(r-r1)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),qMe=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],JMe={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(Zj(u,u,l),Zj(d,d,l));var p=Z({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&KH(r.axis.scale))$$().buildAxisBreakLine(r,i,a,m);else{var h=new qB(Z({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));PV(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);rj(g)&&(g=[g,g]),(rj(_)||aj(_))&&(_=[_,_]);var v=$K(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];Q([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=ZK(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){g1(t,i,s)&&p1(e,t,n,r,i,a,o,nZ.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){g1(t,i,s)&&p1(e,t,n,r,i,a,o,nZ.determine);var c=QMe(e,i,a,r);ZMe(e,t.labelLayoutList,c),$Me(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(b1(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new OM(0,0),_=new OM(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=yM();_.transform(wM(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*r1/180);var b,x;uX(u)?b=f1.innerTextLayout(e.rotation,y??e.rotation,d):(b=YMe(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=mj(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new ZR({x:g.x,y:g.y,rotation:b.rotation,silent:f1.isLabelSilent(r),style:gH(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(XV({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=f1.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,cz(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=LZ({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:uX(u)?WMe[E]:GMe[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function p1(e,t,n,r,i,a,o,s){_1(t)||eNe(e,t,i,s,r,o);var c=t.labelLayoutList;tNe(e,r,c,a),iNe(r,e.rotation,c);var l=e.optionHideOverlap;XMe(r,c,l),l&&WZ(XA(c,function(e){return e&&!e.label.ignore})),KMe(e,n,r,c)}function YMe(e,t,n,r){var i=vI(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return yI(i-r1/2)?(o=c?`bottom`:`top`,a=`center`):yI(i-r1*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=ir1/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function XMe(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(cAe(r))return;function a(e,a,o){var s=LZ(t[a]),c=LZ(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=i1(s.label).labelInfo.tick;if(FY(l)&&u.notNice||LY(l)&&u.offInterval){m1(s.label);return}}if(e===!1||s.suggestIgnore){m1(s.label);return}if(c.suggestIgnore){m1(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=VZ({marginForce:f},s),c=VZ({marginForce:f},c)}GZ(s,c,null,{touchThreshold:d})&&m1(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function ZMe(e,t,n){e.showMinorTicks||Q(t,function(e){if(e&&e.label.ignore)for(var t=0;t=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}C$(S1,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r0&&v0?-2:-1,n.serUids=r}var S1=C$({ctor:bMe},50);function C1(e){return function(t,n){var r=dZ(t,{fromStat:{key:e}});if(jI(r.w2))return[-r.w2/2,r.w2/2]}}function w1(e){return e+`|&`}function T1(e,t){return e+`|&`+t}function E1(e){return uNe(),{liPosMinGap:!LY(e.scale)}}var D1=`pictorialBar`;function O1(e,t,n,r){OX(e,{key:t,seriesType:n,coordSysType:r,getMetrics:E1})}function k1(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var A1={left:0,right:0,top:0,bottom:0},j1=[`25%`,`25%`],M1=`cartesian2d`,fNe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=$U(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&QU(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&QU(this.option.outerBounds,t.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:A1,outerBoundsContain:`all`,outerBoundsClampWidth:j1[0],outerBoundsClampHeight:j1[1],backgroundColor:$.color.transparent,borderWidth:1,borderColor:$.color.neutral30},t}(tW),pNe=pL(),N1=`__ec_stack_`;function P1(e){return e.get(`stack`)||N1+e.seriesIndex}function mNe(e){if(LY(e.axis.scale)){for(var t=dZ(e.axis),n=[],r=0;ro&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=ZF(u,0);var d=0,f;Q(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return Q(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function I1(e){return{seriesType:e,overallReset:function(t){var n=T1(e,M1);CX(t,n,function(t){var r=hNe(t,e);xX(t,n,function(e){var t=r.columnMap[P1(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function L1(e){return{seriesType:e,plan:oK(),reset:function(e){if(aNe(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=yY(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(k1(i))),p=R1(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&S$(r*3),c=p&&s&&S$(r*3),l=p&&S$(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,QF(k)s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},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}(tK);tK.registerClass(B1);var vNe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return xY(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=gL(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=NH(B1.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:$.color.primary,borderWidth:2}},realtimeSort:!1}),t}(B1),yNe=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}(),V1=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new yNe},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-cMath.PI/2&&ua)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){yV(t,e,cz(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(cK),q1={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=G1(t.x,e.x),s=K1(t.x+t.width,i),c=G1(t.y,e.y),l=K1(t.y+t.height,a),u=si?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=K1(t.r,e.r),a=G1(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},J1={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new qR({shape:Z({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?V1:HB,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=bNe($1(i),{isRoundCap:l===V1}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?mV:hV)(u,{shape:p},a)}return u}};function CNe(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function Y1(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?mV:hV)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?mV:hV)(n,{shape:l},u,i)}function X1(e,t){for(var n=0;n0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function ENe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function $1(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function e0(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;Z(u,W1(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?jNe(i,a.coordinateSystem):MNe(i,a.coordinateSystem),p=hH(r);mH(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:d$(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`?!0:null,xNe(e,h===`outside`?f:h,$1(o),r.get([`label`,`rotate`]))}wH(m,p,a.getRawValue(n),function(e){return f$(t,e)});var g=r.getModel([`emphasis`]);aB(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),cB(e,r),ENe(i)&&(e.style.fill=`none`,e.style.stroke=`none`,Q(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function DNe(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var ONe=function(){function e(){}return e}(),t0=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new ONe},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c=0?n:null},30,!1);function kNe(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function i0(e,t,n){if(P$(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function ANe(e,t,n){return new(e.type===`polar`?HB:qR)({shape:i0(t,n,e),silent:!0,z2:0})}function jNe(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function MNe(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function NNe(e){e.registerChartView(SNe),e.registerSeriesModel(vNe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,I1(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,L1(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,X$(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),z1(e)}function a0(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(!(!n||!n.length)){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),PNe=YI(),c0=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new s0($A(this.getData,this),$A(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return o0(this,{coordDimensions:[`value`],encodeDefaulter:ej(fW,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=PNe(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=hI(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){zI(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:`truncate`,position:`outer`,alignTo:`none`,edgeDistance:`25%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:`solid`}},itemStyle:{borderWidth:1,borderJoin:`round`},showEmptyCircle:!0,emptyCircleStyle:{color:`lightgray`,opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:`expansion`,animationDuration:1e3,animationTypeUpdate:`transition`,animationEasingUpdate:`cubicInOut`,animationDurationUpdate:500,animationEasing:`cubicInOut`},t}(tK);PEe({fullType:c0.type,getCoord2:function(e){return e.getShallow(`center`)}});var FNe=Math.PI/180;function l0(e,t,n,r,i,a,o,s,c,l){if(e.length<2)return;function u(e){for(var a=e.rB,o=a*a,s=0;sn?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}d0(a,r)}}}function d0(e,t){f0.rect=e,RZ(f0,t,LNe)}var LNe={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},f0={};function p0(e){return e.position===`center`}function RNe(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*FNe,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),_=t.getItemModel(e),v=_.getModel(`label`),y=v.get(`position`)||_.get([`emphasis`,`label`,`position`]),b=v.get(`distanceToLabelLine`),x=v.get(`alignTo`),S=sI(v.get(`edgeDistance`),l),C=v.get(`bleedMargin`);C??=Math.min(l,f)>200?10:2;var w=_.getModel(`labelLine`),T=w.get(`length`);T=sI(T,l);var E=w.get(`length2`);if(E=sI(E,l),Math.abs(d.endAngle-d.startAngle)0?`right`:`left`:O>0?`left`:`right`}var V=Math.PI,H=0,U=v.get(`rotate`);if(aj(U))H=V/180*U;else if(y===`center`)H=0;else if(U===`radial`||U===!0)H=O<0?-D+V:-D;else if(U===`tangential`||U===`tangential-noflip`&&y!==`outside`&&y!==`outer`){var W=Math.atan2(O,k);W<0&&(W=V*2+W),k>0&&U!==`tangential-noflip`&&(W=V+W),H=W-V}if(a=!!H,h.x=A,h.y=j,h.rotation=H,h.setStyle({verticalAlign:`middle`}),P){h.setStyle({align:N});var G=h.states.select;G&&(G.x+=h.x,G.y+=h.y)}else{var ee=new VM(0,0,0,0);d0(ee,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new OM(O,k),linePoints:M,textAlign:N,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:ee,unconstrainedWidth:ee.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:P})}}),!a&&e.get(`avoidLabelOverlap`)&&INe(n,r,i,c,l,f,u,d);for(var h=0;hr?(l=O+x*r/2,u=l):(l=O+C,u=i-C),n.setItemLayout(t,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?oI(e,b,[c,s]):s}),O=i}),E0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l=n.r0}},t.type=`pie`,t}(cK);function UNe(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(aj(r)&&!isNaN(r)&&r<0)})}}}function WNe(e){e.registerChartView(HNe),e.registerSeriesModel(c0),zK(`pie`,e.registerAction),e.registerLayout(zNe),e.registerProcessor(a0(`pie`)),e.registerProcessor(UNe(`pie`))}var GNe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return xY(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get(`progressiveThreshold`))},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:``},t.type=`series.scatter`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:$.color.primary}},universalTransition:{divideShape:`clone`}},t}(tK),_0=4,KNe=function(){function e(){}return e}(),qNe=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new KNe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.buildPath=function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,a=i.shape,o=e.getContext?e.getContext():e,s=o&&r[0]<_0,c=this.softClipShape,l;if(s){this._ctx=o;return}for(this._ctx=null,l=this._off;l=0;s--){var c=s*2,l=r[c]-a/2,u=r[c+1]-o/2;if(e>=l&&t>=u&&e<=l+a&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,c=-1/0,l=-1/0,u=0;u=0&&(c.dataIndex=n+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),YNe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,v0(e)),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),hL(t),v0(t)),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),this._finished){var i=Y$(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(v0(e))}else return{update:!0}},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return(!n||r!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=r?new JNe:new v$,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type=`scatter`,t}(cK);function v0(e){return{clipShape:N$(e)}}var y0=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,QI).models[0]},t.type=`cartesian2dAxis`,t}(tW);KA(y0,gX);var b0={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:`auto`,onZeroAxisIndex:null,lineStyle:{color:$.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:$.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:$.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[$.color.backgroundTint,$.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:$.color.neutral00,borderColor:$.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},XNe=BA({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},b0),x0=BA({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:$.color.axisMinorSplitLine,width:1}}},b0),S0={category:XNe,value:x0,time:BA({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},x0),log:UA({logBase:10},x0)};function C0(e,t,n,r){Q(rX,function(i,a){var o=BA(BA({},S0[a],!0),r,!0),s=function(e){X(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=ZU(this),r=n?$U(e):{};BA(e,t.getTheme().get(a+`Axis`)),BA(e,this.getDefaultOption()),e.type=w0(e),n&&QU(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=CY.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=$$();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,w0)}function w0(e){return e.type||(e.data?`category`:`value`)}var ZNe=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return JA(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),XA(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),T0=[`x`,`y`];function E0(e){return(e.type===`interval`||e.type===`time`)&&!KH(e)}var QNe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=M1,t.dimensions=T0,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!E0(e)||!E0(t))){var n=kY(e,null),r=kY(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=EM([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new VM(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return Zj(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return Zj(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new VM(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(ZNe);function D0(e,t){var n=e.scale,r=e.model,i=zX(n,r,r.ecModel,e,null),a=IY(n),o=IY(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=QF(l[0].value-l[1].value),g=QF(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h=C[1])return!0})):b[1]?(T=C[1],A(function(){if(P(),k=uI(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=uI(tI(C[0]/E)*E,D),O=uI(eI(C[1]/E)*E,D);var e=$F((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=eI(t/2);n=t%2==0?[o,o]:w+T=C[1])return!0}})}pX(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}var O0=[[3,1],[0,2]],$Ne=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=T0,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;Q(this._axesList,function(e){FX(e,1);var t=e.scale;LY(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=QA(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):VX(i)}Q(n,function(e){tPe(e,e.__alignTo)?VX(e):D0(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};Q(n.x,function(e){k0(n,`y`,e,i)}),Q(n.y,function(e){k0(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=YU(e,t),i=this._rect=KU(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(M0(a,i),!n){var c=iPe(i,o,a,s,t),l=void 0;if(s)P0?(P0(this._axesList,i),M0(a,i)):l=F0(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=aPe(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=F0(d,f,p,i,a,c,r))}I0(i,a,nZ.determine,null,l,r),Q(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}oj(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r=0;i--){var a=e[+t[i]];NY(a.scale)&&fX(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&Q(r,function(e){e.__alignTo=n})}function tPe(e,t){return KH(e.scale)||KH(t.scale)||t.scale.getTicks().length<2}function nPe(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function M0(e,t){Q(e.x,function(e){return N0(e,t.x,t.width)}),Q(e.y,function(e){return N0(e,t.y,t.height)})}function N0(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),nPe(e,t)}var P0;function rPe(e){P0=e}function F0(e,t,n,r,i,a,o){I0(r,i,nZ.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=ZA(s,function(e){return e>0})==null;return qV(r,s,!0,!0,n),M0(i,r),c;function l(e){Q(i[CV[e]],function(t){if(dX(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i0&&!pj(t)&&t>1e-4&&(e/=t),e}}function iPe(e,t,n,r,i){var a=new o1(oPe);return Q(n,function(n){return Q(n,function(n){if(dX(n.model)){var o=!r;n.axisBuilder=sNe(e,t,n.model,i,a,o)}})}),a}function I0(e,t,n,r,i,a){var o=n===nZ.determine;Q(t,function(t){return Q(t,function(t){dX(t.model)&&(cNe(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[CV[1-t]]=e[wV[t]]<=a.refContainer[wV[t]]*.5?0:1-t==1?2:1}Q(t,function(e,t){return Q(e,function(e){dX(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function aPe(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=KU(e.get(`outerBounds`,!0)||A1,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||WA([`all`,`axisLabel`],a)<0?`all`:a,s=[cI(hj(e.get(`outerBoundsClampWidth`,!0),j1[0]),t.width),cI(hj(e.get(`outerBoundsClampHeight`,!0),j1[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var oPe=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;l1(e,t,n,r,i,a),uX(e.nameLocation)||Q(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&d1(e.labelInfoList,e.dirVec,r,i)})};function sPe(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return cPe(n,e,t),n.seriesInvolved&&uPe(n,e),n}function cPe(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];Q(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=B0(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(Q(n.getAxes(),ej(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&Q(f.baseAxes,ej(p,d?`cross`:!0,u)),d&&Q(f.otherAxes,ej(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!z0(d))){s??=d.get(`triggerTooltip`),d=r?lPe(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=B0(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:z0(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=dPe(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function lPe(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};Q(s,function(e){c[e]=zA(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&UA(l,u.textStyle)}return e.model.getModel(`axisPointer`,new jH(c,n,r))}function uPe(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||Q(e.coordSysAxesInfo[B0(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function dPe(e,t){for(var n=t.model,r=t.dim,i=0;i=0||e===t}function fPe(e){var t=R0(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=z0(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o0;return o&&s}var yPe=YI();function $0(e,t,n,r){if(e instanceof Z$&&e.scale.type!==`ordinal`)return n;var i=e.model,a=i.get(`jitter`);if(!(a>0))return n;var o=i.get(`jitterOverlap`),s=i.get(`jitterMargin`)||0,c=LY(e.scale)?dZ(e).w:null;return o?e2(n,a,c,r):bPe(e,t,n,r,a,s)}function e2(e,t,n,r){if(n===null)return e+(Math.random()-.5)*t;var i=n-r*2,a=Math.min(Math.max(0,t),i);return e+(Math.random()-.5)*a}function bPe(e,t,n,r,i,a){var o=yPe(e);o.items||=[];var s=o.items,c=t2(s,t,n,r,i,a,1),l=t2(s,t,n,r,i,a,-1),u=Math.abs(c-n)i/2||d&&f>d/2-r?e2(n,i,d,r):(s.push({fixedCoord:t,floatCoord:u,r}),u)}function t2(e,t,n,r,i,a,o){for(var s=n,c=0;ci/2)return Number.MAX_VALUE;if(o===1&&m>s||o===-1&&m0&&!f.min?f.min=0:f.min!=null&&f.min<0&&!f.max&&(f.max=0);var p=s;f.color!=null&&(p=UA({color:f.color},s));var m=BA(zA(f),{boundaryGap:e,splitNumber:t,clockwise:n,scale:r,axisLine:i,axisTick:a,axisLabel:o,name:f.text,showName:c,nameLocation:`end`,nameGap:u,nameTextStyle:p,triggerEvent:d},!1);if(rj(l)){var h=m.name;m.name=l.replace(`{value}`,h??``)}else nj(l)&&(m.name=l(m.name,m));var g=new jH(m,null,this.ecModel);return KA(g,gX.prototype),g.mainType=`radar`,g.componentIndex=this.componentIndex,g.uid=MH(`ec_radar`),g},this);this._indicatorModels=f},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=a2,t.defaultOption={z:0,center:[`50%`,`50%`],radius:`50%`,startAngle:90,clockwise:!1,axisName:{show:!0,color:$.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:`polygon`,axisLine:BA({lineStyle:{color:$.color.neutral20}},r2.axisLine),axisLabel:o2(r2.axisLabel,!1),axisTick:o2(r2.axisTick,!1),splitLine:o2(r2.splitLine,!0),splitArea:o2(r2.splitArea,!0),indicator:[]},t}(tW),kPe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,t){var n=e.coordinateSystem;Q(JA(n.getIndicatorAxes(),function(e){var r=e.model.get(`showName`)?e.name:``;return new f1(e.model,t,{axisName:r,position:[n.cx,n.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){e.build(),this.group.add(e.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(!n.length)return;var r=e.get(`shape`),i=e.getModel(`splitLine`),a=e.getModel(`splitArea`),o=i.getModel(`lineStyle`),s=a.getModel(`areaStyle`),c=i.get(`show`),l=a.get(`show`),u=o.get(`color`),d=s.get(`color`),f=tj(u)?u:[u],p=tj(d)?d:[d],m=[],h=[];function g(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}if(r===`circle`)for(var _=n[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b<_.length;b++){if(c){var x=g(m,f,b);m[x].push(new kB({shape:{cx:v,cy:y,r:_[b].coord}}))}if(l&&b<_.length-1){var x=g(h,p,b);h[x].push(new UB({shape:{cx:v,cy:y,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var S,C=JA(n,function(e,n){var r=e.getTicksCoords();return S=S==null?r.length-1:Math.min(r.length-1,S),JA(r,function(e){return t.coordToPoint(e.coord,n)})}),w=[],b=0;b<=S;b++){for(var T=[],E=0;E3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(u2(this._zr,`globalPan`)||p2(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(hM(r.event),r.__ecRoamConsumed=!0,_2(e,t,n,r,i))},t}(tM);function p2(e){return e.__ecRoamConsumed}var zPe=YI();function m2(e){var t=zPe(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function h2(e,t,n,r){for(var i=m2(e).roam,a=i[t]=i[t]||[],o=0;o=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&o!=null&&s!=null&&(u=oFe(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var f=r;r=new BF,r.add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return!t.ignoreRootClip&&o!=null&&s!=null&&r.setClipPath(new qR({shape:{x:0,y:0,width:o,height:s}})),{root:r,width:o,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,a){var o=e.nodeName.toLowerCase(),s,c=r;if(o===`defs`&&(i=!0),o===`text`&&(a=!0),o===`defs`||o===`switch`)s=t;else{if(!i){var l=y2[o];if(l&&Aj(y2,o)){s=l.call(this,e,t);var u=e.getAttribute(`name`);if(u){var d={name:u,namedFrom:null,svgNodeTagLower:o,el:s};n.push(d),o===`g`&&(c=d)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:o,el:s});t.add(s)}}var f=KPe[o];if(f&&Aj(KPe,o)){var p=f.call(this,e),m=e.getAttribute(`id`);m&&(this._defs[m]=p)}}if(s&&s.isGroup)for(var h=e.firstChild;h;)h.nodeType===1?this._parseNode(h,s,n,c,i,a):h.nodeType===3&&a&&this._parseText(h,s),h=h.nextSibling},e.prototype._parseText=function(e,t){var n=new VR({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});S2(t,n),C2(e,n,this._defsUsePending,!1,!1),XPe(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9),r.font=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+`px`,r.fontFamily||`sans-serif`].join(` `);var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=(function(){y2={g:function(e,t){var n=new BF;return S2(t,n),C2(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new qR;return S2(t,n),C2(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute(`x`)||`0`),y:parseFloat(e.getAttribute(`y`)||`0`),width:parseFloat(e.getAttribute(`width`)||`0`),height:parseFloat(e.getAttribute(`height`)||`0`)}),n.silent=!0,n},circle:function(e,t){var n=new kB;return S2(t,n),C2(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),r:parseFloat(e.getAttribute(`r`)||`0`)}),n.silent=!0,n},line:function(e,t){var n=new qB;return S2(t,n),C2(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute(`x1`)||`0`),y1:parseFloat(e.getAttribute(`y1`)||`0`),x2:parseFloat(e.getAttribute(`x2`)||`0`),y2:parseFloat(e.getAttribute(`y2`)||`0`)}),n.silent=!0,n},ellipse:function(e,t){var n=new AB;return S2(t,n),C2(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),rx:parseFloat(e.getAttribute(`rx`)||`0`),ry:parseFloat(e.getAttribute(`ry`)||`0`)}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=YPe(n));var i=new GB({shape:{points:r||[]},silent:!0});return S2(t,i),C2(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=YPe(n));var i=new KB({shape:{points:r||[]},silent:!0});return S2(t,i),C2(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new HR;return S2(t,n),C2(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute(`xlink:href`)||e.getAttribute(`href`),x:+e.getAttribute(`x`),y:+e.getAttribute(`y`),width:+e.getAttribute(`width`),height:+e.getAttribute(`height`)}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute(`x`)||`0`,r=e.getAttribute(`y`)||`0`,i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`;this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new BF;return S2(t,o),C2(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var n=e.getAttribute(`x`),r=e.getAttribute(`y`);n!=null&&(this._textX=parseFloat(n)),r!=null&&(this._textY=parseFloat(r));var i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`,o=new BF;return S2(t,o),C2(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=DB(e.getAttribute(`d`)||``);return S2(t,n),C2(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),e}(),KPe={lineargradient:function(e){var t=new eV(parseInt(e.getAttribute(`x1`)||`0`,10),parseInt(e.getAttribute(`y1`)||`0`,10),parseInt(e.getAttribute(`x2`)||`10`,10),parseInt(e.getAttribute(`y2`)||`0`,10));return qPe(e,t),JPe(e,t),t},radialgradient:function(e){var t=new tV(parseInt(e.getAttribute(`cx`)||`0`,10),parseInt(e.getAttribute(`cy`)||`0`,10),parseInt(e.getAttribute(`r`)||`0`,10));return qPe(e,t),JPe(e,t),t}};function qPe(e,t){e.getAttribute(`gradientUnits`)===`userSpaceOnUse`&&(t.global=!0)}function JPe(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()===`stop`){var r=n.getAttribute(`offset`),i=void 0;i=r&&r.indexOf(`%`)>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};iFe(n,a,a);var o=a.stopColor||n.getAttribute(`stop-color`)||`#000000`,s=a.stopOpacity||n.getAttribute(`stop-opacity`);if(s){var c=ZN(o);c&&c[3]&&(c[3]*=UN(s),o=iP(c,`rgba`))}t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function S2(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||={},UA(t.__inheritedStyle,e.__inheritedStyle))}function YPe(e){for(var t=w2(e),n=[],r=0;r0;a-=2){var o=r[a],s=r[a-1],c=w2(o);switch(i||=yM(),s){case`translate`:CM(i,i,[parseFloat(c[0]),parseFloat(c[1]||`0`)]);break;case`scale`:TM(i,i,[parseFloat(c[0]),parseFloat(c[1]||c[0])]);break;case`rotate`:wM(i,i,-parseFloat(c[0])*T2,[parseFloat(c[1]||`0`),parseFloat(c[2]||`0`)]);break;case`skewX`:var l=Math.tan(parseFloat(c[0])*T2);SM(i,[1,0,l,1,0,0],i);break;case`skewY`:var u=Math.tan(parseFloat(c[0])*T2);SM(i,[1,u,0,1,0,0],i);break;case`matrix`:i[0]=parseFloat(c[0]),i[1]=parseFloat(c[1]),i[2]=parseFloat(c[2]),i[3]=parseFloat(c[3]),i[4]=parseFloat(c[4]),i[5]=parseFloat(c[5]);break}}t.setLocalTransform(i)}}var rFe=/([^\s:;]+)\s*:\s*([^:;]+)/g;function iFe(e,t,n){var r=e.getAttribute(`style`);if(r){rFe.lastIndex=0;for(var i;(i=rFe.exec(r))!=null;){var a=i[1],o=Aj(b2,a)?b2[a]:null;o&&(t[o]=i[2]);var s=Aj(x2,a)?x2[a]:null;s&&(n[s]=i[2])}}}function aFe(e,t,n){for(var r=0;r1e-6;Z2[0]=o?(i[0]-r.x)/a:i[0],Z2[1]=o?(i[1]-r.y)/a:i[1],Zj(Z2,Z2,e.mtRawInv);var s=WFe(e,Z2);JFe(t,s,a),Q(n,function(e){e!==t&&JFe(e,s.slice(),a)})}var Z2=[];function JFe(e,t,n){var r=e.option;r.center=t,r.zoom=n}function Q2(e,t){if(t){var n=t.min||0,r=t.max||1/0;e=Math.max(Math.min(r,e),n)}return e}function YFe(e,t){var n=t.getShallow(`nodeScaleRatio`,!0)||1,r=M2(e);return((r.zoom-1)*n+1)/(r.trans[2].scaleX||1)}function $2(e,t,n,r,i,a,o,s){if(!X2(e)){n.disable();return}n.enable(hj(e.get(`roam`),o),{api:t,zInfo:{component:e},triggerInfo:{roamTrigger:e.get(`roamTrigger`),isInSelf:r,isInClip:function(e,t,n){return!i||i.contain(t,n)}}});function c(n){var r=e.mainType,i=sH(UA({type:ZFe(r,e.subType,vz)},n));s&&(i.componentType=r),i[r+`Id`]=e.id,t.dispatchAction(i)}n.off(`pan`).off(`zoom`).on(`pan`,function(e){a&&a(`pan`),c({dx:e.dx,dy:e.dy})}).on(`zoom`,function(e){a&&a(`zoom`),c({zoom:e.scale,originX:e.originX,originY:e.originY})})}function XFe(e){return function(t,n,r){return e4.copy(e.getBoundingRect()),e4.applyTransform(e.getComputedTransform()),e4.contain(n,r)}}var e4=new VM(0,0,0,0);function t4(e,t,n){var r=ZFe(t,n,vz);e.registerAction({type:r,event:r,update:`none`},function(e,r,i){r.eachComponent(eL(e,t,n),function(t){zFe(e,t),BFe(e,t,r,i)})})}function ZFe(e,t,n){return(e===`series`?t===`map`?`geo`:t:e)+n}function QFe(e){return e.zoom!=null}function n4(e,t,n,r,i,a,o){var s=new N2(null,KFe(e.ecModel,t));return V2(s,n,r,i,a),o?H2(s,o.x,o.y,o.width,o.height):H2(s,n,r,i,a),B2(s,e),s}var r4=[`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`],$Fe=Ej(r4),eIe=Ej(r4.concat([`g`])),tIe=Ej(r4.concat([`g`])),nIe=YI();function i4(e){var t=e.getItemStyle(),n=e.get(`areaColor`);return n!=null&&(t.fill=n),t}function rIe(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var iIe=function(){function e(e){var t=this.group=new BF,n=this._transformGroup=new BF;t.add(n),this.uid=MH(`ec_map_draw`),this._controller=new f2(e.getZr()),n.add(this._regionsGroup=new BF),n.add(this._svgGroup=new BF)}return e.prototype.draw=function(e,t,n,r,i){var a=this,o=e.getData&&e.getData();a4(e)&&t.eachComponent({mainType:`series`,subType:`map`},function(t){!o&&t.getHostGeoModel()===e&&(o=t.getData())});var s=e.coordinateSystem,c=s.view,l=this._regionsGroup,u=this._transformGroup,d=!l.childAt(0)||i,f;s.shouldClip()?(f=I2(null,c),this.group.setClipPath(new qR({shape:f.clone()}))):this.group.removeClipPath(),q2(u,1,c,d?null:e);var p=o&&o.getVisual(`visualMeta`)&&o.getVisual(`visualMeta`).length>0;s.resourceType===`geoJSON`?this._buildGeoJSON(c,n,s,e,o,p):s.resourceType===`geoSVG`&&this._buildSVG(c,n,s,e,o,p),$2(e,n,this._controller,function(t,n,r){return e.coordinateSystem.containPoint([n,r])},f,function(){a._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(e,l,n,r)},e.prototype.__updateOnOwnRoam=function(e){q2(this._transformGroup,1,e.coordinateSystem.view,null)},e.prototype._buildGeoJSON=function(e,t,n,r,i,a){var o=this._regionsGroupByName=Ej(),s=Ej(),c=this._regionsGroup,l=n.projection,u=l&&l.stream,d=fF(L2(null,e,0));function f(e,t){return t&&(e=t(e)),e&&Zj([],e,d)}function p(e){for(var t=[],n=!u&&l&&l.project,r=0;r=0)&&(u=e);var d=o?{normal:{align:`center`,verticalAlign:`middle`}}:null;mH(n,hH(i),{labelFetcher:u,labelDataIndex:l,defaultText:r},d);var f=n.getTextContent();if(f&&(nIe(f).ignore=f.ignore,n.textConfig&&o)){var p=n.getBoundingRect().clone();n.textConfig.layoutRect=p,n.textConfig.position=[(o[0]-p.x)/p.width*100+`%`,(o[1]-p.y)/p.height*100+`%`]}n.disableLabelAnimation=!0}else n.removeTextContent(),n.removeTextConfig(),n.disableLabelAnimation=null}function sIe(e,t,n,r,i,a){t?t.setItemGraphicEl(a,n):cz(n).eventData={componentType:`geo`,componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:r,region:i&&i.option||{}}}function cIe(e,t,n,r,i){t||XV({el:n,componentModel:e,itemName:r,itemTooltipOption:i.get(`tooltip`)})}function lIe(e,t,n,r){t.highDownSilentOnTouch=!!e.get(`selectedMode`);var i=r.getModel(`emphasis`),a=i.get(`focus`);return aB(t,a,i.get(`blurScope`),i.get(`disabled`)),a4(e)&&DTe(t,e,n),a}function uIe(e,t,n){var r=[],i;function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),Q(e,function(e){s.lineStart();for(var t=0;t-1&&(n.style.stroke=n.style.fill,n.style.fill=$.color.neutral00,n.style.lineWidth=2),n},t.prototype.__ownRoamView=function(){return o4(this)?this.coordinateSystem.view:null},t.type=`series.map`,t.dependencies=[`geo`],t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystem:`geo`,map:``,left:`center`,top:`center`,aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:$.color.tertiary},itemStyle:{borderWidth:.5,borderColor:$.color.border,areaColor:$.color.background},emphasis:{label:{show:!0,color:$.color.primary},itemStyle:{areaColor:$.color.highlight}},select:{label:{show:!0,color:$.color.primary},itemStyle:{color:$.color.highlight}},nameProperty:`name`},t}(tK);function fIe(e){return e.indexOf(`i`)===0}function o4(e){return s4(e.seriesGroup)===e&&!e.getHostGeoModel()}function s4(e){return e.f[0]}function c4(e,t){var n={};return e.eachRawSeriesByType(`map`,function(r){var i=r.getHostGeoModel(),a=i?`o`+i.id:`i`+r.getMapType(),o=n[a]=n[a]||{f:[],r:[]};!e.isSeriesFiltered(r)&&!t&&o.f.push(r),o.r.push(r)}),n}var pIe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`map`,t}return t.prototype.render=function(e,t,n,r){if(!(r&&r.type===`mapToggleSelect`&&r.from===this.uid)){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){var a=this._mapDraw;a&&r&&r.type===`geoRoam`&&a.resetForLabelLayout(),r&&r.type===`geoRoam`&&r.componentType===`series`&&r.seriesId===e.id?a&&i.add(a.group):o4(e)?(a||=this._mapDraw=new iIe(n),i.add(a.group),a.draw(e,t,n,this,r)):this._clearMapDraw(),e.get(`showLegendSymbol`)&&t.getComponent(`legend`)&&this._renderSymbols(e)}}},t.prototype.__updateOnOwnRoam=function(e,t,n){var r=this._mapDraw;o4(t)&&r&&r.__updateOnOwnRoam(t)},t.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},t.prototype.dispose=function(){this._clearMapDraw()},t.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e){var t=e.originalData,n=this.group;t.each(t.mapDimension(`value`),function(r,i){if(!isNaN(r)){var a=t.getItemLayout(i);if(!(!a||!a.point)){var o=a.point,s=a.offset,c=new kB({style:{fill:e.getData().getVisual(`style`).fill},shape:{cx:o[0]+s*9,cy:o[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var l=s4(e.seriesGroup).getData(),u=t.getName(i),d=l.indexOfName(u),f=t.getItemModel(i),p=f.getModel(`label`),m=l.getItemGraphicEl(d);mH(c,hH(f),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:u}),c.disableLabelAnimation=!0,p.get(`position`)||c.setTextConfig({position:`bottom`}),m.onHoverStateChange=function(e){Vz(c,e)}}n.add(c)}}})},t.type=`map`,t}(cK),mIe={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},hIe=[`lng`,`lat`],gIe=function(e){X(t,e);function t(t,n,r){var i=e.call(this)||this;i.dimensions=hIe,i.type=`geo`,i._nameCoordMap=Ej(),i.name=t;var a=r.projection,o=j2.load(n,r.nameMap,r.nameProperty),s=j2.getGeoResource(n);i.resourceType=s?s.type:null;var c=i.regions=o.regions,l=mIe[s.type];i._clip=r.clip,i.view=new N2(a?!1:l.invertLongitute,KFe(r.ecModel,r.api),i),i.map=n,i._regionsMap=o.regionsMap,i.regions=o.regions,i.projection=a;var u;if(a)for(var d=0;d1?(b.width=y,b.height=y/g):(b.height=y,b.width=y*g),b.y=v[1]-b.height/2,b.x=v[0]-b.width/2;else{var x=e.getBoxLayoutParams();x.aspect=g,b=KU(x,h),b=qU(e,b,g)}H2(n,b.x,b.y,b.width,b.height),B2(n,e)}function yIe(e,t){Q(t.get(`geoCoord`),function(t,n){e.addGeoCoord(n,t)})}var bIe=new(function(){function e(){this.dimensions=hIe}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get(`nameProperty`),aspectScale:e.get(`aspectScale`),projection:e.get(`projection`),clip:e.getShallow(`clip`,!0)}}return e.eachComponent(`geo`,function(i,a){var o=i.get(`map`),s=new gIe(o+a,o,Z({nameMap:i.get(`nameMap`),api:t,ecModel:e},r(i)));n.push(s),i.coordinateSystem=s,s.model=i,s.resize=vIe,s.resize(i,t)}),e.eachSeries(function(e){LU({targetModel:e,coordSysType:`geo`,coordSysProvider:function(){var t=e.subType===`map`?e.getHostGeoModel():e.getReferringComponents(`geo`,QI).models[0];return t&&t.coordinateSystem},allowNotFound:!0})}),Q(c4(e,!0),function(i,a){if(fIe(a)){var o=i.r[0],s=[];Q(i.r,function(e){s.push(e.get(`nameMap`)),e.seriesGroup=null});var c=a.slice(1),l=new gIe(c,c,Z({nameMap:VA(s),api:t,ecModel:e},r(o))),u;Q(i.r,function(e){u=hj(u,e.get(`scaleLimit`))}),n.push(l),l.resize=vIe,l.resize(o,t),Q(i.r,function(e){e.coordinateSystem=l,yIe(l,e)})}}),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),a=Ej(),o=0;o=0;a--){var o=i[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(o)}}function MIe(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){FIe(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=IIe(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function NIe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function PIe(e){return arguments.length?e:zIe}function l4(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function FIe(e){for(var t=e.children,n=t.length,r=0,i=0;--n>=0;){var a=t[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}function IIe(e,t,n,r){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,c=i.hierNode.modifier,l=a.hierNode.modifier,u=o.hierNode.modifier,d=s.hierNode.modifier;s=u4(s),a=d4(a),s&&a;){i=u4(i),o=d4(o),i.hierNode.ancestor=e;var f=s.hierNode.prelim+d-a.hierNode.prelim-l+r(s,a);f>0&&(RIe(LIe(s,e,n),e,f),l+=f,c+=f),d+=s.hierNode.modifier,l+=a.hierNode.modifier,c+=i.hierNode.modifier,u+=o.hierNode.modifier}s&&!u4(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-c),a&&!d4(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=l-u,n=e)}return n}function u4(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function d4(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function LIe(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function RIe(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function zIe(e,t){return e.parentNode===t.parentNode?1:2}var f4=YI();function BIe(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,qIe(t,n,e),Q(n,function(n){Q(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,ej(VIe,e))})}),t.wrapMethod(`cloneShallow`,ej(UIe,e)),Q(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,ej(HIe,e))}),yj(n[t.dataType]===t)}function VIe(e,t){if(KIe(this)){var n=Z({},f4(this).datas);n[this.dataType]=t,qIe(t,n,e)}else p4(t,this.dataType,f4(this).mainData,e);return t}function HIe(e,t){return e.struct&&e.struct.update(),t}function UIe(e,t){return Q(f4(t).datas,function(n,r){n!==t&&p4(n.cloneShallow(),r,t,e)}),t}function WIe(e){var t=f4(this).mainData;return e==null||t==null?t:f4(t).datas[e]}function GIe(){var e=f4(this).mainData;return e==null?[{data:e}]:JA(QA(f4(e).datas),function(t){return{type:t,data:f4(e).datas[t]}})}function KIe(e){return f4(e).mainData===e}function qIe(e,t,n){f4(e).datas={},Q(t,function(t,r){p4(t,r,e,n)})}function p4(e,t,n,r){f4(n).datas[t]=e,f4(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=WIe,e.getLinkedDataAll=GIe}var JIe=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||``,this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){nj(e)&&(n=t,t=e,e=null),e||={},rj(e)&&(e={order:e});var r=e.order||`preorder`,i=this[e.attr||`children`],a;r===`preorder`&&(a=t.call(n,this));for(var o=0;!a&&ot&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=n.getData().tree.root,i=e.targetNode;if(rj(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=r.getNodeById(a)))return{node:i}}}function XIe(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function g4(e,t){return WA(XIe(e),t)>=0}function _4(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var v4=`tree`,ZIe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=new jH(e.leaves||{},this,this.ecModel),r=m4.createTree(t,this,i);function i(e){e.wrapMethod(`getItemModel`,function(e,t){var i=r.getNodeByDataIndex(t);return i&&i.children.length&&i.isExpand||(e.parentModel=n),e})}var a=0;r.eachNode(`preorder`,function(e){e.depth>a&&(a=e.depth)});var o=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode(`preorder`,function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&t.collapsed!=null?!t.collapsed:e.depth<=o}),r.data},t.prototype.getOrient=function(){var e=this.get(`orient`);return e===`horizontal`?e=`LR`:e===`vertical`&&(e=`TB`),e},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData().tree,i=r.root.children[0],a=r.getNodeByDataIndex(e),o=a.getValue(),s=a.name;a&&a!==i;)s=a.parentNode.name+`.`+s,a=a.parentNode;return VG(`nameValue`,{name:s,value:o,noValue:isNaN(o)||o==null})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=_4(r,this),n.collapsed=!r.isExpand,n},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type=`series.`+v4,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`12%`,top:`12%`,right:`12%`,bottom:`12%`,layout:`orthogonal`,edgeShape:`curve`,edgeForkPosition:`50%`,roam:!1,roamTrigger:`global`,nodeScaleRatio:.4,center:null,zoom:1,orient:`LR`,symbol:`emptyCircle`,symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:$.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:`lightsteelblue`,borderWidth:1.5},label:{show:!0},animationEasing:`linear`,animationDuration:700,animationDurationUpdate:500},t}(tK),QIe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),$Ie=function(e){X(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new QIe},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,a=n[0],o=n[r-1];if(r===1){e.moveTo(i[0],i[1]),e.lineTo(a[0],a[1]);return}var s=t.orient,c=s===`TB`||s===`BT`?0:1,l=1-c,u=sI(t.forkPosition,1),d=[];d[c]=i[c],d[l]=i[l]+(o[l]-i[l])*u,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(a[0],a[1]),d[c]=a[c],e.lineTo(d[0],d[1]),d[c]=o[c],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var f=1;fv.x,x||(b-=Math.PI));var C=x?`left`:`right`,w=s.getModel(`label`),T=w.get(`rotate`),E=Math.PI/180*T,D=g.getTextContent();D&&(g.setTextConfig({position:w.get(`position`)||C,rotation:T==null?-b:E,origin:`center`}),D.setStyle(`verticalAlign`,`middle`))}var O=s.get([`emphasis`,`focus`]),k=O===`relative`?Dj(o.getAncestorsIndices(),o.getDescendantIndices()):O===`ancestor`?o.getAncestorsIndices():O===`descendant`?o.getDescendantIndices():null;k&&(cz(n).focus=k),rLe(i,o,u,n,m,p,h,r),n.__edge&&(n.onHoverStateChange=function(t){if(t!==`blur`){var r=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);r&&r.hoverState===1||Vz(n.__edge,t)}})}function rLe(e,t,n,r,i,a,o,s){var c=t.getModel(),l=e.get(`edgeShape`),u=e.get(`layout`),d=e.getOrient(),f=e.get([`lineStyle`,`curveness`]),p=e.get(`edgeForkPosition`),m=c.getModel(`lineStyle`).getLineStyle(),h=r.__edge;if(l===`curve`)t.parentNode&&t.parentNode!==n&&(h||=r.__edge=new XB({shape:y4(u,d,f,i,i)}),mV(h,{shape:y4(u,d,f,a,o)},e));else if(l===`polyline`&&u===`orthogonal`&&t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,_=[],v=0;v=0;a--)n.push(i[a])}}function cLe(e,t){e.eachSeriesByType(`tree`,function(e){lLe(e,t)})}function lLe(e,t){var n=YU(e,t).refContainer,r=KU(e.getBoxLayoutParams(),n);e.layoutInfo=r;var i=e.get(`layout`),a=0,o=0,s=null;i===`radial`?(a=2*Math.PI,o=Math.min(r.height,r.width)/2,s=PIe(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(a=r.width,o=r.height,s=PIe());var c=e.getData().tree.root,l=c.children[0];if(l){jIe(c),sLe(l,MIe,s),c.hierNode.modifier=-l.hierNode.prelim,b4(l,NIe);var u=l,d=l,f=l;b4(l,function(e){var t=e.getLayout().x;td.getLayout().x&&(d=e),e.depth>f.depth&&(f=e)});var p=u===d?1:s(u,d)/2,m=p-u.getLayout().x,h=0,g=0,_=0,v=0;if(i===`radial`)h=a/(d.getLayout().x+p+m),g=o/(f.depth-1||1),b4(l,function(e){_=(e.getLayout().x+m)*h,v=(e.depth-1)*g;var t=l4(_,v);e.setLayout({x:t.x,y:t.y,rawX:_,rawY:v},!0)});else{var y=e.getOrient();y===`RL`||y===`LR`?(g=o/(d.getLayout().x+p+m),h=a/(f.depth-1||1),b4(l,function(e){v=(e.getLayout().x+m)*g,_=y===`LR`?(e.depth-1)*h:a-(e.depth-1)*h,e.setLayout({x:_,y:v},!0)})):(y===`TB`||y===`BT`)&&(h=a/(d.getLayout().x+p+m),g=o/(f.depth-1||1),b4(l,function(e){_=(e.getLayout().x+m)*h,v=y===`TB`?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:_,y:v},!0)}))}}}function uLe(e){e.registerAction({type:`treeExpandAndCollapse`,event:`treeExpandAndCollapse`,update:`update`},function(e,t){t.eachComponent({mainType:uz,subType:v4,query:e},function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand})}),t4(e,uz,v4)}var dLe=_L(v4,fLe);function fLe(e){e.eachSeriesByType(v4,function(e){var t=e.getData();t.tree.eachNode(function(e){var n=e.getModel().getModel(`itemStyle`).getItemStyle();Z(t.ensureUniqueItemVisual(e.dataIndex,`style`),n)})})}function pLe(e){e.registerChartView(eLe),e.registerSeriesModel(ZIe),e.registerLayout(cLe),e.registerVisual(dLe),uLe(e)}var mLe=[`treemapZoomToNode`,`treemapRender`,`treemapMove`];function hLe(e){for(var t=0;t1;)r=r.parentNode;var i=yW(e.ecModel,r.name||r.dataIndex+``,n);t.setVisual(`decal`,i)})}var _Le=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};vLe(n);var r=e.levels||[],i=new jH({itemStyle:this.designatedVisualItemStyle={}},this,t);r=e.levels=yLe(r,t);var a=JA(r||[],function(e){return new jH(e,i,t)},this),o=m4.createTree(n,this,s);function s(e){e.wrapMethod(`getItemModel`,function(e,t){var n=o.getNodeByDataIndex(t);return e.parentModel=(n?a[n.depth]:null)||i,e})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e);return VG(`nameValue`,{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=_4(this.getData().tree.getNodeByDataIndex(t),this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},Z(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=Ej(),this._idIndexMapCount=0);var n=t.get(e);return n??t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){gLe(this)},t.type=`series.treemap`,t.layoutMode=`box`,t.defaultOption={progressive:0,coordinateSystemUsage:`box`,left:$.size.l,top:$.size.xxxl,right:$.size.l,bottom:$.size.xxxl,sort:!0,clipWindow:`origin`,squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:`▶`,zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:`global`,nodeClick:`zoomToNode`,animation:!0,animationDurationUpdate:900,animationEasing:`quinticInOut`,breadcrumb:{show:!0,height:22,left:`center`,bottom:$.size.m,emptyItemWidth:25,itemStyle:{color:$.color.backgroundShade,textStyle:{color:$.color.secondary}},emphasis:{itemStyle:{color:$.color.background}}},label:{show:!0,distance:0,padding:5,position:`inside`,color:$.color.neutral00,overflow:`truncate`},upperLabel:{show:!1,position:[0,`50%`],height:20,overflow:`truncate`,verticalAlign:`middle`},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:$.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,`50%`],overflow:`truncate`,verticalAlign:`middle`}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:`index`,visibleMin:10,childrenVisibleMin:null,levels:[]},t}(tK);function vLe(e){var t=0;Q(e.children,function(e){vLe(e);var n=e.value;tj(n)&&(n=n[0]),t+=n});var n=e.value;tj(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),tj(e.value)?e.value[0]=n:e.value=n}function yLe(e,t){var n=RI(t.get(`color`)),r=RI(t.get([`aria`,`decal`,`decals`]));if(n){e||=[];var i,a;Q(e,function(e){var t=new jH(e),n=t.get(`color`),r=t.get(`decal`);(t.get([`itemStyle`,`color`])||n&&n!==`none`)&&(i=!0),(t.get([`itemStyle`,`decal`])||r&&r!==`none`)&&(a=!0)});var o=e[0]||={};return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),e}}var bLe=8,xLe=8,x4=5,SLe=function(){function e(e){this.group=new BF,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel(`breadcrumb`),a=this.group;if(a.removeAll(),!(!i.get(`show`)||!n)){var o=i.getModel(`itemStyle`),s=i.getModel(`emphasis`),c=o.getModel(`textStyle`),l=s.getModel([`itemStyle`,`textStyle`]),u=YU(e,t).refContainer,d={left:i.get(`left`),right:i.get(`right`),top:i.get(`top`),bottom:i.get(`bottom`)},f={emptyItemWidth:i.get(`emptyItemWidth`),totalWidth:0,renderList:[]},p=KU(d,u);this._prepare(n,f,c),this._renderContent(e,f,p,o,s,c,l,r),XU(a,d,u)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=GI(r.getModel().get(`name`),``),a=n.getTextRect(i),o=Math.max(a.width+bLe*2,t.emptyItemWidth);t.totalWidth+=o+xLe,t.renderList.push({node:r,text:i,width:o})}},e.prototype._renderContent=function(e,t,n,r,i,a,o,s){for(var c=0,l=t.emptyItemWidth,u=e.get([`breadcrumb`,`height`]),d=t.totalWidth,f=t.renderList,p=i.getModel(`itemStyle`).getItemStyle(),m=f.length-1;m>=0;m--){var h=f[m],g=h.node,_=h.width,v=h.text;d>n.width&&(d-=_-l,_=l,v=null);var y=new GB({shape:{points:CLe(c,0,_,u,m===f.length-1,m===0)},style:UA(r.getItemStyle(),{lineJoin:`bevel`}),textContent:new ZR({style:gH(a,{text:v})}),textConfig:{position:`inside`},z2:10*1e4,onclick:ej(s,g)});y.disableLabelAnimation=!0,y.getTextContent().ensureState(`emphasis`).style=gH(o,{text:v}),y.ensureState(`emphasis`).style=p,aB(y,i.get(`focus`),i.get(`blurScope`),i.get(`disabled`)),this.group.add(y),wLe(y,e,g),c+=_+xLe}},e.prototype.remove=function(){this.group.removeAll()},e}();function CLe(e,t,n,r,i,a){var o=[[i?e:e-x4,t],[e+n,t],[e+n,t+r],[i?e:e-x4,t+r]];return!a&&o.splice(2,0,[e+n+x4,t+r/2]),!i&&o.push([e,t+r/2]),o}function wLe(e,t,n){cz(e).eventData={componentType:`series`,componentSubType:`treemap`,componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:`treemap`,selfType:`breadcrumb`,nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&_4(n,t)}}var TLe=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;r=0;c--){var l=i[r===`asc`?o-c-1:c].getValue();l/n*ts[1]&&(s[1]=t)})),{sum:r,dataExtent:s}}function LLe(e,t,n){for(var r=0,i=1/0,a=0,o=void 0,s=e.length;ar&&(r=o));var c=e.area*e.area,l=t*t*n;return c?S4(l*r/c,c/(l*i)):1/0}function RLe(e,t,n,r,i){var a=t===n.width?0:1,o=1-a,s=[`x`,`y`],c=[`width`,`height`],l=n[s[a]],u=t?e.area/t:0;(i||u>n[c[o]])&&(u=n[c[o]]);for(var d=0,f=e.length;d_I&&(u=_I),i=c}uKLe||Math.abs(e.dy)>KLe)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:`treemapMove`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,r=e.scale,i=this.seriesModel;if(this._state!==`animating`){var a=i.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new VM(o.x,o.y,o.width,o.height),c=i.layoutInfo,l=ULe(c,o),u=l*r;u=WLe(u,i);var d=u/l;t-=c.x,n-=c.y;var f=yM();CM(f,f,[-t,-n]),TM(f,f,[d,d]),CM(f,f,[t,n]),s.applyTransform(f),this.api.dispatchAction({type:`treemapRender`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(e){var t=this;e.on(`click`,function(e){if(t._state===`ready`){var n=t.seriesModel.get(`nodeClick`,!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if(n===`zoomToNode`)t._zoomToNode(r);else if(n===`link`){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get(`link`,!0),s=a.get(`target`,!0)||`blank`;o&&AU(o,s)}}}}},this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=e.get(`leafDepth`,!0)==null?this.findTarget(t.getWidth()/2,t.getHeight()/2):{node:e.getViewRoot()},n||={node:e.getData().tree.root}),(this._breadcrumb||=new SLe(this.group)).render(e,t,n.node,function(t){r._state!==`animating`&&(g4(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=O4(),this._state=`ready`,this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:`treemapZoomToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:`treemapRootToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:`viewChildren`,order:`preorder`},function(r){var i=this._storage.background[r.getRawIndex()];if(i){var a=i.transformCoordToLocal(e,t),o=i.shape;if(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height)n={node:r,offsetX:a[0],offsetY:a[1]};else return!1}},this),n},t.type=`treemap`,t}(cK);function O4(){return{nodeGroup:[],background:[],content:[]}}function eRe(e,t,n,r,i,a,o,s,c,l){if(!o)return;var u=o.getLayout(),d=e.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!u||!u.isInView)return;var p=u.width,m=u.height,h=u.borderWidth,g=u.invisible,_=o.getRawIndex(),v=s&&s.getRawIndex(),y=o.viewChildren,b=u.upperHeight,x=y&&y.length,S=f.getModel(`itemStyle`),C=f.getModel([`emphasis`,`itemStyle`]),w=f.getModel([`blur`,`itemStyle`]),T=f.getModel([`select`,`itemStyle`]),E=S.get(`borderRadius`)||0,D=V(`nodeGroup`,T4);if(!D)return;if(c.add(D),D.x=u.x||0,D.y=u.y||0,D.markRedraw(),D4(D).nodeWidth=p,D4(D).nodeHeight=m,u.isAboveViewRoot)return D;var O=V(`background`,GLe,l,XLe);O&&I(D,O,x&&u.upperLabelHeight);var k=f.getModel(`emphasis`),A=k.get(`focus`),j=k.get(`blurScope`),M=k.get(`disabled`),N=A===`ancestor`?o.getAncestorsIndices():A===`descendant`?o.getDescendantIndices():A;if(x)uB(D)&&lB(D,!1),O&&(lB(O,!M),d.setItemGraphicEl(o.dataIndex,O),oB(O,N,j));else{var P=V(`content`,GLe,l,ZLe);P&&L(D,P),O.disableMorphing=!0,O&&uB(O)&&lB(O,!1),lB(D,!M),d.setItemGraphicEl(o.dataIndex,D);var F=f.getShallow(`cursor`);F&&P.attr(`cursor`,F),oB(D,N,j)}return D;function I(t,n,r){var i=cz(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:m,r:E}),g)R(n);else{n.invisible=!1;var a=o.getVisual(`style`),s=a.stroke,c=QLe(S);c.fill=s;var l=E4(C);l.fill=C.get(`borderColor`);var u=E4(w);u.fill=w.get(`borderColor`);var d=E4(T);if(d.fill=T.get(`borderColor`),r){var f=p-2*h;z(n,s,a.opacity,{x:h,y:0,width:f,height:b})}else n.removeTextContent();n.setStyle(c),n.ensureState(`emphasis`).style=l,n.ensureState(`blur`).style=u,n.ensureState(`select`).style=d,Uz(n)}t.add(n)}function L(t,n){var r=cz(n);r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(p-2*h,0),a=Math.max(m-2*h,0);if(n.culling=!0,n.setShape({x:h,y:h,width:i,height:a,r:E}),g)R(n);else{n.invisible=!1;var s=o.getVisual(`style`),c=s.fill,l=QLe(S);l.fill=c,l.decal=s.decal;var u=E4(C),d=E4(w),f=E4(T);z(n,c,s.opacity,null),n.setStyle(l),n.ensureState(`emphasis`).style=u,n.ensureState(`blur`).style=d,n.ensureState(`select`).style=f,Uz(n)}t.add(n)}function R(e){!e.invisible&&a.push(e)}function z(t,n,r,i){var a=f.getModel(i?JLe:qLe),s=GI(f.get(`name`),null),c=a.getShallow(`show`);mH(t,hH(f,i?JLe:qLe),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var d=l.style,p=vj(d.padding||0);i&&(t.setTextConfig({layoutRect:i}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-p[1]-p[3],0),n=Math.max((i?i.height:t.shape.height)-p[0]-p[2],0);(d.width!==e||d.height!==n)&&l.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow=`truncate`,B(d,i,u);var m=l.getState(`emphasis`);B(m?m.style:null,i,u)}}function B(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&i!=null){var a=e.get(`drillDownIcon`,!0);t.text=a?a+` `+i:i}}function V(e,r,a,o){var s=v!=null&&n[e][v],c=i[e];return s?(n[e][v]=null,H(c,s)):g||(s=new r,s instanceof qL&&(s.z2=tRe(a,o)),U(c,s)),t[e][_]=s}function H(e,t){var n=e[_]={};t instanceof T4?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Z({},t.shape)}function U(e,t){var n=e[_]={},a=o.parentNode,s=t instanceof BF;if(a&&(!r||r.direction===`drillDown`)){var c=0,l=0,u=i.background[a.getRawIndex()];!r&&u&&u.oldShape&&(c=u.oldShape.width,l=u.oldShape.height),s?(n.oldX=0,n.oldY=l):n.oldShape={x:c,y:l,width:0,height:0}}n.fadein=!s}}function tRe(e,t){return e*YLe+t}var k4=Q,nRe=oj,A4=-1,j4=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=zA(t);this.type=r,this.mappingMethod=n,this._normalizeData=sRe[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(M4(i),rRe(i)):n===`category`?i.categories?iRe(i):M4(i,!0):(yj(n!==`linear`||i.dataExtent),M4(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return $A(this._normalizeData,this)},e.listVisualTypes=function(){return QA(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){oj(e)?Q(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=tj(t)?[]:oj(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&k4(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(tj(e))e=e.slice();else if(nRe(e)){var t=[];k4(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a=0;a--)r[a]??(delete n[t[a]],t.pop())}function M4(e,t){var n=e.visual,r=[];oj(n)?k4(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),oRe(e,r)}function N4(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:L4([0,1])}}function aRe(e){var t=this.option.visual;return t[Math.round(oI(e,[0,1],[0,t.length-1],!0))]||{}}function P4(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function F4(e){var t=this.option.visual;return t[this.option.loop&&e!==A4?e%t.length:e]}function I4(){return this.option.visual[0]}function L4(e){return{linear:function(t){return oI(t,e,this.option.visual,!0)},category:F4,piecewise:function(t,n){var r=R4.call(this,n);return r??=oI(t,e,this.option.visual,!0),r},fixed:I4}}function R4(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[j4.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function oRe(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=JA(t,function(e){return ZN(e)||[0,0,0,1]})),t}var sRe={linear:function(e){return oI(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=j4.findPieceIndex(e,t,!0);if(n!=null)return oI(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??A4},fixed:jj};function z4(e,t,n){return e?t<=n:t=n.length||e===n[e.depth])&&dRe(e,gRe(i,c,e,t,m,r),n,r)})}}}function fRe(e,t,n){var r=Z({},t),i=n.designatedVisualItemStyle;return Q([`color`,`colorAlpha`,`colorSaturation`],function(n){i[n]=t[n];var a=e.get(n);i[n]=null,a!=null&&(r[n]=a)}),r}function pRe(e){var t=B4(e,`color`);if(t){var n=B4(e,`colorAlpha`),r=B4(e,`colorSaturation`);return r&&(t=nP(t,null,null,r)),n&&(t=rP(t,n)),t}}function mRe(e,t){return t==null?null:nP(t,null,null,e)}function B4(e,t){var n=e[t];if(n!=null&&n!==`none`)return n}function hRe(e,t,n,r,i,a){if(!(!a||!a.length)){var o=V4(t,`color`)||i.color!=null&&i.color!==`none`&&(V4(t,`colorAlpha`)||V4(t,`colorSaturation`));if(o){var s=t.get(`visualMin`),c=t.get(`visualMax`),l=n.dataExtent.slice();s!=null&&sl[1]&&(l[1]=c);var u=t.get(`colorMappingBy`),d={type:o.name,dataExtent:l,visual:o.range};d.type===`color`&&(u===`index`||u===`id`)?(d.mappingMethod=`category`,d.loop=!0):d.mappingMethod=`linear`;var f=new j4(d);return lRe(f).drColorMappingBy=u,f}}}function V4(e,t){var n=e.get(t);return tj(n)&&n.length?{name:t,range:n}:null}function gRe(e,t,n,r,i,a){var o=Z({},t);if(i){var s=i.type,c=s===`color`&&lRe(i).drColorMappingBy,l=c===`index`?r:c===`id`?a.mapIdToIndex(n.getId()):n.getValue(e.get(`visualDimension`));o[s]=i.mapValueToVisual(l)}return o}function _Re(e){e.registerSeriesModel(_Le),e.registerChartView($Le),e.registerVisual(uRe),e.registerLayout(jLe),hLe(e)}function H4(e){return`_EC_`+e}var vRe=function(){function e(e){this.type=`graph`,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=e==null?``+t:``+e;var n=this._nodesMap;if(!n[H4(e)]){var r=new U4(e,t);return r.hostGraph=this,this.nodes.push(r),n[H4(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[H4(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(aj(e)&&(e=this.nodes[e]),aj(t)&&(t=this.nodes[t]),e instanceof U4||(e=r[H4(e)]),t instanceof U4||(t=r[H4(t)]),!(!e||!t)){var a=e.id+`-`+t.id,o=new yRe(e,t,n);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),i[a]=o,o}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof U4&&(e=e.id),t instanceof U4&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+`-`+t]:n[e+`-`+t]||n[t+`-`+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof U4||(t=this._nodesMap[H4(t)]),t){for(var i=n===`out`?`outEdges`:n===`in`?`inEdges`:`edges`,a=0;a=0&&n.node2.dataIndex>=0});for(var i=0,a=r.length;i=0&&!e.hasKey(p)&&(e.set(p,!0),a.push(f.node1))}for(s=0;s=0&&!e.hasKey(v)&&(e.set(v,!0),o.push(_.node2))}}}return{edge:e.keys(),node:t.keys()}},e}(),yRe=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=Ej(),t=Ej();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i=0&&!e.hasKey(u)&&(e.set(u,!0),n.push(l.node1))}for(i=0;i=0&&!e.hasKey(m)&&(e.set(m,!0),r.push(p.node2))}return{edge:e.keys(),node:t.keys()}},e}();function bRe(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||`value`),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}KA(U4,bRe(`hostGraph`,`data`)),KA(yRe,bRe(`hostGraph`,`edgeData`));function W4(e,t,n,r,i){for(var a=new vRe(r),o=0;o `+f)),l++)}var p=n.get(`coordinateSystem`),m;if(p===`cartesian2d`||p===`polar`||p===`matrix`)m=xY(e,n);else{var h=NU.get(p),g=h&&h.dimensions||[];WA(g,`value`)<0&&g.concat([`value`]);var _=gY(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;m=new hY(_,n),m.initData(e)}var v=new hY([`value`],n);return v.initData(c,s),i&&i(m,v),BIe({mainData:m,struct:a,structAttr:`graph`,datas:{node:m,edge:v},datasAttr:{node:`data`,edge:`edgeData`}}),a.update(),a}var G4=`-->`,K4=function(e){return e.get(`autoCurveness`)||null},xRe=function(e,t){var n=K4(e),r=20,i=[];if(aj(n))r=n;else if(tj(n)){e.__curvenessList=n;return}t>r&&(r=t);var a=r%2?r+2:r+3;i=[];for(var o=0;o `),value:i.value,noValue:i.value==null})}return ZG({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=JA(this.option.categories||[],function(e){return e.value==null?Z({value:0},e):e}),t=new hY([`value`],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e)})},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get(`layout`)===`force`&&this.get([`force`,`layoutAnimation`]))},t.prototype.__ownRoamView=function(){var e=this.coordinateSystem;return LFe(e)&&e},t.type=`series.`+X4,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`],t.defaultOption={z:2,coordinateSystem:`view`,legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:`center`,top:`center`,symbol:`circle`,symbolSize:10,edgeSymbol:[`none`,`none`],edgeSymbolSize:10,edgeLabel:{position:`middle`,distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:`{b}`},itemStyle:{},lineStyle:{color:$.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:$.color.primary}}},t}(tK);function Z4(e){return e instanceof Array||(e=[e,e]),e}var ORe=_L(X4,kRe);function kRe(e){e.eachSeriesByType(X4,function(e){var t=e.getGraph(),n=e.getEdgeData(),r=Z4(e.get(`edgeSymbol`)),i=Z4(e.get(`edgeSymbolSize`));n.setVisual(`fromSymbol`,r&&r[0]),n.setVisual(`toSymbol`,r&&r[1]),n.setVisual(`fromSymbolSize`,i&&i[0]),n.setVisual(`toSymbolSize`,i&&i[1]),n.setVisual(`style`,e.getModel(`lineStyle`).getLineStyle()),n.each(function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),a=Z4(r.getShallow(`symbol`,!0)),o=Z4(r.getShallow(`symbolSize`,!0)),s=r.getModel(`lineStyle`).getLineStyle(),c=n.ensureUniqueItemVisual(e,`style`);switch(Z(c,s),c.stroke){case`source`:var l=i.node1.getVisual(`style`);c.stroke=l&&l.fill;break;case`target`:var l=i.node2.getVisual(`style`);c.stroke=l&&l.fill;break}a[0]&&i.setVisual(`fromSymbol`,a[0]),a[1]&&i.setVisual(`toSymbol`,a[1]),o[0]&&i.setVisual(`fromSymbolSize`,o[0]),o[1]&&i.setVisual(`toSymbolSize`,o[1])})})}function ARe(e){var t=e.coordinateSystem;if(!(t&&t.type!==`view`)){var n=e.getGraph();n.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get(`x`),+t.get(`y`)])}),Q4(n,e)}}function Q4(e,t){e.eachEdge(function(e,n){var r=gj(e.getModel().get([`lineStyle`,`curveness`]),-Y4(e,t,n,!0),0),i=Lj(e.node1.getLayout()),a=Lj(e.node2.getLayout()),o=[i,a];+r&&o.push([(i[0]+a[0])/2-(i[1]-a[1])*r,(i[1]+a[1])/2-(a[0]-i[0])*r]),e.setLayout(o)})}var jRe=_L(X4,MRe);function MRe(e,t){e.eachSeriesByType(X4,function(e){var t=e.get(`layout`),n=e.coordinateSystem;if(n&&n.type!==`view`){var r=e.getData(),i=[];Q(n.dimensions,function(e){i=i.concat(r.mapDimensionsAll(e))});for(var a=0;a0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if(r.__position!==`start`&&r.__position!==`end`){var S=-Math.atan2(v[1],v[0]);l[0].8?`left`:u[0]<-.8?`right`:`center`,p=u[1]>.8?`top`:u[1]<-.8?`bottom`:`middle`;break;case`start`:r.x=-u[0]*h+c[0],r.y=-u[1]*g+c[1],f=u[0]>.8?`right`:u[0]<-.8?`left`:`center`,p=u[1]>.8?`bottom`:u[1]<-.8?`top`:`middle`;break;case`insideStartTop`:case`insideStart`:case`insideStartBottom`:r.x=h*x+c[0],r.y=c[1]+C,f=v[0]<0?`right`:`left`,r.originX=-h*x,r.originY=-C;break;case`insideMiddleTop`:case`insideMiddle`:case`insideMiddleBottom`:case`middle`:r.x=b[0],r.y=b[1]+C,f=`center`,r.originY=-C;break;case`insideEndTop`:case`insideEnd`:case`insideEndBottom`:r.x=-h*x+l[0],r.y=l[1]+C,f=v[0]>=0?`right`:`left`,r.originX=h*x,r.originY=-C;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||f})}},t}(BF),l3=function(){function e(e){this.group=new BF,this._LineCtor=e||c3}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=ZRe(e);e.diff(i).add(function(n){t._doAdd(e,n,a)}).update(function(n,r){t._doUpdate(i,e,r,n,a)}).remove(function(e){r.remove(i.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=ZRe(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[];function r(e){!e.isGroup&&!XRe(e)&&(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var i=e.start;i0}function ZRe(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{lineStyle:t.getModel(`lineStyle`).getLineStyle(),emphasisLineStyle:n.getModel([`lineStyle`]).getLineStyle(),blurLineStyle:t.getModel([`blur`,`lineStyle`]).getLineStyle(),selectLineStyle:t.getModel([`select`,`lineStyle`]).getLineStyle(),emphasisDisabled:n.get(`disabled`),blurScope:n.get(`blurScope`),focus:n.get(`focus`),labelStatesModels:hH(t)}}function QRe(e){return isNaN(e[0])||isNaN(e[1])}function u3(e){return e&&!QRe(e[0])&&!QRe(e[1])}var d3=[],f3=[],p3=[],m3=jN,h3=Yj,$Re=Math.abs;function eze(e,t,n){for(var r=e[0],i=e[1],a=e[2],o=1/0,s,c=n*n,l=.1,u=.1;u<=.9;u+=.1){d3[0]=m3(r[0],i[0],a[0],u),d3[1]=m3(r[1],i[1],a[1],u);var d=$Re(h3(d3,t)-c);d=0?s+=l:s-=l:m>=0?s-=l:s+=l}return s}function g3(e,t){var n=[],r=PN,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(e,s){var c=e.getLayout(),l=e.getVisual(`fromSymbol`),u=e.getVisual(`toSymbol`);c.__original||(c.__original=[Lj(c[0]),Lj(c[1])],c[2]&&c.__original.push(Lj(c[2])));var d=c.__original;if(c[2]!=null){if(Ij(i[0],d[0]),Ij(i[1],d[2]),Ij(i[2],d[1]),l&&l!==`none`){var f=e3(e.node1),p=eze(i,d[0],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(u&&u!==`none`){var f=e3(e.node2),p=eze(i,d[1],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}Ij(c[0],i[0]),Ij(c[1],i[2]),Ij(c[2],i[1])}else{if(Ij(a[0],d[0]),Ij(a[1],d[1]),Vj(o,a[1],a[0]),Gj(o,o),l&&l!==`none`){var f=e3(e.node1);Bj(a[0],a[0],o,f*t)}if(u&&u!==`none`){var f=e3(e.node2);Bj(a[1],a[1],o,-f*t)}Ij(c[0],a[0]),Ij(c[1],a[1])}})}var tze=YI();function nze(e){if(e)return tze(e).bridge}function rze(e,t){e&&(tze(e).bridge=t)}var ize=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=X4,t}return t.prototype.init=function(e,t){var n=new v$,r=new l3,i=this.group,a=new BF;this._controller=new f2(t.getZr()),a.add(n.group),a.add(r.group),i.add(a),this._symbolDraw=n,this._lineDraw=r,this._mainGroup=a,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=X2(e),a=!1;this._model=e,this._api=n,this._active=!0;var o=this._mainGroup,s=this._getThumbnailInfo();s&&s.bridge.reset(n);var c=this._symbolDraw,l=this._lineDraw;i&&q2(o,2,i,this._firstRender?null:e),g3(e.getGraph(),$4(e));var u=e.getData();c.updateData(u);var d=e.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),i&&$2(e,n,this._controller,function(t,n,r){return e.coordinateSystem.containPoint([n,r])},null),clearTimeout(this._layoutTimeout);var f=e.forceLayout,p=e.get([`force`,`layoutAnimation`]);f&&(a=!0,this._startForceLayoutIteration(f,n,p));var m=e.get(`layout`);u.graph.eachNode(function(t){var i=t.dataIndex,a=t.getGraphicEl(),o=t.getModel();if(a){a.off(`drag`).off(`dragend`);var s=o.get(`draggable`);s&&a.on(`drag`,function(o){switch(m){case`force`:f.warmUp(),!r._layouting&&r._startForceLayoutIteration(f,n,p),f.setFixed(i),u.setItemLayout(i,[a.x,a.y]);break;case`circular`:u.setItemLayout(i,[a.x,a.y]),t.setLayout({fixed:!0},!0),n3(e,`symbolSize`,t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;default:u.setItemLayout(i,[a.x,a.y]),Q4(e.getGraph(),e),r.updateLayout(e);break}}).on(`dragend`,function(){f&&f.setUnfixed(i)}),a.setDraggable(s,!!o.get(`cursor`)),o.get([`emphasis`,`focus`])===`adjacency`&&(cz(a).focus=t.getAdjacentDataIndices())}}),u.graph.eachEdge(function(e){var t=e.getGraphicEl(),n=e.getModel().get([`emphasis`,`focus`]);t&&n===`adjacency`&&(cz(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})});var h=e.get(`layout`)===`circular`&&e.get([`circular`,`rotateLabel`]),g=u.getLayout(`cx`),_=u.getLayout(`cy`);u.graph.eachNode(function(e){FRe(e,h,g,_)}),this._firstRender=!1,a||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},t.prototype._startForceLayoutIteration=function(e,t,n){var r=this,i=!1;(function a(){e.step(function(e){r.updateLayout(r._model),(e||!i)&&(i=!0,r._renderThumbnail(r._model,t,r._symbolDraw,r._lineDraw)),(r._layouting=!e)&&(n?r._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype.__updateOnOwnRoam=function(e,t,n){var r=X2(t);!this._active||!r||(q2(this._mainGroup,2,r,null),QFe(e)&&(this._updateNodeAndLinkScale(),g3(t.getGraph(),$4(t)),this._lineDraw.updateLayout(),n.updateLabelLayout()),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=$4(e);t.eachItemGraphicEl(function(e,t){e&&e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(g3(e.getGraph(),$4(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,t=e.coordinateSystem;if(t.type===`view`){var n=nze(e);if(n)return{bridge:n,coordSys:t}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(F2(null,e.coordSys),this._api)},t.prototype._renderThumbnail=function(e,t,n,r){var i=this._getThumbnailInfo();if(i){var a=new BF,o=n.group.children(),s=r.group.children(),c=new BF,l=new BF;a.add(l),a.add(c);for(var u=0;u `),value:r.value,noValue:r.value==null})}return VG(`nameValue`,{name:r.name,value:r.value,noValue:r.value==null})},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(n===`node`){var i=this.getData(),a=this.getGraph().getNodeByIndex(t);r.name??=i.getName(t),r.value??=a.getLayout().value}return r},t.type=`series.`+_3,t.defaultOption={z:2,coordinateSystem:`none`,legendHoverLink:!0,colorBy:`data`,left:0,top:0,right:0,bottom:0,width:null,height:null,center:[`50%`,`50%`],radius:[`70%`,`80%`],clockwise:!0,startAngle:90,endAngle:`auto`,minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:`source`,opacity:.2},label:{show:!0,position:`outside`,distance:5},emphasis:{focus:`adjacency`,lineStyle:{opacity:.5}}},t}(tK),dze=function(e){X(t,e);function t(t,n,r){var i=e.call(this)||this;cz(i).dataType=`node`,i.z2=2;var a=new ZR;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.graph.getNodeByIndex(t),o=e.hostModel,s=a.getModel(),c=s.getModel(`emphasis`),l=e.getItemLayout(t),u=Z(W1(s.getModel(`itemStyle`),l,!0),l),d=this;if(isNaN(u.startAngle)){d.setShape(u);return}r?d.setShape(u):mV(d,{shape:u},o,t);var f=Z(W1(s.getModel(`itemStyle`),l,!0),l);i.setShape(f),i.useStyle(e.getItemVisual(t,`style`)),cB(i,s),this._updateLabel(o,s,a),e.setItemGraphicEl(t,d),cB(d,s,`itemStyle`);var p=c.get(`focus`);aB(this,p===`adjacency`?a.getAdjacentDataIndices():p,c.get(`blurScope`),c.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this.getTextContent(),i=n.getLayout(),a=(i.startAngle+i.endAngle)/2,o=Math.cos(a),s=Math.sin(a),c=t.getModel(`label`);r.ignore=!c.get(`show`);var l=hH(t),u=n.getVisual(`style`);mH(r,l,{labelFetcher:{getFormattedLabel:function(n,r,i,a,o,s){return e.getFormattedLabel(n,r,`node`,a,gj(o,l.normal&&l.normal.get(`formatter`),t.get(`name`)),s)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+``,inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:`startArc`});var d=c.get(`position`)||`outside`,f=c.get(`distance`)||0,p=d===`outside`?i.r+f:(i.r+i.r0)/2;this.textConfig={inside:d!==`outside`};var m=d===`outside`?o>0?`left`:`right`:c.get(`align`)||`center`,h=d===`outside`?s>0?`top`:`bottom`:c.get(`verticalAlign`)||`middle`;r.attr({x:o*p+i.cx,y:s*p+i.cy,rotation:0,style:{align:m,verticalAlign:h}})},t}(HB);(function(){function e(){this.s1=[0,0],this.s2=[0,0],this.sStartAngle=0,this.sEndAngle=0,this.t1=[0,0],this.t2=[0,0],this.tStartAngle=0,this.tEndAngle=0,this.cx=0,this.cy=0,this.r=0,this.clockwise=!0}return e})();var fze=function(e){X(t,e);function t(t,n,r,i){var a=e.call(this)||this;return cz(a).dataType=`edge`,a.updateData(t,n,r,i,!0),a}return t.prototype.buildPath=function(e,t){e.moveTo(t.s1[0],t.s1[1]);var n=.7,r=t.clockwise;e.arc(t.cx,t.cy,t.r,t.sStartAngle,t.sEndAngle,!r),e.bezierCurveTo((t.cx-t.s2[0])*n+t.s2[0],(t.cy-t.s2[1])*n+t.s2[1],(t.cx-t.t1[0])*n+t.t1[0],(t.cy-t.t1[1])*n+t.t1[1],t.t1[0],t.t1[1]),e.arc(t.cx,t.cy,t.r,t.tStartAngle,t.tEndAngle,!r),e.bezierCurveTo((t.cx-t.t2[0])*n+t.t2[0],(t.cy-t.t2[1])*n+t.t2[1],(t.cx-t.s1[0])*n+t.s1[0],(t.cy-t.s1[1])*n+t.s1[1],t.s1[0],t.s1[1]),e.closePath()},t.prototype.updateData=function(e,t,n,r,i){var a=e.hostModel,o=t.graph.getEdgeByIndex(n),s=o.getLayout(),c=o.node1.getModel(),l=t.getItemModel(o.dataIndex),u=l.getModel(`lineStyle`),d=l.getModel(`emphasis`),f=d.get(`focus`),p=Z(W1(c.getModel(`itemStyle`),s,!0),s),m=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){m.setShape(p);return}i?(m.setShape(p),pze(m,o,e,u)):(bV(m),pze(m,o,e,u),mV(m,{shape:p},a,n)),aB(this,f===`adjacency`?o.getAdjacentDataIndices():f,d.get(`blurScope`),d.get(`disabled`)),cB(m,l,`lineStyle`),t.setItemGraphicEl(o.dataIndex,m)},t}(BR);function pze(e,t,n,r){var i=t.node1,a=t.node2,o=e.style;switch(e.setStyle(r.getLineStyle()),r.get(`color`)){case`source`:o.fill=n.getItemVisual(i.dataIndex,`style`).fill,o.decal=i.getVisual(`style`).decal;break;case`target`:o.fill=n.getItemVisual(a.dataIndex,`style`).fill,o.decal=a.getVisual(`style`).decal;break;case`gradient`:var s=n.getItemVisual(i.dataIndex,`style`).fill,c=n.getItemVisual(a.dataIndex,`style`).fill;if(rj(s)&&rj(c)){var l=e.shape;o.fill=new eV((l.s1[0]+l.s2[0])/2,(l.s1[1]+l.s2[1])/2,(l.t1[0]+l.t2[0])/2,(l.t1[1]+l.t2[1])/2,[{offset:0,color:s},{offset:1,color:c}],!0)}break}}var mze=Math.PI/180,hze=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=_3,t}return t.prototype.init=function(e,t){},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group,o=-e.get(`startAngle`)*mze;if(r.diff(i).add(function(e){if(r.getItemLayout(e)){var t=new dze(r,e,o);cz(t).dataIndex=e,a.add(t)}}).update(function(t,n){var s=i.getItemGraphicEl(n);if(!r.getItemLayout(t)){s&&yV(s,e,n);return}s?s.updateData(r,t,o):s=new dze(r,t,o),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&yV(n,e,t)}).execute(),!i){var s=e.get(`center`);this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=sI(s[0],n.getWidth()),this.group.originY=sI(s[1],n.getHeight()),hV(this.group,{scaleX:1,scaleY:1},e)}this._data=r,this.renderEdges(e,o)},t.prototype.renderEdges=function(e,t){var n=e.getData(),r=e.getEdgeData(),i=this._edgeData,a=this.group;r.diff(i).add(function(e){var i=new fze(n,r,e,t);cz(i).dataIndex=e,a.add(i)}).update(function(e,o){var s=i.getItemGraphicEl(o);s.updateData(n,r,e,t),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&yV(n,e,t)}).execute(),this._edgeData=r},t.prototype.dispose=function(){},t.type=_3,t}(cK),v3=Math.PI/180,gze=_L(_3,_ze);function _ze(e,t){e.eachSeriesByType(_3,function(e){vze(e,t)})}function vze(e,t){var n=e.getData(),r=n.graph,i=e.getEdgeData();if(i.count()){var a=GU(e,t),o=a.cx,s=a.cy,c=a.r,l=a.r0,u=Math.max((e.get(`padAngle`)||0)*v3,0),d=Math.max((e.get(`minAngle`)||0)*v3,0),f=-e.get(`startAngle`)*v3,p=f+Math.PI*2,m=e.get(`clockwise`),h=m?1:-1,g=[f,p];TR(g,!m);var _=g[0],v=g[1]-_,y=n.getSum(`value`)===0&&i.getSum(`value`)===0,b=[],x=0;r.eachEdge(function(e){var t=y?1:e.getValue(`value`);y&&(t>0||d)&&(x+=2);var n=e.node1.dataIndex,r=e.node2.dataIndex;b[n]=(b[n]||0)+t,b[r]=(b[r]||0)+t});var S=0;if(r.eachNode(function(e){var t=e.getValue(`value`);isNaN(t)||(b[e.dataIndex]=Math.max(t,b[e.dataIndex]||0)),!y&&(b[e.dataIndex]>0||d)&&x++,S+=b[e.dataIndex]||0}),!(x===0||S===0)){u*x>=Math.abs(v)&&(u=Math.max(0,(Math.abs(v)-d*x)/x)),(u+d)*x>=Math.abs(v)&&(d=(Math.abs(v)-u*x)/x);var C=(v-u*x*h)/S,w=0,T=0,E=0,D=1/0;r.eachNode(function(e){var t=b[e.dataIndex]||0,n=C*(S?t:1)*h;Math.abs(n)T){var k=w/T;r.eachNode(function(e){var t=e.getLayout().angle;Math.abs(t)>=d?e.setLayout({angle:t*k,ratio:k},!0):e.setLayout({angle:d,ratio:d===0?1:t/d},!0)})}else r.eachNode(function(e){if(!O){var t=e.getLayout().angle;t-Math.min(t/E,1)*wd&&d>0){var n=O?1:Math.min(t/E,1),r=t-d,i=Math.min(r,Math.min(A,w*n));A-=i,e.setLayout({angle:t-i,ratio:(t-i)/t},!0)}else d>0&&e.setLayout({angle:d,ratio:t===0?1:d/t},!0)}});var j=_,M=[];r.eachNode(function(e){var t=Math.max(e.getLayout().angle,d);e.setLayout({cx:o,cy:s,r0:l,r:c,startAngle:j,endAngle:j+t*h,clockwise:m},!0),M[e.dataIndex]=j,j+=(t+u)*h}),r.eachEdge(function(e){var t=y?1:e.getValue(`value`),n=C*(S?t:1)*h,r=e.node1.dataIndex,i=M[r]||0,a=i+Math.abs((e.node1.getLayout().ratio||1)*n)*h,c=[o+l*Math.cos(i),s+l*Math.sin(i)],u=[o+l*Math.cos(a),s+l*Math.sin(a)],d=e.node2.dataIndex,f=M[d]||0,p=f+Math.abs((e.node2.getLayout().ratio||1)*n)*h,g=[o+l*Math.cos(f),s+l*Math.sin(f)],_=[o+l*Math.cos(p),s+l*Math.sin(p)];e.setLayout({s1:c,s2:u,sStartAngle:i,sEndAngle:a,t1:g,t2:_,tStartAngle:f,tEndAngle:p,cx:o,cy:s,r:l,value:t,clockwise:m}),M[r]=a,M[d]=p})}}}function yze(e){e.registerChartView(hze),e.registerSeriesModel(uze),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,gze),e.registerProcessor(a0(`chord`))}var bze=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),xze=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`pointer`,n}return t.prototype.getDefaultShape=function(){return new bze},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,a=t.width,o=t.angle,s=t.x-n(o)*a*(a>=i/3?1:2),c=t.y-r(o)*a*(a>=i/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,c),e.lineTo(t.x+n(o)*a,t.y+r(o)*a),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(o)*a,t.y-r(o)*a),e.lineTo(s,c)},t}(BR);function Sze(e,t){var n=e.get(`center`),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i);return{cx:sI(n[0],t.getWidth()),cy:sI(n[1],t.getHeight()),r:sI(e.get(`radius`),a/2)}}function y3(e,t){var n=e==null?``:e+``;return t&&(rj(t)?n=t.replace(`{value}`,n):nj(t)&&(n=t(e))),n}var Cze=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get([`axisLine`,`lineStyle`,`color`]),i=Sze(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var a=this.group,o=e.get(`clockwise`),s=-e.get(`startAngle`)/180*Math.PI,c=-e.get(`endAngle`)/180*Math.PI,l=e.getModel(`axisLine`),u=l.get(`roundCap`)?V1:HB,d=l.get(`show`),f=l.getModel(`lineStyle`),p=f.get(`width`),m=[s,c];TR(m,!o),s=m[0],c=m[1];for(var h=c-s,g=s,_=[],v=0;d&&v=e&&(t===0?0:r[t-1][0])Math.PI/2&&(R+=Math.PI)):L===`tangential`?R=-S-Math.PI/2:aj(L)&&(R=L*Math.PI/180),R===0?l.add(new ZR({style:gH(_,{text:N,x:F,y:I,verticalAlign:k<-.8?`top`:k>.8?`bottom`:`middle`,align:O<-.4?`left`:O>.4?`right`:`center`},{inheritColor:P}),silent:!0})):l.add(new ZR({style:gH(_,{text:N,x:F,y:I,verticalAlign:`middle`,align:`center`},{inheritColor:P}),silent:!0,originX:F,originY:I,rotation:R}))}if(g.get(`show`)&&A!==v){var j=g.get(`distance`);j=j?j+c:c;for(var z=0;z<=y;z++){O=Math.cos(S),k=Math.sin(S);var B=new qB({shape:{x1:O*(f-j)+u,y1:k*(f-j)+d,x2:O*(f-x-j)+u,y2:k*(f-x-j)+d},silent:!0,style:E});E.stroke===`auto`&&B.setStyle({stroke:r((A+z/y)/v)}),l.add(B),S+=w}S-=w}else S+=C}},t.prototype._renderPointer=function(e,t,n,r,i,a,o,s,c){var l=this.group,u=this._data,d=this._progressEls,f=[],p=e.get([`pointer`,`show`]),m=e.getModel(`progress`),h=m.get(`show`),g=e.getData(),_=g.mapDimension(`value`),v=+e.get(`min`),y=+e.get(`max`),b=[v,y],x=[a,o];function S(t,n){var r=g.getItemModel(t).getModel(`pointer`),a=sI(r.get(`width`),i.r),o=sI(r.get(`length`),i.r),s=e.get([`pointer`,`icon`]),c=r.get(`offsetCenter`),l=sI(c[0],i.r),u=sI(c[1],i.r),d=r.get(`keepAspect`),f=s?ZK(s,l-a/2,u-o,a,o,null,d):new xze({shape:{angle:-Math.PI/2,width:a,r:o,x:l,y:u}});return f.rotation=-(n+Math.PI/2),f.x=i.cx,f.y=i.cy,f}function C(e,t){var n=m.get(`roundCap`)?V1:HB,r=m.get(`overlap`),o=r?m.get(`width`):c/g.count(),l=r?i.r-o:i.r-(e+1)*o,u=r?i.r:i.r-e*o,d=new n({shape:{startAngle:a,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:l,r:u}});return r&&(d.z2=oI(g.get(_,e),[v,y],[100,0],!0)),d}(h||p)&&(g.diff(u).add(function(t){var n=g.get(_,t);if(p){var r=S(t,a);hV(r,{rotation:-((isNaN(+n)?x[0]:oI(n,b,x,!0))+Math.PI/2)},e),l.add(r),g.setItemGraphicEl(t,r)}if(h){var i=C(t,a);hV(i,{shape:{endAngle:oI(n,b,x,m.get(`clip`))}},e),l.add(i),lz(e.seriesIndex,g.dataType,t,i),f[t]=i}}).update(function(t,n){var r=g.get(_,t);if(p){var i=u.getItemGraphicEl(n),o=i?i.rotation:a,s=S(t,o);s.rotation=o,mV(s,{rotation:-((isNaN(+r)?x[0]:oI(r,b,x,!0))+Math.PI/2)},e),l.add(s),g.setItemGraphicEl(t,s)}if(h){var c=d[n],v=C(t,c?c.shape.endAngle:a);mV(v,{shape:{endAngle:oI(r,b,x,m.get(`clip`))}},e),l.add(v),lz(e.seriesIndex,g.dataType,t,v),f[t]=v}}).execute(),g.each(function(e){var t=g.getItemModel(e),n=t.getModel(`emphasis`),i=n.get(`focus`),a=n.get(`blurScope`),o=n.get(`disabled`),s=r(oI(g.get(_,e),b,[0,1],!0));if(p){var c=g.getItemGraphicEl(e),l=g.getItemVisual(e,`style`),u=l.fill;if(c instanceof HR){var d=c.style;c.useStyle(Z({image:d.image,x:d.x,y:d.y,width:d.width,height:d.height},l))}else c.useStyle(l),c.type!==`pointer`&&c.setColor(u);c.setStyle(t.getModel([`pointer`,`itemStyle`]).getItemStyle()),c.style.fill===`auto`&&c.setStyle(`fill`,s),c.z2EmphasisLift=0,cB(c,t),aB(c,i,a,o)}if(h){var m=f[e];m.useStyle(g.getItemVisual(e,`style`)),m.setStyle(t.getModel([`progress`,`itemStyle`]).getItemStyle()),m.style.fill===`auto`&&m.setStyle(`fill`,s),m.z2EmphasisLift=0,cB(m,t),aB(m,i,a,o)}}),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel(`anchor`);if(n.get(`show`)){var r=n.get(`size`),i=n.get(`icon`),a=n.get(`offsetCenter`),o=n.get(`keepAspect`),s=ZK(i,t.cx-r/2+sI(a[0],t.r),t.cy-r/2+sI(a[1],t.r),r,r,null,o);s.z2=+!!n.get(`showAbove`),s.setStyle(n.getModel(`itemStyle`).getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var a=this,o=e.getData(),s=o.mapDimension(`value`),c=+e.get(`min`),l=+e.get(`max`),u=new BF,d=[],f=[],p=e.isAnimationEnabled(),m=e.get([`pointer`,`showAbove`]);o.diff(this._data).add(function(e){d[e]=new ZR({silent:!0}),f[e]=new ZR({silent:!0})}).update(function(e,t){d[e]=a._titleEls[t],f[e]=a._detailEls[t]}).execute(),o.each(function(t){var n=o.getItemModel(t),a=o.get(s,t),h=new BF,g=r(oI(a,[c,l],[0,1],!0)),_=n.getModel(`title`);if(_.get(`show`)){var v=_.get(`offsetCenter`),y=i.cx+sI(v[0],i.r),b=i.cy+sI(v[1],i.r),x=d[t];x.attr({z2:m?0:2,style:gH(_,{x:y,y:b,text:o.getName(t),align:`center`,verticalAlign:`middle`},{inheritColor:g})}),h.add(x)}var S=n.getModel(`detail`);if(S.get(`show`)){var C=S.get(`offsetCenter`),w=i.cx+sI(C[0],i.r),T=i.cy+sI(C[1],i.r),E=sI(S.get(`width`),i.r),D=sI(S.get(`height`),i.r),O=e.get([`progress`,`show`])?o.getItemVisual(t,`style`).fill:g,x=f[t],k=S.get(`formatter`);x.attr({z2:m?0:2,style:gH(S,{x:w,y:T,text:y3(a,k),width:isNaN(E)?null:E,height:isNaN(D)?null:D,align:`center`,verticalAlign:`middle`},{inheritColor:O})}),wH(x,{normal:S},a,function(e){return y3(e,k)}),p&&TH(x,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return y3(o?o.interpolatedValue:a,k)}}),h.add(x)}u.add(h)}),this.group.add(u),this._titleEls=d,this._detailEls=f},t.type=`gauge`,t}(cK),wze=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`itemStyle`,n}return t.prototype.getInitialData=function(e,t){return o0(this,[`value`])},t.type=`series.gauge`,t.defaultOption={z:2,colorBy:`data`,center:[`50%`,`50%`],legendHoverLink:!0,radius:`75%`,startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,$.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:$.color.axisTick,width:3,type:`solid`}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:$.color.axisTickMinor,width:1,type:`solid`}},axisLabel:{show:!0,distance:15,color:$.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:`60%`,width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:`circle`,offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:$.color.neutral00,borderWidth:0,borderColor:$.color.theme[0]}},title:{show:!0,offsetCenter:[0,`20%`],color:$.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:$.color.transparent,borderWidth:0,borderColor:$.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,`40%`],color:$.color.primary,fontSize:30,fontWeight:`bold`,lineHeight:30,valueAnimation:!1}},t}(tK);function Tze(e){e.registerChartView(Cze),e.registerSeriesModel(wze)}var b3=`funnel`,Eze=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new s0($A(this.getData,this),$A(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return o0(this,{coordDimensions:[`value`],encodeDefaulter:ej(fW,this)})},t.prototype._defaultLabelLine=function(e){zI(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension(`value`),a=n.getSum(i);return r.percent=a?+(n.get(i,t)/a*100).toFixed(2):0,r.$vars.push(`percent`),r},t.type=`series.`+b3,t.defaultOption={coordinateSystemUsage:`box`,z:2,legendHoverLink:!0,colorBy:`data`,left:80,top:60,right:80,bottom:65,minSize:`0%`,maxSize:`100%`,sort:`descending`,orient:`vertical`,gap:0,funnelAlign:`center`,label:{show:!0,position:`outer`},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:$.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:$.color.primary}}},t}(tK),Dze=[`itemStyle`,`opacity`],Oze=function(e){X(t,e);function t(t,n){var r=e.call(this)||this,i=r,a=new KB,o=new ZR;return i.setTextContent(o),r.setTextGuideLine(a),r.updateData(t,n,!0),r}return t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,a=e.getItemModel(t),o=e.getItemLayout(t),s=a.getModel(`emphasis`),c=a.get(Dze);c??=1,n||bV(r),r.useStyle(e.getItemVisual(t,`style`)),r.style.lineJoin=`round`,n?(r.setShape({points:o.points}),r.style.opacity=0,hV(r,{style:{opacity:c}},i,t)):mV(r,{style:{opacity:c},shape:{points:o.points}},i,t),cB(r,a),this._updateLabel(e,t),aB(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),a=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t).label,c=e.getItemVisual(t,`style`),l=c.fill;mH(i,hH(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}});var u=o.getModel(`label`).get(`color`)===`inherit`?l:null;n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var d=s.linePoints;r.setShape({points:d}),n.textGuideLineConfig={anchor:d?new OM(d[0][0],d[0][1]):null},mV(i,{style:{x:s.x,y:s.y}},a,t),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),AZ(n,jZ(o),{stroke:l})},t}(GB),kze=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=b3,t.ignoreLabelLineUpdate=!0,t}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group;r.diff(i).add(function(e){var t=new Oze(r,e);r.setItemGraphicEl(e,t),a.add(t)}).update(function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),a.add(n),r.setItemGraphicEl(e,n)}).remove(function(t){yV(i.getItemGraphicEl(t),e,t)}).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type=b3,t}(cK);function Aze(e,t){for(var n=e.mapDimension(`value`),r=e.mapArray(n,function(e){return e}),i=[],a=t===`ascending`,o=0,s=e.count();o-1&&(i=`left`),n&&WA([`left`,`right`],i)>-1&&(i=`bottom`)),i===`left`?(p=(s[3][0]+s[0][0])/2,m=(s[3][1]+s[0][1])/2,h=p-_,u=h-5,l=`right`):i===`right`?(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,h=p+_,u=h+5,l=`left`):i===`top`?(p=(s[3][0]+s[0][0])/2,m=(s[3][1]+s[0][1])/2,g=m-_,d=g-5,l=`center`):i===`bottom`?(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,g=m+_,d=g+5,l=`center`):i===`rightTop`?(p=n?s[3][0]:s[1][0],m=n?s[3][1]:s[1][1],n?(g=m-_,d=g-5,l=`center`):(h=p+_,u=h+5,l=`top`)):i===`rightBottom`?(p=s[2][0],m=s[2][1],n?(g=m+_,d=g+5,l=`center`):(h=p+_,u=h+5,l=`bottom`)):i===`leftTop`?(p=s[0][0],m=n?s[0][1]:s[1][1],n?(g=m-_,d=g-5,l=`center`):(h=p-_,u=h-5,l=`right`)):i===`leftBottom`?(p=n?s[1][0]:s[3][0],m=n?s[1][1]:s[2][1],n?(g=m+_,d=g+5,l=`center`):(h=p-_,u=h-5,l=`right`)):(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,n?(g=m+_,d=g+5,l=`center`):(h=p+_,u=h+5,l=`left`)),n?(h=p,u=h):(g=m,d=g),f=[[p,m],[h,g]]}o.label={linePoints:f,x:u,y:d,verticalAlign:`middle`,textAlign:l,inside:c}})}var Mze=_L(b3,Nze);function Nze(e,t){e.eachSeriesByType(b3,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=e.get(`sort`),a=YU(e,t),o=KU(e.getBoxLayoutParams(),a.refContainer),s=Pze(e),c=o.width,l=o.height,u=Aze(n,i),d=o.x,f=o.y,p=s?[sI(e.get(`minSize`),l),sI(e.get(`maxSize`),l)]:[sI(e.get(`minSize`),c),sI(e.get(`maxSize`),c)],m=n.getDataExtent(r),h=e.get(`min`),g=e.get(`max`);h??=Math.min(m[0],0),g??=m[1];var _=e.get(`funnelAlign`),v=e.get(`gap`),y=((s?c:l)-v*(n.count()-1))/n.count(),b=function(e,t){if(s){var i=oI(n.get(r,e)||0,[h,g],p,!0),a=void 0;switch(_){case`top`:a=f;break;case`center`:a=f+(l-i)/2;break;case`bottom`:a=f+(l-i);break}return[[t,a],[t,a+i]]}var o=oI(n.get(r,e)||0,[h,g],p,!0),u;switch(_){case`left`:u=d;break;case`center`:u=d+(c-o)/2;break;case`right`:u=d+c-o;break}return[[u,t],[u+o,t]]};i===`ascending`&&(y=-y,v=-v,s?d+=c:f+=l,u=u.reverse());for(var x=0;xZze)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);r.behavior!==`none`&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!S3(this,`mousemove`))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r===`jump`&&this._throttledDispatchExpand.debounceNextCall(t.get(`axisExpandDebounce`)),this._throttledDispatchExpand(r===`none`?null:{axisExpandWindow:n.axisExpandWindow,animation:r===`jump`?null:{duration:0}})}}};function S3(e,t){var n=e._model;return n.get(`axisExpandable`)&&n.get(`axisExpandTriggerOn`)===t}var C3=`parallel`,w3=C3,eBe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&BA(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get(`parallelIndex`);return n!=null&&t.getComponent(`parallel`,n)===this},t.prototype.setAxisExpand=function(e){Q([`axisExpandable`,`axisExpandCenter`,`axisExpandCount`,`axisExpandWidth`,`axisExpandWindow`],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[];Q(XA(this.ecModel.queryComponents({mainType:`parallelAxis`}),function(e){return(e.get(`parallelIndex`)||0)===this.componentIndex},this),function(n){e.push(`dim`+n.get(`dim`)),t.push(n.componentIndex)})},t.type=w3,t.dependencies=[`parallelAxis`],t.layoutMode=`box`,t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:`horizontal`,axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:`click`,parallelAxisDefault:null},t}(tW),tBe=function(e){X(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||`value`,o.axisIndex=a,o}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get(`layout`)!==`horizontal`},t}(pZ);function T3(e,t,n,r,i,a){e||=0;var o=gI(n[1],-n[0]);if(i!=null&&(i=D3(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(gI(t[1],-t[0]));s=D3(s,[0,o]),i=a=D3(s,[i,a]),r=0}t[0]=D3(t[0],n),t[1]=D3(t[1],n);var c=E3(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=gI(u[0],l):u[1]=gI(u[1],-l),t[r]=D3(t[r],u);var d=E3(t,r);return i!=null&&(d.sign!==c.sign||d.spana&&(t[1-r]=gI(t[r],d.sign*a)),t}function E3(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function D3(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var nBe=function(){function e(e,t,n){this.type=C3,this._axesMap=Ej(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;Q(r,function(e,n){var r=i[n],a=t.getComponent(`parallelAxis`,r),o=aX(a),s=this._axesMap.set(e,new tBe(e,oX(a,o,!1),[0,0],o,r));s.onBand=hX(s.scale,a),s.inverse=a.get(`inverse`),a.axis=s,s.model=a,s.coordinateSystem=a.coordinateSystem=this},this)},e.prototype.update=function(e,t){Q(this.dimensions,function(e){var t=this._axesMap.get(e);FX(t,1),VX(t)},this)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,a=e[1-i],o=e[i];return a>=n&&a<=n+t.axisLength&&o>=r&&o<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype.resize=function(e,t){var n=YU(e,t).refContainer;this._rect=KU(e.getBoxLayoutParams(),n),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=[`x`,`y`],r=[`width`,`height`],i=e.get(`layout`),a=i===`horizontal`?0:1,o=t[r[a]],s=[0,o],c=this.dimensions.length,l=O3(e.get(`axisExpandWidth`),s),u=O3(e.get(`axisExpandCount`)||0,[0,c]),d=e.get(`axisExpandable`)&&c>3&&c>u&&u>1&&l>0&&o>0,f=e.get(`axisExpandWindow`),p;f?(p=O3(f[1]-f[0],s),f[1]=f[0]+p):(p=O3(l*(u-1),s),f=[l*(e.get(`axisExpandCenter`)||eI(c/2))-p/2],f[1]=f[0]+p);var m=(o-p)/(c-u);m<3&&(m=0);var h=[eI(uI(f[0]/l,1))+1,tI(uI(f[1]/l,1))-1],g=m/l*f[0];return{layout:i,pixelDimIndex:a,layoutBase:t[n[a]],layoutLength:o,axisBase:t[n[1-a]],axisLength:t[r[1-a]],axisExpandable:d,axisExpandWidth:l,axisCollapseWidth:m,axisExpandWindow:f,axisCount:c,winInnerIndices:h,axisExpandWindow0Pos:g}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each(function(e){var t=[0,r.axisLength],n=+!!e.inverse;e.setExtent(t[n],t[1-n])}),Q(n,function(t,n){var a=(r.axisExpandable?iBe:rBe)(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:aI/2,vertical:0},c=[o[i].x+e.x,o[i].y+e.y],l=s[i],u=yM();wM(u,u,l),CM(u,u,c),this._axesLayout[t]={position:c,rotation:l,transform:u,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){n??=0,r??=e.count();var i=this._axesMap,a=this.dimensions,o=[],s=[];Q(a,function(t){o.push(e.mapDimension(t)),s.push(i.get(t).model)});for(var c=this.hasAxisBrushed(),l=n;li*(1-u[0])?(c=`jump`,s=o-i*(1-u[2])):(s=o-i*u[1])>=0&&(s=o-i*(1-u[1]))<=0&&(s=0),s*=t.axisExpandWidth/l,s?T3(s,r,a,`all`):c=`none`;else{var f=r[1]-r[0];r=[ZF(0,a[1]*o/f-f/2)],r[1]=XF(a[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:c}},e}();function O3(e,t){return XF(ZF(e,t[0]),t[1])}function rBe(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function iBe(e,t){var n=t.layoutLength,r=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,c=a,l=!1,u;return e=0;n--)dI(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return`normal`;if(e==null||isNaN(+e))return`inactive`;if(t.length===1){var n=t[0];if(n[0]<=e&&e<=n[1])return`active`}else for(var r=0,i=t.length;rlBe}function SBe(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function CBe(e,t,n,r){var i=new BF;return i.add(new qR({name:`main`,style:V3(n),silent:!0,draggable:!0,cursor:`move`,drift:ej(OBe,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:ej(R3,t,{isEnd:!0})})),Q(r,function(n){i.add(new qR({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ej(OBe,e,t,i,n),ondragend:ej(R3,t,{isEnd:!0})}))}),i}function wBe(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=M3(i,uBe),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;B3(e,t,`main`,o,s,m,h),r.transformable&&(B3(e,t,`w`,c,l,a,_),B3(e,t,`e`,f,l,a,_),B3(e,t,`n`,c,l,g,a),B3(e,t,`s`,c,p,g,a),B3(e,t,`nw`,c,l,a,a),B3(e,t,`ne`,f,l,a,a),B3(e,t,`sw`,c,p,a,a),B3(e,t,`se`,f,p,a,a))}function z3(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(V3(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),Q([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?H3(e,n[0]):DBe(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?pBe[a]+`-resize`:null})})}function B3(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(jBe(U3(e,t,[[r,i],[r+a,i+o]])))}function V3(e){return UA({strokeNoScale:!0},e.brushStyle)}function TBe(e,t,n,r){var i=[j3(e,n),j3(t,r)],a=[M3(e,n),M3(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function EBe(e){return IV(e.group)}function H3(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[RV({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],EBe(e))]}function DBe(e,t){var n=[H3(e,t[0]),H3(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function OBe(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=ABe(t,i,a);Q(r,function(e){var t=fBe[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(TBe(s[0][0],s[1][0],s[0][1],s[1][1])),P3(t,n),R3(t,{isEnd:!1})}function kBe(e,t,n,r){var i=t.__brushOption.range,a=ABe(e,n,r);Q(i,function(e){e[0]+=a[0],e[1]+=a[1]}),P3(e,t),R3(e,{isEnd:!1})}function ABe(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function U3(e,t,n){var r=bBe(e,t);return r&&r!==A3?r.clipPath(n,e._transform):zA(n)}function jBe(e){var t=j3(e[0][0],e[1][0]),n=j3(e[0][1],e[1][1]),r=M3(e[0][0],e[1][0]),i=M3(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function MBe(e,t,n){if(!(!e._brushType||LBe(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,a=I3(e,t,n);if(!e._dragging)for(var o=0;or.getWidth()||n<0||n>r.getHeight()}var K3={lineX:RBe(0),lineY:RBe(1),rect:{createCover:function(e,t){function n(e){return e}return CBe({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=SBe(e);return TBe(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){wBe(e,t,n,r)},updateCommon:z3,contain:G3},polygon:{createCover:function(e,t){var n=new BF;return n.add(new KB({name:`main`,style:V3(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new GB({name:`main`,draggable:!0,drift:ej(kBe,e,t),ondragend:ej(R3,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:U3(e,t,n)})},updateCommon:z3,contain:G3}};function RBe(e){return{createCover:function(t,n){return CBe({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=SBe(t);return[j3(n[0][e],n[1][e]),M3(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=bBe(t,n);if(o!==A3&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),wBe(t,n,c,i)},updateCommon:z3,contain:G3}}function zBe(e){return e=q3(e),function(t){return VV(t,e)}}function BBe(e,t){return e=q3(e),function(n){var r=t??n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function VBe(e,t,n){var r=q3(e);return function(e,i){return r.contain(i[0],i[1])&&!d2(e,t,n)}}function q3(e){return VM.create(e)}var HBe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new N3(n.getZr())).on(`brush`,$A(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!UBe(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new BF,this.group.add(this._axisGroup),e.get(`show`)){var a=GBe(e,t),o=a.coordinateSystem,s=e.getAreaSelectStyle(),c=s.width,l=e.axis.dim,u=o.getAxisLayout(l),d=Z({strokeContainThreshold:c},u),f=new f1(e,n,d);f.build(),this._axisGroup.add(f.group),this._refreshBrushController(d,s,e,a,c,n),BV(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,a){var o=n.axis.getExtent(),s=o[1]-o[0],c=Math.min(30,Math.abs(s)*.1),l=VM.create({x:o[0],y:-i/2,width:s,height:i});l.x-=c,l.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:`pl`,clipPath:zBe(l),isTargetByCursor:VBe(l,a,r),getLinearBrushOtherExtent:BBe(l,0)}]).enableBrush({brushType:`lineX`,brushStyle:t,removeOnClick:!0}).updateCovers(WBe(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=JA(t,function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`axisAreaSelect`,parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type=`parallelAxis`,t}(aK);function UBe(e,t,n){return n&&n.type===`axisAreaSelect`&&t.findComponents({mainType:`parallelAxis`,query:n})[0]===e}function WBe(e){var t=e.axis;return JA(e.activeIntervals,function(e){return{brushType:`lineX`,panelId:`pl`,range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function GBe(e,t){return t.getComponent(`parallel`,e.get(`parallelIndex`))}var KBe={type:`axisAreaSelect`,event:`axisAreaSelected`};function qBe(e){e.registerAction(KBe,function(e,t){t.eachComponent({mainType:`parallelAxis`,query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),e.registerAction(`parallelAxisExpand`,function(e,t){t.eachComponent({mainType:`parallel`,query:e},function(t){t.setAxisExpand(e)})})}var JBe={type:`value`,areaSelectStyle:{width:20,borderWidth:1,borderColor:`rgba(160,197,232)`,color:`rgba(160,197,232)`,opacity:.3},realtime:!0,z:10};function YBe(e){e.registerComponentView(Qze),e.registerComponentModel(eBe),e.registerCoordinateSystem(`parallel`,oBe),e.registerPreprocessor(Jze),e.registerComponentModel(k3),e.registerComponentView(HBe),C0(e,`parallel`,k3,JBe),qBe(e)}function XBe(e){qJ(YBe),e.registerChartView(Lze),e.registerSeriesModel(Uze),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,qze)}var J3=`sankey`,ZBe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o=0&&(a[i[o].depth]=new jH(i[o],this,t));return W4(r,n,this,!0,s).data;function s(e,t){e.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e}),t.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})}},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||e==null}if(n===`edge`){var i=this.getDataParams(e,n),a=i.data,o=i.value;return VG(`nameValue`,{name:a.source+` -- `+a.target,value:o,noValue:r(o)})}else{var s=this.getGraph().getNodeByIndex(e).getLayout().value,c=this.getDataParams(e,n).data.name;return VG(`nameValue`,{name:c==null?null:c+``,value:s,noValue:r(s)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);return r.value==null&&n===`node`&&(r.value=this.getGraph().getNodeByIndex(t).getLayout().value),r},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type=`series.`+J3,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`5%`,top:`5%`,right:`20%`,bottom:`5%`,orient:`horizontal`,nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:`global`,center:null,zoom:1,label:{show:!0,position:`right`,fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:`justify`,lineStyle:{color:$.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:$.color.primary}},animationEasing:`linear`,animationDuration:1e3},t}(tK),QBe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),$Be=function(e){X(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new QBe},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient===`vertical`?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Kz(this)},t.prototype.downplay=function(){qz(this)},t}(BR),eVe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=J3,t._mainGroup=new BF,t}return t.prototype.init=function(e,t){this._controller=new f2(t.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,t,n){var r=e.getGraph(),i=this._mainGroup,a=e.layoutInfo,o=a.width,s=a.height,c=e.getData(),l=e.getData(`edge`),u=e.get(`orient`);i.removeAll(),i.x=a.x,i.y=a.y,this._updateViewCoordSys(e,n),$2(e,n,this._controller,XFe(i),null),r.eachEdge(function(t){var n=new $Be,r=cz(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType=`edge`;var a=t.getModel(),c=a.getModel(`lineStyle`),d=c.get(`curveness`),f=t.node1.getLayout(),p=t.node1.getModel(),m=p.get(`localX`),h=p.get(`localY`),g=t.node2.getLayout(),_=t.node2.getModel(),v=_.get(`localX`),y=_.get(`localY`),b=t.getLayout(),x,S,C,w,T,E,D,O;n.shape.extent=Math.max(1,b.dy),n.shape.orient=u,u===`vertical`?(x=(m==null?f.x:m*o)+b.sy,S=(h==null?f.y:h*s)+f.dy,C=(v==null?g.x:v*o)+b.ty,w=y==null?g.y:y*s,T=x,E=S*(1-d)+w*d,D=C,O=S*d+w*(1-d)):(x=(m==null?f.x:m*o)+f.dx,S=(h==null?f.y:h*s)+b.sy,C=v==null?g.x:v*o,w=(y==null?g.y:y*s)+b.ty,T=x*(1-d)+C*d,E=S,D=x*d+C*(1-d),O=w),n.setShape({x1:x,y1:S,x2:C,y2:w,cpx1:T,cpy1:E,cpx2:D,cpy2:O}),n.useStyle(c.getItemStyle()),tVe(n.style,u,t);var k=``+a.get(`value`),A=hH(a,`edgeLabel`);mH(n,A,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,`edge`,i,gj(a,A.normal&&A.normal.get(`formatter`),k),o)}},labelDataIndex:t.dataIndex,defaultText:k}),n.setTextConfig({position:`inside`});var j=a.getModel(`emphasis`);cB(n,a,`lineStyle`,function(e){var n=e.getItemStyle();return tVe(n,u,t),n}),i.add(n),l.setItemGraphicEl(t.dataIndex,n);var M=j.get(`focus`);aB(n,M===`adjacency`?t.getAdjacentDataIndices():M===`trajectory`?t.getTrajectoryDataIndices():M,j.get(`blurScope`),j.get(`disabled`))}),r.eachNode(function(t){var n=t.getLayout(),r=t.getModel(),a=r.get(`localX`),l=r.get(`localY`),u=r.getModel(`emphasis`),d=r.get([`itemStyle`,`borderRadius`])||0,f=new qR({shape:{x:a==null?n.x:a*o,y:l==null?n.y:l*s,width:n.dx,height:n.dy,r:d},style:r.getModel(`itemStyle`).getItemStyle(),z2:10});mH(f,hH(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,`node`)}},labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle(`fill`,t.getVisual(`color`)),f.setStyle(`decal`,t.getVisual(`style`).decal),cB(f,r),i.add(f),c.setItemGraphicEl(t.dataIndex,f),cz(f).dataType=`node`;var p=u.get(`focus`);aB(f,p===`adjacency`?t.getAdjacentDataIndices():p===`trajectory`?t.getTrajectoryDataIndices():p,u.get(`blurScope`),u.get(`disabled`))}),c.eachItemGraphicEl(function(t,r){c.getItemModel(r).get(`draggable`)&&(t.drift=function(t,i){this.shape.x+=t,this.shape.y+=i,this.dirty(),n.dispatchAction({type:`dragNode`,seriesId:e.id,dataIndex:c.getRawIndex(r),localX:this.shape.x/o,localY:this.shape.y/s})},t.draggable=!0,t.cursor=`move`)}),!this._data&&e.isAnimationEnabled()&&i.setClipPath(nVe(i.getBoundingRect(),e,function(){i.removeClipPath()})),this._data=e.getData(),this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,t,n){q2(this.group,2,t.coordinateSystem,null)},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype._updateViewCoordSys=function(e,t){var n=e.layoutInfo,r=e.coordinateSystem=n4(e,t,n.x,n.y,n.width,n.height);q2(this.group,2,r,this._firstRender?null:e)},t.type=J3,t}(cK);function tVe(e,t,n){switch(e.fill){case`source`:e.fill=n.node1.getVisual(`color`),e.decal=n.node1.getVisual(`style`).decal;break;case`target`:e.fill=n.node2.getVisual(`color`),e.decal=n.node2.getVisual(`style`).decal;break;case`gradient`:var r=n.node1.getVisual(`color`),i=n.node2.getVisual(`color`);rj(r)&&rj(i)&&(e.fill=new eV(0,0,+(t===`horizontal`),+(t===`vertical`),[{color:r,offset:0},{color:i,offset:1}]))}}function nVe(e,t,n){var r=new qR({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return hV(r,{shape:{width:e.width+20}},t,n),r}var rVe=_L(J3,iVe);function iVe(e,t){e.eachSeriesByType(J3,function(e){var n=e.get(`nodeWidth`),r=e.get(`nodeGap`),i=YU(e,t).refContainer,a=KU(e.getBoxLayoutParams(),i);e.layoutInfo=a;var o=a.width,s=a.height,c=e.getGraph(),l=c.nodes,u=c.edges;oVe(l),aVe(l,u,n,r,o,s,XA(l,function(e){return e.getLayout().value===0}).length===0?e.get(`layoutIterations`):0,e.get(`orient`),e.get(`nodeAlign`))})}function aVe(e,t,n,r,i,a,o,s,c){sVe(e,t,n,i,a,s,c),fVe(e,t,a,i,r,o,s),xVe(e,s)}function oVe(e){Q(e,function(e){var t=Q3(e.outEdges,Z3),n=Q3(e.inEdges,Z3),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)})}function sVe(e,t,n,r,i,a,o){for(var s=[],c=[],l=[],u=[],d=0,f=0;f=0;_&&g.depth>p&&(p=g.depth),h.setLayout({depth:_?g.depth:d},!0),a===`vertical`?h.setLayout({dy:n},!0):h.setLayout({dx:n},!0);for(var v=0;vd-1?p:d-1;o&&o!==`left`&&lVe(e,o,a,C),dVe(e,a===`vertical`?(i-n)/C:(r-n)/C,a)}function cVe(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function lVe(e,t,n,r){if(t===`right`){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)c*=.99,hVe(s,c,o),Y3(s,i,n,r,o),bVe(s,c,o),Y3(s,i,n,r,o)}function pVe(e,t){var n=[],r=t===`vertical`?`y`:`x`,i=nL(e,function(e){return e.getLayout()[r]});return dI(i.keys),Q(i.keys,function(e){n.push(i.buckets.get(e))}),n}function mVe(e,t,n,r,i,a){var o=1/0;Q(e,function(e){var t=e.length,s=0;Q(e,function(e){s+=e.getLayout().value});var c=a===`vertical`?(r-(t-1)*i)/s:(n-(t-1)*i)/s;c0&&(o=s.getLayout()[a]+c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]+s.getLayout()[d]+t;var p=i===`vertical`?r:n;if(c=l-t-p,c>0){o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0),l=o;for(var f=u-2;f>=0;--f)s=e[f],c=s.getLayout()[a]+s.getLayout()[d]+t-l,c>0&&(o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]}})}function hVe(e,t,n){Q(e.slice().reverse(),function(e){Q(e,function(e){if(e.outEdges.length){var r=Q3(e.outEdges,gVe,n)/Q3(e.outEdges,Z3);if(isNaN(r)){var i=e.outEdges.length;r=i?Q3(e.outEdges,_Ve,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-X3(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-X3(e,n))*t;e.setLayout({y:o},!0)}}})})}function gVe(e,t){return X3(e.node2,t)*e.getValue()}function _Ve(e,t){return X3(e.node2,t)}function vVe(e,t){return X3(e.node1,t)*e.getValue()}function yVe(e,t){return X3(e.node1,t)}function X3(e,t){return t===`vertical`?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Z3(e){return e.getValue()}function Q3(e,t,n){for(var r=0,i=e.length,a=-1;++aa&&(a=t)}),Q(n,function(t){var n=new j4({type:`color`,mappingMethod:`linear`,dataExtent:[i,a],visual:e.get(`color`)}).mapValueToVisual(t.getLayout().value),r=t.getModel().get([`itemStyle`,`color`]);r==null?(t.setVisual(`color`,n),t.setVisual(`style`,{fill:n})):(t.setVisual(`color`,r),t.setVisual(`style`,{fill:r}))})}r.length&&Q(r,function(e){var t=e.getModel().get(`lineStyle`);e.setVisual(`style`,t)})})}function wVe(e){e.registerChartView(eVe),e.registerSeriesModel(ZBe),e.registerLayout(rVe),e.registerVisual(SVe),e.registerAction({type:`dragNode`,event:`dragnode`,update:`update`},function(e,t){t.eachComponent({mainType:uz,subType:J3,query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),t4(e,uz,J3)}var TVe=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},e.prototype.getInitialData=function(e,t){var n,r=t.getComponent(`xAxis`,this.get(`xAxisIndex`)),i=t.getComponent(`yAxis`,this.get(`yAxisIndex`)),a=r.get(`type`),o=i.get(`type`),s,c=e.layout;a===`category`?(c=`horizontal`,n=r.getOrdinalMeta(),s=!this._hasEncodeRule(`x`)):o===`category`&&(c=`vertical`,n=i.getOrdinalMeta(),s=!this._hasEncodeRule(`y`)),c||=o===`time`?`vertical`:`horizontal`,this._layout=c;var l=[`x`,`y`],u=c===`horizontal`?0:1,d=this._baseAxisDim=l[u],f=l[1-u],p=[r,i],m=p[u].get(`type`),h=p[1-u].get(`type`),g=e.data;if(g&&s){var _=[];Q(g,function(e,t){var n;tj(e)?(n=e.slice(),e.unshift(t)):tj(e.value)?(n=Z({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,_.push(n)}),e.data=_}var v=this.defaultValueDimensions,y=[{name:d,type:QJ(m),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:[`base`]},{name:f,type:QJ(h),dimsDef:v.slice()}];return o0(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:ej(dW,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+`Axis`,this.get(e+`AxisIndex`)).axis},e.prototype.getWhiskerBoxesLayout=function(){return this._layout},e}();function $3(e,t){for(var n=t.ends.length,r=0,i=0;ih){var b=[_,y];r.push(b)}}}return{boxData:n,outliers:r}}var BVe={type:`echarts:boxplot`,transform:function(e){var t=e.upstream;t.sourceFormat!==`arrayRows`&&PI(``);var n=zVe(t.getRawData(),e.config);return[{dimensions:[`ItemName`,`Low`,`Q1`,`Q2`,`Q3`,`High`],data:n.boxData},{data:n.outliers}]}};function VVe(e){e.registerSeriesModel(EVe),e.registerChartView(DVe),e.registerLayout(PVe),e.registerTransform(BVe),RVe(e)}var t6=`candlestick`,HVe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`open`,defaultTooltip:!0},{name:`close`,defaultTooltip:!0},{name:`lowest`,defaultTooltip:!0},{name:`highest`,defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return`open`},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type=`series.`+t6,t.dependencies=[`xAxis`,`yAxis`,`grid`],t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:`#eb5454`,color0:`#47b262`,borderColor:`#eb5454`,borderColor0:`#47b262`,borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:`mod`,animationEasing:`linear`,animationDuration:300},t}(tK);KA(HVe,TVe,!0);var UVe=[`itemStyle`,`borderColor`],WVe=[`itemStyle`,`borderColor0`],GVe=[`itemStyle`,`borderColorDoji`],KVe=[`itemStyle`,`color`],qVe=[`itemStyle`,`color0`];function n6(e,t){return t.get(e>0?KVe:qVe)}function r6(e,t){return t.get(e===0?GVe:e>0?UVe:WVe)}var JVe={seriesType:t6,plan:oK(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;(n=e.next())!=null;){var r=t.getItemModel(n),i=t.getItemLayout(n).sign,a=r.getItemStyle();a.fill=n6(i,r),a.stroke=r6(i,r)||a.fill,Z(t.ensureUniqueItemVisual(n,`style`),a)}}}}},YVe=[`color`,`borderColor`],XVe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){QV(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout(`isSimpleBox`),a=e.get(`clip`,!0),o=e.coordinateSystem,s=o.getArea&&o.getArea(),c=a&&j$(o,!1,e);this._data||r.removeAll();var l=eHe(e);t.diff(n).add(function(n){if(t.hasValue(n)){var o=t.getItemLayout(n),u=a?$3(s,o):0;if(u===2)return;var d=i6(o,n,l,!0);hV(d,{shape:{points:o.ends}},e,n),M$(u===1,d,c),a6(d,t,n,i),r.add(d),t.setItemGraphicEl(n,d)}}).update(function(o,u){var d=n.getItemGraphicEl(u);if(!t.hasValue(o)){r.remove(d);return}var f=t.getItemLayout(o),p=a?$3(s,f):0;if(p===2){r.remove(d);return}d?(mV(d,{shape:{points:f.ends}},e,o),bV(d)):d=i6(f,o,l),a6(d,t,o,i),M$(p===1,d,c),r.add(d),t.setItemGraphicEl(o,d)}).remove(function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),nHe(e,this.group);var t=e.get(`clip`,!0)?j$(e.coordinateSystem,!1,e):null;M$(!!t,this.group,t)},t.prototype._incrementalRenderNormal=function(e,t){for(var n=t.getData(),r=n.getLayout(`isSimpleBox`),i=eHe(t),a;(a=e.next())!=null;){var o=i6(n.getItemLayout(a),a,i);a6(o,n,a,r),o.incremental=hL(t),this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){nHe(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),M$(!1,this.group,null),this._data=null},t.type=t6,t}(cK),ZVe=function(){function e(){}return e}(),QVe=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`normalCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new ZVe},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(BR);function i6(e,t,n,r){var i=e.ends;return new QVe({shape:{points:r?$Ve(i,n,e):i},z2:100})}function a6(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,`style`)),e.style.strokeNoScale=!0;var a=i.getShallow(`cursor`);a&&e.attr(`cursor`,a),e.__simpleBox=r,cB(e,i);var o=t.getItemLayout(n).sign;Q(e.states,function(e,t){var n=i.getModel(t),r=n6(o,n),a=r6(o,n)||r,s=e.style||={};r&&(s.fill=r),a&&(s.stroke=a)});var s=i.getModel(`emphasis`);aB(e,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))}function $Ve(e,t,n){return JA(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}function eHe(e){return+(e.getWhiskerBoxesLayout()===`horizontal`)}var tHe=function(){function e(){}return e}(),o6=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new tHe},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;rh?x[a]:b[a],ends:w,brushRect:O(g,_,p)})}function E(e,n){var r=[];return r[i]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function D(e,t,n){var a=t.slice(),o=t.slice();a[i]=FV(a[i]+r/2,1,!1),o[i]=FV(o[i]-r/2,1,!0),n?e.push(a,o):e.push(o,a)}function O(e,t,n){var o=E(e,n),s=E(t,n);return o[i]-=r/2,s[i]-=r/2,{x:o[0],y:o[1],width:a?r:s[0]-o[0],height:a?s[1]-o[1]:r}}function k(e){return e[i]=FV(e[i],1),e}}function m(n,r){for(var o=S$(n.count*4),c=0,p,m=[],h=[],g,_=r.getStore(),v=!!e.get([`itemStyle`,`borderColorDoji`]);(g=n.next())!=null;){var y=_.get(s,g),b=_.get(l,g),x=_.get(u,g),S=_.get(d,g),C=_.get(f,g);if(isNaN(y)||isNaN(S)||isNaN(C)){o[c++]=NaN,c+=3;continue}o[c++]=oHe(_,g,b,x,u,v),m[i]=y,m[a]=S,p=t.dataToPoint(m,null,h),o[c++]=p?p[0]:NaN,o[c++]=p?p[1]:NaN,m[a]=C,p=t.dataToPoint(m,null,h),o[c++]=p?p[1]:NaN}r.setLayout(`largePoints`,o)}}};function oHe(e,t,n,r,i,a){return n>r?-1:n0?e.get(i,t-1)<=r?1:-1:1}function sHe(e,t){var n=dZ(e.getBaseAxis(),{fromStat:{key:w1(t6)},min:1}).w,r=sI(hj(e.get(`barMaxWidth`),n),n),i=sI(hj(e.get(`barMinWidth`),1),n),a=e.get(`barWidth`);return a==null?ZF(XF(n/2,r),i):sI(a,n)}function cHe(e){iHe(e,function(){var t=w1(t6);OX(e,{key:t,seriesType:t6,getMetrics:E1}),LX(t,C1(t))})}function lHe(e){e.registerChartView(XVe),e.registerSeriesModel(HVe),e.registerPreprocessor(rHe),e.registerVisual(JVe),e.registerLayout(aHe),cHe(e)}function uHe(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType===`stroke`?n:null,fill:t.brushType===`fill`?n:null}})})}var dHe=function(e){X(t,e);function t(t,n){var r=e.call(this)||this,i=new p$(t,n),a=new BF;return r.add(i),r.add(a),r.updateData(t,n),r}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),a=0;a0&&(a=this._getLineLength(r)/c*1e3),a!==this._period||o!==this._loop||s!==this._roundTrip){r.stopAnimation();var u=void 0;u=nj(l)?l(n):l,r.__t>0&&(u=-a*r.__t),this._animateSymbol(r,a,u,o,s)}this._period=a,this._loop=o,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var a=this,o=e.animate(``,r).when(i?t*2:t,{__t:i?2:1}).delay(n).during(function(){a._updateSymbolPosition(e)});r||o.done(function(){a.remove(e)}),o.start()}},t.prototype._getLineLength=function(e){return qj(e.__p1,e.__cp1)+qj(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t<=1?e.__t:2-e.__t,a=[e.x,e.y],o=a.slice(),s=jN,c=MN;a[0]=s(t[0],r[0],n[0],i),a[1]=s(t[1],r[1],n[1],i);var l=e.__t<=1?c(t[0],r[0],n[0],i):c(n[0],r[0],t[0],1-i),u=e.__t<=1?c(t[1],r[1],n[1],i):c(n[1],r[1],t[1],1-i);e.rotation=-Math.atan2(u,l)-Math.PI/2,(this._symbolType===`line`||this._symbolType===`rect`||this._symbolType===`roundRect`)&&(e.__lastT!==void 0&&e.__lastT=0&&!(r[o]<=t);o--);o=Math.min(o,i-2)}else{for(o=a;ot);o++);o=Math.min(o-1,i-2)}var s=(t-r[o])/(r[o+1]-r[o]),c=n[o],l=n[o+1];e.x=c[0]*(1-s)+s*l[0],e.y=c[1]*(1-s)+s*l[1];var u=e.__t<=1?l[0]-c[0]:c[0]-l[0],d=e.__t<=1?l[1]-c[1]:c[1]-l[1];e.rotation=-Math.atan2(d,u)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(gHe),yHe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),bHe=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new yHe},t.prototype.buildPath=function(e,t){var n=t.segs,r=t.curveness,i;if(t.polyline)for(i=this._off;i0){e.moveTo(n[i++],n[i++]);for(var o=1;o0){var d=(s+l)/2-(c-u)*r,f=(c+u)/2-(l-s)*r;e.quadraticCurveTo(d,f,l,u)}else e.lineTo(l,u)}this.incremental&&(this._off=i,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s0)for(var l=r[s++],u=r[s++],d=1;d0){if(OR(l,u,(l+f)/2-(u-p)*i,(u+p)/2-(f-l)*i,f,p,a,e,t))return o}else if(DR(l,u,f,p,a,e,t))return o;o++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,r=1/0,i=-1/0,a=-1/0,o=0;o0&&(a.dataIndex=n+e.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),SHe={seriesType:`lines`,plan:oK(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get(`polyline`),r=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,c=i.end-i.start;if(n){for(var l=0,u=i.start;u0&&c&&s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)}),i.updateData(r);var l=e.get(`clip`,!0)&&j$(e.coordinateSystem,!1,e);l?this.group.setClipPath(l):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateLineDraw(r,e).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData(),hL(t)),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=this._lineDraw;if(!this._finished||!i||!i.updateLayout)return{update:!0};var a=SHe.reset(e,t,n);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),i.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get(`polyline`),a=t.pipelineContext.large;return(!n||r!==this._hasEffet||i!==this._isPolyline||a!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=a?new xHe:new l3(i?r?vHe:_He:r?gHe:c3),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get([`effect`,`show`])},t.prototype._clearLayer=function(e){var t=uH(e);t&&this._lastZlevel!=null&&t.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type=`lines`,t}(cK),wHe=typeof Uint32Array>`u`?Array:Uint32Array,THe=typeof Float64Array>`u`?Array:Float64Array;function EHe(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=JA(t,function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),VA([t,e[0],e[1]])}))}var DHe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`lineStyle`,n.visualDrawType=`stroke`,n}return t.prototype.init=function(t){t.data=t.data||[],EHe(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(EHe(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Dj(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Dj(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow(`coords`)},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],r=this._flatCoordsOffset[e*2+1],i=0;i `)}return VG(`nameValue`,{name:o,value:i,noValue:i==null||isNaN(i)})},t.prototype.preventIncremental=function(){return!!this.get([`effect`,`show`])},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?1e4:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?2e4:this.get(`progressiveThreshold`))},t.prototype.getZLevelKey=function(){var e=this.getModel(`effect`),t=e.get(`trailLength`);return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get(`show`)&&t>0?t+``:``},t.type=`series.lines`,t.dependencies=[`grid`,`polar`,`geo`,`calendar`],t.defaultOption={coordinateSystem:`geo`,z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:[`none`,`none`],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:`circle`,symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:`end`},lineStyle:{opacity:.5}},t}(tK);function c6(e){return e instanceof Array||(e=[e,e]),e}var OHe={seriesType:`lines`,reset:function(e){var t=c6(e.get(`symbol`)),n=c6(e.get(`symbolSize`)),r=e.getData();r.setVisual(`fromSymbol`,t&&t[0]),r.setVisual(`toSymbol`,t&&t[1]),r.setVisual(`fromSymbolSize`,n&&n[0]),r.setVisual(`toSymbolSize`,n&&n[1]);function i(e,t){var n=e.getItemModel(t),r=c6(n.getShallow(`symbol`,!0)),i=c6(n.getShallow(`symbolSize`,!0));r[0]&&e.setItemVisual(t,`fromSymbol`,r[0]),r[1]&&e.setItemVisual(t,`toSymbol`,r[1]),i[0]&&e.setItemVisual(t,`fromSymbolSize`,i[0]),i[1]&&e.setItemVisual(t,`toSymbolSize`,i[1])}return{dataEach:r.hasItemOption?i:null}}};function kHe(e){e.registerChartView(CHe),e.registerSeriesModel(DHe),e.registerLayout(SHe),e.registerVisual(OHe)}var AHe=256,jHe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=EA.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,`inRange`),c=this._getGradient(i,`outOfRange`),l=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext(`2d`),f=e.length;u.width=t,u.height=n;for(var p=0;p0){var E=a(v)?s:c;v>0&&(v=v*w+C),b[x++]=E[T],b[x++]=E[T+1],b[x++]=E[T+2],b[x++]=E[T+3]*v*256}else x+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||=EA.createCanvas(),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var r=e.getContext(`2d`);return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor=$.color.neutral99,r.beginPath(),r.arc(-t,t,this.pointSize,0,Math.PI*2,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}();function MHe(e,t,n){var r=e[1]-e[0];t=JA(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}});var i=t.length,a=0;return function(e){var r;for(r=a;r=0;r--){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r=t[0]&&e<=t[1]}}var PHe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r;t.eachComponent(`visualMap`,function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;i.type===`cartesian2d`||i.type===`calendar`||i.type===`matrix`?this._renderOnGridLike(e,n,0,e.getData().count()):F$(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(F$(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnGridLike(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){QV(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,n,r,i){var a=e.coordinateSystem,o=P$(a,`cartesian2d`),s=P$(a,`matrix`),c,l,u,d;if(o){var f=a.getAxis(`x`),p=a.getAxis(`y`);c=dZ(f).w+.5,l=dZ(p).w+.5,u=f.scale.getExtent(),d=p.scale.getExtent()}for(var m=this.group,h=e.getData(),g=e.getModel([`emphasis`,`itemStyle`]).getItemStyle(),_=e.getModel([`blur`,`itemStyle`]).getItemStyle(),v=e.getModel([`select`,`itemStyle`]).getItemStyle(),y=e.get([`itemStyle`,`borderRadius`]),b=hH(e),x=e.getModel(`emphasis`),S=x.get(`focus`),C=x.get(`blurScope`),w=x.get(`disabled`),T=o||s?[h.mapDimension(`x`),h.mapDimension(`y`),h.mapDimension(`value`)]:[h.mapDimension(`time`),h.mapDimension(`value`)],E=n;Eu[1]||Ad[1])continue;var j=a.dataToPoint([k,A]);D=new qR({shape:{x:j[0]-c/2,y:j[1]-l/2,width:c,height:l},style:O})}else if(s){var M=a.dataToLayout([h.get(T[0],E),h.get(T[1],E)]).rect;if(pj(M.x))continue;D=new qR({z2:1,shape:M,style:O})}else{if(isNaN(h.get(T[1],E)))continue;var N=a.dataToLayout([h.get(T[0],E)]),M=N.contentRect||N.rect;if(pj(M.x)||pj(M.y))continue;D=new qR({z2:1,shape:M,style:O})}if(h.hasItemOption){var P=h.getItemModel(E),F=P.getModel(`emphasis`);g=F.getModel(`itemStyle`).getItemStyle(),_=P.getModel([`blur`,`itemStyle`]).getItemStyle(),v=P.getModel([`select`,`itemStyle`]).getItemStyle(),y=P.get([`itemStyle`,`borderRadius`]),S=F.get(`focus`),C=F.get(`blurScope`),w=F.get(`disabled`),b=hH(P)}D.shape.r=y;var I=e.getRawValue(E),L=`-`;I&&I[2]!=null&&(L=I[2]+``),mH(D,b,{labelFetcher:e,labelDataIndex:E,defaultOpacity:O.opacity,defaultText:L}),D.ensureState(`emphasis`).style=g,D.ensureState(`blur`).style=_,D.ensureState(`select`).style=v,aB(D,S,C,w),D.incremental=hL(e,i),i&&(D.states.emphasis.hoverLayer=2),m.add(D),h.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new jHe;s.blurSize=t.get(`blurSize`),s.pointSize=t.get(`pointSize`),s.minOpacity=t.get(`minOpacity`),s.maxOpacity=t.get(`maxOpacity`);var c=e.getViewRect().clone(),l=e.getRoamTransform();c.applyTransform(l);var u=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,r.getWidth()),p=Math.min(c.height+c.y,r.getHeight()),m=f-u,h=p-d,g=[o.mapDimension(`lng`),o.mapDimension(`lat`),o.mapDimension(`value`)],_=o.mapArray(g,function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=u,i[1]-=d,i.push(r),i}),v=n.getExtent(),y=n.type===`visualMap.continuous`?NHe(v,n.option.range):MHe(v,n.getPieceList(),n.option.selected);s.update(_,m,h,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new HR({style:{width:m,height:h,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type=`heatmap`,t}(cK),FHe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return xY(null,this,{generateCoord:`value`})},t.prototype.preventIncremental=function(){var e=NU.get(this.get(`coordinateSystem`));if(e&&e.dimensions)return e.dimensions[0]===`lng`&&e.dimensions[1]===`lat`},t.type=`series.heatmap`,t.dependencies=[`grid`,`geo`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:$.color.primary}}},t}(tK);function IHe(e){e.registerChartView(PHe),e.registerSeriesModel(FHe)}var LHe=[`itemStyle`,`borderWidth`],RHe=[{xy:`x`,wh:`width`,index:0,posDesc:[`left`,`right`]},{xy:`y`,wh:`height`,index:1,posDesc:[`top`,`bottom`]}],l6=new kB,zHe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=D1,t}return t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis().isHorizontal(),c=o.master.getRect(),l={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:s,valueDim:RHe[+s],categoryDim:RHe[1-s]};i.diff(a).add(function(e){if(i.hasValue(e)){var t=BHe(i,e,XHe(i,e),l),n=$He(i,l,t);i.setItemGraphicEl(e,n),r.add(n),rUe(n,l,t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!i.hasValue(e)){r.remove(n);return}var o=BHe(i,e,XHe(i,e),l),s=nUe(i,o);n&&s!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?eUe(n,l,o):n=$He(i,l,o,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=o,r.add(n),rUe(n,l,o)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&tUe(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute();var u=e.get(`clip`,!0)?j$(e.coordinateSystem,!1,e):null;return u?r.setClipPath(u):r.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get(`animation`)?r&&r.eachItemGraphicEl(function(t){tUe(r,cz(t).dataIndex,e,t)}):n.removeAll()},t.type=D1,t}(cK);function BHe(e,t,n,r){var i=e.getItemLayout(t),a=n.get(`symbolRepeat`),o=n.get(`symbolClip`),s=n.get(`symbolPosition`)||`start`,c=(n.get(`symbolRotate`)||0)*Math.PI/180||0,l=n.get(`symbolPatternSize`)||2,u=n.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,`symbol`)||`circle`,style:e.getItemVisual(t,`style`),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get(`symbolRepeatDirection`),symbolPatternSize:l,rotation:c,animationModel:u?n:null,hoverScale:u&&n.get([`emphasis`,`scale`]),z2:n.getShallow(`z`,!0)||0};VHe(n,a,i,r,d),HHe(e,t,i,a,o,d.boundingLength,d.pxSign,l,r,d),UHe(n,d.symbolScale,c,r,d);var f=d.symbolSize;return WHe(n,f,i,a,o,$K(n.get(`symbolOffset`),f),s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function VHe(e,t,n,r,i){var a=r.valueDim,o=e.get(`symbolBoundingData`),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=s.toGlobalCoord(s.dataToCoord(0)),l=1-(n[a.wh]<=0),u;if(tj(o)){var d=[u6(s,o[0])-c,u6(s,o[1])-c];d[1]=0?1:-1:u>0?1:-1}function u6(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function HHe(e,t,n,r,i,a,o,s,c,l){var u=c.valueDim,d=c.categoryDim,f=Math.abs(n[d.wh]),p=e.getItemVisual(t,`symbolSize`),m=tj(p)?p.slice():p==null?[`100%`,`100%`]:[p,p];m[d.index]=sI(m[d.index],f),m[u.index]=sI(m[u.index],r?f:Math.abs(a)),l.symbolSize=m;var h=l.symbolScale=[m[0]/s,m[1]/s];h[u.index]*=(c.isHorizontal?-1:1)*o}function UHe(e,t,n,r,i){var a=e.get(LHe)||0;a&&(l6.attr({scaleX:t[0],scaleY:t[1],rotation:n}),l6.updateTransform(),a/=l6.getLineScale(),a*=t[r.valueDim.index]),i.valueLineWidth=a||0}function WHe(e,t,n,r,i,a,o,s,c,l,u,d){var f=u.categoryDim,p=u.valueDim,m=d.pxSign,h=Math.max(t[p.index]+s,0),g=h;if(r){var _=Math.abs(c),v=mj(e.get(`symbolMargin`),`15%`)+``,y=!1;v.lastIndexOf(`!`)===v.length-1&&(y=!0,v=v.slice(0,v.length-1));var b=sI(v,t[p.index]),x=Math.max(h+b*2,0),S=y?0:b*2,C=DI(r),w=C?r:iUe((_+S)/x);b=(_-w*h)/2/(y?w:Math.max(w-1,1)),x=h+b*2,S=y?0:b*2,!C&&r!==`fixed`&&(w=l?iUe((Math.abs(l)+S)/x):0),g=w*x-S,d.repeatTimes=w,d.symbolMargin=b}var T=g/2*m,E=d.pathPosition=[];E[f.index]=n[f.wh]/2,E[p.index]=o===`start`?T:o===`end`?c-T:c/2,a&&(E[0]+=a[0],E[1]+=a[1]);var D=d.bundlePosition=[];D[f.index]=n[f.xy],D[p.index]=n[p.xy];var O=d.barRectShape=Z({},n);O[p.wh]=m*Math.max(Math.abs(n[p.wh]),Math.abs(E[p.index]+T)),O[f.wh]=n[f.wh];var k=d.clipShape={};k[f.xy]=-n[f.xy],k[f.wh]=u.ecSize[f.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}function GHe(e){var t=e.symbolPatternSize,n=ZK(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!==`image`&&n.setStyle({strokeNoScale:!0}),n}function KHe(e,t,n,r){var i=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,c=t.valueDim,l=n.repeatTimes||0,u=0,d=a[t.valueDim.index]+o+n.symbolMargin*2;for(d6(e,function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=l,u0:r<0)&&(i=l-1-e),t[c.index]=d*(i-l/2+.5)+s[c.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function qHe(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?f6(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=e.__pictorialMainPath=GHe(n),i.add(a),f6(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function JHe(e,t,n){var r=Z({},t.barRectShape),i=e.__pictorialBarRect;i?f6(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new qR({z2:2,shape:r,silent:!0,style:{stroke:`transparent`,fill:`transparent`,lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function YHe(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,a=Z({},n.clipShape),o=t.valueDim,s=n.animationModel,c=n.dataIndex;if(i)mV(i,{shape:a},s,c);else{a[o.wh]=0,i=new qR({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var l={};l[o.wh]=n.clipShape[o.wh],xV[r?`updateProps`:`initProps`](i,{shape:l},s,c)}}}function XHe(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=ZHe,n.isAnimationEnabled=QHe,n}function ZHe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function QHe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow(`animation`)}function $He(e,t,n,r){var i=new BF,a=new BF;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?KHe(i,t,n):qHe(i,t,n),JHe(i,n,r),YHe(i,t,n,r),i.__pictorialShapeStr=nUe(e,n),i.__pictorialSymbolMeta=n,i}function eUe(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;mV(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?KHe(e,t,n,!0):qHe(e,t,n,!0),JHe(e,n,!0),YHe(e,t,n,!0)}function tUe(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];d6(r,function(e){a.push(e)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),Q(a,function(e){_V(e,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function nUe(e,t){return[e.getItemVisual(t.dataIndex,`symbol`)||`none`,!!t.symbolRepeat,!!t.symbolClip].join(`:`)}function d6(e,t,n){Q(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function f6(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&xV[i?`updateProps`:`initProps`](e,n,r.animationModel,r.dataIndex,a)}function rUe(e,t,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel(`emphasis`),o=a.getModel(`itemStyle`).getItemStyle(),s=i.getModel([`blur`,`itemStyle`]).getItemStyle(),c=i.getModel([`select`,`itemStyle`]).getItemStyle(),l=i.getShallow(`cursor`),u=a.get(`focus`),d=a.get(`blurScope`),f=a.get(`scale`);d6(e,function(e){if(e instanceof HR){var t=e.style;e.useStyle(Z({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState(`emphasis`);r.style=o,f&&(r.scaleX=e.scaleX*1.1,r.scaleY=e.scaleY*1.1),e.ensureState(`blur`).style=s,e.ensureState(`select`).style=c,l&&(e.cursor=l),e.z2=n.z2});var p=t.valueDim.posDesc[+(n.boundingLength>0)],m=e.__pictorialBarRect;m.ignoreClip=!0,mH(m,hH(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:d$(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),aB(e,u,d,a.get(`disabled`))}function iUe(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var aUe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol=`roundRect`,n}return t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type=`series.`+D1,t.dependencies=[`grid`],t.defaultOption=NH(B1.defaultOption,{symbol:`circle`,symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:`end`,symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:`-100%`,clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:$.color.primary}}}),t}(B1);function oUe(e){e.registerChartView(zHe),e.registerSeriesModel(aUe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,I1(D1)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,L1(D1)),z1(e)}var p6=2,m6=`themeRiver`,sUe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new s0($A(this.getData,this),$A(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=nL(e,function(e){return n.hasOwnProperty(e[0]+``)||(n[e[0]+``]=-1),e[2]}),i=[];r.buckets.each(function(e,t){i.push({name:t,dataList:e})});for(var a=i.length,o=0;oa&&(a=s),r.push(s)}for(var l=0;la&&(a=d)}return{y0:i,max:a}}function mUe(e){e.registerChartView(cUe),e.registerSeriesModel(sUe),e.registerLayout(uUe),e.registerProcessor(a0(m6))}var hUe=2,gUe=4,_Ue=function(e){X(t,e);function t(t,n,r,i){var a=e.call(this)||this;a.z2=hUe,a.textConfig={inside:!0},cz(a).seriesIndex=n.seriesIndex;var o=new ZR({z2:gUe,silent:t.getModel().get([`label`,`silent`])});return a.setTextContent(o),a.updateData(!0,t,n,r,i),a}return t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n||=this._seriesModel,r||=this._ecModel;var a=this;cz(a).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel(`emphasis`),c=t.getLayout(),l=Z({},c);l.label=null;var u=t.getVisual(`style`);u.lineJoin=`bevel`;var d=t.getVisual(`decal`);d&&(u.decal=Dq(d,i)),Z(l,W1(o.getModel(`itemStyle`),l,!0)),Q(Tz,function(e){var t=a.ensureState(e),n=o.getModel([e,`itemStyle`]);t.style=n.getItemStyle();var r=W1(n,l);r&&(t.shape=r)}),e?(a.setShape(l),a.shape.r=c.r0,hV(a,{shape:{r:c.r}},n,t.dataIndex)):(mV(a,{shape:l},n),bV(a)),a.useStyle(u),this._updateLabel(n);var f=o.getShallow(`cursor`);f&&a.attr(`cursor`,f),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get(`focus`),m=p===`relative`?Dj(t.getAncestorsIndices(),t.getDescendantIndices()):p===`ancestor`?t.getAncestorsIndices():p===`descendant`?t.getDescendantIndices():p;aB(this,m,s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel(`label`),i=this.node.getLayout(),a=i.endAngle-i.startAngle,o=(i.startAngle+i.endAngle)/2,s=Math.cos(o),c=Math.sin(o),l=this,u=l.getTextContent(),d=this.node.dataIndex,f=r.get(`minAngle`)/180*Math.PI;u.ignore=!(r.get(`show`)&&!(f!=null&&Math.abs(a)T&&!yI(D-T)&&D0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new _Ue(r,e,t,n),c.add(i.virtualPiece)),a.piece.off(`click`),i.virtualPiece.on(`click`,function(e){i._rootToNode(a.parentNode)})):i.virtualPiece&&=(c.remove(i.virtualPiece),null)}},t.prototype._initEvents=function(){var e=this;this.group.off(`click`),this.group.on(`click`,function(t){var n=!1;e.seriesModel.getViewRoot().eachNode(function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get(`nodeClick`);if(i===`rootToNode`)e._rootToNode(r);else if(i===`link`){var a=r.getModel(),o=a.get(`link`);o&&AU(o,a.get(`target`,!0)||`_blank`)}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:g6,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=h6,t}(cK),wUe=_L(h6,TUe);function TUe(e){var t={};function n(e,n,r){if(e.depth===0)return $.color.neutral50;for(var i=e;i&&i.depth>1;)i=i.parentNode;var a=n.getColorFromPalette(i.name||i.dataIndex+``,t);return e.depth>1&&rj(a)&&(a=$N(a,(e.depth-1)/(r-1)*.5)),a}e.eachSeriesByType(h6,function(e){var t=e.getData(),r=t.tree;r.eachNode(function(i){var a=i.getModel().getModel(`itemStyle`).getItemStyle();a.fill||=n(i,e,r.root.height),Z(t.ensureUniqueItemVisual(i.dataIndex,`style`),a)})})}var EUe=Math.PI/180,DUe=_L(h6,OUe);function OUe(e,t){e.eachSeriesByType(h6,function(e){var n=e.get(`center`),r=e.get(`radius`);tj(r)||(r=[0,r]),tj(n)||(n=[n,n]);var i=t.getWidth(),a=t.getHeight(),o=Math.min(i,a),s=sI(n[0],i),c=sI(n[1],a),l=sI(r[0],o/2),u=sI(r[1],o/2),d=-e.get(`startAngle`)*EUe,f=e.get(`minAngle`)*EUe,p=e.getData().tree.root,m=e.getViewRoot(),h=m.depth,g=e.get(`sort`);g!=null&&kUe(m,g);var _=0;Q(m.children,function(e){!isNaN(e.getValue())&&_++});var v=m.getValue(),y=Math.PI/(v||_)*2,b=m.depth>0,x=m.height-(b?-1:1),S=(u-l)/(x||1),C=e.get(`clockwise`),w=e.get(`stillShowZeroSum`),T=C?1:-1,E=function(t,n){if(t){var r=n;if(t!==p){var i=t.getValue(),a=v===0&&w?y:i*y;ar[1]&&r.reverse(),{coordSys:{type:`polar`,cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:$A(VUe,e)}}}function UUe(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:`calendar`,x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}function WUe(e){var t=e.getRect();return{coordSys:{type:`matrix`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}var GUe={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},KUe=QA(GUe);YA(mF,function(e,t){return e[t]=1,e},{}),mF.join(`, `);var v6=[``,`style`,`shape`,`extra`],y6=YI();function b6(e,t,n,r,i){var a=e+`Animation`,o=fV(e,r,i)||{},s=y6(t).userDuring;return o.duration>0&&(o.during=s?$A(QUe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Z(o,n[a]),o}function x6(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=y6(e),l=t.style;c.userDuring=t.during;var u={},d={};if(tWe(e,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m0&&e.animateFrom(g,_)}else YUe(e,t,i||0,n,u);qUe(e,t),l?e.dirty():e.markRedraw()}function qUe(e,t){for(var n=y6(e).leaveToProps,r=0;r0&&e.animateFrom(i,a)}}function XUe(e,t){Aj(t,`silent`)&&(e.silent=t.silent),Aj(t,`ignore`)&&(e.ignore=t.ignore),e instanceof qL&&Aj(t,`invisible`)&&(e.invisible=t.invisible),e instanceof BR&&Aj(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var w6={},ZUe={setTransform:function(e,t){return w6.el[e]=t,this},getTransform:function(e){return w6.el[e]},setShape:function(e,t){var n=w6.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=w6.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=w6.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=w6.el.style;if(t)return t[e]},setExtra:function(e,t){var n=w6.el.extra||(w6.el.extra={});return n[e]=t,this},getExtra:function(e){var t=w6.el.extra;if(t)return t[e]}};function QUe(){var e=this,t=e.el;if(t){var n=y6(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}w6.el=t,r(ZUe)}}function $Ue(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c)if(!o&&(o=r[e]={}),C6(c))Z(o,a);else for(var l=RI(c),u=0;u=0){!o&&(o=r[e]={});for(var p=QA(a),u=0;u=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=QA(n),l=0;l=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a}function C(n,r){r??=u;var i=t.getItemVisual(r,`style`),a=i&&i.fill,o=i&&i.opacity,s=y(r,O6).getItemStyle();a!=null&&(s.fill=a),o!=null&&(s.opacity=o);var c={inheritColor:rj(a)?a:$.color.neutral99},l=b(r,O6),d=gH(l,null,c,!1,!0);d.text=l.getShallow(`show`)?hj(e.getFormattedLabel(r,O6),d$(t,r)):null;var f=_H(l,c,!1);return E(n,s),s=z$(s,d,f),n&&T(s,n),s.legacy=!0,s}function w(n,r){r??=u;var i=y(r,D6).getItemStyle(),a=b(r,D6),o=gH(a,null,null,!0,!0);o.text=a.getShallow(`show`)?gj(e.getFormattedLabel(r,D6),e.getFormattedLabel(r,O6),d$(t,r)):null;var s=_H(a,null,!0);return E(n,i),i=z$(i,o,s),n&&T(i,n),i.legacy=!0,i}function T(e,t){for(var n in t)Aj(t,n)&&(e[n]=t[n])}function E(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function D(e,n){if(n??=u,Aj(MUe,e)){var r=t.getItemVisual(n,`style`);return r?r[MUe[e]]:null}if(Aj(NUe,e))return t.getItemVisual(n,e)}function O(e){if(o.type===`cartesian2d`)return mNe(UA({axis:o.getBaseAxis()},e))}function k(){return n.getCurrentSeriesIndices()}function A(e){return SH(e,n)}}function gWe(e){var t={};return Q(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=t[i]=t[i]||[];a[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function z6(e,t,n,r,i,a,o){if(!r){a.remove(t);return}var s=B6(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&aB(s,r.focus,r.blurScope,r.emphasisDisabled),s}function B6(e,t,n,r,i,a){var o=-1,s=t;t&&_We(t,r,i)&&(o=WA(a.childrenRef(),t),t=null);var c=!t,l=t;l?l.clearStates():(l=L6(r),s&&uWe(s,l)),r.morph===!1?l.disableMorphing=!0:l.disableMorphing&&=!1,r.tooltipDisabled&&(l.tooltipDisabled=!0),P6.normal.cfg=P6.normal.conOpt=P6.emphasis.cfg=P6.emphasis.conOpt=P6.blur.cfg=P6.blur.conOpt=P6.select.cfg=P6.select.conOpt=null,P6.isLegacy=!1,yWe(l,n,r,i,c,P6),vWe(l,n,r,i,c),R6(e,l,n,r,P6,i,c),Aj(r,`info`)&&(_6(l).info=r.info);for(var u=0;u=0?a.replaceAt(l,o):a.add(l),l}function _We(e,t,n){var r=_6(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i===`path`&&OWe(a)&&DWe(a)!==r.customPathData||i===`image`&&Aj(o,`image`)&&o.image!==r.customImagePath}function vWe(e,t,n,r,i){var a=n.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&_We(o,a,r)&&(o=null),o||(o=L6(a),e.setClipPath(o)),R6(null,o,t,a,null,r,i)}}function yWe(e,t,n,r,i,a){if(!(e.isGroup||e.type===`compoundPath`)){bWe(n,null,a),bWe(n,D6,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,c=a.blur.conOpt,l=a.select.conOpt;if(o!=null||s!=null||l!=null||c!=null){var u=e.getTextContent();if(o===!1)u&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:`text`},u?u.clearStates():(u=L6(o),e.setTextContent(u)),R6(null,u,t,o,null,r,i);for(var d=o&&o.style,f=0;f=u;p--)SWe(t,t.childAt(p),i)}}function SWe(e,t,n){t&&S6(t,_6(e).option,n)}function CWe(e){new XJ(e.oldChildren,e.newChildren,wWe,wWe,e).add(TWe).update(TWe).remove(EWe).execute()}function wWe(e,t){return(e&&e.name)??cWe+t}function TWe(e,t){var n=this.context,r=e==null?null:n.newChildren[e],i=t==null?null:n.oldChildren[t];B6(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function EWe(e){var t=this.context,n=t.oldChildren[e];n&&S6(n,_6(n).option,t.seriesModel)}function DWe(e){return e&&(e.pathData||e.d)}function OWe(e){return e&&(Aj(e,`pathData`)||Aj(e,`d`))}function kWe(e){e.registerChartView(dWe),e.registerSeriesModel(PUe)}var U6=YI(),AWe=zA,W6=$A,G6=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new BF,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=ej(jWe,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}PWe(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&dZ(r).w>o)return!0;if(a){var s=R0(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=U6(e).pointerEl=new xV[i.type](AWe(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=U6(e).labelEl=new ZR(AWe(t.label));e.add(i),NWe(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=U6(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=U6(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),NWe(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=UV(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){hM(e.event)},onmousedown:W6(this._onHandleDragMove,this,0,0),drift:W6(this._onHandleDragMove,this),ondragend:W6(this._onHandleDragEnd,this)}),n.add(r)),PWe(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);tj(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,hK(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){jWe(this._axisPointerModel,!t&&this._moveAnimation,this._handle,K6(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(K6(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(K6(r)),U6(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),gK(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function jWe(e,t,n,r){MWe(U6(n).lastProp,r)||(U6(n).lastProp=r,t?mV(n,r,e):(n.stopAnimation(),n.attr(r)))}function MWe(e,t){if(oj(e)&&oj(t)){var n=!0;return Q(t,function(t,r){n&&=MWe(e[r],t)}),!!n}else return e===t}function NWe(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function K6(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function PWe(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function q6(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function FWe(e,t,n,r,i){var a=LWe(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=SU(o.get(`padding`)||0),c=o.getFont(),l=CF(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),IWe(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:gH(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function IWe(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function LWe(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:cX(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Q(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),rj(o)?a=o.replace(`{value}`,a):nj(o)&&(a=o(s))}return a}function J6(e,t,n){var r=yM();return wM(r,r,n.rotation),CM(r,r,n.position),LV([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function RWe(e,t,n,r,i,a){var o=f1.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),FWe(t,r,i,a,{position:J6(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Y6(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function zWe(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function BWe(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r,startAngle:i,endAngle:a,clockwise:!0}}function X6(e,t,n){return dZ(e,{fromStat:{sers:JA(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function Z6(e,t,n){return[ZF(XF(t[0],t[1]),e-n/2),XF(e+n/2,ZF(t[0],t[1]))]}var VWe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=HWe(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=q6(r),f=UWe[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}RWe(t,e,x1(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=x1(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=J6(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=HWe(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=XF(o[1],l[c]),l[c]=ZF(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(G6);function HWe(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var UWe={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:Y6([t,r[0]],[t,r[1]],WWe(e))}},shadow:function(e,t,n,r,i,a){var o=X6(e,i,a),s=r[1]-r[0],c=Z6(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:zWe([l,r[0]],[u-l,s],WWe(e))}}};function WWe(e){return e.dim===`x`?0:1}var GWe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}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:$.color.border,width:1,type:`dashed`},shadowStyle:{color:$.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:$.color.neutral00,padding:[5,7,5,7],backgroundColor:$.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:$.color.accent40,throttle:40}},t}(tW),Q6=YI(),KWe=Q;function qWe(e,t,n){if(!TA.node){var r=t.getZr();Q6(r).records||(Q6(r).records={}),JWe(r,t);var i=Q6(r).records[e]||(Q6(r).records[e]={});i.handler=n}}function JWe(e,t){if(Q6(e).initialized)return;Q6(e).initialized=!0,n(`click`,ej($6,`click`)),n(`mousemove`,ej($6,`mousemove`)),n(`mousewheel`,ej($6,`mousewheel`)),n(`globalout`,XWe);function n(n,r){e.on(n,function(n){var i=ZWe(t);KWe(Q6(e).records,function(e){e&&r(e,n,i.dispatchAction)}),YWe(i.pendings,t)})}}function YWe(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function XWe(e,t,n){e.handler(`leave`,null,n)}function $6(e,t,n,r){t.handler(e,n,r)}function ZWe(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function e8(e,t){if(!TA.node){var n=t.getZr();(Q6(n).records||{})[e]&&(Q6(n).records[e]=null)}}var QWe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;qWe(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){e8(`axisPointer`,t)},t.prototype.dispose=function(e,t){e8(`axisPointer`,t)},t.type=`axisPointer`,t}(aK);function $We(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=JI(a,e);if(o==null||o<0||tj(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(JA(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var eGe=YI();function tGe(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||$A(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){t8(i)&&(i=$We({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=t8(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||t8(i),f={},p={},m={list:[],map:{}},h={showPointer:ej(iGe,p),showTooltip:ej(aGe,m)};Q(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);Q(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=lGe(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&nGe(e,o,h,!1,f)}})});var g={};return Q(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&Q(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,uGe(t),uGe(e)))),g[e.key]=a}})}),Q(g,function(e,t){nGe(u[t],e,h,!0,f)}),oGe(p,u,f),sGe(m,i,e,o),cGe(u,o,n),f}}function nGe(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=rGe(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&Z(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function rGe(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return Q(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(jI(u)){var p=e-u,m=Math.abs(p);m<=o&&((m=0&&s<0)&&(o=m,s=p,i=u,a.length=0),Q(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function iGe(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function aGe(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=B0(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function oGe(e,t,n){var r=n.axesInfo=[];Q(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function sGe(e,t,n,r){if(t8(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function cGe(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=eGe(r)[i]||{},o=eGe(r)[i]={};Q(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&Q(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}Q(a,function(e,t){!o[t]&&c.push(l(e))}),Q(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function lGe(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function uGe(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function t8(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function n8(e){H0.registerAxisPointerClass(`CartesianAxisPointer`,VWe),e.registerComponentModel(GWe),e.registerComponentView(QWe),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!tj(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=sPe(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},tGe)}function dGe(e){qJ(Y0),qJ(n8)}var fGe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis;a.dim===`angle`&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=a.getExtent(),c=o.getOtherAxis(a).getExtent(),l=a.dataToCoord(t),u=r.get(`type`);if(u&&u!==`none`){var d=q6(r),f=mGe[u](a,o,l,s,c,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}FWe(e,n,r,i,pGe(t,n,r,o,r.get([`label`,`margin`])))},t}(G6);function pGe(e,t,n,r,i){var a=t.axis,o=a.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var c=r.getRadiusAxis().getExtent(),l,u,d;if(a.dim===`radius`){var f=yM();wM(f,f,s),CM(f,f,[r.cx,r.cy]),l=LV([o,-i],f);var p=t.getModel(`axisLabel`).get(`rotate`)||0,m=f1.innerTextLayout(s,p*Math.PI/180,-1);u=m.textAlign,d=m.textVerticalAlign}else{var h=c[1];l=r.coordToPoint([h+i,o]);var g=r.cx,_=r.cy;u=Math.abs(l[0]-g)/h<.3?`center`:l[0]>g?`left`:`right`,d=Math.abs(l[1]-_)/h<.3?`middle`:l[1]>_?`top`:`bottom`}return{position:l,align:u,verticalAlign:d}}var mGe={line:function(e,t,n,r,i){return e.dim===`angle`?{type:`Line`,shape:Y6(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:`Circle`,shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r,i,a,o){var s=Math.PI/180,c=X6(e,a,o),l;if(e.dim===`angle`)l=BWe(t.cx,t.cy,i[0],i[1],(-n-c/2)*s,(-n+c/2)*s);else{var u=Z6(n,r,c),d=u[0],f=u[1];l=BWe(t.cx,t.cy,d,f,0,Math.PI*2)}return{type:`Sector`,shape:l}}},r8=`polar`,hGe=r8,gGe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},t.type=r8,t.dependencies=[`radiusAxis`,`angleAxis`],t.defaultOption={z:0,center:[`50%`,`50%`],radius:`80%`},t}(tW),i8=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`polar`,QI).models[0]},t.type=`polarAxis`,t}(tW);KA(i8,gX);var _Ge=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`angleAxis`,t}(i8),vGe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`radiusAxis`,t}(i8),a8=function(e){X(t,e);function t(t,n){return e.call(this,`radius`,t,n)||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t}(pZ);a8.prototype.dataToRadius=pZ.prototype.dataToCoord,a8.prototype.radiusToData=pZ.prototype.coordToData;var yGe=YI(),o8=function(e){X(t,e);function t(t,n){return e.call(this,`angle`,t,n||[0,360])||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var a=r[0],o=e.dataToCoord(a+1)-e.dataToCoord(a),s=Math.abs(o),c=CF(a==null?``:a+``,t.getFont(),`center`,`top`),l=Math.max(c.height,7)/s;isNaN(l)&&(l=1/0);var u=Math.max(0,Math.floor(l)),d=yGe(e.model),f=d.lastAutoInterval,p=d.lastTickCount;return f!=null&&p!=null&&Math.abs(f-u)<=1&&Math.abs(p-i)<=1&&f>u?u=f:(d.lastTickCount=i,d.lastAutoInterval=u),u},t}(pZ);o8.prototype.dataToAngle=pZ.prototype.dataToCoord,o8.prototype.angleToData=pZ.prototype.coordToData;var bGe=[`radius`,`angle`],xGe=function(){function e(e){this.dimensions=bGe,this.type=r8,this.cx=0,this.cy=0,this._radiusAxis=new a8,this._angleAxis=new o8,this.axisPointerEnabled=!0,this.name=e||``,this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t=`_`+e+`Axis`;return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=e!=null&&e!==`auto`?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],n)},e.prototype.pointToData=function(e,t,n){n||=[];var r=this.pointToCoord(e);return n[0]=this._radiusAxis.radiusToData(r[0],t),n[1]=this._angleAxis.angleToData(r[1],t),n},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);r.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var c=Math.atan2(-n,t)/Math.PI*180,l=co;)c+=l*360;return[s,c]},e.prototype.coordToPoint=function(e,t){t||=[];var n=e[0],r=e[1]/180*Math.PI;return t[0]=Math.cos(r)*n+this.cx,t[1]=-Math.sin(r)*n+this.cy,t},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180,i=1e-4;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,a=n*n+r*r,o=this.r,s=this.r0;return o!==s&&a-i<=o*o&&a+i>=s*s},x:this.cx-t[1],y:this.cy-t[1],width:t[1]*2,height:t[1]*2}},e.prototype.convertToPixel=function(e,t,n){return SGe(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return SGe(t)===this?this.pointToData(n):null},e}();function SGe(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function CGe(e,t,n){var r=t.get(`center`),i=YU(t,n).refContainer;e.cx=sI(r[0],i.width)+i.x,e.cy=sI(r[1],i.height)+i.y;var a=e.getRadiusAxis(),o=Math.min(i.width,i.height)/2,s=t.get(`radius`);s==null?s=[0,`100%`]:tj(s)||(s=[0,s]);var c=[sI(s[0],o),sI(s[1],o)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}function wGe(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(FX(r,1),FX(i,1),VX(r),VX(i),r.type===`category`&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function TGe(e){return e.mainType===`angleAxis`}function EGe(e,t){if(e.type=aX(t),e.scale=oX(t,e.type,!1),e.onBand=hX(e.scale,t),e.inverse=t.get(`inverse`),TGe(t)){e.inverse=e.inverse!==t.get(`clockwise`);var n=t.get(`startAngle`),r=t.get(`endAngle`)??n+(e.inverse?-360:360);e.setExtent(n,r)}t.axis=e,e.model=t}var DGe={dimensions:bGe,create:function(e,t){var n=[];return e.eachComponent(hGe,function(e,r){var i=new xGe(r+``);i.update=wGe;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel(`radiusAxis`),c=e.findAxisModel(`angleAxis`);EGe(a,s),EGe(o,c),CGe(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e}),e.eachSeries(function(e){if(e.get(`coordinateSystem`)===`polar`){var t=e.coordinateSystem=e.getReferringComponents(hGe,QI).models[0].coordinateSystem;t&&(EX(t.getRadiusAxis(),e,r8),EX(t.getAngleAxis(),e,r8))}}),n}},OGe=[`axisLine`,`axisLabel`,`axisTick`,`minorTick`,`splitLine`,`minorSplitLine`,`splitArea`];function s8(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function c8(e){return+!e.getRadiusAxis().inverse}function kGe(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var AGe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`PolarAxisPointer`,n}return t.prototype.render=function(e,t){if(this.group.removeAll(),e.get(`show`)){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),a=n.getTicksCoords({breakTicks:`none`}),o=n.getMinorTicksCoords(),s=[];Q(n.getViewLabels(),function(e){if(!e.tick.offInterval){e=zA(e);var t=n.scale;e.coord=n.dataToCoord(mX(t,e.tick)),s.push(e)}}),kGe(s),kGe(a),Q(OGe,function(t){e.get([t,`show`])&&(!n.scale.isBlank()||t===`axisLine`)&&jGe[t](this.group,e,r,a,o,i,s)},this)}},t.type=`angleAxis`,t}(H0),jGe={axisLine:function(e,t,n,r,i,a){var o=t.getModel([`axisLine`,`lineStyle`]),s=n.getAngleAxis(),c=Math.PI/180,l=s.getExtent(),u=c8(n),d=+!u,f,p=Math.abs(l[1]-l[0])===360?`Circle`:`Arc`;f=a[d]===0?new xV[p]({shape:{cx:n.cx,cy:n.cy,r:a[u],startAngle:-l[0]*c,endAngle:-l[1]*c,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):new UB({shape:{cx:n.cx,cy:n.cy,r:a[u],r0:a[d]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,e.add(f)},axisTick:function(e,t,n,r,i,a){var o=t.getModel(`axisTick`),s=(o.get(`inside`)?-1:1)*o.get(`length`),c=a[c8(n)],l=JA(r,function(e){return new qB({shape:s8(n,[c,c+s],e.coord)})});e.add(MV(l,{style:UA(o.getModel(`lineStyle`).getLineStyle(),{stroke:t.get([`axisLine`,`lineStyle`,`color`])})}))},minorTick:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel(`axisTick`),s=t.getModel(`minorTick`),c=(o.get(`inside`)?-1:1)*s.get(`length`),l=a[c8(n)],u=[],d=0;dm?`left`:`right`,_=Math.abs(p[1]-h)/f<.3?`middle`:p[1]>h?`top`:`bottom`;if(s&&s[d]){var v=s[d];oj(v)&&v.textStyle&&(o=new jH(v.textStyle,c,c.ecModel))}var y=new ZR({silent:f1.isLabelSilent(t),style:gH(o,{x:p[0],y:p[1],fill:o.getTextColor()||t.get([`axisLine`,`lineStyle`,`color`]),text:r.formattedLabel,align:g,verticalAlign:_})});if(e.add(y),XV({el:y,componentModel:t,itemName:r.formattedLabel,formatterParamsExtra:{isTruncated:function(){return y.isTruncated},value:r.rawLabel,tickIndex:i}}),u){var b=f1.makeAxisEventDataBase(t);b.targetType=`axisLabel`,b.value=r.rawLabel,cz(y).eventData=b}},this)},splitLine:function(e,t,n,r,i,a){var o=t.getModel(`splitLine`).getModel(`lineStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=0;u=0?`p`:`n`,T=y;_&&(r[a][C]||(r[a][C]={p:y,n:y}),T=r[a][C][w]);var E=void 0,D=void 0,O=void 0,k=void 0;if(u.dim===`radius`){var A=u.dataToCoord(S)-y,j=e.dataToCoord(C);QF(A)=k})}}function VGe(e,t){var n=T1(t,r8),r=dZ(e,{fromStat:{key:n},min:1}).w,i=r,a=0,o=`20%`,s=`30%`,c={};xX(e,n,function(e){var t=LGe(e);c[t]||a++,c[t]=c[t]||{width:0,maxWidth:0};var n=sI(e.get(`barWidth`),r),l=sI(e.get(`barMaxWidth`),r),u=e.get(`barGap`),d=e.get(`barCategoryGap`);n&&!c[t].width&&(n=XF(i,n),c[t].width=n,i-=n),l&&(c[t].maxWidth=l),u!=null&&(s=u),d!=null&&(o=d)});var l={},u=sI(o,r),d=sI(s,1),f=(i-u)/(a+(a-1)*d);f=ZF(f,0),Q(c,function(e,t){var n=e.maxWidth;n&&n=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e,t,n){n||=[];var r=this.getAxis();return n[0]=r.coordToData(r.toLocalCoord(e[r.orient===`horizontal`?0:1])),n},e.prototype.dataToPoint=function(e,t,n){var r=this.getAxis(),i=this.getRect();n||=[];var a=r.orient===`horizontal`?0:1;return e instanceof Array&&(e=e[0]),n[a]=r.toGlobalCoord(r.dataToCoord(+e)),n[1-a]=a===0?i.y+i.height/2:i.x+i.width/2,n},e.prototype.convertToPixel=function(e,t,n){return $Ge(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return $Ge(t)===this?this.pointToData(n):null},e}();function $Ge(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function eKe(e,t){var n=[];return e.eachComponent(Z0,function(r,i){var a=new QGe(r,e,t);a.name=`single_`+i,a.resize(r,t),r.coordinateSystem=a,n.push(a)}),e.eachSeries(function(e){if(e.get(`coordinateSystem`)===`singleAxis`){var t=e.getReferringComponents(Z0,QI).models[0],n=e.coordinateSystem=t&&t.coordinateSystem;n&&EX(n.getAxis(),e,X0)}}),n}var tKe={create:eKe,dimensions:ZGe},nKe=[`x`,`y`],rKe=[`width`,`height`],iKe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.coordinateSystem,s=u8(a),c=d8(o,s),l=d8(o,1-s),u=o.dataToPoint(t)[0],d=r.get(`type`);if(d&&d!==`none`){var f=q6(r),p=aKe[d](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);p.style=f,e.graphicKey=p.type,e.pointer=p}RWe(t,e,l8(n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=l8(t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=J6(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.coordinateSystem,o=u8(i),s=d8(a,o),c=[e.x,e.y];c[o]+=t[o],c[o]=Math.min(s[1],c[o]),c[o]=Math.max(s[0],c[o]);var l=d8(a,1-o),u=(l[1]+l[0])/2,d=[u,u];return d[o]=c[o],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:`middle`}}},t}(G6),aKe={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:Y6([t,r[0]],[t,r[1]],u8(e))}},shadow:function(e,t,n,r,i,a){var o=X6(e,i,a),s=r[1]-r[0],c=Z6(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:zWe([l,r[0]],[u-l,s],u8(e))}}};function u8(e){return+!e.isHorizontal()}function d8(e,t){var n=e.getRect();return[n[nKe[t]],n[nKe[t]]+n[rKe[t]]]}var oKe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`single`,t}(aK);function sKe(e){qJ(n8),H0.registerAxisPointerClass(`SingleAxisPointer`,iKe),e.registerComponentView(oKe),e.registerComponentView(JGe),e.registerComponentModel(Q0),C0(e,`single`,Q0,Q0.defaultOption),e.registerCoordinateSystem(`single`,tKe)}var cKe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=$U(t);e.prototype.init.apply(this,arguments),lKe(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),lKe(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type=`calendar`,t.layoutMode=`box`,t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:`horizontal`,splitLine:{show:!0,lineStyle:{color:$.color.axisLine,width:1,type:`solid`}},itemStyle:{color:$.color.neutral00,borderWidth:1,borderColor:$.color.neutral10},dayLabel:{show:!0,firstDay:0,position:`start`,margin:$.size.s,color:$.color.secondary},monthLabel:{show:!0,position:`start`,margin:$.size.s,align:`center`,formatter:null,color:$.color.secondary},yearLabel:{show:!0,position:null,margin:$.size.xl,formatter:null,color:$.color.quaternary,fontFamily:`sans-serif`,fontWeight:`bolder`,fontSize:20}},t}(tW);function lKe(e,t){var n=e.cellSize,r=tj(n)?n:e.cellSize=[n,n];r.length===1&&(r[1]=r[0]),QU(e,t,{type:`box`,ignoreSize:JA([0,1],function(e){return IEe(t,e)&&(r[e]=`auto`),r[e]!=null&&r[e]!==`auto`})})}var uKe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,a=i.getRangeInfo(),o=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,a,r),this._renderLines(e,a,o,r),this._renderYearText(e,a,o,r),this._renderMonthText(e,s,o,r),this._renderWeekText(e,s,a,o,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel(`itemStyle`).getItemStyle(),a=r.getCellWidth(),o=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var c=r.dataToCalendarLayout([s],!1).tl,l=new qR({shape:{x:c[0],y:c[1],width:a,height:o},cursor:`default`,style:i});n.add(l)}},t.prototype._renderLines=function(e,t,n,r){var i=this,a=e.coordinateSystem,o=e.getModel([`splitLine`,`lineStyle`]).getLineStyle(),s=e.get([`splitLine`,`show`]),c=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var l=t.start,u=0;l.time<=t.end.time;u++){f(l.formatedDate),u===0&&(l=a.getDateInfo(t.start.y+`-`+t.start.m));var d=l.date;d.setMonth(d.getMonth()+1),l=a.getDateInfo(d)}f(a.getNextNDay(t.end.time,1).formatedDate);function f(t){i._firstDayOfMonth.push(a.getDateInfo(t)),i._firstDayPoints.push(a.dataToCalendarLayout([t],!1).tl);var c=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(c[0]),i._blpoints.push(c[c.length-1]),s&&i._drawSplitline(c,o,r)}s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,c,n),o,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,c,n),o,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i=n===`horizontal`?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new KB({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),a=[],o=0;o<7;o++){var s=r.getNextNDay(i.time,o),c=r.dataToCalendarLayout([s.time],!1);a[2*s.day]=c.tl,a[2*s.day+1]=c[n===`horizontal`?`bl`:`tr`]}return a},t.prototype._formatterLabel=function(e,t){return rj(e)&&e?DU(e,t):nj(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var a=t[0],o=t[1],s=[`center`,`bottom`];r===`bottom`?(o+=i,s=[`center`,`top`]):r===`left`?a-=i:r===`right`?(a+=i,s=[`center`,`top`]):o-=i;var c=0;return(r===`left`||r===`right`)&&(c=Math.PI/2),{rotation:c,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel(`yearLabel`);if(i.get(`show`)){var a=i.get(`margin`),o=i.get(`position`);o||=n===`horizontal`?`left`:`top`;var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(s[0][0]+s[1][0])/2,l=(s[0][1]+s[1][1])/2,u=n===`horizontal`?0:1,d={top:[c,s[u][1]],bottom:[c,s[1-u][1]],left:[s[1-u][0],l],right:[s[u][0],l]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+`-`+t.end.y);var p=i.get(`formatter`),m={start:t.start.y,end:t.end.y,nameMap:f},h=new ZR({z2:30,style:gH(i,{text:this._formatterLabel(p,m)}),silent:i.get(`silent`)});h.attr(this._yearTextPositionControl(h,d[o],n,o,a)),r.add(h)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var a=`left`,o=`top`,s=e[0],c=e[1];return n===`horizontal`?(c+=i,t&&(a=`center`),r===`start`&&(o=`bottom`)):(s+=i,t&&(o=`middle`),r===`start`&&(a=`right`)),{x:s,y:c,align:a,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel(`monthLabel`);if(i.get(`show`)){var a=i.get(`nameMap`),o=i.get(`margin`),s=i.get(`position`),c=i.get(`align`),l=[this._tlpoints,this._blpoints];(!a||rj(a))&&(a&&(t=VH(a)||t),a=t.get([`time`,`monthAbbr`])||[]);var u=s===`start`?0:1,d=n===`horizontal`?0:1;o=s===`start`?-o:o;for(var f=c===`center`,p=i.get(`silent`),m=0;m=i.start.time&&r.timeo.end.time&&t.reverse(),t},e.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var r=Math.floor(t[1].time/f8)-Math.floor(t[0].time/f8)+1,i=new Date(t[0].time),a=i.getDate(),o=t[1].date.getDate();i.setDate(a+r-1);var s=i.getDate();if(s!==o)for(var c=i.getTime()-t[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-t[1].time)*c>0;)r-=c,i.setDate(s-c);var l=Math.floor((r+t[0].day+6)/7),u=n?-l+1:l-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:r,weeks:l,nthWeek:u,fweek:t[0].day,lweek:t[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||e===0&&tr.lweek)return null;var i=(e-1)*7-r.fweek+t,a=new Date(r.start.time);return a.setDate(+r.start.d+i),this.getDateInfo(a)},e.create=function(t,n){var r=[];return t.eachComponent(`calendar`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachComponent(function(e,t){LU({targetModel:t,coordSysType:`calendar`,coordSysProvider:RU})}),r},e.dimensions=[`time`,`value`],e}();function p8(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}function fKe(e){e.registerComponentModel(cKe),e.registerComponentView(uKe),e.registerCoordinateSystem(`calendar`,dKe)}var m8={level:1,leaf:2,nonLeaf:3},h8={none:0,all:1,body:2,corner:3};function g8(e,t,n){var r=t[CV[n]].getCell(e);return!r&&aj(e)&&e<0&&(r=t[CV[1-n]].getUnitLayoutInfo(n,Math.round(e))),r}function pKe(e){var t=e||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function mKe(e,t,n,r,i){hKe(e[0],t,i,n,r,0),hKe(e[1],t,i,n,r,1)}function hKe(e,t,n,r,i,a){e[0]=1/0,e[1]=-1/0;var o=r[a],s=tj(o)?o:[o],c=s.length,l=!!n;if(c>=1?(gKe(e,t,s,l,i,a,0),c>1&&gKe(e,t,s,l,i,a,c-1)):e[0]=e[1]=NaN,l){var u=-i[CV[1-a]].getLocatorCount(a),d=i[CV[a]].getLocatorCount(a)-1;n===h8.body?u=ZF(0,u):n===h8.corner&&(d=XF(-1,d)),d=t[0]&&e[0]<=t[1]}function xKe(e,t){e.id.set(t[0][0],t[1][0]),e.span.set(t[0][1]-e.id.x+1,t[1][1]-e.id.y+1)}function SKe(e,t){e[0][0]=t[0][0],e[0][1]=t[0][1],e[1][0]=t[1][0],e[1][1]=t[1][1]}function CKe(e,t,n,r){var i=g8(t[r][0],n,r),a=g8(t[r][1],n,r);e[CV[r]]=e[wV[r]]=NaN,i&&a&&(e[CV[r]]=i.xy,e[wV[r]]=a.xy+a.wh-i.xy)}function v8(e,t,n,r){return e[CV[t]]=n,e[CV[1-t]]=r,e}function wKe(e){return e&&(e.type===m8.leaf||e.type===m8.nonLeaf)?e:null}function y8(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var TKe=function(){function e(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e===`x`?0:1,this._model=t,this._uniqueValueGen=EKe(e);var n=t.get(`data`,!0),r=t.get(`length`,!0);if(n!=null&&!tj(n)&&(n=[]),n)this._initByDimModelData(n);else if(r!=null){n=Array(r);for(var i=0;i=1,y=n[CV[r]],b=a.getLocatorCount(r)-1,x=new iL;for(o.resetLayoutIterator(x,r);x.next();)S(x.item);for(a.resetLayoutIterator(x,r);x.next();)S(x.item);function S(e){pj(e.wh)&&(e.wh=_),e.xy=y,e.id[CV[r]]===b&&!v&&(e.wh=n[CV[r]]+n[wV[r]]-e.xy),y+=e.wh}}function WKe(e,t){for(var n=t[CV[e]].resetCellIterator();n.next();){var r=n.item;M8(r.rect,e,r.id,r.span,t),M8(r.rect,1-e,r.id,r.span,t),r.type===m8.nonLeaf&&(r.xy=r.rect[CV[e]],r.wh=r.rect[wV[e]])}}function GKe(e,t){e.travelExistingCells(function(e){var n=e.span;if(n){var r=e.spanRect,i=e.id;M8(r,0,i,n,t),M8(r,1,i,n,t)}})}function M8(e,t,n,r,i){e[wV[t]]=0;var a=n[CV[t]]<0?i[CV[1-t]]:i[CV[t]],o=a.getUnitLayoutInfo(t,n[CV[t]]);if(e[CV[t]]=o.xy,e[wV[t]]=o.wh,r[CV[t]]>1){var s=a.getUnitLayoutInfo(t,n[CV[t]]+r[CV[t]]-1);e[wV[t]]=s.xy+s.wh-o.xy}}function KKe(e,t,n){return N8(cI(e,n[wV[t]]),n[wV[t]])}function N8(e,t){return Math.max(Math.min(e,hj(t,1/0)),0)}function P8(e){var t=e.matrixModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var F8={inBody:1,inCorner:2,outside:3},I8={x:null,y:null,point:[]};function qKe(e,t,n,r,i){var a=n[CV[t]],o=n[CV[1-t]],s=a.getUnitLayoutInfo(t,a.getLocatorCount(t)-1),c=a.getUnitLayoutInfo(t,0),l=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),u=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,d=e.point[t]=r[t];if(!c&&!u){e[CV[t]]=F8.outside;return}if(i===h8.body){c?(e[CV[t]]=F8.inBody,d=XF(s.xy+s.wh,ZF(c.xy,d)),e.point[t]=d):e[CV[t]]=F8.outside;return}else if(i===h8.corner){u?(e[CV[t]]=F8.inCorner,d=XF(u.xy+u.wh,ZF(l.xy,d)),e.point[t]=d):e[CV[t]]=F8.outside;return}var f=c?c.xy:u?u.xy+u.wh:NaN,p=l?l.xy:f,m=s?s.xy+s.wh:f;if(dm){if(!i){e[CV[t]]=F8.outside;return}d=m}e.point[t]=d,e[CV[t]]=f<=d&&d<=m?F8.inBody:p<=d&&d<=f?F8.inCorner:F8.outside}function JKe(e,t,n,r){var i=1-n;if(e[CV[n]]!==F8.outside)for(r[CV[n]].resetCellIterator(j8);j8.next();){var a=j8.item;if(ZKe(e.point[n],a.rect,n)&&ZKe(e.point[i],a.rect,i)){t[n]=a.ordinal,t[i]=a.id[CV[i]];return}}}function YKe(e,t,n,r){if(e[CV[n]]!==F8.outside){for((e[CV[n]]===F8.inCorner?r[CV[1-n]]:r[CV[n]]).resetLayoutIterator(A8,n);A8.next();)if(XKe(e.point[n],A8.item)){t[n]=A8.item.id[CV[n]];return}}}function XKe(e,t){return t.xy<=e&&e<=t.xy+t.wh}function ZKe(e,t,n){return t[CV[n]]<=e&&e<=t[CV[n]]+t[wV[n]]}function QKe(e){e.registerComponentModel(jKe),e.registerComponentView(LKe),e.registerCoordinateSystem(`matrix`,HKe)}function $Ke(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function eqe(e,t){var n;return Q(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}function tqe(e,t,n){var r=Z({},n),i=e[t],a=n.$action||`merge`;a===`merge`?i?(BA(i,r,!0),QU(i,r,{ignoreSize:!0}),eW(n,i),L8(n,i),L8(n,i,`shape`),L8(n,i,`style`),L8(n,i,`extra`),n.clipPath=i.clipPath):e[t]=r:a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}var nqe=[`transition`,`enterFrom`,`leaveTo`],rqe=nqe.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function L8(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?nqe:rqe,i=0;i=0;c--){var l=n[c],u=GI(l.id,null),d=u==null?null:i.get(u);if(d){var f=d.parent,h=R8(f),g=f===r?{width:a,height:o}:{width:h.width,height:h.height},_={},v=XU(d,l,g,null,{hv:l.hv,boundingMode:l.bounding},_);if(!R8(d).isNew&&v){for(var y=l.transition,b={},x=0;x=0)?b[S]=C:d[S]=C}mV(d,b,e,0)}else d.attr(_)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){B8(n,R8(n).option,t,e._lastGraphicModel)}),this._elMap=Ej()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(aK);function z8(e){var t=new(Aj(oqe,e)?oqe[e]:OV(e))({});return R8(t).type=e,t}function cqe(e,t,n,r){var i=z8(n);return t.add(i),r.set(e,i),R8(i).id=e,R8(i).isNew=!0,i}function B8(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){B8(e,t,n,r)}),S6(e,t,r),n.removeKey(R8(e).id))}function lqe(e,t,n,r){e.isGroup||Q([[`cursor`,qL.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];Aj(t,r)?e[r]=hj(t[r],n[1]):e[r]??(e[r]=n[1])}),Q(QA(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=nj(r)?r:null}}),Aj(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function uqe(e){return e=Z({},e),Q([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(BU),function(t){delete e[t]}),e}function dqe(e,t,n){var r=cz(e).eventData;!e.silent&&!e.ignore&&!r&&(r=cz(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function fqe(e){e.registerComponentModel(aqe),e.registerComponentView(sqe),e.registerPreprocessor(function(e){var t=e.graphic;tj(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var pqe=[`x`,`y`,`radius`,`angle`,`single`],mqe=YI(),hqe=[`cartesian2d`,`polar`,`singleAxis`];function gqe(e){return WA(hqe,e.get(`coordinateSystem`))>=0}function V8(e){return e+`Axis`}function _qe(e,t){var n=Ej(),r=[],i=Ej();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function vqe(e){var t=e.ecModel,n={infoList:[],infoMap:Ej()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(V8(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}function yqe(e){var t=mqe(JK(e));return t.axisProxyMap||=Ej()}function H8(e){if(e)return yqe(e.ecModel).get(e.uid)}function bqe(e,t){yqe(e.ecModel).set(e.uid,t)}function xqe(e,t){var n=t.getAxisModel().axis.__alignTo;return n&&e.getAxisProxy(n.dim,n.model.componentIndex)?H8(n.model):null}var U8=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),W8=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=Sqe(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=Sqe(e);BA(this.option,e,!0),BA(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Q([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=Ej();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Q(pqe,function(n){var r=this.getReferringComponents(V8(n),uwe);if(r.specified){t=!0;var i=new U8;Q(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new U8;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,QI).models[0];o&&Q(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,QI).models[0]&&a.add(e.componentIndex)})}}}r&&Q(pqe,function(t){if(r){var i=n.findComponents({mainType:V8(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new U8;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);Q([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(V8(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){Q(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){return H8(this.getAxisModel(e,t))},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(V8(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Q([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Q([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getWindow().percent},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(e,t).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return H8(e);for(var t,n=this._targetAxisInfoMap.keys(),r=0;ra[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else Q(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});Q(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._extent;Q([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=oI(i,[0,100],n,!0)-n[0]):i=oI(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e}(),Eqe={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(V8(r),i),n)})})}var n=[];t(function(t,r,i,a){if(!H8(i)){var o=new Tqe(t,r,a,e);n.push(o),bqe(i,o)}});var r=Ej();return Q(n,function(e){Q(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){var n=[];e.eachTargetAxis(function(t,r){var i=e.getAxisProxy(t,r),a=xqe(e,i);a?n.push([i,a]):i.reset(e,null)}),Q(n,function(t){t[0].reset(e,t[1].getWindow().percentInverted)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getWindow(),r=n.percent,i=n.value;e.setCalculatedRange({start:r[0],end:r[1],startValue:i[0],endValue:i[1]})}})}};function Dqe(e){e.registerAction(`dataZoom`,function(e,t){Q(_qe(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var Oqe=pL();function K8(e){Oqe(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Eqe),Dqe(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`})})}function kqe(e){e.registerComponentModel(Cqe),e.registerComponentView(wqe),K8(e)}var q8=function(){function e(){}return e}(),Aqe={};function J8(e,t){Aqe[e]=t}function jqe(e){return Aqe[e]}var Mqe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=r.getTheme().get(`toolbox`),a=i?i.feature:null;a&&(this._themeFeatureOption=Z({},a),i.feature={}),e.prototype.init.call(this,t,n,r),a&&(i.feature=a)},t.prototype.optionUpdated=function(){Q(this.option.feature,function(e,t){var n=this._themeFeatureOption,r=jqe(t);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(this.ecModel)),n&&n[t]&&(BA(e,n[t]),n[t]=null),BA(e,r.defaultOption))},this)},t.type=`toolbox`,t.layoutMode={type:`box`,ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:`horizontal`,left:`right`,top:`top`,backgroundColor:`transparent`,borderColor:$.color.border,borderRadius:0,borderWidth:0,padding:$.size.m,itemSize:15,itemGap:$.size.s,showTitle:!0,iconStyle:{borderColor:$.color.accent50,color:`none`},emphasis:{iconStyle:{borderColor:$.color.accent70}},tooltip:{show:!1,position:`bottom`}},t}(tW);function Nqe(e,t){var n=SU(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new qR({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var Pqe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||=Ej(),l=[];Q(s,function(e,t){l.push(t)}),new XJ(this._featureNames||[],l).add(u).update(u).remove(ej(u,null)).execute(),this._featureNames=XA(l,function(e){return c.hasKey(e)});function u(i,a){var o=i!=null&&a==null,u=i!=null&&a!=null,f=i==null,p=o||u?l[i]:l[a],m=s[p],h=o||u?new jH(m,e,t):null,g=h&&h.get(`show`),_;if(o){if(!g)return;if(Fqe(p))_={onclick:h.option.onclick,featureName:p};else{var v=jqe(p);if(!v)return;_=new v}c.set(p,_)}else _=c.get(p);if(f||!g){Iqe(_)&&_.dispose&&_.dispose(t,n),c.removeKey(p);return}r&&r.newTitle!=null&&r.featureName===p&&(m.title=r.newTitle),o&&(_.uid=MH(`toolbox-feature`)),_.model=h,_.ecModel=t,_.api=n,d(h,_,p),h.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?Kz:qz)(r[e])},Iqe(_)&&_.render&&_.render(h,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof q8&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;rj(d)?(p={},p[c]=d):p=d,rj(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};Q(p,function(c,d){var f=UV(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new ZR({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:SH({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),XV({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||$.color.neutral99,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?Kz:qz)(f),i.add(f),f.on(`click`,$A(s.onclick,s,t,n,d)),h[d]=f})}var f=YU(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=KU(p,f,m);UU(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),XU(i,p,f,m),i.add(Nqe(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||={},s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!nj(c)&&t){var l=c.style||={},u=CF(t,ZR.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},t.prototype.updateView=function(e,t,n,r){Q(this._features,function(e){e&&e instanceof q8&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.dispose=function(e,t){Q(this._features,function(n){n&&n instanceof q8&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(aK);function Fqe(e){return e.indexOf(`my`)===0}function Iqe(e){return e instanceof q8}var Lqe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){var n=this.model,r=n.get(`name`)||e.get(`title.0.text`)||`echarts`,i=t.getZr().painter.getType()===`svg`,a=i?`svg`:n.get(`type`,!0)||`png`,o=t.getConnectedDataURL({type:a,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||$.color.neutral00,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),s=TA.browser;if(typeof MouseEvent==`function`&&(s.newEdge||!s.ie&&!s.edge)){var c=document.createElement(`a`);c.download=r+`.`+a,c.target=`_blank`,c.href=o;var l=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(`,`),d=u[0].indexOf(`base64`)>-1,f=i?decodeURIComponent(u[1]):u[1];d&&(f=window.atob(f));var p=r+`.`+a;if(window.navigator.msSaveOrOpenBlob){for(var m=f.length,h=new Uint8Array(m);m--;)h[m]=f.charCodeAt(m);var g=new Blob([h]);window.navigator.msSaveOrOpenBlob(g,p)}else{var _=document.createElement(`iframe`);document.body.appendChild(_);var v=_.contentWindow,y=v.document;y.open(`image/svg+xml`,`replace`),y.write(f),y.close(),v.focus(),y.execCommand(`SaveAs`,!0,p),document.body.removeChild(_)}}else{var b=n.get(`lang`),x=``,S=window.open();S.document.write(x),S.document.title=r}},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:$.color.neutral00,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},t}(q8),Y8=`__ec_magicType_stack__`,Rqe=[[`line`,`bar`],[`stack`]],zqe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return Q(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if(Bqe[n]){var a={series:[]};Q(Rqe,function(e){WA(e,n)>=0&&Q(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=Bqe[n](t,i,e,r);o&&(UA(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,QI).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=BA({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},t}(q8),Bqe={line:function(e,t,n,r){if(e===`bar`)return BA({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return BA({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===Y8;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),BA({id:t,stack:i?``:Y8},r.get([`option`,`stack`])||{},!0)}};IJ({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var X8=Array(60).join(`-`),Z8=` `;function Vqe(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=lNe(a);t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function Hqe(e){var t=[];return Q(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(JA(e.series,function(e){return e.name})),o=[r.model.getCategories()];Q(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(Z8)],c=0;c=0)return!0}var e5=RegExp(`[`+Q8+`]+`,`g`);function Gqe(e){for(var t=e.split(/\n+/g),n=$8(t.shift()).split(e5),r=[],i=JA(n,function(e){return{name:e,data:[]}}),a=0;a=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function $qe(e){var t=t5(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return Xqe(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function eJe(e){Zqe(e).snapshots=null}function tJe(e){return t5(e).length}function t5(e){var t=Zqe(e);return t.snapshots||=[{}],t.snapshots}var nJe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){eJe(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(J8);IJ({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var rJe=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],n5=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=iJe(t,e);Q(aJe,function(e,t){(!n||!n.include||WA(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||=[]).push(t),!e.coordRange){e.coordRange=t;var r=i5[e.brushType](0,n,t);e.__rangeOffset={offset:lJe[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){Q(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&Q(r.coordSyses,function(r){n(e,i5[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){Q(e,function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=i5[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?lJe[e.brushType](r.values,i.offset,dJe(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return JA(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:RBe(r),isTargetByCursor:BBe(r,e,n.coordSysModel),getLinearBrushOtherExtent:zBe(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&WA(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=iJe(t,e),i=0;ie[1]&&e.reverse(),e}function iJe(e,t){return XI(e,t,{includeMainTypes:rJe})}var aJe={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=Ej(),o={},s={};!n&&!r&&!i||(Q(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),Q(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),Q(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];Q(i.getCartesians(),function(e,t){(WA(n,e.getAxis(`x`).model)>=0||WA(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:sJe.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){Q(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:sJe.geo})})}},oJe=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],sJe={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys.view,t=CFe(null,e);return KM(t,t,I2(null,e)),t}},i5={lineX:ej(cJe,0),lineY:ej(cJe,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[r5([i[0],a[0]]),r5([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[oL(),oL()];return{values:JA(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function cJe(e,t,n,r){var i=n.getAxis([`x`,`y`][e]),a=r5(JA([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var lJe={lineX:ej(uJe,0),lineY:ej(uJe,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return JA(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function uJe(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function dJe(e,t){var n=fJe(e),r=fJe(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function fJe(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var a5=Q,pJe=awe(`toolbox-dataZoom_`),mJe={x:`width`,y:`height`},hJe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new P3(n.getZr()),this._brushController.on(`brush`,$A(this._onBrush,this)).mount()),vJe(e,t,this,r,n),_Je(e,t)},t.prototype.onclick=function(e,t,n){gJe[n].call(this)},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new n5(o5(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=n.master.getRect().clone(),a=e.brushType;a===`rect`?(i(`x`,n,r,t[0]),i(`y`,n,r,t[1])):i({lineX:`x`,lineY:`y`}[a],n,r,t)}}),Qqe(r,n),this._dispatchZoomAction(n);function i(e,t,i,o){var s=t.getAxis(e),c=s.model,l=a(e,c,r),u=l.findRepresentativeAxisProxy(c).getMinMaxSpan(),d=s.scale.getExtent();(u.minValueSpan!=null||u.maxValueSpan!=null)&&(o=E3(0,o.slice(),d,0,u.minValueSpan,u.maxValueSpan));var f=mI(d,i[mJe[e]],.5);l&&(n[l.id]={dataZoomId:l.id,startValue:isFinite(f)?uI(o[0],f):o[0],endValue:isFinite(f)?uI(o[1],f):o[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},t.prototype._dispatchZoomAction=function(e){var t=[];a5(e,function(e,n){t.push(zA(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:$.color.backgroundTint}}},t}(J8),gJe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction($qe(this.ecModel))}};function o5(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 _Je(e,t){e.setIconStatus(`back`,tJe(t)>1?`emphasis`:`normal`)}function vJe(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`?r.dataZoomSelectActive:!1),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new n5(o5(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}HEe(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=XI(e,o5(r));a5(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),a5(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:pJe+t+a};o[n]=a,i.push(o)}return i});function yJe(e){e.registerComponentModel(jqe),e.registerComponentView(Nqe),Y8(`saveAsImage`,Iqe),Y8(`magicType`,Rqe),Y8(`dataView`,Jqe),Y8(`dataZoom`,hJe),Y8(`restore`,nJe),qJ(Oqe)}var bJe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:$.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:$.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:$.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:$.color.tertiary,fontSize:14}},t}(tW);function xJe(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function SJe(e){if(TA.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`
`}function jJe(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(TA.transformSupported?``+s5+i:`,left`+i+`,top`+i)),DJe+`:`+a}function MJe(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!TA.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=TA.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+s5+`:`+o+`;`:[[`top`,0],[`left`,0],[CJe,o]]}function NJe(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=hj(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),Q([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function PJe(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=YG(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(jJe(a,n,r)),o&&i.push(`background-color:`+o),Q([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=xU(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(NJe(d)),f!=null&&i.push(`padding:`+SU(f).join(`px `)+`px`),i.join(`;`)+`;`}function FJe(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&bSe(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var IJe=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,TA.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(rj(i)?document.querySelector(i):lj(i)?i:nj(i)&&i(e.getDom()));FJe(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;pM(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=EJe(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=OJe+PJe(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+MJe(i[0],i[1],!0)+(`border-color:`+kU(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(rj(i)&&n.get(`trigger`)===`item`&&!xJe(n)&&(o=AJe(n,r,i)),rj(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,tj(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||TA.node||!n.getDom())){var i=HJe(r,n);this._ticket=``;var a=r.dataByCoordSys,o=qJe(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=BJe;c.x=r.x,c.y=r.y,c.update(),cz(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=QWe(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(HJe(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(!(i==null||a==null||o==null)){var s=t.getSeriesByIndex(i);if(s&&l5([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(cz(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;VK(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(cz(e).dataIndex==null?cz(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=$A(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=l5([t.tooltipOption],r),o=this._renderMode,s=[],c=VG(`section`,{blocks:[],noHeader:!0}),l=[],u=new XG;Q(e,function(e){Q(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=IWe(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=VG(`section`,{header:f,noHeader:!bj(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),Q(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=cX(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,kU(m.color),o);var h=_G(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=l5([a],r).get(`valueFormatter`);p.blocks.push(_?Z({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=GG(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?` +`),meta:t.meta}}function Q8(e){return e.replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function Gqe(e){if(e.slice(0,e.indexOf(` +`)).indexOf(Z8)>=0)return!0}var $8=RegExp(`[`+Z8+`]+`,`g`);function Kqe(e){for(var t=e.split(/\n+/g),n=Q8(t.shift()).split($8),r=[],i=JA(n,function(e){return{name:e,data:[]}}),a=0;a=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function eJe(e){var t=e5(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return Zqe(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function tJe(e){Qqe(e).snapshots=null}function nJe(e){return e5(e).length}function e5(e){var t=Qqe(e);return t.snapshots||=[{}],t.snapshots}var rJe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){tJe(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(q8);IJ({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var iJe=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],t5=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=aJe(t,e);Q(oJe,function(e,t){(!n||!n.include||WA(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||=[]).push(t),!e.coordRange){e.coordRange=t;var r=r5[e.brushType](0,n,t);e.__rangeOffset={offset:uJe[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){Q(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&Q(r.coordSyses,function(r){n(e,r5[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){Q(e,function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=r5[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?uJe[e.brushType](r.values,i.offset,fJe(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return JA(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:zBe(r),isTargetByCursor:VBe(r,e,n.coordSysModel),getLinearBrushOtherExtent:BBe(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&WA(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=aJe(t,e),i=0;ie[1]&&e.reverse(),e}function aJe(e,t){return XI(e,t,{includeMainTypes:iJe})}var oJe={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=Ej(),o={},s={};!n&&!r&&!i||(Q(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),Q(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),Q(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];Q(i.getCartesians(),function(e,t){(WA(n,e.getAxis(`x`).model)>=0||WA(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:cJe.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){Q(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:cJe.geo})})}},sJe=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],cJe={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys.view,t=wFe(null,e);return KM(t,t,F2(null,e)),t}},r5={lineX:ej(lJe,0),lineY:ej(lJe,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[n5([i[0],a[0]]),n5([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[oL(),oL()];return{values:JA(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function lJe(e,t,n,r){var i=n.getAxis([`x`,`y`][e]),a=n5(JA([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var uJe={lineX:ej(dJe,0),lineY:ej(dJe,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return JA(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function dJe(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function fJe(e,t){var n=pJe(e),r=pJe(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function pJe(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var i5=Q,mJe=awe(`toolbox-dataZoom_`),hJe={x:`width`,y:`height`},gJe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new N3(n.getZr()),this._brushController.on(`brush`,$A(this._onBrush,this)).mount()),yJe(e,t,this,r,n),vJe(e,t)},t.prototype.onclick=function(e,t,n){_Je[n].call(this)},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new t5(a5(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=n.master.getRect().clone(),a=e.brushType;a===`rect`?(i(`x`,n,r,t[0]),i(`y`,n,r,t[1])):i({lineX:`x`,lineY:`y`}[a],n,r,t)}}),$qe(r,n),this._dispatchZoomAction(n);function i(e,t,i,o){var s=t.getAxis(e),c=s.model,l=a(e,c,r),u=l.findRepresentativeAxisProxy(c).getMinMaxSpan(),d=s.scale.getExtent();(u.minValueSpan!=null||u.maxValueSpan!=null)&&(o=T3(0,o.slice(),d,0,u.minValueSpan,u.maxValueSpan));var f=mI(d,i[hJe[e]],.5);l&&(n[l.id]={dataZoomId:l.id,startValue:isFinite(f)?uI(o[0],f):o[0],endValue:isFinite(f)?uI(o[1],f):o[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},t.prototype._dispatchZoomAction=function(e){var t=[];i5(e,function(e,n){t.push(zA(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:$.color.backgroundTint}}},t}(q8),_Je={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(eJe(this.ecModel))}};function a5(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 vJe(e,t){e.setIconStatus(`back`,nJe(t)>1?`emphasis`:`normal`)}function yJe(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`?r.dataZoomSelectActive:!1),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new t5(a5(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}HEe(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=XI(e,a5(r));i5(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),i5(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:mJe+t+a};o[n]=a,i.push(o)}return i});function bJe(e){e.registerComponentModel(Mqe),e.registerComponentView(Pqe),J8(`saveAsImage`,Lqe),J8(`magicType`,zqe),J8(`dataView`,Yqe),J8(`dataZoom`,gJe),J8(`restore`,rJe),qJ(kqe)}var xJe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:$.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:$.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:$.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:$.color.tertiary,fontSize:14}},t}(tW);function SJe(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function CJe(e){if(TA.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`
`}function MJe(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(TA.transformSupported?``+o5+i:`,left`+i+`,top`+i)),OJe+`:`+a}function NJe(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!TA.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=TA.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+o5+`:`+o+`;`:[[`top`,0],[`left`,0],[wJe,o]]}function PJe(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=hj(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),Q([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function FJe(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=YG(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(MJe(a,n,r)),o&&i.push(`background-color:`+o),Q([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=xU(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(PJe(d)),f!=null&&i.push(`padding:`+SU(f).join(`px `)+`px`),i.join(`;`)+`;`}function IJe(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&bSe(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var LJe=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,TA.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(rj(i)?document.querySelector(i):lj(i)?i:nj(i)&&i(e.getDom()));IJe(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;pM(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=DJe(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=kJe+FJe(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+NJe(i[0],i[1],!0)+(`border-color:`+kU(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(rj(i)&&n.get(`trigger`)===`item`&&!SJe(n)&&(o=jJe(n,r,i)),rj(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,tj(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||TA.node||!n.getDom())){var i=UJe(r,n);this._ticket=``;var a=r.dataByCoordSys,o=JJe(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=VJe;c.x=r.x,c.y=r.y,c.update(),cz(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=$We(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(UJe(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(!(i==null||a==null||o==null)){var s=t.getSeriesByIndex(i);if(s&&c5([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(cz(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;VK(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(cz(e).dataIndex==null?cz(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=$A(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=c5([t.tooltipOption],r),o=this._renderMode,s=[],c=VG(`section`,{blocks:[],noHeader:!0}),l=[],u=new XG;Q(e,function(e){Q(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=LWe(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=VG(`section`,{header:f,noHeader:!bj(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),Q(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=cX(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,kU(m.color),o);var h=_G(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=c5([a],r).get(`valueFormatter`);p.blocks.push(_?Z({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=GG(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?` -`:`
`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=cz(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=l5([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(!(m!=null&&m!==`item`)){var h=s.getDataParams(c,l),g=new XG;h.marker=g.makeTooltipMarker(`item`,kU(h.color),d);var _=_G(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?GG(y?Z({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=cz(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(rj(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=zA(a),a.content=cM(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=l5(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new XG;this._showOrMove(d,function(){var n=zA(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(rj(u)){var p=e.ecModel.get(`useUTC`),m=tj(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=iU(m.axisValue,d,p)),d=EU(d,n,!0)}else if(nj(u)){var g=$A(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||tj(t))return{color:r||i};if(!tj(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),nj(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),tj(t))n=sI(t[0],s),r=sI(t[1],c);else if(oj(t)){var p=t;p.width=l[0],p.height=l[1];var m=KU(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(rj(t)&&o){var h=GJe(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=UJe(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=KJe(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=KJe(d)?l[1]/2:d===`bottom`?l[1]:0),xJe(e)){var h=WJe(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&Q(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&Q(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&Q(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&Q(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){TA.node||!t.getDom()||(gK(this,`_updatePosition`),this._tooltipContent.dispose(),t8(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(aK);function l5(e,t,n){var r=t.ecModel,i;n?(i=new jH(n,r,r),i=new jH(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof jH&&(o=o.get(`tooltip`,!0)),rj(o)&&(o={formatter:o}),o&&(i=new jH(o,i,r)))}return i}function HJe(e,t){return e.dispatchAction||$A(t.dispatchAction,t)}function UJe(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function WJe(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function GJe(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function KJe(e){return e===`center`||e===`middle`}function qJe(e,t,n){var r=ZI(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=$I(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=cz(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function JJe(e){qJ(r8),e.registerComponentModel(bJe),e.registerComponentView(VJe),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},jj),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},jj)}var YJe=[`rect`,`polygon`,`keep`,`clear`];function XJe(e,t){var n=RI(e?e.brush:[]);if(n.length){var r=[];Q(n,function(e){var t=e.hasOwnProperty(`toolbox`)?e.toolbox:[];t instanceof Array&&(r=r.concat(t))});var i=e&&e.toolbox;tj(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||={},o=a.brush||={},s=o.type||=[];s.push.apply(s,r),mL(s,function(e){return e+``},null),t&&!s.length&&s.push.apply(s,YJe)}}var ZJe=Q;function QJe(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function u5(e,t,n){var r={};return ZJe(t,function(t){var a=r[t]=i();ZJe(e[t],function(e,r){if(M4.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new M4(i),r===`opacity`&&(i=zA(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new M4(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function $Je(e,t,n){var r;Q(n,function(e){t.hasOwnProperty(e)&&QJe(t[e])&&(r=!0)}),r&&Q(n,function(n){t.hasOwnProperty(n)&&QJe(t[n])?e[n]=zA(t[n]):delete e[n]})}function eYe(e,t,n,r,i,a){var o={};Q(e,function(e){o[e]=M4.prepareVisualTypes(t[e])});var s;function c(e){return IK(n,s,e)}function l(e,t){RK(n,s,e,t)}a==null?n.each(u):n.each([a],u);function u(e,u){s=a==null?e:u;var d=n.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var f=r.call(i,e),p=t[f],m=o[f],h=0,g=m.length;ht[0][1]&&(t[0][1]=a[0]),a[1]t[1][1]&&(t[1][1]=a[1])}return t&&mYe(t)}};function mYe(e){return new VM(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var hYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new P3(t.getZr())).on(`brush`,$A(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){oYe(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`brush`,brushId:t,areas:zA(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:`brushEnd`,brushId:t,areas:zA(n),$from:t})},t.type=`brush`,t}(aK),gYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&$Je(n,e,[`inBrush`,`outOfBrush`]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},r.hasOwnProperty(`liftZ`)||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=JA(e,function(e){return _Ye(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=_Ye(this.option,e),this.brushType=this.brushOption.brushType},t.type=`brush`,t.dependencies=[`geo`,`grid`,`xAxis`,`yAxis`,`parallel`,`series`],t.defaultOption={seriesIndex:`all`,brushType:`rect`,brushMode:`single`,transformable:!0,brushStyle:{borderWidth:1,color:$.color.backgroundTint,borderColor:$.color.borderTint},throttleType:`fixRate`,throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:$.color.disabled},t}(tW);function _Ye(e,t){return BA({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new jH(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var vYe=[`rect`,`polygon`,`lineX`,`lineY`,`keep`,`clear`],yYe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n){var r,i,a;t.eachComponent({mainType:`brush`},function(e){r=e.brushType,i=e.brushOption.brushMode||`single`,a||=!!e.areas.length}),this._brushType=r,this._brushMode=i,Q(e.get(`type`,!0),function(t){e.setIconStatus(t,(t===`keep`?i===`multiple`:t===`clear`?a:t===r)?`emphasis`:`normal`)})},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`,!0),n={};return Q(e.get(`type`,!0),function(e){t[e]&&(n[e]=t[e])}),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;n===`clear`?(t.dispatchAction({type:`axisAreaSelect`,intervals:[]}),t.dispatchAction({type:`brush`,command:`clear`,areas:[]})):t.dispatchAction({type:`takeGlobalCursor`,key:`brush`,brushOption:{brushType:n===`keep`?r:r===n?!1:n,brushMode:n===`keep`?i===`multiple`?`single`:`multiple`:i}})},t.getDefaultOption=function(e){return{show:!0,type:vYe.slice(),icon:{rect:`M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13`,polygon:`M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2`,lineX:`M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4`,lineY:`M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4`,keep:`M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z`,clear:`M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2`},title:e.getLocaleModel().get([`toolbox`,`brush`,`title`])}},t}(J8);function bYe(e){e.registerComponentView(hYe),e.registerComponentModel(gYe),e.registerPreprocessor(XJe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,sYe),e.registerAction({type:`brush`,event:`brush`,update:`updateVisual`},function(e,t){t.eachComponent({mainType:`brush`,query:e},function(t){t.setAreas(e.areas)})}),e.registerAction({type:`brushSelect`,event:`brushSelected`,update:`none`},jj),e.registerAction({type:`brushEnd`,event:`brushEnd`,update:`none`},jj),Y8(`brush`,yYe)}var xYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:$.size.m,backgroundColor:$.color.transparent,borderColor:$.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:$.color.primary},subtextStyle:{fontSize:12,color:$.color.quaternary}},t}(tW),SYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=hj(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new ZR({style:gH(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new ZR({style:gH(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){AU(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){AU(p,`_`+e.get(`subtarget`))}),cz(c).eventData=cz(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=KU(g,YU(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new qR({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(aK);function CYe(e){e.registerComponentModel(xYe),e.registerComponentView(SYe)}var wYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode=`box`,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e??=this.option.currentIndex;var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,t=e.data||[],n=e.axisType,r=this._names=[],i;n===`category`?(i=[],Q(t,function(e,t){var n=GI(VI(e),``),a;oj(e)?(a=zA(e),a.value=t):a=t,i.push(a),r.push(n)})):i=t;var a={category:`ordinal`,time:`time`,value:`number`}[n]||`number`;(this._data=new hY([{name:`value`,type:a}],this)).initData(i,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get(`axisType`)===`category`)return this._names.slice()},t.type=`timeline`,t.defaultOption={z:4,show:!0,axisType:`time`,realtime:!0,left:`20%`,top:null,right:`20%`,bottom:0,width:null,height:40,padding:$.size.m,controlPosition:`left`,autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:$.color.secondary},data:[]},t}(tW),TYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline.slider`,t.defaultOption=NH(wYe.defaultOption,{backgroundColor:`rgba(0,0,0,0)`,borderColor:$.color.border,borderWidth:0,orient:`horizontal`,inverse:!1,tooltip:{trigger:`item`},symbol:`circle`,symbolSize:12,lineStyle:{show:!0,width:2,color:$.color.accent10},label:{position:`auto`,show:!0,interval:`auto`,rotate:0,color:$.color.tertiary},itemStyle:{color:$.color.accent20,borderWidth:0},checkpointStyle:{symbol:`circle`,symbolSize:15,color:$.color.accent50,borderColor:$.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`rgba(0, 0, 0, 0)`,animation:!0,animationDuration:300,animationEasing:`quinticInOut`},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:`left`,playIcon:`path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z`,stopIcon:`path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z`,nextIcon:`path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z`,prevIcon:`path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z`,prevBtnSize:18,nextBtnSize:18,color:$.color.accent50,borderColor:$.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:$.color.accent60},itemStyle:{color:$.color.accent60,borderColor:$.color.accent60},controlStyle:{color:$.color.accent70,borderColor:$.color.accent70}},progress:{lineStyle:{color:$.color.accent30},itemStyle:{color:$.color.accent40}},data:[]}),t}(wYe);KA(TYe,gG.prototype);var EYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline`,t}(aK),DYe=function(e){X(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.type=i||`value`,a}return t.prototype.getLabelModel=function(){return this.model.getModel(`label`)},t.prototype.isHorizontal=function(){return this.model.get(`orient`)===`horizontal`},t}(pZ),m5=Math.PI,OYe=YI(),kYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get(`show`,!0)){var r=this._layout(e,n),i=this._createGroup(`_mainGroup`),a=this._createGroup(`_labelGroup`),o=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){return VG(`nameValue`,{noName:!0,value:o.scale.getLabel({value:e})})},Q([`AxisLine`,`AxisTick`,`Control`,`CurrentPointer`],function(t){this[`_render`+t](r,i,o,e)},this),this._renderAxisLabel(r,a,o,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n=e.get([`label`,`position`]),r=e.get(`orient`),i=AYe(e,t),a=n==null||n===`auto`?r===`horizontal`?i.y+i.height/2=0||a===`+`?`left`:`right`},s={horizontal:a>=0||a===`+`?`top`:`bottom`,vertical:`middle`},c={horizontal:0,vertical:m5/2},l=r===`vertical`?i.height:i.width,u=e.getModel(`controlStyle`),d=u.get(`show`,!0),f=d?u.get(`itemSize`):0,p=d?u.get(`itemGap`):0,m=f+p,h=e.get([`label`,`rotate`])||0;h=h*m5/180;var g,_,v,y=u.get(`position`,!0),b=d&&u.get(`showPlayBtn`,!0),x=d&&u.get(`showPrevBtn`,!0),S=d&&u.get(`showNextBtn`,!0),C=0,w=l;y===`left`||y===`bottom`?(b&&(g=[0,0],C+=m),x&&(_=[C,0],C+=m),S&&(v=[w-f,0],w-=m)):(b&&(g=[w-f,0],w-=m),x&&(_=[0,0],C+=m),S&&(v=[w-f,0],w-=m));var T=[C,w];return e.get(`inverse`)&&T.reverse(),{viewRect:i,mainLength:l,orient:r,rotation:c[r],labelRotation:h,labelPosOpt:a,labelAlign:e.get([`label`,`align`])||o[r],labelBaseline:e.get([`label`,`verticalAlign`])||e.get([`label`,`baseline`])||s[r],playPosition:g,prevBtnPosition:_,nextBtnPosition:v,axisExtent:T,controlSize:f,controlGap:p}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if(e.orient===`vertical`){var a=yM(),o=i.x,s=i.y+i.height;CM(a,a,[-o,-s]),wM(a,a,-m5/2),CM(a,a,[o,s]),i=i.clone(),i.applyTransform(a)}var c=g(i),l=g(n.getBoundingRect()),u=g(r.getBoundingRect()),d=[n.x,n.y],f=[r.x,r.y];f[0]=d[0]=c[0][0];var p=e.labelPosOpt;if(p==null||rj(p)){var m=p===`+`?0:1;_(d,l,c,1,m),_(f,u,c,1,1-m)}else{var m=p>=0?0:1;_(d,l,c,1,m),f[1]=d[1]+p}n.setPosition(d),r.setPosition(f),n.rotation=r.rotation=e.rotation,h(n),h(r);function h(e){e.originX=c[0][0]-e.x,e.originY=c[1][0]-e.y}function g(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function _(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get(`axisType`)||t.get(`type`);r!==`category`&&r!==`time`&&(r=`value`);var i=oX(t,r,!1);i.getTicks=function(){return n.mapArray([`value`],function(e){return{value:e}})};var a=n.getDataExtent(`value`);i.setExtent(a[0],a[1]),UX(i,{fixMinMax:[!0,!0]});var o=new DYe(`value`,i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new BF;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get([`lineStyle`,`show`])){var a=new qB({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Z({lineCap:`round`},r.getModel(`lineStyle`).getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new qB({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:UA({lineCap:`round`,lineWidth:a.style.lineWidth},r.getModel([`progress`,`lineStyle`]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,a=r.getData(),o=n.scale.getTicks();this._tickSymbols=[],Q(o,function(e){var o=n.dataToCoord(e.value),s=a.getItemModel(e.value),c=s.getModel(`itemStyle`),l=s.getModel([`emphasis`,`itemStyle`]),u=s.getModel([`progress`,`itemStyle`]),d=MYe(s,c,t,{x:o,y:0,onclick:$A(i._changeTimeline,i,e.value)});d.ensureState(`emphasis`).style=l.getItemStyle(),d.ensureState(`progress`).style=u.getItemStyle(),iB(d);var f=cz(d);s.get(`tooltip`)?(f.dataIndex=e.value,f.dataModel=r):f.dataIndex=f.dataModel=null,i._tickSymbols.push(d)})},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this;if(n.getLabelModel().get(`show`)){var a=r.getData(),o=n.getViewLabels();this._tickLabels=[],Q(o,function(r){if(!r.tick.offInterval){var o=r.tick.value,s=a.getItemModel(o),c=s.getModel(`label`),l=s.getModel([`emphasis`,`label`]),u=s.getModel([`progress`,`label`]),d=new ZR({x:n.dataToCoord(o),y:0,rotation:e.labelRotation-e.rotation,onclick:$A(i._changeTimeline,i,o),silent:!1,style:gH(c,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState(`emphasis`).style=gH(l),d.ensureState(`progress`).style=gH(u),t.add(d),iB(d),OYe(d).dataIndex=o,i._tickLabels.push(d)}})}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,a=e.rotation,o=r.getModel(`controlStyle`).getItemStyle(),s=r.getModel([`emphasis`,`controlStyle`]).getItemStyle(),c=r.getPlayState(),l=r.get(`inverse`,!0);u(e.nextBtnPosition,`next`,$A(this._changeTimeline,this,l?`-`:`+`)),u(e.prevBtnPosition,`prev`,$A(this._changeTimeline,this,l?`+`:`-`)),u(e.playPosition,c?`stop`:`play`,$A(this._handlePlayClick,this,!c),!0);function u(e,n,c,l){if(e){var u=DF(hj(r.get([`controlStyle`,n+`BtnSize`]),i),i),d=[0,-u/2,u,u],f=jYe(r,n+`Icon`,d,{x:e[0],y:e[1],originX:i/2,originY:0,rotation:l?-a:0,rectHover:!0,style:o,onclick:c});f.ensureState(`emphasis`).style=s,t.add(f),iB(f)}}},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),a=r.getCurrentIndex(),o=i.getItemModel(a).getModel(`checkpointStyle`),s=this,c={onCreate:function(e){e.draggable=!0,e.drift=$A(s._handlePointerDrag,s),e.ondragend=$A(s._handlePointerDragend,s),NYe(e,s._progressLine,a,n,r,!0)},onUpdate:function(e){NYe(e,s._progressLine,a,n,r)}};this._currentPointer=MYe(o,o,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:`timelinePlayChange`,playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,i=dI(r.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(s[o]=+s[o].toFixed(f)),[s,d]}var S5={min:ej(x5,`min`),max:ej(x5,`max`),average:ej(x5,`average`),median:ej(x5,`median`)};function C5(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!BYe(t)&&!tj(t.coord)&&tj(i)){var a=VYe(t,n,r,e);if(t=zA(t),t.type&&S5[t.type]&&a.baseAxis&&a.valueAxis){var o=WA(i,a.baseAxis.dim),s=WA(i,a.valueAxis.dim),c=S5[t.type](n,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);t.coord=c[0],t.value=c[1]}else t.coord=[t.xAxis==null?t.radiusAxis:t.xAxis,t.yAxis==null?t.angleAxis:t.yAxis]}if(t.coord==null||!tj(i)){t.coord=[];var l=e.getBaseAxis();if(l&&t.type&&S5[t.type]){var u=r.getOtherAxis(l);u&&(t.value=T5(n,n.mapDimension(u.dim),t.type))}}else for(var d=t.coord,f=0;f<2;f++)S5[d[f]]&&(d[f]=T5(n,n.mapDimension(i[f]),d[f]));return t}}function VYe(e,t,n,r){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex==null?e.valueDim:t.getDimension(e.valueIndex),i.valueAxis=n.getAxis(HYe(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function HYe(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function w5(e,t){return e&&e.containData&&t.coord&&!b5(t)?e.containData(t.coord):!0}function UYe(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!b5(t)&&!b5(n)?e.containZone(t.coord,n.coord):!0}function WYe(e,t){return e?function(e,n,r,i){return bG(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return bG(e.value,t[i])}}function T5(e,t,n){if(n===`average`){var r=0,i=0;return e.each(t,function(e,t){isNaN(e)||(r+=e,i++)}),r/i}else if(n===`median`)return e.getMedian(t);else return e.getDataExtent(t)[+(n===`max`)]}var E5=YI(),D5=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=Ej()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each(function(e){E5(e).keep=!1}),t.eachSeries(function(e){var i=y5.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!E5(e).keep&&r.group.remove(e.group)}),GYe(t,i,this.type)},t.prototype.markKeep=function(e){E5(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Q(e,function(e){var r=y5.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl(function(e){e&&(t?Jz(e):Yz(e))})})},t.type=`marker`,t}(aK);function GYe(e,t,n){e.eachSeries(function(e){var r=y5.getMarkerModelFromSeries(e,n),i=t.get(e.id);if(r&&i&&i.group){var a=rH(r),o=a.z,s=a.zlevel;aH(i.group,o,s)}})}function KYe(e,t,n){var r=t.coordinateSystem,i=n.getWidth(),a=n.getHeight(),o=r&&r.getArea&&r.getArea();e.each(function(n){var s=e.getItemModel(n),c=s.get(`relativeTo`)===`coordinate`,l=c?o?o.width:0:i,u=c?o?o.height:0:a,d=c&&o?o.x:0,f=c&&o?o.y:0,p,m=sI(s.get(`x`),l)+d,h=sI(s.get(`y`),u)+f;if(!isNaN(m)&&!isNaN(h))p=[m,h];else if(t.getMarkerPosition)p=t.getMarkerPosition(e.getValues(e.dimensions,n));else if(r){var g=e.get(r.dimensions[0],n),_=e.get(r.dimensions[1],n);p=r.dataToPoint([g,_])}isNaN(m)||(p[0]=m),isNaN(h)||(p[1]=h),e.setItemLayout(n,p)})}var qYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=y5.getMarkerModelFromSeries(e,`markPoint`);t&&(KYe(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new v$),l=JYe(i,e,t);t.setData(l),KYe(t.getData(),e,r),l.each(function(e){var n=l.getItemModel(e),r=n.getShallow(`symbol`),i=n.getShallow(`symbolSize`),a=n.getShallow(`symbolRotate`),s=n.getShallow(`symbolOffset`),c=n.getShallow(`symbolKeepAspect`);if(nj(r)||nj(i)||nj(a)||nj(s)){var u=t.getRawValue(e),d=t.getDataParams(e);nj(r)&&(r=r(u,d)),nj(i)&&(i=i(u,d)),nj(a)&&(a=a(u,d)),nj(s)&&(s=s(u,d))}var f=n.getModel(`itemStyle`).getItemStyle(),p=n.get(`z2`),m=LK(o,`color`);f.fill||=m,l.setItemVisual(e,{z2:hj(p,0),symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:s,symbolKeepAspect:c,style:f})}),c.updateData(l),this.group.add(c.group),l.eachItemGraphicEl(function(e){e.traverse(function(e){cz(e).dataModel=t})}),this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markPoint`,t}(D5);function JYe(e,t,n){var r=e?JA(e&&e.dimensions,function(e){var n=t.getData();return Z(Z({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new hY(r,n),a=JA(n.get(`data`),ej(C5,t));e&&(a=XA(a,ej(w5,e)));var o=WYe(!!e,r);return i.initData(a,null,o),i}function YYe(e){e.registerComponentModel(zYe),e.registerComponentView(qYe),e.registerPreprocessor(function(e){g5(e.series,`markPoint`)&&(e.markPoint=e.markPoint||{})})}var XYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},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}(y5),O5=YI(),ZYe=function(e,t,n,r){var i=e.getData(),a;if(tj(r))a=r;else{var o=r.type;if(o===`min`||o===`max`||o===`average`||o===`median`||r.xAxis!=null||r.yAxis!=null){var s=void 0,c=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis==null?`x`:`y`),c=mj(r.yAxis,r.xAxis);else{var l=VYe(r,i,t,e);s=l.valueAxis,c=T5(i,bY(i,l.valueDataDim),o)}var u=s.dim===`x`?0:1,d=1-u,f=zA(r),p={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,p.coord[d]=1/0;var m=n.get(`precision`);m>=0&&aj(c)&&(c=+c.toFixed(Math.min(m,20))),f.coord[u]=p.coord[u]=c,a=[f,p,{type:o,valueIndex:r.valueIndex,value:c}]}else a=[]}var h=[C5(e,a[0]),C5(e,a[1]),Z({},a[2])];return h[2].type=h[2].type||null,BA(h[2],h[0]),BA(h[2],h[1]),h};function k5(e){return!isNaN(e)&&!isFinite(e)}function QYe(e,t,n,r){var i=1-e,a=r.dimensions[e];return k5(t[i])&&k5(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function $Ye(e,t){if(e.type===`cartesian2d`){var n=t[0].coord,r=t[1].coord;if(n&&r&&(QYe(1,n,r,e)||QYe(0,n,r,e)))return!0}return w5(e,t[0])&&w5(e,t[1])}function A5(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=sI(o.get(`x`),i.getWidth()),l=sI(o.get(`y`),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=a.dimensions,d=e.get(u[0],t),f=e.get(u[1],t);s=a.dataToPoint([d,f])}if(P$(a,`cartesian2d`)){var p=a.getAxis(`x`),m=a.getAxis(`y`),u=a.dimensions;k5(e.get(u[0],t))?s[0]=p.toGlobalCoord(p.getExtent()[+!n]):k5(e.get(u[1],t))&&(s[1]=m.toGlobalCoord(m.getExtent()[+!n]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}e.setItemLayout(t,s)}var eXe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=y5.getMarkerModelFromSeries(e,`markLine`);if(t){var r=t.getData(),i=O5(t).from,a=O5(t).to;i.each(function(t){A5(i,t,!0,e,n),A5(a,t,!1,e,n)}),r.each(function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new u3);this.group.add(c.group);var l=tXe(i,e,t),u=l.from,d=l.to,f=l.line;O5(t).from=u,O5(t).to=d,t.setData(f);var p=t.get(`symbol`),m=t.get(`symbolSize`),h=t.get(`symbolRotate`),g=t.get(`symbolOffset`);tj(p)||(p=[p,p]),tj(m)||(m=[m,m]),tj(h)||(h=[h,h]),tj(g)||(g=[g,g]),l.from.each(function(e){_(u,e,!0),_(d,e,!1)}),f.each(function(e){var t=f.getItemModel(e),n=t.getModel(`lineStyle`).getLineStyle();f.setItemLayout(e,[u.getItemLayout(e),d.getItemLayout(e)]);var r=t.get(`z2`);n.stroke??=u.getItemVisual(e,`style`).fill,f.setItemVisual(e,{z2:hj(r,0),fromSymbolKeepAspect:u.getItemVisual(e,`symbolKeepAspect`),fromSymbolOffset:u.getItemVisual(e,`symbolOffset`),fromSymbolRotate:u.getItemVisual(e,`symbolRotate`),fromSymbolSize:u.getItemVisual(e,`symbolSize`),fromSymbol:u.getItemVisual(e,`symbol`),toSymbolKeepAspect:d.getItemVisual(e,`symbolKeepAspect`),toSymbolOffset:d.getItemVisual(e,`symbolOffset`),toSymbolRotate:d.getItemVisual(e,`symbolRotate`),toSymbolSize:d.getItemVisual(e,`symbolSize`),toSymbol:d.getItemVisual(e,`symbol`),style:n})}),c.updateData(f),l.line.eachItemGraphicEl(function(e){cz(e).dataModel=t,e.traverse(function(e){cz(e).dataModel=t})});function _(t,n,i){var a=t.getItemModel(n);A5(t,n,i,e,r);var s=a.getModel(`itemStyle`).getItemStyle();s.fill??=LK(o,`color`),t.setItemVisual(n,{symbolKeepAspect:a.get(`symbolKeepAspect`),symbolOffset:hj(a.get(`symbolOffset`,!0),g[+!i]),symbolRotate:hj(a.get(`symbolRotate`,!0),h[+!i]),symbolSize:hj(a.get(`symbolSize`),m[+!i]),symbol:hj(a.get(`symbol`,!0),p[+!i]),style:s})}this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markLine`,t}(D5);function tXe(e,t,n){var r=e?JA(e&&e.dimensions,function(e){var n=t.getData();return Z(Z({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new hY(r,n),a=new hY(r,n),o=new hY([],n),s=JA(n.get(`data`),ej(ZYe,t,e,n));e&&(s=XA(s,ej($Ye,e)));var c=WYe(!!e,r);return i.initData(JA(s,function(e){return e[0]}),null,c),a.initData(JA(s,function(e){return e[1]}),null,c),o.initData(JA(s,function(e){return e[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function nXe(e){e.registerComponentModel(XYe),e.registerComponentView(eXe),e.registerPreprocessor(function(e){g5(e.series,`markLine`)&&(e.markLine=e.markLine||{})})}var rXe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markArea`,t.defaultOption={z:1,tooltip:{trigger:`item`},animation:!1,label:{show:!0,position:`top`},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:`top`}}},t}(y5),j5=YI(),iXe=function(e,t,n,r){var i=r[0],a=r[1];if(!(!i||!a)){var o=C5(e,i),s=C5(e,a),c=o.coord,l=s.coord;c[0]=mj(c[0],-1/0),c[1]=mj(c[1],-1/0),l[0]=mj(l[0],1/0),l[1]=mj(l[1],1/0);var u=VA([{},o,s]);return u.coord=[o.coord,s.coord],u.x0=o.x,u.y0=o.y,u.x1=s.x,u.y1=s.y,u}};function M5(e){return!isNaN(e)&&!isFinite(e)}function aXe(e,t,n,r){var i=1-e;return M5(t[i])&&M5(n[i])}function oXe(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},a={coord:r,x:t.x1,y:t.y1};return P$(e,`cartesian2d`)?n&&r&&(aXe(1,n,r,e)||aXe(0,n,r,e))?!0:UYe(e,i,a):w5(e,i)||w5(e,a)}function sXe(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=sI(o.get(n[0]),i.getWidth()),l=sI(o.get(n[1]),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition){var u=e.getValues([`x0`,`y0`],t),d=e.getValues([`x1`,`y1`],t),f=a.clampData(u),p=a.clampData(d),m=[];n[0]===`x0`?m[0]=f[0]>p[0]?d[0]:u[0]:m[0]=f[0]>p[0]?u[0]:d[0],n[1]===`y0`?m[1]=f[1]>p[1]?d[1]:u[1]:m[1]=f[1]>p[1]?u[1]:d[1],s=r.getMarkerPosition(m,n,!0)}else{var h=e.get(n[0],t),g=e.get(n[1],t),_=[h,g];a.clampData&&a.clampData(_,_),s=a.dataToPoint(_,!0)}if(P$(a,`cartesian2d`)){var v=a.getAxis(`x`),y=a.getAxis(`y`),h=e.get(n[0],t),g=e.get(n[1],t);M5(h)?s[0]=v.toGlobalCoord(v.getExtent()[n[0]===`x0`?0:1]):M5(g)&&(s[1]=y.toGlobalCoord(y.getExtent()[n[1]===`y0`?0:1]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}return s}var cXe=[[`x0`,`y0`],[`x1`,`y0`],[`x1`,`y1`],[`x0`,`y1`]],lXe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=y5.getMarkerModelFromSeries(e,`markArea`);if(t){var r=t.getData();r.each(function(t){var i=JA(cXe,function(i){return sXe(r,t,i,e,n)});r.setItemLayout(t,i),r.getItemGraphicEl(t).setShape(`points`,i)})}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,{group:new BF});this.group.add(c.group),this.markKeep(c);var l=uXe(i,e,t);t.setData(l),l.each(function(t){var n=JA(cXe,function(n){return sXe(l,t,n,e,r)}),a=i.getAxis(`x`).scale,s=i.getAxis(`y`).scale,c=a.getExtent(),u=s.getExtent(),d=[a.parse(l.get(`x0`,t)),a.parse(l.get(`x1`,t))],f=[s.parse(l.get(`y0`,t)),s.parse(l.get(`y1`,t))];dI(d),dI(f);var p=c[0]>d[1]||c[1]f[1]||u[1]=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:$.size.m,align:`auto`,backgroundColor:$.color.transparent,borderColor:$.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:$.color.disabled,inactiveBorderColor:$.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:$.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:$.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:$.color.tertiary,borderWidth:1,borderColor:$.color.border},emphasis:{selectorLabel:{show:!0,color:$.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(tW),P5=ej,F5=Q,I5=BF,pXe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new I5),this.group.add(this._selectorGroup=new I5),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=YU(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=KU(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=KU(UA({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Mqe(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=Ej(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),F5(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===` -`)){var p=new I5;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,P5(gXe,f,null,r,d)).on(`mouseover`,P5(L5,m.name,null,r,d)).on(`mouseout`,P5(R5,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=cz(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=ZN(h.fill);_&&_[3]===0&&(_[3]=.2,h=Z(Z({},h),{fill:iP(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,P5(gXe,null,f,r,d)).on(`mouseover`,P5(L5,null,f,r,d)).on(`mouseout`,P5(R5,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=cz(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};cz(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();F5(e,function(e){var r=e.type,i=new ZR({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),mH(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),iB(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=mXe(c,r,o,s,d,m,u),y=new I5,b=r.getModel(`textStyle`);if(nj(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(hXe({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;rj(w)&&w?T=w.replace(`{name}`,t??``):nj(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new ZR({style:gH(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new qR({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&XV({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),iB(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();UU(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){UU(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}else return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(aK);function mXe(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),F5(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:Dq(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function hXe(e){var t=e.icon||`roundRect`,n=ZK(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=$.color.neutral00,n.style.lineWidth=2),n}function gXe(e,t,n,r){R5(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),L5(e,t,n,r)}function L5(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function R5(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function z5(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),_Xe(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){Q(i,function(t,n){e[t?`select`:`unSelect`](n)}),_Xe(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function _Xe(e,t){var n=t||{};return Q(e.getData(),function(t){var r=t.get(`name`);if(!(r===` -`||r===``)){var i=e.isSelected(r);Aj(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function vXe(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,ej(z5,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,ej(z5,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,ej(z5,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,ej(z5,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,ej(z5,`unSelect`))}var yXe=vL(bXe);function bXe(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;nn[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=hj(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new qR({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&mV(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;Q([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,rj(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=B5[i],o=V5[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(pXe);function EXe(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function DXe(e){qJ(xXe),e.registerComponentModel(SXe),e.registerComponentView(TXe),EXe(e)}function OXe(e){qJ(xXe),qJ(DXe)}var kXe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=NH(G8.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(G8),H5=YI();function AXe(e,t,n){H5(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function jXe(e,t){for(var n=H5(e).coordSysRecordMap,r=n.keys(),i=0;ia[i+r]&&(r=n),o&&=t.get(`preventDefaultMouseMove`,!0),s=hj(t.get(`cursorGrab`,!0),s),c=hj(t.get(`cursorGrabbing`,!0),c)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:n,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint},cursorGrab:s,cursorGrabbing:c}}}function LXe(e){e.registerUpdateLifecycle(`coordsys:aftercreate`,function(e,t){var n=H5(t),r=n.coordSysRecordMap||=Ej();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){Q(_qe(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,NXe(t,n.model));(a.dataZoomInfoMap||=Ej()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var n=e.controller,i,a=e.dataZoomInfoMap;if(a){var o=a.keys()[0];o!=null&&(i=a.get(o))}if(!i){MXe(r,e);return}var s=IXe(a,e,t);n.enable(s.controlType,s.opt),hK(e,`dispatchAction`,i.model.get(`throttle`,!0),`fixRate`)})})}var RXe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),AXe(r,t,{pan:$A(U5.pan,this),zoom:$A(U5.zoom,this),scrollMove:$A(U5.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){jXe(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(K8),U5={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=W5[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(E3(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:zXe(function(e,t,n,r,i,a){var o=W5[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:zXe(function(e,t,n,r,i,a){return W5[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function zXe(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(E3(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var W5={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e||=[0,0],a.dim===`x`?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function BXe(e){q8(e),e.registerComponentModel(kXe),e.registerComponentView(RXe),LXe(e)}var VXe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=NH(G8.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:$.color.accent10,borderRadius:0,backgroundColor:$.color.transparent,dataBackground:{lineStyle:{color:$.color.accent30,width:.5},areaStyle:{color:$.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:$.color.accent40,width:.5},areaStyle:{color:$.color.accent20,opacity:.3}},fillerColor:`rgba(135,175,274,0.2)`,handleIcon:`path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z`,handleSize:`100%`,handleStyle:{color:$.color.neutral00,borderColor:$.color.accent20},moveHandleSize:7,moveHandleIcon:`path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z`,moveHandleStyle:{color:$.color.accent40,opacity:.5},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:$.color.tertiary},brushSelect:!0,brushStyle:{color:$.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:$.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(G8),G5=qR,HXe=1,K5=30,UXe=7,q5=`horizontal`,WXe=`vertical`,GXe=5,KXe=[`line`,`bar`,`candlestick`,`scatter`],qXe={easing:`cubicOut`,duration:100,delay:0},JXe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=$A(this._onBrush,this),this._onBrushEnd=$A(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),hK(this,`_dispatchZoomAction`,t.get(`throttle`),`fixRate`),this._orient=t.getOrient(),t.get(`show`)===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!==`dataZoom`||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){gK(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new BF;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?UXe:0,r=YU(e,t).refContainer,i=this._findCoordRect(),a=e.get(`defaultLocationEdgeGap`,!0)||0,o=this._orient===q5?{right:r.width-i.x-i.width,top:r.height-K5-a-n,width:i.width,height:K5}:{right:a,top:i.y,width:K5,height:i.height},s=$U(e.option);Q([`right`,`top`,`width`,`height`],function(e){s[e]===`ph`&&(s[e]=o[e])});var c=KU(s,r);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===WXe&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===q5&&!i?{scaleY:o?1:-1,scaleX:1}:n===q5&&i?{scaleY:o?1:-1,scaleX:-1}:n===WXe&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]),c=isNaN(s.x)?0:s.x,l=isNaN(s.y)?0:s.y;e.x=t.x-c,e.y=t.y-l,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new G5({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new G5({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:$A(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(e.thisDim),u=i.getDataExtent(o),d=(u[1]-u[0])*.3;u=[u[0]-d,u[1]+d];var f=[0,t[1]],p=[0,t[0]],m=[[t[0],0],[0,0]],h=[],g=p[1]/Math.max(1,i.count()-1),_=t[0]/(l[1]-l[0]),v=e.thisAxis.type===`time`,y=-g,b=Math.round(i.count()/t[0]),x;i.each([e.thisDim,o],function(e,t,n){if(b>0&&n%b){v||(y+=g);return}y=v?(+e-l[0])*_:y+g;var r=t==null||isNaN(t)||t===``,i=r?0:oI(t,u,f,!0);r&&!x&&n?(m.push([m[m.length-1][0],0]),h.push([h[h.length-1][0],0])):!r&&x&&(m.push([y,0]),h.push([y,0])),r||(m.push([y,i]),h.push([y,i])),x=r}),s=this._shadowPolygonPts=m,c=this._shadowPolylinePts=h}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var S=this.dataZoomModel;function C(e){var t=S.getModel(e?`selectedDataBackground`:`dataBackground`),n=new BF,r=new GB({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new KB({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var w=0;w<3;w++){var T=C(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){Q(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&WA(KXe,e.get(`type`))<0)){var o=r.getComponent(H8(i),a).axis,s=XXe(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:e.getData().mapDimension(i),otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new G5({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new G5({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:HXe,fill:$.color.transparent}})),Q([0,1],function(t){var a=o.get(`handleIcon`);!XK[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=ZK(a,-1,0,2,2,null,!0);s.attr({cursor:ZXe(this._orient),draggable:!0,drift:$A(this._onDragMove,this,t),ondragend:$A(this._onDragEnd,this),onmouseover:$A(this._onOverDataInfoTriggerArea,this,!0),onmouseout:$A(this._onOverDataInfoTriggerArea,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=sI(l,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),iB(s);var u=o.get(`handleColor`);u!=null&&(s.style.fill=u),i.add(n[t]=s);var d=o.getModel(`textStyle`),f=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new ZR({silent:!0,invisible:!f,style:gH(d,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(l){var f=sI(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new qR({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=ZK(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,$.color.neutral00,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new qR({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:`grab`,drift:$A(this._onActualMoveZoneDrift,this),ondragstart:$A(this._onActualMoveZoneDragStart,this),ondragend:$A(this._onActualMoveZoneDragEnd,this),onmouseover:$A(this._onOverDataInfoTriggerArea,this,!0),onmouseout:$A(this._onOverDataInfoTriggerArea,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[oI(e[0],[0,100],t,!0),oI(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];E3(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:oI(a.minSpan,o,i,!0),a.maxSpan==null?null:oI(a.maxSpan,o,i,!0));var s=this._range,c=this._range=dI([oI(r[0],i,o,!0),oI(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=dI(n.slice()),i=this._size;Q([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;ct[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new OM(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100],a=this._handleEnds=[n.x,n.x+n.width],o=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();E3(0,a,r,0,o.minSpan==null?null:oI(o.minSpan,i,r,!0),o.maxSpan==null?null:oI(o.maxSpan,i,r,!0)),this._range=dI([oI(a[0],r,i,!0),oI(a[1],r,i,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(hM(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new G5({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?qXe:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=_qe(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(K8);function YXe(e,t,n,r){var i=e.get(`labelFormatter`),a=e.get(`labelPrecision`);(a==null||a===`auto`)&&(a=n.valuePrecision);var o=n.value[t],s=o==null||isNaN(o)?``:LY(r)||FY(r)?r.getLabel({value:Math.round(o)}):isFinite(a)?uI(o,a,!0):o+``;return nj(i)?i(o,s):rj(i)?i.replace(`{value}`,s):s}function XXe(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function ZXe(e){return e===`vertical`?`ns-resize`:`ew-resize`}function QXe(e){e.registerComponentModel(VXe),e.registerComponentView(JXe),q8(e)}function $Xe(e){qJ(BXe),qJ(QXe)}var eZe={get:function(e,t,n){var r=zA((tZe[e]||{})[t]);return n&&tj(r)?r[r.length-1]:r}},tZe={color:{active:[`#006edd`,`#e0ffff`],inactive:[$.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},nZe=M4.mapVisual,rZe=M4.eachVisual,iZe=tj,J5=Q,aZe=dI,oZe=oI,Y5=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&$Je(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=$A(e,this),this.controllerVisuals=u5(this.option.controller,t,e),this.targetVisuals=u5(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return J5(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=$I(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return JA(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){Q(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],tj(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(rj(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(nj(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=aZe([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=ZA(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};BA(r,n),BA(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){iZe(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},J5(r,function(e,t){if(M4.isValidType(t)){var n=eZe.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;J5(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??=t&&zA(t)||(a?i:[i]),c.symbolSize??=n&&zA(n)||(a?s[0]:[s[0],s[0]]),c.symbol=nZe(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;rZe(l,function(e){e>u&&(u=e)}),c.symbolSize=nZe(l,function(e){return oZe(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:$.color.transparent,borderColor:$.color.borderTint,contentColor:$.color.theme[0],inactiveColor:$.color.disabled,borderWidth:0,padding:$.size.m,textGap:10,precision:0,textStyle:{color:$.color.secondary}},t}(tW),sZe=[20,140],cZe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=sZe[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=sZe[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):tj(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),Q(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=dI((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=lZe(this,`outOfRange`,this.getExtent()),n=lZe(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;oe[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new BF(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);pZe([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=Z5(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=LV(n.handleLabelPoints[l],IV(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=Z5(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=LV(c.indicatorLabelPoint,IV(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;Ci[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||bZe(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=cwe(u,d);this._dispatchHighDown(`downplay`,X5(f[0],n)),this._dispatchHighDown(`highlight`,X5(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(VK(e.target,function(e){var n=cz(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function TZe(e,t,n,r){for(var i=t.targetVisuals[r],a=M4.prepareVisualTypes(i),o={color:LK(e.getData(),`color`)},s=0,c=a.length;s0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(SZe,CZe),Q(wZe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(DZe))}function AZe(e){e.registerComponentModel(cZe),e.registerComponentView(_Ze),kZe(e)}var jZe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],MZe[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=zA(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=JA(this._pieceList,function(e){return e=zA(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=M4.listVisualTypes(),i=this.isCategory();Q(t.pieces,function(e){Q(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),Q(n,function(e,n){var r=!1;Q(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&Q(this.stateList,function(e){(t[e]||(t[e]={}))[n]=eZe.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,Q(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;Q(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=zA(e)},t.prototype.getValueState=function(e){var t=M4.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){M4.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return Q(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=NH(Y5.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(Y5),MZe={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function NZe(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var PZe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=mj(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),Q(o.viewPieceList,function(o){var s=o.piece,u=new BF;u.onclick=$A(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new ZR({style:gH(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:hj(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),UU(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:X5(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return fZe(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new BF,o=this.visualMapModel.textStyleModel;a.add(new ZR({style:gH(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=JA(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=ZK(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=zA(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,Q(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(uZe);function FZe(e){e.registerComponentModel(jZe),e.registerComponentView(PZe),kZe(e)}function IZe(e){qJ(AZe),qJ(FZe)}var LZe=function(){function e(e){this._thumbnailModel=e}return e.prototype.reset=function(e){this._renderVersion=e.getECUpdateCycleVersion()},e.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:iH(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},e.prototype.updateWindow=function(e,t){var n=t.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},e}(),RZe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.optionUpdated=function(e,t){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new LZe(this);this._target=null,this.ecModel.eachSeries(function(e){nze(e,null)}),this.shouldShow()&&nze(this.getTarget().baseMapProvider,e)},t.prototype.shouldShow=function(){return this.getShallow(`show`,!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents(`series`,{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!==`graph`&&(e=null):e=this.ecModel.queryComponents({mainType:`series`,subType:`graph`})[0],this._target={baseMapProvider:e},this._target},t.type=`thumbnail`,t.layoutMode=`box`,t.dependencies=[`series`,`geo`],t.defaultOption={show:!0,right:1,bottom:1,height:`25%`,width:`25%`,itemStyle:{borderColor:$.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:$.color.neutral30,borderColor:$.color.neutral40,opacity:.3},z:10},t}(tW),zZe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this._api=n,this._model=e,this._coordSys||=new P2,!this._isEnabled()){this._clear();return}this._renderVersion=n.getECUpdateCycleVersion();var r=this.group;r.removeAll();var i=e.getModel(`itemStyle`),a=i.getItemStyle();a.fill??=t.get(`backgroundColor`)||$.color.neutral00;var o=YU(e,n).refContainer,s=KU(WU(e,!0),o),c=a.lineWidth||0,l=this._contentRect=qV(s.clone(),c/2,!0,!0),u=new BF;r.add(u),u.setClipPath(new qR({shape:l.plain()}));var d=this._targetGroup=new BF;u.add(d);var f=s.plain();f.r=i.getShallow(`borderRadius`,!0),r.add(this._bgRect=new qR({style:a,shape:f,silent:!1,cursor:`grab`}));var p=e.getModel(`windowStyle`),m=p.getShallow(`borderRadius`,!0);u.add(this._windowRect=new qR({shape:{x:0,y:0,width:0,height:0,r:m},style:p.getItemStyle(),silent:!1,cursor:`grab`})),this._dealRenderContent(),this._dealUpdateWindow(),VZe(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),VZe(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var t=this._targetGroup,n=this._coordSys,r=this._contentRect;if(t.removeAll(),e){var i=e.group,a=i.getBoundingRect();t.add(i),this._bgRect.z2=e.z2Range.min-10,H2(n,a.x,a.y,a.width,a.height);var o=KU({left:`center`,top:`center`,aspect:a.width/a.height},r);U2(n,o.x,o.y,o.width,o.height),R2(i,n,0),i.dirty(),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var t=this._bridgeRendered;t&&t.renderVersion===e.renderVersion&&(t.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var t=EM([],e.targetTrans),n=SM([],I2(null,this._coordSys),t);this._transThisToTarget=EM([],n);var r=e.viewportRect;r=r?r.clone():new VM(0,0,this._api.getWidth(),this._api.getHeight()),r.applyTransform(n);var i=this._windowRect,a=i.shape.r;i.setShape(UA({r:a},r))}},t.prototype._resetRoamController=function(e){var t=this,n=this._api,r=this._roamController;if(r||=this._roamController=new f2(n.getZr()),!e||!this._isEnabled()){r.disable();return}r.enable(e,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(e,n,r){return t._contentRect.contain(n,r)}}}),r.off(`pan`).off(`zoom`).on(`pan`,$A(this._onPan,this)).on(`zoom`,$A(this._onZoom,this))},t.prototype._onPan=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=Zj([],[e.oldX,e.oldY],t),r=Zj([],[e.oldX-e.dx,e.oldY-e.dy],t);this._api.dispatchAction(BZe(this._model.getTarget().baseMapProvider,{dx:r[0]-n[0],dy:r[1]-n[1]}))}},t.prototype._onZoom=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=Zj([],[e.originX,e.originY],t);this._api.dispatchAction(BZe(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:n[0],originY:n[1]}))}},t.prototype._isEnabled=function(){var e=this._model;return!(!e||!e.shouldShow()||!e.getTarget().baseMapProvider)},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type=`thumbnail`,t}(aK);function BZe(e,t){var n={type:e.mainType===`series`?e.subType+`Roam`:e.mainType+`Roam`};return n[e.mainType+`Id`]=e.id,Z(n,t),n}function VZe(e,t){var n=rH(e);aH(t.group,n.z,n.zlevel)}function HZe(e){e.registerComponentModel(RZe),e.registerComponentView(zZe)}var UZe={label:{enabled:!0},decal:{show:!1}},WZe=YI(),GZe=YI(),KZe=vL(qZe);function qZe(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=GZe(e).scope||(GZe(e).scope={}),i=zA(UZe);BA(i.label,e.getLocaleModel().get(`aria`),!1),BA(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=Ej();e.eachSeries(function(e){e.isColorBySeries()||(WZe(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(nj(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=yW(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=WZe(t).scope;n.each(function(e){var t=n.getRawIndex(e);s[t]=e});var l=o.count();o.each(function(e){var r=s[e],i=o.getName(e)||e+``,a=yW(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?Z(Z({},t),e):t;return n.dirty=!0,n}})}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=UA(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var o=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(o,d),p;if(!(o<1)){var m=c();p=m?s(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=o>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=s(g,{seriesCount:o}),e.eachSeries(function(e,t){if(t1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:l(e.subType)});var i=e.getData();if(i.count()>u){var c=a.get([`data`,`partialData`]);n+=s(c,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_":`gt`,">=":`gte`,"=":`eq`,"!=":`ne`,"<>":`ne`},ZZe=function(){function e(e){(this._condVal=rj(e)?new RegExp(e):fj(e)?e:null)??PI(``)}return e.prototype.evaluate=function(e){var t=typeof e;return rj(t)?this._condVal.test(e):aj(t)?this._condVal.test(e+``):!1},e}(),QZe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),$Ze=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(i),i=[e,t]}function u(e,t,n,r){n7(e,n)&&n7(t,r)||i.push(e,t,n,r,n,r)}function d(e,t,n,r,a,o){var s=Math.abs(t-e),c=Math.tan(s/4)*4/3,l=tw:D2&&r.push(i),r}function i7(e,t,n,r,i,a,o,s,c,l){if(n7(e,n)&&n7(t,r)&&n7(i,o)&&n7(a,s)){c.push(o,s);return}var u=2/l,d=u*u,f=o-e,p=s-t,m=Math.sqrt(f*f+p*p);f/=m,p/=m;var h=n-e,g=r-t,_=i-o,v=a-s,y=h*h+g*g,b=_*_+v*v;if(y=0&&w=0){c.push(o,s);return}var T=[],E=[];kN(e,n,i,o,.5,T),kN(t,r,a,s,.5,E),i7(T[0],E[0],T[1],E[1],T[2],E[2],T[3],E[3],c,l),i7(T[4],E[4],T[5],E[5],T[6],E[6],T[7],E[7],c,l)}function hQe(e,t){var n=r7(e),r=[];t||=1;for(var i=0;i0)for(var l=0;lMath.abs(l),d=gQe([c,l],+!u,t),f=(u?s:l)/d.length,p=0;pi,o=gQe([r,i],+!a,t),s=a?`width`:`height`,c=a?`height`:`width`,l=a?`x`:`y`,u=a?`y`:`x`,d=e[s]/o.length,f=0;f1?null:new OM(p*c+e,p*l+t)}function xQe(e,t,n){var r=new OM;OM.sub(r,n,t),r.normalize();var i=new OM;return OM.sub(i,e,t),i.dot(r)}function a7(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function SQe(e,t,n){for(var r=e.length,i=[],a=0;ao?(l.x=u.x=s+a/2,l.y=c,u.y=c+o):(l.y=u.y=c+o/2,l.x=s,u.x=s+a),SQe(t,l,u)}function o7(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),a=e(t);o7(e,a[0],i,r),o7(e,a[1],n-i,r)}return r}function wQe(e,t){for(var n=[],r=0;r0)for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var C=Math.sin(S),w=Math.cos(S),T=0,y=0;y0;l/=2){var u=0,d=0;(e&l)>0&&(u=1),(t&l)>0&&(d=1),s+=l*l*(3*u^d),d===0&&(u===1&&(e=l-1-e,t=l-1-t),c=e,e=t,t=c)}return s}function d7(e){var t=1/0,n=1/0,r=-1/0,i=-1/0;return JA(JA(e,function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),c=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(c,n),r=Math.max(s,r),i=Math.max(c,i),[s,c]}),function(a,o){return{cp:a,z:RQe(a[0],a[1],t,n,r,i),path:e[o]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function zQe(e){return DQe(e.path,e.count)}function f7(){return{fromIndividuals:[],toIndividuals:[],count:0}}function BQe(e,t,n){var r=[];function i(e){for(var t=0;t=0;i--)if(!n[i].many.length){var c=n[s].many;if(c.length<=1)if(s)s=0;else return n;var a=c.length,l=Math.ceil(a/2);n[i].many=c.slice(l,a),n[s].many=c.slice(0,l),s++}return n}var WQe={clone:function(e){for(var t=[],n=1-(1-e.path.style.opacity)**(1/e.count),r=0;r0))return;var s=r.getModel(`universalTransition`).get(`delay`),c=Z({setToFinal:!0},o),l,u;HQe(e)&&(l=e,u=t),HQe(t)&&(l=t,u=e);function d(e,t,r,i,o){var l=e.many,u=e.one;if(l.length===1&&!o){var f=t?l[0]:u,p=t?u:l[0];if(s7(f))d({many:[f],one:p},!0,r,i,!0);else{var m=s?UA({delay:s(r,i)},c):c;u7(f,p,m),a(f,p,f,p,m)}}else for(var h=UA({dividePath:WQe[n],individualDelay:s&&function(e,t,n,a){return s(e+r,i)}},c),g=t?BQe(l,u,h):VQe(u,l,h),_=g.fromIndividuals,v=g.toIndividuals,y=_.length,b=0;bt.length,p=l?UQe(u,l):UQe(f?t:e,[f?e:t]),m=0,h=0;hGQe))for(var i=n.getIndices(),a=0;a0&&r.group.traverse(function(e){e instanceof BR&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)})})}function r$e(e){return e.getModel(`universalTransition`).get(`seriesKey`)||e.id}function i$e(e){return tj(e)?e.sort().join(`,`):e}function v7(e){if(e.hostModel)return e.hostModel.getModel(`universalTransition`).get(`divideShape`)}function a$e(e,t){var n=Ej(),r=Ej(),i=Ej();return Q(e.oldSeries,function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=r$e(t),c=i$e(s);r.set(c,{dataGroupId:a,data:o}),tj(s)&&Q(s,function(e){i.set(e,{key:c,dataGroupId:a,data:o})})}),Q(t.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get(`dataGroupId`),a=e.getData(),o=r$e(e),s=i$e(o),c=r.get(s);if(c)n.set(s,{oldSeries:[{dataGroupId:c.dataGroupId,divide:v7(c.data),data:c.data}],newSeries:[{dataGroupId:t,divide:v7(a),data:a}]});else if(tj(o)){var l=[];Q(o,function(e){var t=r.get(e);t.data&&l.push({dataGroupId:t.dataGroupId,divide:v7(t.data),data:t.data})}),l.length&&n.set(s,{oldSeries:l,newSeries:[{dataGroupId:t,data:a,divide:v7(a)}]})}else{var u=i.get(o);if(u){var d=n.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:v7(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({dataGroupId:t,data:a,divide:v7(a)})}}}}),n}function o$e(e,t){for(var n=0;n=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:v7(t.oldData[n]),groupIdDim:e.dimension})}),Q(RI(e.to),function(e){var r=o$e(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:v7(i),groupIdDim:e.dimension})}}),i.length>0&&a.length>0&&n$e(i,a,r)}function c$e(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){Q(RI(n.seriesTransition),function(e){Q(RI(e.to),function(e){for(var t=n.updatedSeries,r=0;ro.vmin?n+=o.vmin-r+(e-o.vmin)/(o.vmax-o.vmin)*o.gapReal:n+=e-r,r=o.vmax,i=!1;break}n+=o.vmin-r+o.gapReal,r=o.vmax}return i&&(n+=e-r),n},transformOut:function(e,t){if(t&&t.depth===2)return e;for(var n=d$e,r=f$e,i=!0,a=0,o=0;oc?s.vmin+(e-c)/(l-c)*(s.vmax-s.vmin):r+e-n,r=s.vmax,i=!1;break}n=l,r=s.vmax}return i&&(a=r+e-n),a}},e}();function u$e(e,t){return new l$e(e,t)}var d$e=0,f$e=0;function p$e(e,t){var n=0,r={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},i=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},a={S:{tpAbs:i(),tpPrct:i()},E:{tpAbs:i(),tpPrct:i()}};Q(e.breaks,function(e){var i=e.gapParsed;i.type===`tpPrct`&&(n+=i.val);var o=y7(e,t);if(o){var s=o.vmin!==e.vmin,c=o.vmax!==e.vmax,l=o.vmax-o.vmin;if(!(s&&c))if(s||c){var u=s?`S`:`E`;a[u][i.type].has=!0,a[u][i.type].span=l,a[u][i.type].inExtFrac=l/(e.vmax-e.vmin),a[u][i.type].val=i.val}else r[i.type].span+=l,r[i.type].val+=i.val}});var o=n*(0+(t[1]-t[0])+(r.tpAbs.val-r.tpAbs.span)+(a.S.tpAbs.has?(a.S.tpAbs.val-a.S.tpAbs.span)*a.S.tpAbs.inExtFrac:0)+(a.E.tpAbs.has?(a.E.tpAbs.val-a.E.tpAbs.span)*a.E.tpAbs.inExtFrac:0)-r.tpPrct.span-(a.S.tpPrct.has?a.S.tpPrct.span*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.span*a.E.tpPrct.inExtFrac:0))/(1-r.tpPrct.val-(a.S.tpPrct.has?a.S.tpPrct.val*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.val*a.E.tpPrct.inExtFrac:0));Q(e.breaks,function(e){var t=e.gapParsed;t.type===`tpPrct`&&(e.gapReal=n===0?0:ZF(o,0)*t.val/n),t.type===`tpAbs`&&(e.gapReal=t.val),e.gapReal??=0})}function m$e(e,t,n,r,i,a){e!==`no`&&Q(n,function(n){var o=y7(n,a);if(o)for(var s=t.length-1;s>=0;s--){var c=t[s],l=r(c),u=i*3/4;l>o.vmin-u&&lt[0]&&n=0&&e<.99999}Q(e,function(e){if(!(!e||e.start==null||e.end==null)&&!e.isExpanded){var a={breakOption:zA(e),vmin:t.parse(e.start),vmax:t.parse(e.end),gapParsed:{type:`tpAbs`,val:0},gapReal:null};if(e.gap!=null){var o=!1;if(rj(e.gap)){var s=bj(e.gap);if(s.match(/%$/)){var c=parseFloat(s)/100;i(c,`Percent gap`)||(c=0),a.gapParsed.type=`tpPrct`,a.gapParsed.val=c,o=!0}}if(!o){var l=t.parse(e.gap);(!isFinite(l)||l<0)&&(l=0),a.gapParsed.type=`tpAbs`,a.gapParsed.val=l}}if(a.vmin===a.vmax&&(a.gapParsed.type=`tpAbs`,a.gapParsed.val=0),n&&n.noNegative&&Q([`vmin`,`vmax`],function(e){a[e]<0&&(a[e]=0)}),a.vmin>a.vmax){var u=a.vmax;a.vmax=a.vmin,a.vmin=u}r.push(a)}}),r.sort(function(e,t){return e.vmin-t.vmin});var a=-1/0;return Q(r,function(e,t){a>e.vmin&&(r[t]=null),a=e.vmax}),{breaks:XA(r,function(e){return!!e})}}function x7(e,t){return S7(t)===S7(e)}function S7(e){return e.start+`_\0_`+e.end}function g$e(e,t,n){var r=[];Q(e,function(e,n){var i=t(e);i&&i.type===`vmin`&&r.push([n])}),Q(e,function(n,i){var a=t(n);if(a&&a.type===`vmax`){var o=ZA(r,function(n){return x7(t(e[n[0]]).parsedBreak.breakOption,a.parsedBreak.breakOption)});o&&o.push(i)}});var i=[];return Q(r,function(t){t.length===2&&i.push(n?t:[e[t[0]],e[t[1]]])}),i}function _$e(e,t,n,r){if(t.break){var i=t.break.parsedBreak,a=ZA(n,function(e){return x7(e.breakOption,t.break.parsedBreak.breakOption)}),o={lookup:r,depth:2},s={vmin:e.transformOut(i.vmin,o),vmax:e.transformOut(i.vmax,o),breakOption:i.breakOption,gapParsed:zA(a.gapParsed),gapReal:i.gapReal};return{tickVal:s[t.break.type],vBreak:{type:t.break.type,parsedBreak:s}}}}function v$e(e,t,n,r,i){i.original=b7(e,t,n);var a=i.transformed=b7(e,t,n),o=i.lookup;a.breaks=JA(a.breaks,function(e,n){var i={depth:2},a=t.transformIn(e.vmin,i),s=t.transformIn(e.vmax,i),c={type:e.gapParsed.type,val:e.gapParsed.type===`tpAbs`?t.transformIn(e.vmin+e.gapParsed.val,i)-a:e.gapParsed.val};return o.from[r+n]=a,o.to[r+n]=e.vmin,o.from[r+n+1]=s,o.to[r+n+1]=e.vmax,{vmin:a,vmax:s,gapParsed:c,gapReal:e.gapReal,breakOption:e.breakOption}})}var y$e={vmin:`start`,vmax:`end`};function b$e(e,t){return t&&(e||={},e.break={type:y$e[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),e}function x$e(){bEe({createBreakScaleMapper:u$e,pruneTicksByBreak:m$e,addBreaksToTicks:h$e,parseAxisBreakOption:b7,identifyAxisBreak:x7,serializeAxisBreakIdentifier:S7,retrieveAxisBreakPairs:g$e,getTicksBreakOutwardTransform:_$e,parseAxisBreakOptionInwardTransform:v$e,makeAxisLabelFormatterParamBreak:b$e})}var S$e=YI();function C$e(e,t){var n=ZA(e,function(e){return UH().identifyAxisBreak(e.parsedBreak.breakOption,t.breakOption)});return n||e.push(n={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),n}function w$e(e){Q(e,function(e){return e.shouldRemove=!0})}function T$e(e){for(var t=e.length-1;t>=0;t--)e[t].shouldRemove&&e.splice(t,1)}function E$e(e,t,n,r,i){var a=n.axis;if(a.scale.isBlank()||!UH())return;var o=UH().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:`only_break`}),function(e){return e.break},!1);if(!o.length)return;var s=n.getModel(`breakArea`),c=s.get(`zigzagAmplitude`),l=s.get(`zigzagMinSpan`),u=s.get(`zigzagMaxSpan`);l=Math.max(2,l||0),u=Math.max(l,u||0);var d=s.get(`expandOnClick`),f=s.get(`zigzagZ`),p=s.getModel(`itemStyle`).getItemStyle(),m=p.stroke,h=p.lineWidth,g=p.lineDash,_=p.fill,v=new BF({ignoreModelZ:!0}),y=a.isHorizontal(),b=S$e(t).visualList||(S$e(t).visualList=[]);w$e(b);for(var x=function(e){var t=o[e][0].break.parsedBreak,r=[];r[0]=a.toGlobalCoord(a.dataToCoord(t.vmin,!0)),r[1]=a.toGlobalCoord(a.dataToCoord(t.vmax,!0)),r[1]=y;D&&(w=y);var O=[],k=[];O[d]=n,k[d]=i,!E&&!D&&(O[d]+=C?-c:c,k[d]-=C?c:-c),O[v]=w,k[v]=w,x.push(O),S.push(k);var A=void 0;if(Tn[1]&&n.reverse(),{coordPair:n,brkId:UH().serializeAxisBreakIdentifier(t.breakOption)}});s.sort(function(e,t){return e.coordPair[0]-t.coordPair[0]});for(var c=o[0],l=null,u=0;u=0?c[0].width:c[1].width)+u.x)/2-l.x,f=Math.min(d,d-u.x),p=Math.max(d,d-u.x);s=(d-(p<0?p:f>0?f:0))/u.x}var m=new OM,h=new OM;OM.scale(m,r,-s),OM.scale(h,r,1-s),BZ(n[0],m),BZ(n[1],h)}function k$e(e,t){var n={breaks:[]};return Q(t.breaks,function(r){if(r){var i=ZA(e.get(`breaks`,!0),function(e){return UH().identifyAxisBreak(e,r)});if(i){var a=t.type,o={isExpanded:!!i.isExpanded};i.isExpanded=a===`expandAxisBreak`?!0:a===`collapseAxisBreak`?!1:a===`toggleAxisBreak`?!i.isExpanded:i.isExpanded,n.breaks.push({start:i.start,end:i.end,isExpanded:!!i.isExpanded,old:o})}}}),n}function A$e(){LMe({adjustBreakLabelPair:O$e,buildAxisBreakLine:D$e,rectCoordBuildBreakAxis:E$e,updateModelAxisBreak:k$e})}function j$e(e){UMe(e),x$e(),A$e()}function M$e(){rPe(N$e)}function N$e(e,t){Q(e,function(e){if(!e.model.get([`axisLabel`,`inside`])){var n=P$e(e);if(n){var r=e.isHorizontal()?`height`:`width`,i=e.model.get([`axisLabel`,`margin`]);t[r]-=n[r]+i,e.position===`top`?t.y+=n.height+i:e.position===`left`&&(t.x+=n.width+i)}}})}function P$e(e){var t=e.model,n=e.scale;if(!t.get([`axisLabel`,`show`])||n.isBlank())return;var r,i,a=n.getExtent();n instanceof WY?i=n.count():(r=n.getTicks(),i=r.length);var o=e.getLabelModel(),s=sX(e),c,l=1;i>40&&(l=Math.ceil(i/40));for(var u=0;upZ,ChartView:()=>cK,ComponentModel:()=>tW,ComponentView:()=>aK,List:()=>hY,Model:()=>jH,PRIORITY:()=>Lq,SeriesModel:()=>tK,color:()=>QSe,connect:()=>pke,dataTool:()=>xke,dependencies:()=>YOe,disConnect:()=>mke,disconnect:()=>OJ,dispose:()=>hke,env:()=>TA,extendChartView:()=>dje,extendComponentModel:()=>cje,extendComponentView:()=>lje,extendSeriesModel:()=>uje,format:()=>WAe,getCoordinateSystemDimensions:()=>_ke,getInstanceByDom:()=>kJ,getInstanceById:()=>gke,getMap:()=>bke,graphic:()=>UAe,helper:()=>AAe,init:()=>fke,innerDrawElementOnCanvas:()=>xq,matrix:()=>MSe,number:()=>VAe,parseGeoJSON:()=>eZ,parseGeoJson:()=>eZ,registerAction:()=>IJ,registerCoordinateSystem:()=>LJ,registerCustomSeries:()=>vke,registerLayout:()=>RJ,registerLoading:()=>HJ,registerLocale:()=>BH,registerMap:()=>UJ,registerPostInit:()=>NJ,registerPostUpdate:()=>PJ,registerPreprocessor:()=>jJ,registerProcessor:()=>MJ,registerTheme:()=>AJ,registerTransform:()=>WJ,registerUpdateLifecycle:()=>FJ,registerVisual:()=>zJ,setCanvasCreator:()=>yke,setPlatformAPI:()=>DA,throttle:()=>mK,time:()=>HAe,use:()=>qJ,util:()=>GAe,vector:()=>dSe,version:()=>JOe,zrUtil:()=>tSe,zrender:()=>NCe});qJ([hMe]),qJ([cMe]),qJ([IMe,NNe,WNe,SPe,FPe,kIe,fLe,gRe,cze,vze,wze,Pze,YBe,CVe,BVe,cHe,mHe,OHe,FHe,aUe,pUe,AUe,OWe]),qJ(uGe),qJ(GGe),qJ(CIe),qJ(oKe),qJ(JBe),qJ(dKe),qJ(ZKe),qJ(dqe),qJ(yJe),qJ(JJe),qJ(r8),qJ(bYe),qJ(CYe),qJ(RYe),qJ(YYe),qJ(nXe),qJ(dXe),qJ(OXe),qJ($Xe),qJ(BXe),qJ(QXe),qJ(IZe),qJ(AZe),qJ(FZe),qJ(HZe),qJ(YZe),qJ(dQe),qJ(mQe),qJ(c$e),qJ(Eje),qJ(j$e),qJ(M$e),qJ(CPe);var I$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1;e.default=function(){return`${t++}`}})),L$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,n=null;return function(){var r=this,i=[...arguments];clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}}})),C7=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SizeSensorId=e.SensorTabIndex=e.SensorClassName=void 0,e.SizeSensorId=`size-sensor-id`,e.SensorClassName=`size-sensor-object`,e.SensorTabIndex=`-1`})),R$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=r(L$e()),n=C7();function r(e){return e&&e.__esModule?e:{default:e}}e.createSensor=function(e,r){var i=void 0,a=[],o=function(){getComputedStyle(e).position===`static`&&(e.style.position=`relative`);var t=document.createElement(`object`);return t.onload=function(){t.contentDocument.defaultView.addEventListener(`resize`,s),s()},t.style.display=`block`,t.style.position=`absolute`,t.style.top=`0`,t.style.left=`0`,t.style.height=`100%`,t.style.width=`100%`,t.style.overflow=`hidden`,t.style.pointerEvents=`none`,t.style.zIndex=`-1`,t.style.opacity=`0`,t.setAttribute(`class`,n.SensorClassName),t.setAttribute(`tabindex`,n.SensorTabIndex),t.type=`text/html`,e.appendChild(t),t.data=`about:blank`,t},s=(0,t.default)(function(){a.forEach(function(t){t(e)})}),c=function(e){i||=o(),a.indexOf(e)===-1&&a.push(e)},l=function(){i&&i.parentNode&&(i.contentDocument&&i.contentDocument.defaultView.removeEventListener(`resize`,s),i.parentNode.removeChild(i),e.removeAttribute(n.SizeSensorId),i=void 0,a=[],r&&r())};return{element:e,bind:c,destroy:l,unbind:function(e){var t=a.indexOf(e);t!==-1&&a.splice(t,1),a.length===0&&i&&l()}}}})),z$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=C7(),n=r(L$e());function r(e){return e&&e.__esModule?e:{default:e}}e.createSensor=function(e,r){var i=void 0,a=[],o=(0,n.default)(function(){a.forEach(function(t){t(e)})}),s=function(){var t=new ResizeObserver(o);return t.observe(e),o(),t},c=function(e){i||=s(),a.indexOf(e)===-1&&a.push(e)},l=function(){i&&i.disconnect(),a=[],i=void 0,e.removeAttribute(t.SizeSensorId),r&&r()};return{element:e,bind:c,destroy:l,unbind:function(e){var t=a.indexOf(e);t!==-1&&a.splice(t,1),a.length===0&&i&&l()}}}})),B$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=R$e(),n=z$e();e.createSensor=typeof ResizeObserver<`u`?n.createSensor:t.createSensor})),V$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=e.Sensors=void 0;var t=i(I$e()),n=B$e(),r=C7();function i(e){return e&&e.__esModule?e:{default:e}}var a=e.Sensors={};function o(e){e&&a[e]&&delete a[e]}e.getSensor=function(e){var i=e.getAttribute(r.SizeSensorId);if(i&&a[i])return a[i];var s=(0,t.default)();e.setAttribute(r.SizeSensorId,s);var c=(0,n.createSensor)(e,function(){return o(s)});return a[s]=c,c},e.removeSensor=function(e){var t=e.element.getAttribute(r.SizeSensorId);e.destroy(),o(t)}})),H$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var t=V$e();e.bind=function(e,n){var r=(0,t.getSensor)(e);return r.bind(n),function(){r.unbind(n)}},e.clear=function(e){var n=(0,t.getSensor)(e);(0,t.removeSensor)(n)},e.ver=`1.0.3`}))();function U$e(e,t){var n={};return t.forEach(function(t){n[t]=e[t]}),n}function w7(e){return typeof e==`function`}function W$e(e){return typeof e==`string`}var T7=l(o(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}}))()),G$e=function(e){bA(t,e);function t(t){var n=e.call(this,t)||this;return n.echarts=F$e,n}return t}(function(e){bA(t,e);function t(t){var n=e.call(this,t)||this;return n.echarts=t.echarts,n.ele=null,n.isInitialResize=!0,n.eventHandlerRefs={},n}return t.prototype.componentDidMount=function(){this.renderNewEcharts()},t.prototype.componentDidUpdate=function(e){var t=this.props.shouldSetOption;if(!(w7(t)&&!t(e,this.props))){if(!(0,T7.default)(e.theme,this.props.theme)||!(0,T7.default)(e.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var n=this.getEchartsInstance();(0,T7.default)(e.onEvents,this.props.onEvents)||(this.unbindEvents(n),this.bindEvents(n,this.props.onEvents));var r=[`option`,`notMerge`,`replaceMerge`,`lazyUpdate`,`showLoading`,`loadingOption`];(0,T7.default)(U$e(this.props,r),U$e(e,r))||this.updateEChartsOption(),(!(0,T7.default)(e.style,this.props.style)||!(0,T7.default)(e.className,this.props.className))&&this.resize()}},t.prototype.componentWillUnmount=function(){this.dispose()},t.prototype.initEchartsInstance=function(){return SA(this,void 0,void 0,function(){var e=this;return CA(this,function(t){return[2,new Promise(function(t){e.echarts.init(e.ele,e.props.theme,e.props.opts),e.getEchartsInstance().on(`finished`,function(){var n=e.ele.clientWidth,r=e.ele.clientHeight;e.echarts.dispose(e.ele);var i=xA({width:n,height:r},e.props.opts);t(e.echarts.init(e.ele,e.props.theme,i))})})]})})},t.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},t.prototype.dispose=function(){if(this.ele){try{(0,H$e.clear)(this.ele)}catch(e){console.warn(e)}this.echarts.dispose(this.ele)}},t.prototype.renderNewEcharts=function(){return SA(this,void 0,void 0,function(){var e,t,n,r,i,a,o=this;return CA(this,function(s){switch(s.label){case 0:return e=this.props,t=e.onEvents,n=e.onChartReady,r=e.autoResize,i=r===void 0?!0:r,[4,this.initEchartsInstance()];case 1:return s.sent(),a=this.updateEChartsOption(),this.bindEvents(a,t||{}),w7(n)&&n(a),this.ele&&i&&(0,H$e.bind)(this.ele,function(){o.resize()}),[2]}})})},t.prototype.bindEvents=function(e,t){var n=this,r=function(t,r){if(W$e(t)&&w7(r)){var i=function(t){r(t,e)};e.on(t,i),n.eventHandlerRefs[t]=i}};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&r(i,t[i])},t.prototype.unbindEvents=function(e){for(var t=0,n=Object.entries(this.eventHandlerRefs);t{let n=t[e],r=Object.entries(n).map(([t,n])=>({name:`${t} (${n})`,value:n,itemStyle:{color:q$e[e]}})),i=r.reduce((e,t)=>e+t.value,0);return i===0?null:{name:`${hA[e]} (${i})`,value:i,itemStyle:{color:q$e[e]},children:r}}).filter(Boolean);return{name:`复盘统计`,children:n.length?n:[{name:`暂无数据`,value:0}]}}function Y$e({exams:e}){let t=J$e(e);return K$e.some(t=>e.some(e=>e.scores.some(e=>(e.review_statuses||[]).includes(t))))?(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(G$e,{option:{tooltip:{trigger:`item`,formatter:e=>e.value!=null&&e.value>0?`${e.name}
次数: ${e.value}`:e.name},series:[{type:`tree`,data:[t],top:20,left:40,bottom:20,right:120,symbolSize:10,orient:`LR`,label:{position:`left`,verticalAlign:`middle`,align:`right`,fontSize:13},leaves:{label:{position:`right`,verticalAlign:`middle`,align:`left`}},emphasis:{focus:`descendant`},expandAndCollapse:!0,animationDuration:400,animationDurationUpdate:400}]},style:{height:360,width:`100%`},notMerge:!0}),(0,Y.jsx)(`p`,{style:{color:`#888`,fontSize:12,marginTop:8},children:`树状图按「状态 → 科目」统计次数;同一科可多选状态,分别计数`})]}):(0,Y.jsx)(`div`,{style:{textAlign:`center`,padding:32,color:`#999`},children:`暂无复盘数据,请在录入成绩或下方复盘中填写考试状态`})}function X$e(e,t){if(e&&typeof e==`object`&&`response`in e){let t=e.response?.data?.detail;if(typeof t==`string`)return t;if(Array.isArray(t))return t.map(e=>e?.msg||String(e)).join(`;`)}return t}function Z$e({exams:e,onRefresh:t}){let[n,r]=(0,h.useState)(!1),[i,a]=(0,h.useState)(),[o,s]=(0,h.useState)({}),[c,l]=(0,h.useState)(!1),u=(0,h.useMemo)(()=>e.map(e=>({value:e.id,label:`${e.exam_date} · ${_A[e.exam_type]}${e.title?` · ${e.title}`:``}`})),[e]),d=e.find(e=>e.id===i);return(0,h.useEffect)(()=>{n&&!i&&e.length&&a(e[0].id)},[n,i,e]),(0,h.useEffect)(()=>{if(!d){s({});return}let e={};for(let t of d.scores)e[t.subject_id]=[...t.review_statuses||[]];s(e)},[d]),(0,Y.jsx)(np,{style:{marginTop:16},activeKey:n?[`review`]:[],onChange:e=>r(e.includes(`review`)),items:[{key:`review`,label:`复盘`,children:(0,Y.jsxs)(Iy,{direction:`vertical`,size:`middle`,style:{width:`100%`},children:[e.length===0?(0,Y.jsx)(eD.Text,{type:`secondary`,children:`请先录入至少一次考试成绩`}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(Iy,{wrap:!0,style:{width:`100%`},children:[(0,Y.jsx)(hC,{style:{minWidth:260,flex:1},placeholder:`选择考试`,value:i,onChange:a,options:u}),(0,Y.jsx)(Cp,{type:`primary`,loading:c,onClick:async()=>{if(!d){ax.warning(`请选择考试`);return}l(!0);try{await Qk.update(d.id,{scores:d.scores.map(e=>({subject_id:e.subject_id,total_score:Number(e.total_score),obtained_score:Number(e.obtained_score),review_statuses:o[e.subject_id]||[]}))}),ax.success(`复盘已保存`),t()}catch(e){ax.error(X$e(e,`保存失败`))}finally{l(!1)}},children:`保存复盘`})]}),d&&(0,Y.jsx)(FE,{size:`small`,pagination:!1,rowKey:`subject_id`,dataSource:d.scores,scroll:{x:480},columns:[{title:`科目`,dataIndex:`subject_name`,width:80},{title:`得分`,width:100,render:(e,t)=>`${t.obtained_score}/${t.total_score}`},{title:`考试状态(可多选)`,render:(e,t)=>(0,Y.jsx)(xg.Group,{options:gA,value:o[t.subject_id]||[],onChange:e=>s(n=>({...n,[t.subject_id]:e}))})}]})]}),(0,Y.jsx)(eD.Text,{strong:!0,children:`复盘统计`}),(0,Y.jsx)(Y$e,{exams:e})]})}]})}function Q$e({studentId:e,subjects:t,exams:n,onRefresh:r}){let[i,a]=(0,h.useState)(!1),[o,s]=(0,h.useState)(null),[c]=jy.useForm(),[l,u]=(0,h.useState)(!1);(0,h.useEffect)(()=>{i&&o?c.setFieldsValue({exam_type:o.exam_type,exam_date:(0,Ng.default)(o.exam_date),title:o.title,scores:t.map(e=>{let t=o.scores.find(t=>t.subject_id===e.id);return t?{subject_id:e.id,total_score:t.total_score,obtained_score:t.obtained_score,review_statuses:t.review_statuses||[]}:{subject_id:e.id,total_score:void 0,obtained_score:void 0,review_statuses:[]}})}):i&&c.setFieldsValue({exam_type:`weekly`,exam_date:(0,Ng.default)(),scores:t.map(e=>({subject_id:e.id,review_statuses:[]}))})},[i,o,t,c]);let d=()=>{s(null),a(!0)},f=e=>{s(e),a(!0)},p=async()=>{try{let n=await c.validateFields(),i=(n.scores||[]).map((e,n)=>({subject_id:t[n]?.id??e.subject_id,total_score:e.total_score,obtained_score:e.obtained_score,review_statuses:e.review_statuses||[]})).filter(e=>e.subject_id!=null&&e.total_score!=null&&e.obtained_score!=null&&e.total_score>0).map(e=>({subject_id:e.subject_id,total_score:Number(e.total_score),obtained_score:Number(e.obtained_score),review_statuses:e.review_statuses||[]}));if(i.length===0){ax.warning(`请至少录入一科成绩`);return}u(!0);let s={exam_type:n.exam_type,exam_date:n.exam_date.format(`YYYY-MM-DD`),title:n.title||void 0,scores:i};o?(await Qk.update(o.id,s),ax.success(`已更新`)):(await Qk.create(e,s),ax.success(`已添加`)),a(!1),r()}catch{}finally{u(!1)}},m=async e=>{Gx.confirm({title:`确认删除该考试记录?`,onOk:async()=>{await Qk.remove(e.id),ax.success(`已删除`),r()}})};return(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(Cp,{type:`primary`,onClick:d,style:{marginBottom:16},children:`录入成绩`}),(0,Y.jsx)(FE,{rowKey:`id`,columns:[{title:`日期`,dataIndex:`exam_date`,key:`exam_date`,width:110},{title:`类型`,dataIndex:`exam_type`,key:`exam_type`,width:80,render:e=>_A[e]},{title:`标题`,dataIndex:`title`,key:`title`,ellipsis:!0},{title:`科目数`,key:`count`,width:80,render:(e,t)=>t.scores.length},{title:`平均占比`,key:`avg`,width:100,render:(e,t)=>t.scores.length?`${(t.scores.reduce((e,t)=>e+t.ratio,0)/t.scores.length*100).toFixed(1)}%`:`-`},{title:`操作`,key:`action`,width:120,render:(e,t)=>(0,Y.jsxs)(Iy,{children:[(0,Y.jsx)(Cp,{type:`link`,icon:(0,Y.jsx)(phe,{}),onClick:()=>f(t)}),(0,Y.jsx)(Cp,{type:`link`,danger:!0,icon:(0,Y.jsx)(fD,{}),onClick:()=>m(t)})]})}],dataSource:n,pagination:{pageSize:10},scroll:{x:600}}),(0,Y.jsx)(Z$e,{exams:n,onRefresh:r}),(0,Y.jsx)(Gx,{title:o?`编辑考试`:`录入成绩`,open:i,onCancel:()=>a(!1),onOk:p,confirmLoading:l,width:900,destroyOnHidden:!0,children:(0,Y.jsxs)(jy,{form:c,layout:`vertical`,children:[(0,Y.jsxs)(Iy,{style:{width:`100%`},size:`large`,wrap:!0,children:[(0,Y.jsx)(jy.Item,{name:`exam_type`,label:`考试类型`,rules:[{required:!0}],children:(0,Y.jsx)(hC,{style:{width:120},options:Object.entries(_A).map(([e,t])=>({value:e,label:t}))})}),(0,Y.jsx)(jy.Item,{name:`exam_date`,label:`考试日期`,rules:[{required:!0}],children:(0,Y.jsx)(Wv,{})}),(0,Y.jsx)(jy.Item,{name:`title`,label:`备注标题`,children:(0,Y.jsx)(ob,{placeholder:`可选`,style:{width:200}})})]}),(0,Y.jsx)(jy.List,{name:`scores`,children:e=>(0,Y.jsx)(FE,{size:`small`,pagination:!1,dataSource:e.map((e,n)=>({...e,subject:t[n]})),rowKey:`key`,scroll:{x:720},columns:[{title:`科目`,width:70,render:(e,t)=>(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(jy.Item,{name:[t.name,`subject_id`],hidden:!0,initialValue:t.subject?.id,children:(0,Y.jsx)(Db,{})}),t.subject?.name]})},{title:`总分`,width:100,render:(e,t)=>(0,Y.jsx)(jy.Item,{name:[t.name,`total_score`],noStyle:!0,children:(0,Y.jsx)(Db,{min:0,placeholder:`总分`,style:{width:90}})})},{title:`得分`,width:100,render:(e,t)=>(0,Y.jsx)(jy.Item,{name:[t.name,`obtained_score`],noStyle:!0,children:(0,Y.jsx)(Db,{min:0,placeholder:`得分`,style:{width:90}})})},{title:`占比`,width:70,render:(e,t)=>{let n=c.getFieldValue([`scores`,t.name,`total_score`]),r=c.getFieldValue([`scores`,t.name,`obtained_score`]);return n>0&&r!=null?`${(r/n*100).toFixed(1)}%`:`-`}},{title:`考试状态`,render:(e,t)=>(0,Y.jsx)(jy.Item,{name:[t.name,`review_statuses`],noStyle:!0,initialValue:[],children:(0,Y.jsx)(xg.Group,{options:gA})})}]})})]})})]})}function $$e({exams:e,subjectNames:t}){let n=new Set;e.forEach(e=>e.scores.forEach(e=>n.add(e.subject_id)));let r=[{title:`日期`,dataIndex:`exam_date`,key:`date`,width:110,fixed:`left`},{title:`类型`,dataIndex:`exam_type`,key:`type`,width:80,render:e=>(0,Y.jsx)(BE,{children:_A[e]})},...[...n].sort((e,t)=>e-t).map(e=>({title:t[e]||`科目${e}`,key:`s${e}`,width:100,render:(t,n)=>{let r=n.scores.find(t=>t.subject_id===e);return r?`${r.obtained_score}/${r.total_score} (${(r.ratio*100).toFixed(1)}%)`:`-`}}))],i=e.filter(t=>t.scores.some(n=>{let r=e.filter(e=>e.exam_date<=t.exam_date).flatMap(e=>e.scores.filter(e=>e.subject_id===n.subject_id)).sort((t,n)=>{let r=e.find(e=>e.scores.includes(t)),i=e.find(e=>e.scores.includes(n));return(r?.exam_date||``).localeCompare(i?.exam_date||``)}),i=r.findIndex(e=>e.id===n.id);return i<=0?!1:Math.abs(r[i].ratio-r[i-1].ratio)>=.08}));return(0,Y.jsxs)(`div`,{children:[i.length>0&&(0,Y.jsxs)(`div`,{style:{marginBottom:16,padding:12,background:`#fff7e6`,borderRadius:8},children:[(0,Y.jsx)(`strong`,{children:`波动预警:`}),i.slice(0,5).map(e=>(0,Y.jsxs)(BE,{color:`orange`,style:{marginTop:4},children:[e.exam_date,` `,_A[e.exam_type]]},e.id))]}),(0,Y.jsx)(FE,{rowKey:`id`,columns:r,dataSource:[...e].sort((e,t)=>t.exam_date.localeCompare(e.exam_date)),pagination:{pageSize:15},scroll:{x:`max-content`},size:`small`})]})}var E7={up:`#52c41a`,down:`#ff4d4f`,flat:`#8c8c8c`,volatile:`#fa8c16`};function e1e({points:e,subjectName:t,threshold:n}){if(e.length===0)return(0,Y.jsx)(`div`,{style:{textAlign:`center`,padding:40,color:`#999`},children:`暂无成绩数据`});let r=e.map(e=>e.exam_date),i=e.map(e=>e.ratio_percent),a=e.slice(1).map((e,t)=>{let n=E7.flat;return e.direction===`up`&&(n=E7.up),e.direction===`down`&&(n=E7.down),{type:`line`,data:r.map((e,n)=>n===t||n===t+1?i[n]:null),connectNulls:!1,showSymbol:!1,lineStyle:{width:3,color:n},tooltip:{show:!1},silent:!0}}),o=e.map((e,t)=>({point:e,i:t})).filter(({point:e})=>e.is_volatile).map(({i:e})=>({coord:[r[e],i[e]],symbol:`circle`,symbolSize:18,itemStyle:{color:E7.volatile,borderColor:`#fff`,borderWidth:2},label:{show:!1}}));return(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(G$e,{option:{title:{text:`${t} 成绩占比趋势`,left:`center`,textStyle:{fontSize:16}},tooltip:{trigger:`axis`,formatter:t=>{let n=e[t[0]?.dataIndex??0];if(!n)return``;let r=_A[n.exam_type],i=`${n.exam_date} (${r})
占比: ${n.ratio_percent}%`;if(n.title&&(i+=`
${n.title}`),n.delta_percent!==null){let e=n.delta_percent>0?`+`:``;i+=`
较上次: ${e}${n.delta_percent}%`,n.is_volatile&&(i+=` [大幅波动]`)}return i}},grid:{left:50,right:30,top:60,bottom:50},xAxis:{type:`category`,data:r,axisLabel:{rotate:30}},yAxis:{type:`value`,name:`占比 (%)`,min:0,max:100},series:[{type:`line`,data:i,symbol:`circle`,symbolSize:(t,n)=>e[n.dataIndex]?.is_volatile?14:8,itemStyle:{color:t=>{let n=e[t.dataIndex];return n?.is_volatile?E7.volatile:n?.direction===`up`?E7.up:n?.direction===`down`?E7.down:`#1677ff`}},lineStyle:{opacity:0},markPoint:o.length?{data:o}:void 0,z:10},...a],legend:{bottom:0,data:[{name:`上升`,itemStyle:{color:E7.up}},{name:`下降`,itemStyle:{color:E7.down}},{name:`大幅波动`,itemStyle:{color:E7.volatile}}]}},style:{height:400,width:`100%`},notMerge:!0}),(0,Y.jsxs)(`p`,{style:{color:`#888`,fontSize:12,marginTop:8},children:[`波动阈值: `,(n*100).toFixed(0),`%,超过此变化幅度将高亮显示`]})]})}function D7(e){return e.error_message?!1:e.status===`pending`||e.status===`ocr_done`&&!e.question_text}function O7(e){return e.status===`pending`?`正在识别文字(约 10–30 秒)…`:e.status===`ocr_done`?`正在标注错题并生成解题思路(约 30–90 秒)…`:`正在识别、标注并生成解题思路…`}function t1e({questionId:e,variant:t=`original`,className:n,alt:r=`题目`,style:i}){let[a,o]=(0,h.useState)(null),[s,c]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{let n=null,r=!1,i=async(e,t)=>{try{let t=await Jk.get(e,{responseType:`blob`});if(r)return;n=URL.createObjectURL(t.data),o(n),c(!1)}catch{t&&!r?await i(t):r||c(!0)}},a=`/wrong-questions/${e}/annotated-image`,s=`/wrong-questions/${e}/cropped-image`,l=`/wrong-questions/${e}/image`;return t===`annotated`?i(a,l):t===`cropped`?i(s,a):i(l),()=>{r=!0,n&&URL.revokeObjectURL(n)}},[e,t]),s?(0,Y.jsx)(`div`,{className:n,style:{...i,background:`#fafafa`,color:`#999`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:12},children:`图片加载失败`}):a?(0,Y.jsx)(`img`,{src:a,alt:r,className:n,style:i}):(0,Y.jsx)(`div`,{className:n,style:{...i,background:`#fafafa`}})}function n1e(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var r1e=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,i1e=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a1e={};function o1e(e,t){return((t||a1e).jsx?i1e:r1e).test(e)}var s1e=/[ \t\n\f\r]/g;function c1e(e){return typeof e==`object`?e.type===`text`?l1e(e.value):!1:l1e(e)}function l1e(e){return e.replace(s1e,``)===``}var k7=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};k7.prototype.normal={},k7.prototype.property={},k7.prototype.space=void 0;function u1e(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new k7(n,r,t)}function A7(e){return e.toLowerCase()}var j7=class{constructor(e,t){this.attribute=t,this.property=e}};j7.prototype.attribute=``,j7.prototype.booleanish=!1,j7.prototype.boolean=!1,j7.prototype.commaOrSpaceSeparated=!1,j7.prototype.commaSeparated=!1,j7.prototype.defined=!1,j7.prototype.mustUseProperty=!1,j7.prototype.number=!1,j7.prototype.overloadedBoolean=!1,j7.prototype.property=``,j7.prototype.spaceSeparated=!1,j7.prototype.space=void 0;var M7=s({boolean:()=>N7,booleanish:()=>P7,commaOrSpaceSeparated:()=>z7,commaSeparated:()=>R7,number:()=>I7,overloadedBoolean:()=>F7,spaceSeparated:()=>L7}),d1e=0,N7=B7(),P7=B7(),F7=B7(),I7=B7(),L7=B7(),R7=B7(),z7=B7();function B7(){return 2**++d1e}var V7=Object.keys(M7),H7=class extends j7{constructor(e,t,n,r){let i=-1;if(super(e,t),f1e(this,`space`,r),typeof n==`number`)for(;++i4&&n.slice(0,4)===`data`&&w1e.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(C1e,D1e);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!C1e.test(e)){let n=e.replace(S1e,E1e);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=H7}return new i(r,t)}function E1e(e){return`-`+e.toLowerCase()}function D1e(e){return e.charAt(1).toUpperCase()}var O1e=u1e([p1e,g1e,v1e,y1e,b1e],`html`),W7=u1e([p1e,_1e,v1e,y1e,b1e],`svg`);function k1e(e){return e.join(` `).trim()}var A1e=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`/`,d=`*`,f=``;function p(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,p=1;function h(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(` +`:`
`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=cz(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=c5([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(!(m!=null&&m!==`item`)){var h=s.getDataParams(c,l),g=new XG;h.marker=g.makeTooltipMarker(`item`,kU(h.color),d);var _=_G(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?GG(y?Z({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=cz(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(rj(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=zA(a),a.content=cM(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=c5(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new XG;this._showOrMove(d,function(){var n=zA(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(rj(u)){var p=e.ecModel.get(`useUTC`),m=tj(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=iU(m.axisValue,d,p)),d=EU(d,n,!0)}else if(nj(u)){var g=$A(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||tj(t))return{color:r||i};if(!tj(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),nj(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),tj(t))n=sI(t[0],s),r=sI(t[1],c);else if(oj(t)){var p=t;p.width=l[0],p.height=l[1];var m=KU(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(rj(t)&&o){var h=KJe(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=WJe(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=qJe(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=qJe(d)?l[1]/2:d===`bottom`?l[1]:0),SJe(e)){var h=GJe(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&Q(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&Q(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&Q(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&Q(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){TA.node||!t.getDom()||(gK(this,`_updatePosition`),this._tooltipContent.dispose(),e8(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(aK);function c5(e,t,n){var r=t.ecModel,i;n?(i=new jH(n,r,r),i=new jH(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof jH&&(o=o.get(`tooltip`,!0)),rj(o)&&(o={formatter:o}),o&&(i=new jH(o,i,r)))}return i}function UJe(e,t){return e.dispatchAction||$A(t.dispatchAction,t)}function WJe(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function GJe(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function KJe(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function qJe(e){return e===`center`||e===`middle`}function JJe(e,t,n){var r=ZI(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=$I(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=cz(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function YJe(e){qJ(n8),e.registerComponentModel(xJe),e.registerComponentView(HJe),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},jj),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},jj)}var XJe=[`rect`,`polygon`,`keep`,`clear`];function ZJe(e,t){var n=RI(e?e.brush:[]);if(n.length){var r=[];Q(n,function(e){var t=e.hasOwnProperty(`toolbox`)?e.toolbox:[];t instanceof Array&&(r=r.concat(t))});var i=e&&e.toolbox;tj(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||={},o=a.brush||={},s=o.type||=[];s.push.apply(s,r),mL(s,function(e){return e+``},null),t&&!s.length&&s.push.apply(s,XJe)}}var QJe=Q;function $Je(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function l5(e,t,n){var r={};return QJe(t,function(t){var a=r[t]=i();QJe(e[t],function(e,r){if(j4.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new j4(i),r===`opacity`&&(i=zA(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new j4(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function eYe(e,t,n){var r;Q(n,function(e){t.hasOwnProperty(e)&&$Je(t[e])&&(r=!0)}),r&&Q(n,function(n){t.hasOwnProperty(n)&&$Je(t[n])?e[n]=zA(t[n]):delete e[n]})}function tYe(e,t,n,r,i,a){var o={};Q(e,function(e){o[e]=j4.prepareVisualTypes(t[e])});var s;function c(e){return IK(n,s,e)}function l(e,t){RK(n,s,e,t)}a==null?n.each(u):n.each([a],u);function u(e,u){s=a==null?e:u;var d=n.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var f=r.call(i,e),p=t[f],m=o[f],h=0,g=m.length;ht[0][1]&&(t[0][1]=a[0]),a[1]t[1][1]&&(t[1][1]=a[1])}return t&&hYe(t)}};function hYe(e){return new VM(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var gYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new N3(t.getZr())).on(`brush`,$A(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){sYe(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`brush`,brushId:t,areas:zA(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:`brushEnd`,brushId:t,areas:zA(n),$from:t})},t.type=`brush`,t}(aK),_Ye=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&eYe(n,e,[`inBrush`,`outOfBrush`]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},r.hasOwnProperty(`liftZ`)||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=JA(e,function(e){return vYe(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=vYe(this.option,e),this.brushType=this.brushOption.brushType},t.type=`brush`,t.dependencies=[`geo`,`grid`,`xAxis`,`yAxis`,`parallel`,`series`],t.defaultOption={seriesIndex:`all`,brushType:`rect`,brushMode:`single`,transformable:!0,brushStyle:{borderWidth:1,color:$.color.backgroundTint,borderColor:$.color.borderTint},throttleType:`fixRate`,throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:$.color.disabled},t}(tW);function vYe(e,t){return BA({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new jH(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var yYe=[`rect`,`polygon`,`lineX`,`lineY`,`keep`,`clear`],bYe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n){var r,i,a;t.eachComponent({mainType:`brush`},function(e){r=e.brushType,i=e.brushOption.brushMode||`single`,a||=!!e.areas.length}),this._brushType=r,this._brushMode=i,Q(e.get(`type`,!0),function(t){e.setIconStatus(t,(t===`keep`?i===`multiple`:t===`clear`?a:t===r)?`emphasis`:`normal`)})},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`,!0),n={};return Q(e.get(`type`,!0),function(e){t[e]&&(n[e]=t[e])}),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;n===`clear`?(t.dispatchAction({type:`axisAreaSelect`,intervals:[]}),t.dispatchAction({type:`brush`,command:`clear`,areas:[]})):t.dispatchAction({type:`takeGlobalCursor`,key:`brush`,brushOption:{brushType:n===`keep`?r:r===n?!1:n,brushMode:n===`keep`?i===`multiple`?`single`:`multiple`:i}})},t.getDefaultOption=function(e){return{show:!0,type:yYe.slice(),icon:{rect:`M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13`,polygon:`M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2`,lineX:`M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4`,lineY:`M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4`,keep:`M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z`,clear:`M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2`},title:e.getLocaleModel().get([`toolbox`,`brush`,`title`])}},t}(q8);function xYe(e){e.registerComponentView(gYe),e.registerComponentModel(_Ye),e.registerPreprocessor(ZJe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,cYe),e.registerAction({type:`brush`,event:`brush`,update:`updateVisual`},function(e,t){t.eachComponent({mainType:`brush`,query:e},function(t){t.setAreas(e.areas)})}),e.registerAction({type:`brushSelect`,event:`brushSelected`,update:`none`},jj),e.registerAction({type:`brushEnd`,event:`brushEnd`,update:`none`},jj),J8(`brush`,bYe)}var SYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:$.size.m,backgroundColor:$.color.transparent,borderColor:$.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:$.color.primary},subtextStyle:{fontSize:12,color:$.color.quaternary}},t}(tW),CYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=hj(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new ZR({style:gH(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new ZR({style:gH(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){AU(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){AU(p,`_`+e.get(`subtarget`))}),cz(c).eventData=cz(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=KU(g,YU(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new qR({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(aK);function wYe(e){e.registerComponentModel(SYe),e.registerComponentView(CYe)}var TYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode=`box`,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e??=this.option.currentIndex;var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,t=e.data||[],n=e.axisType,r=this._names=[],i;n===`category`?(i=[],Q(t,function(e,t){var n=GI(VI(e),``),a;oj(e)?(a=zA(e),a.value=t):a=t,i.push(a),r.push(n)})):i=t;var a={category:`ordinal`,time:`time`,value:`number`}[n]||`number`;(this._data=new hY([{name:`value`,type:a}],this)).initData(i,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get(`axisType`)===`category`)return this._names.slice()},t.type=`timeline`,t.defaultOption={z:4,show:!0,axisType:`time`,realtime:!0,left:`20%`,top:null,right:`20%`,bottom:0,width:null,height:40,padding:$.size.m,controlPosition:`left`,autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:$.color.secondary},data:[]},t}(tW),EYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline.slider`,t.defaultOption=NH(TYe.defaultOption,{backgroundColor:`rgba(0,0,0,0)`,borderColor:$.color.border,borderWidth:0,orient:`horizontal`,inverse:!1,tooltip:{trigger:`item`},symbol:`circle`,symbolSize:12,lineStyle:{show:!0,width:2,color:$.color.accent10},label:{position:`auto`,show:!0,interval:`auto`,rotate:0,color:$.color.tertiary},itemStyle:{color:$.color.accent20,borderWidth:0},checkpointStyle:{symbol:`circle`,symbolSize:15,color:$.color.accent50,borderColor:$.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`rgba(0, 0, 0, 0)`,animation:!0,animationDuration:300,animationEasing:`quinticInOut`},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:`left`,playIcon:`path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z`,stopIcon:`path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z`,nextIcon:`path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z`,prevIcon:`path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z`,prevBtnSize:18,nextBtnSize:18,color:$.color.accent50,borderColor:$.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:$.color.accent60},itemStyle:{color:$.color.accent60,borderColor:$.color.accent60},controlStyle:{color:$.color.accent70,borderColor:$.color.accent70}},progress:{lineStyle:{color:$.color.accent30},itemStyle:{color:$.color.accent40}},data:[]}),t}(TYe);KA(EYe,gG.prototype);var DYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline`,t}(aK),OYe=function(e){X(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.type=i||`value`,a}return t.prototype.getLabelModel=function(){return this.model.getModel(`label`)},t.prototype.isHorizontal=function(){return this.model.get(`orient`)===`horizontal`},t}(pZ),p5=Math.PI,kYe=YI(),AYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get(`show`,!0)){var r=this._layout(e,n),i=this._createGroup(`_mainGroup`),a=this._createGroup(`_labelGroup`),o=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){return VG(`nameValue`,{noName:!0,value:o.scale.getLabel({value:e})})},Q([`AxisLine`,`AxisTick`,`Control`,`CurrentPointer`],function(t){this[`_render`+t](r,i,o,e)},this),this._renderAxisLabel(r,a,o,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n=e.get([`label`,`position`]),r=e.get(`orient`),i=jYe(e,t),a=n==null||n===`auto`?r===`horizontal`?i.y+i.height/2=0||a===`+`?`left`:`right`},s={horizontal:a>=0||a===`+`?`top`:`bottom`,vertical:`middle`},c={horizontal:0,vertical:p5/2},l=r===`vertical`?i.height:i.width,u=e.getModel(`controlStyle`),d=u.get(`show`,!0),f=d?u.get(`itemSize`):0,p=d?u.get(`itemGap`):0,m=f+p,h=e.get([`label`,`rotate`])||0;h=h*p5/180;var g,_,v,y=u.get(`position`,!0),b=d&&u.get(`showPlayBtn`,!0),x=d&&u.get(`showPrevBtn`,!0),S=d&&u.get(`showNextBtn`,!0),C=0,w=l;y===`left`||y===`bottom`?(b&&(g=[0,0],C+=m),x&&(_=[C,0],C+=m),S&&(v=[w-f,0],w-=m)):(b&&(g=[w-f,0],w-=m),x&&(_=[0,0],C+=m),S&&(v=[w-f,0],w-=m));var T=[C,w];return e.get(`inverse`)&&T.reverse(),{viewRect:i,mainLength:l,orient:r,rotation:c[r],labelRotation:h,labelPosOpt:a,labelAlign:e.get([`label`,`align`])||o[r],labelBaseline:e.get([`label`,`verticalAlign`])||e.get([`label`,`baseline`])||s[r],playPosition:g,prevBtnPosition:_,nextBtnPosition:v,axisExtent:T,controlSize:f,controlGap:p}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if(e.orient===`vertical`){var a=yM(),o=i.x,s=i.y+i.height;CM(a,a,[-o,-s]),wM(a,a,-p5/2),CM(a,a,[o,s]),i=i.clone(),i.applyTransform(a)}var c=g(i),l=g(n.getBoundingRect()),u=g(r.getBoundingRect()),d=[n.x,n.y],f=[r.x,r.y];f[0]=d[0]=c[0][0];var p=e.labelPosOpt;if(p==null||rj(p)){var m=p===`+`?0:1;_(d,l,c,1,m),_(f,u,c,1,1-m)}else{var m=p>=0?0:1;_(d,l,c,1,m),f[1]=d[1]+p}n.setPosition(d),r.setPosition(f),n.rotation=r.rotation=e.rotation,h(n),h(r);function h(e){e.originX=c[0][0]-e.x,e.originY=c[1][0]-e.y}function g(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function _(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get(`axisType`)||t.get(`type`);r!==`category`&&r!==`time`&&(r=`value`);var i=oX(t,r,!1);i.getTicks=function(){return n.mapArray([`value`],function(e){return{value:e}})};var a=n.getDataExtent(`value`);i.setExtent(a[0],a[1]),UX(i,{fixMinMax:[!0,!0]});var o=new OYe(`value`,i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new BF;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get([`lineStyle`,`show`])){var a=new qB({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Z({lineCap:`round`},r.getModel(`lineStyle`).getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new qB({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:UA({lineCap:`round`,lineWidth:a.style.lineWidth},r.getModel([`progress`,`lineStyle`]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,a=r.getData(),o=n.scale.getTicks();this._tickSymbols=[],Q(o,function(e){var o=n.dataToCoord(e.value),s=a.getItemModel(e.value),c=s.getModel(`itemStyle`),l=s.getModel([`emphasis`,`itemStyle`]),u=s.getModel([`progress`,`itemStyle`]),d=NYe(s,c,t,{x:o,y:0,onclick:$A(i._changeTimeline,i,e.value)});d.ensureState(`emphasis`).style=l.getItemStyle(),d.ensureState(`progress`).style=u.getItemStyle(),iB(d);var f=cz(d);s.get(`tooltip`)?(f.dataIndex=e.value,f.dataModel=r):f.dataIndex=f.dataModel=null,i._tickSymbols.push(d)})},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this;if(n.getLabelModel().get(`show`)){var a=r.getData(),o=n.getViewLabels();this._tickLabels=[],Q(o,function(r){if(!r.tick.offInterval){var o=r.tick.value,s=a.getItemModel(o),c=s.getModel(`label`),l=s.getModel([`emphasis`,`label`]),u=s.getModel([`progress`,`label`]),d=new ZR({x:n.dataToCoord(o),y:0,rotation:e.labelRotation-e.rotation,onclick:$A(i._changeTimeline,i,o),silent:!1,style:gH(c,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState(`emphasis`).style=gH(l),d.ensureState(`progress`).style=gH(u),t.add(d),iB(d),kYe(d).dataIndex=o,i._tickLabels.push(d)}})}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,a=e.rotation,o=r.getModel(`controlStyle`).getItemStyle(),s=r.getModel([`emphasis`,`controlStyle`]).getItemStyle(),c=r.getPlayState(),l=r.get(`inverse`,!0);u(e.nextBtnPosition,`next`,$A(this._changeTimeline,this,l?`-`:`+`)),u(e.prevBtnPosition,`prev`,$A(this._changeTimeline,this,l?`+`:`-`)),u(e.playPosition,c?`stop`:`play`,$A(this._handlePlayClick,this,!c),!0);function u(e,n,c,l){if(e){var u=DF(hj(r.get([`controlStyle`,n+`BtnSize`]),i),i),d=[0,-u/2,u,u],f=MYe(r,n+`Icon`,d,{x:e[0],y:e[1],originX:i/2,originY:0,rotation:l?-a:0,rectHover:!0,style:o,onclick:c});f.ensureState(`emphasis`).style=s,t.add(f),iB(f)}}},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),a=r.getCurrentIndex(),o=i.getItemModel(a).getModel(`checkpointStyle`),s=this,c={onCreate:function(e){e.draggable=!0,e.drift=$A(s._handlePointerDrag,s),e.ondragend=$A(s._handlePointerDragend,s),PYe(e,s._progressLine,a,n,r,!0)},onUpdate:function(e){PYe(e,s._progressLine,a,n,r)}};this._currentPointer=NYe(o,o,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:`timelinePlayChange`,playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,i=dI(r.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(s[o]=+s[o].toFixed(f)),[s,d]}var x5={min:ej(b5,`min`),max:ej(b5,`max`),average:ej(b5,`average`),median:ej(b5,`median`)};function S5(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!VYe(t)&&!tj(t.coord)&&tj(i)){var a=HYe(t,n,r,e);if(t=zA(t),t.type&&x5[t.type]&&a.baseAxis&&a.valueAxis){var o=WA(i,a.baseAxis.dim),s=WA(i,a.valueAxis.dim),c=x5[t.type](n,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);t.coord=c[0],t.value=c[1]}else t.coord=[t.xAxis==null?t.radiusAxis:t.xAxis,t.yAxis==null?t.angleAxis:t.yAxis]}if(t.coord==null||!tj(i)){t.coord=[];var l=e.getBaseAxis();if(l&&t.type&&x5[t.type]){var u=r.getOtherAxis(l);u&&(t.value=w5(n,n.mapDimension(u.dim),t.type))}}else for(var d=t.coord,f=0;f<2;f++)x5[d[f]]&&(d[f]=w5(n,n.mapDimension(i[f]),d[f]));return t}}function HYe(e,t,n,r){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex==null?e.valueDim:t.getDimension(e.valueIndex),i.valueAxis=n.getAxis(UYe(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function UYe(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function C5(e,t){return e&&e.containData&&t.coord&&!y5(t)?e.containData(t.coord):!0}function WYe(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!y5(t)&&!y5(n)?e.containZone(t.coord,n.coord):!0}function GYe(e,t){return e?function(e,n,r,i){return bG(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return bG(e.value,t[i])}}function w5(e,t,n){if(n===`average`){var r=0,i=0;return e.each(t,function(e,t){isNaN(e)||(r+=e,i++)}),r/i}else if(n===`median`)return e.getMedian(t);else return e.getDataExtent(t)[+(n===`max`)]}var T5=YI(),E5=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=Ej()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each(function(e){T5(e).keep=!1}),t.eachSeries(function(e){var i=v5.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!T5(e).keep&&r.group.remove(e.group)}),KYe(t,i,this.type)},t.prototype.markKeep=function(e){T5(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Q(e,function(e){var r=v5.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl(function(e){e&&(t?Jz(e):Yz(e))})})},t.type=`marker`,t}(aK);function KYe(e,t,n){e.eachSeries(function(e){var r=v5.getMarkerModelFromSeries(e,n),i=t.get(e.id);if(r&&i&&i.group){var a=rH(r),o=a.z,s=a.zlevel;aH(i.group,o,s)}})}function qYe(e,t,n){var r=t.coordinateSystem,i=n.getWidth(),a=n.getHeight(),o=r&&r.getArea&&r.getArea();e.each(function(n){var s=e.getItemModel(n),c=s.get(`relativeTo`)===`coordinate`,l=c?o?o.width:0:i,u=c?o?o.height:0:a,d=c&&o?o.x:0,f=c&&o?o.y:0,p,m=sI(s.get(`x`),l)+d,h=sI(s.get(`y`),u)+f;if(!isNaN(m)&&!isNaN(h))p=[m,h];else if(t.getMarkerPosition)p=t.getMarkerPosition(e.getValues(e.dimensions,n));else if(r){var g=e.get(r.dimensions[0],n),_=e.get(r.dimensions[1],n);p=r.dataToPoint([g,_])}isNaN(m)||(p[0]=m),isNaN(h)||(p[1]=h),e.setItemLayout(n,p)})}var JYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=v5.getMarkerModelFromSeries(e,`markPoint`);t&&(qYe(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new v$),l=YYe(i,e,t);t.setData(l),qYe(t.getData(),e,r),l.each(function(e){var n=l.getItemModel(e),r=n.getShallow(`symbol`),i=n.getShallow(`symbolSize`),a=n.getShallow(`symbolRotate`),s=n.getShallow(`symbolOffset`),c=n.getShallow(`symbolKeepAspect`);if(nj(r)||nj(i)||nj(a)||nj(s)){var u=t.getRawValue(e),d=t.getDataParams(e);nj(r)&&(r=r(u,d)),nj(i)&&(i=i(u,d)),nj(a)&&(a=a(u,d)),nj(s)&&(s=s(u,d))}var f=n.getModel(`itemStyle`).getItemStyle(),p=n.get(`z2`),m=LK(o,`color`);f.fill||=m,l.setItemVisual(e,{z2:hj(p,0),symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:s,symbolKeepAspect:c,style:f})}),c.updateData(l),this.group.add(c.group),l.eachItemGraphicEl(function(e){e.traverse(function(e){cz(e).dataModel=t})}),this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markPoint`,t}(E5);function YYe(e,t,n){var r=e?JA(e&&e.dimensions,function(e){var n=t.getData();return Z(Z({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new hY(r,n),a=JA(n.get(`data`),ej(S5,t));e&&(a=XA(a,ej(C5,e)));var o=GYe(!!e,r);return i.initData(a,null,o),i}function XYe(e){e.registerComponentModel(BYe),e.registerComponentView(JYe),e.registerPreprocessor(function(e){h5(e.series,`markPoint`)&&(e.markPoint=e.markPoint||{})})}var ZYe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},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}(v5),D5=YI(),QYe=function(e,t,n,r){var i=e.getData(),a;if(tj(r))a=r;else{var o=r.type;if(o===`min`||o===`max`||o===`average`||o===`median`||r.xAxis!=null||r.yAxis!=null){var s=void 0,c=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis==null?`x`:`y`),c=mj(r.yAxis,r.xAxis);else{var l=HYe(r,i,t,e);s=l.valueAxis,c=w5(i,bY(i,l.valueDataDim),o)}var u=s.dim===`x`?0:1,d=1-u,f=zA(r),p={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,p.coord[d]=1/0;var m=n.get(`precision`);m>=0&&aj(c)&&(c=+c.toFixed(Math.min(m,20))),f.coord[u]=p.coord[u]=c,a=[f,p,{type:o,valueIndex:r.valueIndex,value:c}]}else a=[]}var h=[S5(e,a[0]),S5(e,a[1]),Z({},a[2])];return h[2].type=h[2].type||null,BA(h[2],h[0]),BA(h[2],h[1]),h};function O5(e){return!isNaN(e)&&!isFinite(e)}function $Ye(e,t,n,r){var i=1-e,a=r.dimensions[e];return O5(t[i])&&O5(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function eXe(e,t){if(e.type===`cartesian2d`){var n=t[0].coord,r=t[1].coord;if(n&&r&&($Ye(1,n,r,e)||$Ye(0,n,r,e)))return!0}return C5(e,t[0])&&C5(e,t[1])}function k5(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=sI(o.get(`x`),i.getWidth()),l=sI(o.get(`y`),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=a.dimensions,d=e.get(u[0],t),f=e.get(u[1],t);s=a.dataToPoint([d,f])}if(P$(a,`cartesian2d`)){var p=a.getAxis(`x`),m=a.getAxis(`y`),u=a.dimensions;O5(e.get(u[0],t))?s[0]=p.toGlobalCoord(p.getExtent()[+!n]):O5(e.get(u[1],t))&&(s[1]=m.toGlobalCoord(m.getExtent()[+!n]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}e.setItemLayout(t,s)}var tXe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=v5.getMarkerModelFromSeries(e,`markLine`);if(t){var r=t.getData(),i=D5(t).from,a=D5(t).to;i.each(function(t){k5(i,t,!0,e,n),k5(a,t,!1,e,n)}),r.each(function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new l3);this.group.add(c.group);var l=nXe(i,e,t),u=l.from,d=l.to,f=l.line;D5(t).from=u,D5(t).to=d,t.setData(f);var p=t.get(`symbol`),m=t.get(`symbolSize`),h=t.get(`symbolRotate`),g=t.get(`symbolOffset`);tj(p)||(p=[p,p]),tj(m)||(m=[m,m]),tj(h)||(h=[h,h]),tj(g)||(g=[g,g]),l.from.each(function(e){_(u,e,!0),_(d,e,!1)}),f.each(function(e){var t=f.getItemModel(e),n=t.getModel(`lineStyle`).getLineStyle();f.setItemLayout(e,[u.getItemLayout(e),d.getItemLayout(e)]);var r=t.get(`z2`);n.stroke??=u.getItemVisual(e,`style`).fill,f.setItemVisual(e,{z2:hj(r,0),fromSymbolKeepAspect:u.getItemVisual(e,`symbolKeepAspect`),fromSymbolOffset:u.getItemVisual(e,`symbolOffset`),fromSymbolRotate:u.getItemVisual(e,`symbolRotate`),fromSymbolSize:u.getItemVisual(e,`symbolSize`),fromSymbol:u.getItemVisual(e,`symbol`),toSymbolKeepAspect:d.getItemVisual(e,`symbolKeepAspect`),toSymbolOffset:d.getItemVisual(e,`symbolOffset`),toSymbolRotate:d.getItemVisual(e,`symbolRotate`),toSymbolSize:d.getItemVisual(e,`symbolSize`),toSymbol:d.getItemVisual(e,`symbol`),style:n})}),c.updateData(f),l.line.eachItemGraphicEl(function(e){cz(e).dataModel=t,e.traverse(function(e){cz(e).dataModel=t})});function _(t,n,i){var a=t.getItemModel(n);k5(t,n,i,e,r);var s=a.getModel(`itemStyle`).getItemStyle();s.fill??=LK(o,`color`),t.setItemVisual(n,{symbolKeepAspect:a.get(`symbolKeepAspect`),symbolOffset:hj(a.get(`symbolOffset`,!0),g[+!i]),symbolRotate:hj(a.get(`symbolRotate`,!0),h[+!i]),symbolSize:hj(a.get(`symbolSize`),m[+!i]),symbol:hj(a.get(`symbol`,!0),p[+!i]),style:s})}this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markLine`,t}(E5);function nXe(e,t,n){var r=e?JA(e&&e.dimensions,function(e){var n=t.getData();return Z(Z({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new hY(r,n),a=new hY(r,n),o=new hY([],n),s=JA(n.get(`data`),ej(QYe,t,e,n));e&&(s=XA(s,ej(eXe,e)));var c=GYe(!!e,r);return i.initData(JA(s,function(e){return e[0]}),null,c),a.initData(JA(s,function(e){return e[1]}),null,c),o.initData(JA(s,function(e){return e[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function rXe(e){e.registerComponentModel(ZYe),e.registerComponentView(tXe),e.registerPreprocessor(function(e){h5(e.series,`markLine`)&&(e.markLine=e.markLine||{})})}var iXe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markArea`,t.defaultOption={z:1,tooltip:{trigger:`item`},animation:!1,label:{show:!0,position:`top`},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:`top`}}},t}(v5),A5=YI(),aXe=function(e,t,n,r){var i=r[0],a=r[1];if(!(!i||!a)){var o=S5(e,i),s=S5(e,a),c=o.coord,l=s.coord;c[0]=mj(c[0],-1/0),c[1]=mj(c[1],-1/0),l[0]=mj(l[0],1/0),l[1]=mj(l[1],1/0);var u=VA([{},o,s]);return u.coord=[o.coord,s.coord],u.x0=o.x,u.y0=o.y,u.x1=s.x,u.y1=s.y,u}};function j5(e){return!isNaN(e)&&!isFinite(e)}function oXe(e,t,n,r){var i=1-e;return j5(t[i])&&j5(n[i])}function sXe(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},a={coord:r,x:t.x1,y:t.y1};return P$(e,`cartesian2d`)?n&&r&&(oXe(1,n,r,e)||oXe(0,n,r,e))?!0:WYe(e,i,a):C5(e,i)||C5(e,a)}function cXe(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=sI(o.get(n[0]),i.getWidth()),l=sI(o.get(n[1]),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition){var u=e.getValues([`x0`,`y0`],t),d=e.getValues([`x1`,`y1`],t),f=a.clampData(u),p=a.clampData(d),m=[];n[0]===`x0`?m[0]=f[0]>p[0]?d[0]:u[0]:m[0]=f[0]>p[0]?u[0]:d[0],n[1]===`y0`?m[1]=f[1]>p[1]?d[1]:u[1]:m[1]=f[1]>p[1]?u[1]:d[1],s=r.getMarkerPosition(m,n,!0)}else{var h=e.get(n[0],t),g=e.get(n[1],t),_=[h,g];a.clampData&&a.clampData(_,_),s=a.dataToPoint(_,!0)}if(P$(a,`cartesian2d`)){var v=a.getAxis(`x`),y=a.getAxis(`y`),h=e.get(n[0],t),g=e.get(n[1],t);j5(h)?s[0]=v.toGlobalCoord(v.getExtent()[n[0]===`x0`?0:1]):j5(g)&&(s[1]=y.toGlobalCoord(y.getExtent()[n[1]===`y0`?0:1]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}return s}var lXe=[[`x0`,`y0`],[`x1`,`y0`],[`x1`,`y1`],[`x0`,`y1`]],uXe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=v5.getMarkerModelFromSeries(e,`markArea`);if(t){var r=t.getData();r.each(function(t){var i=JA(lXe,function(i){return cXe(r,t,i,e,n)});r.setItemLayout(t,i),r.getItemGraphicEl(t).setShape(`points`,i)})}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,{group:new BF});this.group.add(c.group),this.markKeep(c);var l=dXe(i,e,t);t.setData(l),l.each(function(t){var n=JA(lXe,function(n){return cXe(l,t,n,e,r)}),a=i.getAxis(`x`).scale,s=i.getAxis(`y`).scale,c=a.getExtent(),u=s.getExtent(),d=[a.parse(l.get(`x0`,t)),a.parse(l.get(`x1`,t))],f=[s.parse(l.get(`y0`,t)),s.parse(l.get(`y1`,t))];dI(d),dI(f);var p=c[0]>d[1]||c[1]f[1]||u[1]=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:$.size.m,align:`auto`,backgroundColor:$.color.transparent,borderColor:$.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:$.color.disabled,inactiveBorderColor:$.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:$.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:$.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:$.color.tertiary,borderWidth:1,borderColor:$.color.border},emphasis:{selectorLabel:{show:!0,color:$.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(tW),N5=ej,P5=Q,F5=BF,mXe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new F5),this.group.add(this._selectorGroup=new F5),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=YU(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=KU(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=KU(UA({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Nqe(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=Ej(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),P5(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===` +`)){var p=new F5;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,N5(_Xe,f,null,r,d)).on(`mouseover`,N5(I5,m.name,null,r,d)).on(`mouseout`,N5(L5,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=cz(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=ZN(h.fill);_&&_[3]===0&&(_[3]=.2,h=Z(Z({},h),{fill:iP(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,N5(_Xe,null,f,r,d)).on(`mouseover`,N5(I5,null,f,r,d)).on(`mouseout`,N5(L5,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=cz(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};cz(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();P5(e,function(e){var r=e.type,i=new ZR({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),mH(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),iB(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=hXe(c,r,o,s,d,m,u),y=new F5,b=r.getModel(`textStyle`);if(nj(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(gXe({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;rj(w)&&w?T=w.replace(`{name}`,t??``):nj(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new ZR({style:gH(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new qR({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&XV({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),iB(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();UU(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){UU(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}else return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(aK);function hXe(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),P5(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:Dq(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function gXe(e){var t=e.icon||`roundRect`,n=ZK(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=$.color.neutral00,n.style.lineWidth=2),n}function _Xe(e,t,n,r){L5(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),I5(e,t,n,r)}function I5(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function L5(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function R5(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),vXe(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){Q(i,function(t,n){e[t?`select`:`unSelect`](n)}),vXe(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function vXe(e,t){var n=t||{};return Q(e.getData(),function(t){var r=t.get(`name`);if(!(r===` +`||r===``)){var i=e.isSelected(r);Aj(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function yXe(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,ej(R5,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,ej(R5,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,ej(R5,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,ej(R5,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,ej(R5,`unSelect`))}var bXe=vL(xXe);function xXe(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;nn[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=hj(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new qR({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&mV(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;Q([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,rj(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=z5[i],o=B5[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(mXe);function DXe(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function OXe(e){qJ(SXe),e.registerComponentModel(CXe),e.registerComponentView(EXe),DXe(e)}function kXe(e){qJ(SXe),qJ(OXe)}var AXe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=NH(W8.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(W8),V5=YI();function jXe(e,t,n){V5(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function MXe(e,t){for(var n=V5(e).coordSysRecordMap,r=n.keys(),i=0;ia[i+r]&&(r=n),o&&=t.get(`preventDefaultMouseMove`,!0),s=hj(t.get(`cursorGrab`,!0),s),c=hj(t.get(`cursorGrabbing`,!0),c)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:n,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint},cursorGrab:s,cursorGrabbing:c}}}function RXe(e){e.registerUpdateLifecycle(`coordsys:aftercreate`,function(e,t){var n=V5(t),r=n.coordSysRecordMap||=Ej();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){Q(vqe(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,PXe(t,n.model));(a.dataZoomInfoMap||=Ej()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var n=e.controller,i,a=e.dataZoomInfoMap;if(a){var o=a.keys()[0];o!=null&&(i=a.get(o))}if(!i){NXe(r,e);return}var s=LXe(a,e,t);n.enable(s.controlType,s.opt),hK(e,`dispatchAction`,i.model.get(`throttle`,!0),`fixRate`)})})}var zXe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),jXe(r,t,{pan:$A(H5.pan,this),zoom:$A(H5.zoom,this),scrollMove:$A(H5.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){MXe(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(G8),H5={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=U5[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(T3(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:BXe(function(e,t,n,r,i,a){var o=U5[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:BXe(function(e,t,n,r,i,a){return U5[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function BXe(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(T3(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var U5={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e||=[0,0],a.dim===`x`?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function VXe(e){K8(e),e.registerComponentModel(AXe),e.registerComponentView(zXe),RXe(e)}var HXe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=NH(W8.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:$.color.accent10,borderRadius:0,backgroundColor:$.color.transparent,dataBackground:{lineStyle:{color:$.color.accent30,width:.5},areaStyle:{color:$.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:$.color.accent40,width:.5},areaStyle:{color:$.color.accent20,opacity:.3}},fillerColor:`rgba(135,175,274,0.2)`,handleIcon:`path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z`,handleSize:`100%`,handleStyle:{color:$.color.neutral00,borderColor:$.color.accent20},moveHandleSize:7,moveHandleIcon:`path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z`,moveHandleStyle:{color:$.color.accent40,opacity:.5},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:$.color.tertiary},brushSelect:!0,brushStyle:{color:$.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:$.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(W8),W5=qR,UXe=1,G5=30,WXe=7,K5=`horizontal`,GXe=`vertical`,KXe=5,qXe=[`line`,`bar`,`candlestick`,`scatter`],JXe={easing:`cubicOut`,duration:100,delay:0},YXe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=$A(this._onBrush,this),this._onBrushEnd=$A(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),hK(this,`_dispatchZoomAction`,t.get(`throttle`),`fixRate`),this._orient=t.getOrient(),t.get(`show`)===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!==`dataZoom`||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){gK(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new BF;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?WXe:0,r=YU(e,t).refContainer,i=this._findCoordRect(),a=e.get(`defaultLocationEdgeGap`,!0)||0,o=this._orient===K5?{right:r.width-i.x-i.width,top:r.height-G5-a-n,width:i.width,height:G5}:{right:a,top:i.y,width:G5,height:i.height},s=$U(e.option);Q([`right`,`top`,`width`,`height`],function(e){s[e]===`ph`&&(s[e]=o[e])});var c=KU(s,r);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===GXe&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===K5&&!i?{scaleY:o?1:-1,scaleX:1}:n===K5&&i?{scaleY:o?1:-1,scaleX:-1}:n===GXe&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]),c=isNaN(s.x)?0:s.x,l=isNaN(s.y)?0:s.y;e.x=t.x-c,e.y=t.y-l,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new W5({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new W5({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:$A(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(e.thisDim),u=i.getDataExtent(o),d=(u[1]-u[0])*.3;u=[u[0]-d,u[1]+d];var f=[0,t[1]],p=[0,t[0]],m=[[t[0],0],[0,0]],h=[],g=p[1]/Math.max(1,i.count()-1),_=t[0]/(l[1]-l[0]),v=e.thisAxis.type===`time`,y=-g,b=Math.round(i.count()/t[0]),x;i.each([e.thisDim,o],function(e,t,n){if(b>0&&n%b){v||(y+=g);return}y=v?(+e-l[0])*_:y+g;var r=t==null||isNaN(t)||t===``,i=r?0:oI(t,u,f,!0);r&&!x&&n?(m.push([m[m.length-1][0],0]),h.push([h[h.length-1][0],0])):!r&&x&&(m.push([y,0]),h.push([y,0])),r||(m.push([y,i]),h.push([y,i])),x=r}),s=this._shadowPolygonPts=m,c=this._shadowPolylinePts=h}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var S=this.dataZoomModel;function C(e){var t=S.getModel(e?`selectedDataBackground`:`dataBackground`),n=new BF,r=new GB({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new KB({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var w=0;w<3;w++){var T=C(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){Q(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&WA(qXe,e.get(`type`))<0)){var o=r.getComponent(V8(i),a).axis,s=ZXe(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:e.getData().mapDimension(i),otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new W5({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new W5({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:UXe,fill:$.color.transparent}})),Q([0,1],function(t){var a=o.get(`handleIcon`);!XK[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=ZK(a,-1,0,2,2,null,!0);s.attr({cursor:QXe(this._orient),draggable:!0,drift:$A(this._onDragMove,this,t),ondragend:$A(this._onDragEnd,this),onmouseover:$A(this._onOverDataInfoTriggerArea,this,!0),onmouseout:$A(this._onOverDataInfoTriggerArea,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=sI(l,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),iB(s);var u=o.get(`handleColor`);u!=null&&(s.style.fill=u),i.add(n[t]=s);var d=o.getModel(`textStyle`),f=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new ZR({silent:!0,invisible:!f,style:gH(d,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(l){var f=sI(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new qR({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=ZK(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,$.color.neutral00,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new qR({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:`grab`,drift:$A(this._onActualMoveZoneDrift,this),ondragstart:$A(this._onActualMoveZoneDragStart,this),ondragend:$A(this._onActualMoveZoneDragEnd,this),onmouseover:$A(this._onOverDataInfoTriggerArea,this,!0),onmouseout:$A(this._onOverDataInfoTriggerArea,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[oI(e[0],[0,100],t,!0),oI(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];T3(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:oI(a.minSpan,o,i,!0),a.maxSpan==null?null:oI(a.maxSpan,o,i,!0));var s=this._range,c=this._range=dI([oI(r[0],i,o,!0),oI(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=dI(n.slice()),i=this._size;Q([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;ct[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new OM(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100],a=this._handleEnds=[n.x,n.x+n.width],o=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();T3(0,a,r,0,o.minSpan==null?null:oI(o.minSpan,i,r,!0),o.maxSpan==null?null:oI(o.maxSpan,i,r,!0)),this._range=dI([oI(a[0],r,i,!0),oI(a[1],r,i,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(hM(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new W5({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?JXe:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=vqe(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(G8);function XXe(e,t,n,r){var i=e.get(`labelFormatter`),a=e.get(`labelPrecision`);(a==null||a===`auto`)&&(a=n.valuePrecision);var o=n.value[t],s=o==null||isNaN(o)?``:LY(r)||FY(r)?r.getLabel({value:Math.round(o)}):isFinite(a)?uI(o,a,!0):o+``;return nj(i)?i(o,s):rj(i)?i.replace(`{value}`,s):s}function ZXe(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function QXe(e){return e===`vertical`?`ns-resize`:`ew-resize`}function $Xe(e){e.registerComponentModel(HXe),e.registerComponentView(YXe),K8(e)}function eZe(e){qJ(VXe),qJ($Xe)}var tZe={get:function(e,t,n){var r=zA((nZe[e]||{})[t]);return n&&tj(r)?r[r.length-1]:r}},nZe={color:{active:[`#006edd`,`#e0ffff`],inactive:[$.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},rZe=j4.mapVisual,iZe=j4.eachVisual,aZe=tj,q5=Q,oZe=dI,sZe=oI,J5=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&eYe(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=$A(e,this),this.controllerVisuals=l5(this.option.controller,t,e),this.targetVisuals=l5(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return q5(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=$I(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return JA(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){Q(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],tj(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(rj(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(nj(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=oZe([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=ZA(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};BA(r,n),BA(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){aZe(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},q5(r,function(e,t){if(j4.isValidType(t)){var n=tZe.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;q5(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??=t&&zA(t)||(a?i:[i]),c.symbolSize??=n&&zA(n)||(a?s[0]:[s[0],s[0]]),c.symbol=rZe(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;iZe(l,function(e){e>u&&(u=e)}),c.symbolSize=rZe(l,function(e){return sZe(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:$.color.transparent,borderColor:$.color.borderTint,contentColor:$.color.theme[0],inactiveColor:$.color.disabled,borderWidth:0,padding:$.size.m,textGap:10,precision:0,textStyle:{color:$.color.secondary}},t}(tW),cZe=[20,140],lZe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=cZe[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=cZe[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):tj(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),Q(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=dI((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=uZe(this,`outOfRange`,this.getExtent()),n=uZe(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;oe[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new BF(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);mZe([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=X5(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=LV(n.handleLabelPoints[l],IV(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=X5(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=LV(c.indicatorLabelPoint,IV(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;Ci[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||xZe(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=cwe(u,d);this._dispatchHighDown(`downplay`,Y5(f[0],n)),this._dispatchHighDown(`highlight`,Y5(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(VK(e.target,function(e){var n=cz(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function EZe(e,t,n,r){for(var i=t.targetVisuals[r],a=j4.prepareVisualTypes(i),o={color:LK(e.getData(),`color`)},s=0,c=a.length;s0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(CZe,wZe),Q(TZe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(OZe))}function jZe(e){e.registerComponentModel(lZe),e.registerComponentView(vZe),AZe(e)}var MZe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],NZe[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=zA(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=JA(this._pieceList,function(e){return e=zA(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=j4.listVisualTypes(),i=this.isCategory();Q(t.pieces,function(e){Q(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),Q(n,function(e,n){var r=!1;Q(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&Q(this.stateList,function(e){(t[e]||(t[e]={}))[n]=tZe.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,Q(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;Q(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=zA(e)},t.prototype.getValueState=function(e){var t=j4.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){j4.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return Q(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=NH(J5.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(J5),NZe={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function PZe(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var FZe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=mj(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),Q(o.viewPieceList,function(o){var s=o.piece,u=new BF;u.onclick=$A(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new ZR({style:gH(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:hj(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),UU(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:Y5(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return pZe(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new BF,o=this.visualMapModel.textStyleModel;a.add(new ZR({style:gH(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=JA(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=ZK(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=zA(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,Q(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(dZe);function IZe(e){e.registerComponentModel(MZe),e.registerComponentView(FZe),AZe(e)}function LZe(e){qJ(jZe),qJ(IZe)}var RZe=function(){function e(e){this._thumbnailModel=e}return e.prototype.reset=function(e){this._renderVersion=e.getECUpdateCycleVersion()},e.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:iH(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},e.prototype.updateWindow=function(e,t){var n=t.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},e}(),zZe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.optionUpdated=function(e,t){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new RZe(this);this._target=null,this.ecModel.eachSeries(function(e){rze(e,null)}),this.shouldShow()&&rze(this.getTarget().baseMapProvider,e)},t.prototype.shouldShow=function(){return this.getShallow(`show`,!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents(`series`,{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!==`graph`&&(e=null):e=this.ecModel.queryComponents({mainType:`series`,subType:`graph`})[0],this._target={baseMapProvider:e},this._target},t.type=`thumbnail`,t.layoutMode=`box`,t.dependencies=[`series`,`geo`],t.defaultOption={show:!0,right:1,bottom:1,height:`25%`,width:`25%`,itemStyle:{borderColor:$.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:$.color.neutral30,borderColor:$.color.neutral40,opacity:.3},z:10},t}(tW),BZe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this._api=n,this._model=e,this._coordSys||=new N2,!this._isEnabled()){this._clear();return}this._renderVersion=n.getECUpdateCycleVersion();var r=this.group;r.removeAll();var i=e.getModel(`itemStyle`),a=i.getItemStyle();a.fill??=t.get(`backgroundColor`)||$.color.neutral00;var o=YU(e,n).refContainer,s=KU(WU(e,!0),o),c=a.lineWidth||0,l=this._contentRect=qV(s.clone(),c/2,!0,!0),u=new BF;r.add(u),u.setClipPath(new qR({shape:l.plain()}));var d=this._targetGroup=new BF;u.add(d);var f=s.plain();f.r=i.getShallow(`borderRadius`,!0),r.add(this._bgRect=new qR({style:a,shape:f,silent:!1,cursor:`grab`}));var p=e.getModel(`windowStyle`),m=p.getShallow(`borderRadius`,!0);u.add(this._windowRect=new qR({shape:{x:0,y:0,width:0,height:0,r:m},style:p.getItemStyle(),silent:!1,cursor:`grab`})),this._dealRenderContent(),this._dealUpdateWindow(),HZe(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),HZe(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var t=this._targetGroup,n=this._coordSys,r=this._contentRect;if(t.removeAll(),e){var i=e.group,a=i.getBoundingRect();t.add(i),this._bgRect.z2=e.z2Range.min-10,V2(n,a.x,a.y,a.width,a.height);var o=KU({left:`center`,top:`center`,aspect:a.width/a.height},r);H2(n,o.x,o.y,o.width,o.height),L2(i,n,0),i.dirty(),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var t=this._bridgeRendered;t&&t.renderVersion===e.renderVersion&&(t.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var t=EM([],e.targetTrans),n=SM([],F2(null,this._coordSys),t);this._transThisToTarget=EM([],n);var r=e.viewportRect;r=r?r.clone():new VM(0,0,this._api.getWidth(),this._api.getHeight()),r.applyTransform(n);var i=this._windowRect,a=i.shape.r;i.setShape(UA({r:a},r))}},t.prototype._resetRoamController=function(e){var t=this,n=this._api,r=this._roamController;if(r||=this._roamController=new f2(n.getZr()),!e||!this._isEnabled()){r.disable();return}r.enable(e,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(e,n,r){return t._contentRect.contain(n,r)}}}),r.off(`pan`).off(`zoom`).on(`pan`,$A(this._onPan,this)).on(`zoom`,$A(this._onZoom,this))},t.prototype._onPan=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=Zj([],[e.oldX,e.oldY],t),r=Zj([],[e.oldX-e.dx,e.oldY-e.dy],t);this._api.dispatchAction(VZe(this._model.getTarget().baseMapProvider,{dx:r[0]-n[0],dy:r[1]-n[1]}))}},t.prototype._onZoom=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=Zj([],[e.originX,e.originY],t);this._api.dispatchAction(VZe(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:n[0],originY:n[1]}))}},t.prototype._isEnabled=function(){var e=this._model;return!(!e||!e.shouldShow()||!e.getTarget().baseMapProvider)},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type=`thumbnail`,t}(aK);function VZe(e,t){var n={type:e.mainType===`series`?e.subType+`Roam`:e.mainType+`Roam`};return n[e.mainType+`Id`]=e.id,Z(n,t),n}function HZe(e,t){var n=rH(e);aH(t.group,n.z,n.zlevel)}function UZe(e){e.registerComponentModel(zZe),e.registerComponentView(BZe)}var WZe={label:{enabled:!0},decal:{show:!1}},GZe=YI(),KZe=YI(),qZe=vL(JZe);function JZe(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=KZe(e).scope||(KZe(e).scope={}),i=zA(WZe);BA(i.label,e.getLocaleModel().get(`aria`),!1),BA(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=Ej();e.eachSeries(function(e){e.isColorBySeries()||(GZe(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(nj(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=yW(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=GZe(t).scope;n.each(function(e){var t=n.getRawIndex(e);s[t]=e});var l=o.count();o.each(function(e){var r=s[e],i=o.getName(e)||e+``,a=yW(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?Z(Z({},t),e):t;return n.dirty=!0,n}})}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=UA(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var o=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(o,d),p;if(!(o<1)){var m=c();p=m?s(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=o>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=s(g,{seriesCount:o}),e.eachSeries(function(e,t){if(t1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:l(e.subType)});var i=e.getData();if(i.count()>u){var c=a.get([`data`,`partialData`]);n+=s(c,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_":`gt`,">=":`gte`,"=":`eq`,"!=":`ne`,"<>":`ne`},QZe=function(){function e(e){(this._condVal=rj(e)?new RegExp(e):fj(e)?e:null)??PI(``)}return e.prototype.evaluate=function(e){var t=typeof e;return rj(t)?this._condVal.test(e):aj(t)?this._condVal.test(e+``):!1},e}(),$Ze=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),eQe=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(i),i=[e,t]}function u(e,t,n,r){t7(e,n)&&t7(t,r)||i.push(e,t,n,r,n,r)}function d(e,t,n,r,a,o){var s=Math.abs(t-e),c=Math.tan(s/4)*4/3,l=tw:D2&&r.push(i),r}function r7(e,t,n,r,i,a,o,s,c,l){if(t7(e,n)&&t7(t,r)&&t7(i,o)&&t7(a,s)){c.push(o,s);return}var u=2/l,d=u*u,f=o-e,p=s-t,m=Math.sqrt(f*f+p*p);f/=m,p/=m;var h=n-e,g=r-t,_=i-o,v=a-s,y=h*h+g*g,b=_*_+v*v;if(y=0&&w=0){c.push(o,s);return}var T=[],E=[];kN(e,n,i,o,.5,T),kN(t,r,a,s,.5,E),r7(T[0],E[0],T[1],E[1],T[2],E[2],T[3],E[3],c,l),r7(T[4],E[4],T[5],E[5],T[6],E[6],T[7],E[7],c,l)}function gQe(e,t){var n=n7(e),r=[];t||=1;for(var i=0;i0)for(var l=0;lMath.abs(l),d=_Qe([c,l],+!u,t),f=(u?s:l)/d.length,p=0;pi,o=_Qe([r,i],+!a,t),s=a?`width`:`height`,c=a?`height`:`width`,l=a?`x`:`y`,u=a?`y`:`x`,d=e[s]/o.length,f=0;f1?null:new OM(p*c+e,p*l+t)}function SQe(e,t,n){var r=new OM;OM.sub(r,n,t),r.normalize();var i=new OM;return OM.sub(i,e,t),i.dot(r)}function i7(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function CQe(e,t,n){for(var r=e.length,i=[],a=0;ao?(l.x=u.x=s+a/2,l.y=c,u.y=c+o):(l.y=u.y=c+o/2,l.x=s,u.x=s+a),CQe(t,l,u)}function a7(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),a=e(t);a7(e,a[0],i,r),a7(e,a[1],n-i,r)}return r}function TQe(e,t){for(var n=[],r=0;r0)for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var C=Math.sin(S),w=Math.cos(S),T=0,y=0;y0;l/=2){var u=0,d=0;(e&l)>0&&(u=1),(t&l)>0&&(d=1),s+=l*l*(3*u^d),d===0&&(u===1&&(e=l-1-e,t=l-1-t),c=e,e=t,t=c)}return s}function u7(e){var t=1/0,n=1/0,r=-1/0,i=-1/0;return JA(JA(e,function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),c=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(c,n),r=Math.max(s,r),i=Math.max(c,i),[s,c]}),function(a,o){return{cp:a,z:zQe(a[0],a[1],t,n,r,i),path:e[o]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function BQe(e){return OQe(e.path,e.count)}function d7(){return{fromIndividuals:[],toIndividuals:[],count:0}}function VQe(e,t,n){var r=[];function i(e){for(var t=0;t=0;i--)if(!n[i].many.length){var c=n[s].many;if(c.length<=1)if(s)s=0;else return n;var a=c.length,l=Math.ceil(a/2);n[i].many=c.slice(l,a),n[s].many=c.slice(0,l),s++}return n}var GQe={clone:function(e){for(var t=[],n=1-(1-e.path.style.opacity)**(1/e.count),r=0;r0))return;var s=r.getModel(`universalTransition`).get(`delay`),c=Z({setToFinal:!0},o),l,u;UQe(e)&&(l=e,u=t),UQe(t)&&(l=t,u=e);function d(e,t,r,i,o){var l=e.many,u=e.one;if(l.length===1&&!o){var f=t?l[0]:u,p=t?u:l[0];if(o7(f))d({many:[f],one:p},!0,r,i,!0);else{var m=s?UA({delay:s(r,i)},c):c;l7(f,p,m),a(f,p,f,p,m)}}else for(var h=UA({dividePath:GQe[n],individualDelay:s&&function(e,t,n,a){return s(e+r,i)}},c),g=t?VQe(l,u,h):HQe(u,l,h),_=g.fromIndividuals,v=g.toIndividuals,y=_.length,b=0;bt.length,p=l?WQe(u,l):WQe(f?t:e,[f?e:t]),m=0,h=0;hKQe))for(var i=n.getIndices(),a=0;a0&&r.group.traverse(function(e){e instanceof BR&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)})})}function i$e(e){return e.getModel(`universalTransition`).get(`seriesKey`)||e.id}function a$e(e){return tj(e)?e.sort().join(`,`):e}function _7(e){if(e.hostModel)return e.hostModel.getModel(`universalTransition`).get(`divideShape`)}function o$e(e,t){var n=Ej(),r=Ej(),i=Ej();return Q(e.oldSeries,function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=i$e(t),c=a$e(s);r.set(c,{dataGroupId:a,data:o}),tj(s)&&Q(s,function(e){i.set(e,{key:c,dataGroupId:a,data:o})})}),Q(t.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get(`dataGroupId`),a=e.getData(),o=i$e(e),s=a$e(o),c=r.get(s);if(c)n.set(s,{oldSeries:[{dataGroupId:c.dataGroupId,divide:_7(c.data),data:c.data}],newSeries:[{dataGroupId:t,divide:_7(a),data:a}]});else if(tj(o)){var l=[];Q(o,function(e){var t=r.get(e);t.data&&l.push({dataGroupId:t.dataGroupId,divide:_7(t.data),data:t.data})}),l.length&&n.set(s,{oldSeries:l,newSeries:[{dataGroupId:t,data:a,divide:_7(a)}]})}else{var u=i.get(o);if(u){var d=n.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:_7(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({dataGroupId:t,data:a,divide:_7(a)})}}}}),n}function s$e(e,t){for(var n=0;n=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:_7(t.oldData[n]),groupIdDim:e.dimension})}),Q(RI(e.to),function(e){var r=s$e(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:_7(i),groupIdDim:e.dimension})}}),i.length>0&&a.length>0&&r$e(i,a,r)}function l$e(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){Q(RI(n.seriesTransition),function(e){Q(RI(e.to),function(e){for(var t=n.updatedSeries,r=0;ro.vmin?n+=o.vmin-r+(e-o.vmin)/(o.vmax-o.vmin)*o.gapReal:n+=e-r,r=o.vmax,i=!1;break}n+=o.vmin-r+o.gapReal,r=o.vmax}return i&&(n+=e-r),n},transformOut:function(e,t){if(t&&t.depth===2)return e;for(var n=f$e,r=p$e,i=!0,a=0,o=0;oc?s.vmin+(e-c)/(l-c)*(s.vmax-s.vmin):r+e-n,r=s.vmax,i=!1;break}n=l,r=s.vmax}return i&&(a=r+e-n),a}},e}();function d$e(e,t){return new u$e(e,t)}var f$e=0,p$e=0;function m$e(e,t){var n=0,r={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},i=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},a={S:{tpAbs:i(),tpPrct:i()},E:{tpAbs:i(),tpPrct:i()}};Q(e.breaks,function(e){var i=e.gapParsed;i.type===`tpPrct`&&(n+=i.val);var o=v7(e,t);if(o){var s=o.vmin!==e.vmin,c=o.vmax!==e.vmax,l=o.vmax-o.vmin;if(!(s&&c))if(s||c){var u=s?`S`:`E`;a[u][i.type].has=!0,a[u][i.type].span=l,a[u][i.type].inExtFrac=l/(e.vmax-e.vmin),a[u][i.type].val=i.val}else r[i.type].span+=l,r[i.type].val+=i.val}});var o=n*(0+(t[1]-t[0])+(r.tpAbs.val-r.tpAbs.span)+(a.S.tpAbs.has?(a.S.tpAbs.val-a.S.tpAbs.span)*a.S.tpAbs.inExtFrac:0)+(a.E.tpAbs.has?(a.E.tpAbs.val-a.E.tpAbs.span)*a.E.tpAbs.inExtFrac:0)-r.tpPrct.span-(a.S.tpPrct.has?a.S.tpPrct.span*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.span*a.E.tpPrct.inExtFrac:0))/(1-r.tpPrct.val-(a.S.tpPrct.has?a.S.tpPrct.val*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.val*a.E.tpPrct.inExtFrac:0));Q(e.breaks,function(e){var t=e.gapParsed;t.type===`tpPrct`&&(e.gapReal=n===0?0:ZF(o,0)*t.val/n),t.type===`tpAbs`&&(e.gapReal=t.val),e.gapReal??=0})}function h$e(e,t,n,r,i,a){e!==`no`&&Q(n,function(n){var o=v7(n,a);if(o)for(var s=t.length-1;s>=0;s--){var c=t[s],l=r(c),u=i*3/4;l>o.vmin-u&&lt[0]&&n=0&&e<.99999}Q(e,function(e){if(!(!e||e.start==null||e.end==null)&&!e.isExpanded){var a={breakOption:zA(e),vmin:t.parse(e.start),vmax:t.parse(e.end),gapParsed:{type:`tpAbs`,val:0},gapReal:null};if(e.gap!=null){var o=!1;if(rj(e.gap)){var s=bj(e.gap);if(s.match(/%$/)){var c=parseFloat(s)/100;i(c,`Percent gap`)||(c=0),a.gapParsed.type=`tpPrct`,a.gapParsed.val=c,o=!0}}if(!o){var l=t.parse(e.gap);(!isFinite(l)||l<0)&&(l=0),a.gapParsed.type=`tpAbs`,a.gapParsed.val=l}}if(a.vmin===a.vmax&&(a.gapParsed.type=`tpAbs`,a.gapParsed.val=0),n&&n.noNegative&&Q([`vmin`,`vmax`],function(e){a[e]<0&&(a[e]=0)}),a.vmin>a.vmax){var u=a.vmax;a.vmax=a.vmin,a.vmin=u}r.push(a)}}),r.sort(function(e,t){return e.vmin-t.vmin});var a=-1/0;return Q(r,function(e,t){a>e.vmin&&(r[t]=null),a=e.vmax}),{breaks:XA(r,function(e){return!!e})}}function b7(e,t){return x7(t)===x7(e)}function x7(e){return e.start+`_\0_`+e.end}function _$e(e,t,n){var r=[];Q(e,function(e,n){var i=t(e);i&&i.type===`vmin`&&r.push([n])}),Q(e,function(n,i){var a=t(n);if(a&&a.type===`vmax`){var o=ZA(r,function(n){return b7(t(e[n[0]]).parsedBreak.breakOption,a.parsedBreak.breakOption)});o&&o.push(i)}});var i=[];return Q(r,function(t){t.length===2&&i.push(n?t:[e[t[0]],e[t[1]]])}),i}function v$e(e,t,n,r){if(t.break){var i=t.break.parsedBreak,a=ZA(n,function(e){return b7(e.breakOption,t.break.parsedBreak.breakOption)}),o={lookup:r,depth:2},s={vmin:e.transformOut(i.vmin,o),vmax:e.transformOut(i.vmax,o),breakOption:i.breakOption,gapParsed:zA(a.gapParsed),gapReal:i.gapReal};return{tickVal:s[t.break.type],vBreak:{type:t.break.type,parsedBreak:s}}}}function y$e(e,t,n,r,i){i.original=y7(e,t,n);var a=i.transformed=y7(e,t,n),o=i.lookup;a.breaks=JA(a.breaks,function(e,n){var i={depth:2},a=t.transformIn(e.vmin,i),s=t.transformIn(e.vmax,i),c={type:e.gapParsed.type,val:e.gapParsed.type===`tpAbs`?t.transformIn(e.vmin+e.gapParsed.val,i)-a:e.gapParsed.val};return o.from[r+n]=a,o.to[r+n]=e.vmin,o.from[r+n+1]=s,o.to[r+n+1]=e.vmax,{vmin:a,vmax:s,gapParsed:c,gapReal:e.gapReal,breakOption:e.breakOption}})}var b$e={vmin:`start`,vmax:`end`};function x$e(e,t){return t&&(e||={},e.break={type:b$e[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),e}function S$e(){bEe({createBreakScaleMapper:d$e,pruneTicksByBreak:h$e,addBreaksToTicks:g$e,parseAxisBreakOption:y7,identifyAxisBreak:b7,serializeAxisBreakIdentifier:x7,retrieveAxisBreakPairs:_$e,getTicksBreakOutwardTransform:v$e,parseAxisBreakOptionInwardTransform:y$e,makeAxisLabelFormatterParamBreak:x$e})}var C$e=YI();function w$e(e,t){var n=ZA(e,function(e){return UH().identifyAxisBreak(e.parsedBreak.breakOption,t.breakOption)});return n||e.push(n={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),n}function T$e(e){Q(e,function(e){return e.shouldRemove=!0})}function E$e(e){for(var t=e.length-1;t>=0;t--)e[t].shouldRemove&&e.splice(t,1)}function D$e(e,t,n,r,i){var a=n.axis;if(a.scale.isBlank()||!UH())return;var o=UH().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:`only_break`}),function(e){return e.break},!1);if(!o.length)return;var s=n.getModel(`breakArea`),c=s.get(`zigzagAmplitude`),l=s.get(`zigzagMinSpan`),u=s.get(`zigzagMaxSpan`);l=Math.max(2,l||0),u=Math.max(l,u||0);var d=s.get(`expandOnClick`),f=s.get(`zigzagZ`),p=s.getModel(`itemStyle`).getItemStyle(),m=p.stroke,h=p.lineWidth,g=p.lineDash,_=p.fill,v=new BF({ignoreModelZ:!0}),y=a.isHorizontal(),b=C$e(t).visualList||(C$e(t).visualList=[]);T$e(b);for(var x=function(e){var t=o[e][0].break.parsedBreak,r=[];r[0]=a.toGlobalCoord(a.dataToCoord(t.vmin,!0)),r[1]=a.toGlobalCoord(a.dataToCoord(t.vmax,!0)),r[1]=y;D&&(w=y);var O=[],k=[];O[d]=n,k[d]=i,!E&&!D&&(O[d]+=C?-c:c,k[d]-=C?c:-c),O[v]=w,k[v]=w,x.push(O),S.push(k);var A=void 0;if(Tn[1]&&n.reverse(),{coordPair:n,brkId:UH().serializeAxisBreakIdentifier(t.breakOption)}});s.sort(function(e,t){return e.coordPair[0]-t.coordPair[0]});for(var c=o[0],l=null,u=0;u=0?c[0].width:c[1].width)+u.x)/2-l.x,f=Math.min(d,d-u.x),p=Math.max(d,d-u.x);s=(d-(p<0?p:f>0?f:0))/u.x}var m=new OM,h=new OM;OM.scale(m,r,-s),OM.scale(h,r,1-s),BZ(n[0],m),BZ(n[1],h)}function A$e(e,t){var n={breaks:[]};return Q(t.breaks,function(r){if(r){var i=ZA(e.get(`breaks`,!0),function(e){return UH().identifyAxisBreak(e,r)});if(i){var a=t.type,o={isExpanded:!!i.isExpanded};i.isExpanded=a===`expandAxisBreak`?!0:a===`collapseAxisBreak`?!1:a===`toggleAxisBreak`?!i.isExpanded:i.isExpanded,n.breaks.push({start:i.start,end:i.end,isExpanded:!!i.isExpanded,old:o})}}}),n}function j$e(){LMe({adjustBreakLabelPair:k$e,buildAxisBreakLine:O$e,rectCoordBuildBreakAxis:D$e,updateModelAxisBreak:A$e})}function M$e(e){UMe(e),S$e(),j$e()}function N$e(){rPe(P$e)}function P$e(e,t){Q(e,function(e){if(!e.model.get([`axisLabel`,`inside`])){var n=F$e(e);if(n){var r=e.isHorizontal()?`height`:`width`,i=e.model.get([`axisLabel`,`margin`]);t[r]-=n[r]+i,e.position===`top`?t.y+=n.height+i:e.position===`left`&&(t.x+=n.width+i)}}})}function F$e(e){var t=e.model,n=e.scale;if(!t.get([`axisLabel`,`show`])||n.isBlank())return;var r,i,a=n.getExtent();n instanceof WY?i=n.count():(r=n.getTicks(),i=r.length);var o=e.getLabelModel(),s=sX(e),c,l=1;i>40&&(l=Math.ceil(i/40));for(var u=0;upZ,ChartView:()=>cK,ComponentModel:()=>tW,ComponentView:()=>aK,List:()=>hY,Model:()=>jH,PRIORITY:()=>Lq,SeriesModel:()=>tK,color:()=>QSe,connect:()=>pke,dataTool:()=>xke,dependencies:()=>YOe,disConnect:()=>mke,disconnect:()=>OJ,dispose:()=>hke,env:()=>TA,extendChartView:()=>dje,extendComponentModel:()=>cje,extendComponentView:()=>lje,extendSeriesModel:()=>uje,format:()=>WAe,getCoordinateSystemDimensions:()=>_ke,getInstanceByDom:()=>kJ,getInstanceById:()=>gke,getMap:()=>bke,graphic:()=>UAe,helper:()=>AAe,init:()=>fke,innerDrawElementOnCanvas:()=>xq,matrix:()=>MSe,number:()=>VAe,parseGeoJSON:()=>eZ,parseGeoJson:()=>eZ,registerAction:()=>IJ,registerCoordinateSystem:()=>LJ,registerCustomSeries:()=>vke,registerLayout:()=>RJ,registerLoading:()=>HJ,registerLocale:()=>BH,registerMap:()=>UJ,registerPostInit:()=>NJ,registerPostUpdate:()=>PJ,registerPreprocessor:()=>jJ,registerProcessor:()=>MJ,registerTheme:()=>AJ,registerTransform:()=>WJ,registerUpdateLifecycle:()=>FJ,registerVisual:()=>zJ,setCanvasCreator:()=>yke,setPlatformAPI:()=>DA,throttle:()=>mK,time:()=>HAe,use:()=>qJ,util:()=>GAe,vector:()=>dSe,version:()=>JOe,zrUtil:()=>tSe,zrender:()=>NCe});qJ([hMe]),qJ([cMe]),qJ([IMe,NNe,WNe,SPe,FPe,AIe,pLe,_Re,lze,yze,Tze,Fze,XBe,wVe,VVe,lHe,hHe,kHe,IHe,oUe,mUe,jUe,kWe]),qJ(dGe),qJ(KGe),qJ(wIe),qJ(sKe),qJ(YBe),qJ(fKe),qJ(QKe),qJ(fqe),qJ(bJe),qJ(YJe),qJ(n8),qJ(xYe),qJ(wYe),qJ(zYe),qJ(XYe),qJ(rXe),qJ(fXe),qJ(kXe),qJ(eZe),qJ(VXe),qJ($Xe),qJ(LZe),qJ(jZe),qJ(IZe),qJ(UZe),qJ(XZe),qJ(fQe),qJ(hQe),qJ(l$e),qJ(Eje),qJ(M$e),qJ(N$e),qJ(CPe);var L$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1;e.default=function(){return`${t++}`}})),R$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,n=null;return function(){var r=this,i=[...arguments];clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}}})),S7=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SizeSensorId=e.SensorTabIndex=e.SensorClassName=void 0,e.SizeSensorId=`size-sensor-id`,e.SensorClassName=`size-sensor-object`,e.SensorTabIndex=`-1`})),z$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=r(R$e()),n=S7();function r(e){return e&&e.__esModule?e:{default:e}}e.createSensor=function(e,r){var i=void 0,a=[],o=function(){getComputedStyle(e).position===`static`&&(e.style.position=`relative`);var t=document.createElement(`object`);return t.onload=function(){t.contentDocument.defaultView.addEventListener(`resize`,s),s()},t.style.display=`block`,t.style.position=`absolute`,t.style.top=`0`,t.style.left=`0`,t.style.height=`100%`,t.style.width=`100%`,t.style.overflow=`hidden`,t.style.pointerEvents=`none`,t.style.zIndex=`-1`,t.style.opacity=`0`,t.setAttribute(`class`,n.SensorClassName),t.setAttribute(`tabindex`,n.SensorTabIndex),t.type=`text/html`,e.appendChild(t),t.data=`about:blank`,t},s=(0,t.default)(function(){a.forEach(function(t){t(e)})}),c=function(e){i||=o(),a.indexOf(e)===-1&&a.push(e)},l=function(){i&&i.parentNode&&(i.contentDocument&&i.contentDocument.defaultView.removeEventListener(`resize`,s),i.parentNode.removeChild(i),e.removeAttribute(n.SizeSensorId),i=void 0,a=[],r&&r())};return{element:e,bind:c,destroy:l,unbind:function(e){var t=a.indexOf(e);t!==-1&&a.splice(t,1),a.length===0&&i&&l()}}}})),B$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=S7(),n=r(R$e());function r(e){return e&&e.__esModule?e:{default:e}}e.createSensor=function(e,r){var i=void 0,a=[],o=(0,n.default)(function(){a.forEach(function(t){t(e)})}),s=function(){var t=new ResizeObserver(o);return t.observe(e),o(),t},c=function(e){i||=s(),a.indexOf(e)===-1&&a.push(e)},l=function(){i&&i.disconnect(),a=[],i=void 0,e.removeAttribute(t.SizeSensorId),r&&r()};return{element:e,bind:c,destroy:l,unbind:function(e){var t=a.indexOf(e);t!==-1&&a.splice(t,1),a.length===0&&i&&l()}}}})),V$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=z$e(),n=B$e();e.createSensor=typeof ResizeObserver<`u`?n.createSensor:t.createSensor})),H$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=e.Sensors=void 0;var t=i(L$e()),n=V$e(),r=S7();function i(e){return e&&e.__esModule?e:{default:e}}var a=e.Sensors={};function o(e){e&&a[e]&&delete a[e]}e.getSensor=function(e){var i=e.getAttribute(r.SizeSensorId);if(i&&a[i])return a[i];var s=(0,t.default)();e.setAttribute(r.SizeSensorId,s);var c=(0,n.createSensor)(e,function(){return o(s)});return a[s]=c,c},e.removeSensor=function(e){var t=e.element.getAttribute(r.SizeSensorId);e.destroy(),o(t)}})),U$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var t=H$e();e.bind=function(e,n){var r=(0,t.getSensor)(e);return r.bind(n),function(){r.unbind(n)}},e.clear=function(e){var n=(0,t.getSensor)(e);(0,t.removeSensor)(n)},e.ver=`1.0.3`}))();function W$e(e,t){var n={};return t.forEach(function(t){n[t]=e[t]}),n}function C7(e){return typeof e==`function`}function G$e(e){return typeof e==`string`}var w7=l(o(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}}))()),K$e=function(e){bA(t,e);function t(t){var n=e.call(this,t)||this;return n.echarts=I$e,n}return t}(function(e){bA(t,e);function t(t){var n=e.call(this,t)||this;return n.echarts=t.echarts,n.ele=null,n.isInitialResize=!0,n.eventHandlerRefs={},n}return t.prototype.componentDidMount=function(){this.renderNewEcharts()},t.prototype.componentDidUpdate=function(e){var t=this.props.shouldSetOption;if(!(C7(t)&&!t(e,this.props))){if(!(0,w7.default)(e.theme,this.props.theme)||!(0,w7.default)(e.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var n=this.getEchartsInstance();(0,w7.default)(e.onEvents,this.props.onEvents)||(this.unbindEvents(n),this.bindEvents(n,this.props.onEvents));var r=[`option`,`notMerge`,`replaceMerge`,`lazyUpdate`,`showLoading`,`loadingOption`];(0,w7.default)(W$e(this.props,r),W$e(e,r))||this.updateEChartsOption(),(!(0,w7.default)(e.style,this.props.style)||!(0,w7.default)(e.className,this.props.className))&&this.resize()}},t.prototype.componentWillUnmount=function(){this.dispose()},t.prototype.initEchartsInstance=function(){return SA(this,void 0,void 0,function(){var e=this;return CA(this,function(t){return[2,new Promise(function(t){e.echarts.init(e.ele,e.props.theme,e.props.opts),e.getEchartsInstance().on(`finished`,function(){var n=e.ele.clientWidth,r=e.ele.clientHeight;e.echarts.dispose(e.ele);var i=xA({width:n,height:r},e.props.opts);t(e.echarts.init(e.ele,e.props.theme,i))})})]})})},t.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},t.prototype.dispose=function(){if(this.ele){try{(0,U$e.clear)(this.ele)}catch(e){console.warn(e)}this.echarts.dispose(this.ele)}},t.prototype.renderNewEcharts=function(){return SA(this,void 0,void 0,function(){var e,t,n,r,i,a,o=this;return CA(this,function(s){switch(s.label){case 0:return e=this.props,t=e.onEvents,n=e.onChartReady,r=e.autoResize,i=r===void 0?!0:r,[4,this.initEchartsInstance()];case 1:return s.sent(),a=this.updateEChartsOption(),this.bindEvents(a,t||{}),C7(n)&&n(a),this.ele&&i&&(0,U$e.bind)(this.ele,function(){o.resize()}),[2]}})})},t.prototype.bindEvents=function(e,t){var n=this,r=function(t,r){if(G$e(t)&&C7(r)){var i=function(t){r(t,e)};e.on(t,i),n.eventHandlerRefs[t]=i}};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&r(i,t[i])},t.prototype.unbindEvents=function(e){for(var t=0,n=Object.entries(this.eventHandlerRefs);te.localeCompare(t,`zh-CN`)),counts:n}}function Y$e({exams:e}){if(!T7.some(t=>e.some(e=>e.scores.some(e=>(e.review_statuses||[]).includes(t)))))return(0,Y.jsx)(`div`,{style:{textAlign:`center`,padding:32,color:`#999`},children:`暂无复盘数据,请在录入成绩或下方复盘中填写考试状态`});let{subjects:t,counts:n}=J$e(e);return(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(K$e,{option:{title:{text:`各科考试状态统计`,left:`center`,textStyle:{fontSize:15,fontWeight:500}},tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},formatter:e=>{let t=e.filter(e=>e.value>0);if(!t.length)return``;let n=t.reduce((e,t)=>e+t.value,0);return t.map(e=>`${e.marker}${e.seriesName}: ${e.value} 次`).join(`
`)+`
合计: ${n} 次`}},legend:{bottom:0,data:T7.map(e=>hA[e])},grid:{left:48,right:24,top:48,bottom:56},xAxis:{type:`category`,data:t,axisLabel:{interval:0,rotate:t.length>6?30:0}},yAxis:{type:`value`,name:`次数`,minInterval:1,splitLine:{lineStyle:{type:`dashed`}}},series:T7.map(e=>({name:hA[e],type:`bar`,stack:`review`,barMaxWidth:48,emphasis:{focus:`series`},itemStyle:{color:q$e[e],borderRadius:[2,2,0,0]},data:t.map(t=>n[e][t]||0)}))},style:{height:360,width:`100%`},notMerge:!0}),(0,Y.jsx)(`p`,{style:{color:`#888`,fontSize:12,marginTop:8},children:`柱状图按科目展示各状态次数(分色堆叠);同一科可多选状态,分别计数`})]})}function X$e(e,t){if(e&&typeof e==`object`&&`response`in e){let t=e.response?.data?.detail;if(typeof t==`string`)return t;if(Array.isArray(t))return t.map(e=>e?.msg||String(e)).join(`;`)}return t}function Z$e({exams:e,onRefresh:t}){let[n,r]=(0,h.useState)(!1),[i,a]=(0,h.useState)(),[o,s]=(0,h.useState)({}),[c,l]=(0,h.useState)(!1),u=(0,h.useMemo)(()=>e.map(e=>({value:e.id,label:`${e.exam_date} · ${_A[e.exam_type]}${e.title?` · ${e.title}`:``}`})),[e]),d=e.find(e=>e.id===i);return(0,h.useEffect)(()=>{n&&!i&&e.length&&a(e[0].id)},[n,i,e]),(0,h.useEffect)(()=>{if(!d){s({});return}let e={};for(let t of d.scores)e[t.subject_id]=[...t.review_statuses||[]];s(e)},[d]),(0,Y.jsx)(np,{style:{marginTop:16},activeKey:n?[`review`]:[],onChange:e=>r(e.includes(`review`)),items:[{key:`review`,label:`复盘`,children:(0,Y.jsxs)(Iy,{direction:`vertical`,size:`middle`,style:{width:`100%`},children:[e.length===0?(0,Y.jsx)(eD.Text,{type:`secondary`,children:`请先录入至少一次考试成绩`}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(Iy,{wrap:!0,style:{width:`100%`},children:[(0,Y.jsx)(hC,{style:{minWidth:260,flex:1},placeholder:`选择考试`,value:i,onChange:a,options:u}),(0,Y.jsx)(Cp,{type:`primary`,loading:c,onClick:async()=>{if(!d){ax.warning(`请选择考试`);return}l(!0);try{await Qk.update(d.id,{scores:d.scores.map(e=>({subject_id:e.subject_id,total_score:Number(e.total_score),obtained_score:Number(e.obtained_score),review_statuses:o[e.subject_id]||[]}))}),ax.success(`复盘已保存`),t()}catch(e){ax.error(X$e(e,`保存失败`))}finally{l(!1)}},children:`保存复盘`})]}),d&&(0,Y.jsx)(FE,{size:`small`,pagination:!1,rowKey:`subject_id`,dataSource:d.scores,scroll:{x:480},columns:[{title:`科目`,dataIndex:`subject_name`,width:80},{title:`得分`,width:100,render:(e,t)=>`${t.obtained_score}/${t.total_score}`},{title:`考试状态(可多选)`,render:(e,t)=>(0,Y.jsx)(xg.Group,{options:gA,value:o[t.subject_id]||[],onChange:e=>s(n=>({...n,[t.subject_id]:e}))})}]})]}),(0,Y.jsx)(eD.Text,{strong:!0,children:`复盘统计`}),(0,Y.jsx)(Y$e,{exams:e})]})}]})}function Q$e({studentId:e,subjects:t,exams:n,onRefresh:r}){let[i,a]=(0,h.useState)(!1),[o,s]=(0,h.useState)(null),[c]=jy.useForm(),[l,u]=(0,h.useState)(!1);(0,h.useEffect)(()=>{i&&o?c.setFieldsValue({exam_type:o.exam_type,exam_date:(0,Ng.default)(o.exam_date),title:o.title,scores:t.map(e=>{let t=o.scores.find(t=>t.subject_id===e.id);return t?{subject_id:e.id,total_score:t.total_score,obtained_score:t.obtained_score,review_statuses:t.review_statuses||[]}:{subject_id:e.id,total_score:void 0,obtained_score:void 0,review_statuses:[]}})}):i&&c.setFieldsValue({exam_type:`weekly`,exam_date:(0,Ng.default)(),scores:t.map(e=>({subject_id:e.id,review_statuses:[]}))})},[i,o,t,c]);let d=()=>{s(null),a(!0)},f=e=>{s(e),a(!0)},p=async()=>{try{let n=await c.validateFields(),i=(n.scores||[]).map((e,n)=>({subject_id:t[n]?.id??e.subject_id,total_score:e.total_score,obtained_score:e.obtained_score,review_statuses:e.review_statuses||[]})).filter(e=>e.subject_id!=null&&e.total_score!=null&&e.obtained_score!=null&&e.total_score>0).map(e=>({subject_id:e.subject_id,total_score:Number(e.total_score),obtained_score:Number(e.obtained_score),review_statuses:e.review_statuses||[]}));if(i.length===0){ax.warning(`请至少录入一科成绩`);return}u(!0);let s={exam_type:n.exam_type,exam_date:n.exam_date.format(`YYYY-MM-DD`),title:n.title||void 0,scores:i};o?(await Qk.update(o.id,s),ax.success(`已更新`)):(await Qk.create(e,s),ax.success(`已添加`)),a(!1),r()}catch{}finally{u(!1)}},m=async e=>{Gx.confirm({title:`确认删除该考试记录?`,onOk:async()=>{await Qk.remove(e.id),ax.success(`已删除`),r()}})};return(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(Cp,{type:`primary`,onClick:d,style:{marginBottom:16},children:`录入成绩`}),(0,Y.jsx)(FE,{rowKey:`id`,columns:[{title:`日期`,dataIndex:`exam_date`,key:`exam_date`,width:110},{title:`类型`,dataIndex:`exam_type`,key:`exam_type`,width:80,render:e=>_A[e]},{title:`标题`,dataIndex:`title`,key:`title`,ellipsis:!0},{title:`科目数`,key:`count`,width:80,render:(e,t)=>t.scores.length},{title:`平均占比`,key:`avg`,width:100,render:(e,t)=>t.scores.length?`${(t.scores.reduce((e,t)=>e+t.ratio,0)/t.scores.length*100).toFixed(1)}%`:`-`},{title:`操作`,key:`action`,width:120,render:(e,t)=>(0,Y.jsxs)(Iy,{children:[(0,Y.jsx)(Cp,{type:`link`,icon:(0,Y.jsx)(phe,{}),onClick:()=>f(t)}),(0,Y.jsx)(Cp,{type:`link`,danger:!0,icon:(0,Y.jsx)(fD,{}),onClick:()=>m(t)})]})}],dataSource:n,pagination:{pageSize:10},scroll:{x:600}}),(0,Y.jsx)(Z$e,{exams:n,onRefresh:r}),(0,Y.jsx)(Gx,{title:o?`编辑考试`:`录入成绩`,open:i,onCancel:()=>a(!1),onOk:p,confirmLoading:l,width:900,destroyOnHidden:!0,children:(0,Y.jsxs)(jy,{form:c,layout:`vertical`,children:[(0,Y.jsxs)(Iy,{style:{width:`100%`},size:`large`,wrap:!0,children:[(0,Y.jsx)(jy.Item,{name:`exam_type`,label:`考试类型`,rules:[{required:!0}],children:(0,Y.jsx)(hC,{style:{width:120},options:Object.entries(_A).map(([e,t])=>({value:e,label:t}))})}),(0,Y.jsx)(jy.Item,{name:`exam_date`,label:`考试日期`,rules:[{required:!0}],children:(0,Y.jsx)(Wv,{})}),(0,Y.jsx)(jy.Item,{name:`title`,label:`备注标题`,children:(0,Y.jsx)(ob,{placeholder:`可选`,style:{width:200}})})]}),(0,Y.jsx)(jy.List,{name:`scores`,children:e=>(0,Y.jsx)(FE,{size:`small`,pagination:!1,dataSource:e.map((e,n)=>({...e,subject:t[n]})),rowKey:`key`,scroll:{x:720},columns:[{title:`科目`,width:70,render:(e,t)=>(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(jy.Item,{name:[t.name,`subject_id`],hidden:!0,initialValue:t.subject?.id,children:(0,Y.jsx)(Db,{})}),t.subject?.name]})},{title:`总分`,width:100,render:(e,t)=>(0,Y.jsx)(jy.Item,{name:[t.name,`total_score`],noStyle:!0,children:(0,Y.jsx)(Db,{min:0,placeholder:`总分`,style:{width:90}})})},{title:`得分`,width:100,render:(e,t)=>(0,Y.jsx)(jy.Item,{name:[t.name,`obtained_score`],noStyle:!0,children:(0,Y.jsx)(Db,{min:0,placeholder:`得分`,style:{width:90}})})},{title:`占比`,width:70,render:(e,t)=>{let n=c.getFieldValue([`scores`,t.name,`total_score`]),r=c.getFieldValue([`scores`,t.name,`obtained_score`]);return n>0&&r!=null?`${(r/n*100).toFixed(1)}%`:`-`}},{title:`考试状态`,render:(e,t)=>(0,Y.jsx)(jy.Item,{name:[t.name,`review_statuses`],noStyle:!0,initialValue:[],children:(0,Y.jsx)(xg.Group,{options:gA})})}]})})]})})]})}function $$e({exams:e,subjectNames:t}){let n=new Set;e.forEach(e=>e.scores.forEach(e=>n.add(e.subject_id)));let r=[{title:`日期`,dataIndex:`exam_date`,key:`date`,width:110,fixed:`left`},{title:`类型`,dataIndex:`exam_type`,key:`type`,width:80,render:e=>(0,Y.jsx)(BE,{children:_A[e]})},...[...n].sort((e,t)=>e-t).map(e=>({title:t[e]||`科目${e}`,key:`s${e}`,width:100,render:(t,n)=>{let r=n.scores.find(t=>t.subject_id===e);return r?`${r.obtained_score}/${r.total_score} (${(r.ratio*100).toFixed(1)}%)`:`-`}}))],i=e.filter(t=>t.scores.some(n=>{let r=e.filter(e=>e.exam_date<=t.exam_date).flatMap(e=>e.scores.filter(e=>e.subject_id===n.subject_id)).sort((t,n)=>{let r=e.find(e=>e.scores.includes(t)),i=e.find(e=>e.scores.includes(n));return(r?.exam_date||``).localeCompare(i?.exam_date||``)}),i=r.findIndex(e=>e.id===n.id);return i<=0?!1:Math.abs(r[i].ratio-r[i-1].ratio)>=.08}));return(0,Y.jsxs)(`div`,{children:[i.length>0&&(0,Y.jsxs)(`div`,{style:{marginBottom:16,padding:12,background:`#fff7e6`,borderRadius:8},children:[(0,Y.jsx)(`strong`,{children:`波动预警:`}),i.slice(0,5).map(e=>(0,Y.jsxs)(BE,{color:`orange`,style:{marginTop:4},children:[e.exam_date,` `,_A[e.exam_type]]},e.id))]}),(0,Y.jsx)(FE,{rowKey:`id`,columns:r,dataSource:[...e].sort((e,t)=>t.exam_date.localeCompare(e.exam_date)),pagination:{pageSize:15},scroll:{x:`max-content`},size:`small`})]})}var E7={up:`#52c41a`,down:`#ff4d4f`,flat:`#8c8c8c`,volatile:`#fa8c16`};function e1e({points:e,subjectName:t,threshold:n}){if(e.length===0)return(0,Y.jsx)(`div`,{style:{textAlign:`center`,padding:40,color:`#999`},children:`暂无成绩数据`});let r=e.map(e=>e.exam_date),i=e.map(e=>e.ratio_percent),a=e.slice(1).map((e,t)=>{let n=E7.flat;return e.direction===`up`&&(n=E7.up),e.direction===`down`&&(n=E7.down),{type:`line`,data:r.map((e,n)=>n===t||n===t+1?i[n]:null),connectNulls:!1,showSymbol:!1,lineStyle:{width:3,color:n},tooltip:{show:!1},silent:!0}}),o=e.map((e,t)=>({point:e,i:t})).filter(({point:e})=>e.is_volatile).map(({i:e})=>({coord:[r[e],i[e]],symbol:`circle`,symbolSize:18,itemStyle:{color:E7.volatile,borderColor:`#fff`,borderWidth:2},label:{show:!1}}));return(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(K$e,{option:{title:{text:`${t} 成绩占比趋势`,left:`center`,textStyle:{fontSize:16}},tooltip:{trigger:`axis`,formatter:t=>{let n=e[t[0]?.dataIndex??0];if(!n)return``;let r=_A[n.exam_type],i=`${n.exam_date} (${r})
占比: ${n.ratio_percent}%`;if(n.title&&(i+=`
${n.title}`),n.delta_percent!==null){let e=n.delta_percent>0?`+`:``;i+=`
较上次: ${e}${n.delta_percent}%`,n.is_volatile&&(i+=` [大幅波动]`)}return i}},grid:{left:50,right:30,top:60,bottom:50},xAxis:{type:`category`,data:r,axisLabel:{rotate:30}},yAxis:{type:`value`,name:`占比 (%)`,min:0,max:100},series:[{type:`line`,data:i,symbol:`circle`,symbolSize:(t,n)=>e[n.dataIndex]?.is_volatile?14:8,itemStyle:{color:t=>{let n=e[t.dataIndex];return n?.is_volatile?E7.volatile:n?.direction===`up`?E7.up:n?.direction===`down`?E7.down:`#1677ff`}},lineStyle:{opacity:0},markPoint:o.length?{data:o}:void 0,z:10},...a],legend:{bottom:0,data:[{name:`上升`,itemStyle:{color:E7.up}},{name:`下降`,itemStyle:{color:E7.down}},{name:`大幅波动`,itemStyle:{color:E7.volatile}}]}},style:{height:400,width:`100%`},notMerge:!0}),(0,Y.jsxs)(`p`,{style:{color:`#888`,fontSize:12,marginTop:8},children:[`波动阈值: `,(n*100).toFixed(0),`%,超过此变化幅度将高亮显示`]})]})}function D7(e){return e.error_message?!1:e.status===`pending`||e.status===`ocr_done`&&!e.question_text}function O7(e){return e.status===`pending`?`正在识别文字(约 10–30 秒)…`:e.status===`ocr_done`?`正在标注错题并生成解题思路(约 30–90 秒)…`:`正在识别、标注并生成解题思路…`}function t1e({questionId:e,variant:t=`original`,className:n,alt:r=`题目`,style:i}){let[a,o]=(0,h.useState)(null),[s,c]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{let n=null,r=!1,i=async(e,t)=>{try{let t=await Jk.get(e,{responseType:`blob`});if(r)return;n=URL.createObjectURL(t.data),o(n),c(!1)}catch{t&&!r?await i(t):r||c(!0)}},a=`/wrong-questions/${e}/annotated-image`,s=`/wrong-questions/${e}/cropped-image`,l=`/wrong-questions/${e}/image`;return t===`annotated`?i(a,l):t===`cropped`?i(s,a):i(l),()=>{r=!0,n&&URL.revokeObjectURL(n)}},[e,t]),s?(0,Y.jsx)(`div`,{className:n,style:{...i,background:`#fafafa`,color:`#999`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:12},children:`图片加载失败`}):a?(0,Y.jsx)(`img`,{src:a,alt:r,className:n,style:i}):(0,Y.jsx)(`div`,{className:n,style:{...i,background:`#fafafa`}})}function n1e(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var r1e=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,i1e=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a1e={};function o1e(e,t){return((t||a1e).jsx?i1e:r1e).test(e)}var s1e=/[ \t\n\f\r]/g;function c1e(e){return typeof e==`object`?e.type===`text`?l1e(e.value):!1:l1e(e)}function l1e(e){return e.replace(s1e,``)===``}var k7=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};k7.prototype.normal={},k7.prototype.property={},k7.prototype.space=void 0;function u1e(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new k7(n,r,t)}function A7(e){return e.toLowerCase()}var j7=class{constructor(e,t){this.attribute=t,this.property=e}};j7.prototype.attribute=``,j7.prototype.booleanish=!1,j7.prototype.boolean=!1,j7.prototype.commaOrSpaceSeparated=!1,j7.prototype.commaSeparated=!1,j7.prototype.defined=!1,j7.prototype.mustUseProperty=!1,j7.prototype.number=!1,j7.prototype.overloadedBoolean=!1,j7.prototype.property=``,j7.prototype.spaceSeparated=!1,j7.prototype.space=void 0;var M7=s({boolean:()=>N7,booleanish:()=>P7,commaOrSpaceSeparated:()=>z7,commaSeparated:()=>R7,number:()=>I7,overloadedBoolean:()=>F7,spaceSeparated:()=>L7}),d1e=0,N7=B7(),P7=B7(),F7=B7(),I7=B7(),L7=B7(),R7=B7(),z7=B7();function B7(){return 2**++d1e}var V7=Object.keys(M7),H7=class extends j7{constructor(e,t,n,r){let i=-1;if(super(e,t),f1e(this,`space`,r),typeof n==`number`)for(;++i4&&n.slice(0,4)===`data`&&w1e.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(C1e,D1e);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!C1e.test(e)){let n=e.replace(S1e,E1e);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=H7}return new i(r,t)}function E1e(e){return`-`+e.toLowerCase()}function D1e(e){return e.charAt(1).toUpperCase()}var O1e=u1e([p1e,g1e,v1e,y1e,b1e],`html`),W7=u1e([p1e,_1e,v1e,y1e,b1e],`svg`);function k1e(e){return e.join(` `).trim()}var A1e=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`/`,d=`*`,f=``;function p(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,p=1;function h(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(` `);p=~n?e.length-n:p+e.length}function g(){var e={line:l,column:p};return function(t){return t.position=new _(e),b(),t}}function _(e){this.start=e,this.end={line:l,column:p},this.source=t.source}_.prototype.content=e;function v(n){var r=Error(t.source+`:`+l+`:`+p+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=p,r.source=e,!t.silent)throw r}function y(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function b(){y(i)}function x(e){var t;for(e||=[];t=S();)t!==!1&&e.push(t);return e}function S(){var t=g();if(!(u!=e.charAt(0)||d!=e.charAt(1))){for(var n=2;f!=e.charAt(n)&&(d!=e.charAt(n)||u!=e.charAt(n+1));)++n;if(n+=2,f===e.charAt(n-1))return v(`End of comment missing`);var r=e.slice(2,n-2);return p+=2,h(r),e=e.slice(n),p+=2,t({type:`comment`,comment:r})}}function C(){var e=g(),t=y(a);if(t){if(S(),!y(o))return v(`property missing ':'`);var r=y(s),i=e({type:`declaration`,property:m(t[0].replace(n,f)),value:r?m(r[0].replace(n,f)):f});return y(c),i}}function w(){var e=[];x(e);for(var t;t=C();)t!==!1&&(e.push(t),x(e));return e}return b(),w()}function m(e){return e?e.replace(l,f):f}t.exports=p})),j1e=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(A1e());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),M1e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),N1e=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(j1e()),r=M1e();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),P1e=F1e(`end`),G7=F1e(`start`);function F1e(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function I1e(e){let t=G7(e),n=P1e(e);if(t&&n)return{start:t,end:n}}function K7(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?L1e(e.position):`start`in e||`end`in e?L1e(e):`line`in e||`column`in e?q7(e):``}function q7(e){return R1e(e&&e.line)+`:`+R1e(e&&e.column)}function L1e(e){return q7(e&&e.start)+`-`+q7(e&&e.end)}function R1e(e){return e&&typeof e==`number`?e:1}var J7=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=K7(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};J7.prototype.file=``,J7.prototype.name=``,J7.prototype.reason=``,J7.prototype.message=``,J7.prototype.stack=``,J7.prototype.column=void 0,J7.prototype.line=void 0,J7.prototype.ancestors=void 0,J7.prototype.cause=void 0,J7.prototype.fatal=void 0,J7.prototype.place=void 0,J7.prototype.ruleId=void 0,J7.prototype.source=void 0;var z1e=l(N1e(),1),Y7={}.hasOwnProperty,B1e=new Map,V1e=/[A-Z]/g,H1e=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),U1e=new Set([`td`,`th`]);function W1e(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=e0e(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=$1e(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?W7:O1e,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=G1e(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function G1e(e,t,n){if(t.type===`element`)return K1e(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return q1e(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Y1e(e,t,n);if(t.type===`mdxjsEsm`)return J1e(e,t);if(t.type===`root`)return X1e(e,t,n);if(t.type===`text`)return Z1e(e,t)}function K1e(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=W7,e.schema=i),e.ancestors.push(t);let a=a0e(e,t.tagName,!1),o=t0e(e,t),s=Z7(e,t);return H1e.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!c1e(e):!0})),Q1e(e,o,a,t),X7(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function q1e(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Q7(e,t.position)}function J1e(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Q7(e,t.position)}function Y1e(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=W7,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:a0e(e,t.name,!0),o=n0e(e,t),s=Z7(e,t);return Q1e(e,o,a,t),X7(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function X1e(e,t,n){let r={};return X7(r,Z7(e,t)),e.create(t,e.Fragment,r,n)}function Z1e(e,t){return t.value}function Q1e(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function X7(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function $1e(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function e0e(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=G7(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function t0e(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Y7.call(t.properties,i)){let a=r0e(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&U1e.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function n0e(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Q7(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else Q7(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Z7(e,t){let n=[],r=-1,i=e.passKeys?new Map:B1e;for(;++ri?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(e9(e,e.length,0,t),e):t}var m0e={}.hasOwnProperty;function h0e(e){let t={},n=-1;for(;++n-1&&e.test(String.fromCharCode(t))}}function u9(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return c9(r)?(e.enter(n),s(r)):t(r)}function s(r){return c9(r)&&a++o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;er;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function O0e(e,t,n){return u9(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function k0e(e){if(e===null||s9(e)||S0e(e))return 1;if(x0e(e))return 2}function d9(e,t,n){let r=[],i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};M0e(d,-c),M0e(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=t9(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=t9(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=t9(l,d9(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=t9(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=t9(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,e9(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n0&&c9(t)?u9(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||o9(t)?e.check(G0e,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||o9(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),c9(t)?u9(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),c9(t)?u9(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||o9(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function J0e(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var h9={name:`codeIndented`,tokenize:X0e},Y0e={partial:!0,tokenize:Z0e};function X0e(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),u9(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):o9(t)?e.attempt(Y0e,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||o9(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function Z0e(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):o9(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):u9(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):o9(e)?i(e):n(e)}}var Q0e={name:`codeText`,previous:e2e,resolve:$0e,tokenize:t2e};function $0e(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&g9(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),g9(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),g9(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function u2e(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||i9(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||o9(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||s9(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):o9(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||o9(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!c9(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function f2e(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):o9(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),u9(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||o9(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function _9(e,t){let n;return r;function r(i){return o9(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):c9(i)?u9(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}function v9(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var p2e={name:`definition`,tokenize:h2e},m2e={partial:!0,tokenize:g2e};function h2e(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return d2e.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=v9(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return s9(t)?_9(e,l)(t):l(t)}function l(t){return u2e(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(m2e,d,d)(t)}function d(t){return c9(t)?u9(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||o9(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function g2e(e,t,n){return r;function r(t){return s9(t)?_9(e,i)(t):n(t)}function i(t){return f2e(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return c9(t)?u9(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||o9(e)?t(e):n(e)}}var _2e={name:`hardBreakEscape`,tokenize:v2e};function v2e(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return o9(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var y2e={name:`headingAtx`,resolve:b2e,tokenize:x2e};function b2e(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},e9(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function x2e(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||s9(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||o9(n)?(e.exit(`atxHeading`),t(n)):c9(n)?u9(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||s9(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var S2e=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),C2e=[`pre`,`script`,`style`,`textarea`],w2e={concrete:!0,name:`htmlFlow`,resolveTo:D2e,tokenize:O2e},T2e={partial:!0,tokenize:A2e},E2e={partial:!0,tokenize:k2e};function D2e(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function O2e(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):n9(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):n9(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return n9(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||s9(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&C2e.includes(l)?(i=1,r.interrupt?t(s):O(s)):S2e.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||r9(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return c9(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||n9(t)?(e.consume(t),b):c9(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||r9(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):c9(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):c9(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||o9(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||s9(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||c9(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||o9(t)?O(t):c9(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),L):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):o9(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(T2e,R,k)(t)):t===null||o9(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(E2e,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||o9(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return C2e.includes(n)?(e.consume(t),L):O(t)}return n9(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),L):t===45&&i===2?(e.consume(t),I):O(t)}function L(t){return t===null||o9(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function k2e(e,t,n){let r=this;return i;function i(t){return o9(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function A2e(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(p9,t,n)}}var j2e={name:`htmlText`,tokenize:M2e};function M2e(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):n9(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):n9(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):o9(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):o9(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):o9(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):o9(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return n9(t)?(e.consume(t),S):n(t)}function S(t){return t===45||r9(t)?(e.consume(t),S):C(t)}function C(t){return o9(t)?(o=C,N(t)):c9(t)?(e.consume(t),C):M(t)}function w(t){return t===45||r9(t)?(e.consume(t),w):t===47||t===62||s9(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||n9(t)?(e.consume(t),E):o9(t)?(o=T,N(t)):c9(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||r9(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):o9(t)?(o=D,N(t)):c9(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):o9(t)?(o=O,N(t)):c9(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):o9(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||s9(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||s9(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return c9(t)?u9(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var y9={name:`labelEnd`,resolveAll:I2e,resolveTo:L2e,tokenize:R2e},N2e={tokenize:z2e},P2e={tokenize:B2e},F2e={tokenize:V2e};function I2e(e){let t=-1,n=[];for(;++t=3&&(a===null||o9(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),c9(t)?u9(e,s,`whitespace`)(t):s(t))}}var S9={continuation:{tokenize:Z2e},exit:$2e,name:`list`,tokenize:X2e},J2e={partial:!0,tokenize:e4e},Y2e={partial:!0,tokenize:Q2e};function X2e(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:a9(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(x9,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return a9(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(p9,r.interrupt?n:u,e.attempt(J2e,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return c9(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Z2e(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(p9,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,u9(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!c9(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Y2e,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,u9(e,e.attempt(S9,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function Q2e(e,t,n){let r=this;return u9(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function $2e(e){e.exit(this.containerState.type)}function e4e(e,t,n){let r=this;return u9(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!c9(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var t4e={name:`setextUnderline`,resolveTo:n4e,tokenize:r4e};function n4e(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function r4e(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),c9(t)?u9(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||o9(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var i4e={tokenize:a4e};function a4e(e){let t=this,n=e.attempt(p9,r,e.attempt(this.parser.constructs.flowInitial,i,u9(e,e.attempt(this.parser.constructs.flow,i,e.attempt(a2e,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var o4e={resolveAll:u4e()},s4e=l4e(`string`),c4e=l4e(`text`);function l4e(e){return{resolveAll:u4e(e===`text`?d4e:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++ib4e,contentInitial:()=>m4e,disable:()=>x4e,document:()=>p4e,flow:()=>g4e,flowInitial:()=>h4e,insideSpan:()=>y4e,string:()=>_4e,text:()=>v4e}),p4e={42:S9,43:S9,45:S9,48:S9,49:S9,50:S9,51:S9,52:S9,53:S9,54:S9,55:S9,56:S9,57:S9,62:I0e},m4e={91:p2e},h4e={[-2]:h9,[-1]:h9,32:h9},g4e={35:y2e,42:x9,45:[t4e,x9],60:w2e,61:t4e,95:x9,96:K0e,126:K0e},_4e={38:U0e,92:B0e},v4e={[-5]:b9,[-4]:b9,[-3]:b9,33:H2e,38:U0e,42:f9,60:[N0e,j2e],91:W2e,92:[_2e,B0e],93:y9,95:f9,96:Q0e},y4e={null:[f9,o4e]},b4e={null:[42,95]},x4e={null:[]};function S4e(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=t9(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=d9(a,l.events,l),l.events):[]}function f(e,t){return w4e(p(e),t)}function p(e){return C4e(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function w4e(e,t){let n=-1,r=[],i;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}var A4e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function j4e(e){return e.replace(A4e,M4e)}function M4e(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return k4e(n.slice(t?2:1),t?16:10)}return m9(n)||e}var N4e={}.hasOwnProperty;function P4e(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),F4e(n)(E4e(T4e(n).document().write(O4e()(e,t,!0))))}function F4e(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(ce),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ie),blockQuote:a(ee),characterEscape:T,characterReference:T,codeFenced:a(K),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(K,o),codeText:a(te,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ne),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(re),hardBreakEscape:a(ae),hardBreakTrailing:a(ae),htmlFlow:a(oe,o),htmlFlowData:T,htmlText:a(oe,o),htmlTextData:T,image:a(se),label:o,link:a(ce),listItem:a(ue),listItemValue:f,listOrdered:a(le,d),listUnordered:a(le),paragraph:a(de),reference:z,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ie),strong:a(fe),thematicBreak:a(me)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:G,autolinkProtocol:W,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:H,characterReference:U,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(j),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(N),label:F,labelText:P,lineEnding:D,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:B,resourceDestinationString:I,resourceTitleString:L,resource:R,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};I4e(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||R4e).call(a,void 0,e[0])}for(r.position={start:C9(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:C9(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new B4e[e](t)},H4e=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(V4e(e,t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(V4e(a,o),i)};return r},U4e=e=>H4e(new Map,e)(0),w9=``,{toString:W4e}={},{keys:G4e}=Object,T9=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=W4e.call(e).slice(8,-1);switch(n){case`Array`:return[1,w9];case`Object`:return[2,w9];case`Date`:return[3,w9];case`RegExp`:return[4,w9];case`Map`:return[5,w9];case`Set`:return[6,w9];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},E9=([e,t])=>e===0&&(t===`function`||t===`symbol`),K4e=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=T9(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of G4e(r))(e||!E9(T9(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,isNaN(r.getTime())?w9:r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(E9(T9(n))||E9(T9(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!E9(T9(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},q4e=(e,{json:t,lossy:n}={})=>{let r=[];return K4e(!(t||n),!!t,new Map,r)(e),r},D9=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?U4e(q4e(e,t)):structuredClone(e):(e,t)=>U4e(q4e(e,t));function O9(e){let t=[],n=-1,r=0,i=0;for(;++n55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function J4e(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function Y4e(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function X4e(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||J4e,r=e.options.footnoteBackLabel||Y4e,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...D9(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:` diff --git a/frontend/dist/index.html b/frontend/dist/index.html index 35994a9..2f7a2e5 100644 --- a/frontend/dist/index.html +++ b/frontend/dist/index.html @@ -9,7 +9,7 @@ 中学成绩档案 - + diff --git a/frontend/src/components/ExamReviewPanel.tsx b/frontend/src/components/ExamReviewPanel.tsx index af4e5dd..e0f4ed4 100644 --- a/frontend/src/components/ExamReviewPanel.tsx +++ b/frontend/src/components/ExamReviewPanel.tsx @@ -3,7 +3,7 @@ import { useEffect, useMemo, useState } from 'react' import { examApi } from '../api/client' import type { Exam, ReviewStatus } from '../types' import { EXAM_TYPE_LABELS, REVIEW_STATUS_OPTIONS } from '../types' -import ReviewTreeChart from './ReviewTreeChart' +import ReviewBarChart from './ReviewBarChart' function apiErrorMessage(err: unknown, fallback: string): string { if (err && typeof err === 'object' && 'response' in err) { @@ -147,7 +147,7 @@ export default function ExamReviewPanel({ exams, onRefresh }: Props) { )} 复盘统计 - + ), }, diff --git a/frontend/src/components/ReviewBarChart.tsx b/frontend/src/components/ReviewBarChart.tsx new file mode 100644 index 0000000..916c5c3 --- /dev/null +++ b/frontend/src/components/ReviewBarChart.tsx @@ -0,0 +1,112 @@ +import ReactECharts from 'echarts-for-react' +import type { Exam, ReviewStatus } from '../types' +import { REVIEW_STATUS_LABELS } from '../types' + +interface Props { + exams: Exam[] +} + +const STATUS_ORDER: ReviewStatus[] = ['careless', 'unknown', 'nervous', 'normal'] + +const STATUS_COLORS: Record = { + careless: '#fa8c16', + unknown: '#ff4d4f', + nervous: '#722ed1', + normal: '#52c41a', +} + +function buildChartData(exams: Exam[]) { + const subjectSet = new Set() + const counts: Record> = { + careless: {}, + unknown: {}, + nervous: {}, + normal: {}, + } + + for (const exam of exams) { + for (const score of exam.scores) { + const subjectName = score.subject_name || `科目${score.subject_id}` + subjectSet.add(subjectName) + for (const status of score.review_statuses || []) { + counts[status][subjectName] = (counts[status][subjectName] || 0) + 1 + } + } + } + + const subjects = Array.from(subjectSet).sort((a, b) => a.localeCompare(b, 'zh-CN')) + return { subjects, counts } +} + +export default function ReviewBarChart({ exams }: Props) { + const hasData = STATUS_ORDER.some((status) => + exams.some((exam) => + exam.scores.some((score) => (score.review_statuses || []).includes(status)), + ), + ) + + if (!hasData) { + return ( +
+ 暂无复盘数据,请在录入成绩或下方复盘中填写考试状态 +
+ ) + } + + const { subjects, counts } = buildChartData(exams) + + const option = { + title: { + text: '各科考试状态统计', + left: 'center', + textStyle: { fontSize: 15, fontWeight: 500 }, + }, + tooltip: { + trigger: 'axis', + axisPointer: { type: 'shadow' }, + formatter: (params: Array<{ seriesName: string; value: number; marker: string }>) => { + const rows = params.filter((p) => p.value > 0) + if (!rows.length) return '' + const total = rows.reduce((sum, p) => sum + p.value, 0) + return ( + rows.map((p) => `${p.marker}${p.seriesName}: ${p.value} 次`).join('
') + + `
合计: ${total} 次` + ) + }, + }, + legend: { + bottom: 0, + data: STATUS_ORDER.map((s) => REVIEW_STATUS_LABELS[s]), + }, + grid: { left: 48, right: 24, top: 48, bottom: 56 }, + xAxis: { + type: 'category', + data: subjects, + axisLabel: { interval: 0, rotate: subjects.length > 6 ? 30 : 0 }, + }, + yAxis: { + type: 'value', + name: '次数', + minInterval: 1, + splitLine: { lineStyle: { type: 'dashed' } }, + }, + series: STATUS_ORDER.map((status) => ({ + name: REVIEW_STATUS_LABELS[status], + type: 'bar', + stack: 'review', + barMaxWidth: 48, + emphasis: { focus: 'series' }, + itemStyle: { color: STATUS_COLORS[status], borderRadius: [2, 2, 0, 0] }, + data: subjects.map((subject) => counts[status][subject] || 0), + })), + } + + return ( +
+ +

+ 柱状图按科目展示各状态次数(分色堆叠);同一科可多选状态,分别计数 +

+
+ ) +}