codecharta-visualization 2.5.3 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +0,0 @@
1
- import{$ as jl,$g as su,A as He,Aa as En,Ai as L_,Ba as Dn,C as V,Ca as Ql,Ci as P_,D as $e,Da as Og,Di as k_,E as Qe,Ea as oe,Ei as F_,Fa as kt,Fg as Hg,Ga as Br,Gg,Gi as B_,Ha as Ig,Hb as Lg,Hg as Bo,Hi as z_,Ii as kp,J as Dt,Ji as U_,K as ko,Ki as V_,Lg as Yg,Li as W_,Mb as Np,N as Eg,Na as Rg,Nh as f_,Oa as Jl,Oh as c_,Pe as iu,Qa as Ap,Qh as Pp,Rg as zo,Rh as p_,S as F,Se as nu,Sg as Lp,Tg as Xg,Ug as qg,Va as Ag,Vg as jg,Vh as d_,W as De,Wg as yi,Wh as h_,X as Dg,Xa as ue,Xd as ru,Xg as ei,Xh as v_,Yg as ou,Yh as m_,Za as Mt,Zg as Mn,Zh as g_,_ as ql,_a as _e,_g as au,_h as __,a as Hl,aa as Fo,ab as eu,ah as lu,ai as Vo,b as Gl,ba as ot,bh as Kg,bi as y_,ca as at,ch as Zg,ci as ts,da as Kl,dh as $g,di as uu,e as Po,ea as Qr,eh as Qg,ei as x_,fa as Jr,fg as Bg,fh as Jg,fi as fu,g as Yl,ga as ee,gg as zg,gh as e_,gi as cu,ha as Y,hb as Ng,he as Pg,hh as t_,hi as S_,i as Ja,ia as X,ig as Ug,ih as r_,ja as Fe,jh as i_,ji as w_,ka as Je,kh as n_,ki as pu,la as je,lh as o_,ma as es,mg as Vg,mh as a_,na as Ip,nh as s_,oa as Ut,og as Wg,oh as l_,oi as C_,pa as Hi,pf as kg,ph as u_,pi as T_,qa as Te,qi as b_,ra as _i,sa as we,si as E_,ta as Mg,ti as D_,ua as Rp,uh as Uo,ui as M_,v as Xl,vb as tu,vi as O_,wb as St,wf as Fg,wi as I_,xb as Ot,xi as R_,ya as Zl,yb as Gi,yh as Yi,yi as A_,za as $l,zi as N_}from"./chunk-KMX4CLN6.js";var wt=(()=>{class t{constructor(){this.domainStateReadWindow=V(jg),this.store=V(Ot),this.settings=St(this.domainStateReadWindow.wordCloudSettings$,{initialValue:au}),this.hasTfidfData=St(this.store.select(v_),{initialValue:!1})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=He({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var VE=[[["","body",""]],"*"],WE=["[body]","*"],HE=["ngProjectAs","[body]",5,["","body",""]],H_=(()=>{class t{constructor(){this.label=_e.required(),this.value=_e.required(),this.idPrefix=_e.required(),this.minWidthClass=_e("min-w-[120px]"),this.popoverId=ue(()=>`${this.idPrefix()}-popover`),this.anchorName=ue(()=>`${this.idPrefix()}-cog`),this.segmentTestId=ue(()=>`${this.idPrefix()}-segment`),this.cogTestId=ue(()=>`${this.idPrefix()}-cog`)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=De({type:t,selectors:[["cc-domain-segment"]],hostAttrs:[1,"contents"],inputs:{label:[1,"label"],value:[1,"value"],idPrefix:[1,"idPrefix"],minWidthClass:[1,"minWidthClass"]},ngContentSelectors:WE,decls:3,vars:8,consts:[[3,"label","metricName","hasCog","cogPopoverId","cogAnchorName","testId","cogTestId","minWidthClass"]],template:function(i,n){i&1&&(Mg(VE),Y(0,"cc-axis-card",0),Rp(1,0,HE),X(),Rp(2,1)),i&2&&ee("label",n.label())("metricName",n.value())("hasCog",!0)("cogPopoverId",n.popoverId())("cogAnchorName",n.anchorName())("testId",n.segmentTestId())("cogTestId",n.cogTestId())("minWidthClass",n.minWidthClass())},dependencies:[Bg],encapsulation:2})}}return t})();var br=(()=>{class t{constructor(){this.store=V(Ot)}setShape(r){this.store.dispatch(i_({value:r}))}setSizeRange(r){this.store.dispatch(o_({value:r}))}setRotationRange(r){this.store.dispatch(e_({value:r}))}setRotationStep(r){this.store.dispatch(t_({value:r}))}setGridSize(r){this.store.dispatch(Zg({value:r}))}setSizingMode(r){this.store.dispatch(a_({value:r}))}setTopN(r){this.store.dispatch(u_({value:r}))}setShrinkToFit(r){this.store.dispatch(n_({value:r}))}setDrawOutOfBound(r){this.store.dispatch(Kg({value:r}))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=He({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var G_=(()=>{class t{constructor(){this.readStore=V(wt),this.writeStore=V(br),this.popoverId=_e.required(),this.anchorName=_e.required(),this.settings=this.readStore.settings,this.minRotationBounds={min:-90,max:0},this.maxRotationBounds={min:0,max:90},this.rotationStepBounds={min:15,max:90,step:15},this.resetKeys=["domainState.rotationRange","domainState.rotationStep"]}onRotationStepChange(r){this.writeStore.setRotationStep(r)}onRotationRangeMinChange(r){this.writeStore.setRotationRange(su(this.settings().rotationRange,r))}onRotationRangeMaxChange(r){this.writeStore.setRotationRange(lu(this.settings().rotationRange,r))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=De({type:t,selectors:[["cc-rotation-settings-popover"]],hostAttrs:[1,"contents"],inputs:{popoverId:[1,"popoverId"],anchorName:[1,"anchorName"]},decls:15,vars:14,consts:[["ariaLabel","Rotation Settings","widthClass","w-80","contentClass","gap-3 py-3 px-4",3,"popoverId","anchorName"],[1,"flex","flex-col","gap-2","rounded-lg","bg-base-200","p-3"],["data-testid","domain-bar-rotation-min"],[1,"text-sm"],["ariaLabel","Min Rotation in degrees",3,"valueChange","min","max","value"],["data-testid","domain-bar-rotation-max"],["ariaLabel","Max Rotation in degrees",3,"valueChange","min","max","value"],["data-testid","domain-bar-rotation-step","title","Words are rotated in multiples of this angle"],["ariaLabel","Rotation Step in degrees",3,"valueChange","min","max","step","value"],["tooltip","Reset the rotation settings to their defaults","label","Reset rotation",3,"settingsKeys","small"]],template:function(i,n){i&1&&(Y(0,"cc-settings-popover-shell",0)(1,"div",1)(2,"div",2)(3,"span",3),oe(4,"Min Rotation"),X(),Y(5,"cc-slider-number-input",4),Te("valueChange",function(a){return n.onRotationRangeMinChange(a)}),X()(),Y(6,"div",5)(7,"span",3),oe(8,"Max Rotation"),X(),Y(9,"cc-slider-number-input",6),Te("valueChange",function(a){return n.onRotationRangeMaxChange(a)}),X()(),Y(10,"div",7)(11,"span",3),oe(12,"Rotation Step"),X(),Y(13,"cc-slider-number-input",8),Te("valueChange",function(a){return n.onRotationStepChange(a)}),X()()(),Fe(14,"cc-reset-settings-button",9),X()),i&2&&(ee("popoverId",n.popoverId())("anchorName",n.anchorName()),F(5),ee("min",n.minRotationBounds.min)("max",n.minRotationBounds.max)("value",n.settings().rotationRange[0]),F(4),ee("min",n.maxRotationBounds.min)("max",n.maxRotationBounds.max)("value",n.settings().rotationRange[1]),F(4),ee("min",n.rotationStepBounds.min)("max",n.rotationStepBounds.max)("step",n.rotationStepBounds.step)("value",n.settings().rotationStep),F(),ee("settingsKeys",n.resetKeys)("small",!0))},dependencies:[Uo,Bo,Yi],encapsulation:2})}}return t})();var rs=(()=>{class t{constructor(){this.uploaded=Dt(null),this.mask=this.uploaded.asReadonly(),this.dataUri=ue(()=>this.uploaded()?.dataUri??null)}accept(r){this.uploaded.set(r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=He({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Y_="image/svg+xml",GE=["script","foreignObject"],YE=["href","xlink:href"];function X_(t){let e=new DOMParser().parseFromString(t,Y_),r=e.documentElement;if(e.querySelector("parsererror")||r.localName!=="svg")return{rejection:"That file is not an SVG."};let i=GE.find(o=>r.getElementsByTagName(o).length>0);if(i)return{rejection:`An SVG carrying a <${i}> cannot be used as a shape.`};if(XE(r))return{rejection:"An SVG that references another file cannot be used as a shape."};let n=qE(r);return n?{dataUri:`data:${Y_},${encodeURIComponent(new XMLSerializer().serializeToString(n))}`}:{rejection:"That SVG states neither a size nor a viewBox, so it has no shape to fill."}}function XE(t){return[t,...t.querySelectorAll("*")].some(e=>YE.some(r=>{let i=e.getAttribute(r);return i!==null&&!i.startsWith("#")}))}function qE(t){if(t.getAttribute("width")&&t.getAttribute("height"))return t;let e=t.getAttribute("viewBox")?.split(/[\s,]+/).filter(Boolean);if(e?.length!==4)return null;let[,,r,i]=e;return t.setAttribute("width",r),t.setAttribute("height",i),t}function jE(t,e){if(t&1&&(Y(0,"option",4),oe(1),X()),t&2){let r=e.$implicit,i=we();ee("value",r)("selected",r===i.settings().shape),F(),kt(i.shapeLabels[r])}}function KE(t,e){t&1&&(Y(0,"p",8),oe(1),X()),t&2&&(F(),kt(e))}function ZE(t,e){t&1&&(Y(0,"p",9),oe(1),X()),t&2&&(F(),Br(" ",e.fileName," \u2014 words fill the opaque areas of the shape. "))}function $E(t,e){t&1&&(Y(0,"p",10),oe(1," The cloud stays round until you upload a shape, and an uploaded one is forgotten on reload. "),X())}function QE(t,e){if(t&1){let r=Ut();Y(0,"label",6)(1,"span",2),oe(2,"SVG file"),X(),Y(3,"input",7),Te("change",function(n){$e(r);let o=we();return Qe(o.onShapeFileChosen(n))}),X()(),ot(4,KE,2,1,"p",8)(5,ZE,2,1,"p",9)(6,$E,2,0,"p",10)}if(t&2){let r,i=we();F(4),at((r=i.rejection())?4:(r=i.uploadedMask())?5:6,r)}}var q_=(()=>{class t{constructor(){this.readStore=V(wt),this.writeStore=V(br),this.customShapeMaskStore=V(rs),this.popoverId=_e.required(),this.anchorName=_e.required(),this.settings=this.readStore.settings,this.shapes=Object.values(ei),this.shapeLabels=ou,this.resetKeys=["domainState.shape"],this.isCustomShape=ue(()=>this.settings().shape===ei.custom),this.uploadedMask=this.customShapeMaskStore.mask,this.rejection=Dt(null)}onShapeChange(r){this.writeStore.setShape(r)}async onShapeFileChosen(r){let i=r.target.files?.[0];if(!i)return;let n=X_(await i.text());if("rejection"in n){this.rejection.set(n.rejection);return}this.rejection.set(null),this.customShapeMaskStore.accept({fileName:i.name,dataUri:n.dataUri})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=De({type:t,selectors:[["cc-shape-settings-popover"]],hostAttrs:[1,"contents"],inputs:{popoverId:[1,"popoverId"],anchorName:[1,"anchorName"]},decls:9,vars:5,consts:[["ariaLabel","Shape Settings",3,"popoverId","anchorName"],["title","The outline the words are laid out in",1,"form-control","w-full","gap-1"],[1,"text-sm"],["data-testid","domain-bar-shape",1,"select","select-bordered","select-sm","w-full",3,"change"],[3,"value","selected"],["tooltip","Reset the shape to its default","label","Reset shape",3,"settingsKeys","small"],[1,"form-control","w-full","gap-1"],["type","file","accept","image/svg+xml,.svg","data-testid","domain-bar-shape-upload",1,"file-input","file-input-bordered","file-input-sm","w-full",3,"change"],["data-testid","domain-bar-shape-rejection",1,"text-xs","text-error"],["data-testid","domain-bar-shape-file",1,"text-xs","opacity-60"],["data-testid","domain-bar-shape-hint",1,"text-xs","opacity-60"]],template:function(i,n){i&1&&(Y(0,"cc-settings-popover-shell",0)(1,"label",1)(2,"span",2),oe(3,"Shape"),X(),Y(4,"select",3),Te("change",function(a){return n.onShapeChange(a.target.value)}),Qr(5,jE,2,3,"option",4,Kl),X()(),ot(7,QE,7,1),Fe(8,"cc-reset-settings-button",5),X()),i&2&&(ee("popoverId",n.popoverId())("anchorName",n.anchorName()),F(5),Jr(n.shapes),F(2),at(n.isCustomShape()?7:-1),F(),ee("settingsKeys",n.resetKeys)("small",!0))},dependencies:[Uo,Bo],encapsulation:2})}}return t})();var j_=(()=>{class t{constructor(){this.readStore=V(wt),this.writeStore=V(br),this.settings=this.readStore.settings,this.wordCountBounds={min:10,max:1e3,step:10}}onTopNChange(r){this.writeStore.setTopN(r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=De({type:t,selectors:[["cc-word-count-control"]],hostAttrs:[1,"contents"],decls:4,vars:4,consts:[["data-testid","domain-bar-top-n","title","How many of the most important words are drawn",1,"rounded-lg","bg-base-200","p-3"],[1,"text-sm"],["ariaLabel","Words",3,"valueChange","min","max","step","value"]],template:function(i,n){i&1&&(Y(0,"div",0)(1,"span",1),oe(2,"Words"),X(),Y(3,"cc-slider-number-input",2),Te("valueChange",function(a){return n.onTopNChange(a)}),X()()),i&2&&(F(3),ee("min",n.wordCountBounds.min)("max",n.wordCountBounds.max)("step",n.wordCountBounds.step)("value",n.settings().topN))},dependencies:[Yi],encapsulation:2})}}return t})();var K_=(()=>{class t{constructor(){this.readStore=V(wt),this.writeStore=V(br),this.settings=this.readStore.settings,this.smallestWordBounds={min:10,max:40},this.largestWordBounds={min:40,max:120},this.shrinkToFitTitle=ue(()=>this.settings().shrinkToFit?"On \u2014 words that do not fit are shrunk until they do, so the full word count is drawn. Tail words can render below Smallest Word.":"Off \u2014 words that do not fit are left out, so Smallest Word is exact but fewer words than requested appear."),this.drawOutOfBoundTitle=ue(()=>this.settings().drawOutOfBound?"On \u2014 words may render partially outside the layout area instead of being dropped or shrunk, so more words fit at their true size.":"Off \u2014 every word is kept fully inside the layout area; words that only fit overlapping the edge are shrunk or left out.")}onSizeRangeMinChange(r){this.writeStore.setSizeRange(su(this.settings().sizeRange,r))}onSizeRangeMaxChange(r){this.writeStore.setSizeRange(lu(this.settings().sizeRange,r))}onShrinkToFitChange(r){this.writeStore.setShrinkToFit(r)}onDrawOutOfBoundChange(r){this.writeStore.setDrawOutOfBound(r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=De({type:t,selectors:[["cc-word-size-range-control"]],hostAttrs:[1,"contents"],decls:17,vars:10,consts:[[1,"flex","flex-col","gap-2","rounded-lg","bg-base-200","p-3"],["data-testid","domain-bar-size-min","title","The least important word in the cloud renders at this size"],[1,"text-sm"],["ariaLabel","Smallest Word in pixels",3,"valueChange","min","max","value"],["data-testid","domain-bar-size-max","title","The most important word in the cloud renders at this size"],["ariaLabel","Largest Word in pixels",3,"valueChange","min","max","value"],["data-testid","domain-bar-shrink-to-fit",1,"flex","cursor-pointer","items-center","gap-2",3,"title"],["type","checkbox",1,"checkbox","checkbox-sm",3,"change","checked"],["data-testid","domain-bar-draw-out-of-bound",1,"flex","cursor-pointer","items-center","gap-2",3,"title"]],template:function(i,n){i&1&&(Y(0,"div",0)(1,"div",1)(2,"span",2),oe(3,"Smallest Word"),X(),Y(4,"cc-slider-number-input",3),Te("valueChange",function(a){return n.onSizeRangeMinChange(a)}),X()(),Y(5,"div",4)(6,"span",2),oe(7,"Largest Word"),X(),Y(8,"cc-slider-number-input",5),Te("valueChange",function(a){return n.onSizeRangeMaxChange(a)}),X()(),Y(9,"label",6)(10,"input",7),Te("change",function(a){return n.onShrinkToFitChange(a.target.checked)}),X(),Y(11,"span",2),oe(12,"Fit All Words"),X()(),Y(13,"label",8)(14,"input",7),Te("change",function(a){return n.onDrawOutOfBoundChange(a.target.checked)}),X(),Y(15,"span",2),oe(16,"Draw Outside Bounds"),X()()()),i&2&&(F(4),ee("min",n.smallestWordBounds.min)("max",n.smallestWordBounds.max)("value",n.settings().sizeRange[0]),F(4),ee("min",n.largestWordBounds.min)("max",n.largestWordBounds.max)("value",n.settings().sizeRange[1]),F(),ee("title",n.shrinkToFitTitle()),F(),ee("checked",n.settings().shrinkToFit),F(3),ee("title",n.drawOutOfBoundTitle()),F(),ee("checked",n.settings().drawOutOfBound))},dependencies:[Yi],encapsulation:2})}}return t})();function JE(t,e){t&1&&(Je(0,"span",5),oe(1,"TF-IDF is unavailable: the loaded file has no TF-IDF scores."),je())}var Z_=(()=>{class t{constructor(){this.readStore=V(wt),this.writeStore=V(br),this.settings=this.readStore.settings,this.hasTfidfData=this.readStore.hasTfidfData,this.WordCloudSizingMode=Mn,this.tfidfOptionTitle=ue(()=>this.hasTfidfData()?"TF-IDF (relative importance) \u2014 sizes words by how distinctive they are, not by raw count":"TF-IDF (relative importance) \u2014 not available: the loaded file has no TF-IDF scores")}onSizingModeChange(r){this.writeStore.setSizingMode(r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=De({type:t,selectors:[["cc-word-sizing-mode-control"]],hostAttrs:[1,"contents"],decls:9,vars:7,consts:[["title","Which word metric drives a word's rendered size",1,"form-control","w-full","gap-1"],[1,"text-sm"],["data-testid","domain-bar-sizing-mode",1,"select","select-bordered","select-sm","w-full",3,"change"],["title","Frequency \u2014 sizes words by how often they occur",3,"value","selected"],[3,"value","selected","disabled","title"],[1,"text-xs","opacity-70"]],template:function(i,n){i&1&&(Je(0,"label",0)(1,"span",1),oe(2,"Word Sizing"),je(),Je(3,"select",2),_i("change",function(a){return n.onSizingModeChange(a.target.value)}),Je(4,"option",3),oe(5," Frequency "),je(),Je(6,"option",4),oe(7," TF-IDF "),je()(),ot(8,JE,2,0,"span",5),je()),i&2&&(F(4),Hi("value",n.WordCloudSizingMode.frequency)("selected",n.settings().sizingMode===n.WordCloudSizingMode.frequency),F(2),Hi("value",n.WordCloudSizingMode.tfidf)("selected",n.settings().sizingMode===n.WordCloudSizingMode.tfidf)("disabled",!n.hasTfidfData())("title",n.tfidfOptionTitle()),F(2),at(n.hasTfidfData()?-1:8))},encapsulation:2})}}return t})();var $_=(()=>{class t{constructor(){this.readStore=V(wt),this.writeStore=V(br),this.settings=this.readStore.settings,this.wordSpacingBounds={min:4,max:16,step:4}}onGridSizeChange(r){this.writeStore.setGridSize(r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=De({type:t,selectors:[["cc-word-spacing-control"]],hostAttrs:[1,"contents"],decls:4,vars:4,consts:[["data-testid","domain-bar-grid-size","title","Spacing between words in pixels \u2014 larger means fewer, more spread-out words",1,"rounded-lg","bg-base-200","p-3"],[1,"text-sm"],["ariaLabel","Word Spacing in pixels",3,"valueChange","min","max","step","value"]],template:function(i,n){i&1&&(Y(0,"div",0)(1,"span",1),oe(2,"Word Spacing"),X(),Y(3,"cc-slider-number-input",2),Te("valueChange",function(a){return n.onGridSizeChange(a)}),X()()),i&2&&(F(3),ee("min",n.wordSpacingBounds.min)("max",n.wordSpacingBounds.max)("step",n.wordSpacingBounds.step)("value",n.settings().gridSize))},dependencies:[Yi],encapsulation:2})}}return t})();var Q_=(()=>{class t{constructor(){this.popoverId=_e.required(),this.anchorName=_e.required(),this.resetKeys=["domainState.sizingMode","domainState.topN","domainState.sizeRange","domainState.gridSize","domainState.shrinkToFit","domainState.drawOutOfBound"]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=De({type:t,selectors:[["cc-word-sizing-settings-popover"]],hostAttrs:[1,"contents"],inputs:{popoverId:[1,"popoverId"],anchorName:[1,"anchorName"]},decls:6,vars:4,consts:[["ariaLabel","Word Sizing Settings","widthClass","w-80","contentClass","gap-3 py-3 px-4",3,"popoverId","anchorName"],["tooltip","Reset the word sizing settings to their defaults","label","Reset word sizing",3,"settingsKeys","small"]],template:function(i,n){i&1&&(Y(0,"cc-settings-popover-shell",0),Fe(1,"cc-word-sizing-mode-control")(2,"cc-word-count-control")(3,"cc-word-size-range-control")(4,"cc-word-spacing-control")(5,"cc-reset-settings-button",1),X()),i&2&&(ee("popoverId",n.popoverId())("anchorName",n.anchorName()),F(5),ee("settingsKeys",n.resetKeys)("small",!0))},dependencies:[Uo,Bo,Z_,j_,K_,$_],encapsulation:2})}}return t})();var Fp=(()=>{class t{constructor(){this.barBottom=zg,this.readStore=V(wt),this.settings=this.readStore.settings,this.shapeLabel=ue(()=>ou[this.settings().shape]),this.sizingModeLabel=ue(()=>this.settings().sizingMode===Mn.tfidf?"TF-IDF":"Frequency"),this.rotationRangeLabel=ue(()=>{let[r,i]=this.settings().rotationRange;return`${r}\xB0 \u2013 ${i}\xB0`})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=De({type:t,selectors:[["cc-domain-bar"]],hostVars:2,hostBindings:function(i,n){i&2&&Dn("bottom",n.barBottom)},features:[ql([Ug])],decls:11,vars:10,consts:[["shape",""],["wordSizing",""],["rotation",""],["label","Shape","idPrefix","domain-bar-shape","minWidthClass","min-w-[100px]",3,"value"],[3,"popoverId","anchorName"],["label","Word Sizing","idPrefix","domain-bar-word-sizing",3,"value"],["body","","data-testid","domain-bar-top-n-value",1,"text-xs","opacity-70","text-center"],["label","Rotation","idPrefix","domain-bar-rotation","minWidthClass","min-w-[110px]",3,"value"]],template:function(i,n){if(i&1&&(Y(0,"cc-domain-segment",3,0),Fe(2,"cc-shape-settings-popover",4),X(),Y(3,"cc-domain-segment",5,1)(5,"div",6),oe(6),X(),Fe(7,"cc-word-sizing-settings-popover",4),X(),Y(8,"cc-domain-segment",7,2),Fe(10,"cc-rotation-settings-popover",4),X()),i&2){let o=En(1),a=En(4),s=En(9);ee("value",n.shapeLabel()),F(2),ee("popoverId",o.popoverId())("anchorName",o.anchorName()),F(),ee("value",n.sizingModeLabel()),F(3),Br("",n.settings().topN," words"),F(),ee("popoverId",a.popoverId())("anchorName",a.anchorName()),F(),ee("value",n.rotationRangeLabel()),F(2),ee("popoverId",s.popoverId())("anchorName",s.anchorName())}},dependencies:[H_,q_,Q_,G_],encapsulation:2})}}return t})();var Bp=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=De({type:t,selectors:[["cc-domain-toolbox"]],features:[Jl([{provide:f_,useExisting:p_}])],decls:2,vars:0,consts:[[1,"join","shadow-md","bg-base-100","rounded"],["view","domain"]],template:function(i,n){i&1&&(Y(0,"div",0),Fe(1,"cc-toolbox-screenshot-button",1),X())},dependencies:[c_],encapsulation:2})}}return t})();function eD(t,e){if(t&1){let r=Ut();Y(0,"cc-floating-menu",1),Te("dismissed",function(){$e(r);let n=we();return Qe(n.close())}),Y(1,"button",2),Te("click",function(){$e(r);let n=we();return Qe(n.copyWord())}),Fe(2,"i"),Y(3,"span",3),oe(4),X()(),Fe(5,"div",4),Y(6,"cc-context-menu-item",5),Te("itemClick",function(){$e(r);let n=we();return Qe(n.searchForThisWord())}),oe(7," Search word "),X(),Y(8,"cc-context-menu-item",6),Te("itemClick",function(){$e(r);let n=we();return Qe(n.hideThisWord())}),oe(9," Hide word "),X()()}if(t&2){let r=we();ee("anchor",e),F(2),Og(Rg("w-4 text-center ",r.wasWordCopied()?"fa-solid fa-check text-success":"fa-regular fa-copy")),F(2),kt(r.rightClickedWord()?.word)}}var zp=(()=>{class t{constructor(){this.clipboard=V(ts),this.rightClickedWord=_e(null),this.searchWord=Mt(),this.hideWord=Mt(),this.closed=Mt(),this.anchor=ue(()=>{let r=this.rightClickedWord();return r?{x:r.clientX,y:r.clientY}:null}),this.wasWordCopied=this.clipboard.copied}searchForThisWord(){let r=this.rightClickedWord();r&&this.searchWord.emit(r.word),this.close()}hideThisWord(){let r=this.rightClickedWord();r&&this.hideWord.emit(r.word),this.close()}async copyWord(){let r=this.rightClickedWord();r&&await this.clipboard.copy(r.word)}close(){this.closed.emit()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=De({type:t,selectors:[["cc-domain-word-menu"]],inputs:{rightClickedWord:[1,"rightClickedWord"]},outputs:{searchWord:"searchWord",hideWord:"hideWord",closed:"closed"},decls:1,vars:1,consts:[["data-testid","domain-word-menu",1,"w-56",3,"anchor"],["data-testid","domain-word-menu",1,"w-56",3,"dismissed","anchor"],["type","button","title","Copy word to clipboard","data-testid","domain-word-menu-copy",1,"flex","w-full","items-center","gap-3","px-4","py-2.5","text-left","hover:bg-base-200",3,"click"],[1,"truncate","text-sm","font-semibold","tracking-wide"],[1,"my-1","border-t","border-base-300"],["icon","fa-solid fa-magnifying-glass","hoverHint","Put this word into the explorer's word search",3,"itemClick"],["icon","fa-solid fa-eye-slash","hoverHint","Drop this word from the cloud and the word list",3,"itemClick"]],template:function(i,n){if(i&1&&ot(0,eD,10,5,"cc-floating-menu",0),i&2){let o;at((o=n.anchor())?0:-1,o)}},dependencies:[Vg,Wg],encapsulation:2})}}return t})();function du(t,e){if(e.length===0)return t;let r=new Set(e);return t.filter(i=>!r.has(i.text))}var tD=Gi(m_,zo,du),On=(()=>{class t{constructor(){this.store=V(Ot),this.projectWords$=this.store.select(tD)}occurrencesOf(r,i){return this.store.select(__(i,r))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=He({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function is(t,e){let r=e.trim().toLowerCase();return t.filter(({text:i})=>i.toLowerCase().includes(r))}var ir=(function(t){return t.OCCURRENCES="Occurrences",t.NAME="Name",t.RELEVANCE="Relevance",t})(ir||{}),rD={[ir.OCCURRENCES]:(t,e)=>t.frequency-e.frequency,[ir.NAME]:(t,e)=>t.text.localeCompare(e.text),[ir.RELEVANCE]:(t,e)=>yi(t,Mn.tfidf)-yi(e,Mn.tfidf)};function J_(t,{option:e,ascending:r}){let i=rD[e],n=r?1:-1;return[...t].sort((o,a)=>n*i(o,a)||o.text.localeCompare(a.text))}function ty(t){let{rowCount:e,rowHeight:r,scrolledPast:i,viewportHeight:n}=t;if(e===0)return iD(t);if(r<=0||n<=0)return nD(t);let o=ey(Math.floor(i/r)-6,0,e-1),a=ey(Math.floor((i+n)/r)+6,o,e-1);return{firstIndex:o,lastIndex:a,topSpacerHeight:o*r,bottomSpacerHeight:(e-a-1)*r}}function iD({rowCount:t}){return{firstIndex:0,lastIndex:t-1,topSpacerHeight:0,bottomSpacerHeight:0}}function nD({rowCount:t,rowHeight:e}){let r=Math.min(50,t)-1;return{firstIndex:0,lastIndex:r,topSpacerHeight:0,bottomSpacerHeight:(t-r-1)*Math.max(e,0)}}function ey(t,e,r){return Math.min(Math.max(t,e),r)}function hu(t){let e=t*100;return e>0&&e<1?"<1%":`${Math.round(e)}%`}var ry=(()=>{class t{constructor(){this.contextMenu=V(A_),this.node=_e.required(),this.word=_e.required(),this.isExpanded=_e(!1),this.isSelected=_e(!1),this.clicked=Mt(),this.isExpandable=ue(()=>this.node().children.length>0),this.isMarked=ue(()=>this.contextMenu.isMarked(this.node().path)),this.decoration=ue(()=>`${hu(this.node().share)} of "${this.word()}" \xB7 ${uu(this.node().count)}`)}openContextMenu(r){this.contextMenu.openFor(this.node().path,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=De({type:t,selectors:[["cc-domain-word-occurrence-row"]],hostAttrs:[1,"block"],hostVars:1,hostBindings:function(i,n){i&1&&Te("click",function(){return n.clicked.emit()})("contextmenu",function(a){return n.openContextMenu(a)}),i&2&&Fo("aria-expanded",n.isExpandable()?n.isExpanded():null)},inputs:{node:[1,"node"],word:[1,"word"],isExpanded:[1,"isExpanded"],isSelected:[1,"isSelected"]},outputs:{clicked:"clicked"},decls:4,vars:7,consts:[["barTone","neutral",3,"isSelected","isMarked","barShare","decoration"],[3,"isFolder","isOpen"],[1,"node-name","ml-1","flex-1","truncate"]],template:function(i,n){i&1&&(Y(0,"cc-explorer-row",0),Fe(1,"cc-explorer-tree-item-icon",1),Y(2,"span",2),oe(3),X()()),i&2&&(ee("isSelected",n.isSelected())("isMarked",n.isMarked())("barShare",n.node().share)("decoration",n.decoration()),F(),ee("isFolder",n.node().isFolder)("isOpen",n.isExpanded()),F(2),kt(n.node().name))},dependencies:[fu,C_],encapsulation:2})}}return t})();var iy=t=>({$implicit:t}),oD=(t,e)=>e.path;function aD(t,e){if(t&1&&(Y(0,"p",1),oe(1),X()),t&2){let r=we();F(),Br("",r.word()," does not occur in any file.")}}function sD(t,e){t&1&&Ip(0)}function lD(t,e){if(t&1&&(Y(0,"div",2),jl(1,sD,1,0,"ng-container",3),X()),t&2){let r=we(),i=En(3);F(),ee("ngTemplateOutlet",i)("ngTemplateOutletContext",Ap(2,iy,r.topLevelOccurrences()))}}function uD(t,e){t&1&&Ip(0)}function fD(t,e){if(t&1&&jl(0,uD,1,0,"ng-container",3),t&2){let r=we().$implicit;we(2);let i=En(3);ee("ngTemplateOutlet",i)("ngTemplateOutletContext",Ap(2,iy,r.children))}}function cD(t,e){if(t&1){let r=Ut();Y(0,"cc-domain-word-occurrence-row",4),Te("clicked",function(){let n=$e(r).$implicit,o=we(2);return Qe(o.clickRow(n))}),X(),Y(1,"div",5),ot(2,fD,1,4,"ng-container"),X()}if(t&2){let r=e.$implicit,i=we(2);ee("node",r)("word",i.word())("isExpanded",i.isExpanded(r.path))("isSelected",r.path===i.selectedNodePath()),F(2),at(i.isExpanded(r.path)?2:-1)}}function pD(t,e){if(t&1&&Qr(0,cD,3,5,null,null,oD),t&2){let r=e.$implicit;Jr(r)}}var dD=null,ny=(()=>{class t{constructor(){this.readStore=V(On),this.word=_e.required(),this.selectedNodePath=_e(null),this.nodeClicked=Mt(),this.occurrences=St(tu(this.word).pipe(Xl(r=>this.readStore.occurrencesOf(r,dD))),{initialValue:null}),this.topLevelOccurrences=ue(()=>this.occurrences()?.children??[]),this.expandedPaths=Dt(new Set)}isExpanded(r){return this.expandedPaths().has(r)}clickRow(r){r.children.length>0&&this.toggle(r.path),this.nodeClicked.emit(r.path)}toggle(r){let i=new Set(this.expandedPaths());i.delete(r)||i.add(r),this.expandedPaths.set(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=De({type:t,selectors:[["cc-domain-word-occurrence-tree"]],hostAttrs:[1,"block"],inputs:{word:[1,"word"],selectedNodePath:[1,"selectedNodePath"]},outputs:{nodeClicked:"nodeClicked"},decls:4,vars:1,consts:[["subtree",""],["data-testid","domain-word-occurrences-empty",1,"px-3","py-2","text-sm","opacity-60"],["data-testid","domain-word-occurrences-tree"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"clicked","node","word","isExpanded","isSelected"],[1,"pl-3"]],template:function(i,n){i&1&&(ot(0,aD,2,1,"p",1)(1,lD,2,4,"div",2),jl(2,pD,2,0,"ng-template",null,0,Ag)),i&2&&at(n.topLevelOccurrences().length===0?0:1)},dependencies:[Ng,ry],encapsulation:2})}}return t})();var hD=t=>`domain-word-row-${t}`,oy=(()=>{class t{constructor(){this.word=_e.required(),this.share=_e(0),this.isExpanded=_e(!1),this.toggled=Mt(),this.rowId=ue(()=>hD(this.word().text)),this.decoration=ue(()=>`${hu(this.share())} of all words \xB7 ${uu(this.word().frequency)}`)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=De({type:t,selectors:[["cc-domain-word-row"]],hostAttrs:[1,"block"],hostVars:3,hostBindings:function(i,n){i&1&&Te("click",function(){return n.toggled.emit()}),i&2&&(Hi("id",n.rowId()),Fo("data-testid",n.rowId())("aria-expanded",n.isExpanded()))},inputs:{word:[1,"word"],share:[1,"share"],isExpanded:[1,"isExpanded"]},outputs:{toggled:"toggled"},decls:4,vars:5,consts:[[1,"hover:bg-base-200",3,"barShare","decoration"],["aria-hidden","true",1,"fa","fa-font","text-xs","opacity-70"],[1,"node-name","ml-1","flex-1","truncate"]],template:function(i,n){i&1&&(Y(0,"cc-explorer-row",0),Fe(1,"span",1),Y(2,"span",2),oe(3),X()()),i&2&&(ee("barShare",n.share())("decoration",n.decoration()),F(2),Ql("font-semibold",n.isExpanded()),F(),kt(n.word().text))},dependencies:[fu],encapsulation:2})}}return t})();var ay=28,vD="cc-domain-word-row",Up={scrolledPast:0,viewportHeight:0,rowHeight:ay},vu=class{constructor(){this.scrollHost=null,this.measured=Dt(Up,{equal:(e,r)=>e.scrolledPast===r.scrolledPast&&e.viewportHeight===r.viewportHeight&&e.rowHeight===r.rowHeight}),this.geometry=this.measured.asReadonly(),this.remeasure=()=>this.measure()}attachTo(e,r){if(!(this.host===e&&this.scrollHost===r)){if(this.stopObserving(),this.host=e,this.scrollHost=r,!r){this.measured.set(Up);return}r.addEventListener("scroll",this.remeasure,{passive:!0}),typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(this.remeasure),this.resizeObserver.observe(e),this.resizeObserver.observe(r)),this.measure()}}measure(){let{host:e,scrollHost:r}=this;if(!(!e||!r)){if(!r.contains(e)){this.measured.set(Up);return}this.measured.set({scrolledPast:Math.max(0,r.getBoundingClientRect().top-e.getBoundingClientRect().top),viewportHeight:r.clientHeight,rowHeight:e.querySelector(vD)?.offsetHeight||ay})}}dispose(){this.stopObserving(),this.host=void 0,this.scrollHost=null}stopObserving(){this.scrollHost?.removeEventListener("scroll",this.remeasure),this.resizeObserver?.disconnect(),this.resizeObserver=void 0}};var mD=(t,e)=>e.text;function gD(t,e){if(t&1){let r=Ut();Y(0,"div",0)(1,"div",1)(2,"span",2),oe(3,"Pinned"),X(),Y(4,"button",3),Te("click",function(){let n=$e(r),o=we();return Qe(o.wordToggled.emit(n.text))}),Fe(5,"i",4),X()(),Y(6,"cc-domain-word-row",5),Te("toggled",function(){let n=$e(r),o=we();return Qe(o.wordToggled.emit(n.text))}),X(),Y(7,"div",6)(8,"cc-domain-word-occurrence-tree",7),Te("nodeClicked",function(n){$e(r);let o=we();return Qe(o.nodeClicked.emit(n))}),X()()()}if(t&2){let r=e,i=we();F(6),ee("word",r)("share",i.shareOf(r))("isExpanded",!0),F(2),ee("word",r.text)("selectedNodePath",i.selectedNodePath())}}function _D(t,e){t&1&&(Y(0,"p",8),oe(1),X()),t&2&&(F(),kt(e))}function yD(t,e){if(t&1&&ot(0,_D,2,1,"p",8),t&2){let r,i=we();at((r=i.emptyHint())?0:-1,r)}}function xD(t,e){if(t&1){let r=Ut();Y(0,"cc-domain-word-row",10),Te("toggled",function(){let n=$e(r).$implicit,o=we(2);return Qe(o.wordToggled.emit(n.text))}),X()}if(t&2){let r=e.$implicit,i=we(2);ee("word",r)("share",i.shareOf(r))}}function SD(t,e){if(t&1&&(Fe(0,"div"),Qr(1,xD,1,2,"cc-domain-word-row",9,mD),Fe(3,"div")),t&2){let r=we();Dn("height",r.window().topSpacerHeight,"px"),F(),Jr(r.renderedWords()),F(2),Dn("height",r.window().bottomSpacerHeight,"px")}}var Vp=(()=>{class t{constructor(){this.readStore=V(On),this.hostElement=V(Eg),this.scrollHostService=V(b_),this.viewport=new vu,this.query=_e(""),this.sorting=_e({option:ir.OCCURRENCES,ascending:!1}),this.expandedWord=_e(null),this.selectedNodePath=_e(null),this.wordToggled=Mt(),this.nodeClicked=Mt(),this.projectWords=St(this.readStore.projectWords$,{requireSync:!0}),this.pinnedWord=ue(()=>this.projectWords().find(r=>r.text===this.expandedWord())??null),this.matchedWords=ue(()=>is(this.projectWords(),this.query())),this.visibleWords=ue(()=>J_(this.matchedWords().filter(r=>r.text!==this.expandedWord()),this.sorting())),this.emptyHint=ue(()=>this.projectWords().length===0?"This project carries no words.":this.matchedWords().length===0?`No word contains "${this.query().trim()}".`:null),this.geometry=ue(()=>Gl(Hl({},this.viewport.geometry()),{rowCount:this.visibleWords().length})),this.window=ue(()=>ty(this.geometry())),this.renderedWords=ue(()=>{let{firstIndex:r,lastIndex:i}=this.window();return this.visibleWords().slice(r,i+1)}),this.totalOccurrences=ue(()=>this.projectWords().reduce((r,i)=>r+i.frequency,0)),ko(()=>this.viewport.attachTo(this.hostElement.nativeElement,this.scrollHostService.element()))}ngOnDestroy(){this.viewport.dispose()}shareOf(r){let i=this.totalOccurrences();return i>0?r.frequency/i:0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=De({type:t,selectors:[["cc-domain-word-list"]],hostAttrs:[1,"block"],inputs:{query:[1,"query"],sorting:[1,"sorting"],expandedWord:[1,"expandedWord"],selectedNodePath:[1,"selectedNodePath"]},outputs:{wordToggled:"wordToggled",nodeClicked:"nodeClicked"},decls:3,vars:2,consts:[["data-testid","domain-word-pin",1,"sticky","top-0","z-10","mb-1","rounded-md","border","border-base-300","bg-base-100","shadow-sm"],[1,"flex","items-center","gap-1","px-2","pt-1"],[1,"flex-1","text-[10px]","uppercase","tracking-wide","opacity-60"],["type","button","title","Unpin this word","data-testid","domain-word-unpin",1,"btn","btn-ghost","btn-xs","btn-square","shrink-0",3,"click"],[1,"fa","fa-times"],[3,"toggled","word","share","isExpanded"],[1,"max-h-64","overflow-y-auto","pl-3"],[3,"nodeClicked","word","selectedNodePath"],["data-testid","domain-word-list-empty",1,"px-3","py-4","text-sm","opacity-60"],[3,"word","share"],[3,"toggled","word","share"]],template:function(i,n){if(i&1&&(ot(0,gD,9,5,"div",0),ot(1,yD,1,1)(2,SD,4,4)),i&2){let o;at((o=n.pinnedWord())?0:-1,o),F(),at(n.visibleWords().length===0?1:2)}},dependencies:[oy,ny],encapsulation:2})}}return t})();var ns=(()=>{class t{constructor(){this.store=V(Ot),this.hiddenWords=St(this.store.select(zo),{initialValue:[]})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=He({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var os=(()=>{class t{constructor(){this.store=V(Ot)}hide(r){this.store.dispatch($g({word:r}))}restore(r){this.store.dispatch(Qg({word:r}))}restoreAll(){this.store.dispatch(Jg())}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=He({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var wD=["popover"];function CD(t,e){t&1&&(Je(0,"div",6),oe(1," Right-click a word in the cloud to drop it from the cloud and the word list. "),je())}function TD(t,e){if(t&1){let r=Ut();Je(0,"li",8)(1,"span",10),oe(2),je(),Je(3,"button",11),_i("click",function(){let n=$e(r).$implicit,o=we(2);return Qe(o.restore(n))}),es(4,"i",12),je()()}if(t&2){let r=e.$implicit;F(2),kt(r),F(),Hi("title","Show "+r+" again"),Fo("aria-label","Show "+r+" again")("data-testid","domain-restore-"+r)}}function bD(t,e){if(t&1){let r=Ut();Je(0,"ul",7),Qr(1,TD,5,4,"li",8,Kl),je(),Je(3,"button",9),_i("click",function(){$e(r);let n=we();return Qe(n.restoreAll())}),oe(4," Show all words again "),je()}if(t&2){let r=we();F(),Jr(r.hiddenWords())}}var Wp=(()=>{class t{constructor(){this.readStore=V(ns),this.writeStore=V(os),this.popoverId=_e.required(),this.anchorName=_e.required(),this.hiddenWords=ue(()=>[...this.readStore.hiddenWords()].sort((r,i)=>r.localeCompare(i))),this.popover=eu.required("popover")}closePopover(){this.popover().nativeElement.hidePopover()}restore(r){this.writeStore.restore(r)}restoreAll(){this.writeStore.restoreAll()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=De({type:t,selectors:[["cc-hidden-words-popover"]],viewQuery:function(i,n){i&1&&Zl(n.popover,wD,5),i&2&&$l()},hostAttrs:[1,"contents"],inputs:{popoverId:[1,"popoverId"],anchorName:[1,"anchorName"]},decls:9,vars:4,consts:[["popover",""],["popover","",1,"dropdown","p-2","rounded-box","bg-base-100","shadow-lg","w-72",3,"id"],[1,"flex","items-center","justify-between","border-b","border-base-300","pb-1","mb-1"],[1,"text-sm","font-semibold","uppercase","tracking-wide"],["type","button","title","Close","data-testid","domain-hidden-words-close-button",1,"btn","btn-ghost","btn-xs","btn-square",3,"click"],[1,"fa","fa-times"],["data-testid","domain-hidden-words-empty",1,"px-2","py-3","text-xs","opacity-60"],["data-testid","domain-hidden-words-list",1,"m-0","flex","max-h-[60vh]","list-none","flex-col","overflow-y-auto","p-0"],[1,"flex","items-center","gap-2","rounded","py-1","pl-2","pr-1","hover:bg-base-200"],["type","button","data-testid","domain-restore-all-words",1,"btn","btn-sm","btn-block","mt-1",3,"click"],[1,"min-w-0","flex-1","truncate","text-sm"],["type","button",1,"btn","btn-ghost","btn-xs","btn-square",3,"click","title"],[1,"fa","fa-eye"]],template:function(i,n){i&1&&(Je(0,"div",1,0)(2,"div",2)(3,"span",3),oe(4,"Hidden Words"),je(),Je(5,"button",4),_i("click",function(){return n.closePopover()}),es(6,"i",5),je()(),ot(7,CD,2,0,"div",6)(8,bD,5,0),je()),i&2&&(Dn("position-anchor","--"+n.anchorName()),Hi("id",n.popoverId()),F(7),at(n.hiddenWords().length===0?7:8))},encapsulation:2})}}return t})();var sy=(()=>{class t{constructor(){this.store=V(Ot)}wordsForSelectedNode(r){return this.store.select(Gi(g_(r),zo,du))}selectedNodeName(r){return ru(r,Lg.rootName)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=He({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ss(t,e,r){if(r<=0)return[];let i=[];for(let n=0;n<t.length;n++){let o={word:t[n],value:yi(t[n],e),index:n};if(i.length<r){ED(i,i.push(o)-1);continue}as(o,i[0])&&(i[0]=o,DD(i,0))}return i.sort((n,o)=>as(n,o)?-1:1),i.map(({word:n})=>n)}function as(t,e){return t.value>e.value||t.value===e.value&&t.index<e.index}function ED(t,e){let r=e;for(;r>0;){let i=r-1>>1;if(!as(t[i],t[r]))return;uy(t,r,i),r=i}}function DD(t,e){let r=e;for(;MD(t,r);){let i=OD(t,r);if(i===r)return;uy(t,r,i),r=i}}var MD=(t,e)=>ly(e)<t.length;function OD(t,e){let r=ly(e),i=r+1,n=e;return as(t[n],t[r])&&(n=r),i<t.length&&as(t[n],t[i])&&(n=i),n}var ly=t=>2*t+1;function uy(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}var ID='<svg xmlns="http://www.w3.org/2000/svg" width="640" height="563" viewBox="58.7 0 64 56.3"><path fill="#000" d="M81.9,20.3h0c0-6.9,3.5-13,8.8-16.7C87.4,1.3,83.4,0,79.1,0,67.9,0,58.8,9.1,58.7,20.3h0v36h17.6V20.4h0c0-1.5,1.2-2.8,2.8-2.8s2.8,1.2,2.8,2.8h0Z"/><path fill="#000" d="M122.7,20.3c0-11.2-9.2-20.3-20.4-20.3s-20.3,9.1-20.4,20.3h0v36h17.6V20.4h0c0-1.1.6-2.1,1.6-2.5,2-.9,4,.6,4,2.5h0v35.9h17.6V20.3h0Z"/></svg>',fy=`data:image/svg+xml,${encodeURIComponent(ID)}`;function Hp(t){return new Promise((e,r)=>{if(typeof Image>"u"){r(new Error("Image is not available in this environment"));return}let i=new Image;i.onload=()=>e(i),i.onerror=()=>r(new Error("Failed to load the word-cloud mask image")),i.src=t})}var Gp="#e6007e",Yp="#0030ff",RD="--wordCloudColorStart",AD="--wordCloudColorEnd",ND=/^#[0-9A-Fa-f]{6}$/;function py(){if(typeof document>"u"||typeof getComputedStyle>"u")return[Gp,Yp];let t=getComputedStyle(document.documentElement);return[cy(t,RD,Gp),cy(t,AD,Yp)]}function cy(t,e,r){let i=t.getPropertyValue(e).trim();return Xp(i,r)}function Xp(t,e){return ND.test(t)?t:e}function dy(t,e,r){let i=Math.min(1,Math.max(0,r)),n=iu.convertHexToColorObject(Xp(t,Gp)),o=iu.convertHexToColorObject(Xp(e,Yp));return iu.convertColorToHex(new Pg().lerpColors(n,o,i))}function hy(t,e,r,i){let[n,o]=t;if(r||!i||e.length===0)return t;let a=Math.max(...e.map(u=>u.text.length)),s=i*.9/(a*.62),l=Math.max(Math.min(o,Math.floor(s)),1);return[Math.min(n,l),l]}var LD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function vy(){return({name:t,data:e})=>{let r=[`<b>${PD(t)}</b>`,`Frequency: ${e.frequency}`];return e.tfidf!==void 0&&r.push(`TF-IDF: ${e.tfidf.toFixed(3)}`),r.join("<br/>")}}var PD=t=>t.replaceAll(/[&<>"']/g,e=>LD[e]);var kD=31,my=1e3;function gy(t,e,r){return dy(e,r,FD(t))}function FD(t){let e=0;for(let r of t)e=(e*kD+(r.codePointAt(0)??0))%my;return e/my}var BD=10,zD="#333",UD='Roboto, "Helvetica Neue", sans-serif',VD=.55;function yy(t,e,r={}){let i=hy(e.sizeRange,t,e.drawOutOfBound,r.containerWidth),{shape:n,maskImage:o,keepAspect:a}=HD(e.shape,r.maskImage);return{aria:{enabled:!0},tooltip:{show:!0,formatter:vy()},series:[{type:"wordCloud",shape:n,maskImage:o,keepAspect:a,left:"center",top:"center",width:`${.9*100}%`,height:`${.9*100}%`,sizeRange:i,rotationRange:e.rotationRange,rotationStep:e.rotationStep,gridSize:e.gridSize,drawOutOfBound:e.drawOutOfBound,shrinkToFit:e.shrinkToFit,layoutAnimation:r.layoutAnimation??!0,textStyle:{fontFamily:UD,fontWeight:"bold"},emphasis:{textStyle:{textShadowBlur:BD,textShadowColor:zD}},blur:{textStyle:{opacity:VD}},data:WD(t,e)}]}}function WD(t,e){let[r,i]=py();return t.map(n=>({name:n.text,value:yi(n,e.sizingMode),frequency:n.frequency,tfidf:n.tfidf,textStyle:{color:gy(n.text,r,i)}}))}function HD(t,e){return t===ei.logoM||t===ei.custom?{shape:ei.circle,maskImage:e,keepAspect:!0}:{shape:t,maskImage:void 0,keepAspect:!1}}var qp=function(t,e){return qp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},qp(t,e)};function Oe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");qp(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var jp=function(t,e){return jp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},jp(t,e)};function ae(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");jp(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var mu=12,GD="sans-serif",Er=mu+"px "+GD,YD=20,XD=100,qD="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function jD(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32),n=(t.charCodeAt(r)-YD)/XD;e[i]=n}return e}var KD=jD(qD),st={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,i){if(!t){var n=st.createCanvas();t=n&&n.getContext("2d")}if(t)return e!==i&&(e=t.font=i||Er),t.measureText(r);r=r||"",i=i||Er;var o=/((?:\d+)?\.?\d*)px/.exec(i),a=o&&+o[1]||mu,s=0;if(i.indexOf("mono")>=0)s=a*r.length;else for(var l=0;l<r.length;l++){var u=KD[r[l]];s+=u==null?a:u*a}return{width:s}}})(),loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}};var wy=qt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Cy=qt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),us=Object.prototype.toString,_u=Array.prototype,ZD=_u.forEach,$D=_u.filter,Zp=_u.slice,QD=_u.map,xy=function(){}.constructor,gu=xy?xy.prototype:null,$p="__proto__",Kp=2311,JD=Math.pow(2,53)-1;function yu(){return Kp>=JD&&(Kp=0),Kp++}function Ho(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function ie(t){if(t==null||typeof t!="object")return t;var e=t,r=us.call(t);if(r==="[object Array]"){if(!ls(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=ie(t[i])}}else if(Cy[r]){if(!ls(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var i=0,n=t.length;i<n;i++)e[i]=t[i]}}}else if(!wy[r]&&!ls(t)&&!Wo(t)){e={};for(var a in t)t.hasOwnProperty(a)&&a!==$p&&(e[a]=ie(t[a]))}return e}function Le(t,e,r){if(!B(e)||!B(t))return r?ie(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==$p){var n=t[i],o=e[i];B(o)&&B(n)&&!L(o)&&!L(n)&&!Wo(o)&&!Wo(n)&&!Sy(o)&&!Sy(n)&&!ls(o)&&!ls(n)?Le(n,o,r):(r||!(i in t))&&(t[i]=ie(e[i]))}return t}function N(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==$p&&(t[r]=e[r]);return t}function Ty(t,e,r){t=t||{};for(var i=0;i<r.length;i++){var n=r[i];t[n]=e[n]}return t}function ye(t,e,r){for(var i=xe(e),n=0,o=i.length;n<o;n++){var a=i[n];(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}return t}var lU=st.createCanvas;function pe(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function xu(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype,t.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e}function Xt(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var o=i[n];o!=="constructor"&&(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}else ye(t,e,r)}function vt(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function C(t,e,r){if(t&&e)if(t.forEach&&t.forEach===ZD)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(r,t[o],o,t)}function K(t,e,r){if(!t)return[];if(!e)return Su(t);if(t.map&&t.map===QD)return t.map(e,r);for(var i=[],n=0,o=t.length;n<o;n++)i.push(e.call(r,t[n],n,t));return i}function qt(t,e,r,i){if(t&&e){for(var n=0,o=t.length;n<o;n++)r=e.call(i,r,t[n],n,t);return r}}function Ge(t,e,r){if(!t)return[];if(!e)return Su(t);if(t.filter&&t.filter===$D)return t.filter(e,r);for(var i=[],n=0,o=t.length;n<o;n++)e.call(r,t[n],n,t)&&i.push(t[n]);return i}function xe(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function eM(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(Zp.call(arguments)))}}var Me=gu&&$(gu.bind)?gu.call.bind(gu.bind):eM;function et(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(Zp.call(arguments)))}}function L(t){return Array.isArray?Array.isArray(t):us.call(t)==="[object Array]"}function $(t){return typeof t=="function"}function k(t){return typeof t=="string"}function fs(t){return us.call(t)==="[object String]"}function be(t){return typeof t=="number"}function B(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Sy(t){return!!wy[us.call(t)]}function tt(t){return!!Cy[us.call(t)]}function Wo(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Xi(t){return t.colorStops!=null}function by(t){return t.image!=null}function Go(t){return t!==t}function Yo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,i=t.length;r<i;r++)if(t[r]!=null)return t[r]}function Q(t,e){return t??e}function zr(t,e,r){return t??e??r}function Su(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Zp.apply(t,e)}function Xo(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function mt(t,e){if(!t)throw new Error(e)}function Ft(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Ey="__ec_primitive__";function In(t){t[Ey]=!0}function ls(t){return t[Ey]}var tM=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return xe(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&e(r[i],i)},t})(),Dy=typeof Map=="function";function rM(){return Dy?new Map:new tM}var iM=(function(){function t(e){var r=L(e);this.data=rM();var i=this;e instanceof t?e.each(n):e&&C(e,n);function n(o,a){r?i.set(o,a):i.set(a,o)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(i,n){e.call(r,i,n)})},t.prototype.keys=function(){var e=this.data.keys();return Dy?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function Z(t){return new iM(t)}function My(t,e){for(var r=new t.constructor(t.length+e.length),i=0;i<t.length;i++)r[i]=t[i];for(var n=t.length,i=0;i<e.length;i++)r[i+n]=e[i];return r}function qi(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}return e&&N(r,e),r}function wu(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function gt(t,e){return t.hasOwnProperty(e)}function Ke(){}var Oy=180/Math.PI,uU=Number.EPSILON||Math.pow(2,-52);function jt(){return[1,0,0,1,0,0]}function xi(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function cs(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ji(t,e,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],o=e[0]*r[2]+e[2]*r[3],a=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function ps(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function qo(t,e,r,i){i===void 0&&(i=[0,0]);var n=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*f,t[1]=-n*f+s*c,t[2]=o*c+l*f,t[3]=-o*f+c*l,t[4]=c*(a-i[0])+f*(u-i[1])+i[0],t[5]=c*(u-i[1])-f*(a-i[0])+i[1],t}function Iy(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function ti(t,e){var r=e[0],i=e[2],n=e[4],o=e[1],a=e[3],s=e[5],l=r*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=r*l,t[4]=(i*s-a*n)*l,t[5]=(o*n-r*s)*l,t):null}function Ki(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function Ry(t){return[t[0],t[1]]}function Cu(t,e,r){return t[0]=e,t[1]=r,t}function Qp(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function Ay(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function nM(t){return Math.sqrt(oM(t))}function oM(t){return t[0]*t[0]+t[1]*t[1]}function Tu(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function Ny(t,e){var r=nM(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function bu(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var hs=bu;function aM(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Rn=aM;function Eu(t,e,r,i){return t[0]=e[0]+i*(r[0]-e[0]),t[1]=e[1]+i*(r[1]-e[1]),t}function nr(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[2]*n+r[4],t[1]=r[1]*i+r[3]*n+r[5],t}function Si(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function wi(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var Ly=xi,Py=5e-5;function An(t){return t>Py||t<-Py}var Nn=[],jo=[],Jp=jt(),ed=Math.abs,ky=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return sM(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return An(this.rotation)||An(this.x)||An(this.y)||An(this.scaleX-1)||An(this.scaleY-1)||An(this.skewX)||An(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||e)){i&&(Ly(i),this.invTransform=null);return}i=i||jt(),r?this.getLocalTransform(i):Ly(i),e&&(r?ji(i,e,i):cs(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||jt(),ti(this.invTransform,i)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Nn);var i=Nn[0]<0?-1:1,n=Nn[1]<0?-1:1,o=((Nn[0]-i)*r+i)/Nn[0]||0,a=((Nn[1]-n)*r+n)/Nn[1]||0;e[0]*=o,e[1]*=o,e[2]*=a,e[3]*=a}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),o=Math.PI/2+n-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(o),r=Math.sqrt(r),this.skewX=o,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||jt(),ji(jo,e.invTransform,r),r=jo);var i=this.originX,n=this.originY;(i||n)&&(Jp[4]=i,Jp[5]=n,ji(jo,r,Jp),jo[4]-=i,jo[5]-=n,r=jo),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var i=[e,r],n=this.invTransform;return n&&nr(i,i,n),i},t.prototype.transformCoordToGlobal=function(e,r){var i=[e,r],n=this.transform;return n&&nr(i,i,n),i},t.prototype.getLineScale=function(){var e=this.transform;return e&&ed(e[0]-1)>1e-10&&ed(e[3]-1)>1e-10?Math.sqrt(ed(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Zo(this,e)},t.getLocalTransform=function(e,r){r=r||[];var i=e.originX||0,n=e.originY||0,o=e.scaleX,a=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var h=i+s,g=n+l;r[4]=-h*o-p*g*a,r[5]=-g*a-d*h*o}else r[4]=r[5]=0;return r[0]=o,r[3]=a,r[1]=d*o,r[2]=p*a,u&&qo(r,r,u),r[4]+=i+f,r[5]+=n+c,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),sM=ky.getLocalTransform;var Ko=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Zo(t,e){return Ty(t,e,Ko)}var $i=ky;var Du={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)))},elasticOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Du.bounceOut(1-t)},bounceOut:function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375},bounceInOut:function(t){return t<.5?Du.bounceIn(t*2)*.5:Du.bounceOut(t*2-1)*.5+.5}},Mu=Du;var Ou=Math.pow,Ji=Math.sqrt,Ru=1e-8,By=1e-4,Fy=Ji(3),Iu=1/3,ri=Ki(),Dr=Ki(),$o=Ki();function Qi(t){return t>-Ru&&t<Ru}function zy(t){return t>Ru||t<-Ru}function lt(t,e,r,i,n){var o=1-n;return o*o*(o*t+3*n*e)+n*n*(n*i+3*o*r)}function td(t,e,r,i,n){var o=1-n;return 3*(((e-t)*o+2*(r-e)*n)*o+(i-r)*n*n)}function Au(t,e,r,i,n,o){var a=i+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-n,f=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(Qi(f)&&Qi(c))if(Qi(s))o[0]=0;else{var h=-l/s;h>=0&&h<=1&&(o[d++]=h)}else{var g=c*c-4*f*p;if(Qi(g)){var v=c/f,h=-s/a+v,m=-v/2;h>=0&&h<=1&&(o[d++]=h),m>=0&&m<=1&&(o[d++]=m)}else if(g>0){var _=Ji(g),y=f*s+1.5*a*(-c+_),x=f*s+1.5*a*(-c-_);y<0?y=-Ou(-y,Iu):y=Ou(y,Iu),x<0?x=-Ou(-x,Iu):x=Ou(x,Iu);var h=(-s-(y+x))/(3*a);h>=0&&h<=1&&(o[d++]=h)}else{var S=(2*f*s-3*a*c)/(2*Ji(f*f*f)),w=Math.acos(S)/3,b=Ji(f),E=Math.cos(w),h=(-s-2*b*E)/(3*a),m=(-s+b*(E+Fy*Math.sin(w)))/(3*a),T=(-s+b*(E-Fy*Math.sin(w)))/(3*a);h>=0&&h<=1&&(o[d++]=h),m>=0&&m<=1&&(o[d++]=m),T>=0&&T<=1&&(o[d++]=T)}}return d}function Nu(t,e,r,i,n){var o=6*r-12*e+6*t,a=9*e+3*i-3*t-9*r,s=3*e-3*t,l=0;if(Qi(a)){if(zy(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(Qi(f))n[0]=-o/(2*a);else if(f>0){var c=Ji(f),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function Qo(t,e,r,i,n,o){var a=(e-t)*n+t,s=(r-e)*n+e,l=(i-r)*n+r,u=(s-a)*n+a,f=(l-s)*n+s,c=(f-u)*n+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=f,o[6]=l,o[7]=i}function Lu(t,e,r,i,n,o,a,s,l,u,f){var c,p=.005,d=1/0,h,g,v,m;ri[0]=l,ri[1]=u;for(var _=0;_<1;_+=.05)Dr[0]=lt(t,r,n,a,_),Dr[1]=lt(e,i,o,s,_),v=Rn(ri,Dr),v<d&&(c=_,d=v);d=1/0;for(var y=0;y<32&&!(p<By);y++)h=c-p,g=c+p,Dr[0]=lt(t,r,n,a,h),Dr[1]=lt(e,i,o,s,h),v=Rn(Dr,ri),h>=0&&v<d?(c=h,d=v):($o[0]=lt(t,r,n,a,g),$o[1]=lt(e,i,o,s,g),m=Rn($o,ri),g<=1&&m<d?(c=g,d=m):p*=.5);return f&&(f[0]=lt(t,r,n,a,c),f[1]=lt(e,i,o,s,c)),Ji(d)}function Uy(t,e,r,i,n,o,a,s,l){for(var u=t,f=e,c=0,p=1/l,d=1;d<=l;d++){var h=d*p,g=lt(t,r,n,a,h),v=lt(e,i,o,s,h),m=g-u,_=v-f;c+=Math.sqrt(m*m+_*_),u=g,f=v}return c}function Ct(t,e,r,i){var n=1-i;return n*(n*t+2*i*e)+i*i*r}function rd(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function Vy(t,e,r,i,n){var o=t-2*e+r,a=2*(e-t),s=t-i,l=0;if(Qi(o)){if(zy(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(Qi(f)){var u=-a/(2*o);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=Ji(f),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function Pu(t,e,r){var i=t+r-2*e;return i===0?.5:(t-e)/i}function Jo(t,e,r,i,n){var o=(e-t)*i+t,a=(r-e)*i+e,s=(a-o)*i+o;n[0]=t,n[1]=o,n[2]=s,n[3]=s,n[4]=a,n[5]=r}function ku(t,e,r,i,n,o,a,s,l){var u,f=.005,c=1/0;ri[0]=a,ri[1]=s;for(var p=0;p<1;p+=.05){Dr[0]=Ct(t,r,n,p),Dr[1]=Ct(e,i,o,p);var d=Rn(ri,Dr);d<c&&(u=p,c=d)}c=1/0;for(var h=0;h<32&&!(f<By);h++){var g=u-f,v=u+f;Dr[0]=Ct(t,r,n,g),Dr[1]=Ct(e,i,o,g);var d=Rn(Dr,ri);if(g>=0&&d<c)u=g,c=d;else{$o[0]=Ct(t,r,n,v),$o[1]=Ct(e,i,o,v);var m=Rn($o,ri);v<=1&&m<c?(u=v,c=m):f*=.5}}return l&&(l[0]=Ct(t,r,n,u),l[1]=Ct(e,i,o,u)),Ji(c)}function Wy(t,e,r,i,n,o,a){for(var s=t,l=e,u=0,f=1/a,c=1;c<=a;c++){var p=c*f,d=Ct(t,r,n,p),h=Ct(e,i,o,p),g=d-s,v=h-l;u+=Math.sqrt(g*g+v*v),s=d,l=h}return u}var lM=/cubic-bezier\(([0-9,\.e ]+)\)/;function Fu(t){var e=t&&lM.exec(t);if(e){var r=e[1].split(","),i=+Ft(r[0]),n=+Ft(r[1]),o=+Ft(r[2]),a=+Ft(r[3]);if(isNaN(i+n+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:Au(0,i,o,1,l,s)&&lt(0,n,a,1,s[0])}}}var uM=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Ke,this.ondestroy=e.ondestroy||Ke,this.onrestart=e.onrestart||Ke,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=e-this._startTime-this._pausedTime,o=n/i;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1)if(this.loop){var l=n%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=$(e)?e:Mu[e]||Fu(e)},t})(),Hy=uM;var Gy=(function(){function t(e){this.value=e}return t})();var fM=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new Gy(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,i=e.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})();var cM=(function(){function t(e){this._list=new fM,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var i=this._list,n=this._map,o=null;if(n[e]==null){var a=i.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=i.head;i.remove(l),delete n[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Gy(r),s.key=e,i.insertEntry(s),n[e]=s}return o},t.prototype.get=function(e){var r=this._map[e],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),ii=cM;var Yy={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function vs(t){return t=Math.round(t),t<0?0:t>255?255:t}function pM(t){return t=Math.round(t),t<0?0:t>360?360:t}function Xy(t){return t<0?0:t>1?1:t}function nd(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?vs(parseFloat(e)/100*255):vs(parseInt(e,10))}function Ln(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Xy(parseFloat(e)/100):Xy(parseFloat(e))}function od(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Mr(t,e,r,i,n){return t[0]=e,t[1]=r,t[2]=i,t[3]=n,t}function ad(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Ky=new ii(20),Bu=null;function ea(t,e){Bu&&ad(Bu,e),Bu=Ky.put(t,Bu||e.slice())}function Ci(t,e){if(t){e=e||[];var r=Ky.get(t);if(r)return ad(e,r);t=t+"";var i=t.replace(/ /g,"").toLowerCase();if(i in Yy)return ad(e,Yy[i]),ea(t,e),e;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var o=parseInt(i.slice(1,4),16);if(!(o>=0&&o<=4095)){Mr(e,0,0,0,1);return}return Mr(e,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),ea(t,e),e}else if(n===7||n===9){var o=parseInt(i.slice(1,7),16);if(!(o>=0&&o<=16777215)){Mr(e,0,0,0,1);return}return Mr(e,(o&16711680)>>16,(o&65280)>>8,o&255,n===9?parseInt(i.slice(7),16)/255:1),ea(t,e),e}return}var a=i.indexOf("("),s=i.indexOf(")");if(a!==-1&&s+1===n){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Mr(e,+u[0],+u[1],+u[2],1):Mr(e,0,0,0,1);f=Ln(u.pop());case"rgb":if(u.length>=3)return Mr(e,nd(u[0]),nd(u[1]),nd(u[2]),u.length===3?f:Ln(u[3])),ea(t,e),e;Mr(e,0,0,0,1);return;case"hsla":if(u.length!==4){Mr(e,0,0,0,1);return}return u[3]=Ln(u[3]),sd(u,e),ea(t,e),e;case"hsl":if(u.length!==3){Mr(e,0,0,0,1);return}return sd(u,e),ea(t,e),e;default:return}}Mr(e,0,0,0,1)}}function sd(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=Ln(t[1]),n=Ln(t[2]),o=n<=.5?n*(i+1):n+i-n*i,a=n*2-o;return e=e||[],Mr(e,vs(od(a,o,r+1/3)*255),vs(od(a,o,r)*255),vs(od(a,o,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function dM(t){if(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,n=Math.min(e,r,i),o=Math.max(e,r,i),a=o-n,s=(o+n)/2,l,u;if(a===0)l=0,u=0;else{s<.5?u=a/(o+n):u=a/(2-o-n);var f=((o-e)/6+a/2)/a,c=((o-r)/6+a/2)/a,p=((o-i)/6+a/2)/a;e===o?l=p-c:r===o?l=1/3+f-p:i===o&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return t[3]!=null&&d.push(t[3]),d}}function qy(t,e){var r=Ci(t);if(r){for(var i=0;i<3;i++)e<0?r[i]=r[i]*(1-e)|0:r[i]=(255-r[i])*e+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return zu(r,r.length===4?"rgba":"rgb")}}function ms(t,e,r,i){var n=Ci(t);if(t)return n=dM(n),e!=null&&(n[0]=pM($(e)?e(n[0]):e)),r!=null&&(n[1]=Ln($(r)?r(n[1]):r)),i!=null&&(n[2]=Ln($(i)?i(n[2]):i)),zu(sd(n),"rgba")}function zu(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function ta(t,e){var r=Ci(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var jy=new ii(100);function ld(t){if(k(t)){var e=jy.get(t);return e||(e=qy(t,-.1),jy.put(t,e)),e}else if(Xi(t)){var r=N({},t);return r.colorStops=K(t.colorStops,function(i){return{offset:i.offset,color:qy(i.color,-.1)}}),r}return t}function Zy(t){return t.type==="linear"}function $y(t){return t.type==="radial"}var TU=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})();var fd=Array.prototype.slice;function Ti(t,e,r){return(e-t)*r+t}function ud(t,e,r,i){for(var n=e.length,o=0;o<n;o++)t[o]=Ti(e[o],r[o],i);return t}function vM(t,e,r,i){for(var n=e.length,o=n&&e[0].length,a=0;a<n;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Ti(e[a][s],r[a][s],i)}return t}function Uu(t,e,r,i){for(var n=e.length,o=0;o<n;o++)t[o]=e[o]+r[o]*i;return t}function Qy(t,e,r,i){for(var n=e.length,o=n&&e[0].length,a=0;a<n;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+r[a][s]*i}return t}function mM(t,e){for(var r=t.length,i=e.length,n=r>i?e:t,o=Math.min(r,i),a=n[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(r,i);s++)n.push({offset:a.offset,color:a.color.slice()})}function gM(t,e,r){var i=t,n=e;if(!(!i.push||!n.push)){var o=i.length,a=n.length;if(o!==a){var s=o>a;if(s)i.length=a;else for(var l=o;l<a;l++)i.push(r===1?n[l]:fd.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(r===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function ys(t){if(vt(t)){var e=t.length;if(vt(t[0])){for(var r=[],i=0;i<e;i++)r.push(fd.call(t[i]));return r}return fd.call(t)}return t}function Hu(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function _M(t){return vt(t&&t[0])?2:1}var Vu=0,Gu=1,t0=2,_s=3,cd=4,pd=5,Jy=6;function e0(t){return t===cd||t===pd}function Wu(t){return t===Gu||t===t0}var gs=[0,0,0,0],yM=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,i){this._needsSort=!0;var n=this.keyframes,o=n.length,a=!1,s=Jy,l=r;if(vt(r)){var u=_M(r);s=u,(u===1&&!be(r[0])||u===2&&!be(r[0][0]))&&(a=!0)}else if(be(r)&&!Go(r))s=Vu;else if(k(r))if(!isNaN(+r))s=Vu;else{var f=Ci(r);f&&(l=f,s=_s)}else if(Xi(r)){var c=N({},l);c.colorStops=K(r.colorStops,function(d){return{offset:d.offset,color:Ci(d.color)}}),Zy(r)?s=cd:$y(r)&&(s=pd),l=c}o===0?this.valType=s:(s!==this.valType||s===Jy)&&(a=!0),this.discrete=this.discrete||a;var p={time:e,value:l,rawValue:r,percent:0};return i&&(p.easing=i,p.easingFunc=$(i)?i:Mu[i]||Fu(i)),n.push(p),p},t.prototype.prepare=function(e,r){var i=this.keyframes;this._needsSort&&i.sort(function(g,v){return g.time-v.time});for(var n=this.valType,o=i.length,a=i[o-1],s=this.discrete,l=Wu(n),u=e0(n),f=0;f<o;f++){var c=i[f],p=c.value,d=a.value;c.percent=c.time/e,s||(l&&f!==o-1?gM(p,d,n):u&&mM(p.colorStops,d.colorStops))}if(!s&&n!==pd&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var h=i[0].value,f=0;f<o;f++)n===Vu?i[f].additiveValue=i[f].value-h:n===_s?i[f].additiveValue=Uu([],i[f].value,h,-1):Wu(n)&&(i[f].additiveValue=n===Gu?Uu([],i[f].value,h,-1):Qy([],i[f].value,h,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,u=o===_s,f,c=this._lastFr,p=Math.min,d,h;if(s===1)d=h=a[0];else{if(r<0)f=0;else if(r<this._lastFrP){var g=p(c+1,s-1);for(f=g;f>=0&&!(a[f].percent<=r);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(a[f].percent>r);f++);f=p(f-1,s-2)}h=a[f+1],d=a[f]}if(d&&h){this._lastFr=f,this._lastFrP=r;var v=h.percent-d.percent,m=v===0?1:p((r-d.percent)/v,1);h.easingFunc&&(m=h.easingFunc(m));var _=i?this._additiveValue:u?gs:e[l];if((Wu(o)||u)&&!_&&(_=this._additiveValue=[]),this.discrete)e[l]=m<1?d.rawValue:h.rawValue;else if(Wu(o))o===Gu?ud(_,d[n],h[n],m):vM(_,d[n],h[n],m);else if(e0(o)){var y=d[n],x=h[n],S=o===cd;e[l]={type:S?"linear":"radial",x:Ti(y.x,x.x,m),y:Ti(y.y,x.y,m),colorStops:K(y.colorStops,function(b,E){var T=x.colorStops[E];return{offset:Ti(b.offset,T.offset,m),color:Hu(ud([],b.color,T.color,m))}}),global:x.global},S?(e[l].x2=Ti(y.x2,x.x2,m),e[l].y2=Ti(y.y2,x.y2,m)):e[l].r=Ti(y.r,x.r,m)}else if(u)ud(_,d[n],h[n],m),i||(e[l]=Hu(_));else{var w=Ti(d[n],h[n],m);i?this._additiveValue=w:e[l]=w}i&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,i=this.propName,n=this._additiveValue;r===Vu?e[i]=e[i]+n:r===_s?(Ci(e[i],gs),Uu(gs,gs,n,1),e[i]=Hu(gs)):r===Gu?Uu(e[i],e[i],n,1):r===t0&&Qy(e[i],e[i],n,1)},t})(),xM=(function(){function t(e,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&n){Ho("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,i){return this.whenWithKeys(e,r,xe(r),i)},t.prototype.whenWithKeys=function(e,r,i,n){for(var o=this._tracks,a=0;a<i.length;a++){var s=i[a],l=o[s];if(!l){l=o[s]=new yM(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];u=p&&p.value,f.valType===_s&&u&&(u=Hu(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,ys(u),n),this._trackKeys.push(s)}l.addKeyframe(e,ys(r[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,i=0;i<r;i++)e[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)e[r[i]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var o=i[n].getTrack(e);o&&(r=o)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new Hy({life:n,loop:this._loop,delay:this._delay||0,onframe:function(d){r._started=2;var h=r._additiveAnimators;if(h){for(var g=!1,v=0;v<h.length;v++)if(h[v]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var v=0;v<i.length;v++)i[v].step(r._target,d);var m=r._onframeCbs;if(m)for(var v=0;v<m.length;v++)m[v](r._target,d)},ondestroy:function(){r._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return K(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,o=0;o<e.length;o++){var a=i[e[o]];a&&!a.isFinished()&&(r?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,o=0;o<n.length;o++)if(!i[n[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,i){if(e){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var o=r[n],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[i?0:s.length-1];l&&(e[o]=ys(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||xe(e);for(var i=0;i<r.length;i++){var n=r[i],o=this._tracks[n];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,e[n]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},t})(),xs=xM;var SM=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,i=this.y-e.y;return Math.sqrt(r*r+i*i)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,i=this.y-e.y;return r*r+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,i=this.y;return this.x=e[0]*r+e[2]*i+e[4],this.y=e[1]*r+e[3]*i+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,i){e.x=r,e.y=i},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,i){e.x=r.x+i.x,e.y=r.y+i.y},t.sub=function(e,r,i){e.x=r.x-i.x,e.y=r.y-i.y},t.scale=function(e,r,i){e.x=r.x*i,e.y=r.y*i},t.scaleAndAdd=function(e,r,i,n){e.x=r.x+i.x*n,e.y=r.y+i.y*n},t.lerp=function(e,r,i,n){var o=1-n;e.x=o*r.x+n*i.x,e.y=o*r.y+n*i.y},t})(),ve=SM;var zn=Math.min,ra=Math.max,vd=Math.abs,r0=["x","y"],wM=["width","height"],Pn=new ve,kn=new ve,Fn=new ve,Bn=new ve,cr=gd(),Ss=cr.minTv,md=cr.maxTv,ws=[0,0],bi=(function(){function t(e,r,i,n){dd(this,e,r,i,n)}return t.set=function(e,r,i,n,o){return n<0&&(r=r+n,n=-n),o<0&&(i=i+o,o=-o),e.x=r,e.y=i,e.width=n,e.height=o,e},t.prototype.union=function(e){var r=zn(e.x,this.x),i=zn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ra(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ra(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=r,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return CM(jt(),this,e)},t.prototype.intersect=function(e,r,i){return t.intersect(this,e,r,i)},t.intersect=function(e,r,i,n){i&&ve.set(i,0,0);var o=n&&n.outIntersectRect||null,a=n&&n.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!e||!r)return!1;e instanceof t||(e=dd(TM,e.x,e.y,e.width,e.height)),r instanceof t||(r=dd(bM,r.x,r.y,r.width,r.height));var s=!!i;cr.reset(n,s);var l=cr.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,d=r.x+l,h=r.x+r.width-l,g=r.y+l,v=r.y+r.height-l;if(u>f||c>p||d>h||g>v)return!1;var m=!(f<d||h<u||p<g||v<c);return(s||o)&&(ws[0]=1/0,ws[1]=0,n0(u,f,d,h,0,s,o,a),n0(c,p,g,v,1,s,o,a),s&&ve.copy(i,m?cr.useDir?cr.dirMinTv:Ss:md)),m},t.contain=function(e,r,i){return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){i0(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,i){if(!i){e!==r&&i0(e,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],o=i[3],a=i[4],s=i[5];e.x=r.x*n+a,e.y=r.y*o+s,e.width=r.width*n,e.height=r.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Pn.x=Fn.x=r.x,Pn.y=Bn.y=r.y,kn.x=Bn.x=r.x+r.width,kn.y=Fn.y=r.y+r.height,Pn.transform(i),Bn.transform(i),kn.transform(i),Fn.transform(i),e.x=zn(Pn.x,kn.x,Fn.x,Bn.x),e.y=zn(Pn.y,kn.y,Fn.y,Bn.y);var l=ra(Pn.x,kn.x,Fn.x,Bn.x),u=ra(Pn.y,kn.y,Fn.y,Bn.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,i){var n=i.width/r.width,o=i.height/r.height;return e=xi(e||[]),ps(e,e,Cu(hd,-r.x,-r.y)),Iy(e,e,Cu(hd,n,o)),ps(e,e,Cu(hd,i.x,i.y)),e},t})(),LU=bi.create,dd=bi.set,i0=bi.copy,CM=bi.calculateTransform,PU=bi.applyTransform,kU=bi.contain,TM=new bi(0,0,0,0),bM=new bi(0,0,0,0),hd=[];function n0(t,e,r,i,n,o,a,s){var l=vd(e-r),u=vd(i-t),f=zn(l,u),c=r0[n],p=r0[1-n],d=wM[n];e<r||i<t?l<u?(o&&(md[c]=-l),s&&(a[c]=e,a[d]=0)):(o&&(md[c]=u),s&&(a[c]=t,a[d]=0)):(a&&(a[c]=ra(t,r),a[d]=zn(e,i)-a[c]),o&&(f<ws[0]||cr.useDir)&&(ws[0]=zn(f,ws[0]),(l<u||!cr.bidirectional)&&(Ss[c]=l,Ss[p]=0,cr.useDir&&cr.calcDirMTV()),(l>=u||!cr.bidirectional)&&(Ss[c]=-u,Ss[p]=0,cr.useDir&&cr.calcDirMTV())))}function gd(){var t=0,e=new ve,r=new ve,i={minTv:new ve,maxTv:new ve,useDir:!1,dirMinTv:new ve,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(o,a){i.touchThreshold=0,o&&o.touchThreshold!=null&&(i.touchThreshold=ra(0,o.touchThreshold)),i.negativeSize=!1,a&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,o&&o.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),t=o.direction,i.bidirectional=o.bidirectional==null||!!o.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var o=i.minTv,a=i.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(t),u=Math.cos(t),f=l*o.y+u*o.x;if(n(f)){n(o.x)&&n(o.y)&&a.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,n(r.x)&&n(r.y)){a.set(0,0);return}(i.bidirectional||e.dot(r)>0)&&r.len()<a.len()&&a.copy(r)}};function n(o){return vd(o)<1e-10}return i}var te=bi;var EM=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,i,n){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!e)return this;var a=this._$eventProcessor;r!=null&&a&&a.normalizeQuery&&(r=a.normalizeQuery(r)),o[e]||(o[e]=[]);for(var s=0;s<o[e].length;s++)if(o[e][s].h===i)return this;var l={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=o[e].length-1,f=o[e][u];return f&&f.callAtLast?o[e].splice(u,0,l):o[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(r){if(i[e]){for(var n=[],o=0,a=i[e].length;o<a;o++)i[e][o].h!==r&&n.push(i[e][o]);i[e]=n}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},t.prototype.trigger=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],o=this._$eventProcessor;if(n)for(var a=r.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(o&&o.filter&&u.query!=null&&!o.filter(e,u.query)))switch(a){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return o&&o.afterTrigger&&o.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],o=this._$eventProcessor;if(n)for(var a=r.length,s=r[a-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(o&&o.filter&&f.query!=null&&!o.filter(e,f.query)))switch(a){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(e),this},t})(),Bt=EM;function Ur(t){Yu||(Yu=new ii(100)),t=t||Er;var e=Yu.get(t);return e||(e={font:t,strWidthCache:new ii(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:st.measureText("\u56FD",t).width,asciiCharWidth:st.measureText("a",t).width},Yu.put(t,e)),e}var Yu;function DM(t){if(!(_d>=o0)){t=t||Er;for(var e=[],r=+new Date,i=0;i<=127;i++)e[i]=st.measureText(String.fromCharCode(i),t).width;var n=+new Date-r;return n>16?_d=o0:n>2&&_d++,e}}var _d=0,o0=5;function yd(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=DM(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Vr(t,e){var r=t.strWidthCache,i=r.get(e);return i==null&&(i=st.measureText(e,t.font).width,r.put(e,i)),i}function a0(t,e,r,i){var n=Vr(Ur(e),t),o=Cs(e),a=en(0,n,r),s=Di(0,o,i),l=new te(a,s,n,o);return l}function s0(t,e,r,i){var n=((t||"")+"").split(`
2
- `),o=n.length;if(o===1)return a0(n[0],e,r,i);for(var a=new te(0,0,0,0),s=0;s<n.length;s++){var l=a0(n[s],e,r,i);s===0?a.copy(l):a.union(l)}return a}function en(t,e,r,i){return r==="right"?i?t+=e:t-=e:r==="center"&&(i?t+=e/2:t-=e/2),t}function Di(t,e,r,i){return r==="middle"?i?t+=e/2:t-=e/2:r==="bottom"&&(i?t+=e:t-=e),t}function Cs(t){return Ur(t).stWideCharWidth}function Ei(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Xu(t,e,r){var i=e.position||"inside",n=e.distance!=null?e.distance:5,o=r.height,a=r.width,s=o/2,l=r.x,u=r.y,f="left",c="top";if(i instanceof Array)l+=Ei(i[0],r.width),u+=Ei(i[1],r.height),f=null,c=null;else switch(i){case"left":l-=n,u+=s,f="right",c="middle";break;case"right":l+=n+a,u+=s,c="middle";break;case"top":l+=a/2,u-=n,f="center",c="bottom";break;case"bottom":l+=a/2,u+=o+n,f="center";break;case"inside":l+=a/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=a-n,u+=s,f="right",c="middle";break;case"insideTop":l+=a/2,u+=n,f="center";break;case"insideBottom":l+=a/2,u+=o-n,f="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=a-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=o-n,c="bottom";break;case"insideBottomRight":l+=a-n,u+=o-n,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var OM=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),IM=(function(){function t(){this.browser=new OM,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t})(),tn=new IM;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(tn.wxa=!0,tn.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?tn.worker=!0:!tn.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(tn.node=!0,tn.svgSupported=!0):RM(navigator.userAgent,tn);function RM(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),o&&(r.edge=!0,r.version=o[1],r.newEdge=+o[1].split(".")[0]>18),a&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var le=tn;var l0=1;le.hasGlobalWindow&&(l0=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Un=l0,Ts=.4,bs="#333",Es="#ccc",u0="#eee";var ut=1,Vn=2,rn=4;var xd="__zr_normal__",Sd=Ko.concat(["ignore"]),AM=qt(Ko,function(t,e){return t[e]=!0,t},{ignore:!1}),ia={},NM=new te(0,0,0,0),qu=[],ju=0,na=1,Td=(function(){function t(e){this.id=yu(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,o=r.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=n?this:null;var u=!1;o.copyTransform(r);var f=i.position!=null,c=i.autoOverflowArea,p=void 0;if((c||f)&&(p=NM,i.layoutRect?p.copy(i.layoutRect):p.copy(this.getBoundingRect()),n||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(ia,i,p):Xu(ia,i,p),o.x=ia.x,o.y=ia.y,a=ia.align,s=ia.verticalAlign;var d=i.origin;if(d&&i.rotation!=null){var h=void 0,g=void 0;d==="center"?(h=p.width*.5,g=p.height*.5):(h=Ei(d[0],p.width),g=Ei(d[1],p.height)),u=!0,o.originX=-o.x+h+(n?0:p.x),o.originY=-o.y+g+(n?0:p.y)}}i.rotation!=null&&(o.rotation=i.rotation);var v=i.offset;v&&(o.x+=v[0],o.y+=v[1],u||(o.originX=-v[0],o.originY=-v[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var _=m.overflowRect=m.overflowRect||new te(0,0,0,0);o.getLocalTransform(qu),ti(qu,qu),te.copy(_,p),_.applyTransform(qu)}else m.overflowRect=null;var y=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,x=void 0,S=void 0,w=void 0;y&&this.canBeInsideText()?(x=i.insideFill,S=i.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(x),w=!0)):(x=i.outsideFill,S=i.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(x),w=!0)),x=x||"#000",(x!==m.fill||S!==m.stroke||w!==m.autoStroke||a!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=x,m.stroke=S,m.autoStroke=w,m.align=a,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=ut,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Es:bs},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&Ci(r);i||(i=[255,255,255,1]);for(var n=i[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)i[a]=i[a]*n+(o?0:255)*(1-n);return i[3]=1,zu(i,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},N(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(B(e))for(var i=e,n=xe(i),o=0;o<n.length;o++){var a=n[o];this.attrKV(a,e[a])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],o=n.__fromStateTransition;if(!(n.getLoop()||o&&o!==xd)){var a=n.targetName,s=a?r[a]:r;n.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Sd)},t.prototype._savePrimaryToNormal=function(e,r,i){for(var n=0;n<i.length;n++){var o=i[n];e[o]!=null&&!(o in r)&&(r[o]=this[o])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(xd,!1,e)},t.prototype.useState=function(e,r,i,n){var o=e===xd,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(pe(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!o&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!o){Ho("State "+e+" not exists.");return}o||this.saveCurrentToNormalState(u);var f=this._textContent,c=f0(this,f,u,n);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,p0(this,i,l),l);var p=this._textGuide;return f&&f.useState(e,r,i,!!c),p&&p.useState(e,r,i,!!c),o?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=ju,this.__dirty&=~ut),u}}},t.prototype.useStates=function(e,r,i){if(!e.length)this.clearStates();else{var n=[],o=this.currentStates,a=e.length,s=a===o.length;if(s){for(var l=0;l<a;l++)if(e[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var c=n[a-1],p=this._textContent,d=f0(this,p,c,i);d&&!this.__inHover&&(this.__inHover=d);var h=this._mergeStates(n),g=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,p0(this,r,g),g);var v=this._textGuide;p&&p.useStates(e,r,!!d),v&&v.useStates(e,r,!!d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this.__inHover=ju,this.__dirty&=~ut)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=pe(this.currentStates,e);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},t.prototype.replaceState=function(e,r,i){var n=this.currentStates.slice(),o=pe(n,e),a=pe(n,r)>=0;o>=0?a?n.splice(o,1):n[o]=r:i&&!a&&n.push(r),this.useStates(n)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},i,n=0;n<e.length;n++){var o=e[n];N(r,o),o.textConfig&&(i=i||{},N(i,o.textConfig))}return i&&(r.textConfig=i),r},t.prototype._applyStateObj=function(e,r,i,n,o,a){if(this.__inHover!==na){var s=!(r&&n);r&&r.textConfig?(this.textConfig=N({},n?this.textConfig:i.textConfig),N(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<Sd.length;f++){var c=Sd[f],p=o&&AM[c];r&&r[c]!=null?p?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&i[c]!=null&&(p?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!o)for(var f=0;f<this.animators.length;f++){var d=this.animators[f],h=d.targetName;d.getLoop()||d.__changeFinalValue(h?(r||i)[h]:r||i)}u&&this._transitionState(e,l,a)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new $i,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),N(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=ut;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,i){var n=e?this[e]:this,o=new xs(n,r,i);return e&&(o.targetName=e),this.addAnimator(o,e),o},t.prototype.addAnimator=function(e,r){var i=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(r)}).done(function(){var o=n.animators,a=pe(o,e);a>=0&&o.splice(a,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var i=this.animators,n=i.length,o=[],a=0;a<n;a++){var s=i[a];!e||e===s.scope?s.stop(r):o.push(s)}return this.animators=o,this},t.prototype.animateTo=function(e,r,i){wd(this,e,r,i)},t.prototype.animateFrom=function(e,r,i){wd(this,e,r,i,!0)},t.prototype._transitionState=function(e,r,i,n){for(var o=wd(this,r,i,n),a=0;a<o.length;a++)o[a].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=ju,e.__dirty=ut;var r={};function i(o,a,s){r[o+a+s]||(console.warn("DEPRECATED: '"+o+"' has been deprecated. use '"+a+"', '"+s+"' instead"),r[o+a+s]=!0)}function n(o,a,s,l){Object.defineProperty(e,o,{get:function(){if(!this[a]){var f=this[a]=[];u(this,f)}return this[a]},set:function(f){this[s]=f[0],this[l]=f[1],this[a]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),t})();Xt(Td,Bt);Xt(Td,$i);function wd(t,e,r,i,n){r=r||{};var o=[];d0(t,"",t,e,r,i,o,n);var a=o.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},c=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&r.during&&o[0].during(function(h,g){r.during(g)});for(var p=0;p<o.length;p++){var d=o[p];f&&d.done(f),c&&d.aborted(c),r.force&&d.duration(r.duration),d.start(r.easing)}return o}function Cd(t,e,r){for(var i=0;i<r;i++)t[i]=e[i]}function LM(t){return vt(t[0])}function PM(t,e,r){if(vt(e[r]))if(vt(t[r])||(t[r]=[]),tt(e[r])){var i=e[r].length;t[r].length!==i&&(t[r]=new e[r].constructor(i),Cd(t[r],e[r],i))}else{var n=e[r],o=t[r],a=n.length;if(LM(n))for(var s=n[0].length,l=0;l<a;l++)o[l]?Cd(o[l],n[l],s):o[l]=Array.prototype.slice.call(n[l]);else Cd(o,n,a);o.length=n.length}else t[r]=e[r]}function kM(t,e){return t===e||vt(t)&&vt(e)&&FM(t,e)}function FM(t,e){var r=t.length;if(r!==e.length)return!1;for(var i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}function d0(t,e,r,i,n,o,a,s){for(var l=xe(i),u=n.duration,f=n.delay,c=n.additive,p=n.setToFinal,d=!B(o),h=t.animators,g=[],v=0;v<l.length;v++){var m=l[v],_=i[m];if(_!=null&&r[m]!=null&&(d||o[m]))if(B(_)&&!vt(_)&&!Xi(_)){if(e){s||(r[m]=_,t.updateDuringAnimation(e));continue}d0(t,m,r[m],_,n,o&&o[m],a,s)}else g.push(m);else s||(r[m]=_,t.updateDuringAnimation(e),g.push(m))}var y=g.length;if(!c&&y)for(var x=0;x<h.length;x++){var S=h[x];if(S.targetName===e){var w=S.stopTracks(g);if(w){var b=pe(h,S);h.splice(b,1)}}}if(n.force||(g=Ge(g,function(O){return!kM(i[O],r[O])}),y=g.length),y>0||n.force&&!a.length){var E=void 0,T=void 0,D=void 0;if(s){T={},p&&(E={});for(var x=0;x<y;x++){var m=g[x];T[m]=r[m],p?E[m]=i[m]:r[m]=i[m]}}else if(p){D={};for(var x=0;x<y;x++){var m=g[x];D[m]=ys(r[m]),PM(r,i,m)}}var S=new xs(r,!1,!1,c?Ge(h,function(R){return R.targetName===e}):null);S.targetName=e,n.scope&&(S.scope=n.scope),p&&E&&S.whenWithKeys(0,E,g),D&&S.whenWithKeys(0,D,g),S.whenWithKeys(u??500,s?T:i,g).delay(f||0),t.addAnimator(S,e),a.push(S)}}function f0(t,e,r,i){return!(r&&r.hoverLayer||i)||c0(t)||e&&c0(e)?ju:na}function c0(t){return t.type==="text"||t.type==="tspan"}function p0(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var Ku=Td;var h0=(function(t){ae(e,t);function e(r){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,o=n.indexOf(i);o>=0&&(n.splice(o,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,i){var n=pe(this._children,r);return n>=0&&this.replaceAt(i,n),this},e.prototype.replaceAt=function(r,i){var n=this._children,o=n[i];if(r&&r!==this&&r.parent!==this&&r!==o){n[i]=r,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(r){var i=this.__zr,n=this._children,o=pe(n,r);return o<0?this:(n.splice(o,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var o=r[n];i&&o.removeSelfFromZr(i),o.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,i){for(var n=this._children,o=0;o<n.length;o++){var a=n[o];r.call(i,a,o)}return this},e.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var o=this._children[n],a=r.call(i,o);o.isGroup&&!a&&o.traverse(r,i)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var i=new te(0,0,0,0),n=r||this._children,o=[],a=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(o);f?(te.applyTransform(i,u,f),a=a||i.clone(),a.union(i)):(a=a||u.clone(),a.union(u))}}return a||i},e})(Ku);h0.prototype.type="group";var It=h0;var BM=".",Wn="___EC__COMPONENT__CONTAINER___",v0="___EC__EXTENDED_CLASS___";function or(t){var e={main:"",sub:""};if(t){var r=t.split(BM);e.main=r[0]||"",e.sub=r[1]||""}return e}function zM(t){mt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function m0(t){return!!(t&&t[v0])}function oa(t,e){t.$constructor=t,t.extend=function(r){var i=this,n;return UM(i)?n=(function(o){Oe(a,o);function a(){return o.apply(this,arguments)||this}return a})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},xu(n,this)),N(n.prototype,r),n[v0]=!0,n.extend=this.extend,n.superCall=WM,n.superApply=HM,n.superClass=i,n}}function UM(t){return $(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Zu(t,e){t.extend=e.extend}var VM=Math.round(Math.random()*10);function g0(t){var e=["__\0is_clz",VM++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function WM(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,r)}function HM(t,e,r){return this.superClass.prototype[e].apply(t,r)}function nn(t){var e={};t.registerClass=function(i){var n=i.type||i.prototype.type;if(n){zM(n),i.prototype.type=n;var o=or(n);if(!o.sub)e[o.main]=i;else if(o.sub!==Wn){var a=r(o);a[o.sub]=i}}return i},t.getClass=function(i,n,o){var a=e[i];if(a&&a[Wn]&&(a=n?a[n]:null),o&&!a)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return a},t.getClassesByMainType=function(i){var n=or(i),o=[],a=e[n.main];return a&&a[Wn]?C(a,function(s,l){l!==Wn&&o.push(s)}):o.push(a),o},t.hasClass=function(i){var n=or(i);return!!e[n.main]},t.getAllClassMainTypes=function(){var i=[];return C(e,function(n,o){i.push(o)}),i},t.hasSubTypes=function(i){var n=or(i),o=e[n.main];return o&&o[Wn]};function r(i){var n=e[i.main];return(!n||!n[Wn])&&(n=e[i.main]={},n[Wn]=!0),n}}var GM="[ECharts] ",_0={},YM=typeof console<"u"&&console.warn&&console.log;function XM(t,e,r){if(YM){if(r){if(_0[e])return;_0[e]=!0}console[t](GM+e)}}function Ed(t,e){XM("error",t,e)}function Rt(t){throw new Error(t)}var qM=Math.round(Math.random()*10);function on(t){return[t||"",qM++].join("_")}function y0(t){var e={};t.registerSubTypeDefaulter=function(r,i){var n=or(r);e[n.main]=i},t.determineSubType=function(r,i){var n=i.type;if(!n){var o=or(r).main;t.hasSubTypes(r)&&e[o]&&(n=e[o](i))}return n}}function x0(t,e){t.topologicalTravel=function(o,a,s,l){if(!o.length)return;var u=r(a),f=u.graph,c=u.noEntryList,p={};for(C(o,function(_){p[_]=!0});c.length;){var d=c.pop(),h=f[d],g=!!p[d];g&&(s.call(l,d,h.originalDeps.slice()),delete p[d]),C(h.successor,g?m:v)}C(p,function(){var _="";throw new Error(_)});function v(_){f[_].entryCount--,f[_].entryCount===0&&c.push(_)}function m(_){p[_]=!0,v(_)}};function r(o){var a={},s=[];return C(o,function(l){var u=i(a,l),f=u.originalDeps=e(l),c=n(f,o);u.entryCount=c.length,u.entryCount===0&&s.push(l),C(c,function(p){pe(u.predecessor,p)<0&&u.predecessor.push(p);var d=i(a,p);pe(d.successor,p)<0&&d.successor.push(l)})}),{graph:a,noEntryList:s}}function i(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}function n(o,a){var s=[];return C(o,function(l){pe(a,l)>=0&&s.push(l)}),s}}var Md=(function(){function t(){this.group=new It,this.uid=on("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){},t.prototype.updateLayout=function(e,r,i,n){},t.prototype.updateVisual=function(e,r,i,n){},t.prototype.toggleBlurSeries=function(e,r,i){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();oa(Md);nn(Md);var pr=Md;function ni(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(i,n,o){for(var a={},s=0;s<t.length;s++){var l=t[s][1];if(!(n&&pe(n,l)>=0||o&&pe(o,l)<0)){var u=i.getShallow(l,e);u!=null&&(a[t[s][0]]=u)}}return a}}var jM=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],KM=ni(jM),S0=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return KM(this,e,r)},t})();var Od=new ii(50);function C0(t){if(typeof t=="string"){var e=Od.get(t);return e&&e.image}else return t}function Id(t,e,r,i,n){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var o=Od.get(t),a={hostEl:r,cb:i,cbPayload:n};return o?(e=o.image,!aa(e)&&o.pending.push(a)):(e=st.loadImage(t,w0,w0),e.__zrImageSrc=t,Od.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}else return t;else return e}function w0(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function aa(t){return t&&t.width&&t.height}var Rd=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Nd(t,e,r,i,n){var o={};return D0(o,t,e,r,i,n),o.text}function D0(t,e,r,i,n,o){if(!r){t.text="",t.isTruncated=!1;return}var a=(e+"").split(`
3
- `);o=M0(r,i,n,o);for(var s=!1,l={},u=0,f=a.length;u<f;u++)O0(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join(`
4
- `),t.isTruncated=s}function M0(t,e,r,i){i=i||{};var n=N({},i);r=Q(r,"..."),n.maxIterations=Q(i.maxIterations,2);var o=n.minChar=Q(i.minChar,0),a=n.fontMeasureInfo=Ur(e),s=a.asciiCharWidth;n.placeholder=Q(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<o&&l>=s;u++)l-=s;var f=Vr(a,r);return f>l&&(r="",f=0),l=t-f,n.ellipsis=r,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=t,n}function O0(t,e,r){var i=r.containerWidth,n=r.contentWidth,o=r.fontMeasureInfo;if(!i){t.textLine="",t.isTruncated=!1;return}var a=Vr(o,e);if(a<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(a<=n||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?$M(e,n,o):a>0?Math.floor(e.length*n/a):0;e=e.substr(0,l),a=Vr(o,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function $M(t,e,r){for(var i=0,n=0,o=t.length;n<o&&i<e;n++)i+=yd(r,t.charCodeAt(n));return n}function I0(t,e,r,i){var n=Pd(t),o=e.overflow,a=e.padding,s=a?a[1]+a[3]:0,l=a?a[0]+a[2]:0,u=e.font,f=o==="truncate",c=Cs(u),p=Q(e.lineHeight,c),d=e.lineOverflow==="truncate",h=!1,g=e.width;g==null&&r!=null&&(g=r-s);var v=e.height;v==null&&i!=null&&(v=i-l);var m;g!=null&&(o==="break"||o==="breakAll")?m=n?A0(n,e.font,g,o==="breakAll",0).lines:[]:m=n?n.split(`
5
- `):[];var _=m.length*p;if(v==null&&(v=_),_>v&&d){var y=Math.floor(v/p);h=h||m.length>y,m=m.slice(0,y),_=m.length*p}if(n&&f&&g!=null)for(var x=M0(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},w=0;w<m.length;w++)O0(S,m[w],x),m[w]=S.textLine,h=h||S.isTruncated;for(var b=v,E=0,T=Ur(u),w=0;w<m.length;w++)E=Math.max(Vr(T,m[w]),E);g==null&&(g=E);var D=g;return b+=l,D+=s,{lines:m,height:v,outerWidth:D,outerHeight:b,lineHeight:p,calculatedLineHeight:c,contentWidth:E,contentHeight:_,width:g,isTruncated:h}}var QM=(function(){function t(){}return t})(),T0=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),JM=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function R0(t,e,r,i,n){var o=new JM,a=Pd(t);if(!a)return o;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var c=e.height;c==null&&i!=null&&(c=i-u);for(var p=e.overflow,d=(p==="break"||p==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:p==="breakAll"}:null,h=Rd.lastIndex=0,g;(g=Rd.exec(a))!=null;){var v=g.index;v>h&&Ad(o,a.substring(h,v),e,d),Ad(o,g[2],e,d,g[1]),h=Rd.lastIndex}h<a.length&&Ad(o,a.substring(h,a.length),e,d);var m=[],_=0,y=0,x=p==="truncate",S=e.lineOverflow==="truncate",w={};function b(P,G,fe){P.width=G,P.lineHeight=fe,_+=fe,y=Math.max(y,G)}e:for(var E=0;E<o.lines.length;E++){for(var T=o.lines[E],D=0,O=0,R=0;R<T.tokens.length;R++){var M=T.tokens[R],A=M.styleName&&e.rich[M.styleName]||{},j=M.textPadding=A.padding,H=j?j[1]+j[3]:0,re=M.font=A.font||e.font;M.contentHeight=Cs(re);var Ce=Q(A.height,M.contentHeight);if(M.innerHeight=Ce,j&&(Ce+=j[0]+j[2]),M.height=Ce,M.lineHeight=zr(A.lineHeight,e.lineHeight,Ce),M.align=A&&A.align||n,M.verticalAlign=A&&A.verticalAlign||"middle",S&&c!=null&&_+M.lineHeight>c){var ge=o.lines.length;R>0?(T.tokens=T.tokens.slice(0,R),b(T,O,D),o.lines=o.lines.slice(0,E+1)):o.lines=o.lines.slice(0,E),o.isTruncated=o.isTruncated||o.lines.length<ge;break e}var de=A.width,me=de==null||de==="auto";if(typeof de=="string"&&de.charAt(de.length-1)==="%")M.percentWidth=de,m.push(M),M.contentWidth=Vr(Ur(re),M.text);else{if(me){var Se=A.backgroundColor,Ee=Se&&Se.image;Ee&&(Ee=C0(Ee),aa(Ee)&&(M.width=Math.max(M.width,Ee.width*Ce/Ee.height)))}var z=x&&f!=null?f-O:null;z!=null&&z<M.width?!me||z<H?(M.text="",M.width=M.contentWidth=0):(D0(w,M.text,z-H,re,e.ellipsis,{minChar:e.truncateMinChar}),M.text=w.text,o.isTruncated=o.isTruncated||w.isTruncated,M.width=M.contentWidth=Vr(Ur(re),M.text)):M.contentWidth=Vr(Ur(re),M.text)}M.width+=H,O+=M.width,A&&(D=Math.max(D,M.lineHeight))}b(T,O,D)}o.outerWidth=o.width=Q(f,y),o.outerHeight=o.height=Q(c,_),o.contentHeight=_,o.contentWidth=y,o.outerWidth+=l,o.outerHeight+=u;for(var E=0;E<m.length;E++){var M=m[E],I=M.percentWidth;M.width=parseInt(I,10)/100*o.width}return o}function Ad(t,e,r,i,n){var o=e==="",a=n&&r.rich[n]||{},s=t.lines,l=a.font||r.font,u=!1,f,c;if(i){var p=a.padding,d=p?p[1]+p[3]:0;if(a.width!=null&&a.width!=="auto"){var h=Ei(a.width,i.width)+d;s.length>0&&h+i.accumWidth>i.width&&(f=e.split(`
6
- `),u=!0),i.accumWidth=h}else{var g=A0(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,c=g.linesWidths,f=g.lines}}f||(f=e.split(`
7
- `));for(var v=Ur(l),m=0;m<f.length;m++){var _=f[m],y=new QM;if(y.styleName=n,y.text=_,y.isLineHolder=!_&&!o,typeof a.width=="number"?y.width=a.width:y.width=c?c[m]:Vr(v,_),!m&&!u){var x=(s[s.length-1]||(s[0]=new T0)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=y:(_||!S||o)&&x.push(y)}else s.push(new T0([y]))}}function eO(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var tO=qt(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function rO(t){return eO(t)?!!tO[t]:!0}function A0(t,e,r,i,n){for(var o=[],a=[],s="",l="",u=0,f=0,c=Ur(e),p=0;p<t.length;p++){var d=t.charAt(p);if(d===`
8
- `){l&&(s+=l,f+=u),o.push(s),a.push(f),s="",l="",u=0,f=0;continue}var h=yd(c,d.charCodeAt(0)),g=i?!1:!rO(d);if(o.length?f+h>r:n+f+h>r){f?(s||l)&&(g?(s||(s=l,l="",u=0,f=u),o.push(s),a.push(f-u),l+=d,u+=h,s="",f=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(f),s=d,f=h)):g?(o.push(l),a.push(u),l=d,u=h):(o.push(d),a.push(h));continue}f+=h,g?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return l&&(s+=l),s&&(o.push(s),a.push(f)),o.length===1&&(f+=n),{accumWidth:f,lines:o,linesWidths:a}}function Ld(t,e,r,i,n,o){if(t.baseX=r,t.baseY=i,t.outerWidth=t.outerHeight=null,!!e){var a=e.width*2,s=e.height*2;te.set(b0,en(r,a,n),Di(i,s,o),a,s),te.intersect(e,b0,null,E0);var l=E0.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=en(l.x,l.width,n,!0),t.baseY=Di(l.y,l.height,o,!0)}}var b0=new te(0,0,0,0),E0={outIntersectRect:{},clamp:!0};function Pd(t){return t!=null?t+="":t=""}function N0(t){var e=Pd(t.text),r=t.font,i=Vr(Ur(r),e),n=Cs(r);return $u(t,i,n,null)}function $u(t,e,r,i){var n=new te(en(t.x||0,e,t.textAlign),Di(t.y||0,r,t.textBaseline),e,r),o=i??(kd(t)?t.lineWidth:0);return o>0&&(n.x-=o/2,n.y-=o/2,n.width+=o,n.height+=o),n}function kd(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var zd="__zr_style_"+Math.round(Math.random()*10),oi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Hn={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};oi[zd]=!0;var L0=["z","z2","invisible"],iO=["invisible"],nO=(function(t){ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var i=xe(r),n=0;n<i.length;n++){var o=i[n];o==="style"?this.useStyle(r[o]):t.prototype.attrKV.call(this,o,r[o])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,i,n,o){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&oO(this,r,i)||a&&!a[0]&&!a[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,i){return this.rectContain(r,i)},e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i),o=this.getBoundingRect();return o.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),o=this.style,a=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new te(0,0,0,0)),i?te.applyTransform(r,n,i):r.copy(n),(a||s||l)&&(r.width+=a*2+Math.abs(s),r.height+=a*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-a),r.y=Math.min(r.y,r.y+l-a));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new te(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,i){r!=="style"?t.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:N(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Vn,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Vn)},e.prototype.styleUpdated=function(){this.__dirty&=~Vn},e.prototype.createStyle=function(r){return qi(oi,r)},e.prototype.useStyle=function(r){r[zd]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[zd]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,L0)},e.prototype._applyStateObj=function(r,i,n,o,a,s){t.prototype._applyStateObj.call(this,r,i,n,o,a,s);var l=!(i&&o),u=this.__inHover===na,f;if(i&&i.style?a?o?f=i.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),o?this.style:n.style),this._mergeStyle(f,i.style)):l&&(f=n.style),f)if(a){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var p=xe(c),d=0;d<p.length;d++){var h=p[d];h in f&&(f[h]=f[h],this.style[h]=c[h])}for(var g=xe(f),d=0;d<g.length;d++){var h=g[d];this.style[h]=this.style[h]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var v=this.__inHover?iO:L0,d=0;d<v.length;d++){var h=v[d];i&&i[h]!=null?this[h]=i[h]:l&&n[h]!=null&&(this[h]=n[h])}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,o=0;o<r.length;o++){var a=r[o];a.style&&(n=n||{},this._mergeStyle(n,a.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(r,i){return N(r,i),r},e.prototype.getAnimationStyleProps=function(){return Hn},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=ut|Vn})(),e})(Ku),Fd=new te(0,0,0,0),Bd=new te(0,0,0,0);function oO(t,e,r){return Fd.copy(t.getBoundingRect()),t.transform&&Fd.applyTransform(t.transform),Bd.width=e,Bd.height=r,!Fd.intersect(Bd)}var ai=nO;var Or=Math.min,Ir=Math.max,Ud=Math.sin,Vd=Math.cos,Gn=Math.PI*2,Qu=Ki(),Ju=Ki(),ef=Ki();function Wd(t,e,r,i,n,o){n[0]=Or(t,r),n[1]=Or(e,i),o[0]=Ir(t,r),o[1]=Ir(e,i)}var P0=[],k0=[];function F0(t,e,r,i,n,o,a,s,l,u){var f=Nu,c=lt,p=f(t,r,n,a,P0);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<p;d++){var h=c(t,r,n,a,P0[d]);l[0]=Or(h,l[0]),u[0]=Ir(h,u[0])}p=f(e,i,o,s,k0);for(var d=0;d<p;d++){var g=c(e,i,o,s,k0[d]);l[1]=Or(g,l[1]),u[1]=Ir(g,u[1])}l[0]=Or(t,l[0]),u[0]=Ir(t,u[0]),l[0]=Or(a,l[0]),u[0]=Ir(a,u[0]),l[1]=Or(e,l[1]),u[1]=Ir(e,u[1]),l[1]=Or(s,l[1]),u[1]=Ir(s,u[1])}function B0(t,e,r,i,n,o,a,s){var l=Pu,u=Ct,f=Ir(Or(l(t,r,n),1),0),c=Ir(Or(l(e,i,o),1),0),p=u(t,r,n,f),d=u(e,i,o,c);a[0]=Or(t,n,p),a[1]=Or(e,o,d),s[0]=Ir(t,n,p),s[1]=Ir(e,o,d)}function z0(t,e,r,i,n,o,a,s,l){var u=Si,f=wi,c=Math.abs(n-o);if(c%Gn<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-i,l[0]=t+r,l[1]=e+i;return}if(Qu[0]=Vd(n)*r+t,Qu[1]=Ud(n)*i+e,Ju[0]=Vd(o)*r+t,Ju[1]=Ud(o)*i+e,u(s,Qu,Ju),f(l,Qu,Ju),n=n%Gn,n<0&&(n=n+Gn),o=o%Gn,o<0&&(o=o+Gn),n>o&&!a?o+=Gn:n<o&&a&&(n+=Gn),a){var p=o;o=n,n=p}for(var d=0;d<o;d+=Math.PI/2)d>n&&(ef[0]=Vd(d)*r+t,ef[1]=Ud(d)*i+e,u(s,ef,s),f(l,ef,l))}var Ue={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Yn=[],Xn=[],si=[],an=[],li=[],ui=[],Hd=Math.min,Gd=Math.max,qn=Math.cos,jn=Math.sin,Mi=Math.abs,qd=Math.PI,sn=qd*2,Yd=typeof Float32Array<"u",Ds=[];function Xd(t){var e=Math.round(t/qd*1e8)/1e8;return e%2*qd}function aO(t,e){var r=Xd(t[0]);r<0&&(r+=sn);var i=r-t[0],n=t[1];n+=i,!e&&n-r>=sn?n=r+sn:e&&r-n>=sn?n=r-sn:!e&&r>n?n=r+(sn-Xd(r-n)):e&&r<n&&(n=r-(sn-Xd(n-r))),t[0]=r,t[1]=n}var sO=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,i){i=i||0,i>0&&(this._ux=Mi(i/Un/e)||0,this._uy=Mi(i/Un/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Ue.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var i=Mi(e-this._xi),n=Mi(r-this._yi),o=i>this._ux||n>this._uy;if(this.addData(Ue.L,e,r),this._ctx&&o&&this._ctx.lineTo(e,r),o)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var a=i*i+n*n;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=a)}return this},t.prototype.bezierCurveTo=function(e,r,i,n,o,a){return this._drawPendingPt(),this.addData(Ue.C,e,r,i,n,o,a),this._ctx&&this._ctx.bezierCurveTo(e,r,i,n,o,a),this._xi=o,this._yi=a,this},t.prototype.quadraticCurveTo=function(e,r,i,n){return this._drawPendingPt(),this.addData(Ue.Q,e,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(e,r,i,n),this._xi=i,this._yi=n,this},t.prototype.arc=function(e,r,i,n,o,a){this._drawPendingPt(),Ds[0]=n,Ds[1]=o,aO(Ds,a),n=Ds[0],o=Ds[1];var s=o-n;return this.addData(Ue.A,e,r,i,i,n,s,0,a?0:1),this._ctx&&this._ctx.arc(e,r,i,n,o,a),this._xi=qn(o)*i+e,this._yi=jn(o)*i+r,this},t.prototype.arcTo=function(e,r,i,n,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,i,n,o),this},t.prototype.rect=function(e,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,i,n),this.addData(Ue.R,e,r,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ue.Z);var e=this._ctx,r=this._x0,i=this._y0;return e&&e.closePath(),this._xi=r,this._yi=i,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&Yd&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=e[i];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,i=0,n=this._len,o=0;o<r;o++)i+=e[o].len();var a=this.data;if(Yd&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(n+i),n>0&&a))for(var s=0;s<n;s++)this.data[s]=a[s];for(var o=0;o<r;o++)for(var l=e[o].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},t.prototype.addData=function(e,r,i,n,o,a,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Yd&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){si[0]=si[1]=li[0]=li[1]=Number.MAX_VALUE,an[0]=an[1]=ui[0]=ui[1]=-Number.MAX_VALUE;var e=this.data,r=0,i=0,n=0,o=0,a;for(a=0;a<this._len;){var s=e[a++],l=a===1;switch(l&&(r=e[a],i=e[a+1],n=r,o=i),s){case Ue.M:r=n=e[a++],i=o=e[a++],li[0]=n,li[1]=o,ui[0]=n,ui[1]=o;break;case Ue.L:Wd(r,i,e[a],e[a+1],li,ui),r=e[a++],i=e[a++];break;case Ue.C:F0(r,i,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],li,ui),r=e[a++],i=e[a++];break;case Ue.Q:B0(r,i,e[a++],e[a++],e[a],e[a+1],li,ui),r=e[a++],i=e[a++];break;case Ue.A:var u=e[a++],f=e[a++],c=e[a++],p=e[a++],d=e[a++],h=e[a++]+d;a+=1;var g=!e[a++];l&&(n=qn(d)*c+u,o=jn(d)*p+f),z0(u,f,c,p,d,h,g,li,ui),r=qn(h)*c+u,i=jn(h)*p+f;break;case Ue.R:n=r=e[a++],o=i=e[a++];var v=e[a++],m=e[a++];Wd(n,o,n+v,o+m,li,ui);break;case Ue.Z:r=n,i=o;break}Si(si,si,li),wi(an,an,ui)}return a===0&&(si[0]=si[1]=an[0]=an[1]=0),new te(si[0],si[1],an[0]-si[0],an[1]-si[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,i=this._ux,n=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,p=0;p<r;){var d=e[p++],h=p===1;h&&(o=e[p],a=e[p+1],s=o,l=a);var g=-1;switch(d){case Ue.M:o=s=e[p++],a=l=e[p++];break;case Ue.L:{var v=e[p++],m=e[p++],_=v-o,y=m-a;(Mi(_)>i||Mi(y)>n||p===r-1)&&(g=Math.sqrt(_*_+y*y),o=v,a=m);break}case Ue.C:{var x=e[p++],S=e[p++],v=e[p++],m=e[p++],w=e[p++],b=e[p++];g=Uy(o,a,x,S,v,m,w,b,10),o=w,a=b;break}case Ue.Q:{var x=e[p++],S=e[p++],v=e[p++],m=e[p++];g=Wy(o,a,x,S,v,m,10),o=v,a=m;break}case Ue.A:var E=e[p++],T=e[p++],D=e[p++],O=e[p++],R=e[p++],M=e[p++],A=M+R;p+=1,h&&(s=qn(R)*D+E,l=jn(R)*O+T),g=Gd(D,O)*Hd(sn,Math.abs(M)),o=qn(A)*D+E,a=jn(A)*O+T;break;case Ue.R:{s=o=e[p++],l=a=e[p++];var j=e[p++],H=e[p++];g=j*2+H*2;break}case Ue.Z:{var _=s-o,y=l-a;g=Math.sqrt(_*_+y*y),o=s,a=l;break}}g>=0&&(u[c++]=g,f+=g)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var i=this.data,n=this._ux,o=this._uy,a=this._len,s,l,u,f,c,p,d=r<1,h,g,v=0,m=0,_,y=0,x,S;if(!(d&&(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,g=this._pathLen,_=r*g,!_)))e:for(var w=0;w<a;){var b=i[w++],E=w===1;switch(E&&(u=i[w],f=i[w+1],s=u,l=f),b!==Ue.L&&y>0&&(e.lineTo(x,S),y=0),b){case Ue.M:s=u=i[w++],l=f=i[w++],e.moveTo(u,f);break;case Ue.L:{c=i[w++],p=i[w++];var T=Mi(c-u),D=Mi(p-f);if(T>n||D>o){if(d){var O=h[m++];if(v+O>_){var R=(_-v)/O;e.lineTo(u*(1-R)+c*R,f*(1-R)+p*R);break e}v+=O}e.lineTo(c,p),u=c,f=p,y=0}else{var M=T*T+D*D;M>y&&(x=c,S=p,y=M)}break}case Ue.C:{var A=i[w++],j=i[w++],H=i[w++],re=i[w++],Ce=i[w++],ge=i[w++];if(d){var O=h[m++];if(v+O>_){var R=(_-v)/O;Qo(u,A,H,Ce,R,Yn),Qo(f,j,re,ge,R,Xn),e.bezierCurveTo(Yn[1],Xn[1],Yn[2],Xn[2],Yn[3],Xn[3]);break e}v+=O}e.bezierCurveTo(A,j,H,re,Ce,ge),u=Ce,f=ge;break}case Ue.Q:{var A=i[w++],j=i[w++],H=i[w++],re=i[w++];if(d){var O=h[m++];if(v+O>_){var R=(_-v)/O;Jo(u,A,H,R,Yn),Jo(f,j,re,R,Xn),e.quadraticCurveTo(Yn[1],Xn[1],Yn[2],Xn[2]);break e}v+=O}e.quadraticCurveTo(A,j,H,re),u=H,f=re;break}case Ue.A:var de=i[w++],me=i[w++],Se=i[w++],Ee=i[w++],z=i[w++],I=i[w++],P=i[w++],G=!i[w++],fe=Se>Ee?Se:Ee,J=Mi(Se-Ee)>.001,ce=z+I,U=!1;if(d){var O=h[m++];v+O>_&&(ce=z+I*(_-v)/O,U=!0),v+=O}if(J&&e.ellipse?e.ellipse(de,me,Se,Ee,P,z,ce,G):e.arc(de,me,fe,z,ce,G),U)break e;E&&(s=qn(z)*Se+de,l=jn(z)*Ee+me),u=qn(ce)*Se+de,f=jn(ce)*Ee+me;break;case Ue.R:s=u=i[w],l=f=i[w+1],c=i[w++],p=i[w++];var q=i[w++],Ne=i[w++];if(d){var O=h[m++];if(v+O>_){var se=_-v;e.moveTo(c,p),e.lineTo(c+Hd(se,q),p),se-=q,se>0&&e.lineTo(c+q,p+Hd(se,Ne)),se-=Ne,se>0&&e.lineTo(c+Gd(q-se,0),p+Ne),se-=q,se>0&&e.lineTo(c,p+Gd(Ne-se,0));break e}v+=O}e.rect(c,p,q,Ne);break;case Ue.Z:if(d){var O=h[m++];if(v+O>_){var R=(_-v)/O;e.lineTo(u*(1-R)+s*R,f*(1-R)+l*R);break e}v+=O}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Ue,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})(),dr=sO;function Kn(t,e,r,i,n,o,a){if(n===0)return!1;var s=n,l=0,u=t;if(a>e+s&&a>i+s||a<e-s&&a<i-s||o>t+s&&o>r+s||o<t-s&&o<r-s)return!1;if(t!==r)l=(e-i)/(t-r),u=(t*i-r*e)/(t-r);else return Math.abs(o-t)<=s/2;var f=l*o-a+u,c=f*f/(l*l+1);return c<=s/2*s/2}function U0(t,e,r,i,n,o,a,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>i+c&&f>o+c&&f>s+c||f<e-c&&f<i-c&&f<o-c&&f<s-c||u>t+c&&u>r+c&&u>n+c&&u>a+c||u<t-c&&u<r-c&&u<n-c&&u<a-c)return!1;var p=Lu(t,e,r,i,n,o,a,s,u,f,null);return p<=c/2}function V0(t,e,r,i,n,o,a,s,l){if(a===0)return!1;var u=a;if(l>e+u&&l>i+u&&l>o+u||l<e-u&&l<i-u&&l<o-u||s>t+u&&s>r+u&&s>n+u||s<t-u&&s<r-u&&s<n-u)return!1;var f=ku(t,e,r,i,n,o,s,l,null);return f<=u/2}var W0=Math.PI*2;function Rr(t){return t%=W0,t<0&&(t+=W0),t}var Ms=Math.PI*2;function H0(t,e,r,i,n,o,a,s,l){if(a===0)return!1;var u=a;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(i-n)%Ms<1e-4)return!0;if(o){var c=i;i=Rr(n),n=Rr(c)}else i=Rr(i),n=Rr(n);i>n&&(n+=Ms);var p=Math.atan2(l,s);return p<0&&(p+=Ms),p>=i&&p<=n||p+Ms>=i&&p+Ms<=n}function Oi(t,e,r,i,n,o){if(o>e&&o>i||o<e&&o<i||i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;(a===1||a===0)&&(s=i<e?.5:-.5);var l=a*(r-t)+t;return l===n?1/0:l>n?s:0}var ln=dr.CMD,Zn=Math.PI*2,pO=1e-4;function dO(t,e){return Math.abs(t-e)<pO}var Kt=[-1,-1,-1],Ar=[-1,-1];function hO(){var t=Ar[0];Ar[0]=Ar[1],Ar[1]=t}function vO(t,e,r,i,n,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u<e&&u<i&&u<o&&u<s)return 0;var f=Au(e,i,o,s,u,Kt);if(f===0)return 0;for(var c=0,p=-1,d=void 0,h=void 0,g=0;g<f;g++){var v=Kt[g],m=v===0||v===1?.5:1,_=lt(t,r,n,a,v);_<l||(p<0&&(p=Nu(e,i,o,s,Ar),Ar[1]<Ar[0]&&p>1&&hO(),d=lt(e,i,o,s,Ar[0]),p>1&&(h=lt(e,i,o,s,Ar[1]))),p===2?v<Ar[0]?c+=d<e?m:-m:v<Ar[1]?c+=h<d?m:-m:c+=s<h?m:-m:v<Ar[0]?c+=d<e?m:-m:c+=s<d?m:-m)}return c}function mO(t,e,r,i,n,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=Vy(e,i,o,s,Kt);if(l===0)return 0;var u=Pu(e,i,o);if(u>=0&&u<=1){for(var f=0,c=Ct(e,i,o,u),p=0;p<l;p++){var d=Kt[p]===0||Kt[p]===1?.5:1,h=Ct(t,r,n,Kt[p]);h<a||(Kt[p]<u?f+=c<e?d:-d:f+=o<c?d:-d)}return f}else{var d=Kt[0]===0||Kt[0]===1?.5:1,h=Ct(t,r,n,Kt[0]);return h<a?0:o<e?d:-d}}function gO(t,e,r,i,n,o,a,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Kt[0]=-l,Kt[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=Zn-1e-4){i=0,n=Zn;var f=o?1:-1;return a>=Kt[0]+t&&a<=Kt[1]+t?f:0}if(i>n){var c=i;i=n,n=c}i<0&&(i+=Zn,n+=Zn);for(var p=0,d=0;d<2;d++){var h=Kt[d];if(h+t>a){var g=Math.atan2(s,h),f=o?1:-1;g<0&&(g=Zn+g),(g>=i&&g<=n||g+Zn>=i&&g+Zn<=n)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),p+=f)}}return p}function G0(t,e,r,i,n){for(var o=t.data,a=t.len(),s=0,l=0,u=0,f=0,c=0,p,d,h=0;h<a;){var g=o[h++],v=h===1;switch(g===ln.M&&h>1&&(r||(s+=Oi(l,u,f,c,i,n))),v&&(l=o[h],u=o[h+1],f=l,c=u),g){case ln.M:f=o[h++],c=o[h++],l=f,u=c;break;case ln.L:if(r){if(Kn(l,u,o[h],o[h+1],e,i,n))return!0}else s+=Oi(l,u,o[h],o[h+1],i,n)||0;l=o[h++],u=o[h++];break;case ln.C:if(r){if(U0(l,u,o[h++],o[h++],o[h++],o[h++],o[h],o[h+1],e,i,n))return!0}else s+=vO(l,u,o[h++],o[h++],o[h++],o[h++],o[h],o[h+1],i,n)||0;l=o[h++],u=o[h++];break;case ln.Q:if(r){if(V0(l,u,o[h++],o[h++],o[h],o[h+1],e,i,n))return!0}else s+=mO(l,u,o[h++],o[h++],o[h],o[h+1],i,n)||0;l=o[h++],u=o[h++];break;case ln.A:var m=o[h++],_=o[h++],y=o[h++],x=o[h++],S=o[h++],w=o[h++];h+=1;var b=!!(1-o[h++]);p=Math.cos(S)*y+m,d=Math.sin(S)*x+_,v?(f=p,c=d):s+=Oi(l,u,p,d,i,n);var E=(i-m)*x/y+m;if(r){if(H0(m,_,x,S,S+w,b,e,E,n))return!0}else s+=gO(m,_,x,S,S+w,b,E,n);l=Math.cos(S+w)*y+m,u=Math.sin(S+w)*x+_;break;case ln.R:f=l=o[h++],c=u=o[h++];var T=o[h++],D=o[h++];if(p=f+T,d=c+D,r){if(Kn(f,c,p,c,e,i,n)||Kn(p,c,p,d,e,i,n)||Kn(p,d,f,d,e,i,n)||Kn(f,d,f,c,e,i,n))return!0}else s+=Oi(p,c,p,d,i,n),s+=Oi(f,d,f,c,i,n);break;case ln.Z:if(r){if(Kn(l,u,f,c,e,i,n))return!0}else s+=Oi(l,u,f,c,i,n);l=f,u=c;break}}return!r&&!dO(u,c)&&(s+=Oi(l,u,f,c,i,n)||0),s!==0}function Y0(t,e,r){return G0(t,0,!1,e,r)}function X0(t,e,r,i){return G0(t,e,!0,r,i)}var Kd=ye({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},oi),yO={style:ye({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Hn.style)},jd=Ko.concat(["invisible","culling","z","z2","zlevel","parent"]),xO=(function(t){ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){r.buildPath(l,r.shape)}),n.silent=!0;var o=n.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<jd.length;++s)n[jd[s]]=this[jd[s]];n.__dirty|=ut}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var i=xe(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var o=0;o<i.length;o++){var a=i[o],s=r[a];a==="style"?this.style?N(this.style,s):this.useStyle(s):a==="shape"?N(this.shape,s):t.prototype.attrKV.call(this,a,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(k(r)){var i=ta(r,0);return i>.5?bs:i>.2?u0:Es}else if(r)return Es}return bs},e.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(k(i)){var n=this.__zr,o=!!(n&&n.isDarkMode()),a=ta(r,0)<Ts;if(o===a)return i}},e.prototype.buildPath=function(r,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~rn},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new dr(!1)},e.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&rn)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),r=a.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),o=this.getBoundingRect(),a=this.style;if(r=n[0],i=n[1],o.contain(r,i)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,u=a.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),X0(s,l/u,r,i)))return!0}if(this.hasFill())return Y0(s,r,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=rn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):t.prototype.attrKV.call(this,r,i)},e.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:N(n,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&rn)},e.prototype.createStyle=function(r){return qi(Kd,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=N({},this.shape))},e.prototype._applyStateObj=function(r,i,n,o,a,s){if(t.prototype._applyStateObj.call(this,r,i,n,o,a,s),this.__inHover!==na){var l=!(i&&o),u;if(i&&i.shape?a?o?u=i.shape:(u=N({},n.shape),N(u,i.shape)):(u=N({},o?this.shape:n.shape),N(u,i.shape)):l&&(u=n.shape),u)if(a){this.shape=N({},this.shape);for(var f={},c=xe(u),p=0;p<c.length;p++){var d=c[p];typeof u[d]=="object"?this.shape[d]=u[d]:f[d]=u[d]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,o=0;o<r.length;o++){var a=r[o];a.shape&&(n=n||{},this._mergeStyle(n,a.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return yO},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var i=(function(o){ae(a,o);function a(s){var l=o.call(this,s)||this;return r.init&&r.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return ie(r.style)},a.prototype.getDefaultShape=function(){return ie(r.shape)},a})(e);for(var n in r)typeof r[n]=="function"&&(i.prototype[n]=r[n]);return i},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=ut|Vn|rn})(),e})(ai),he=xO;var SO=ye({strokeFirst:!0,font:Er,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Kd),q0=(function(t){ae(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return kd(this.style)},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(r){return qi(SO,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=N0(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(ai);q0.prototype.type="tspan";var Os=q0;var wO=ye({x:0,y:0},oi),CO={style:ye({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Hn.style)};function TO(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var j0=(function(t){ae(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return qi(wO,r)},e.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var o=TO(i.image)?i.image:this.__image;if(!o)return 0;var a=r==="width"?"height":"width",s=i[a];return s==null?o[r]:o[r]/o[a]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return CO},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new te(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(ai);j0.prototype.type="image";var Nr=j0;function K0(t,e){var r=e.x,i=e.y,n=e.width,o=e.height,a=e.r,s,l,u,f;n<0&&(r=r+n,n=-n),o<0&&(i=i+o,o=-o),typeof a=="number"?s=l=u=f=a:a instanceof Array?a.length===1?s=l=u=f=a[0]:a.length===2?(s=u=a[0],l=f=a[1]):a.length===3?(s=a[0],l=f=a[1],u=a[2]):(s=a[0],l=a[1],u=a[2],f=a[3]):s=l=u=f=0;var c;s+l>n&&(c=s+l,s*=n/c,l*=n/c),u+f>n&&(c=u+f,u*=n/c,f*=n/c),l+u>o&&(c=l+u,l*=o/c,u*=o/c),s+f>o&&(c=s+f,s*=o/c,f*=o/c),t.moveTo(r+s,i),t.lineTo(r+n-l,i),l!==0&&t.arc(r+n-l,i+l,l,-Math.PI/2,0),t.lineTo(r+n,i+o-u),u!==0&&t.arc(r+n-u,i+o-u,u,0,Math.PI/2),t.lineTo(r+f,i+o),f!==0&&t.arc(r+f,i+o-f,f,Math.PI/2,Math.PI),t.lineTo(r,i+s),s!==0&&t.arc(r+s,i+s,s,Math.PI,Math.PI*1.5),t.closePath()}var sa=Math.round;function tf(t,e,r){if(e){var i=e.x1,n=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=n,t.y1=o,t.y2=a;var s=r&&r.lineWidth;return s&&(sa(i*2)===sa(n*2)&&(t.x1=t.x2=un(i,s,!0)),sa(o*2)===sa(a*2)&&(t.y1=t.y2=un(o,s,!0))),t}}function rf(t,e,r){if(e){var i=e.x,n=e.y,o=e.width,a=e.height;t.x=i,t.y=n,t.width=o,t.height=a;var s=r&&r.lineWidth;return s&&(t.x=un(i,s,!0),t.y=un(n,s,!0),t.width=Math.max(un(i+o,s,!1)-t.x,o===0?0:1),t.height=Math.max(un(n+a,s,!1)-t.y,a===0?0:1)),t}}function un(t,e,r){if(!e)return t;var i=sa(t*2);return(i+sa(e))%2===0?i/2:(i+(r?1:-1))/2}var DO=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})();var MO={},Z0=(function(t){ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new DO},e.prototype.buildPath=function(r,i){var n,o,a,s;if(this.subPixelOptimize){var l=rf(MO,i,this.style);n=l.x,o=l.y,a=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,o=i.y,a=i.width,s=i.height;i.r?K0(r,i):r.rect(n,o,a,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(he);Z0.prototype.type="rect";var ft=Z0;var $0={fill:"#000"},Q0=2,fi={},OO={style:ye({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Hn.style)},ax=(function(t){ae(e,t);function e(r){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=$0,i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var i=this.innerTransformable;return i?i.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,LO(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new te(0,0,0,0),i=this._children,n=[],o=null,a=0;a<i.length;a++){var s=i[a],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(r.copy(l),r.applyTransform(u),o=o||r.clone(),o.union(r)):(o=o||l.clone(),o.union(l))}this._rect=o||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||$0},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,o=r.rich||n&&{};return N(r,i),n&&o?(this._mergeRich(o,n),r.rich=o):o&&(r.rich=o),r},e.prototype._mergeRich=function(r,i){for(var n=xe(i),o=0;o<n.length;o++){var a=n[o];r[a]=r[a]||{},N(r[a],i[a])}},e.prototype.getAnimationStyleProps=function(){return OO},e.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||Er,n=r.padding,o=this._defaultStyle,a=r.x||0,s=r.y||0,l=r.align||o.align||"left",u=r.verticalAlign||o.verticalAlign||"top";Ld(fi,o.overflowRect,a,s,l,u),a=fi.baseX,s=fi.baseY;var f=ox(r),c=I0(f,r,fi.outerWidth,fi.outerHeight),p=Zd(r),d=!!r.backgroundColor,h=c.outerHeight,g=c.outerWidth,v=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var _=a,y=Di(s,c.contentHeight,u);if(p||n){var x=en(a,g,l),S=Di(s,h,u);p&&this._renderBackground(r,r,x,S,g,h)}y+=m/2,n&&(_=nx(a,l,n),u==="top"?y+=n[0]:u==="bottom"&&(y-=n[2]));for(var w=0,b=!1,E=!1,T=ix("fill"in r?r.fill:(E=!0,o.fill)),D=rx("stroke"in r?r.stroke:!d&&(!o.autoStroke||E)?(w=Q0,b=!0,o.stroke):null),O=r.textShadowBlur>0,R=0;R<v.length;R++){var M=this._getOrCreateChild(Os),A=M.createStyle();M.useStyle(A),A.text=v[R],A.x=_,A.y=y,l&&(A.textAlign=l),A.textBaseline="middle",A.opacity=r.opacity,A.strokeFirst=!0,O&&(A.shadowBlur=r.textShadowBlur||0,A.shadowColor=r.textShadowColor||"transparent",A.shadowOffsetX=r.textShadowOffsetX||0,A.shadowOffsetY=r.textShadowOffsetY||0),A.stroke=D,A.fill=T,D&&(A.lineWidth=r.lineWidth||w,A.lineDash=r.lineDash,A.lineDashOffset=r.lineDashOffset||0),A.font=i,ex(A,r),y+=m,M.setBoundingRect($u(A,c.contentWidth,c.calculatedLineHeight,b?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,n=r.align||i.align,o=r.verticalAlign||i.verticalAlign,a=r.x||0,s=r.y||0;Ld(fi,i.overflowRect,a,s,n,o),a=fi.baseX,s=fi.baseY;var l=ox(r),u=R0(l,r,fi.outerWidth,fi.outerHeight,n),f=u.width,c=u.outerWidth,p=u.outerHeight,d=r.padding;this.isTruncated=!!u.isTruncated;var h=en(a,c,n),g=Di(s,p,o),v=h,m=g;d&&(v+=d[3],m+=d[0]);var _=v+f;Zd(r)&&this._renderBackground(r,r,h,g,c,p);for(var y=!!r.backgroundColor,x=0;x<u.lines.length;x++){for(var S=u.lines[x],w=S.tokens,b=w.length,E=S.lineHeight,T=S.width,D=0,O=v,R=_,M=b-1,A=void 0;D<b&&(A=w[D],!A.align||A.align==="left");)this._placeToken(A,r,E,m,O,"left",y),T-=A.width,O+=A.width,D++;for(;M>=0&&(A=w[M],A.align==="right");)this._placeToken(A,r,E,m,R,"right",y),T-=A.width,R-=A.width,M--;for(O+=(f-(O-v)-(_-R)-T)/2;D<=M;)A=w[D],this._placeToken(A,r,E,m,O+A.width/2,"center",y),O+=A.width,D++;m+=E}},e.prototype._placeToken=function(r,i,n,o,a,s,l){var u=i.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=o+n/2;f==="top"?c=o+r.height/2:f==="bottom"&&(c=o+n-r.height/2);var p=!r.isLineHolder&&Zd(u);p&&this._renderBackground(u,i,s==="right"?a-r.width:s==="center"?a-r.width/2:a,c-r.height/2,r.width,r.height);var d=!!u.backgroundColor,h=r.textPadding;h&&(a=nx(a,s,h),c-=r.height/2-h[0]-r.innerHeight/2);var g=this._getOrCreateChild(Os),v=g.createStyle();g.useStyle(v);var m=this._defaultStyle,_=!1,y=0,x=!1,S=ix("fill"in u?u.fill:"fill"in i?i.fill:(_=!0,m.fill)),w=rx("stroke"in u?u.stroke:"stroke"in i?i.stroke:!d&&!l&&(!m.autoStroke||_)?(y=Q0,x=!0,m.stroke):null),b=u.textShadowBlur>0||i.textShadowBlur>0;v.text=r.text,v.x=a,v.y=c,b&&(v.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,v.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",v.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,v.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),v.textAlign=s,v.textBaseline="middle",v.font=r.font||Er,v.opacity=zr(u.opacity,i.opacity,1),ex(v,u),w&&(v.lineWidth=zr(u.lineWidth,i.lineWidth,y),v.lineDash=Q(u.lineDash,i.lineDash),v.lineDashOffset=i.lineDashOffset||0,v.stroke=w),S&&(v.fill=S),g.setBoundingRect($u(v,r.contentWidth,r.contentHeight,x?0:null))},e.prototype._renderBackground=function(r,i,n,o,a,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,p=l&&!c,d=r.borderRadius,h=this,g,v;if(p||r.lineHeight||u&&f){g=this._getOrCreateChild(ft),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=n,m.y=o,m.width=a,m.height=s,m.r=d,g.dirtyShape()}if(p){var _=g.style;_.fill=l||null,_.fillOpacity=Q(r.fillOpacity,1)}else if(c){v=this._getOrCreateChild(Nr),v.onload=function(){h.dirtyStyle()};var y=v.style;y.image=l.image,y.x=n,y.y=o,y.width=a,y.height=s}if(u&&f){var _=g.style;_.lineWidth=u,_.stroke=f,_.strokeOpacity=Q(r.strokeOpacity,1),_.lineDash=r.borderDash,_.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var x=(g||v).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=zr(r.opacity,i.opacity,1)},e.makeFont=function(r){var i="";return NO(r)&&(i=[r.fontStyle,r.fontWeight,AO(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&Ft(i)||r.textFont||r.font},e})(ai),IO={left:!0,right:1,center:1},RO={top:1,bottom:1,middle:1},J0=["fontStyle","fontWeight","fontSize","fontFamily"];function AO(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?mu+"px":t+"px"}function ex(t,e){for(var r=0;r<J0.length;r++){var i=J0[r],n=e[i];n!=null&&(t[i]=n)}}function NO(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function LO(t){return tx(t),C(t.rich,tx),t}function tx(t){if(t){t.font=ax.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||IO[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||RO[r]?r:"top";var i=t.padding;i&&(t.padding=Xo(t.padding))}}function rx(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function ix(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function nx(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function ox(t){var e=t.text;return e!=null&&(e+=""),e}function Zd(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var zt=ax;var sx=1e-4,nf=20;function PO(t){return t.replace(/^\s+|\s+$/g,"")}var _t=Math.min,Pe=Math.max,Zt=Math.abs,Wr=Math.round,Ii=Math.floor,Is=Math.ceil,$n=Math.pow,la=Math.log,$d=Math.LN10,kO=Math.PI,FO=Math.random;function lx(t,e,r,i){var n=e[0],o=e[1],a=r[0],s=r[1],l=o-n,u=s-a;if(l===0)return u===0?a:(a+s)/2;if(i)if(l>0){if(t<=n)return a;if(t>=o)return s}else{if(t>=n)return a;if(t<=o)return s}else{if(t===n)return a;if(t===o)return s}return(t-n)/l*u+a}var At=BO;function BO(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return zO(t,e,r)}function zO(t,e,r){return k(t)?UO(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function UO(t){return!!PO(t).match(/%$/)}function rt(t,e,r){return isNaN(e)?r?""+t:+t:(e=_t(Pe(0,e),nf),t=(+t).toFixed(e),r?t:+t)}function ux(t,e,r){return e==null&&(e=10),rt(t,e,r)}function of(t){return t.sort(function(e,r){return e-r}),t}function hr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Wr(t*e)/e===t)return r}return Qd(t)}function Qd(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),i=r>0?+e.slice(r+1):0,n=r>0?r:e.length,o=e.indexOf("."),a=o<0?0:n-1-o;return Pe(0,a-i)}function fx(t,e){var r=Ii(la(t[1]-t[0])/$d),i=Wr(la(Zt(e[1]-e[0]))/$d),n=_t(Pe(-r+i,0),nf);return isFinite(n)?n:nf}function cx(t,e,r){if(!t[e])return 0;var i=VO(t,r);return i[e]||0}function VO(t,e){var r=qt(t,function(d,h){return d+(isNaN(h)?0:h)},0);if(r===0)return[];for(var i=$n(10,e),n=K(t,function(d){return(isNaN(d)?0:d)/r*i*100}),o=i*100,a=K(n,function(d){return Ii(d)}),s=qt(a,function(d,h){return d+h},0),l=K(n,function(d,h){return d-a[h]});s<o;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],f=c);++a[f],l[f]=0,++s}return K(a,function(d){return d/i})}function px(t,e){var r=Pe(hr(t),hr(e)),i=t+e;return r>nf?i:rt(i,r)}var dx=$n(2,53)-1;function Rs(t){var e=kO*2;return(t%e+e)%e}function Qn(t){return t>-sx&&t<sx}var WO=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function vr(t){if(t instanceof Date)return t;if(k(t)){var e=WO.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Wr(t))}function af(t){return $n(10,As(t))}function As(t){if(t===0)return 0;var e=Ii(la(t)/$d);return t/$n(10,e)>=10&&e++,e}var HO=2;function Jn(t,e){var r=As(t),i=$n(10,r),n=t/i,o;return e===HO?o=1:e?n<1.5?o=1:n<2.5?o=2:n<4?o=3:n<7?o=5:o=10:n<1?o=1:n<2?o=2:n<3?o=3:n<5?o=5:o=10,t=o*i,rt(t,-r)}function hx(t,e){var r=(t.length-1)*e+1,i=Ii(r),n=+t[i-1],o=r-i;return o?n+o*(t[i]-n):n}function vx(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,i=0;i<t.length;){for(var n=t[i].interval,o=t[i].close,a=0;a<2;a++)n[a]<=e&&(n[a]=e,o[a]=a?1:1-r),e=n[a],r=o[a];n[0]===n[1]&&o[0]*o[1]!==1?t.splice(i,1):i++}return t;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Lr(t){var e=parseFloat(t);return e==t&&(e!==0||!k(t)||t.indexOf("x")<=0)?e:NaN}function Ns(t){return!isNaN(Lr(t))}function Ls(){return Wr(FO()*9)}function mx(t,e){return e===0?t:mx(e,t%e)}function Jd(t,e){return t==null?e:e==null?t:t*e/mx(t,e)}function ar(t){return t!=null&&isFinite(t)}function _x(t,e,r){return(e-t)*r+t}var yx="series\0",GO="\0_ec_\0";function Xe(t){return t instanceof Array?t:t==null?[]:[t]}function eh(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,n=r.length;i<n;i++){var o=r[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var th=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Ri(t){return B(t)&&!L(t)&&!(t instanceof Date)?t.value:t}function xx(t){return B(t)&&!(t instanceof Array)}function Sx(t,e,r){var i=r==="normalMerge",n=r==="replaceMerge",o=r==="replaceAll";t=t||[],e=(e||[]).slice();var a=Z();C(e,function(l,u){if(!B(l)){e[u]=null;return}});var s=YO(t,a,r);return(i||n)&&XO(s,t,a,e),i&&qO(s,e),i||n?jO(s,e,n):o&&KO(s,e),ZO(s),s}function YO(t,e,r){var i=[];if(r==="replaceAll")return i;for(var n=0;n<t.length;n++){var o=t[n];o&&o.id!=null&&e.set(o.id,n),i.push({existing:r==="replaceMerge"||ua(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function XO(t,e,r,i){C(i,function(n,o){if(!(!n||n.id==null)){var a=Ps(n.id),s=r.get(a);if(s!=null){var l=t[s];mt(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=n,l.existing=e[s],i[o]=null}}})}function qO(t,e){C(e,function(r,i){if(!(!r||r.name==null))for(var n=0;n<t.length;n++){var o=t[n].existing;if(!t[n].newOption&&o&&(o.id==null||r.id==null)&&!ua(r)&&!ua(o)&&Cx("name",o,r)){t[n].newOption=r,e[i]=null;return}}})}function jO(t,e,r){C(e,function(i){if(i){for(var n,o=0;(n=t[o])&&(n.newOption||ua(n.existing)||n.existing&&i.id!=null&&!Cx("id",i,n.existing));)o++;n?(n.newOption=i,n.brandNew=r):t.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),o++}})}function KO(t,e){C(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function ZO(t){var e=Z();C(t,function(r){var i=r.existing;i&&e.set(i.id,r)}),C(t,function(r){var i=r.newOption;mt(!i||i.id==null||!e.get(i.id)||e.get(i.id)===r,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),C(t,function(r,i){var n=r.existing,o=r.newOption,a=r.keyInfo;if(B(o)){if(a.name=o.name!=null?Ps(o.name):n?n.name:yx+i,n)a.id=Ps(n.id);else if(o.id!=null)a.id=Ps(o.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(e.get(a.id))}e.set(a.id,r)}})}function Cx(t,e,r){var i=mr(e[t],null),n=mr(r[t],null);return i!=null&&n!=null&&i===n}function Ps(t){return mr(t,"")}function mr(t,e){return t==null?e:k(t)?t:be(t)||fs(t)?t+"":e}function sf(t){var e=t.name;return!!(e&&e.indexOf(yx))}function ua(t){return t&&t.id!=null&&Ps(t.id).indexOf(GO)===0}function Tx(t,e,r){C(t,function(i){var n=i.newOption;B(n)&&(i.keyInfo.mainType=e,i.keyInfo.subType=$O(e,n,i.existing,r))})}function $O(t,e,r,i){var n=e.type?e.type:r?r.subType:i.determineSubType(t,e);return n}function Ai(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return L(e.dataIndex)?K(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return L(e.name)?K(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function ne(){var t="__ec_inner_"+QO++;return function(e){return e[t]||(e[t]={})}}var QO=Ls();function lf(t,e,r){var i=ks(e,r),n=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=a,l=r?r.defaultMainType:null;return!n&&l&&o.set(l,{}),o.each(function(u,f){var c=fn(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function ks(t,e){var r;if(k(t)){var i={};i[t+"Index"]=0,r=i}else r=t;var n=Z(),o={},a=!1;return C(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&pe(e.includeMainTypes,f)<0)){a=a||!!f;var p=n.get(f)||n.set(f,{});p[c]=s}}),{mainTypeSpecified:a,queryOptionMap:n,others:o}}var pi={useDefault:!0,enableAll:!1,enableNone:!1};function fn(t,e,r,i){i=i||pi;var n=r.index,o=r.id,a=r.name,s={models:null,specified:n!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=o=a=null:n=-1),s.models=t.queryComponents({mainType:e,index:n,id:o,name:a}),s}function bx(t,e,r){var i={};i[e+"Id"]=t[e+"Id"],i[e+"Index"]=t[e+"Index"],i[e+"Name"]=t[e+"Name"];var n={mainType:e,query:i};return r&&(n.subType=r),n}function rh(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function Ex(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function Dx(t){return t==="auto"?le.domSupported?"html":"richText":t||"html"}function Mx(t,e,r,i,n){var o=e==null||e==="auto";if(i==null)return i;if(be(i)){var a=_x(r||0,i,n);return rt(a,o?Math.max(hr(r||0),hr(i)):e)}else{if(k(i))return n<1?r:i;for(var s=[],l=r,u=i,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var p=t.getDimensionInfo(c);if(p&&p.type==="ordinal")s[c]=(n<1&&l?l:u)[c];else{var d=l&&l[c]?l[c]:0,h=u[c],a=_x(d,h,n);s[c]=rt(a,o?Math.max(hr(d),hr(h)):e)}}return s}}var bW=(function(){function t(){}return t.prototype.reset=function(e,r,i,n){return this._list=e,this._step=n=n||1,this._idx=r,this._end=i??(n>0?e.length:0),this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},t})();function gr(){return[1/0,-1/0]}function ih(t,e){ci(e)&&e<t[0]&&(t[0]=e)}function nh(t,e){ci(e)&&e>t[1]&&(t[1]=e)}function ci(t){return t!=null&&isFinite(t)}function eo(t,e){return ci(t)&&ci(e)&&t<=e}function Ox(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function Ix(t){eo(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Rx(){var t="__ec_once_"+JO++;return function(e,r){gt(e,t)||(e[t]=1,r())}}var JO=Ls();function Fs(t,e,r){var i=Z(),n=0;C(t,function(o){var a=e(o),s=i.get(a)||0;r&&r(o,s),!s&&!r&&(t[n++]=o),i.set(a,s+1)}),r||(t.length=n)}function Ax(t){return t.value+""}function Nx(t,e,r){var i=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&i>=r.threshold,large:t.get("large")&&i>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function fa(t){return{overallReset:t}}var Ae=ne(),Lx=function(t,e,r,i){if(i){var n=Ae(i);n.dataIndex=r,n.dataType=e,n.seriesIndex=t,n.ssrType="chart",i.type==="group"&&i.traverse(function(o){var a=Ae(o);a.seriesIndex=t,a.dataIndex=r,a.dataType=e,a.ssrType="chart"})}};var Bs="undefined",uf="series",ff=Z(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Tt="original",yt="arrayRows",$t="objectRows",_r="keyedColumns",yr="typedArray",oh="unknown",Qt="column",di="row";var eI=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],tI=(function(){function t(e){C(eI,function(r){this[r]=Me(e[r],e)},this)}return t})();function Px(t,e){return e.mainType===uf?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var cf=tI;var kx=1,Fx={},Vx=ne(),lh=ne(),Wx=0,df=1,hf=2,cn=["emphasis","blur","select"],vf=["normal","emphasis","blur","select"],rI=10,iI=9,pn="highlight",zs="downplay",Us="select",mf="unselect",Vs="toggleSelect",gf="selectchanged";function pa(t){return t!=null&&t!=="none"}function _f(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function Hx(t){_f(t,"emphasis",hf)}function Gx(t){t.hoverState===hf&&_f(t,"normal",Wx)}function uh(t){_f(t,"blur",df)}function Yx(t){t.hoverState===df&&_f(t,"normal",Wx)}function nI(t){t.selected=!0}function oI(t){t.selected=!1}function Bx(t,e,r){e(t,r)}function Ni(t,e,r){Bx(t,e,r),t.isGroup&&t.traverse(function(i){Bx(i,e,r)})}function aI(t,e,r,i){for(var n=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=n[s];o[s]=l??(i&&i[s])}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(o,e)}return o}function sI(t,e,r,i){var n=r&&pe(r,"select")>=0,o=!1;if(t instanceof he){var a=Vx(t),s=n&&a.selectFill||a.normalFill,l=n&&a.selectStroke||a.normalStroke;if(pa(s)||pa(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(o=!0,i=N({},i),u=N({},u),u.fill=s):!pa(u.fill)&&pa(s)?(o=!0,i=N({},i),u=N({},u),u.fill=ld(s)):!pa(u.stroke)&&pa(l)&&(o||(i=N({},i),u=N({},u)),u.stroke=ld(l)),i.style=u}}if(i&&i.z2==null){o||(i=N({},i));var f=t.z2EmphasisLift;i.z2=t.z2+(f??rI)}return i}function lI(t,e,r){if(r&&r.z2==null){r=N({},r);var i=t.z2SelectLift;r.z2=t.z2+(i??iI)}return r}function uI(t,e,r){var i=pe(t.currentStates,e)>=0,n=t.style.opacity,o=i?null:aI(t,["opacity"],e,{opacity:1});r=r||{};var a=r.style||{};return a.opacity==null&&(r=N({},r),a=N({opacity:i?n:o.opacity*.1},a),r.style=a),r}function ah(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return sI(this,t,e,r);if(t==="blur")return uI(this,t,r);if(t==="select")return lI(this,t,r)}return r}function fI(t){t.stateProxy=ah;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=ah),r&&(r.stateProxy=ah)}function zx(t,e){!qx(t,e)&&!t.__highByOuter&&Ni(t,Hx)}function Ux(t,e){!qx(t,e)&&!t.__highByOuter&&Ni(t,Gx)}function Ws(t,e){t.__highByOuter|=1<<(e||0),Ni(t,Hx)}function Hs(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Ni(t,Gx)}function Xx(t){Ni(t,uh)}function fh(t){Ni(t,Yx)}function ch(t){Ni(t,nI)}function ph(t){Ni(t,oI)}function qx(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function dh(t){var e=t.getModel(),r=[],i=[];e.eachComponent(function(n,o){var a=lh(o),s=Px(t,o),l=n==="series";!l&&i.push(s),a.isBlured&&(s.group.traverse(function(u){Yx(u)}),l&&r.push(o)),a.isBlured=!1}),C(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,e)})}function sh(t,e,r,i){var n=i.getModel();r=r||"coordinateSystem";function o(u,f){for(var c=0;c<f.length;c++){var p=u.getItemGraphicEl(f[c]);p&&fh(p)}}if(t!=null&&!(!e||e==="none")){var a=n.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=a===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var p=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!p||e==="series"&&f)){var d=i.getViewOfSeriesModel(u);if(d.group.traverse(function(v){v.__highByOuter&&f&&e==="self"||uh(v)}),vt(e))o(u.getData(),e);else if(B(e))for(var h=xe(e),g=0;g<h.length;g++)o(u.getData(h[g]),e[h[g]]);l.push(u),lh(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var c=i.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function pf(t,e,r){if(!(t==null||e==null)){var i=r.getModel().getComponent(t,e);if(i){lh(i).isBlured=!0;var n=r.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(o){uh(o)})}}}function jx(t,e,r){var i=t.seriesIndex,n=t.getData(e.dataType);if(n){var o=Ai(n,e);o=(L(o)?o[0]:o)||0;var a=n.getItemGraphicEl(o);if(!a)for(var s=n.count(),l=0;!a&&l<s;)a=n.getItemGraphicEl(l++);if(a){var u=Ae(a);sh(i,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&sh(i,f,c,r)}}}function yf(t,e,r,i){var n={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return n;var o=i.getModel().getComponent(t,e);if(!o)return n;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return n;for(var s=a.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(Ae(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Kx(t,e,r){var i=Ae(t),n=yf(i.componentMainType,i.componentIndex,i.componentHighDownName,r),o=n.dispatchers,a=n.focusSelf;o?(a&&pf(i.componentMainType,i.componentIndex,r),C(o,function(s){return zx(s,e)})):(sh(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self"&&pf(i.componentMainType,i.componentIndex,r),zx(t,e))}function Zx(t,e,r){dh(r);var i=Ae(t),n=yf(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;n?C(n,function(o){return Ux(o,e)}):Ux(t,e)}function $x(t,e,r){if(xf(e)){var i=e.dataType,n=t.getData(i),o=Ai(n,e);L(o)||(o=[o]),t[e.type===Vs?"toggleSelect":e.type===Us?"select":"unselect"](o,i)}}function hh(t){var e=t.getAllData();C(e,function(r){var i=r.data,n=r.type;i.eachItemGraphicEl(function(o,a){t.isSelected(a,n)?ch(o):ph(o)})})}function Qx(t){var e=[];return t.eachSeries(function(r){var i=r.getAllData();C(i,function(n){var o=n.data,a=n.type,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};a!=null&&(l.dataType=a),e.push(l)}})}),e}function Jx(t,e,r){pI(t,!0),Ni(t,fI),cI(t,e,r)}function cI(t,e,r){var i=Ae(t);e!=null?(i.focus=e,i.blurScope=r):i.focus&&(i.focus=null)}function pI(t,e){var r=e===!1,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function Gs(t){return!!(t&&t.__highDownDispatcher)}function eS(t){var e=Fx[t];return e==null&&kx<=32&&(e=Fx[t]=kx++),e}function xf(t){var e=t.type;return e===Us||e===mf||e===Vs}function vh(t){var e=t.type;return e===pn||e===zs}function tS(t){var e=Vx(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var dn={};Po(dn,{Arc:()=>no,BezierCurve:()=>Qs,BoundingRect:()=>te,Circle:()=>to,CompoundPath:()=>bf,Ellipse:()=>Xs,Group:()=>It,HOVER_LAYER_FOR_INCREMENTAL:()=>Ah,HOVER_LAYER_FROM_THRESHOLD:()=>Rh,HOVER_LAYER_NO:()=>Ih,Image:()=>Nr,IncrementalDisplayable:()=>Nf,Line:()=>vi,LinearGradient:()=>Df,OrientedBoundingRect:()=>Af,Path:()=>he,Point:()=>ve,Polygon:()=>$s,Polyline:()=>io,RadialGradient:()=>Mf,Rect:()=>ft,Ring:()=>Zs,Sector:()=>Ks,Text:()=>zt,WH:()=>Oh,XY:()=>Mh,applyTransform:()=>Ff,calcZ2Range:()=>ZI,clipPointsByRect:()=>Bh,clipRectByRect:()=>zh,createIcon:()=>tl,decomposeTransform:()=>QI,ensureCopyRect:()=>ga,ensureCopyTransform:()=>Vf,expandOrShrinkRect:()=>Bf,extendPath:()=>Lh,extendShape:()=>Nh,getCurrentCanvasPainter:()=>JI,getShapeClass:()=>Ph,getTransform:()=>Fh,groupTransition:()=>qI,initProps:()=>Li,isBoundingRectAxisAligned:()=>Uf,isElementRemoved:()=>Pi,lineLineIntersect:()=>LS,linePolygonIntersect:()=>jI,makeImage:()=>el,makePath:()=>ma,mergePath:()=>kh,payloadDisableAnimation:()=>$I,registerShape:()=>xr,removeElement:()=>Th,removeElementWithFadeOut:()=>IS,resizePath:()=>Pf,retrieveZInfo:()=>Vh,setTooltipConfig:()=>zf,subPixelOptimize:()=>GI,subPixelOptimizeLine:()=>kf,subPixelOptimizeRect:()=>HI,transformDirection:()=>YI,traverseElements:()=>Uh,traverseUpdateZ:()=>Wh,updateProps:()=>Pr});var da=dr.CMD,dI=[[],[],[]],rS=Math.sqrt,hI=Math.atan2;function mh(t,e){if(e){var r=t.data,i=t.len(),n,o,a,s,l,u,f=da.M,c=da.C,p=da.L,d=da.R,h=da.A,g=da.Q;for(a=0,s=0;a<i;){switch(n=r[a++],s=a,o=0,n){case f:o=1;break;case p:o=1;break;case c:o=3;break;case g:o=2;break;case h:var v=e[4],m=e[5],_=rS(e[0]*e[0]+e[1]*e[1]),y=rS(e[2]*e[2]+e[3]*e[3]),x=hI(-e[1]/y,e[0]/_);r[a]*=_,r[a++]+=v,r[a]*=y,r[a++]+=m,r[a++]*=_,r[a++]*=y,r[a++]+=x,r[a++]+=x,a+=2,s=a;break;case d:u[0]=r[a++],u[1]=r[a++],nr(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[a++],u[1]+=r[a++],nr(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<o;l++){var S=dI[l];S[0]=r[a++],S[1]=r[a++],nr(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var gh=Math.sqrt,Sf=Math.sin,wf=Math.cos,Ys=Math.PI;function iS(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function _h(t,e){return(t[0]*e[0]+t[1]*e[1])/(iS(t)*iS(e))}function nS(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(_h(t,e))}function oS(t,e,r,i,n,o,a,s,l,u,f){var c=l*(Ys/180),p=wf(c)*(t-r)/2+Sf(c)*(e-i)/2,d=-1*Sf(c)*(t-r)/2+wf(c)*(e-i)/2,h=p*p/(a*a)+d*d/(s*s);h>1&&(a*=gh(h),s*=gh(h));var g=(n===o?-1:1)*gh((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,v=g*a*d/s,m=g*-s*p/a,_=(t+r)/2+wf(c)*v-Sf(c)*m,y=(e+i)/2+Sf(c)*v+wf(c)*m,x=nS([1,0],[(p-v)/a,(d-m)/s]),S=[(p-v)/a,(d-m)/s],w=[(-1*p-v)/a,(-1*d-m)/s],b=nS(S,w);if(_h(S,w)<=-1&&(b=Ys),_h(S,w)>=1&&(b=0),b<0){var E=Math.round(b/Ys*1e6)/1e6;b=Ys*2+E%2*Ys}f.addData(u,_,y,a,s,x,b,c,o)}var vI=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,mI=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function gI(t){var e=new dr;if(!t)return e;var r=0,i=0,n=r,o=i,a,s=dr.CMD,l=t.match(vI);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),p=void 0,d=f.match(mI)||[],h=d.length,g=0;g<h;g++)d[g]=parseFloat(d[g]);for(var v=0;v<h;){var m=void 0,_=void 0,y=void 0,x=void 0,S=void 0,w=void 0,b=void 0,E=r,T=i,D=void 0,O=void 0;switch(c){case"l":r+=d[v++],i+=d[v++],p=s.L,e.addData(p,r,i);break;case"L":r=d[v++],i=d[v++],p=s.L,e.addData(p,r,i);break;case"m":r+=d[v++],i+=d[v++],p=s.M,e.addData(p,r,i),n=r,o=i,c="l";break;case"M":r=d[v++],i=d[v++],p=s.M,e.addData(p,r,i),n=r,o=i,c="L";break;case"h":r+=d[v++],p=s.L,e.addData(p,r,i);break;case"H":r=d[v++],p=s.L,e.addData(p,r,i);break;case"v":i+=d[v++],p=s.L,e.addData(p,r,i);break;case"V":i=d[v++],p=s.L,e.addData(p,r,i);break;case"C":p=s.C,e.addData(p,d[v++],d[v++],d[v++],d[v++],d[v++],d[v++]),r=d[v-2],i=d[v-1];break;case"c":p=s.C,e.addData(p,d[v++]+r,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r,d[v++]+i),r+=d[v-2],i+=d[v-1];break;case"S":m=r,_=i,D=e.len(),O=e.data,a===s.C&&(m+=r-O[D-4],_+=i-O[D-3]),p=s.C,E=d[v++],T=d[v++],r=d[v++],i=d[v++],e.addData(p,m,_,E,T,r,i);break;case"s":m=r,_=i,D=e.len(),O=e.data,a===s.C&&(m+=r-O[D-4],_+=i-O[D-3]),p=s.C,E=r+d[v++],T=i+d[v++],r+=d[v++],i+=d[v++],e.addData(p,m,_,E,T,r,i);break;case"Q":E=d[v++],T=d[v++],r=d[v++],i=d[v++],p=s.Q,e.addData(p,E,T,r,i);break;case"q":E=d[v++]+r,T=d[v++]+i,r+=d[v++],i+=d[v++],p=s.Q,e.addData(p,E,T,r,i);break;case"T":m=r,_=i,D=e.len(),O=e.data,a===s.Q&&(m+=r-O[D-4],_+=i-O[D-3]),r=d[v++],i=d[v++],p=s.Q,e.addData(p,m,_,r,i);break;case"t":m=r,_=i,D=e.len(),O=e.data,a===s.Q&&(m+=r-O[D-4],_+=i-O[D-3]),r+=d[v++],i+=d[v++],p=s.Q,e.addData(p,m,_,r,i);break;case"A":y=d[v++],x=d[v++],S=d[v++],w=d[v++],b=d[v++],E=r,T=i,r=d[v++],i=d[v++],p=s.A,oS(E,T,r,i,w,b,y,x,S,p,e);break;case"a":y=d[v++],x=d[v++],S=d[v++],w=d[v++],b=d[v++],E=r,T=i,r+=d[v++],i+=d[v++],p=s.A,oS(E,T,r,i,w,b,y,x,S,p,e);break}}(c==="z"||c==="Z")&&(p=s.Z,e.addData(p),r=n,i=o),a=p}return e.toStatic(),e}var aS=(function(t){ae(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(he);function sS(t){return t.setData!=null}function lS(t,e){var r=gI(t),i=N({},e);return i.buildPath=function(n){var o=sS(n);if(o&&n.canSave()){n.appendPath(r);var a=n.getContext();a&&n.rebuildPath(a,1)}else{var a=o?n.getContext():n;a&&r.rebuildPath(a,1)}},i.applyTransform=function(n){mh(r,n),this.dirtyShape()},i}function uS(t,e){return new aS(lS(t,e))}function fS(t,e){var r=lS(t,e),i=(function(n){ae(o,n);function o(a){var s=n.call(this,a)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return o})(aS);return i}function cS(t,e){for(var r=[],i=t.length,n=0;n<i;n++){var o=t[n];r.push(o.getUpdatedPathProxy(!0))}var a=new he(e);return a.createPathProxy(),a.buildPath=function(s){if(sS(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}var yI=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})();var pS=(function(t){ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new yI},e.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e})(he);pS.prototype.type="circle";var to=pS;var xI=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})();var dS=(function(t){ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new xI},e.prototype.buildPath=function(r,i){var n=.5522848,o=i.cx,a=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;r.moveTo(o-s,a),r.bezierCurveTo(o-s,a-f,o-u,a-l,o,a-l),r.bezierCurveTo(o+u,a-l,o+s,a-f,o+s,a),r.bezierCurveTo(o+s,a+f,o+u,a+l,o,a+l),r.bezierCurveTo(o-u,a+l,o-s,a+f,o-s,a),r.closePath()},e})(he);dS.prototype.type="ellipse";var Xs=dS;var vS=Math.PI,yh=vS*2,ro=Math.sin,ha=Math.cos,SI=Math.acos,Vt=Math.atan2,hS=Math.abs,js=Math.sqrt,qs=Math.max,hi=Math.min,Hr=1e-4;function wI(t,e,r,i,n,o,a,s){var l=r-t,u=i-e,f=a-n,c=s-o,p=c*l-f*u;if(!(p*p<Hr))return p=(f*(e-o)-c*(t-n))/p,[t+p*l,e+p*u]}function Cf(t,e,r,i,n,o,a){var s=t-r,l=e-i,u=(a?o:-o)/js(s*s+l*l),f=u*l,c=-u*s,p=t+f,d=e+c,h=r+f,g=i+c,v=(p+h)/2,m=(d+g)/2,_=h-p,y=g-d,x=_*_+y*y,S=n-o,w=p*g-h*d,b=(y<0?-1:1)*js(qs(0,S*S*x-w*w)),E=(w*y-_*b)/x,T=(-w*_-y*b)/x,D=(w*y+_*b)/x,O=(-w*_+y*b)/x,R=E-v,M=T-m,A=D-v,j=O-m;return R*R+M*M>A*A+j*j&&(E=D,T=O),{cx:E,cy:T,x0:-f,y0:-c,x1:E*(n/S-1),y1:T*(n/S-1)}}function CI(t){var e;if(L(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function mS(t,e){var r,i=qs(e.r,0),n=qs(e.r0||0,0),o=i>0,a=n>0;if(!(!o&&!a)){if(o||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,p=!!e.clockwise,d=hS(u-l),h=d>yh&&d%yh;if(h>Hr&&(d=h),!(i>Hr))t.moveTo(f,c);else if(d>yh-Hr)t.moveTo(f+i*ha(l),c+i*ro(l)),t.arc(f,c,i,l,u,!p),n>Hr&&(t.moveTo(f+n*ha(u),c+n*ro(u)),t.arc(f,c,n,u,l,p));else{var g=void 0,v=void 0,m=void 0,_=void 0,y=void 0,x=void 0,S=void 0,w=void 0,b=void 0,E=void 0,T=void 0,D=void 0,O=void 0,R=void 0,M=void 0,A=void 0,j=i*ha(l),H=i*ro(l),re=n*ha(u),Ce=n*ro(u),ge=d>Hr;if(ge){var de=e.cornerRadius;de&&(r=CI(de),g=r[0],v=r[1],m=r[2],_=r[3]);var me=hS(i-n)/2;if(y=hi(me,m),x=hi(me,_),S=hi(me,g),w=hi(me,v),T=b=qs(y,x),D=E=qs(S,w),(b>Hr||E>Hr)&&(O=i*ha(u),R=i*ro(u),M=n*ha(l),A=n*ro(l),d<vS)){var Se=wI(j,H,M,A,O,R,re,Ce);if(Se){var Ee=j-Se[0],z=H-Se[1],I=O-Se[0],P=R-Se[1],G=1/ro(SI((Ee*I+z*P)/(js(Ee*Ee+z*z)*js(I*I+P*P)))/2),fe=js(Se[0]*Se[0]+Se[1]*Se[1]);T=hi(b,(i-fe)/(G+1)),D=hi(E,(n-fe)/(G-1))}}}if(!ge)t.moveTo(f+j,c+H);else if(T>Hr){var J=hi(m,T),ce=hi(_,T),U=Cf(M,A,j,H,i,J,p),q=Cf(O,R,re,Ce,i,ce,p);t.moveTo(f+U.cx+U.x0,c+U.cy+U.y0),T<b&&J===ce?t.arc(f+U.cx,c+U.cy,T,Vt(U.y0,U.x0),Vt(q.y0,q.x0),!p):(J>0&&t.arc(f+U.cx,c+U.cy,J,Vt(U.y0,U.x0),Vt(U.y1,U.x1),!p),t.arc(f,c,i,Vt(U.cy+U.y1,U.cx+U.x1),Vt(q.cy+q.y1,q.cx+q.x1),!p),ce>0&&t.arc(f+q.cx,c+q.cy,ce,Vt(q.y1,q.x1),Vt(q.y0,q.x0),!p))}else t.moveTo(f+j,c+H),t.arc(f,c,i,l,u,!p);if(!(n>Hr)||!ge)t.lineTo(f+re,c+Ce);else if(D>Hr){var J=hi(g,D),ce=hi(v,D),U=Cf(re,Ce,O,R,n,-ce,p),q=Cf(j,H,M,A,n,-J,p);t.lineTo(f+U.cx+U.x0,c+U.cy+U.y0),D<E&&J===ce?t.arc(f+U.cx,c+U.cy,D,Vt(U.y0,U.x0),Vt(q.y0,q.x0),!p):(ce>0&&t.arc(f+U.cx,c+U.cy,ce,Vt(U.y0,U.x0),Vt(U.y1,U.x1),!p),t.arc(f,c,n,Vt(U.cy+U.y1,U.cx+U.x1),Vt(q.cy+q.y1,q.cx+q.x1),p),J>0&&t.arc(f+q.cx,c+q.cy,J,Vt(q.y1,q.x1),Vt(q.y0,q.x0),!p))}else t.lineTo(f+re,c+Ce),t.arc(f,c,n,u,l,p)}t.closePath()}}}var bI=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t})();var gS=(function(t){ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new bI},e.prototype.buildPath=function(r,i){mS(r,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(he);gS.prototype.type="sector";var Ks=gS;var EI=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})();var _S=(function(t){ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new EI},e.prototype.buildPath=function(r,i){var n=i.cx,o=i.cy,a=Math.PI*2;r.moveTo(n+i.r,o),r.arc(n,o,i.r,0,a,!1),r.moveTo(n+i.r0,o),r.arc(n,o,i.r0,0,a,!0)},e})(he);_S.prototype.type="ring";var Zs=_S;function xh(t,e,r,i){var n=[],o=[],a=[],s=[],l,u,f,c;if(i){f=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,d=t.length;p<d;p++)Si(f,f,t[p]),wi(c,c,t[p]);Si(f,f,i[0]),wi(c,c,i[1])}for(var p=0,d=t.length;p<d;p++){var h=t[p];if(r)l=t[p?p-1:d-1],u=t[(p+1)%d];else if(p===0||p===d-1){n.push(Ry(t[p]));continue}else l=t[p-1],u=t[p+1];Ay(o,u,l),Tu(o,o,e);var g=bu(h,l),v=bu(h,u),m=g+v;m!==0&&(g/=m,v/=m),Tu(a,o,-g),Tu(s,o,v);var _=Qp([],h,a),y=Qp([],h,s);i&&(wi(_,_,f),Si(_,_,c),wi(y,y,f),Si(y,y,c)),n.push(_),n.push(y)}return r&&n.push(n.shift()),n}function Tf(t,e,r){var i=e.smooth,n=e.points;if(n&&n.length>=2){if(i){var o=xh(n,i,r,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var a=n.length,s=0;s<(r?a:a-1);s++){var l=o[s*2],u=o[s*2+1],f=n[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;s<c;s++)t.lineTo(n[s][0],n[s][1])}r&&t.closePath()}}var DI=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})();var xS=(function(t){ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new DI},e.prototype.buildPath=function(r,i){Tf(r,i,!0)},e})(he);xS.prototype.type="polygon";var $s=xS;var MI=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})();var SS=(function(t){ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new MI},e.prototype.buildPath=function(r,i){Tf(r,i,!1)},e})(he);SS.prototype.type="polyline";var io=SS;var OI={},II=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})();var wS=(function(t){ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new II},e.prototype.buildPath=function(r,i){var n,o,a,s;if(this.subPixelOptimize){var l=tf(OI,i,this.style);n=l.x1,o=l.y1,a=l.x2,s=l.y2}else n=i.x1,o=i.y1,a=i.x2,s=i.y2;var u=i.percent;u!==0&&(r.moveTo(n,o),u<1&&(a=n*(1-u)+a*u,s=o*(1-u)+s*u),r.lineTo(a,s))},e.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},e})(he);wS.prototype.type="line";var vi=wS;var sr=[],RI=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function CS(t,e,r){var i=t.cpx2,n=t.cpy2;return i!=null||n!=null?[(r?td:lt)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?td:lt)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?rd:Ct)(t.x1,t.cpx1,t.x2,e),(r?rd:Ct)(t.y1,t.cpy1,t.y2,e)]}var TS=(function(t){ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new RI},e.prototype.buildPath=function(r,i){var n=i.x1,o=i.y1,a=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,c=i.cpy2,p=i.percent;p!==0&&(r.moveTo(n,o),f==null||c==null?(p<1&&(Jo(n,l,a,p,sr),l=sr[1],a=sr[2],Jo(o,u,s,p,sr),u=sr[1],s=sr[2]),r.quadraticCurveTo(l,u,a,s)):(p<1&&(Qo(n,l,f,a,p,sr),l=sr[1],f=sr[2],a=sr[3],Qo(o,u,c,s,p,sr),u=sr[1],c=sr[2],s=sr[3]),r.bezierCurveTo(l,u,f,c,a,s)))},e.prototype.pointAt=function(r){return CS(this.shape,r,!1)},e.prototype.tangentAt=function(r){var i=CS(this.shape,r,!0);return Ny(i,i)},e})(he);TS.prototype.type="bezier-curve";var Qs=TS;var AI=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})();var bS=(function(t){ae(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new AI},e.prototype.buildPath=function(r,i){var n=i.cx,o=i.cy,a=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*a+n,c*a+o),r.arc(n,o,a,s,l,!u)},e})(he);bS.prototype.type="arc";var no=bS;var NI=(function(t){ae(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,i){for(var n=i.paths||[],o=0;o<n.length;o++)n[o].buildPath(r,n[o].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),he.prototype.getBoundingRect.call(this)},e})(he),bf=NI;var LI=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),Ef=LI;var PI=(function(t){ae(e,t);function e(r,i,n,o,a,s){var l=t.call(this,a)||this;return l.x=r??0,l.y=i??0,l.x2=n??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return e})(Ef),Df=PI;var kI=(function(t){ae(e,t);function e(r,i,n,o,a){var s=t.call(this,o)||this;return s.x=r??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=a||!1,s}return e})(Ef),Mf=kI;var Sh=Math.min,FI=Math.max,Of=Math.abs,oo=[0,0],ao=[0,0],Nt=gd(),If=Nt.minTv,Rf=Nt.maxTv,BI=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ve;for(var i=0;i<2;i++)this._axes[i]=new ve;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var i=this._corners,n=this._axes,o=e.x,a=e.y,s=o+e.width,l=a+e.height;if(i[0].set(o,a),i[1].set(s,a),i[2].set(s,l),i[3].set(o,l),r)for(var u=0;u<4;u++)i[u].transform(r);ve.sub(n[0],i[1],i[0]),ve.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},t.prototype.intersect=function(e,r,i){var n=!0,o=!r;return r&&ve.set(r,0,0),Nt.reset(i,!o),!this._intersectCheckOneSide(this,e,o,1)&&(n=!1,o)||!this._intersectCheckOneSide(e,this,o,-1)&&(n=!1,o)||!o&&!Nt.negativeSize&&ve.copy(r,n?Nt.useDir?Nt.dirMinTv:If:Rf),n},t.prototype._intersectCheckOneSide=function(e,r,i,n){for(var o=!0,a=0;a<2;a++){var s=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,oo),e._getProjMinMaxOnAxis(a,r._corners,ao),Nt.negativeSize||oo[1]<ao[0]||oo[0]>ao[1]){if(o=!1,Nt.negativeSize||i)return o;var l=Of(ao[0]-oo[1]),u=Of(oo[0]-ao[1]);Sh(l,u)>Rf.len()&&(l<u?ve.scale(Rf,s,-l*n):ve.scale(Rf,s,u*n))}else if(!i){var l=Of(ao[0]-oo[1]),u=Of(oo[0]-ao[1]);(Nt.useDir||Sh(l,u)<If.len())&&((l<u||!Nt.bidirectional)&&(ve.scale(If,s,l*n),Nt.useDir&&Nt.calcDirMTV()),(l>=u||!Nt.bidirectional)&&(ve.scale(If,s,-u*n),Nt.useDir&&Nt.calcDirMTV()))}}return o},t.prototype._getProjMinMaxOnAxis=function(e,r,i){for(var n=this._axes[e],o=this._origin,a=r[0].dot(n)+o[e],s=a,l=a,u=1;u<r.length;u++){var f=r[u].dot(n)+o[e];s=Sh(f,s),l=FI(f,l)}i[0]=s+Nt.touchThreshold,i[1]=l-Nt.touchThreshold,Nt.negativeSize=i[1]<i[0]},t})(),Af=BI;var wh=0,ES=1,DS=2,MS=1,va=0;var zI=[],UI=(function(t){ae(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=ES,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new te(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],o=n.getBoundingRect().clone();n.needLocalTransform()&&o.applyTransform(n.getLocalTransform(zI)),r.union(o)}this._rect=r}return this._rect},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),o=this.getBoundingRect();if(o.contain(n[0],n[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(r,i))return!0}return!1},e})(ai),Nf=UI;var qH=ne();function VI(t,e,r,i,n){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;i?(u=Q(i.duration,200),f=Q(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(u=o.duration),o.easing!=null&&(f=o.easing),o.delay!=null&&(c=o.delay)),$(c)&&(c=c(r,n)),$(u)&&(u=u(r));var p={duration:u||0,delay:c,easing:f};return p}else return null}function Ch(t,e,r,i,n,o,a){var s=!1,l;$(n)?(a=o,o=n,n=null):B(n)&&(o=n.cb,a=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=VI(t,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,d=f.easing,h={duration:c,delay:p||0,easing:d,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};s?e.animateFrom(r,h):e.animateTo(r,h)}else e.stopAnimation(),!s&&e.attr(r),a&&a(1),o&&o()}function Pr(t,e,r,i,n,o){Ch("update",t,e,r,i,n,o)}function Li(t,e,r,i,n,o){Ch("enter",t,e,r,i,n,o)}function Pi(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function Th(t,e,r,i,n,o){Pi(t)||Ch("leave",t,e,r,i,n,o)}function OS(t,e,r,i){t.removeTextContent(),t.removeTextGuideLine(),Th(t,{style:{opacity:0}},e,r,i)}function IS(t,e,r){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(n){n.isGroup||OS(n,e,r,i)}):OS(t,e,r,i)}var Eh={},Mh=["x","y"],Oh=["width","height"],Ih=0,Rh=1,Ah=2;function Nh(t){return he.extend(t)}var WI=fS;function Lh(t,e){return WI(t,e)}function xr(t,e){Eh[t]=e}function Ph(t){if(Eh.hasOwnProperty(t))return Eh[t]}function ma(t,e,r,i){var n=uS(t,e);return r&&(i==="center"&&(r=NS(r,n.getBoundingRect())),Pf(n,r)),n}function el(t,e,r){var i=new Nr({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(r==="center"){var o={width:n.width,height:n.height};i.setStyle(NS(e,o))}}});return i}function NS(t,e){var r=e.width/e.height,i=t.height*r,n;i<=t.width?n=t.height:(i=t.width,n=i/r);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-i/2,y:a-n/2,width:i,height:n}}var kh=cS;function Pf(t,e){if(t.applyTransform){var r=t.getBoundingRect(),i=r.calculateTransform(e);t.applyTransform(i)}}function kf(t,e){return tf(t,t,{lineWidth:e}),t}function HI(t,e){return rf(t,t,e),t}var GI=un;function Fh(t,e){for(var r=xi([]);t&&t!==e;)ji(r,t.getLocalTransform(),r),t=t.parent;return r}function Ff(t,e,r){return e&&!vt(e)&&(e=$i.getLocalTransform(e)),r&&(e=ti([],e)),nr([],t,e)}function YI(t,e,r){var i=e[4]===0||e[5]===0||e[0]===0?1:Zt(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Zt(2*e[4]/e[2]),o=[t==="left"?-i:t==="right"?i:0,t==="top"?-n:t==="bottom"?n:0];return o=Ff(o,e,r),Zt(o[0])>Zt(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function RS(t){return!t.isGroup}function XI(t){return t.shape!=null}function qI(t,e,r){if(!t||!e)return;function i(a){var s={};return a.traverse(function(l){RS(l)&&l.anid&&(s[l.anid]=l)}),s}function n(a){var s={x:a.x,y:a.y,rotation:a.rotation};return XI(a)&&(s.shape=ie(a.shape)),s}var o=i(t);e.traverse(function(a){if(RS(a)&&a.anid){var s=o[a.anid];if(s){var l=n(a);a.attr(n(s)),Pr(a,l,r,Ae(a).dataIndex)}}})}function Bh(t,e){return K(t,function(r){var i=r[0];i=Pe(i,e.x),i=_t(i,e.x+e.width);var n=r[1];return n=Pe(n,e.y),n=_t(n,e.y+e.height),[i,n]})}function zh(t,e){var r=Pe(t.x,e.x),i=_t(t.x+t.width,e.x+e.width),n=Pe(t.y,e.y),o=_t(t.y+t.height,e.y+e.height);if(i>=r&&o>=n)return{x:r,y:n,width:i-r,height:o-n}}function tl(t,e,r){var i=N({rectHover:!0},e),n=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(n.image=t.slice(8),ye(n,r),new Nr(i)):ma(t.replace("path://",""),i,r,"center")}function jI(t,e,r,i,n){for(var o=0,a=n[n.length-1];o<n.length;o++){var s=n[o];if(LS(t,e,r,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function LS(t,e,r,i,n,o,a,s){var l=r-t,u=i-e,f=a-n,c=s-o,p=bh(f,c,l,u);if(KI(p))return!1;var d=t-n,h=e-o,g=bh(d,h,l,u)/p;if(g<0||g>1)return!1;var v=bh(d,h,f,c)/p;return!(v<0||v>1)}function bh(t,e,r,i){return t*i-r*e}function KI(t){return t<=1e-6&&t>=-1e-6}function Bf(t,e,r,i,n){return e==null||(be(e)?Ye[0]=Ye[1]=Ye[2]=Ye[3]=e:(Ye[0]=e[0],Ye[1]=e[1],Ye[2]=e[2],Ye[3]=e[3]),i&&(Ye[0]=Pe(0,Ye[0]),Ye[1]=Pe(0,Ye[1]),Ye[2]=Pe(0,Ye[2]),Ye[3]=Pe(0,Ye[3])),r&&(Ye[0]=-Ye[0],Ye[1]=-Ye[1],Ye[2]=-Ye[2],Ye[3]=-Ye[3]),AS(t,Ye,"x","width",3,1,n&&n[0]||0),AS(t,Ye,"y","height",0,2,n&&n[1]||0)),t}var Ye=[0,0,0,0];function AS(t,e,r,i,n,o,a){var s=e[o]+e[n],l=t[i];t[i]+=s,a=Pe(0,_t(a,l)),t[i]<a?(t[i]=a,t[r]+=e[n]>=0?-e[n]:e[o]>=0?l+e[o]:Zt(s)>1e-8?(l-a)*e[n]/s:0):t[r]-=e[n]}function zf(t){var e=t.itemTooltipOption,r=t.componentModel,i=t.itemName,n=k(e)?{formatter:e}:e,o=r.mainType,a=r.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&C(xe(l),function(f){gt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Ae(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:ye({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function Dh(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Uh(t,e){if(t)if(L(t))for(var r=0;r<t.length;r++)Dh(t[r],e);else Dh(t,e)}function Uf(t){return!t||Zt(t[1])<Lf&&Zt(t[2])<Lf||Zt(t[0])<Lf&&Zt(t[3])<Lf}var Lf=1e-5;function ga(t,e){return t?te.copy(t,e):e.clone()}function Vf(t,e){return e?cs(t||jt(),e):void 0}function Vh(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function ZI(t){var e=-1/0,r=1/0;Dh(t,function(o){i(o),i(o.getTextContent()),i(o.getTextGuideLine())});function i(o){if(!(!o||o.isGroup)){var a=o.currentStates;if(a.length)for(var s=0;s<a.length;s++)n(o.states[a[s]]);n(o)}}function n(o){if(o){var a=o.z2;a>e&&(e=a),a<r&&(r=a)}}return r>e&&(r=e=0),{min:r,max:e}}function Wh(t,e,r){PS(t,e,r,-1/0)}function PS(t,e,r,i){if(t.ignoreModelZ)return i;var n=t.getTextContent(),o=t.getTextGuideLine(),a=t.isGroup;if(a)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Pe(PS(s[l],e,r,i),i);else t.z=e,t.zlevel=r,i=Pe(t.z2||0,i);if(n&&(n.z=e,n.zlevel=r,isFinite(i)&&(n.z2=i+2)),o){var u=t.textGuideLineConfig;o.z=e,o.zlevel=r,isFinite(i)&&(o.z2=i+(u&&u.showAbove?1:-1))}return i}function $I(t){return t.animation={duration:0},t}function QI(t,e){return e?cs(Js.transform,e):xi(Js.transform),Js.decomposeTransform(),Zo(t,Js),t}var Js=new $i;Js.transform=jt();function JI(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}xr("circle",to);xr("ellipse",Xs);xr("sector",Ks);xr("ring",Zs);xr("polygon",$s);xr("polyline",io);xr("rect",ft);xr("line",vi);xr("bezierCurve",Qs);xr("arc",no);var Hh={};function eR(t,e){for(var r=0;r<cn.length;r++){var i=cn[r],n=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=n}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function tR(t,e,r){var i=t.labelFetcher,n=t.labelDataIndex,o=t.labelDimIndex,a=e.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,o,a&&a.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=$(t.defaultText)?t.defaultText(n,t,r):t.defaultText);for(var l={normal:s},u=0;u<cn.length;u++){var f=cn[u],c=e[f];l[f]=Q(i?i.getFormattedLabel(n,f,null,o,c&&c.get("formatter")):null,s)}return l}function lo(t,e,r,i,n){var o={};return rR(o,t,r,i,n),e&&N(o,e),o}function rR(t,e,r,i,n){r=r||Hh;var o=e.ecModel,a=o&&o.option.textStyle,s=iR(e),l;if(s){l={};var u="richInheritPlainLabel",f=Q(e.get(u),o?o.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);zS(l[c]={},p,a,e,f,r,i,n,!1,!0)}}l&&(t.rich=l);var d=e.get("overflow");d&&(t.overflow=d);var h=e.get("lineOverflow");h&&(t.lineOverflow=h);var g=t,v=e.get("minMargin");if(v!=null)v=be(v)?v/2:0,g.margin=[v,v,v,v],g.__marginType=so.minMargin;else{var m=e.get("textMargin");m!=null&&(g.margin=Xo(m),g.__marginType=so.textMargin)}zS(t,e,a,null,null,r,i,n,!0,!1)}function iR(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Hh).rich;if(r){e=e||{};for(var i=xe(r),n=0;n<i.length;n++){var o=i[n];e[o]=1}}t=t.parentModel}return e}var kS=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],FS=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],BS=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function zS(t,e,r,i,n,o,a,s,l,u){r=!a&&r||Hh;var f=o&&o.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),d=Q(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(p==="inherit"||p==="auto")&&(f?p=f:p=null),s||(c=c||r.color,p=p||r.textBorderColor),c!=null&&(t.fill=c),p!=null&&(t.stroke=p);var h=Q(e.getShallow("textBorderWidth"),r.textBorderWidth);h!=null&&(t.lineWidth=h);var g=Q(e.getShallow("textBorderType"),r.textBorderType);g!=null&&(t.lineDash=g);var v=Q(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(t.lineDashOffset=v),!a&&d==null&&!u&&(d=o&&o.defaultOpacity),d!=null&&(t.opacity=d),!a&&!s&&t.fill==null&&o.inheritColor&&(t.fill=o.inheritColor);for(var m=0;m<kS.length;m++){var _=kS[m],y=n!==!1&&i?zr(e.getShallow(_),i.getShallow(_),r[_]):Q(e.getShallow(_),r[_]);y!=null&&(t[_]=y)}for(var m=0;m<FS.length;m++){var _=FS[m],y=e.getShallow(_);y!=null&&(t[_]=y)}if(t.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(t.verticalAlign=x)}if(!l||!o.disableBox){for(var m=0;m<BS.length;m++){var _=BS[m],y=e.getShallow(_);y!=null&&(t[_]=y)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function US(t,e){var r=e&&e.getModel("textStyle");return Ft([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Gh=ne();function VS(t,e,r,i,n){var o=Gh(t);if(!o.valueAnimation||o.prevValue===o.value)return;var a=o.defaultInterpolatedText,s=Q(o.interpolatedValue,o.prevValue),l=o.value;function u(f){var c=Mx(r,o.precision,s,l,f);o.interpolatedValue=f===1?null:c;var p=tR({labelDataIndex:e,labelFetcher:n,defaultText:a?a(c):c+""},o.statesModels,c);eR(t,p)}t.percent=0,(o.prevValue==null?Li:Pr)(t,{percent:1},i,e,null,u)}var so={minMargin:1,textMargin:2};var nR=["textStyle","color"],Yh=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Xh=new zt,oR=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(nR):null)},t.prototype.getFont=function(){return US({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Yh.length;i++)r[Yh[i]]=this.getShallow(Yh[i]);return Xh.useStyle(r),Xh.update(),Xh.getBoundingRect()},t})(),WS=oR;var qh=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],aR=ni(qh),HS=(function(){function t(){}return t.prototype.getLineStyle=function(e){return aR(this,e)},t})();var jh=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],sR=ni(jh),GS=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return sR(this,e,r)},t})();var uo=(function(){function t(e,r,i){this.parentModel=r,this.ecModel=i,this.option=e}return t.prototype.init=function(e,r,i){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o]},t.prototype.mergeOption=function(e,r){Le(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var i=this.option,n=i==null?i:i[e];if(n==null&&!r){var o=this.parentModel;o&&(n=o.getShallow(e))}return n},t.prototype.getModel=function(e,r){var i=e!=null,n=i?this.parsePath(e):null,o=i?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new t(o,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(ie(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!le.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var i=this.option;if(!e)return i;for(var n=0;n<e.length&&!(e[n]&&(i=i&&typeof i=="object"?i[e[n]]:null,i==null));n++);return i==null&&r&&(i=r._doGet(this.resolveParentPath(e),r.parentModel)),i},t})();oa(uo);g0(uo);Xt(uo,HS);Xt(uo,GS);Xt(uo,S0);Xt(uo,WS);var Ve=uo;var lR=Math.log(2);function Kh(t,e,r,i,n,o){var a=i+"-"+n,s=t.length;if(o.hasOwnProperty(a))return o[a];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/lR);return t[r][l]}for(var u=i|1<<r,f=r+1;i&1<<f;)f++;for(var c=0,p=0,d=0;p<s;p++){var h=1<<p;h&n||(c+=(d%2?-1:1)*t[r][p]*Kh(t,e-1,f,u,n|h,o),d++)}return o[a]=c,c}function Zh(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},n=Kh(r,8,0,0,0,i);if(n!==0){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Kh(r,7,a===0?1:0,1<<a,1<<s,i)/n*e[a];return function(l,u,f){var c=u*o[6]+f*o[7]+1;l[0]=(u*o[0]+f*o[1]+o[2])/c,l[1]=(u*o[3]+f*o[4]+o[5])/c}}}var Wf="___zrEVENTSAVED",$h=[];function YS(t,e,r,i,n){return Hf($h,e,i,n,!0)&&Hf(t,r,$h[0],$h[1])}function XS(t,e){t&&r(t),e&&r(e);function r(i){var n=i[Wf];n&&(n.clearMarkers&&n.clearMarkers(),delete i[Wf])}}function Hf(t,e,r,i,n){if(e.getBoundingClientRect&&le.domSupported&&!Qh(e)){var o=e[Wf]||(e[Wf]={}),a=uR(e,o),s=fR(a,o,n);if(s)return s(t,r,i),!0}return!1}function uR(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var i=["left","right"],n=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),t.appendChild(a),r.push(a)}return e.clearMarkers=function(){C(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function fR(t,e,r){for(var i=r?"invTrans":"trans",n=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,p=f.left,d=f.top;a.push(p,d),l=l&&o&&p===o[c]&&d===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&n?n:(e.srcCoords=a,e[i]=r?Zh(s,a):Zh(a,s))}function Qh(t){return t.nodeName.toUpperCase()==="CANVAS"}var cR=/([&<>"'])/g,pR={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function bt(t){return t==null?"":(t+"").replace(cR,function(e,r){return pR[r]})}var qS={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}};var jS={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Yf="ZH",Jh="EN",_a=Jh,Gf={},ev={},Xf=le.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||_a).toUpperCase();return t.indexOf(Yf)>-1?Yf:_a})():_a;function KS(t,e){t=t.toUpperCase(),ev[t]=new Ve(e),Gf[t]=e}function ZS(t){if(k(t)){var e=Gf[t.toUpperCase()]||{};return t===Yf||t===Jh?ie(e):Le(ie(e),ie(Gf[_a]),!1)}else return Le(ie(t),ie(Gf[_a]),!1)}function $S(t){return ev[t]}function QS(){return ev[_a]}KS(Jh,qS);KS(Yf,jS);var dR=null;function it(){return dR}function qf(t,e){var r=it(),i=e.breakOption,n=e.breakParsed;return!n&&r&&(n=r.parseAxisBreakOption(i,t)),n}function fo(t){var e=t.brk;return e?e.breaks:[]}function JS(t){var e=t.brk;return e?e.hasBreaks():!1}var Kf=1e3,Zf=Kf*60,ya=Zf*60,Sr=ya*24,rv=Sr*365;var tv={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},hR="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",jf="{yyyy}-{MM}-{dd}",iv={year:"{yyyy}",month:"{yyyy}-{MM}",day:jf,hour:jf+" "+tv.hour,minute:jf+" "+tv.minute,second:jf+" "+tv.second,millisecond:hR},Gr=["year","month","day","hour","minute","second","millisecond"],ew=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Wt(t,e){return t+="","0000".substr(0,e-t.length)+t}function xa(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function tw(t){return t===xa(t)}function rw(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function co(t,e,r,i){var n=vr(t),o=n[nv(r)](),a=n[Qf(r)]()+1,s=Math.floor((a-1)/3)+1,l=n[Jf(r)](),u=n["get"+(r?"UTC":"")+"Day"](),f=n[ec(r)](),c=(f-1)%12+1,p=n[tc(r)](),d=n[rc(r)](),h=n[ic(r)](),g=f>=12?"pm":"am",v=g.toUpperCase(),m=i instanceof Ve?i:$S(i||Xf)||QS(),_=m.getModel("time"),y=_.get("month"),x=_.get("monthAbbr"),S=_.get("dayOfWeek"),w=_.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Wt(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,Wt(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Wt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Wt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Wt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Wt(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Wt(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Wt(h,3)).replace(/{S}/g,h+"")}function iw(t,e,r,i,n){var o=null;if(k(r))o=r;else if($(r)){var a={time:t.time,level:t.time?t.time.level:0},s=it();s&&s.makeAxisLabelFormatterParamBreak(a,t.break),o=r(t.value,e,a)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];o=u[Math.min(l.level,u.length-1)]||""}else{var f=po(t.value,n);o=r[f][f][0]}}return co(new Date(t.value),o,n,i)}function po(t,e){var r=vr(t),i=r[Qf(e)]()+1,n=r[Jf(e)](),o=r[ec(e)](),a=r[tc(e)](),s=r[rc(e)](),l=r[ic(e)](),u=l===0,f=u&&s===0,c=f&&a===0,p=c&&o===0,d=p&&n===1,h=d&&i===1;return h?"year":d?"month":p?"day":c?"hour":f?"minute":u?"second":"millisecond"}function $f(t,e,r){switch(e){case"year":t[ov(r)](0);case"month":t[av(r)](1);case"day":t[sv(r)](0);case"hour":t[lv(r)](0);case"minute":t[uv(r)](0);case"second":t[fv(r)](0)}return t}function nv(t){return t?"getUTCFullYear":"getFullYear"}function Qf(t){return t?"getUTCMonth":"getMonth"}function Jf(t){return t?"getUTCDate":"getDate"}function ec(t){return t?"getUTCHours":"getHours"}function tc(t){return t?"getUTCMinutes":"getMinutes"}function rc(t){return t?"getUTCSeconds":"getSeconds"}function ic(t){return t?"getUTCMilliseconds":"getMilliseconds"}function nw(t){return t?"setUTCFullYear":"setFullYear"}function ov(t){return t?"setUTCMonth":"setMonth"}function av(t){return t?"setUTCDate":"setDate"}function sv(t){return t?"setUTCHours":"setHours"}function lv(t){return t?"setUTCMinutes":"setMinutes"}function uv(t){return t?"setUTCSeconds":"setSeconds"}function fv(t){return t?"setUTCMilliseconds":"setMilliseconds"}function cv(t,e,r,i,n,o,a,s){var l=new zt({style:{text:t,font:e,align:r,verticalAlign:i,padding:n,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function rl(t){if(!Ns(t))return k(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Sa(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var hn=Xo;function nc(t,e,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Ft(f)?f:"-"}function o(f){return ar(f)}var a=e==="time",s=t instanceof Date;if(a||s){var l=a?vr(t):t;if(isNaN(+l)){if(s)return"-"}else return co(l,i,r)}if(e==="ordinal")return fs(t)?n(t):be(t)&&o(t)?t+"":"-";var u=Lr(t);return o(u)?rl(u):fs(t)?n(t):typeof t=="boolean"?t+"":"-"}var ow=["a","b","c","d","e","f","g"],pv=function(t,e){return"{"+t+(e??"")+"}"};function wa(t,e,r){L(e)||(e=[e]);var i=e.length;if(!i)return"";for(var n=e[0].$vars||[],o=0;o<n.length;o++){var a=ow[o];t=t.replace(pv(a),pv(a,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];t=t.replace(pv(ow[l],s),r?bt(u):u)}return t}function oc(t,e){var r=k(t)?{color:t,extraCssText:e}:t||{},i=r.color,n=r.type;e=r.extraCssText;var o=r.renderMode||"html";if(!i)return"";if(o==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+bt(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+bt(i)+";"+(e||"")+'"></span>';var a=r.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function aw(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
9
- yyyy`);var i=vr(e),n=r?"getUTC":"get",o=i[n+"FullYear"](),a=i[n+"Month"]()+1,s=i[n+"Date"](),l=i[n+"Hours"](),u=i[n+"Minutes"](),f=i[n+"Seconds"](),c=i[n+"Milliseconds"]();return t=t.replace("MM",Wt(a,2)).replace("M",a).replace("yyyy",o).replace("yy",Wt(o%100+"",2)).replace("dd",Wt(s,2)).replace("d",s).replace("hh",Wt(l,2)).replace("h",l).replace("mm",Wt(u,2)).replace("m",u).replace("ss",Wt(f,2)).replace("s",f).replace("SSS",Wt(c,3)),t}function sw(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function vn(t,e){return e=e||"transparent",k(t)?t:B(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var dv={},hv={},vR=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=i(dv,!0),this._normalMasterList=i(hv,!1);function i(n,o){var a=[];return C(n,function(s,l){var u=s.create(e,r);a=a.concat(u||[])}),a}},t.prototype.update=function(e,r){C(this._normalMasterList,function(i){i.update&&i.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){dv[e]=r;return}hv[e]=r},t.get=function(e){return hv[e]||dv[e]},t})();var d3=Z();var il=vR;var sc=C,mR=["left","right","top","bottom","width","height"],ac=[["width","left","right"],["height","top","bottom"]];function uw(t,e,r,i,n){var o=0,a=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),p=c&&c.getBoundingRect(),d,h;if(t==="horizontal"){var g=f.width+(p?-p.x+f.x:0);d=o+g,d>i||l.newline?(o=0,d=g,a+=s+r,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(p?-p.y+f.y:0);h=a+v,h>n||l.newline?(o+=s+r,a=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),t==="horizontal"?o=d+r:a=h+r)})}var g3=et(uw,"vertical"),_3=et(uw,"horizontal");function fw(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function lc(t,e,r){r=hn(r||0);var i=e.width,n=e.height,o=At(t.left,i),a=At(t.top,n),s=At(t.right,i),l=At(t.bottom,n),u=At(t.width,i),f=At(t.height,n),c=r[2]+r[0],p=r[1]+r[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(f)&&(f=n-l-c-a),d!=null&&(isNaN(u)&&isNaN(f)&&(d>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=d*f),isNaN(f)&&(f=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=n-l-f-c),t.left||t.right){case"center":o=i/2-u/2-r[3];break;case"right":o=i-u-p;break}switch(t.top||t.bottom){case"middle":case"center":a=n/2-f/2-r[0];break;case"bottom":a=n-f-c;break}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(f)&&(f=n-c-a-(l||0));var h=new te((e.x||0)+o+r[3],(e.y||0)+a+r[0],u,f);return h.margin=r,h}function Ca(t){var e=t.layoutMode||t.constructor.layoutMode;return B(e)?e:e?{type:e}:null}function Ta(t,e,r){var i=r&&r.ignoreSize;!L(i)&&(i=[i,i]);var n=a(ac[0],0),o=a(ac[1],1);l(ac[0],t,n),l(ac[1],t,o);function a(u,f){var c={},p=0,d={},h=0,g=2;if(sc(u,function(_){d[_]=t[_]}),sc(u,function(_){gt(e,_)&&(c[_]=d[_]=e[_]),s(c,_)&&p++,s(d,_)&&h++}),i[f])return s(e,u[1])?d[u[2]]=null:s(e,u[2])&&(d[u[1]]=null),d;if(h===g||!p)return d;if(p>=g)return c;for(var v=0;v<u.length;v++){var m=u[v];if(!gt(c,m)&&gt(t,m)){c[m]=t[m];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){sc(u,function(p){f[p]=c[p]})}}function uc(t){return gR({},t)}function gR(t,e){return e&&t&&sc(mR,function(r){gt(e,r)&&(t[r]=e[r])}),t}var yR=ne(),ba=(function(t){Oe(e,t);function e(r,i,n){var o=t.call(this,r,i,n)||this;return o.uid=on("ec_cpt_model"),o}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=Ca(this),o=n?uc(r):{},a=i.getTheme();Le(r,a.get(this.mainType)),Le(r,this.getDefaultOption()),n&&Ta(r,o,n)},e.prototype.mergeOption=function(r,i){Le(this.option,r,!0);var n=Ca(this);n&&Ta(this.option,r,n)},e.prototype.optionUpdated=function(r,i){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!m0(r))return r.defaultOption;var i=yR(this);if(!i.defaultOption){for(var n=[],o=r;o;){var a=o.prototype.defaultOption;a&&n.push(a),o=o.superClass}for(var s={},l=n.length-1;l>=0;l--)s=Le(s,n[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(r,i){var n=r+"Index",o=r+"Id";return fn(this.ecModel,r,{index:this.get(n,!0),id:this.get(o,!0)},i)},e.prototype.getBoxLayoutParams=function(){return fw(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(Ve);Zu(ba,Ve);nn(ba);y0(ba);x0(ba,xR);function xR(t){var e=[];return C(ba.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=K(e,function(r){return or(r).main}),t!=="dataset"&&pe(e,"dataset")<=0&&e.unshift("dataset"),e}var We=ba;var ho={color:{},darkColor:{},size:{}},nt=ho.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};N(nt,{primary:nt.neutral80,secondary:nt.neutral70,tertiary:nt.neutral60,quaternary:nt.neutral50,disabled:nt.neutral20,border:nt.neutral30,borderTint:nt.neutral20,borderShade:nt.neutral40,background:nt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:nt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:nt.neutral70,axisLineTint:nt.neutral40,axisTick:nt.neutral70,axisTickMinor:nt.neutral60,axisLabel:nt.neutral70,axisSplitLine:nt.neutral15,axisMinorSplitLine:nt.neutral05});for(mn in nt)nt.hasOwnProperty(mn)&&(vv=nt[mn],mn==="theme"?ho.darkColor.theme=nt.theme.slice():mn==="highlight"?ho.darkColor.highlight="rgba(255,231,130,0.4)":mn.indexOf("accent")===0?ho.darkColor[mn]=ms(vv,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):ho.darkColor[mn]=ms(vv,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)}));var vv,mn;ho.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var qe=ho;var cw=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})();var SR=0,wR=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++SR,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,i=r.data,n=i&&K(i,CR);return new t({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,i=this._needCollect;if(!k(e)&&!i)return e;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var n=this._getOrCreateMap();return r=n.get(e),r==null&&(i?(r=this.categories.length,this.categories[r]=e,n.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},t})();function CR(t){return B(t)&&t.value!=null?t.value:t+""}var mv=wR;var pw={value:1,category:1,time:1,log:1};var TR=null;function gv(){return TR}var dw=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();nn(dw);var Jt=dw;var wr=0,Ea=1,bR={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},vw=xe(bR),Da=2,mw=3;function Ma(t,e,r){var i;t=t||{};var n=it();if(n){var o=n.createBreakScaleMapper(e,r);o.hasBreaks()&&(C(vw,function(a){o[a]&&(t[a]=Me(o[a],o))}),i=o)}return i==null&&ER(t,r),{brk:i,mapper:t}}function fc(t,e){C(vw,function(r){t[r]=e[r]})}function cc(t,e){t.freeze=Ke}function ki(t){return t.getExtentUnsafe(wr,Da)}function _v(t,e){return t.getExtentUnsafe(Ea,e)||t.getExtentUnsafe(wr,e)}function gw(t){var e=_v(t,mw);return e[1]-e[0]}function Oa(t){var e=t.getExtentUnsafe(wr,mw);return e[1]-e[0]}function ER(t,e){var r=t||{},i=[];return r._extents=i,i[wr]=e?e.slice():gr(),N(r,DR),r}var DR={needTransform:function(){return!1},normalize:function(t){var e=this._extents[Ea]||this._extents[wr];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[Ea]||this._extents[wr];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=_v(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[wr].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){hw(this._extents,wr,t,e)},setExtent2:function(t,e,r){var i=this._extents;i[t]||(i[t]=i[wr].slice()),hw(i,t,e,r)},freeze:function(){}};function hw(t,e,r,i){eo(r,i)&&(t[e][0]=r,t[e][1]=i)}function nl(t){return t.type==="interval"}function Ia(t){return t.type==="time"}function Ra(t){return t.type==="log"}function Yr(t){return t.type==="ordinal"}function gn(t){return hr(t)+2}function ol(t,e){return la(t)/la(e)}function pc(t,e,r){var i=r&&r.lookup;if(i){for(var n=0;n<i.from.length;n++)if(t===i.from[n])return i.to[n]}return $n(e,t)}function _w(t,e,r){var i=t.slice();if(i[0]===i[1]){var n=r&&r.ctnShp;if(i[0]!==0){var o=Zt(i[0]);e[1]||(i[1]+=o/2),i[0]-=o/2}else n&&(i[0]=-1),i[1]=1}return(!ci(i[0])||!ci(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function yw(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function al(t,e){return t=t||e,Wr(Pe(t,1))}function xw(t,e,r){var i=ki(t),n=i[0],o=t.count(),a=Math.max((e||0)+1,1);n!==0&&a>1&&o/a>2&&(n=Math.round(Math.ceil(n/a)*a)),n!==i[0]&&l(i[0],!0,!0);for(var s=n;s<=i[1];s+=a)l(s,!1,s===i[0]||s===i[1]);s-a!==i[1]&&l(i[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var Sw=(function(t){Oe(e,t);function e(r){var i=t.call(this)||this;i.type="ordinal",i.parse=e.parse,fc(i,e.decoratedMethods);var n=r.ordinalMeta;n||(n=new mv({})),L(n)&&(n=new mv({categories:K(n,function(a){return B(a)?a.value:a})})),i._ordinalMeta=n;var o=Ma(null,null,r.extent||[0,n.categories.length-1]);return i._mapper=o.mapper,cc(i,o.mapper),i}return e.parse=function(r){return r==null?r=NaN:k(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=Wr(r),r},e.prototype.getTicks=function(){var r=[];return xw(this,0,function(i){r.push(i)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=_t(s,i.length);a<l;++a){var u=n[a]=i[a];o[u]=a}for(var f=0;a<s;++a){for(;o[f]!=null;)f++;n[a]=f,o[f]=a}},e.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},e.prototype.count=function(){var r=ki(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(Wr(this._mapper.scale(r)))},transformIn:function(r,i){return this._mapper.transformIn(this._getTickNumber(r),i)},transformOut:function(r,i){return this.getRawOrdinalNumber(this._mapper.transformOut(r,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,i){return this._mapper.getExtentUnsafe(r,i)},setExtent:function(r,i){return this._mapper.setExtent(r,i)},setExtent2:function(r,i,n){return this._mapper.setExtent2(r,i,n)}},e})(Jt);Jt.registerClass(Sw);var ww=Sw;function Aa(t,e,r,i){for(var n=t.getTicks({expandToNicedExtent:!0}),o=[],a=t.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var f=0,c=[],p=l.value-u.value,d=p/e,h=gn(d);f<e-1;){var g=rt(u.value+(f+1)*d,h);g>a[0]&&g<a[1]&&c.push(g),f++}var v=it();v&&v.pruneTicksByBreak("auto",c,r,function(m){return m},i,a),o.push(c)}}return o}var Cw=(function(t){Oe(e,t);function e(r){var i=t.call(this)||this;i.type="interval",i.parse=e.parse,r=r||{};var n=qf(i,r),o=Ma(i,n,null);return i.brk=o.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return ie(this._cfg)},e.prototype.setConfig=function(r){var i=ki(this);this._cfg=r=ie(r),r.niceExtent==null&&(r.niceExtent=i.slice()),r.intervalPrecision==null&&(r.intervalPrecision=gn(r.interval))},e.prototype.getTicks=function(r){r=r||{};var i=this._cfg,n=i.interval,o=ki(this),a=i.niceExtent,s=i.intervalPrecision,l=it(),u=this.brk,f=l&&u,c=[];if(!n)return c;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,o),c;var p=3e3;o[0]<a[0]&&c.push({value:r.expandToNicedExtent?rt(a[0]-n,s):o[0]});for(var d=function(y,x){return Wr((x-y)/n)},h=i.intervalCount,g=a[0],v=0;;v++){if(h==null){if(g>a[1]||!isFinite(g)||!isFinite(a[1]))break}else{if(v>h)break;g=_t(g,a[1]),v===h&&(g=a[1])}if(c.push({value:g}),g=rt(g+n,s),u){var m=u.calcNiceTickMultiple(g,d);m>=0&&(g=rt(g+m*n,s))}if(c.length>0&&g===c[c.length-1].value)break;if(c.length>p)return[]}var _=c.length?c[c.length-1].value:a[1];return o[1]>_&&c.push({value:r.expandToNicedExtent?rt(_+n,s):o[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(y){return y.value},i.interval,o),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,o),c},e.prototype.getMinorTicks=function(r){return Aa(this,r,fo(this),this._cfg.interval)},e.prototype.getLabel=function(r,i){if(r==null)return"";var n=i&&i.precision;n==null?n=hr(r.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var o=rt(r.value,n,!0);return rl(o)},e.type="interval",e})(Jt);Jt.registerClass(Cw);var vo=Cw;var MR=function(t,e,r,i){for(;r<i;){var n=r+i>>>1;t[n][1]<e?r=n+1:i=n}return r},bw=(function(t){Oe(e,t);function e(r){var i=t.call(this)||this;i.type="time",i.parse=e.parse,i._locale=r.locale,i._useUTC=r.useUTC,i._interval=0;var n=qf(i,r),o=Ma(i,n,null);return i.brk=o.brk,i}return e.prototype.getLabel=function(r){return co(r.value,iv[rw(xa(this._minLevelUnit))]||iv.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,i,n){return iw(r,i,n,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var i=this._interval,n=ki(this),o=it(),a=this.brk,s=o&&a,l=[];if(!i)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return it().addBreaksToTicks(l,a.breaks,n),l;l=PR(this._minLevelUnit,this._approxInterval,u,n,Oa(this),a);var f=Gr.length-1,c=0;return C(l,function(p){p.time&&(f=Math.min(f,pe(Gr,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&it().pruneTicksByBreak(r.pruneByBreak,l,a.breaks,function(p){return p.value},this._approxInterval,n),s&&r.breakTicks!=="none"&&it().addBreaksToTicks(l,a.breaks,n,function(p){for(var d=Math.max(pe(Gr,po(p.vmin,u)),pe(Gr,po(p.vmax,u))),h=0,g=0;g<Gr.length;g++)if(!Ew(Gr[g],p.vmin,p.vmax,u)){h=g;break}var v=Math.min(h,f),m=Math.max(v,d);return{level:c,lowerTimeUnit:Gr[m],upperTimeUnit:Gr[v]}}),l},e.prototype.getMinorTicks=function(r){return Aa(this,r,fo(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return be(r)?Math.round(r):+vr(r)},e.type="time",e})(Jt),dc=[["second",Kf],["minute",Zf],["hour",ya],["quarter-day",ya*6],["half-day",ya*12],["day",Sr*1.2],["half-week",Sr*3.5],["week",Sr*7],["month",Sr*31],["quarter",Sr*95],["half-year",rv/2],["year",rv]];function Ew(t,e,r,i){return $f(new Date(e),t,i).getTime()===$f(new Date(r),t,i).getTime()}function OR(t,e){return t/=Sr,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function IR(t){var e=30*Sr;return t/=e,t>6?6:t>3?3:t>2?2:1}function RR(t){return t/=ya,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Tw(t,e){return t/=e?Zf:Kf,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function AR(t){return Pe(Jn(t,!0),1)}function NR(t,e,r){var i=Math.max(0,pe(Gr,e)-1);return $f(new Date(t),Gr[i],r).getTime()}function LR(t,e){var r=new Date(0);r[t](1);var i=r.getTime();r[t](1+e);var n=r.getTime()-i;return function(o,a){return Math.max(0,Math.round((a-o)/n))}}function PR(t,e,r,i,n,o){var a=3e3,s=ew,l=0;function u(H,re,Ce,ge,de,me,Se){for(var Ee=LR(de,H),z=re,I=new Date(z);z<Ce&&z<=i[1]&&(Se.push({value:z}),!(l++>a));)if(I[de](I[ge]()+H),z=I.getTime(),o){var P=o.calcNiceTickMultiple(z,Ee);P>0&&(I[de](I[ge]()+P*H),z=I.getTime())}Se.push({value:z,notAdd:z>i[1]})}function f(H,re,Ce){var ge=[],de=!re.length;if(!Ew(xa(H),i[0],i[1],r)){de&&(re=[{value:NR(i[0],H,r)},{value:i[1]}]);for(var me=0;me<re.length-1;me++){var Se=re[me].value,Ee=re[me+1].value;if(Se!==Ee){var z=void 0,I=void 0,P=void 0,G=!1;switch(H){case"year":z=Math.max(1,Math.round(e/Sr/365)),I=nv(r),P=nw(r);break;case"half-year":case"quarter":case"month":z=IR(e),I=Qf(r),P=ov(r);break;case"week":case"half-week":case"day":z=OR(e,31),I=Jf(r),P=av(r),G=!0;break;case"half-day":case"quarter-day":case"hour":z=RR(e),I=ec(r),P=sv(r);break;case"minute":z=Tw(e,!0),I=tc(r),P=lv(r);break;case"second":z=Tw(e,!1),I=rc(r),P=uv(r);break;case"millisecond":z=AR(e),I=ic(r),P=fv(r);break}Ee>=i[0]&&Se<=i[1]&&u(z,Se,Ee,I,P,G,ge),H==="year"&&Ce.length>1&&me===0&&Ce.unshift({value:Ce[0].value-z})}}for(var me=0;me<ge.length;me++)Ce.push(ge[me])}}for(var c=[],p=[],d=0,h=0,g=0;g<s.length;++g){var v=xa(s[g]);if(tw(s[g])){f(s[g],c[c.length-1]||[],p);var m=s[g+1]?xa(s[g+1]):null;if(v!==m){if(p.length){h=d,p.sort(function(H,re){return H.value-re.value});for(var _=[],y=0;y<p.length;++y){var x=p[y].value;(y===0||p[y-1].value!==x)&&(_.push(p[y]),x>=i[0]&&x<=i[1]&&d++)}var S=n/e;if(d>S*1.5&&h>S/1.5||(c.push(_),d>S||t===s[g]))break}p=[]}}}for(var w=Ge(K(c,function(H){return Ge(H,function(re){return re.value>=i[0]&&re.value<=i[1]&&!re.notAdd})}),function(H){return H.length>0}),b=w.length-1,E=[],g=0;g<w.length;++g)for(var T=w[g],D=0;D<T.length;++D){var O=po(T[D].value,r);E.push({value:T[D].value,time:{level:b-g,upperTimeUnit:O,lowerTimeUnit:O}})}Fs(E,Ax,null),E.sort(function(H,re){return H.value-re.value});var R=E[0],M=E[E.length-1],A=po(i[0],r),j=po(i[1],r);return(!R||R.value>i[0])&&E.unshift({value:i[0],time:{level:0,upperTimeUnit:A,lowerTimeUnit:A},notNice:!0}),(!M||M.value<i[1])&&E.push({value:i[1],time:{level:0,upperTimeUnit:j,lowerTimeUnit:j},notNice:!0}),E}var Dw=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=Sr,r[1]+=Sr),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-Sr}t.setExtent(r[0],r[1]);var n=al(e.splitNumber,10),o=Oa(t)/n,a=e.minInterval,s=e.maxInterval;a!=null&&o<a&&(o=a),s!=null&&o>s&&(o=s);var l=dc.length,u=Math.min(MR(dc,o,0,l),l-1),f=dc[u][1],c=dc[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:o,interval:f,minLevelUnit:c})};Jt.registerClass(bw);var Mw=bw;var hc=0,vc=1,kR=2,Aw=(function(t){Oe(e,t);function e(r){var i=t.call(this)||this;i.type="log",i.parse=vo.parse,i.base=r.logBase||10;var n=[],o=[],a=i._lookup={from:n,to:o};n[hc]=n[vc]=o[hc]=o[vc]=NaN,fc(i,e.mapperMethods);var s=it(),l=r.breakOption,u={lookup:a};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},kR,u),i.powStub=new vo({breakParsed:u.original}),i.intervalStub=new vo({breakParsed:u.transformed}),cc(i,i.intervalStub),i}return e.prototype.getTicks=function(r){var i=this.base,n=this.powStub,o=it(),a=this.intervalStub,s=a.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return K(a.getTicks(r||{}),function(f){var c=f.value,p=pc(c,i,u),d;if(o){var h=o.getTicksBreakOutwardTransform(this,f,fo(n),this._lookup);h&&(d=h.vBreak,p=h.tickVal)}return{value:p,break:d}},this)},e.prototype.getMinorTicks=function(r){return Aa(this,r,fo(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,i){return this.intervalStub.getLabel(r,i)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(ol(r,this.base))},scale:function(r){return pc(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,i){return r=ol(r,this.base),i&&i.depth===Da?r:this.intervalStub.transformIn(r,i)},transformOut:function(r,i){var n=i?i.depth:null;return Ow.depth=n,Iw.lookup=this._lookup,pc(n===Da?r:this.intervalStub.transformOut(r,Ow),this.base,Iw)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,i){this.setExtent2(wr,r,i)},setExtent2:function(r,i,n){if(!(!eo(i,n)||i<=0||n<=0)){var o=Rw,a=Rw;if(r===wr){var s=this._lookup;o=s.to,a=s.from}this.powStub.setExtent2(r,o[hc]=i,o[vc]=n);var l=this.base;this.intervalStub.setExtent2(r,a[hc]=ol(i,l),a[vc]=ol(n,l))}},getFilter:function(){return{g:0}},sanitize:function(r,i){return eo(i[0],i[1])&&ar(r)&&r<=0&&(r=i[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,i){return i===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,i)}},e})(Jt);Jt.registerClass(Aw);var Ow={},Iw={},Rw=[],Nw=Aw;var er={Must:1,Might:2,Not:3},Lw=ne();function Pw(t){Lw(t).datasetMap=Z()}function kw(t,e,r){var i={},n=yv(e);if(!n||!t)return i;var o=[],a=[],s=e.ecModel,l=Lw(s).datasetMap,u=n.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),C(t,function(g,v){var m=B(g)?g:t[v]={name:g};m.type==="ordinal"&&f==null&&(f=v,c=h(m)),i[m.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});C(t,function(g,v){var m=g.name,_=h(g);if(f==null){var y=p.valueWayDim;d(i[m],y,_),d(a,y,_),p.valueWayDim+=_}else if(f===v)d(i[m],0,_),d(o,0,_);else{var y=p.categoryWayDim;d(i[m],y,_),d(a,y,_),p.categoryWayDim+=_}});function d(g,v,m){for(var _=0;_<m;_++)g.push(v+_)}function h(g){var v=g.dimsDef;return v?v.length:1}return o.length&&(i.itemName=o),a.length&&(i.seriesName=a),i}function yv(t){var e=t.get("data",!0);if(!e)return fn(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},pi).models[0]}function Fw(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:fn(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},pi).models}function mc(t,e){return FR(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function FR(t,e,r,i,n,o){var a,s=5;if(tt(t))return er.Not;var l,u;if(i){var f=i[o];B(f)?(l=f.name,u=f.type):k(f)&&(l=f)}if(u!=null)return u==="ordinal"?er.Must:er.Not;if(e===yt){var c=t;if(r===di){for(var p=c[o],d=0;d<(p||[]).length&&d<s;d++)if((a=x(p[n+d]))!=null)return a}else for(var d=0;d<c.length&&d<s;d++){var h=c[n+d];if(h&&(a=x(h[o]))!=null)return a}}else if(e===$t){var g=t;if(!l)return er.Not;for(var d=0;d<g.length&&d<s;d++){var v=g[d];if(v&&(a=x(v[l]))!=null)return a}}else if(e===_r){var m=t;if(!l)return er.Not;var p=m[l];if(!p||tt(p))return er.Not;for(var d=0;d<p.length&&d<s;d++)if((a=x(p[d]))!=null)return a}else if(e===Tt)for(var _=t,d=0;d<_.length&&d<s;d++){var v=_[d],y=Ri(v);if(!L(y))return er.Not;if((a=x(y[o]))!=null)return a}function x(S){var w=k(S);if(S!=null&&isFinite(Number(S))&&S!=="")return w?er.Might:er.Not;if(w&&S!=="-")return er.Must}return er.Not}var gc=(function(){function t(e){this.data=e.data||(e.sourceFormat===_r?{}:[]),this.sourceFormat=e.sourceFormat||oh,this.seriesLayoutBy=e.seriesLayoutBy||Qt,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var n=r[i];n.type==null&&mc(this,i)===er.Must&&(n.type="ordinal")}}return t})();function Na(t){return t instanceof gc}function sl(t,e,r){r=r||xv(t);var i=e.seriesLayoutBy,n=BR(t,r,i,e.sourceHeader,e.dimensions),o=new gc({data:t,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:ie(e)});return o}function La(t){return new gc({data:t,sourceFormat:tt(t)?yr:Tt})}function Uw(t){return new gc({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:ie(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function xv(t){var e=oh;if(tt(t))e=yr;else if(L(t)){t.length===0&&(e=yt);for(var r=0,i=t.length;r<i;r++){var n=t[r];if(n!=null){if(L(n)||tt(n)){e=yt;break}else if(B(n)){e=$t;break}}}}else if(B(t)){for(var o in t)if(gt(t,o)&&vt(t[o])){e=_r;break}}return e}function BR(t,e,r,i,n){var o,a;if(!t)return{dimensionsDefine:Bw(n),startIndex:a,dimensionsDetectedCount:o};if(e===yt){var s=t;i==="auto"||i==null?zw(function(u){u!=null&&u!=="-"&&(k(u)?a==null&&(a=1):a=0)},r,s,10):a=be(i)?i:i?1:0,!n&&a===1&&(n=[],zw(function(u,f){n[f]=u!=null?u+"":""},r,s,1/0)),o=n?n.length:r===di?s.length:s[0]?s[0].length:null}else if(e===$t)n||(n=zR(t));else if(e===_r)n||(n=[],C(t,function(u,f){n.push(f)}));else if(e===Tt){var l=Ri(t[0]);o=L(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Bw(n),dimensionsDetectedCount:o}}function zR(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return xe(r)}function Bw(t){if(t){var e=Z();return K(t,function(r,i){r=B(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var o=e.get(n.name);return o?n.name+="-"+o.count++:e.set(n.name,{count:1}),n})}}function zw(t,e,r,i){if(e===di)for(var n=0;n<r.length&&n<i;n++)t(r[n]?r[n][0]:null,n);else for(var o=r[0]||[],n=0;n<o.length&&n<i;n++)t(o[n],n)}function _c(t){var e=t.sourceFormat;return e===$t||e===_r}var UR=ne(),VR={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Sv=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Cv(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Q(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=_c(this.source),i=!Tv(e),n="",o=[],a=0,s=0;a<e;a++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===a)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var p=this.getSourceDimension(a);p&&(l=r?p.name:null,u=p.type)}o.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=VR[u]||"f",f&&(n+=f.uid),n+="$"}var d=this.source,h=[d.seriesLayoutBy,d.startIndex,n].join("$$");return{dimensions:o,hash:h}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,i=0;r<this._fullDimCount;r++){var n=void 0,o=this.dimensions[i];if(o&&o.storeDimIndex===r)o.isCalculationCoord||(n=o.name),i++;else{var a=this.getSourceDimension(r);a&&(n=a.name)}e.push(n)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function yc(t){return t instanceof Sv}function wv(t){for(var e=Z(),r=0;r<(t||[]).length;r++){var i=t[r],n=B(i)?i.name:i;n!=null&&e.get(n)==null&&e.set(n,r)}return e}function Cv(t){var e=UR(t);return e.dimNameMap||(e.dimNameMap=wv(t.dimensionsDefine))}function Tv(t){return t>30}function xc(t,e,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,o,a,s;WR(e)?o=e:(a=e.schema,o=a.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,p,d=!0;function h(x){return x.type!=="ordinal"&&x.type!=="time"}if(C(o,function(x,S){k(x)&&(o[S]=x={name:x}),h(x)||(d=!1)}),C(o,function(x,S){l&&!x.isExtraCoord&&(!i&&!u&&x.ordinalMeta&&(u=x),!f&&h(x)&&(!d||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!n||n===x.coordDim)&&(f=x))}),f&&!i&&!u&&(i=!0),f){c="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var g=f.coordDim,v=f.type,m=0;C(o,function(x){x.coordDim===g&&m++});var _={name:c,coordDim:g,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},y={name:p,coordDim:p,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(_.storeDimIndex=s.ensureCalculationDimension(p,v),y.storeDimIndex=s.ensureCalculationDimension(c,v)),a.appendCalculationDimension(_),a.appendCalculationDimension(y)):(o.push(_),o.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:c}}function WR(t){return!yc(t.schema)}function bv(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Vw(t,e){return bv(t,e)?t.getCalculationInfo("stackResultDimension"):e}var HR=ne();function Ww(t){var e=t.get("type");return(e==null||!gt(pw,e)&&!Jt.getClass(e))&&(e="value"),e}function Hw(t,e,r){var i=it(),n;switch(i&&(n=YR(t,e,r)),e){case"category":return new ww({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:gr()});case"time":return new Mw({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new Nw({logBase:t.get("logBase"),breakOption:n});case"value":return new vo({breakOption:n});default:return new(Jt.getClass(e)||vo)({})}}function Gw(t){HR(t).noOnMyZero=!0}function Sc(t,e){var r=t.scale;return Yr(r)?r.getLabel(e):e.value}function GR(t){var e=t.get("interval");return e??"auto"}function Yw(t){return t.type==="category"&&GR(t.getLabelModel())===0}function ll(t){return t==="middle"||t==="center"}function YR(t,e,r){var i=t.get("breaks",!0);if(i!=null){if(!it())return;if(!r||!XR(e)){if(0)var n;return}return i}}function XR(t){return t!=="category"}function Xw(t,e,r,i,n,o){var a=Ra(t),s=a?t.intervalStub:t;if(s.setExtent(i[0],i[1]),a){var l=t.powStub,u={depth:Da},f=t.transformOut(i[0],u),c=t.transformOut(i[1],u),p=yw(r,i);e[0]&&!p[0]&&(f=n[0]),e[1]&&!p[1]&&(c=n[1]),l.setExtent(f,c)}s.setConfig(o)}function Ev(t,e){return Yr(t)?t.getRawOrdinalNumber(e.value):e.value}var lY=ne(),qw=ne(),Mv={estimate:1,determine:2};function jw(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}var uY=Kw("axisTick"),fY=Kw("axisLabel");function Kw(t){return function(r){return qw(r)[t]||(qw(r)[t]={list:[]})}}var Ov=ne();function Zw(t){Ov(t).prepare={}}function $w(t){Ov(t).fullUpdate={}}function wc(t){return Ov(t).fullUpdate}var yY=Rx();var Iv=ne(),Qw=-2;var xY=ne();function qR(t,e){var r=t.model,i=Iv(wc(r.ecModel)).keyed,n=i&&i.get(e);return n&&n.get(r.uid)}function Jw(t,e){return tC(qR(t,e))}function eC(t,e){var r=[];return jR(t.model.ecModel,function(i){for(var n=0;n<e.length;n++)e[n]&&i.serByIdx[e[n].seriesIndex]&&r.push(tC(i))}),r}function jR(t,e){var r=Iv(wc(t)).keyed;r&&r.each(function(i,n){i.each(function(o,a){e(o,n,a)})})}function tC(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function rC(t,e){var r=t.model,i=Iv(wc(r.ecModel)).keys;i&&C(i.get(r.uid),function(n){if(0)var o;e(n)})}var SY=Z();var KR=.8;function Cc(t,e){e=e||{};var r={w:NaN,w2:NaN},i=t.scale,n=e.fromStat,o=e.min,a=gw(i);ar(a)||(a=NaN);var s=t.getExtent(),l=Zt(s[1]-s[0]);return Yr(i)?ZR(r,t,a,l):n?$R(r,t,a,l,n):o==null,o!=null&&(r.w=ar(r.w)?Pe(o,r.w):o),r}function ZR(t,e,r,i){var n=e.onBand,o=r+(n?1:0);o===0&&(o=1),t.w=i/o,!n&&r&&i&&(t.w2=t.w*r/i)}function $R(t,e,r,i,n){var o=!1,a=-1/0;C(n.key?[Jw(e,n.key)]:eC(e,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>a&&(a=l),o=!1):l===Qw&&(o=!0))}),ar(r)&&r>0&&ar(a)?(t.w=i/r*a,t.w2=a):o&&(t.w=i*KR,t.w2=t.w*r/i)}var QR=he.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,o=e.height/2;t.moveTo(r,i-o),t.lineTo(r+n,i+o),t.lineTo(r-n,i+o),t.closePath()}}),JR=he.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,o=e.height/2;t.moveTo(r,i-o),t.lineTo(r+n,i),t.lineTo(r,i+o),t.lineTo(r-n,i),t.closePath()}}),eA=he.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,i=e.y,n=e.width/5*3,o=Math.max(n,e.height),a=n/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),f=Math.cos(u)*a,c=Math.sin(u),p=Math.cos(u),d=a*.6,h=a*.7;t.moveTo(r-f,l+s),t.arc(r,l,a,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*d,l+s+p*d,r,i-h,r,i),t.bezierCurveTo(r,i-h,r-f+c*d,l+s+p*d,r-f,l+s),t.closePath()}}),tA=he.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,i=e.width,n=e.x,o=e.y,a=i/3*2;t.moveTo(n,o),t.lineTo(n+a,o+r),t.lineTo(n,o+r/4*3),t.lineTo(n-a,o+r),t.lineTo(n,o),t.closePath()}}),rA={line:vi,rect:ft,roundRect:ft,square:ft,circle:to,diamond:JR,pin:eA,arrow:tA,triangle:QR},iA={line:function(t,e,r,i,n){n.x1=t,n.y1=e+i/2,n.x2=t+r,n.y2=e+i/2},rect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i},roundRect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(t,e,r,i,n){var o=Math.min(r,i);n.x=t,n.y=e,n.width=o,n.height=o},circle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.r=Math.min(r,i)/2},diamond:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i},pin:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},arrow:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},triangle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i}},Rv={};C(rA,function(t,e){Rv[e]=new t});var nA=he.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var i=Xu(t,e,r),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(i.y=r.y+r.height*.4),i},buildPath:function(t,e,r){var i=e.symbolType;if(i!=="none"){var n=Rv[i];n||(i="rect",n=Rv[i]),iA[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r)}}});function oA(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||qe.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function Pa(t,e,r,i,n,o,a){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=el(t.slice(8),new te(e,r,i,n),a?"center":"cover"):t.indexOf("path://")===0?l=ma(t.slice(7),{},new te(e,r,i,n),a?"center":"cover"):l=new nA({shape:{symbolType:t,x:e,y:r,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=oA,o&&l.setColor(o),l}function iC(t,e){if(t!=null)return L(t)||(t=[t,t]),[At(t[0],e[0])||0,At(Q(t[1],t[0]),e[1])||0]}var nC=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],aA=1,Tc=2,aC=aA|Tc;function ul(t,e,r){r=r||aC,e?t.dirty|=r:t.dirty&=~r}function sC(t,e){return e=e||aC,t.dirty==null||!!(t.dirty&e)}function Xr(t){if(t)return sC(t)&&sA(t,t.label,t),t}function sA(t,e,r){var i=e.getComputedTransform();t.transform=Vf(t.transform,i);var n=t.localRect=ga(t.localRect,e.getBoundingRect()),o=e.style,a=o.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=o.__marginType;f==null&&u&&(a=u,f=so.textMargin);for(var c=0;c<4;c++)Av[c]=f===so.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:a?a[c]:0;f===so.textMargin&&Bf(n,Av,!1,!1);var p=t.rect=ga(t.rect,n);return i&&p.applyTransform(i),f===so.minMargin&&Bf(p,Av,!1,!1),t.axisAligned=Uf(i),(t.label=t.label||{}).ignore=e.ignore,ul(t,!1),ul(t,!0,Tc),t}var Av=[0,0,0,0];function lC(t,e,r){return t.transform=Vf(t.transform,r),t.localRect=ga(t.localRect,e),t.rect=ga(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=Uf(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function uC(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var n=t.obb;n&&n.fromBoundingRect(t.localRect,r)}}function fl(t,e){for(var r=0;r<nC.length;r++){var i=nC[r];t[i]==null&&(t[i]=e[i])}return Xr(t)}function oC(t){var e=t.obb;return(!e||sC(t,Tc))&&(t.obb=e=e||new Af,e.fromBoundingRect(t.localRect,t.transform),ul(t,!1,Tc)),e}function Nv(t,e,r,i,n){var o=t.length,a=Mh[e],s=Oh[e];if(o<2)return!1;t.sort(function(T,D){return T.rect[a]-D.rect[a]});for(var l=0,u,f=!1,c=0,p=0;p<o;p++){var d=t[p],h=d.rect;u=h[a]-l,u<0&&(h[a]-=u,d.label[a]-=u,f=!0);var g=Math.max(-u,0);c+=g,l=h[a]+h[s]}c>0&&n&&w(-c/o,0,o);var v=t[0],m=t[o-1],_,y;x(),_<0&&b(-_,.8),y<0&&b(y,.8),x(),S(_,y,1),S(y,_,-1),x(),_<0&&E(-_),y<0&&E(y);function x(){_=v.rect[a]-r,y=i-m.rect[a]-m.rect[s]}function S(T,D,O){if(T<0){var R=Math.min(D,-T);if(R>0){w(R*O,0,o);var M=R+T;M<0&&b(-M*O,1)}else b(-T*O,1)}}function w(T,D,O){T!==0&&(f=!0);for(var R=D;R<O;R++){var M=t[R],A=M.rect;A[a]+=T,M.label[a]+=T}}function b(T,D){for(var O=[],R=0,M=1;M<o;M++){var A=t[M-1].rect,j=Math.max(t[M].rect[a]-A[a]-A[s],0);O.push(j),R+=j}if(R){var H=Math.min(Math.abs(T)/R,D);if(T>0)for(var M=0;M<o-1;M++){var re=O[M]*H;w(re,0,M+1)}else for(var M=o-1;M>0;M--){var re=O[M-1]*H;w(-re,M,o)}}}function E(T){var D=T<0?-1:1;T=Math.abs(T);for(var O=Math.ceil(T/(o-1)),R=0;R<o-1;R++)if(D>0?w(O,0,R+1):w(-O,o-R-1,o),T-=O,T<=0)return}return f}function fC(t){for(var e=0;e<t.length;e++){var r=t[e],i=r.defaultAttr,n=r.labelLine;r.label.attr("ignore",i.ignore),n&&n.attr("ignore",i.labelGuideIgnore)}}function bc(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var i=0;i<t.length;i++){var n=Xr(t[i]);if(!n.label.ignore){for(var o=n.label,a=n.labelLine,s=!1,l=0;l<e.length;l++)if(Ec(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(o),a&&r(a)):e.push(n)}}}function Ec(t,e,r,i){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,i)?!1:t.axisAligned&&e.axisAligned?!0:oC(t).intersect(oC(e),r,i)}var cC="expandAxisBreak";var _n=Math.PI,lA=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],uA=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Fa=ne(),hC=ne(),fA=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,i=e.componentIndex,n=this.recordMap,o=n[r]||(n[r]=[]);return o[i]||(o[i]={ready:{}})},t})();function cA(t,e,r,i){var n=r.axis,o=e.ensureRecord(r),a=[],s,l=Pv(t.axisName)&&ll(t.nameLocation);C(i,function(h){var g=Xr(h);if(!(!g||g.label.ignore)){a.push(g);var v=o.transGroup;l&&(v.transform?ti(cl,v.transform):xi(cl),g.transform&&ji(cl,cl,g.transform),te.copy(Dc,g.localRect),Dc.applyTransform(cl),s?s.union(Dc):te.copy(s=new te(0,0,0,0),Dc))}});var u=Math.abs(o.dirVec.x)>.1?"x":"y",f=o.transGroup[u];if(a.sort(function(h,g){return Math.abs(h.label[u]-f)-Math.abs(g.label[u]-f)}),l&&s){var c=n.getExtent(),p=Math.min(c[0],c[1]),d=Math.max(c[0],c[1])-p;s.union(new te(p,0,d,1))}o.stOccupiedRect=s,o.labelInfoList=a}var cl=jt(),Dc=new te(0,0,0,0),pA=function(t,e,r,i,n,o){if(ll(t.nameLocation)){var a=o.stOccupiedRect;a&&vC(lC({},a,o.transGroup.transform),i,n)}else dA(o.labelInfoList,o.dirVec,i,n)};function vC(t,e,r){var i=new ve;Ec(t,e,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&uC(e,i)}function dA(t,e,r,i){for(var n=ve.dot(i,e)>=0,o=0,a=t.length;o<a;o++){var s=t[n?o:a-1-o];s.label.ignore||vC(s,r,i)}}var mo=(function(){function t(e,r,i,n){this.group=new It,this._axisModel=e,this._api=r,this._local={},this._shared=n||new fA(pA),this._resetCfgDetermined(i)}return t.prototype.updateCfg=function(e){if(0)var r;var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,i=r.getDefaultOption?r.getDefaultOption():{},n=Q(e.axisName,r.get("name")),o=r.get("nameMoveOverlap");(o==null||o==="auto")&&(o=Q(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:Q(e.nameDirection,1),tickDirection:Q(e.tickDirection,1),labelDirection:Q(e.labelDirection,1),labelOffset:Q(e.labelOffset,0),silent:Q(e.silent,!0),axisName:n,nameLocation:zr(r.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:Pv(n)&&o,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=a;var s=new It({x:a.position[0],y:a.position[1],rotation:a.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new ve(Math.cos(-a.rotation),Math.sin(-a.rotation))},t.prototype.build=function(e,r){var i=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),C(hA,function(n){e[n]&&vA[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,r||{})}),this},t.innerTextLayout=function(e,r,i){var n=Rs(r-e),o,a;return Qn(n)?(a=i>0?"top":"bottom",o="center"):Qn(n-_n)?(a=i>0?"bottom":"top",o="center"):(a="middle",n>0&&n<_n?o=i>0?"right":"left":o=i>0?"left":"right"),{rotation:n,textAlign:o,textVerticalAlign:a}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),hA=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],vA={axisLine:function(t,e,r,i,n,o,a){if(0)var s;var l=i.get(["axisLine","show"]);if(l==="auto"&&(l=!0,t.raw.axisLineAutoShow!=null&&(l=!!t.raw.axisLineAutoShow)),!!l){var u=i.axis.getExtent(),f=o.transform,c=[u[0],0],p=[u[1],0],d=c[0]>p[0];f&&(nr(c,c,f),nr(p,p,f));var h=N({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),g={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(i.get(["axisLine","breakLine"])&&JS(i.axis.scale))gv().buildAxisBreakLine(i,n,o,g);else{var v=new vi(N({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},g));kf(v.shape,v.style.lineWidth),v.anid="line",n.add(v)}var m=i.get(["axisLine","symbol"]);if(m!=null){var _=i.get(["axisLine","symbolSize"]);k(m)&&(m=[m,m]),(k(_)||be(_))&&(_=[_,_]);var y=iC(i.get(["axisLine","symbolOffset"])||0,_),x=_[0],S=_[1];C([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((c[0]-p[0])*(c[0]-p[0])+(c[1]-p[1])*(c[1]-p[1]))}],function(w,b){if(m[b]!=="none"&&m[b]!=null){var E=Pa(m[b],-x/2,-S/2,x,S,h.stroke,!0),T=w.r+w.offset,D=d?p:c;E.attr({rotation:w.rotate,x:D[0]+T*Math.cos(t.rotation),y:D[1]-T*Math.sin(t.rotation),silent:!0,z2:11}),n.add(E)}})}}},axisTickLabelEstimate:function(t,e,r,i,n,o,a,s){if(0)var l;var u=dC(e,n,s);u&&pC(t,e,r,i,n,o,a,Mv.estimate)},axisTickLabelDetermine:function(t,e,r,i,n,o,a,s){if(0)var l;var u=dC(e,n,s);u&&pC(t,e,r,i,n,o,a,Mv.determine);var f=yA(t,n,o,i);_A(t,e.labelLayoutList,f),xA(t,n,o,i,t.tickDirection)},axisName:function(t,e,r,i,n,o,a,s){var l=r.ensureRecord(i);if(0)var u;e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=t.axisName;if(Pv(f)){var c=t.nameLocation,p=t.nameDirection,d=i.getModel("nameTextStyle"),h=i.get("nameGap")||0,g=i.axis.getExtent(),v=i.axis.inverse?-1:1,m=new ve(0,0),_=new ve(0,0);c==="start"?(m.x=g[0]-v*h,_.x=-v):c==="end"?(m.x=g[1]+v*h,_.x=v):(m.x=(g[0]+g[1])/2,m.y=t.labelOffset+p*h,_.y=p);var y=jt();_.transform(qo(y,y,t.rotation));var x=i.get("nameRotate");x!=null&&(x=x*_n/180);var S,w;ll(c)?S=mo.innerTextLayout(t.rotation,x??t.rotation,p):(S=mA(t.rotation,c,x||0,g),w=t.raw.axisNameAvailableWidth,w!=null&&(w=Math.abs(w/Math.sin(S.rotation)),!isFinite(w)&&(w=null)));var b=d.getFont(),E=i.get("nameTruncate",!0)||{},T=E.ellipsis,D=Yo(t.raw.nameTruncateMaxWidth,E.maxWidth,w),O=s.nameMarginLevel||0,R=new zt({x:m.x,y:m.y,rotation:S.rotation,silent:mo.isLabelSilent(i),style:lo(d,{text:f,font:b,overflow:"truncate",width:D,ellipsis:T,fill:d.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:d.get("align")||S.textAlign,verticalAlign:d.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(zf({el:R,componentModel:i,itemName:f}),R.__fullText=f,R.anid="name",i.get("triggerEvent")){var M=mo.makeAxisEventDataBase(i);M.targetType="axisName",M.name=f,Ae(R).eventData=M}o.add(R),R.updateTransform(),e.nameEl=R;var A=l.nameLayout=Xr({label:R,priority:R.z2,defaultAttr:{ignore:R.ignore},marginDefault:ll(c)?lA[O]:uA[O]});if(l.nameLocation=c,n.add(R),R.decomposeTransform(),t.shouldNameMoveOverlap&&A){var j=r.ensureRecord(i);r.resolveAxisNameOverlap(t,r,i,A,_,j)}}}};function pC(t,e,r,i,n,o,a,s){gC(e)||SA(t,e,n,s,i,a);var l=e.labelLayoutList;wA(t,i,l,o),bA(i,t.rotation,l);var u=t.optionHideOverlap;gA(i,l,u),u&&bc(Ge(l,function(f){return f&&!f.label.ignore})),cA(t,r,i,l)}function mA(t,e,r,i){var n=Rs(r-t),o,a,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return Qn(n-_n/2)?(a=l?"bottom":"top",o="center"):Qn(n-_n*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",n<_n*1.5&&n>_n/2?o=l?"left":"right":o=l?"right":"left"),{rotation:n,textAlign:o,textVerticalAlign:a}}function gA(t,e,r){var i=t.axis,n=t.get(["axisLabel","customValues"]);if(Yw(i))return;function o(u,f,c){var p=Xr(e[f]),d=Xr(e[c]),h=i.scale;if(!(!p||!d)){if(u==null){if(!r&&n)return;var g=Fa(p.label).labelInfo.tick;if(Ia(h)&&g.notNice||Yr(h)&&g.offInterval){ka(p.label);return}}if(u===!1||p.suggestIgnore){ka(p.label);return}if(d.suggestIgnore){ka(d.label);return}var v=.1;if(!r){var m=[0,0,0,0];p=fl({marginForce:m},p),d=fl({marginForce:m},d)}Ec(p,d,null,{touchThreshold:v})&&ka(u?d.label:p.label)}}var a=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;o(a,0,1),o(s,l-1,l-2)}function _A(t,e,r){t.showMinorTicks||C(e,function(i){if(i&&i.label.ignore)for(var n=0;n<r.length;n++){var o=r[n],a=hC(o),s=Fa(i.label);if(a.tickValue!=null&&!a.onBand&&a.tickValue===s.labelInfo.tick.value){ka(o);return}}})}function ka(t){t&&(t.ignore=!0)}function mC(t,e,r,i,n){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=r,e&&(nr(a,a,e),nr(s,s,e));var f=new vi({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});kf(f.shape,f.style.lineWidth),f.anid=n+"_"+t[l].tickValue,o.push(f);var c=hC(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return o}function yA(t,e,r,i){var n=i.axis,o=i.getModel("axisTick"),a=o.get("show");if(a==="auto"&&(a=!0,t.raw.axisTickAutoShow!=null&&(a=!!t.raw.axisTickAutoShow)),!a||n.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=t.tickDirection*o.get("length"),u=n.getTicksCoords(),f=mC(u,r.transform,l,ye(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function xA(t,e,r,i,n){var o=i.axis,a=i.getModel("minorTick");if(!(!t.showMinorTicks||o.scale.isBlank())){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),u=n*a.get("length"),f=ye(l.getLineStyle(),ye(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=mC(s[c],r.transform,u,f,"minorticks_"+c),d=0;d<p.length;d++)e.add(p[d])}}function dC(t,e,r){if(gC(t)){var i=t.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(r.noPxChange){for(var o=!0,a=0;a<n.length;a++)o=o&&n[a]();if(o)return!1}n.length&&(e.remove(t.labelGroup),Lv(t,null,null,null))}return!0}function SA(t,e,r,i,n,o){var a=n.axis,s=Yo(t.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new It;r.add(l);var u=jw(i);if(!s||a.scale.isBlank()){Lv(e,[],l,u);return}var f=n.getModel("axisLabel"),c=a.getViewLabels(u),p=(Yo(t.raw.labelRotate,f.get("rotate"))||0)*_n/180,d=mo.innerTextLayout(t.rotation,p,t.labelDirection),h=n.getCategories&&n.getCategories(!0),g=[],v=n.get("triggerEvent"),m=1/0,_=-1/0;C(c,function(x,S){var w,b=x.tick,E=x.formattedLabel,T=x.rawLabel,D=f,O=Ev(a.scale,b);if(h&&h[O]){var R=h[O];B(R)&&R.textStyle&&(D=new Ve(R.textStyle,f,n.ecModel))}var M=D.getTextColor()||n.get(["axisLine","lineStyle","color"]),A=D.getShallow("align",!0)||d.textAlign,j=Q(D.getShallow("alignMinLabel",!0),A),H=Q(D.getShallow("alignMaxLabel",!0),A),re=D.getShallow("verticalAlign",!0)||D.getShallow("baseline",!0)||d.textVerticalAlign,Ce=Q(D.getShallow("verticalAlignMinLabel",!0),re),ge=Q(D.getShallow("verticalAlignMaxLabel",!0),re),de=10+(((w=b.time)===null||w===void 0?void 0:w.level)||0);m=Math.min(m,de),_=Math.max(_,de);var me=new zt({x:0,y:0,rotation:0,silent:mo.isLabelSilent(n),z2:de,style:lo(D,{text:E,align:S===0?j:S===c.length-1?H:A,verticalAlign:S===0?Ce:S===c.length-1?ge:re,fill:$(M)?M(a.type==="category"?T:a.type==="value"?O+"":O,S):M})});me.anid="label_"+O;var Se=Fa(me);if(Se.labelInfo=x,Se.layoutRotation=d.rotation,zf({el:me,componentModel:n,itemName:E,formatterParamsExtra:{isTruncated:function(){return me.isTruncated},value:T,tickIndex:S}}),v){var Ee=mo.makeAxisEventDataBase(n);Ee.targetType="axisLabel",Ee.value=T,Ee.tickIndex=S;var z=x.tick.break;if(z){var I=z.parsedBreak;Ee.break={start:I.vmin,end:I.vmax}}a.type==="category"&&(Ee.dataIndex=O),Ae(me).eventData=Ee,z&&TA(n,o,me,z)}g.push(me),l.add(me)});var y=K(g,function(x){return{label:x,priority:Fa(x).labelInfo.tick.break?x.z2+(_-m+1):x.z2,defaultAttr:{ignore:x.ignore}}});Lv(e,y,l,u)}function gC(t){return!!t.labelLayoutList}function Lv(t,e,r,i){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=i}function wA(t,e,r,i){var n=e.get(["axisLabel","margin"]);C(r,function(o,a){var s=Xr(o);if(s){var l=s.label,u=Fa(l);s.suggestIgnore=l.ignore,l.ignore=!1,Zo(Fi,CA);var f=e.axis;Fi.x=f.dataToCoord(Ev(f.scale,u.labelInfo.tick)),Fi.y=t.labelOffset+t.labelDirection*n,Fi.rotation=u.layoutRotation,i.add(Fi),Fi.updateTransform(),i.remove(Fi),Fi.decomposeTransform(),Zo(l,Fi),l.markRedraw(),ul(s,!0),Xr(s)}})}var Fi=new ft,CA=new ft;function Pv(t){return!!t}function TA(t,e,r,i){r.on("click",function(n){var o={type:cC,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};o[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(o)})}function bA(t,e,r){var i=it();if(i){var n=i.retrieveAxisBreakPairs(r,function(a){return a&&Fa(a.label).labelInfo.tick.break},!0),o=t.get(["breakLabelLayout","moveOverlap"],!0);(o===!0||o==="auto")&&C(n,function(a){gv().adjustBreakLabelPair(t.axis.inverse,e,[Xr(r[a[0]]),Xr(r[a[1]])])})}}var _C=mo;function kv(t,e,r){r=r||{};var i=e.axis,n={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(d,p[1]),p[0])}n.position=[l==="y"?p[f[s]]:u[0],l==="x"?p[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var h={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=h[a],n.labelOffset=o?p[f[a]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Yo(r.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var g=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-g:g,n.z2=1,n}var x4=ne();var DA=3,MA=(function(){function t(e,r,i,n,o){var a=Yr(e),s=a?r.getCategories().length:null,l;if(a){var u=r.getCategories(!0);l=u&&!u.length}var f=i.slice();(nl(e)||Ra(e)||Ia(e))&&(ih(f,pl(e,r.get("dataMin",!0))),nh(f,pl(e,r.get("dataMax",!0)))),Ox(f)||(f[0]=f[1]=NaN);var c=[],p=[!1,!1],d=r.get("min",!0);d==="dataMin"?(c[0]=f[0],p[0]=!0):(c[0]=pl(e,$(d)?d({min:f[0],max:f[1]}):d),p[0]=c[0]!=null);var h=r.get("max",!0);h==="dataMax"?(c[1]=f[1],p[1]=!0):(c[1]=pl(e,$(h)?h({min:f[0],max:f[1]}):h),p[1]=c[1]!=null);var g=OA(e,r),v=a?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=a?l?f[0]:s?0:NaN:f[0]-g[0]*v),c[1]==null&&(c[1]=a?l?f[1]:s?s-1:NaN:f[1]+g[1]*v),!ci(c[0])&&(c[0]=NaN),!ci(c[1])&&(c[1]=NaN);var m=l||Go(c[0])||Go(c[1])||a&&!s,_=nl(e),y=_&&r.needIncludeZero&&r.needIncludeZero();y&&(c[0]>0&&c[1]>0&&!p[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!p[1]&&(c[1]=0));var x=!1;c[0]>c[1]&&(c.reverse(),x=!0);var S=pl(e,r.get("startValue",!0)),w=S!=null;!ar(S)&&n&&(S=e.getDefaultStartValue?e.getDefaultStartValue():0),ar(S)&&(w||!_||y)&&(S<c[0]&&!p[0]?(c[0]=S,p[0]=!0):S>c[1]&&!p[1]&&(c[1]=S,p[1]=!0));var b=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:S,isBlank:m,incl0:y,tggAxInv:x,ctnShp:o};yC(b,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,i=e.noZoomEffMM,n=e.zoomFixMM,o=e.fixMM,a={fixMM:o,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=a.effMM;return r[0]!=null&&(s[0]=r[0],o[0]=n[0]=!0),r[1]!=null&&(s[1]=r[1],o[1]=n[1]=!0),yC(e,s),a},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function yC(t,e){var r=t.scale,i=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],i),e[1]=r.sanitize(e[1],i),Ix(e))}function pl(t,e){return e==null?null:Go(e)?NaN:t.parse(e)}function OA(t,e){var r;if(Yr(t))r=[0,0];else{var i=e.get("boundaryGap");typeof i=="boolean"&&(i=null),r=L(i)?i:[i,i]}return[xC(r[0]),xC(r[1])]}function xC(t){return Ei(typeof t=="boolean"?0:t,1)||0}function IA(t,e){var r=t.scale;RA(r,new MA(r,t.model,e,!1,!1),DA)}function RA(t,e,r){t.rawExtentInfo=e,e.from=r}var AA=Z();function SC(t,e,r,i,n){t.rawExtentInfo||IA({scale:t,model:e},n||gr());var o=t.rawExtentInfo.makeFinal(),a=o.effMM;return t.setExtent(a[0],a[1]),t.setBlank(o.isBlank),i&&o.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),o}function wC(t,e,r,i){if(r.ctnShp){var n;if(rC(t,function(s){var l=AA.get(s);if(l){var u=l(t,i);u&&(n=n||[0,0],ih(n,u[0]),nh(n,u[1]),Gw(t))}}),!!n){var o=e.getExtent();if(Yr(e))t.onBand||e.setExtent2(Ea,_t(o[0],o[0]+n[0]),Pe(o[1],o[1]+n[1]));else{var a=o.slice();r.zoomFixMM[0]||(a[0]=_t(a[0],e.transformOut(e.transformIn(a[0],null)+n[0],null))),r.zoomFixMM[1]||(a[1]=Pe(a[1],e.transformOut(e.transformIn(a[1],null)+n[1],null))),(a[0]<o[0]||a[1]>o[1])&&e.setExtent2(Ea,a[0],a[1])}}}}function CC(t,e){var r=Ra(t),i=r?t.intervalStub:t,n=e.fixMinMax||[],o=r?t.getExtent():null,a=i.getExtent(),s=_w(a,n,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=r?LA(i,e):NA(i,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=gn(c)),n[0]||(s[0]=rt(Ii(s[0]/f)*f,u)),n[1]||(s[1]=rt(Is(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),Xw(t,n,a,s,o,l)}function NA(t,e){var r=al(e.splitNumber,5),i=Oa(t),n=e.minInterval,o=e.maxInterval,a=Jn(i/r,!0);n!=null&&a<n&&(a=n),o!=null&&a>o&&(a=o);var s=gn(a),l=t.getExtent(),u=[rt(Is(l[0]/a)*a,s),rt(Ii(l[1]/a)*a,s)];return{interval:a,intervalPrecision:s,niceExtent:u}}function LA(t,e){var r=al(e.splitNumber,10),i=t.getExtent(),n=Oa(t),o=Pe(af(n),1),a=r/n*o;a<=.5&&(o*=10);var s=gn(o),l=[rt(Is(i[0]/o)*o,s),rt(Ii(i[1]/o)*o,s)];return{intervalPrecision:s,interval:o,niceExtent:l}}function TC(t,e,r,i,n){var o=SC(t,e,i,r,n),a=nl(t)||Ia(t);PA(t,{splitNumber:e.get("splitNumber"),fixMinMax:o.fixMM,userInterval:e.get("interval"),minInterval:a?e.get("minInterval"):null,maxInterval:a?e.get("maxInterval"):null,rawExtentResult:o}),r&&i&&wC(r,t,o,i)}function PA(t,e){kA[t.type](t,e)}var kA={interval:CC,log:CC,time:Dw,ordinal:Ke};function bC(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return FA(r,t,e),r.seriesInvolved&&zA(r,t),r}function FA(t,e,r){var i=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),o=n.get("link",!0)||[],a=[];C(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Ba(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",i);if(C(s.getAxes(),et(g,!1,null)),s.getTooltipAxes&&i&&c.get("show")){var p=c.get("trigger")==="axis",d=c.get(["axisPointer","type"])==="cross",h=s.getTooltipAxes(c.get(["axisPointer","axis"]));(p||d)&&C(h.baseAxes,et(g,d?"cross":!0,p)),d&&C(h.otherAxes,et(g,"cross",!1))}function g(v,m,_){var y=_.model.getModel("axisPointer",n),x=y.get("show");if(!(!x||x==="auto"&&!v&&!Bv(y))){m==null&&(m=y.get("triggerTooltip")),y=v?BA(_,c,n,e,v,m):y;var S=y.get("snap"),w=y.get("triggerEmphasis"),b=Ba(_.model),E=m||S||_.type==="category",T=t.axesInfo[b]={key:b,axis:_,coordSys:s,axisPointerModel:y,triggerTooltip:m,triggerEmphasis:w,involveSeries:E,snap:S,useHandle:Bv(y),seriesModels:[],linkGroup:null};u[b]=T,t.seriesInvolved=t.seriesInvolved||E;var D=UA(o,_);if(D!=null){var O=a[D]||(a[D]={axesInfo:{}});O.axesInfo[b]=T,O.mapper=o[D].mapper,T.linkGroup=O}}}})}function BA(t,e,r,i,n,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};C(s,function(p){l[p]=ie(a.get(p))}),l.snap=t.type!=="category"&&!!o,a.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=a.get(["label","show"]);if(u.show=f??!0,!o){var c=l.lineStyle=a.get("crossStyle");c&&ye(u,c.textStyle)}}return t.model.getModel("axisPointer",new Ve(l,r,i))}function zA(t,e){e.eachSeries(function(r){var i=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),o=r.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||o===!1||r.get(["axisPointer","show"],!0)===!1||C(t.coordSysAxesInfo[Ba(i.model)],function(a){var s=a.axis;i.getAxis(s.dim)===s&&(a.seriesModels.push(r),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=r.getData().count())})})}function UA(t,e){for(var r=e.model,i=e.dim,n=0;n<t.length;n++){var o=t[n]||{};if(Fv(o[i+"AxisId"],r.id)||Fv(o[i+"AxisIndex"],r.componentIndex)||Fv(o[i+"AxisName"],r.name))return n}}function Fv(t,e){return t==="all"||L(t)&&pe(t,e)>=0||t===e}function EC(t){var e=Mc(t);if(e){var r=e.axisPointerModel,i=e.axis.scale,n=r.option,o=r.get("status"),a=r.get("value");a!=null&&(a=i.parse(a));var s=Bv(r);o==null&&(n.status=s?"show":"hide");var l=i.getExtent();(a==null||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),n.value=a,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function Mc(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Ba(t)]}function DC(t){var e=Mc(t);return e&&e.axisPointerModel}function Bv(t){return!!t.get(["handle","show"])}function Ba(t){return t.type+"||"+t.id}var MC={},VA=(function(t){Oe(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n,o){this.axisPointerClass&&EC(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},e.prototype.updateAxisPointer=function(r,i,n,o){this._doUpdateAxisPointerClass(r,n,!1)},e.prototype.remove=function(r,i){var n=this._axisPointer;n&&n.remove(i)},e.prototype.dispose=function(r,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,i,n){var o=e.getAxisPointerClass(this.axisPointerClass);if(o){var a=DC(r);a?(this._axisPointer||(this._axisPointer=new o)).render(r,a,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,i){MC[r]=i},e.getAxisPointerClass=function(r){return r&&MC[r]},e.type="axis",e})(pr),OC=VA;var WA=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Uv=[],HA=le.browser.firefox&&+le.browser.version.split(".")[0]<39;function Oc(t,e,r,i){return r=r||{},i?IC(t,e,r):HA&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):IC(t,e,r),r}function IC(t,e,r){if(le.domSupported&&t.getBoundingClientRect){var i=e.clientX,n=e.clientY;if(Qh(t)){var o=t.getBoundingClientRect();r.zrX=i-o.left,r.zrY=n-o.top;return}else if(Hf(Uv,t,i,n)){r.zrX=Uv[0],r.zrY=Uv[1];return}}r.zrX=r.zrY=0}function Ic(t){return t||window.event}function lr(t,e,r){if(e=Ic(e),e.zrX!=null)return e;var i=e.type,n=i&&i.indexOf("touch")>=0;if(n){var a=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];a&&Oc(t,a,e,r)}else{Oc(t,e,e,r);var o=GA(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&WA.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function GA(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,i=t.deltaY;if(r==null||i==null)return e;var n=Math.abs(i!==0?i:r),o=i>0?-1:i<0?1:r>0?-1:1;return 3*n*o}function RC(t,e,r,i){t.addEventListener(e,r,i)}function AC(t,e,r,i){t.removeEventListener(e,r,i)}var Rc=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var Ac="\0__throttleOriginMethod",NC="\0__throttleRate",LC="\0__throttleType";function Wv(t,e,r){var i,n=0,o=0,a=null,s,l,u,f;e=e||0;function c(){o=new Date().getTime(),a=null,t.apply(l,u||[])}var p=function(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];i=new Date().getTime(),l=this,u=d;var g=f||e,v=f||r;f=null,s=i-(v?n:o)-g,clearTimeout(a),v?a=setTimeout(c,g):s>=0?c():a=setTimeout(c,-s),n=i};return p.clear=function(){a&&(clearTimeout(a),a=null)},p.debounceNextCall=function(d){f=d},p}function Nc(t,e,r,i){var n=t[e];if(n){var o=n[Ac]||n,a=n[LC],s=n[NC];if(s!==r||a!==i){if(r==null||!i)return t[e]=o;n=t[e]=Wv(o,r,i==="debounce"),n[Ac]=o,n[LC]=i,n[NC]=r}return n}}function dl(t,e){var r=t[e];r&&r[Ac]&&(r.clear&&r.clear(),t[e]=r[Ac])}var go=ne(),PC=ie,Hv=Me,XA=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,i,n){var o=r.get("value"),a=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=i,!(!n&&this._lastValue===o&&this._lastStatus===a)){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,o,e,r,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new It,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),i.getZr().add(s);else{var p=et(kC,r,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,r)}BC(s,r,!0),this._renderHandle(o)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var i=r.get("animation"),n=e.axis,o=n.type==="category",a=r.get("snap");if(!a&&!o)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(o&&Cc(n).w>s)return!0;if(a){var l=Mc(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},t.prototype.makeElOption=function(e,r,i,n,o){},t.prototype.createPointerEl=function(e,r,i,n){var o=r.pointer;if(o){var a=go(e).pointerEl=new dn[o.type](PC(r.pointer));e.add(a)}},t.prototype.createLabelEl=function(e,r,i,n){if(r.label){var o=go(e).labelEl=new zt(PC(r.label));e.add(o),FC(o,n)}},t.prototype.updatePointerEl=function(e,r,i){var n=go(e).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,i,n){var o=go(e).labelEl;o&&(o.setStyle(r.label.style),i(o,{x:r.label.x,y:r.label.y}),FC(o,n))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),n=this._handle,o=r.getModel("handle"),a=r.get("status");if(!o.get("show")||!a||a==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=tl(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Rc(u.event)},onmousedown:Hv(this._onHandleDragMove,this,0,0),drift:Hv(this._onHandleDragMove,this),ondragend:Hv(this._onHandleDragEnd,this)}),i.add(n)),BC(n,r,!1),n.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");L(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Nc(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){kC(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Gv(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Gv(i),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Gv(n)),go(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),i=this._group,n=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),dl(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,i){return i=i||0,{x:e[i],y:e[1-i],width:r[i],height:r[1-i]}},t})();function kC(t,e,r,i){zC(go(r).lastProp,i)||(go(r).lastProp=i,e?Pr(r,i,t):(r.stopAnimation(),r.attr(i)))}function zC(t,e){if(B(t)&&B(e)){var r=!0;return C(e,function(i,n){r=r&&zC(t[n],i)}),!!r}else return t===e}function FC(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Gv(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function BC(t,e,r){var i=e.get("z"),n=e.get("zlevel");t&&t.traverse(function(o){o.type!=="group"&&(i!=null&&(o.z=i),n!=null&&(o.zlevel=n),o.silent=r)})}var UC=XA;function VC(t){var e=t.get("type"),r=t.getModel(e+"Style"),i;return e==="line"?(i=r.getLineStyle(),i.fill=null):e==="shadow"&&(i=r.getAreaStyle(),i.stroke=null),i}function qA(t,e,r,i,n){var o=r.get("value"),a=Yv(o,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=hn(s.get("padding")||0),u=s.getFont(),f=s0(a,u),c=n.position,p=f.width+l[1]+l[3],d=f.height+l[0]+l[2],h=n.align;h==="right"&&(c[0]-=p),h==="center"&&(c[0]-=p/2);var g=n.verticalAlign;g==="bottom"&&(c[1]-=d),g==="middle"&&(c[1]-=d/2),jA(c,p,d,i);var v=s.get("backgroundColor");(!v||v==="auto")&&(v=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:lo(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function jA(t,e,r,i){var n=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,n)-e,t[1]=Math.min(t[1]+r,o)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Yv(t,e,r,i,n){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:n.precision}),a=n.formatter;if(a){var s={value:Sc(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};C(i,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),k(a)?o=a.replace("{value}",o):$(a)&&(o=a(s))}return o}function Xv(t,e,r){var i=jt();return qo(i,i,r.rotation),ps(i,i,r.position),Ff([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function WC(t,e,r,i,n,o){var a=_C.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),qA(e,i,n,o,{position:Xv(i.axis,t,r),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function HC(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function GC(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function YC(t,e,r){return Cc(t,{fromStat:{sers:K(e,function(i){return r.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function XC(t,e,r){return[Pe(_t(e[0],e[1]),t-r/2),_t(t+r/2,Pe(e[0],e[1]))]}var KA=(function(t){Oe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,i,n,o,a){var s=n.axis,l=s.grid,u=o.get("type"),f=s.getGlobalExtent(),c=jC(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var d=VC(o),h=ZA[u](s,p,f,c,o.get("seriesDataIndices"),o.ecModel);h.style=d,r.graphicKey=h.type,r.pointer=h}var g=kv(l.getRect(),n);WC(i,r,g,n,o,a)},e.prototype.getHandleTransform=function(r,i,n){var o=kv(i.axis.grid.getRect(),i,{labelInside:!1});o.labelMargin=n.get(["handle","margin"]);var a=Xv(i.axis,r,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,i,n,o){var a=n.axis,s=a.grid,l=a.getGlobalExtent(!0),u=jC(s,a).getOtherAxis(a).getGlobalExtent(),f=a.dim==="x"?0:1,c=[r.x,r.y];c[f]+=i[f],c[f]=_t(l[1],c[f]),c[f]=Pe(l[0],c[f]);var p=(u[1]+u[0])/2,d=[p,p];d[f]=c[f];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:d,tooltipOption:h[f]}},e})(UC);function jC(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var ZA={line:function(t,e,r,i){var n=HC([e,i[0]],[e,i[1]],KC(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r,i,n,o){var a=YC(t,n,o),s=i[1]-i[0],l=XC(e,r,a),u=l[0],f=l[1];return{type:"Rect",shape:GC([u,i[0]],[f-u,s],KC(t))}}};function KC(t){return t.dim==="x"?0:1}var ZC=KA;var $A=(function(t){Oe(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:qe.color.border,width:1,type:"dashed"},shadowStyle:{color:qe.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:qe.color.neutral00,padding:[5,7,5,7],backgroundColor:qe.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:qe.color.accent40,throttle:40}},e})(We),$C=$A;var Bi=ne(),QA=C;function Lc(t,e,r){if(!le.node){var i=e.getZr();Bi(i).records||(Bi(i).records={}),JA(i,e);var n=Bi(i).records[t]||(Bi(i).records[t]={});n.handler=r}}function JA(t,e){if(Bi(t).initialized)return;Bi(t).initialized=!0,r("click",et(qv,"click")),r("mousemove",et(qv,"mousemove")),r("mousewheel",et(qv,"mousewheel")),r("globalout",tN);function r(i,n){t.on(i,function(o){var a=rN(e);QA(Bi(t).records,function(s){s&&n(s,o,a.dispatchAction)}),eN(a.pendings,e)})}}function eN(t,e){var r=t.showTip.length,i=t.hideTip.length,n;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function tN(t,e,r){t.handler("leave",null,r)}function qv(t,e,r,i){e.handler(t,r,i)}function rN(t){var e={showTip:[],hideTip:[]},r=function(i){var n=e[i.type];n?n.push(i):(i.dispatchAction=r,t.dispatchAction(i))};return{dispatchAction:r,pendings:e}}function hl(t,e){if(!le.node){var r=e.getZr(),i=(Bi(r).records||{})[t];i&&(Bi(r).records[t]=null)}}var iN=(function(t){Oe(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n){var o=i.getComponent("tooltip"),a=r.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click|mousewheel";Lc("axisPointer",n,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,i){hl("axisPointer",i)},e.prototype.dispose=function(r,i){hl("axisPointer",i)},e.type="axisPointer",e})(pr),JC=iN;function vl(t,e){var r=[],i=t.seriesIndex,n;if(i==null||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=Ai(o,t);if(a==null||a<0||L(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,p=u.dim,d=c==="x"||c==="radius"?1:0,h=o.mapDimension(p),g=[];g[d]=o.get(h,a),g[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(o.getValues(K(l.dimensions,function(m){return o.mapDimension(m)}),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}var eT=ne();function jv(t,e,r){var i=t.currTrigger,n=[t.x,t.y],o=t,a=t.dispatchAction||Me(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Pc(n)&&(n=vl({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=Pc(n),u=o.axesInfo,f=s.axesInfo,c=i==="leave"||Pc(n),p={},d={},h={list:[],map:{}},g={showPointer:et(oN,d),showTooltip:et(aN,h)};C(s.coordSysMap,function(m,_){var y=l||m.containPoint(n);C(s.coordSysAxesInfo[_],function(x,S){var w=x.axis,b=fN(u,x);if(!c&&y&&(!u||b)){var E=b&&b.value;E==null&&!l&&(E=w.pointToData(n)),E!=null&&tT(x,E,g,!1,p)}})});var v={};return C(f,function(m,_){var y=m.linkGroup;y&&!d[_]&&C(y.axesInfo,function(x,S){var w=d[S];if(x!==m&&w){var b=w.value;y.mapper&&(b=m.axis.scale.parse(y.mapper(b,rT(x),rT(m)))),v[m.key]=b}})}),C(v,function(m,_){tT(f[_],m,g,!0,p)}),sN(d,f,p),lN(h,n,t,a),uN(f,a,r),p}}function tT(t,e,r,i,n){var o=t.axis;if(!(o.scale.isBlank()||!o.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var a=nN(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&n.seriesIndex==null&&N(n,s[0]),!i&&t.snap&&o.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,a,l)}}function nN(t,e){var r=e.axis,i=r.dim,n=t,o=[],a=Number.MAX_VALUE,s=-1;return C(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),c,p;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(f,t,r);p=d.dataIndices,c=d.nestestValue}else{if(p=l.indicesOfNearest(i,f[0],t,r.type==="category"?.5:null),!p.length)return;c=l.getData().get(f[0],p[0])}if(ar(c)){var h=t-c,g=Math.abs(h);g<=a&&((g<a||h>=0&&s<0)&&(a=g,s=h,n=c,o.length=0),C(p,function(v){o.push({seriesIndex:l.seriesIndex,dataIndexInside:v,dataIndex:l.getData().getRawIndex(v)})}))}}),{payloadBatch:o,snapToValue:n}}function oN(t,e,r,i){t[e.key]={value:r,payloadBatch:i}}function aN(t,e,r,i){var n=r.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=Ba(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function sN(t,e,r){var i=r.axesInfo=[];C(e,function(n,o){var a=n.axisPointerModel.option,s=t[o];s?(!n.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(a.status="hide"),a.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:a.value})})}function lN(t,e,r,i){if(Pc(e)||!t.list.length){i({type:"hideTip"});return}var n=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:t.list})}function uN(t,e,r){var i=r.getZr(),n="axisPointerLastHighlights",o=eT(i)[n]||{},a=eT(i)[n]={};C(t,function(f,c){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&C(p.seriesDataIndices,function(d){a[d.seriesIndex+"|"+d.dataIndex]=d})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}C(o,function(f,c){!a[c]&&l.push(u(f))}),C(a,function(f,c){!o[c]&&s.push(u(f))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function fN(t,e){for(var r=0;r<(t||[]).length;r++){var i=t[r];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function rT(t){var e=t.axis.model,r={},i=r.axisDim=t.axis.dim;return r.axisIndex=r[i+"AxisIndex"]=e.componentIndex,r.axisName=r[i+"AxisName"]=e.name,r.axisId=r[i+"AxisId"]=e.id,r}function Pc(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function iT(t){OC.registerAxisPointerClass("CartesianAxisPointer",ZC),t.registerComponentModel($C),t.registerComponentView(JC),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!L(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=bC(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},jv)}var za=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),cN=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new za(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var i=e.offsetX,n=e.offsetY,o=i-this._x,a=n-this._y;this._x=i,this._y=n,r.drift(o,a,e),this.handler.dispatchToElement(new za(r,e),"drag",e.event);var s=this.handler.findHover(i,n,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new za(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new za(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new za(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new za(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),nT=cN;var aT=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,i){return this._doTrack(e,r,i),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,i){var n=e.touches;if(n){for(var o={points:[],touches:[],target:r,event:e},a=0,s=n.length;a<s;a++){var l=n[a],u=Oc(i,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},t.prototype._recognize=function(e){for(var r in Kv)if(Kv.hasOwnProperty(r)){var i=Kv[r](this._track,e);if(i)return i}},t})();function oT(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function pN(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Kv={pinch:function(t,e){var r=t.length;if(r){var i=(t[r-1]||{}).points,n=(t[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var o=oT(i)/oT(n);!isFinite(o)&&(o=1),e.pinchScale=o;var a=pN(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};var lT="silent";function dN(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:hN}}function hN(){Rc(this.event)}var vN=(function(t){ae(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Bt),ml=(function(){function t(e,r){this.x=e,this.y=r}return t})(),mN=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Zv=new te(0,0,0,0),uT=(function(t){ae(e,t);function e(r,i,n,o,a){var s=t.call(this)||this;return s._hovered=new ml(0,0),s.storage=r,s.painter=i,s.painterRoot=o,s._pointerSize=a,n=n||new vN,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new nT(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(C(mN,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,o=fT(this,i,n),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=o?new ml(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new ml(0,0)},e.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},e.prototype.dispatchToElement=function(r,i,n){r=r||{};var o=r.target;if(!(o&&o.silent)){for(var a="on"+i,s=dN(i,r,n);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(i,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(r,i,n){var o=this.storage.getDisplayList(),a=new ml(r,i);if(sT(o,a,r,i,n),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,f=new te(r-u,i-u,l,l),c=o.length-1;c>=0;c--){var p=o[c];p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(Zv.copy(p.getBoundingRect()),p.transform&&Zv.applyTransform(p.transform),Zv.intersect(f)&&s.push(p))}if(s.length)for(var d=4,h=Math.PI/12,g=Math.PI*2,v=0;v<u;v+=d)for(var m=0;m<g;m+=h){var _=r+v*Math.cos(m),y=i+v*Math.sin(m);if(sT(s,a,_,y,n),a.target)return a}}return a},e.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new aT);var n=this._gestureMgr;i==="start"&&n.clear();var o=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),o){var a=o.type;r.gestureEvent=a;var s=new ml;s.target=o.target,this.dispatchToElement(s,a,o.event)}},e})(Bt);C(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){uT.prototype[t]=function(e){var r=e.zrX,i=e.zrY,n=fT(this,r,i),o,a;if((t!=="mouseup"||!n)&&(o=this.findHover(r,i),a=o.target),t==="mousedown")this._downEl=a,this._downPoint=[e.zrX,e.zrY],this._upEl=a;else if(t==="mouseup")this._upEl=a;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||hs(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,t,e)}});function gN(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var i=t,n=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?lT:!0}return!1}function sT(t,e,r,i,n){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==n&&!a.ignore&&(s=gN(a,r,i))&&(!e.topTarget&&(e.topTarget=a),s!==lT)){e.target=a;break}}}function fT(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}var cT=uT;var hT=32,gl=7;function _N(t){for(var e=0;t>=hT;)e|=t&1,t>>=1;return t+e}function pT(t,e,r,i){var n=e+1;if(n===r)return 1;if(i(t[n++],t[e])<0){for(;n<r&&i(t[n],t[n-1])<0;)n++;yN(t,e,n)}else for(;n<r&&i(t[n],t[n-1])>=0;)n++;return n-e}function yN(t,e,r){for(r--;e<r;){var i=t[e];t[e++]=t[r],t[r--]=i}}function dT(t,e,r,i,n){for(i===e&&i++;i<r;i++){for(var o=t[i],a=e,s=i,l;a<s;)l=a+s>>>1,n(o,t[l])<0?s=l:a=l+1;var u=i-a;switch(u){case 3:t[a+3]=t[a+2];case 2:t[a+2]=t[a+1];case 1:t[a+1]=t[a];break;default:for(;u>0;)t[a+u]=t[a+u-1],u--}t[a]=o}}function $v(t,e,r,i,n,o){var a=0,s=0,l=1;if(o(t,e[r+n])>0){for(s=i-n;l<s&&o(t,e[r+n+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=n,l+=n}else{for(s=n+1;l<s&&o(t,e[r+n-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=n-l,l=n-u}for(a++;a<l;){var f=a+(l-a>>>1);o(t,e[r+f])>0?a=f+1:l=f}return l}function Qv(t,e,r,i,n,o){var a=0,s=0,l=1;if(o(t,e[r+n])<0){for(s=n+1;l<s&&o(t,e[r+n-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=n-l,l=n-u}else{for(s=i-n;l<s&&o(t,e[r+n+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=n,l+=n}for(a++;a<l;){var f=a+(l-a>>>1);o(t,e[r+f])<0?l=f:a=f+1}return l}function xN(t,e){var r=gl,i,n,o=0,a=[];i=[],n=[];function s(d,h){i[o]=d,n[o]=h,o+=1}function l(){for(;o>1;){var d=o-2;if(d>=1&&n[d-1]<=n[d]+n[d+1]||d>=2&&n[d-2]<=n[d]+n[d-1])n[d-1]<n[d+1]&&d--;else if(n[d]>n[d+1])break;f(d)}}function u(){for(;o>1;){var d=o-2;d>0&&n[d-1]<n[d+1]&&d--,f(d)}}function f(d){var h=i[d],g=n[d],v=i[d+1],m=n[d+1];n[d]=g+m,d===o-3&&(i[d+1]=i[d+2],n[d+1]=n[d+2]),o--;var _=Qv(t[v],t,h,g,0,e);h+=_,g-=_,g!==0&&(m=$v(t[h+g-1],t,v,m,m-1,e),m!==0&&(g<=m?c(h,g,v,m):p(h,g,v,m)))}function c(d,h,g,v){var m=0;for(m=0;m<h;m++)a[m]=t[d+m];var _=0,y=g,x=d;if(t[x++]=t[y++],--v===0){for(m=0;m<h;m++)t[x+m]=a[_+m];return}if(h===1){for(m=0;m<v;m++)t[x+m]=t[y+m];t[x+v]=a[_];return}for(var S=r,w,b,E;;){w=0,b=0,E=!1;do if(e(t[y],a[_])<0){if(t[x++]=t[y++],b++,w=0,--v===0){E=!0;break}}else if(t[x++]=a[_++],w++,b=0,--h===1){E=!0;break}while((w|b)<S);if(E)break;do{if(w=Qv(t[y],a,_,h,0,e),w!==0){for(m=0;m<w;m++)t[x+m]=a[_+m];if(x+=w,_+=w,h-=w,h<=1){E=!0;break}}if(t[x++]=t[y++],--v===0){E=!0;break}if(b=$v(a[_],t,y,v,0,e),b!==0){for(m=0;m<b;m++)t[x+m]=t[y+m];if(x+=b,y+=b,v-=b,v===0){E=!0;break}}if(t[x++]=a[_++],--h===1){E=!0;break}S--}while(w>=gl||b>=gl);if(E)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),h===1){for(m=0;m<v;m++)t[x+m]=t[y+m];t[x+v]=a[_]}else{if(h===0)throw new Error;for(m=0;m<h;m++)t[x+m]=a[_+m]}}function p(d,h,g,v){var m=0;for(m=0;m<v;m++)a[m]=t[g+m];var _=d+h-1,y=v-1,x=g+v-1,S=0,w=0;if(t[x--]=t[_--],--h===0){for(S=x-(v-1),m=0;m<v;m++)t[S+m]=a[m];return}if(v===1){for(x-=h,_-=h,w=x+1,S=_+1,m=h-1;m>=0;m--)t[w+m]=t[S+m];t[x]=a[y];return}for(var b=r;;){var E=0,T=0,D=!1;do if(e(a[y],t[_])<0){if(t[x--]=t[_--],E++,T=0,--h===0){D=!0;break}}else if(t[x--]=a[y--],T++,E=0,--v===1){D=!0;break}while((E|T)<b);if(D)break;do{if(E=h-Qv(a[y],t,d,h,h-1,e),E!==0){for(x-=E,_-=E,h-=E,w=x+1,S=_+1,m=E-1;m>=0;m--)t[w+m]=t[S+m];if(h===0){D=!0;break}}if(t[x--]=a[y--],--v===1){D=!0;break}if(T=v-$v(t[_],a,0,v,v-1,e),T!==0){for(x-=T,y-=T,v-=T,w=x+1,S=y+1,m=0;m<T;m++)t[w+m]=a[S+m];if(v<=1){D=!0;break}}if(t[x--]=t[_--],--h===0){D=!0;break}b--}while(E>=gl||T>=gl);if(D)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),v===1){for(x-=h,_-=h,w=x+1,S=_+1,m=h-1;m>=0;m--)t[w+m]=t[S+m];t[x]=a[y]}else{if(v===0)throw new Error;for(S=x-(v-1),m=0;m<v;m++)t[S+m]=a[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function _o(t,e,r,i){r||(r=0),i||(i=t.length);var n=i-r;if(!(n<2)){var o=0;if(n<hT){o=pT(t,r,i,e),dT(t,r,i,r+o,e);return}var a=xN(t,e),s=_N(n);do{if(o=pT(t,r,i,e),o<s){var l=n;l>s&&(l=s),dT(t,r,r+l,r+o,e),o=l}a.pushRun(r,o),a.mergeRuns(),n-=o,r+=o}while(n!==0);a.forceMergeRuns()}}var vT=!1;function Jv(){vT||(vT=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function mT(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var SN=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=mT}return t.prototype.traverse=function(e,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(r),i},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,o=r.length;n<o;n++)this._updateAndAddDisplayable(r[n],null,e);i.length=this._displayListLen,_o(i,mT)},t.prototype._updateAndAddDisplayable=function(e,r,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),o=r&&r.length,a=0,s=e.__clipPaths;if(!e.ignoreClip&&(o||n)){if(s||(s=e.__clipPaths=[]),o)for(var l=0;l<r.length;l++)s[a++]=r[l];for(var u=n,f=e;u;)u.parent=f,u.updateTransform(),s[a++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=a),e.childrenRef){for(var c=e.childrenRef(),p=0;p<c.length;p++){var d=c[p];e.__dirty&&(d.__dirty|=ut),this._updateAndAddDisplayable(d,s,i)}e.__dirty=0}else{var h=e;isNaN(h.z)&&(Jv(),h.z=0),isNaN(h.z2)&&(Jv(),h.z2=0),isNaN(h.zlevel)&&(Jv(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var g=e.getDecalElement&&e.getDecalElement();g&&this._updateAndAddDisplayable(g,s,i);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,s,i);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,s,i)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,i=e.length;r<i;r++)this.delRoot(e[r]);return}var n=pe(this._roots,e);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),gT=SN;var _T;_T=le.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var _l=_T;function yo(){return new Date().getTime()}var wN=(function(t){ae(e,t);function e(r){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},e.prototype.update=function(r){for(var i=yo()-this._pausedTime,n=i-this._time,o=this._head;o;){var a=o.next,s=o.step(i,n);s&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(_l(i),!r._paused&&r.update())}_l(i)},e.prototype.start=function(){this._running||(this._time=yo(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=yo(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=yo()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,i){i=i||{},this.start();var n=new xs(r,i.loop);return this.addAnimator(n),n},e})(Bt),yT=wN;var CN=300,em=le.domSupported,tm=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=K(t,function(n){var o=n.replace("mouse","pointer");return r.hasOwnProperty(o)?o:n});return{mouse:t,touch:e,pointer:i}})(),xT={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ST=!1;function nm(t){var e=t.pointerType;return e==="pen"||e==="touch"}function TN(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function rm(t){t&&(t.zrByTouch=!0)}function bN(t,e){return lr(t.dom,new EN(t,e),!0)}function CT(t,e){for(var r=e,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return i}var EN=(function(){function t(e,r){this.stopPropagation=Ke,this.stopImmediatePropagation=Ke,this.preventDefault=Ke,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),qr={mousedown:function(t){t=lr(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=lr(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=lr(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=lr(this.dom,t);var e=t.toElement||t.relatedTarget;CT(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){ST=!0,t=lr(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){ST||(t=lr(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=lr(this.dom,t),rm(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),qr.mousemove.call(this,t),qr.mousedown.call(this,t)},touchmove:function(t){t=lr(this.dom,t),rm(t),this.handler.processGesture(t,"change"),qr.mousemove.call(this,t)},touchend:function(t){t=lr(this.dom,t),rm(t),this.handler.processGesture(t,"end"),qr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<CN&&qr.click.call(this,t)},pointerdown:function(t){qr.mousedown.call(this,t)},pointermove:function(t){nm(t)||qr.mousemove.call(this,t)},pointerup:function(t){qr.mouseup.call(this,t)},pointerout:function(t){nm(t)||qr.mouseout.call(this,t)}};C(["click","dblclick","contextmenu"],function(t){qr[t]=function(e){e=lr(this.dom,e),this.trigger(t,e)}});var om={pointermove:function(t){nm(t)||om.mousemove.call(this,t)},pointerup:function(t){om.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function DN(t,e){var r=e.domHandlers;le.pointerEventsSupported?C(tm.pointer,function(i){kc(e,i,function(n){r[i].call(t,n)})}):(le.touchEventsSupported&&C(tm.touch,function(i){kc(e,i,function(n){r[i].call(t,n),TN(e)})}),C(tm.mouse,function(i){kc(e,i,function(n){n=Ic(n),e.touching||r[i].call(t,n)})}))}function MN(t,e){le.pointerEventsSupported?C(xT.pointer,r):le.touchEventsSupported||C(xT.mouse,r);function r(i){function n(o){o=Ic(o),CT(t,o.target)||(o=bN(t,o),e.domHandlers[i].call(t,o))}kc(e,i,n,{capture:!0})}}function kc(t,e,r,i){t.mounted[e]=r,t.listenerOpts[e]=i,RC(t.domTarget,e,r,i)}function im(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&AC(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var wT=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),ON=(function(t){ae(e,t);function e(r,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new wT(r,qr),em&&(n._globalHandlerScope=new wT(document,om)),DN(n,n._localHandlerScope),n}return e.prototype.dispose=function(){im(this._localHandlerScope),em&&im(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,em&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?MN(this,i):im(i)}},e})(Bt),TT=ON;var Fc={},bT={};function IN(t){delete bT[t]}function RN(t){if(!t)return!1;if(typeof t=="string")return ta(t,1)<Ts;if(t.colorStops){for(var e=t.colorStops,r=0,i=e.length,n=0;n<i;n++)r+=ta(e[n].color,1);return r/=i,r<Ts}return!1}var AN=(function(){function t(e,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=r,this.id=e;var o=new gT,a=i.renderer||"canvas";Fc[a]||(a=xe(Fc)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Fc[a](r,o,i,e),l=i.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=!le.node&&!le.worker&&!l?new TT(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f==="auto"?le.touchEventsSupported:!!f,p=44,d;c&&(d=Q(i.pointerSize,p)),this.handler=new cT(o,s,u,s.root,d),this.animation=new yT({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=RN(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,i=yo(),n=this._needsRefresh,o=this._needsRefreshHover;(n||o)&&(r=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:o}));var a=yo();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,i){return this._disposed||this.handler.on(e,r,i),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof It&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,IN(this.id))},t})();function am(t,e){var r=new AN(yu(),t,e);return bT[r.id]=r,r}function ET(t,e){Fc[t]=e}var NN;function DT(t){NN=t}var MT="";typeof navigator<"u"&&(MT=navigator.platform||"");var Ua="rgba(0, 0, 0, 0.2)",OT=qe.color.theme[0],PN=ms(OT,null,null,.9),Bc={darkMode:"auto",colorBy:"series",color:qe.color.theme,gradientColor:[PN,OT],aria:{decal:{decals:[{color:Ua,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ua,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ua,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ua,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ua,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ua,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:MT.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var kN=Z();function IT(t,e,r){var i=kN.get(e);if(!i)return r;var n=i(t);if(!n)return r;if(0)for(var o;o<n.length;o++);return r.concat(n)}var RT=ne(),FN=ne(),yl=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,i){var n=Xe(this.get("color",!0)),o=this.get("colorLayer",!0);return AT(this,RT,n,o,e,r,i)},t.prototype.clearColorPalette=function(){zN(this,RT)},t})();function sm(t,e,r,i){var n=Xe(t.get(["aria","decal","decals"]));return AT(t,FN,n,null,e,r,i)}function BN(t,e){for(var r=t.length,i=0;i<r;i++)if(t[i].length>e)return t[i];return t[r-1]}function AT(t,e,r,i,n,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=a==null||!i?r:BN(i,a);if(f=f||r,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function zN(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var zc,xl,NT,LT="\0_ec_inner",UN=1;var BT=(function(t){Oe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,i,n,o,a,s){o=o||{},this.option=null,this._theme=new Ve(o),this._locale=new Ve(a),this._optionManager=s},e.prototype.setOption=function(r,i,n){var o=FT(i);this._optionManager.setOption(r,n,o),this._resetOption(null,o)},e.prototype.resetOption=function(r,i){return this._resetOption(r,FT(i))},e.prototype._resetOption=function(r,i){var n=!1,o=this._optionManager;if(!r||r==="recreate"){var a=o.mountOption(r==="recreate");!this.option||r==="recreate"?NT(this,a):(this.restoreData(),this._mergeOption(a,i)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=o.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!r||r==="recreate"||r==="media"){var l=o.getMediaOption(this);l.length&&C(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,i){var n=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=Z(),u=i&&i.replaceMergeMainTypeMap;Pw(this),C(r,function(c,p){c!=null&&(We.hasClass(p)?p&&(s.push(p),l.set(p,!0)):n[p]=n[p]==null?ie(c):Le(n[p],c,!0))}),u&&u.each(function(c,p){We.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),We.topologicalTravel(s,We.getAllClassMainTypes(),f,this);function f(c){var p=IT(this,c,Xe(r[c])),d=o.get(c),h=d?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",g=Sx(d,p,h);Tx(g,c,We),n[c]=null,o.set(c,null),a.set(c,0);var v=[],m=[],_=0,y,x;C(g,function(S,w){var b=S.existing,E=S.newOption;if(!E)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var T=c==="series",D=We.getClass(c,S.keyInfo.subType,!T);if(!D){if(0)var O,R;return}if(c==="tooltip"){if(y)return;y=!0}if(b&&b.constructor===D)b.name=S.keyInfo.name,b.mergeOption(E,this),b.optionUpdated(E,!1);else{var M=N({componentIndex:w},S.keyInfo);b=new D(E,this,this,M),N(b,M),S.brandNew&&(b.__requireNewView=!0),b.init(E,this,this),b.optionUpdated(null,!0)}}b?(v.push(b.option),m.push(b),_++):(v.push(void 0),m.push(void 0))},this),n[c]=v,o.set(c,m),a.set(c,_),c==="series"&&zc(this)}this._seriesIndices||zc(this)},e.prototype.getOption=function(){var r=ie(this.option);return C(r,function(i,n){if(We.hasClass(n)){for(var o=Xe(i),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!ua(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,r[n]=o}}),delete r[LT],r},e.prototype.setTheme=function(r){this._theme=new Ve(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,i){var n=this._componentsMap.get(r);if(n){var o=n[i||0];if(o)return o;if(i==null){for(var a=0;a<n.length;a++)if(n[a])return n[a]}}},e.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var n=r.index,o=r.id,a=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],C(Xe(n),function(u){s[u]&&l.push(s[u])})):o!=null?l=PT("id",o,s):a!=null?l=PT("name",a,s):l=Ge(s,function(u){return!!u}),kT(l,r)},e.prototype.findComponents=function(r){var i=r.query,n=r.mainType,o=s(i),a=o?this.queryComponents(o):Ge(this._componentsMap.get(n),function(u){return!!u});return l(kT(a,r));function s(u){var f=n+"Index",c=n+"Id",p=n+"Name";return u&&(u[f]!=null||u[c]!=null||u[p]!=null)?{mainType:n,index:u[f],id:u[c],name:u[p]}:null}function l(u){return r.filter?Ge(u,r.filter):u}},e.prototype.eachComponent=function(r,i,n){var o=this._componentsMap;if($(r)){var a=i,s=r;o.each(function(c,p){for(var d=0;c&&d<c.length;d++){var h=c[d];h&&s.call(a,p,h,h.componentIndex)}})}else for(var l=k(r)?o.get(r):B(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var i=mr(r,null);return Ge(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Ge(this._componentsMap.get("series"),function(i){return!!i&&i.subType===r})},e.prototype.getSeries=function(){return Ge(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,i){xl(this),C(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];r.call(i,o,n)},this)},e.prototype.eachRawSeries=function(r,i){C(this._componentsMap.get("series"),function(n){n&&r.call(i,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(r,i,n){xl(this),C(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===r&&i.call(n,a,o)},this)},e.prototype.eachRawSeriesByType=function(r,i,n){return C(this.getSeriesByType(r),i,n)},e.prototype.isSeriesFiltered=function(r){return xl(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,i){xl(this);var n=[];C(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];r.call(i,a,o)&&n.push(o)},this),this._seriesIndices=n,this._seriesIndicesMap=Z(n)},e.prototype.restoreData=function(r){zc(this);var i=this._componentsMap,n=[];i.each(function(o,a){We.hasClass(a)&&n.push(a)}),We.topologicalTravel(n,We.getAllClassMainTypes(),function(o){C(i.get(o),function(a){a&&(o!=="series"||!VN(a,r))&&a.restoreData()})})},e.internalField=(function(){zc=function(r){var i=r._seriesIndices=[];C(r._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=Z(i)},xl=function(r){},NT=function(r,i){r.option={},r.option[LT]=UN,r._componentsMap=Z({series:[]}),r._componentsCount=Z();var n=i.aria;B(n)&&n.enabled==null&&(n.enabled=!0),WN(i,r._theme.option),Le(i,Bc,!1),r._mergeOption(i,null)}})(),e})(Ve);function VN(t,e){if(e){var r=e.seriesIndex,i=e.seriesId,n=e.seriesName;return r!=null&&t.componentIndex!==r||i!=null&&t.id!==i||n!=null&&t.name!==n}}function WN(t,e){var r=t.color&&!t.colorLayer;C(e,function(i,n){n==="colorLayer"&&r||n==="color"&&t.color||We.hasClass(n)||(typeof i=="object"?t[n]=t[n]?Le(t[n],i,!1):ie(i):t[n]==null&&(t[n]=i))})}function PT(t,e,r){if(L(e)){var i=Z();return C(e,function(o){if(o!=null){var a=mr(o,null);a!=null&&i.set(o,!0)}}),Ge(r,function(o){return o&&i.get(o[t])})}else{var n=mr(e,null);return Ge(r,function(o){return o&&n!=null&&o[t]===n})}}function kT(t,e){return e.hasOwnProperty("subType")?Ge(t,function(r){return r&&r.subType===e.subType}):t}function FT(t){var e=Z();return t&&C(Xe(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Xt(BT,yl);var Uc=BT;var HN=/^(min|max)?(.+)$/,GN=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,i){e&&(C(Xe(e.series),function(a){a&&a.data&&tt(a.data)&&In(a.data)}),C(Xe(e.dataset),function(a){a&&a.source&&tt(a.source)&&In(a.source)})),e=ie(e);var n=this._optionBackup,o=YN(e,r,!n);this._newBaseOption=o.baseOption,n?(o.timelineOptions.length&&(n.timelineOptions=o.timelineOptions),o.mediaList.length&&(n.mediaList=o.mediaList),o.mediaDefault&&(n.mediaDefault=o.mediaDefault)):this._optionBackup=o},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],ie(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");n&&(r=ie(i[n.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!n.length&&!o)return s;for(var l=0,u=n.length;l<u;l++)XN(n[l].query,r,i)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!jN(a,this._currentMediaIndices)&&(s=K(a,function(f){return ie(f===-1?o.option:n[f].option)})),this._currentMediaIndices=a,s},t})();function YN(t,e,r){var i=[],n,o,a=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||a&&a.timeline);a?(o=a,o.timeline||(o.timeline=s)):((c||f)&&(t.options=t.media=null),o=t),f&&L(u)&&C(u,function(d){d&&d.option&&(d.query?i.push(d):n||(n=d))}),p(o),C(l,function(d){return p(d)}),C(i,function(d){return p(d.option)});function p(d){C(e,function(h){h(d,r)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function XN(t,e,r){var i={width:e,height:r,aspectratio:e/r},n=!0;return C(t,function(o,a){var s=a.match(HN);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();qN(i[u],o,l)||(n=!1)}}),n}function qN(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function jN(t,e){return t.join(",")===e.join(",")}var zT=GN;var jr=C,wl=B,UT=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function lm(t){var e=t&&t.itemStyle;if(e)for(var r=0,i=UT.length;r<i;r++){var n=UT[r],o=e.normal,a=e.emphasis;o&&o[n]&&(t[n]=t[n]||{},t[n].normal?Le(t[n].normal,o[n]):t[n].normal=o[n],o[n]=null),a&&a[n]&&(t[n]=t[n]||{},t[n].emphasis?Le(t[n].emphasis,a[n]):t[n].emphasis=a[n],a[n]=null)}}function Ht(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,n=t[e].emphasis;i&&(r?(t[e].normal=t[e].emphasis=null,ye(t[e],i)):t[e]=i),n&&(t.emphasis=t.emphasis||{},t.emphasis[e]=n,n.focus&&(t.emphasis.focus=n.focus),n.blurScope&&(t.emphasis.blurScope=n.blurScope))}}function Sl(t){Ht(t,"itemStyle"),Ht(t,"lineStyle"),Ht(t,"areaStyle"),Ht(t,"label"),Ht(t,"labelLine"),Ht(t,"upperLabel"),Ht(t,"edgeLabel")}function ct(t,e){var r=wl(t)&&t[e],i=wl(r)&&r.textStyle;if(i)for(var n=0,o=th.length;n<o;n++){var a=th[n];i.hasOwnProperty(a)&&(r[a]=i[a])}}function kr(t){t&&(Sl(t),ct(t,"label"),t.emphasis&&ct(t.emphasis,"label"))}function KN(t){if(wl(t)){lm(t),Sl(t),ct(t,"label"),ct(t,"upperLabel"),ct(t,"edgeLabel"),t.emphasis&&(ct(t.emphasis,"label"),ct(t.emphasis,"upperLabel"),ct(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(lm(e),kr(e));var r=t.markLine;r&&(lm(r),kr(r));var i=t.markArea;i&&kr(i);var n=t.data;if(t.type==="graph"){n=n||t.nodes;var o=t.links||t.edges;if(o&&!tt(o))for(var a=0;a<o.length;a++)kr(o[a]);C(t.categories,function(u){Sl(u)})}if(n&&!tt(n))for(var a=0;a<n.length;a++)kr(n[a]);if(e=t.markPoint,e&&e.data)for(var s=e.data,a=0;a<s.length;a++)kr(s[a]);if(r=t.markLine,r&&r.data)for(var l=r.data,a=0;a<l.length;a++)L(l[a])?(kr(l[a][0]),kr(l[a][1])):kr(l[a]);t.type==="gauge"?(ct(t,"axisLabel"),ct(t,"title"),ct(t,"detail")):t.type==="treemap"?(Ht(t.breadcrumb,"itemStyle"),C(t.levels,function(u){Sl(u)})):t.type==="tree"&&Sl(t.leaves)}}function zi(t){return L(t)?t:t?[t]:[]}function VT(t){return(L(t)?t[0]:t)||{}}function um(t,e){jr(zi(t.series),function(i){wl(i)&&KN(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),jr(r,function(i){jr(zi(t[i]),function(n){n&&(ct(n,"axisLabel"),ct(n.axisPointer,"label"))})}),jr(zi(t.parallel),function(i){var n=i&&i.parallelAxisDefault;ct(n,"axisLabel"),ct(n&&n.axisPointer,"label")}),jr(zi(t.calendar),function(i){Ht(i,"itemStyle"),ct(i,"dayLabel"),ct(i,"monthLabel"),ct(i,"yearLabel")}),jr(zi(t.radar),function(i){ct(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),jr(zi(t.geo),function(i){wl(i)&&(kr(i),jr(zi(i.regions),function(n){kr(n)}))}),jr(zi(t.timeline),function(i){kr(i),Ht(i,"label"),Ht(i,"itemStyle"),Ht(i,"controlStyle",!0);var n=i.data;L(n)&&C(n,function(o){B(o)&&(Ht(o,"label"),Ht(o,"itemStyle"))})}),jr(zi(t.toolbox),function(i){Ht(i,"iconStyle"),jr(i.feature,function(n){Ht(n,"iconStyle")})}),ct(VT(t.axisPointer),"label"),ct(VT(t.tooltip).axisPointer,"label")}function ZN(t,e){for(var r=e.split(","),i=t,n=0;n<r.length&&(i=i&&i[r[n]],i!=null);n++);return i}function $N(t,e,r,i){for(var n=e.split(","),o=t,a,s=0;s<n.length-1;s++)a=n[s],o[a]==null&&(o[a]={}),o=o[a];(i||o[n[s]]==null)&&(o[n[s]]=r)}function WT(t){t&&C(QN,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var QN=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],JN=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],fm=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Cl(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<fm.length;r++){var i=fm[r][1],n=fm[r][0];e[i]!=null&&(e[n]=e[i])}}function HT(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function GT(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function eL(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function YT(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&YT(t[r].children,e)}function Vc(t,e){um(t,e),t.series=Xe(t.series),C(t.series,function(r){if(B(r)){var i=r.type;if(i==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i==="pie"||i==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),HT(r.label);var n=r.data;if(n&&!tt(n))for(var o=0;o<n.length;o++)HT(n[o]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i==="gauge"){var a=ZN(r,"pointer.color");a!=null&&$N(r,"itemStyle.color",a)}else if(i==="bar"){Cl(r),Cl(r.backgroundStyle),Cl(r.emphasis);var n=r.data;if(n&&!tt(n))for(var o=0;o<n.length;o++)typeof n[o]=="object"&&(Cl(n[o]),Cl(n[o]&&n[o].emphasis))}else if(i==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),GT(r),YT(r.data,GT)}else i==="graph"||i==="sankey"?eL(r):i==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&ye(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),WT(r)}}),t.dataRange&&(t.visualMap=t.dataRange),C(JN,function(r){var i=t[r];i&&(L(i)||(i=[i]),C(i,function(n){WT(n)}))})}var XT=fa(tL);function tL(t){var e=Z();t.eachSeries(function(r){var i=r.get("stack");if(i){var n=e.get(i)||e.set(i,[]),o=r.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:r};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;n.push(a)}}),e.each(function(r){if(r.length!==0){var i=r[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&r.reverse(),C(r,function(o,a){o.data.setCalculationInfo("stackedOnSeries",a>0?r[a-1].seriesModel:null)}),rL(r)}})}function rL(t){C(t,function(e,r){var i=[],n=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(u,f,c){var p=a.get(e.stackedDimension,c);if(isNaN(p))return n;var d,h;s?h=a.getRawIndex(c):d=a.get(e.stackedByDimension,c);for(var g=NaN,v=r-1;v>=0;v--){var m=t[v];if(s||(h=m.data.rawIndexOf(m.stackedByDimension,d)),h>=0){var _=m.data.getByRawIndex(m.stackResultDimension,h);if(l==="all"||l==="positive"&&_>0||l==="negative"&&_<0||l==="samesign"&&p>=0&&_>0||l==="samesign"&&p<=0&&_<0){p=px(p,_),g=_;break}}}return i[0]=p,i[1]=g,i})})}var xo,So,wo,Co,qT,jT,Hc=(function(){function t(e,r){var i=Na(e)?e:La(e);this._source=i;var n=this._data=i.data,o=i.sourceFormat,a=i.seriesLayoutBy;if(o===yr&&(this._offset=0,this._dimSize=r,this._data=n),0)var s;jT(this,n,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;jT=function(a,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,p=l.dimensionsDefine,d=qT[vm(u,f)];if(N(a,d),u===yr)a.getItem=r,a.count=n,a.fillStorage=i;else{var h=pm(u,f);a.getItem=Me(h,null,s,c,p);var g=dm(u,f);a.count=Me(g,null,s,c,p)}};var r=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*a,c=0;c<u;c++)s[c]=l[f+c];return s},i=function(a,s,l,u){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var d=u[p],h=d[0]==null?1/0:d[0],g=d[1]==null?-1/0:d[1],v=s-a,m=l[p],_=0;_<v;_++){var y=f[_*c+p];m[a+_]=y,y<h&&(h=y),y>g&&(g=y)}d[0]=h,d[1]=g}},n=function(){return this._data?this._data.length/this._dimSize:0};qT=(e={},e[yt+"_"+Qt]={pure:!0,appendData:o},e[yt+"_"+di]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[$t]={pure:!0,appendData:o},e[_r]={pure:!0,appendData:function(a){var s=this._data;C(a,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[Tt]={appendData:o},e[yr]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},e);function o(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}})(),t})();var Wc=function(t){L(t)||Ed("series.data or dataset.source must be an array.")},Nq=(xo={},xo[yt+"_"+Qt]=Wc,xo[yt+"_"+di]=Wc,xo[$t]=Wc,xo[_r]=function(t,e){for(var r=0;r<e.length;r++){var i=e[r].name;i==null&&Ed("dimension name must not be null/undefined.")}},xo[Tt]=Wc,xo),KT=function(t,e,r,i){return t[i]},iL=(So={},So[yt+"_"+Qt]=function(t,e,r,i){return t[i+e]},So[yt+"_"+di]=function(t,e,r,i,n){i+=e;for(var o=n||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},So[$t]=KT,So[_r]=function(t,e,r,i,n){for(var o=n||[],a=0;a<r.length;a++){var s=r[a].name,l=s!=null?t[s]:null;o[a]=l?l[i]:null}return o},So[Tt]=KT,So);function pm(t,e){var r=iL[vm(t,e)];return r}var ZT=function(t,e,r){return t.length},nL=(wo={},wo[yt+"_"+Qt]=function(t,e,r){return Math.max(0,t.length-e)},wo[yt+"_"+di]=function(t,e,r){var i=t[0];return i?Math.max(0,i.length-e):0},wo[$t]=ZT,wo[_r]=function(t,e,r){var i=r[0].name,n=i!=null?t[i]:null;return n?n.length:0},wo[Tt]=ZT,wo);function dm(t,e){var r=nL[vm(t,e)];return r}var cm=function(t,e,r){return t[e]},oL=(Co={},Co[yt]=cm,Co[$t]=function(t,e,r){return t[r]},Co[_r]=cm,Co[Tt]=function(t,e,r){var i=Ri(t);return i instanceof Array?i[e]:i},Co[yr]=cm,Co);function hm(t){var e=oL[t];return e}function vm(t,e){return t===yt?t+"_"+e:t}function Va(t,e,r){if(t){var i=t.getRawDataItem(e);if(i!=null){var n=t.getStore(),o=n.getSource().sourceFormat;if(r!=null){var a=t.getDimensionIndex(r),s=n.getDimensionProperty(a);return hm(o)(i,a,s)}else{var l=i;return o===Tt&&(l=Ri(i)),l}}}}var aL=/\{@(.+?)\}/g,$T=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var i=this.getData(r),n=this.getRawValue(e,r),o=i.getRawIndex(e),a=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,p=c==="series",d=i.userOutput&&i.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:a,dataIndex:o,data:s,dataType:r,value:n,color:u,borderColor:f,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,i,n,o,a){r=r||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(a&&(l.value=a.interpolatedValue),n!=null&&L(l.value)&&(l.value=l.value[n]),!o){var u=s.getItemModel(e);o=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if($(o))return l.status=r,l.dimensionIndex=n,o(l);if(k(o)){var f=wa(o,l);return f.replace(aL,function(c,p){var d=p.length,h=p;h.charAt(0)==="["&&h.charAt(d-1)==="]"&&(h=+h.slice(1,d-1));var g=Va(s,e,h);if(a&&L(a.interpolatedValue)){var v=s.getDimensionIndex(h);v>=0&&(g=a.interpolatedValue[v])}return g!=null?g+"":""})}},t.prototype.getRawValue=function(e,r){return Va(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,i){},t})();function mm(t){var e,r;return B(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function yn(t){return new sL(t)}var sL=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,i=e&&e.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!i&&(o=this._plan(this.context));var a=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(a!==l||s!==u)&&(o="reset");function f(_){return!(_>=1)&&(_=1),_}var c;(this._dirty||o==="reset")&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,h=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(c||d<h)){var g=this._progress;if(L(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],d,h,l,u);else this._doProgress(g,d,h,l,u)}this._dueIndex=h;var m=this._settedOutputEnd!=null?this._settedOutputEnd:h;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,i,n,o){QT.reset(r,i,n,o),this._callingProgress=e,this._callingProgress({start:r,end:i,count:i-r,next:QT.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),L(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})();var QT=(function(){var t,e,r,i,n,o={reset:function(l,u,f,c){e=l,t=u,r=f,i=c,n=Math.ceil(i/r),o.next=r>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var l=e%n*r+Math.ceil(e/n),u=e>=t?null:l<i?l:e;return e++,u}})();function Wa(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!be(t)&&t!=null&&t!=="-"&&(t=+vr(t)),t==null||t===""?NaN:Number(t))}var Gq=Z({number:function(t){return parseFloat(t)},time:function(t){return+vr(t)},trim:function(t){return k(t)?Ft(t):t}});var lL={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},Yq=(function(){function t(e,r){if(!be(r)){var i="";Rt(i)}this._opFn=lL[e],this._rvalFloat=Lr(r)}return t.prototype.evaluate=function(e){return be(e)?this._opFn(e,this._rvalFloat):this._opFn(Lr(e),this._rvalFloat)},t})(),JT=(function(){function t(e,r){var i=e==="desc";this._resultLT=i?1:-1,r==null&&(r=i?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var i=be(e)?e:Lr(e),n=be(r)?r:Lr(r),o=isNaN(i),a=isNaN(n);if(o&&(i=this._incomparable),a&&(n=this._incomparable),o&&a){var s=k(e),l=k(r);s&&(i=l?e:0),l&&(n=s?r:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},t})();var Xq=(function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=Lr(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(r=Lr(e)===this._rvalFloat)}return this._isEQ?r:!r},t})();function eb(t){var e="",r=-1/0,i=-1/0,n=1/0,o=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,i=t.ge),t.l!=null&&(e+="L"+t.l,n=t.l),t.le!=null&&(e+="LE"+t.le,o=t.le)),{key:e,g:r,ge:i,l:n,le:o}}function tb(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var uL=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Wa(e,r)},t})();function fL(t,e){var r=new uL,i=t.data,n=r.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==Qt&&Rt(a);var s=[],l={},u=t.dimensionsDefine;if(u)C(u,function(g,v){var m=g.name,_={index:v,name:m,displayName:g.displayName};if(s.push(_),m!=null){var y="";gt(l,m)&&Rt(y),l[m]=_}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=pm(n,Qt);e.__isBuiltIn&&(r.getRawDataItem=function(g){return c(i,o,s,g)},r.getRawData=Me(cL,null,t)),r.cloneRawData=Me(pL,null,t);var p=dm(n,Qt);r.count=Me(p,null,i,o,s);var d=hm(n);r.retrieveValue=function(g,v){var m=c(i,o,s,g);return h(m,v)};var h=r.retrieveValueFromItem=function(g,v){if(g!=null){var m=s[v];if(m)return d(g,v,m.name)}};return r.getDimensionInfo=Me(dL,null,s,l),r.cloneAllDimensionInfo=Me(hL,null,s),r}function cL(t){var e=t.sourceFormat;if(!gm(e)){var r="";Rt(r)}return t.data}function pL(t){var e=t.sourceFormat,r=t.data;if(!gm(e)){var i="";Rt(i)}if(e===yt){for(var n=[],o=0,a=r.length;o<a;o++)n.push(r[o].slice());return n}else if(e===$t){for(var n=[],o=0,a=r.length;o<a;o++)n.push(N({},r[o]));return n}}function dL(t,e,r){if(r!=null){if(be(r)||!isNaN(r)&&!gt(e,r))return t[r];if(gt(e,r))return e[r]}}function hL(t){return ie(t)}var rb=Z();function ib(t){t=ie(t);var e=t.type,r="";e||Rt(r);var i=e.split(":");i.length!==2&&Rt(r);var n=!1;i[0]==="echarts"&&(e=i[1],n=!0),t.__isBuiltIn=n,rb.set(e,t)}function nb(t,e,r){var i=Xe(t),n=i.length,o="";n||Rt(o);for(var a=0,s=n;a<s;a++){var l=i[a];e=vL(l,e,r,n===1?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function vL(t,e,r,i){var n="";e.length||Rt(n),B(t)||Rt(n);var o=t.type,a=rb.get(o);a||Rt(n);var s=K(e,function(f){return fL(f,a)}),l=Xe(a.transform({upstream:s[0],upstreamList:s,config:ie(t.config)}));if(0&&t.print)var u;return K(l,function(f,c){var p="";B(f)||Rt(p),f.data||Rt(p);var d=xv(f.data);gm(d)||Rt(p);var h,g=e[0];if(g&&c===0&&!f.dimensions){var v=g.startIndex;v&&(f.data=g.data.slice(0,v).concat(f.data)),h={seriesLayoutBy:Qt,sourceHeader:v,dimensions:g.metaRawOption.dimensions}}else h={seriesLayoutBy:Qt,sourceHeader:0,dimensions:f.dimensions};return sl(f.data,h,null)})}function gm(t){return t===yt||t===$t}var mL=typeof Uint32Array===Bs?Array:Uint32Array,gL=typeof Uint16Array===Bs?Array:Uint16Array,ym=typeof Int32Array===Bs?Array:Int32Array,ob=typeof Float64Array===Bs?Array:Float64Array,sb={float:ob,int:ym,ordinal:Array,number:Array,time:ob},_m;function Ha(t){return t>65535?mL:gL}function _L(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function ab(t,e,r,i,n){var o=sb[r||"float"];if(n){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}var yL=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Z()}return t.prototype.initData=function(e,r,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),o=this.defaultDimValueGetter=_m[n.sourceFormat];this._dimValueGetter=i||o,this._rawExtent=[];var a=_c(n);this._dimensions=K(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var i=this._calcDimNameToIdx,n=this._dimensions,o=i.get(e);if(o!=null){if(n[o].type===r)return o}else o=n.length;return n[o]={type:r},i.set(e,o),this._chunks[o]=new sb[r||"float"](this._rawCount),this._rawExtent[o]=gr(),o},t.prototype.collectOrdinalMeta=function(e,r){var i=this._chunks[e],n=this._dimensions[e],o=this._rawExtent,a=n.ordinalOffset||0,s=i.length;a===0&&(o[e]=gr());for(var l=o[e],u=a;u<s;u++){var f=i[u]=r.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],i=r.ordinalMeta;return i},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,i=this.count();r.appendData(e);var n=r.count();return r.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(e,r){for(var i=this._chunks,n=this._dimensions,o=n.length,a=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<o;u++){var f=n[u];ab(i,u,f.type,l,!0)}for(var c=[],p=s;p<l;p++)for(var d=p-s,h=0;h<o;h++){var f=n[h],g=_m.arrayRows.call(this,e[d]||c,f.property,d,h);i[h][p]=g;var v=a[h];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,i){for(var n=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=K(a,function(_){return _.property}),f=0;f<s;f++){var c=a[f];l[f]||(l[f]=gr()),ab(o,f,c.type,r,i)}if(n.fillStorage)n.fillStorage(e,r,o,l);else for(var p=[],d=e;d<r;d++){p=n.getItem(d,p);for(var h=0;h<s;h++){var g=o[h],v=this._dimValueGetter(p,u[h],d,h);g[d]=v;var m=l[h];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var i=[],n=[];if(r==null){r=e,e=[];for(var o=0;o<this._dimensions.length;o++)n.push(o)}else n=e;for(var o=0,a=n.length;o<a;o++)i.push(this.get(n[o],r));return i},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[e];return i?i[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],i=0;if(r)for(var n=0,o=this.count();n<o;n++){var a=this.get(e,n);isNaN(a)||(i+=a)}return i},t.prototype.getMedian=function(e){var r=[];this.each([e],function(n){isNaN(n)||r.push(n)}),of(r);var i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,i=r[e];if(i!=null&&i<this._count&&i===e)return e;for(var n=0,o=this._count-1;n<=o;){var a=(n+o)/2|0;if(r[a]<e)n=a+1;else if(r[a]>e)o=a-1;else return a}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var i=r.constructor,n=this._count;if(i===Array){e=new i(n);for(var o=0;o<n;o++)e[o]=r[o]}else e=new i(r.buffer,0,n)}else{var i=Ha(this._rawCount);e=new i(this.count());for(var o=0;o<e.length;o++)e[o]=o}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var i=this.clone(),n=i.count(),o=Ha(i._rawCount),a=new o(n),s=[],l=e.length,u=0,f=e[0],c=i._chunks,p=0;p<n;p++){var d=void 0,h=i.getRawIndex(p);if(l===0)d=r(p);else if(l===1){var g=c[f][h];d=r(g,p)}else{for(var v=0;v<l;v++)s[v]=c[e[v]][h];s[v]=p,d=r.apply(null,s)}d&&(a[u++]=h)}return u<n&&(i._indices=a),i._count=u,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(e){var r=this.clone(),i=r._count;if(!i)return this;var n=xe(e),o=n.length;if(!o)return this;var a=r.count(),s=Ha(r._rawCount),l=new s(a),u=0,f=n[0],c=e[f][0],p=e[f][1],d=r._chunks,h=!1;if(!r._indices){var g=0;if(o===1){for(var v=d[n[0]],m=0;m<i;m++){var _=v[m];(_>=c&&_<=p||isNaN(_))&&(l[u++]=g),g++}h=!0}else if(o===2){for(var v=d[n[0]],y=d[n[1]],x=e[n[1]][0],S=e[n[1]][1],m=0;m<i;m++){var _=v[m],w=y[m];(_>=c&&_<=p||isNaN(_))&&(w>=x&&w<=S||isNaN(w))&&(l[u++]=g),g++}h=!0}}if(!h)if(o===1)for(var m=0;m<a;m++){var b=r.getRawIndex(m),_=d[n[0]][b];(_>=c&&_<=p||isNaN(_))&&(l[u++]=b)}else for(var m=0;m<a;m++){for(var E=!0,b=r.getRawIndex(m),T=0;T<o;T++){var D=n[T],_=d[D][b];(_<e[D][0]||_>e[D][1])&&(E=!1)}E&&(l[u++]=r.getRawIndex(m))}return u<a&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var i=this.clone(e);return this._updateDims(i,e,r),i},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,i){for(var n=e._chunks,o=[],a=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=gr();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),d=0;d<a;d++)l[d]=n[r[d]][p];l[a]=c;var h=i&&i.apply(null,l);if(h!=null){typeof h!="object"&&(o[0]=h,h=o);for(var f=0;f<h.length;f++){var g=r[f],v=h[f],m=u[g],_=n[g];_&&(_[p]=v),v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}}}},t.prototype.lttbDownSample=function(e,r){var i=this.clone([e],!0),n=i._chunks,o=n[e],a=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,p,d=new(Ha(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));d[s++]=u;for(var h=1;h<a-1;h+=l){for(var g=Math.min(h+l,a-1),v=Math.min(h+l*2,a),m=(v+g)/2,_=0,y=g;y<v;y++){var x=this.getRawIndex(y),S=o[x];isNaN(S)||(_+=S)}_/=v-g;var w=h,b=Math.min(h+l,a),E=h-1,T=o[u];f=-1,p=w;for(var D=-1,O=0,y=w;y<b;y++){var x=this.getRawIndex(y),S=o[x];if(isNaN(S)){O++,D<0&&(D=x);continue}c=Math.abs((E-m)*(S-T)-(E-y)*(_-T)),c>f&&(f=c,p=x)}O>0&&O<b-w&&(d[s++]=Math.min(D,p),p=Math.max(D,p)),d[s++]=p,u=p}return d[s++]=this.getRawIndex(a-1),i._count=s,i._indices=d,i.getRawIndex=this._getRawIdx,i},t.prototype.minmaxDownSample=function(e,r){for(var i=this.clone([e],!0),n=i._chunks,o=Math.floor(1/r),a=n[e],s=this.count(),l=new(Ha(this._rawCount))(Math.ceil(s/o)*2),u=0,f=0;f<s;f+=o){var c=f,p=a[this.getRawIndex(c)],d=f,h=a[this.getRawIndex(d)],g=o;f+o>s&&(g=s-f);for(var v=0;v<g;v++){var m=this.getRawIndex(f+v),_=a[m];_<p&&(p=_,c=f+v),_>h&&(h=_,d=f+v)}var y=this.getRawIndex(c),x=this.getRawIndex(d);c<d?(l[u++]=y,l[u++]=x):(l[u++]=x,l[u++]=y)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},t.prototype.downSample=function(e,r,i,n){for(var o=this.clone([e],!0),a=o._chunks,s=[],l=Math.floor(1/r),u=a[e],f=this.count(),c=o._rawExtent[e]=gr(),p=new(Ha(this._rawCount))(Math.ceil(f/l)),d=0,h=0;h<f;h+=l){l>f-h&&(l=f-h,s.length=l);for(var g=0;g<l;g++){var v=this.getRawIndex(h+g);s[g]=u[v]}var m=i(s),_=this.getRawIndex(Math.min(h+n(s,m)||0,f-1));u[_]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),p[d++]=_}return o._count=d,o._indices=p,o._updateGetRawIdx(),o},t.prototype.each=function(e,r){if(this._count)for(var i=e.length,n=this._chunks,o=0,a=this.count();o<a;o++){var s=this.getRawIndex(o);switch(i){case 0:r(o);break;case 1:r(n[e[0]][s],o);break;case 2:r(n[e[0]][s],n[e[1]][s],o);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[e[l]][s];u[l]=o,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var i=this._chunks[e],n=gr();if(!i)return n;var o=this.count(),a=!this._indices&&!r;if(a)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=eb(r),f=u.key,c=l[f];if(c)return c.slice();for(var p=n[0],d=n[1],h=0;h<o;h++){var g=this.getRawIndex(h),v=i[g];(!r||tb(u,v))&&(v<p&&(p=v),v>d&&(d=v))}return l[f]=[p,d]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],n=this._chunks,o=0;o<n.length;o++)i.push(n[o][r]);return i},t.prototype.clone=function(e,r){var i=new t,n=this._chunks,o=e&&qt(e,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<n.length;a++)i._chunks[a]=o[a]?_L(n[a]):n[a];else i._chunks=n;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=ie(this._extent),e._rawExtent=ie(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var i=this._indices.length;r=new e(i);for(var n=0;n<i;n++)r[n]=this._indices[n]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,i,n,o){return Wa(r[o],this._dimensions[o])}_m={arrayRows:e,objectRows:function(r,i,n,o){return Wa(r[i],this._dimensions[o])},keyedColumns:e,original:function(r,i,n,o){var a=r&&(r.value==null?r:r.value);return Wa(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(r,i,n,o){return r[o]}}})(),t})(),Tl=yL;var Yc=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length,n,o;if(Gc(e)){var a=e,s=void 0,l=void 0,u=void 0;if(i){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,o=[f._getVersionSign()]}else s=a.get("data",!0),l=tt(s)?yr:Tt,o=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},d=Q(c.seriesLayoutBy,p.seriesLayoutBy)||null,h=Q(c.sourceHeader,p.sourceHeader),g=Q(c.dimensions,p.dimensions),v=d!==p.seriesLayoutBy||!!h!=!!p.sourceHeader||g;n=v?[sl(s,{seriesLayoutBy:d,sourceHeader:h,dimensions:g},l)]:[]}else{var m=e;if(i){var _=this._applyTransform(r);n=_.sourceList,o=_.upstreamSignList}else{var y=m.get("source",!0);n=[sl(y,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(n,o)},t.prototype._applyTransform=function(e){var r=this._sourceHost,i=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(n!=null){var o="";e.length!==1&&lb(o)}var a,s=[],l=[];return C(e,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&lb(c),s.push(f),l.push(u._getVersionSign())}),i?a=nb(i,s,{datasetIndex:r.componentIndex}):n!=null&&(a=[Uw(s[0])]),{sourceList:a,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var i=e[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,i){var n=0,o=this._storeList,a=o[n];a||(a=o[n]={});var s=a[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Gc(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,i):(s=new Tl,s.initData(new Hc(r,e.length),e)),a[i]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Gc(e)){var r=yv(e);return r?[r.getSourceManager()]:[]}else return K(Fw(e),function(i){return i.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,i,n;if(Gc(e))r=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=e;r=o.get("seriesLayoutBy",!0),i=o.get("sourceHeader",!0),n=o.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:n}},t})();function xm(t){var e=t.option.transform;e&&In(t.option.transform)}function Gc(t){return t.mainType==="series"}function lb(t){throw new Error(t)}var xL="line-height:1";function ub(t){var e=t.lineHeight;return e==null?xL:"line-height:"+bt(e+"")+"px"}function fb(t,e){var r=t.color||qe.color.tertiary,i=t.fontSize||12,n=t.fontWeight||"400",o=t.color||qe.color.secondary,a=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+bt(i+"")+"px;color:"+bt(r)+";font-weight:"+bt(n+""),valueStyle:"font-size:"+bt(a+"")+"px;color:"+bt(o)+";font-weight:"+bt(s+"")}:{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var SL=[0,10,20,30],wL=["",`
10
- `,`
11
-
12
- `,`
13
-
14
-
15
- `];function To(t,e){return e.type=t,e}function Sm(t){return t.type==="section"}function cb(t){return Sm(t)?CL:TL}function pb(t){if(Sm(t)){var e=0,r=t.blocks.length,i=r>1||r>0&&!t.noHeader;return C(t.blocks,function(n){var o=pb(n);o>=e&&(e=o+ +(i&&(!o||Sm(n)&&!n.noHeader)))}),e}return 0}function CL(t,e,r,i){var n=e.noHeader,o=bL(pb(e)),a=[],s=e.blocks||[];mt(!s||L(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(gt(u,l)){var f=new JT(u[l],null);s.sort(function(g,v){return f.evaluate(g.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}C(s,function(g,v){var m=e.valueFormatter,_=cb(g)(m?N(N({},t),{valueFormatter:m}):t,g,v>0?o.html:0,i);_!=null&&a.push(_)});var c=t.renderMode==="richText"?a.join(o.richText):wm(i,a.join(""),n?r:o.html);if(n)return c;var p=nc(e.header,"ordinal",t.useUTC),d=fb(i,t.renderMode).nameStyle,h=ub(i);return t.renderMode==="richText"?db(t,p,d)+o.richText+c:wm(i,'<div style="'+d+";"+h+';">'+bt(p)+"</div>"+c,r)}function TL(t,e,r,i){var n=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(x){return x=L(x)?x:[x],K(x,function(S,w){return nc(S,L(d)?d[w]:d,u)})};if(!(o&&a)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||qe.color.secondary,n),p=o?"":nc(l,"ordinal",u),d=e.valueType,h=a?[]:f(e.value,e.rawDataIndex),g=!s||!o,v=!s&&o,m=fb(i,n),_=m.nameStyle,y=m.valueStyle;return n==="richText"?(s?"":c)+(o?"":db(t,p,_))+(a?"":ML(t,h,g,v,y)):wm(i,(s?"":c)+(o?"":EL(p,!s,_))+(a?"":DL(h,g,v,y)),r)}}function Cm(t,e,r,i,n,o){if(t){var a=cb(t),s={useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function bL(t){return{html:SL[t],richText:wL[t]}}function wm(t,e,r){var i='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",o=ub(t);return'<div style="'+n+";"+o+';">'+e+i+"</div>"}function EL(t,e,r){var i=e?"margin-left:2px":"";return'<span style="'+r+";"+i+'">'+bt(t)+"</span>"}function DL(t,e,r,i){var n=r?"10px":"20px",o=e?"float:right;margin-left:"+n:"";return t=L(t)?t:[t],'<span style="'+o+";"+i+'">'+K(t,function(a){return bt(a)}).join("&nbsp;&nbsp;")+"</span>"}function db(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function ML(t,e,r,i,n){var o=[n],a=i?10:20;return r&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(L(e)?e.join(" "):e,o)}function hb(t,e){var r=t.getData().getItemVisual(e,"style"),i=r[t.visualDrawType];return vn(i)}function Xc(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var qc=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=Ls()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,i){var n=i==="richText"?this._generateStyleName():null,o=oc({color:r,type:e,renderMode:i,markerId:n});return k(o)?o:(this.richTextStyles[n]=o.style,o.content)},t.prototype.wrapRichTextStyle=function(e,r){var i={};L(r)?C(r,function(o){return N(i,o)}):N(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+e+"}"},t})();function vb(t){var e=t.series,r=t.dataIndex,i=t.multipleSeries,n=e.getData(),o=n.mapDimensionsAll("defaultedTooltip"),a=o.length,s=e.getRawValue(r),l=L(s),u=hb(e,r),f,c,p,d;if(a>1||l&&!a){var h=OL(s,e,r,o,u);f=h.inlineValues,c=h.inlineValueTypes,p=h.blocks,d=h.inlineValues[0]}else if(a){var g=n.getDimensionInfo(o[0]);d=f=Va(n,r,o[0]),c=g.type}else d=f=l?s[0]:s;var v=sf(e),m=v&&e.name||"",_=n.getName(r),y=i?m:_;return To("section",{header:m,noHeader:i||!v,sortParam:d,blocks:[To("nameValue",{markerType:"item",markerColor:u,name:y,noName:!Ft(y),value:f,valueType:c,rawDataIndex:n.getRawIndex(r)})].concat(p||[])})}function OL(t,e,r,i,n){var o=e.getData(),a=qt(t,function(c,p,d){var h=o.getDimensionInfo(d);return c=c||h&&h.tooltip!==!1&&h.displayName!=null},!1),s=[],l=[],u=[];i.length?C(i,function(c){f(Va(o,r,c),c)}):C(t,f);function f(c,p){var d=o.getDimensionInfo(p);!d||d.otherDims.tooltip===!1||(a?u.push(To("nameValue",{markerType:"subItem",markerColor:n,name:d.displayName,value:c,valueType:d.type})):(s.push(c),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var xn=ne();function jc(t,e){return t.getName(e)||t.getId(e)}var IL="__universalTransitionEnabled",Kc=(function(t){Oe(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,i,n){this.seriesIndex=this.componentIndex,this.dataTask=yn({count:AL,reset:NL}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var o=xn(this).sourceManager=new Yc(this);o.prepareSource();var a=this.getInitialData(r,n);gb(a,this),this.dataTask.context.data=a,xn(this).dataBeforeProcessed=a,mb(this),this._initSelectedMapFromData(a)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=Ca(this),o=n?uc(r):{},a=this.subType;We.hasClass(a)&&(a+="Series"),Le(r,i.getTheme().get(this.subType)),Le(r,this.getDefaultOption()),eh(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&Ta(r,o,n)},e.prototype.mergeOption=function(r,i){r=Le(this.option,r,!0),this.fillDataTextStyle(r.data);var n=Ca(this);n&&Ta(this.option,r,n);var o=xn(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(r,i);gb(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,xn(this).dataBeforeProcessed=a,mb(this),this._initSelectedMapFromData(a)},e.prototype.fillDataTextStyle=function(r){if(r&&!tt(r))for(var i=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&eh(r[n],"label",i)},e.prototype.getInitialData=function(r,i){},e.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},e.prototype.getData=function(r){var i=Tm(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return xn(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var i=Tm(this);if(i){var n=i.context;n.outputData=r,i!==this.dataTask&&(n.data=r)}xn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return Z(r)},e.prototype.getSourceManager=function(){return xn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return xn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,i,n,o){var a=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(n);o==null&&(o=1/0);for(var f=[],c=1/0,p=-1,d=0,h=a.getDimensionIndex(i),g=a.getStore(),v=0,m=g.count();v<m;v++){var _=g.get(h,v),y=l.dataToCoord(_),x=u-y,S=Math.abs(x);S<=o&&((S<c||S===c&&x>=0&&p<0)&&(c=S,p=x,d=0),x===p&&(f[d++]=v))}return f.length=d,f},e.prototype.formatTooltip=function(r,i,n){return vb({series:this,dataIndex:r,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(le.node&&!(r&&r.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,i,n){var o=this.ecModel,a=yl.prototype.getColorFromPalette.call(this,r,i,n);return a||(a=o.getColorFromPalette(r,i,n)),a},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,i){this._innerSelect(this.getData(i),r)},e.prototype.unselect=function(r,i){var n=this.option.selectedMap;if(n){var o=this.option.selectedMode,a=this.getData(i);if(o==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=jc(a,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,i){for(var n=[],o=0;o<r.length;o++)n[0]=r[o],this.isSelected(r[o],i)?this.unselect(n,i):this.select(n,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=xe(r),n=[],o=0;o<i.length;o++){var a=r[i[o]];a>=0&&n.push(a)}return n},e.prototype.isSelected=function(r,i){var n=this.option.selectedMap;if(!n)return!1;var o=this.getData(i);return(n==="all"||n[jc(o,r)])&&!o.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[IL])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,i){var n,o,a=this.option,s=a.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){B(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,f=0;f<l;f++){var c=i[f],p=jc(r,c);u[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var d=i[l-1],p=jc(r,d);a.selectedMap=(n={},n[p]=!0,n),this._selectedDataIndicesMap=(o={},o[p]=r.getRawIndex(d),o)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(n){var o=r.getRawDataItem(n);o&&o.selected&&i.push(n)}),i.length>0&&this._innerSelect(r,i)}},e.registerClass=function(r){return We.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(We);Xt(Kc,$T);Xt(Kc,yl);Zu(Kc,We);function mb(t){var e=t.name;sf(t)||(t.name=RL(t)||e)}function RL(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),i=[];return C(r,function(n){var o=e.getDimensionInfo(n);o.displayName&&i.push(o.displayName)}),i.join(" ")}function AL(t){return t.model.getRawData().count()}function NL(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),LL}function LL(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function gb(t,e){C(My(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,et(PL,e))})}function PL(t,e){var r=Tm(t);return r&&r.setOutputEnd((e||this).count()),e}function Tm(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(t.uid))}return i}}var Ui=Kc;function bm(){var t=ne();return function(e){var r=t(e),i=e.pipelineContext,n=!!r.large,o=!!r.progressiveRender,a=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(n!==a||o!==s)&&"reset"}}var xb=ne(),kL=bm(),Em=(function(){function t(){this.group=new It,this.uid=on("viewChart"),this.renderTask=yn({plan:FL,reset:BL}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.highlight=function(e,r,i,n){var o=e.getData(n&&n.dataType);o&&yb(o,n,"emphasis")},t.prototype.downplay=function(e,r,i,n){var o=e.getData(n&&n.dataType);o&&yb(o,n,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.updateVisual=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.eachRendered=function(e){Uh(this.group,e)},t.markUpdateMethod=function(e,r){xb(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function _b(t,e,r){t&&Gs(t)&&(e==="emphasis"?Ws:Hs)(t,r)}function yb(t,e,r){var i=Ai(t,e),n=e&&e.highlightKey!=null?eS(e.highlightKey):null;i!=null?C(Xe(i),function(o){_b(t.getItemGraphicEl(o),r,n)}):t.eachItemGraphicEl(function(o){_b(o,r,n)})}oa(Em,["dispose"]);nn(Em);function FL(t){return kL(t.model)}function BL(t){var e=t.model,r=t.ecModel,i=t.api,n=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=n&&xb(n).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](e,r,i,n),zL[l]}var zL={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},mi=Em;var Sb=ne(),wb={itemStyle:ni(jh,!0),lineStyle:ni(qh,!0)},UL={lineStyle:"stroke",itemStyle:"fill"};function Cb(t,e){var r=t.visualStyleMapper||wb[e];return r||(console.warn("Unknown style type '"+e+"'."),wb.itemStyle)}function Tb(t,e){var r=t.visualDrawType||UL[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var bb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=t.getModel(i),o=Cb(t,i),a=o(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Tb(t,i),u=a[l],f=$(u)?u:null,c=a.fill==="auto"||a.stroke==="auto";if(!a[l]||f||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=p,r.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||$(a.fill)?p:a.fill,a.stroke=a.stroke==="auto"||$(a.stroke)?p:a.stroke}if(r.setVisual("style",a),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(d,h){var g=t.getDataParams(h),v=N({},a);v[l]=f(g),d.setItemVisual(h,"style",v)}}}},bl=new Ve,Eb={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=Cb(t,i),o=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[i]){bl.option=l[i];var u=n(bl),f=a.ensureUniqueItemVisual(s,"style");N(f,u),bl.option.decal&&(a.setItemVisual(s,"decal",bl.option.decal),bl.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Db={performRawSeries:!0,overallReset:function(t){var e=Z();t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.type+"-"+r.getColorBy();Sb(r).scope=e.get(i)||e.set(i,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.getRawData(),n={},o=r.getData(),a=Sb(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Tb(r,s);o.each(function(u){var f=o.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],c=o.getItemVisual(f,"colorFromPalette");if(c){var p=o.ensureUniqueItemVisual(f,"style"),d=i.getName(u)||u+"",h=i.count();p[l]=r.getColorFromPalette(d,a,h)}})}})}};var Zc=Math.PI;function Dm(t,e){e=e||{},ye(e,{text:"loading",textColor:qe.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:qe.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new It,i=new ft({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(i);var n=new zt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new ft({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(o);var a;return e.showSpinner&&(a=new no({shape:{startAngle:-Zc/2,endAngle:-Zc/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:Zc*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:Zc*3/2}).delay(300).start("circularInOut"),r.add(a)),r.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&a.setShape({cx:u,cy:f}),o.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var VL=(function(){function t(e,r,i,n){this._stageTaskMap=Z(),this.ecInstance=e,this.api=r,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,o=!r&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex,a=o?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var i=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(r,i):Nx(e,r,i);e.pipelineContext=i.context=n},t.prototype.restorePipelines=function(e,r){var i=this,n=i._pipelineMap=Z();r.eachSeries(function(o){var a=e.painter.type==="canvas"&&o.getProgressive(),s=o.uid;n.set(s,{id:s,head:null,tail:null,threshold:o.getProgressiveThreshold(),progressiveEnabled:a&&!(o.preventIncremental&&o.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),i._pipe(o,o.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),i=this.api;C(this._allHandlers,function(n){var o=e.get(n.uid)||e.set(n.uid,{}),a="";mt(!(n.reset&&n.overallReset),a),n.reset&&this._createSeriesStageTask(n,o,r,i),n.overallReset&&this._createOverallStageTask(n,o,r,i)},this)},t.prototype.prepareView=function(e,r,i,n){var o=e.renderTask,a=o.context;a.model=r,a.ecModel=i,a.api=n,o.__block=!e.incrementalPrepareRender,this._pipe(r,o)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,i){this._performStageTasks(this._visualHandlers,e,r,i)},t.prototype._performStageTasks=function(e,r,i,n){n=n||{};var o=!1,a=this;C(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=a._stageTaskMap.get(l.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var d,h=p.agentStubMap;h.each(function(v){s(n,v)&&(v.dirty(),d=!0)}),d&&p.dirty(),a.updatePayload(p,i);var g=a.getPerformArgs(p,n.block);h.each(function(v){v.perform(g)}),p.perform(g)&&(o=!0)}else c&&c.each(function(v,m){s(n,v)&&v.dirty();var _=a.getPerformArgs(v,n.block);_.skip=!l.performRawSeries&&r.isSeriesFiltered(v.context.model),a.updatePayload(v,i),v.perform(_)&&(o=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(i){r=i.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,i,n){var o=this,a=r.seriesTaskMap,s=r.seriesTaskMap=Z(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(c){var p=c.uid,d=s.set(p,a&&a.get(p)||yn({plan:XL,reset:qL,count:KL}));d.context={model:c,ecModel:i,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:o},o._pipe(c,d)}},t.prototype._createOverallStageTask=function(e,r,i,n){var o=this,a=r.overallTask=r.overallTask||yn({reset:WL});a.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Z(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1,d="";mt(!e.createOnAllSeries,d),u?i.eachRawSeriesByType(u,h):f?f(i,n).each(h):C(i.getSeries(),h);function h(g){var v=g.uid,m=l.set(v,s&&s.get(v)||(p=!0,yn({reset:HL,onDirty:YL})));m.context={model:g,dirtyOnOverallProgress:c},m.agent=a,m.__block=c,o._pipe(g,m)}p&&a.dirty()},t.prototype._pipe=function(e,r){var i=e.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},t.wrapStageHandler=function(e,r){return $(e)&&(e={overallReset:e,seriesType:ZL(e)}),e.uid=on("stageHandler"),r&&(e.visualType=r),e},t})();function WL(t){t.overallReset(t.ecModel,t.api,t.payload)}function HL(t){return t.dirtyOnOverallProgress&&GL}function GL(){this.agent.dirty(),this.getDownstream().dirty()}function YL(){this.agent&&this.agent.dirty()}function XL(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function qL(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Xe(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?K(e,function(r,i){return Mb(i)}):jL}var jL=Mb(0);function Mb(t){return function(e,r){var i=r.data,n=r.resetDefines[t];if(n&&n.dataEach)for(var o=e.start;o<e.end;o++)n.dataEach(i,o);else n&&n.progress&&n.progress(e,i)}}function KL(t){return t.data.count()}function ZL(t){$c=null;try{t(El,Ob)}catch{}return $c}var El={},Ob={},$c;Ib(El,Uc);Ib(Ob,cf);El.eachSeriesByType=El.eachRawSeriesByType=function(t){$c=t};El.eachComponent=function(t){t.mainType==="series"&&t.subType&&($c=t.subType)};function Ib(t,e){for(var r in e.prototype)t[r]=Ke}var Mm=VL;var W=qe.darkColor,Rb=W.background,Dl=function(){return{axisLine:{lineStyle:{color:W.axisLine}},splitLine:{lineStyle:{color:W.axisSplitLine}},splitArea:{areaStyle:{color:[W.backgroundTint,W.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:W.axisMinorSplitLine}},axisLabel:{color:W.axisLabel},axisName:{}}},Ab={label:{color:W.secondary},itemStyle:{borderColor:W.borderTint},dividerLineStyle:{color:W.border}},Nb={darkMode:!0,color:W.theme,backgroundColor:Rb,axisPointer:{lineStyle:{color:W.border},crossStyle:{color:W.borderShade},label:{color:W.tertiary}},legend:{textStyle:{color:W.secondary},pageTextStyle:{color:W.tertiary}},textStyle:{color:W.secondary},title:{textStyle:{color:W.primary},subtextStyle:{color:W.quaternary}},toolbox:{iconStyle:{borderColor:W.accent50},feature:{dataView:{backgroundColor:Rb,textColor:W.primary,textareaColor:W.background,textareaBorderColor:W.border,buttonColor:W.accent50,buttonTextColor:W.neutral00}}},tooltip:{backgroundColor:W.neutral20,defaultBorderColor:W.border,textStyle:{color:W.tertiary}},dataZoom:{borderColor:W.accent10,textStyle:{color:W.tertiary},brushStyle:{color:W.backgroundTint},handleStyle:{color:W.neutral00,borderColor:W.accent20},moveHandleStyle:{color:W.accent40},emphasis:{handleStyle:{borderColor:W.accent50}},dataBackground:{lineStyle:{color:W.accent30},areaStyle:{color:W.accent20}},selectedDataBackground:{lineStyle:{color:W.accent50},areaStyle:{color:W.accent30}}},visualMap:{textStyle:{color:W.secondary},handleStyle:{borderColor:W.neutral30}},timeline:{lineStyle:{color:W.accent10},label:{color:W.tertiary},controlStyle:{color:W.accent30,borderColor:W.accent30}},calendar:{itemStyle:{color:W.neutral00,borderColor:W.neutral20},dayLabel:{color:W.tertiary},monthLabel:{color:W.secondary},yearLabel:{color:W.secondary}},matrix:{x:Ab,y:Ab,backgroundColor:{borderColor:W.axisLine},body:{itemStyle:{borderColor:W.borderTint}}},timeAxis:Dl(),logAxis:Dl(),valueAxis:Dl(),categoryAxis:Dl(),line:{symbol:"circle"},graph:{color:W.theme},gauge:{title:{color:W.secondary},axisLine:{lineStyle:{color:[[1,W.neutral05]]}},axisLabel:{color:W.axisLabel},detail:{color:W.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:W.background}},radar:(function(){var t=Dl();return t.axisName={color:W.axisLabel},t.axisLine.lineStyle.color=W.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:W.neutral20,textStyle:{color:W.secondary}},emphasis:{itemStyle:{color:W.neutral30}}}},sunburst:{itemStyle:{borderColor:W.background}},map:{itemStyle:{borderColor:W.border,areaColor:W.neutral10},label:{color:W.tertiary},emphasis:{label:{color:W.primary},itemStyle:{areaColor:W.highlight}},select:{label:{color:W.primary},itemStyle:{areaColor:W.highlight}}},geo:{itemStyle:{borderColor:W.border,areaColor:W.neutral10},emphasis:{label:{color:W.primary},itemStyle:{areaColor:W.highlight}},select:{label:{color:W.primary},itemStyle:{color:W.highlight}}}};Nb.categoryAxis.splitLine.show=!1;var Lb=Nb;var Pb=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},i={},n={};if(k(e)){var o=or(e);r.mainType=o.main||null,r.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};C(e,function(l,u){for(var f=!1,c=0;c<a.length;c++){var p=a[c],d=u.lastIndexOf(p);if(d>0&&d===u.length-p.length){var h=u.slice(0,d);h!=="data"&&(r.mainType=h,r[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:r,dataQuery:i,otherQuery:n}},t.prototype.filter=function(e,r){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,a,"mainType")&&f(l,a,"subType")&&f(l,a,"index","componentIndex")&&f(l,a,"name")&&f(l,a,"id")&&f(u,o,"name")&&f(u,o,"dataIndex")&&f(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,n,o));function f(c,p,d,h){return c[d]==null||p[h||d]===c[d]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})();var Om=["symbol","symbolSize","symbolRotate","symbolOffset"],kb=Om.concat(["symbolKeepAspect"]),Fb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var i={},n={},o=!1,a=0;a<Om.length;a++){var s=Om[a],l=t.get(s);$(l)?(o=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,r.setVisual(N({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),e.isSeriesFiltered(t))return;var u=xe(n);function f(c,p){for(var d=t.getRawValue(p),h=t.getDataParams(p),g=0;g<u.length;g++){var v=u[g];c.setItemVisual(p,v,n[v](d,h))}}return{dataEach:o?f:null}}},Bb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function i(n,o){for(var a=n.getItemModel(o),s=0;s<kb.length;s++){var l=kb[s],u=a.getShallow(l,!0);u!=null&&n.setItemVisual(o,l,u)}}return{dataEach:r.hasItemOption?i:null}}};function zb(t,e,r){switch(r){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:}}function Ub(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:}}function Ga(t,e,r,i,n){var o=t+e;r.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=a.getData(),p=Ai(c,n.fromActionPayload);r.trigger(o,{type:o,seriesId:a.id,name:L(p)?c.getName(p[0]):c.getName(p),selected:k(l)?l:N({},l)})}})}function Vb(t,e,r){t.on("selectchanged",function(i){var n=r.getModel();i.isFromClick?(Ga("map","selectchanged",e,n,i),Ga("pie","selectchanged",e,n,i)):i.fromAction==="select"?(Ga("map","selected",e,n,i),Ga("pie","selected",e,n,i)):i.fromAction==="unselect"&&(Ga("map","unselected",e,n,i),Ga("pie","unselected",e,n,i))})}function bo(t,e,r){for(var i;t&&!(e(t)&&(i=t,r));)t=t.__hostTarget||t.parent;return i}var $L=new Bt,Cr=$L;var Wb={};function Hb(t,e){Wb[t]=e}function Gb(t){return Wb[t]}var QL={};function Yb(t,e){QL[t]=e}var JL=Math.round(Math.random()*9),eP=typeof Object.defineProperty=="function",tP=(function(){function t(){this._id="__ec_inner_"+JL++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var i=this._guard(e);return eP?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),Xb=tP;function Eo(t){return isFinite(t)}function rP(t,e,r){var i=e.x==null?0:e.x,n=e.x2==null?1:e.x2,o=e.y==null?0:e.y,a=e.y2==null?0:e.y2;e.global||(i=i*r.width+r.x,n=n*r.width+r.x,o=o*r.height+r.y,a=a*r.height+r.y),i=Eo(i)?i:0,n=Eo(n)?n:1,o=Eo(o)?o:0,a=Eo(a)?a:0;var s=t.createLinearGradient(i,o,n,a);return s}function iP(t,e,r){var i=r.width,n=r.height,o=Math.min(i,n),a=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(a=a*i+r.x,s=s*n+r.y,l=l*o),a=Eo(a)?a:.5,s=Eo(s)?s:.5,l=l>=0&&Eo(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function Ml(t,e,r){for(var i=e.type==="radial"?iP(t,e,r):rP(t,e,r),n=e.colorStops,o=0;o<n.length;o++)i.addColorStop(n[o].offset,n[o].color);return i}function qb(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function Qc(t){return parseInt(t,10)}function Ol(t,e,r){var i=["width","height"][e],n=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(r[i]!=null&&r[i]!=="auto")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(t);return(t[n]||Qc(s[i])||Qc(t.style[i]))-(Qc(s[o])||0)-(Qc(s[a])||0)||0}function nP(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:be(t)?[t]:L(t)?t:null}function Im(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&nP(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(r){var n=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;n&&n!==1&&(r=K(r,function(o){return o/n}),i/=n)}return[r,i]}var oP=new dr(!0);function Jc(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function jb(t){return typeof t=="string"&&t!=="none"}function ep(t){var e=t.fill;return e!=null&&e!=="none"}function Kb(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function Zb(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function tp(t,e,r){var i=Id(e.image,e.__image,r);if(aa(i)){var n=t.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*Oy),o.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(o)}return n}}function aP(t,e,r,i,n){var o,a=Jc(r),s=ep(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||oP,p=e.__dirty;if(!i){var d=r.fill,h=r.stroke,g=s&&!!d.colorStops,v=a&&!!h.colorStops,m=s&&!!d.image,_=a&&!!h.image,y=void 0,x=void 0,S=void 0,w=void 0,b=void 0;(g||v)&&(b=e.getBoundingRect()),g&&(y=p?Ml(t,d,b):e.__canvasFillGradient,e.__canvasFillGradient=y),v&&(x=p?Ml(t,h,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),m&&(S=p||!e.__canvasFillPattern?tp(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=S),_&&(w=p||!e.__canvasStrokePattern?tp(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),g?t.fillStyle=y:m&&(S?t.fillStyle=S:s=!1),v?t.strokeStyle=x:_&&(w?t.strokeStyle=w:a=!1)}var E=e.getGlobalScale();c.setScale(E[0],E[1],e.segmentIgnoreThreshold);var T,D;t.setLineDash&&r.lineDash&&(o=Im(e),T=o[0],D=o[1]);var O=!0;(f||p&rn)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),O=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),O&&c.rebuildPath(t,u?l:1),T&&(t.setLineDash(T),t.lineDashOffset=D),i?(n.batchFill=s,n.batchStroke=a):r.strokeFirst?(a&&Zb(t,r),s&&Kb(t,r)):(s&&Kb(t,r),a&&Zb(t,r)),T&&t.setLineDash([])}function sP(t,e,r){var i=e.__image=Id(r.image,e.__image,e,e.onload);if(!(!i||!aa(i))){var n=r.x||0,o=r.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=i.width,s=i.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(i,u,f,r.sWidth,r.sHeight,n,o,a,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=a-u,p=s-f;t.drawImage(i,u,f,c,p,n,o,a,s)}else t.drawImage(i,n,o,a,s)}}function lP(t,e,r){var i,n=r.text;if(n!=null&&(n+=""),n){t.font=r.font||Er,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var o=void 0,a=void 0;t.setLineDash&&r.lineDash&&(i=Im(e),o=i[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),r.strokeFirst?(Jc(r)&&t.strokeText(n,r.x,r.y),ep(r)&&t.fillText(n,r.x,r.y)):(ep(r)&&t.fillText(n,r.x,r.y),Jc(r)&&t.strokeText(n,r.x,r.y)),o&&t.setLineDash([])}}var $b=["shadowBlur","shadowOffsetX","shadowOffsetY"],Qb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function n1(t,e,r,i,n){var o=!1;if(!i&&(r=r||{},e===r))return!1;if(i||e.opacity!==r.opacity){tr(t,n),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?oi.opacity:a}(i||e.blend!==r.blend)&&(o||(tr(t,n),o=!0),t.globalCompositeOperation=e.blend||oi.blend);for(var s=0;s<$b.length;s++){var l=$b[s];(i||e[l]!==r[l])&&(o||(tr(t,n),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==r.shadowColor)&&(o||(tr(t,n),o=!0),t.shadowColor=e.shadowColor||oi.shadowColor),o}function Jb(t,e,r,i,n){var o=e.style,a=i?null:r&&r.style||{};if(o===a)return!1;var s=n1(t,o,a,i,n);if((i||o.fill!==a.fill)&&(s||(tr(t,n),s=!0),jb(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(tr(t,n),s=!0),jb(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(tr(t,n),s=!0),t.globalAlpha=o.opacity==null?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(tr(t,n),s=!0),t.lineWidth=u)}for(var f=0;f<Qb.length;f++){var c=Qb[f],p=c[0];(i||o[p]!==a[p])&&(s||(tr(t,n),s=!0),t[p]=o[p]||c[1])}return s}function uP(t,e,r,i,n){return n1(t,e.style,r&&r.style,i,n)}function o1(t,e){var r=e.transform,i=t.dpr||1;r?t.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):t.setTransform(i,0,0,i,0,0)}function fP(t,e,r){for(var i=!1,n=0;n<t.length;n++){var o=t[n];i=i||o.isZeroArea(),o1(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}r.allClipped=i}function cP(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var e1=1,t1=2,r1=3,i1=4;function pP(t){var e=ep(t),r=Jc(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function tr(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function rp(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Sn(t,e,r),Do(t,r)}function Sn(t,e,r){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~ut,e.__isRendered=!1;return}var n=e.__clipPaths,o=r.prevElClipPaths,a=e.style,s=!1,l=!1;if((!o||qb(n,o))&&(o&&(tr(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),n&&n.length&&(tr(t,r),t.save(),fP(n,t,r),s=!0,r.prevElClipPaths=n)),r.allClipped){e.__dirty&=~ut,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof he&&e.autoBatch&&pP(a);s||cP(i,u.transform)?(tr(t,r),o1(t,e)):f||tr(t,r),e instanceof he?(r.lastDrawType!==e1&&(l=!0,r.lastDrawType=e1),Jb(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),aP(t,e,a,f,r)):e instanceof Os?(r.lastDrawType!==r1&&(l=!0,r.lastDrawType=r1),Jb(t,e,u,l,r),lP(t,e,a)):e instanceof Nr?(r.lastDrawType!==t1&&(l=!0,r.lastDrawType=t1),uP(t,e,u,l,r),sP(t,e,a)):e.getTemporalDisplayables&&(r.lastDrawType!==i1&&(l=!0,r.lastDrawType=i1),dP(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&tr(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Do(t,e){tr(t,e),e.prevElClipPaths&&t.restore()}function dP(t,e,r){var i=e.getDisplayables(),n=e.getTemporalDisplayables();t.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},a,s;for(a=e.getCursor(),s=i.length;a<s;a++){var l=i[a];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),Sn(t,l,o),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}Do(t,o);for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),Sn(t,l,o),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}Do(t,o),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Rm=new Xb,a1=new ii(100),s1=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Am(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type==="svg";t.dirty&&Rm.delete(t);var o=Rm.get(t);if(o)return o;var a=ye(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=n?1:1/r,Rm.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,p=0;p<s1.length;++p){var d=a[s1[p]];if(d!=null&&!L(d)&&!k(d)&&!be(d)&&typeof d!="boolean"){c=!1;break}f.push(d)}var h;if(c){h=f.join(",")+(n?"-svg":"");var g=a1.get(h);g&&(n?u.svgElement=g:u.image=g)}var v=u1(a.dashArrayX),m=hP(a.dashArrayY),_=l1(a.symbol),y=vP(v),x=f1(m),S=!n&&st.createCanvas(),w=n&&{tag:"g",attrs:{},key:"dcl",children:[]},b=T(),E;S&&(S.width=b.width*r,S.height=b.height*r,E=S.getContext("2d")),D(),c&&a1.put(h,S||w),u.image=S,u.svgElement=w,u.svgWidth=b.width,u.svgHeight=b.height;function T(){for(var O=1,R=0,M=y.length;R<M;++R)O=Jd(O,y[R]);for(var A=1,R=0,M=_.length;R<M;++R)A=Jd(A,_[R].length);O*=A;var j=x*y.length*_.length;if(0)var H;return{width:Math.max(1,Math.min(O,a.maxTileWidth)),height:Math.max(1,Math.min(j,a.maxTileHeight))}}function D(){E&&(E.clearRect(0,0,S.width,S.height),a.backgroundColor&&(E.fillStyle=a.backgroundColor,E.fillRect(0,0,S.width,S.height)));for(var O=0,R=0;R<m.length;++R)O+=m[R];if(O<=0)return;for(var M=-x,A=0,j=0,H=0;M<b.height;){if(A%2===0){for(var re=j/2%_.length,Ce=0,ge=0,de=0;Ce<b.width*2;){for(var me=0,R=0;R<v[H].length;++R)me+=v[H][R];if(me<=0)break;if(ge%2===0){var Se=(1-a.symbolSize)*.5,Ee=Ce+v[H][ge]*Se,z=M+m[A]*Se,I=v[H][ge]*a.symbolSize,P=m[A]*a.symbolSize,G=de/2%_[re].length;fe(Ee,z,I,P,_[re][G])}Ce+=v[H][ge],++de,++ge,ge===v[H].length&&(ge=0)}++H,H===v.length&&(H=0)}M+=m[A],++j,++A,A===m.length&&(A=0)}function fe(J,ce,U,q,Ne){var se=n?1:r,ze=Pa(Ne,J*se,ce*se,U*se,q*se,a.color,a.symbolKeepAspect);if(n){var ke=i.painter.renderOneToVNode(ze);ke&&w.children.push(ke)}else rp(E,ze)}}}}function l1(t){if(!t||t.length===0)return[["rect"]];if(k(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!k(t[r])){e=!1;break}if(e)return l1([t]);for(var i=[],r=0;r<t.length;++r)k(t[r])?i.push([t[r]]):i.push(t[r]);return i}function u1(t){if(!t||t.length===0)return[[0,0]];if(be(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,i=0;i<t.length;++i)if(!be(t[i])){r=!1;break}if(r)return u1([t]);for(var n=[],i=0;i<t.length;++i)if(be(t[i])){var e=Math.ceil(t[i]);n.push([e,e])}else{var e=K(t[i],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function hP(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(be(t)){var e=Math.ceil(t);return[e,e]}var r=K(t,function(i){return Math.ceil(i)});return t.length%2?r.concat(r):r}function vP(t){return K(t,function(e){return f1(e)})}function f1(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var c1=fa(mP);function mP(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(a){var s=i.getItemVisual(a,"decal");if(s){var l=i.ensureUniqueItemVisual(a,"style");l.decal=Am(s,e)}});var n=i.getVisual("decal");if(n){var o=i.getVisual("style");o.decal=Am(n,e)}}})}var gP=1,_P=800,yP=900,xP=920,SP=1e3,wP=2e3,p1=5e3,w1=1e3,CP=1100,Gm=2e3,C1=3e3,TP=4e3,up=4500,bP=4600,EP=5e3,DP=6e3,T1=7e3,b1={PROCESSOR:{SERIES_FILTER:_P,AXIS_STATISTICS:xP,FILTER:SP,STATISTIC:p1,STATISTICS:p1},VISUAL:{LAYOUT:w1,PROGRESSIVE_LAYOUT:CP,GLOBAL:Gm,CHART:C1,POST_CHART_LAYOUT:bP,COMPONENT:TP,BRUSH:EP,CHART_ITEM:up,ARIA:DP,DECAL:T1}},xt="__flagInMainProcess",ip="__mainProcessVersion",Lt="__pendingUpdate",Nm="__needsUpdateStatus",d1=/^[a-zA-Z0-9_]+$/,Lm="__connectUpdateStatus",h1=0,MP=1,OP=2;function E1(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return M1(this,t,e)}}function D1(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return M1(this,t,e)}}function M1(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Bt.prototype[e].apply(t,r)}var O1=(function(t){Oe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Bt),I1=O1.prototype;I1.on=D1("on");I1.off=D1("off");var Mo,Pm,np,Vi,op,km,Fm,Ya,Xa,v1,m1,Bm,g1,ap,_1,R1,Fr,y1,qa,A1=(function(t){Oe(e,t);function e(r,i,n){var o=t.call(this,new Pb)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],n=n||{},o.__v_skip=!0,o._dom=r;var a="canvas",s="auto",l=!1;if(o[ip]=1,0)var u;n.ssr&&DT(function(d){var h=Ae(d),g=h.dataIndex;if(g!=null){var v=Z();return v.set("series_index",h.seriesIndex),v.set("data_index",g),h.ssrType&&v.set("ssr_type",h.ssrType),v}});var f=o._zr=am(r,{renderer:n.renderer||a,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Q(n.useDirtyRect,l),useCoarsePointer:Q(n.useCoarsePointer,s),pointerSize:n.pointerSize});o._ssr=n.ssr,o._throttledZrFlush=Wv(Me(f.flush,f),17),o._updateTheme(i),o._locale=ZS(n.locale||Xf),o._coordSysMgr=new il;var c=o._api=_1(o);function p(d,h){return d.__prio-h.__prio}return _o(lp,p),_o(Vm,p),o._scheduler=new Mm(o,c,Vm,lp),o._messageCenter=new O1,o._initEvents(),o.resize=Me(o.resize,o),f.animation.on("frame",o._onframe,o),v1(f,o),m1(f,o),In(o),o}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,i=this._model,n=this._api;if(y1(this),this[Lt]){var o=this[Lt].silent;this[xt]=!0,qa(this);try{Mo(this),Vi.update.call(this,null,this[Lt].updateParams)}catch(l){throw this[xt]=!1,this[Lt]=null,l}this._zr.flush(),this[xt]=!1,this[Lt]=null,Ya.call(this,o),Xa.call(this,o)}else if(r.unfinished){var a=gP;do{r.unfinished=!1;var s=st.getTime();r.performSeriesTasks(i),r.performDataProcessorTasks(i),km(this,i),r.performVisualTasks(i),ap(this,this._model,n,"remain",{}),a-=st.getTime()-s}while(a>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,i,n){if(!this[xt]){if(this._disposed){this.id;return}var o,a,s;if(B(i)&&(n=i.lazyUpdate,o=i.silent,a=i.replaceMerge,s=i.transition,i=i.notMerge),this[xt]=!0,qa(this),!this._model||i){var l=new zT(this._api),u=this._theme,f=this._model=new Uc;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:a},Wm);var c={seriesTransition:s,optionChanged:!0};if(n)this[Lt]={silent:o,updateParams:c},this[xt]=!1,this.getZr().wakeUp();else{try{Mo(this),Vi.update.call(this,null,c)}catch(p){throw this[Lt]=null,this[xt]=!1,p}this._ssr||this._zr.flush(),this[Lt]=null,this[xt]=!1,Ya.call(this,o),Xa.call(this,o)}}},e.prototype.setTheme=function(r,i){if(!this[xt]){if(this._disposed){this.id;return}var n=this._model;if(n){var o=i&&i.silent,a=null;this[Lt]&&(o==null&&(o=this[Lt].silent),a=this[Lt].updateParams,this[Lt]=null),this[xt]=!0,qa(this);try{this._updateTheme(r),n.setTheme(this._theme),Mo(this),Vi.update.call(this,{type:"setTheme"},a)}catch(s){throw this[xt]=!1,s}this[xt]=!1,Ya.call(this,o),Xa.call(this,o)}}},e.prototype._updateTheme=function(r){k(r)&&(r=N1[r]),r&&(r=ie(r),r&&Vc(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||le.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,i=r.storage.getDisplayList();return C(i,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,n=this._model,o=[],a=this;C(i,function(l){n.eachComponent({mainType:l},function(u){var f=a._componentsMap[u.__viewId];f.group.ignore||(o.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return C(o,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type==="svg",n=this.group,o=Math.min,a=Math.max,s=1/0;if(x1[n]){var l=s,u=s,f=-s,c=-s,p=[],d=r&&r.pixelRatio||this.getDevicePixelRatio();C(Il,function(y,x){if(y.group===n){var S=i?y.getZr().painter.getSvgDom().innerHTML:y.renderToCanvas(ie(r)),w=y.getDom().getBoundingClientRect();l=o(w.left,l),u=o(w.top,u),f=a(w.right,f),c=a(w.bottom,c),p.push({dom:S,left:w.left,top:w.top})}}),l*=d,u*=d,f*=d,c*=d;var h=f-l,g=c-u,v=st.createCanvas(),m=am(v,{renderer:i?"svg":"canvas"});if(m.resize({width:h,height:g}),i){var _="";return C(p,function(y){var x=y.left-l,S=y.top-u;_+='<g transform="translate('+x+","+S+')">'+y.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=_,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new ft({shape:{x:0,y:0,width:h,height:g},style:{fill:r.connectedBackgroundColor}})),C(p,function(y){var x=new Nr({style:{x:y.left*d-l,y:y.top*d-u,image:y.dom}});m.add(x)}),m.refreshImmediately(),v.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,i,n){return op(this,"convertToPixel",r,i,n)},e.prototype.convertToLayout=function(r,i,n){return op(this,"convertToLayout",r,i,n)},e.prototype.convertFromPixel=function(r,i,n){return op(this,"convertFromPixel",r,i,n)},e.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var n=this._model,o,a=lf(n,r);return C(a,function(s,l){l.indexOf("Models")>=0&&C(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)o=o||!!f.containPoint(i);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(o=o||c.containPoint(i,u))}},this)},this),!!o},e.prototype.getVisual=function(r,i){var n=this._model,o=lf(n,r,{defaultMainType:"series"}),a=o.seriesModel,s=a.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?zb(s,l,i):Ub(s,i)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;C(IP,function(n){var o=function(a){var s=r.getModel(),l=a.target,u,f=n==="globalout";if(f?u={}:l&&bo(l,function(g){var v=Ae(g);if(v&&v.dataIndex!=null){var m=v.dataModel||s.getSeriesByIndex(v.seriesIndex);return u=m&&m.getDataParams(v.dataIndex,v.dataType,l)||{},!0}else if(v.eventData)return u=N({},v.eventData),!0},!0),u){var c=u.componentType,p=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",p=u.seriesIndex);var d=c&&p!=null&&s.getComponent(c,p),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];u.event=a,u.type=n,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:d,view:h},r.trigger(n,u)}};o.zrEventfulCallAtLast=!0,r._zr.on(n,o,r)});var i=this._messageCenter;C(Um,function(n,o){i.on(o,function(a){r.trigger(o,a)})}),Vb(i,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&rh(this.getDom(),Xm,"");var i=this,n=i._api,o=i._model;C(i._componentsViews,function(a){a.dispose(o,n)}),C(i._chartsViews,function(a){a.dispose(o,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Il[i.id]},e.prototype.resize=function(r){if(!this[xt]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),o=r&&r.silent;this[Lt]&&(o==null&&(o=this[Lt].silent),n=!0,this[Lt]=null),this[xt]=!0,qa(this);try{n&&Mo(this),Vi.update.call(this,{type:"resize",animation:N({duration:0},r&&r.animation)})}catch(a){throw this[xt]=!1,a}this[xt]=!1,Ya.call(this,o),Xa.call(this,o)}}},e.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(B(r)&&(i=r,r=""),r=r||"default",this.hideLoading(),!!Hm[r]){var n=Hm[r](this._api,i),o=this._zr;this._loadingFX=n,o.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var i=N({},r);return i.type=zm[r.type],i},e.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(B(i)||(i={silent:!!i}),!!sp[r.type]&&this._model){if(this[xt]){this._pendingActions.push(r);return}var n=i.silent;Fm.call(this,r,n);var o=i.flush;o?this._zr.flush():o!==!1&&le.browser.weChat&&this._throttledZrFlush(),Ya.call(this,n),Xa.call(this,n)}},e.prototype.updateLabelLayout=function(){Cr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,n=this.getModel(),o=n.getSeriesByIndex(i);o.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Mo=function(c){Zw(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),Pm(c,!0),Pm(c,!1),p.plan()},Pm=function(c,p){for(var d=c._model,h=c._scheduler,g=p?c._componentsViews:c._chartsViews,v=p?c._componentsMap:c._chartsMap,m=c._zr,_=c._api,y=0;y<g.length;y++)g[y].__alive=!1;p?d.eachComponent(function(w,b){w!=="series"&&x(b)}):d.eachSeries(x);function x(w){var b=w.__requireNewView;w.__requireNewView=!1;var E="_ec_"+w.id+"_"+w.type,T=!b&&v[E];if(!T){var D=or(w.type),O=p?pr.getClass(D.main,D.sub):mi.getClass(D.sub);T=new O,T.init(d,_),v[E]=T,g.push(T),m.add(T.group)}w.__viewId=T.__id=E,T.__alive=!0,T.__model=w,T.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!p&&h.prepareView(T,w,d,_)}for(var y=0;y<g.length;){var S=g[y];S.__alive?y++:(!p&&S.renderTask.dispose(),m.remove(S.group),S.dispose(d,_),g.splice(y,1),v[S.__id]===S&&delete v[S.__id],S.__id=S.group.__ecComponentInfo=null)}},np=function(c,p,d,h,g){var v=c._model;if(v.setUpdatePayload(d),!h){C([].concat(c._componentsViews).concat(c._chartsViews),x);return}var m=bx(d,h,g),_=d.excludeSeriesId,y;_!=null&&(y=Z(),C(Xe(_),function(S){var w=mr(S,null);w!=null&&y.set(w,!0)})),v&&v.eachComponent(m,function(S){var w=y&&y.get(S.id)!=null;if(!w)if(vh(d))if(S instanceof Ui)d.type===pn&&!d.notBlur&&!S.get(["emphasis","disabled"])&&jx(S,d,c._api);else{var b=yf(S.mainType,S.componentIndex,d.name,c._api),E=b.focusSelf,T=b.dispatchers;d.type===pn&&E&&!d.notBlur&&pf(S.mainType,S.componentIndex,c._api),T&&C(T,function(D){d.type===pn?Ws(D):Hs(D)})}else xf(d)&&S instanceof Ui&&($x(S,d,c._api),hh(S),Fr(c))},c),v&&v.eachComponent(m,function(S){var w=y&&y.get(S.id)!=null;w||x(c[h==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function x(S){S&&S.__alive&&S[p]&&S[p](S.__model,v,c._api,d)}},Vi={prepareAndUpdate:function(c){Mo(this),Vi.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var d=this._model,h=this._api,g=this._zr,v=this._coordSysMgr,m=this._scheduler;if(d){$w(d),d.setUpdatePayload(c),m.restoreData(d,c),m.performSeriesTasks(d),v.create(d,h),Cr.trigger("coordsys:aftercreate",d,h),m.performDataProcessorTasks(d,c),km(this,d),v.update(d,h),i(d),m.performVisualTasks(d,c);var _=d.get("backgroundColor")||"transparent";g.setBackgroundColor(_);var y=d.get("darkMode");y!=null&&y!=="auto"&&g.setDarkMode(y),Bm(this,d,h,c,p),Cr.trigger("afterupdate",d,h)}},updateTransform:function(c){var p=this,d=p._model,h=p._api;if(d){d.setUpdatePayload(c);var g=[];d.eachComponent(function(m,_){if(m!==uf){var y=p.getViewOfComponentModel(_);if(y&&y.__alive)if(y.updateTransform){var x=y.updateTransform(_,d,h,c);x&&x.update&&g.push(y)}else g.push(y)}});var v=Z();d.eachSeries(function(m){var _=p._chartsMap[m.__viewId],y=m.pipelineContext;if(_.updateTransform&&!y.progressiveRender){var x=_.updateTransform(m,d,h,c);x&&x.update&&v.set(m.uid,1)}else v.set(m.uid,1)}),p._scheduler.performVisualTasks(d,c,{setDirty:!0,dirtyMap:v}),ap(p,d,h,c,{},v),Cr.trigger("afterupdate",d,h)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),mi.markUpdateMethod(c,"updateView"),i(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),Bm(this,p,this._api,c,{}),Cr.trigger("afterupdate",p,this._api))},updateVisual:function(c){var p=this,d=this._model;d&&(d.setUpdatePayload(c),d.eachSeries(function(h){h.getData().clearAllVisual()}),mi.markUpdateMethod(c,"updateVisual"),i(d),this._scheduler.performVisualTasks(d,c,{visualType:"visual",setDirty:!0}),d.eachComponent(function(h,g){if(h!=="series"){var v=p.getViewOfComponentModel(g);v&&v.__alive&&v.updateVisual(g,d,p._api,c)}}),d.eachSeries(function(h){var g=p._chartsMap[h.__viewId];g.updateVisual(h,d,p._api,c)}),Cr.trigger("afterupdate",d,this._api))},updateLayout:function(c){Vi.update.call(this,c)}};function r(c,p,d,h,g){if(c._disposed){c.id;return}for(var v=c._model,m=c._coordSysMgr.getCoordinateSystems(),_,y=lf(v,d),x=0;x<m.length;x++){var S=m[x];if(S[p]&&(_=S[p](v,y,h,g))!=null)return _}}op=r,km=function(c,p){var d=c._chartsMap,h=c._scheduler;p.eachSeries(function(g){h.updateStreamModes(g,d[g.__viewId])})},Fm=function(c,p){var d=this,h=this.getModel(),g=c.type,v=c.escapeConnect,m=sp[g],_=(m.update||"update").split(":"),y=_.pop(),x=_[0]!=null&&or(_[0]);this[xt]=!0,qa(this);var S=[c],w=!1;c.batch&&(w=!0,S=K(c.batch,function(H){return H=ye(N({},H),c),H.batch=null,H}));var b=[],E,T=[],D=m.nonRefinedEventType,O=xf(c),R=vh(c);if(R&&dh(this._api),C(S,function(H){var re=m.action(H,h,d._api);if(m.refineEvent?T.push(re):E=re,E=E||N({},H),E.type=D,b.push(E),R){var Ce=ks(c),ge=Ce.queryOptionMap,de=Ce.mainTypeSpecified,me=de?ge.keys()[0]:"series";np(d,y,H,me),Fr(d)}else O?(np(d,y,H,"series"),Fr(d)):x&&np(d,y,H,x.main,x.sub)}),y!=="none"&&!R&&!O&&!x)try{this[Lt]?(Mo(this),Vi.update.call(this,c),this[Lt]=null):Vi[y].call(this,c)}catch(H){throw this[xt]=!1,H}if(w?E={type:D,escapeConnect:v,batch:b}:E=b[0],this[xt]=!1,!p){var M=void 0;if(m.refineEvent){var A=m.refineEvent(T,c,h,this._api).eventContent;mt(B(A)),M=ye({type:m.refinedEventType},A),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var j=this._messageCenter;j.trigger(E.type,E),M&&j.trigger(M.type,M)}},Ya=function(c){for(var p=this._pendingActions;p.length;){var d=p.shift();Fm.call(this,d,c)}},Xa=function(c){!c&&this.trigger("updated")},v1=function(c,p){c.on("rendered",function(d){p.trigger("rendered",d),c.animation.isFinished()&&!p[Lt]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger("finished"):c.refresh()})},m1=function(c,p){c.on("mouseover",function(d){var h=d.target,g=bo(h,Gs);g&&(Kx(g,d,p._api),Fr(p))}).on("mouseout",function(d){var h=d.target,g=bo(h,Gs);g&&(Zx(g,d,p._api),Fr(p))}).on("click",function(d){var h=d.target,g=bo(h,function(_){return Ae(_).dataIndex!=null},!0);if(g){var v=g.selected?"unselect":"select",m=Ae(g);p._api.dispatchAction({type:v,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function i(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function n(c){var p=[],d=[],h=!1;if(c.eachComponent(function(_,y){var x=y.get("zlevel")||0,S=y.get("z")||0,w=y.getZLevelKey();h=h||!!w,(_==="series"?d:p).push({zlevel:x,z:S,idx:y.componentIndex,type:_,key:w})}),h){var g=p.concat(d),v,m;_o(g,function(_,y){return _.zlevel===y.zlevel?_.z-y.z:_.zlevel-y.zlevel}),C(g,function(_){var y=c.getComponent(_.type,_.idx),x=_.zlevel,S=_.key;v!=null&&(x=Math.max(v,x)),S?(x===v&&S!==m&&x++,m=S):m&&(x===v&&x++,m=""),v=x,y.setZLevel(x)})}}Bm=function(c,p,d,h,g){n(p),g1(c,p,d,h,g),C(c._chartsViews,function(v){v.__alive=!1}),ap(c,p,d,h,g),C(c._chartsViews,function(v){v.__alive||v.remove(p,d)})},g1=function(c,p,d,h,g,v){C(v||c._componentsViews,function(m){var _=m.__model;u(_,m),m.render(_,p,d,h),l(_,m),f(_,m)})},ap=function(c,p,d,h,g,v){var m=c._scheduler;g=N(g||{},{updatedSeries:p.getSeries()}),Cr.trigger("series:beforeupdate",p,d,g);var _=!1;p.eachSeries(function(y){var x=c._chartsMap[y.__viewId];x.__alive=!0;var S=x.renderTask;m.updatePayload(S,h),u(y,x),v&&v.get(y.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(_=!0),x.group.silent=!!y.get("silent"),s(y,x),hh(y)}),m.unfinished=_||m.unfinished,Cr.trigger("series:layoutlabels",p,d,g),Cr.trigger("series:transition",p,d,g),p.eachSeries(function(y){var x=c._chartsMap[y.__viewId];l(y,x),f(y,x)}),a(c,p),Cr.trigger("series:afterupdate",p,d,g)},Fr=function(c){c[Nm]=!0,c.getZr().wakeUp()},qa=function(c){c[ip]=(c[ip]+1)%1e6},y1=function(c){c[Nm]&&(c.getZr().storage.traverse(function(p){Pi(p)||o(p)}),c[Nm]=!1)};function o(c){for(var p=[],d=c.currentStates,h=0;h<d.length;h++){var g=d[h];g==="emphasis"||g==="blur"||g==="select"||p.push(g)}c.selected&&c.states.select&&p.push("select"),c.hoverState===hf&&c.states.emphasis?p.push("emphasis"):c.hoverState===df&&c.states.blur&&p.push("blur"),c.useStates(p)}function a(c,p){var d=c._zr;if(d.painter.type==="canvas"){var h=d.storage,g=0;h.traverse(function(m){m.isGroup||g++});var v=g>Q(p.get("hoverLayerThreshold"),Bc.hoverLayerThreshold)&&!le.node&&!le.worker;(c._usingTHL||v)&&(p.eachSeries(function(m){if(!m.preventUsingHoverLayer){var _=c._chartsMap[m.__viewId];_.__alive&&_.eachRendered(function(y){var x=y.states.emphasis;x&&x.hoverLayer!==Ah&&(x.hoverLayer=v?Rh:Ih)})}}),c._usingTHL=v)}}function s(c,p){var d=c.get("blendMode")||null;p.eachRendered(function(h){h.isGroup||(h.style.blend=d)})}function l(c,p){if(!c.preventAutoZ){var d=Vh(c);p.eachRendered(function(h){return Wh(h,d.z,d.zlevel),!0})}}function u(c,p){p.eachRendered(function(d){if(!Pi(d)){var h=d.getTextContent(),g=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),h&&h.stateTransition&&(h.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function f(c,p){var d=c.getModel("stateAnimation"),h=c.isAnimationEnabled(),g=d.get("duration"),v=g>0?{duration:g,delay:d.get("delay"),easing:d.get("easing")}:null;p.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Pi(m))return;if(m instanceof he&&tS(m),m.__dirty){var _=m.prevStates;_&&m.useStates(_)}if(h){m.stateTransition=v;var y=m.getTextContent(),x=m.getTextGuideLine();y&&(y.stateTransition=v),x&&(x.stateTransition=v)}m.__dirty&&o(m)}})}_1=function(c){return new((function(p){Oe(d,p);function d(){return p!==null&&p.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(h){for(;h;){var g=h.__ecComponentInfo;if(g!=null)return c._model.getComponent(g.mainType,g.index);h=h.parent}},d.prototype.enterEmphasis=function(h,g){Ws(h,g),Fr(c)},d.prototype.leaveEmphasis=function(h,g){Hs(h,g),Fr(c)},d.prototype.enterBlur=function(h){Xx(h),Fr(c)},d.prototype.leaveBlur=function(h){fh(h),Fr(c)},d.prototype.enterSelect=function(h){ch(h),Fr(c)},d.prototype.leaveSelect=function(h){ph(h),Fr(c)},d.prototype.getModel=function(){return c.getModel()},d.prototype.getViewOfComponentModel=function(h){return c.getViewOfComponentModel(h)},d.prototype.getViewOfSeriesModel=function(h){return c.getViewOfSeriesModel(h)},d.prototype.getECUpdateCycleVersion=function(){return c[ip]},d.prototype.usingTHL=function(){return c._usingTHL},d})(cf))(c)},R1=function(c){function p(d,h){for(var g=0;g<d.length;g++){var v=d[g];v[Lm]=h}}C(zm,function(d,h){c._messageCenter.on(h,function(g){if(x1[c.group]&&c[Lm]!==h1){if(g&&g.escapeConnect)return;var v=c.makeActionFromEvent(g),m=[];C(Il,function(_){_!==c&&_.group===c.group&&m.push(_)}),p(m,h1),C(m,function(_){_[Lm]!==MP&&_.dispatchAction(v)}),p(m,OP)}})})}})(),e})(Bt),Ym=A1.prototype;Ym.on=E1("on");Ym.off=E1("off");Ym.one=function(t,e,r){var i=this;function n(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];e&&e.apply&&e.apply(this,o),i.off(t,n)}this.on.call(this,t,n,r)};var IP=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var sp={},zm={},Um={},Vm=[],Wm=[],lp=[],N1={},Hm={},Il={},x1={},RP=+new Date-0,V8=+new Date-0,Xm="_echarts_instance_";function L1(t,e,r){var i=!(r&&r.ssr);if(i){var n=AP(t);if(n)return n}var o=new A1(t,e,r);return o.id="ec_"+RP++,Il[o.id]=o,i&&rh(t,Xm,o.id),R1(o),Cr.trigger("afterinit",o),o}function AP(t){return Il[Ex(t,Xm)]}function P1(t,e){N1[t]=e}function Rl(t){pe(Wm,t)<0&&Wm.push(t)}function qm(t,e){jm(Vm,t,e,wP)}function k1(t){fp("afterinit",t)}function F1(t){fp("afterupdate",t)}function fp(t,e){Cr.on(t,e)}function Oo(t,e,r){var i,n,o,a,s;$(e)&&(r=e,e=""),B(t)?(i=t.type,n=t.event,a=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),o=t.refineEvent):(i=t,n=e);function l(f){return f.toLowerCase()}n=l(n||i);var u=o?l(i):n;sp[i]||(mt(d1.test(i)&&d1.test(n)),o&&mt(n!==i),sp[i]={actionType:i,refinedEventType:n,nonRefinedEventType:u,update:a,action:r,refineEvent:o},Um[n]=1,o&&s&&(Um[u]=1),zm[u]=i)}function B1(t,e){il.register(t,e)}function cp(t,e){jm(lp,t,e,w1,"layout",!0)}function wn(t,e){jm(lp,t,e,C1,"visual",!0)}var S1=[];function jm(t,e,r,i,n,o){if(($(e)||B(e))&&(r=e,e=i),!(pe(S1,r)>=0)){S1.push(r);var a=Mm.wrapStageHandler(r,n);a.__prio=e,a.__raw=r,t.push(a)}}function Km(t,e){Hm[t]=e}function z1(t,e,r){var i=Gb("registerMap");i&&i(t,e,r)}var U1=ib;wn(Gm,bb);wn(up,Eb);wn(up,Db);wn(Gm,Fb);wn(up,Bb);wn(T1,c1);Rl(Vc);qm(yP,XT);Km("default",Dm);Oo({type:pn,event:pn,update:pn},Ke);Oo({type:zs,event:zs,update:zs},Ke);Oo({type:Us,event:gf,update:Us,action:Ke,refineEvent:Zm,publishNonRefinedEvent:!0});Oo({type:mf,event:gf,update:mf,action:Ke,refineEvent:Zm,publishNonRefinedEvent:!0});Oo({type:Vs,event:gf,update:Vs,action:Ke,refineEvent:Zm,publishNonRefinedEvent:!0});function Zm(t,e,r,i){return{eventContent:{selected:Qx(r),isFromClick:e.isFromClick||!1}}}P1("default",{});P1("dark",Lb);var V1=[],NP={registerPreprocessor:Rl,registerProcessor:qm,registerPostInit:k1,registerPostUpdate:F1,registerUpdateLifecycle:fp,registerAction:Oo,registerCoordinateSystem:B1,registerLayout:cp,registerVisual:wn,registerTransform:U1,registerLoading:Km,registerMap:z1,registerImpl:Hb,PRIORITY:b1,ComponentModel:We,ComponentView:pr,SeriesModel:Ui,ChartView:mi,registerComponentModel:function(t){We.registerClass(t)},registerComponentView:function(t){pr.registerClass(t)},registerSeriesModel:function(t){Ui.registerClass(t)},registerChartView:function(t){mi.registerClass(t)},registerCustomSeries:function(t,e){Yb(t,e)},registerSubTypeDefaulter:function(t,e){We.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){ET(t,e)}};function Wi(t){if(L(t)){C(t,function(e){Wi(e)});return}pe(V1,t)>=0||(V1.push(t),$(t)&&(t={install:t}),t.install(NP))}var LP=(function(){function t(e){this.otherDims={},e!=null&&N(this,e)}return t})(),ja=LP;function W1(t,e){return pp(t,e).dimensions}function pp(t,e){Na(t)||(t=La(t)),e=e||{};var r=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],n=Z(),o=[],a=PP(t,r,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Tv(a),l=i===t.dimensionsDefine,u=l?Cv(t):wv(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,a));for(var c=Z(f),p=new ym(a),d=0;d<p.length;d++)p[d]=-1;function h(T){var D=p[T];if(D<0){var O=i[T],R=B(O)?O:{name:O},M=new ja,A=R.name;A!=null&&u.get(A)!=null&&(M.name=M.displayName=A),R.type!=null&&(M.type=R.type),R.displayName!=null&&(M.displayName=R.displayName);var j=o.length;return p[T]=j,M.storeDimIndex=T,o.push(M),M}return o[D]}if(!s)for(var d=0;d<a;d++)h(d);c.each(function(T,D){var O=Xe(T).slice();if(O.length===1&&!k(O[0])&&O[0]<0){c.set(D,!1);return}var R=c.set(D,[]);C(O,function(M,A){var j=k(M)?u.get(M):M;j!=null&&j<a&&(R[A]=j,v(h(j),D,A))})});var g=0;C(r,function(T){var D,O,R,M;if(k(T))D=T,M={};else{M=T,D=M.name;var A=M.ordinalMeta;M.ordinalMeta=null,M=N({},M),M.ordinalMeta=A,O=M.dimsDef,R=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var j=c.get(D);if(j!==!1){if(j=Xe(j),!j.length)for(var H=0;H<(O&&O.length||1);H++){for(;g<a&&h(g).coordDim!=null;)g++;g<a&&j.push(g++)}C(j,function(re,Ce){var ge=h(re);if(l&&M.type!=null&&(ge.type=M.type),v(ye(ge,M),D,Ce),ge.name==null&&O){var de=O[Ce];!B(de)&&(de={name:de}),ge.name=ge.displayName=de.name,ge.defaultTooltip=de.defaultTooltip}R&&ye(ge.otherDims,R)})}});function v(T,D,O){ff.get(D)!=null?T.otherDims[D]=O:(T.coordDim=D,T.coordDimIndex=O,n.set(D,!0))}var m=e.generateCoord,_=e.generateCoordCount,y=_!=null;_=m?_||1:0;var x=m||"value";function S(T){T.name==null&&(T.name=T.coordDim)}if(s)C(o,function(T){S(T)}),o.sort(function(T,D){return T.storeDimIndex-D.storeDimIndex});else for(var w=0;w<a;w++){var b=h(w),E=b.coordDim;E==null&&(b.coordDim=kP(x,n,y),b.coordDimIndex=0,(!m||_<=0)&&(b.isExtraCoord=!0),_--),S(b),b.type==null&&(mc(t,w)===er.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return Fs(o,function(T){return T.name},function(T,D){D>0&&(T.name=T.name+(D-1))}),new Sv({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function PP(t,e,r,i){var n=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,i||0);return C(e,function(o){var a;B(o)&&(a=o.dimsDef)&&(n=Math.max(n,a.length))}),n}function kP(t,e,r){if(r||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}function Al(t){return t==null?0:t.length||1}function H1(t){return t}var FP=(function(){function t(e,r,i,n,o,a){this._old=e,this._new=r,this._oldKeyGetter=i||H1,this._newKeyGetter=n||H1,this.context=o,this._diffModeMultiple=a==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,i={},n=new Array(e.length),o=new Array(r.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var a=0;a<e.length;a++){var s=n[a],l=i[s],u=Al(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,a)}else u===1?(i[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,i)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,i={},n={},o=[],a=[];this._initIndexMap(e,i,o,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=i[l],f=n[l],c=Al(u),p=Al(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&p===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(a,n)},t.prototype._performRestAdd=function(e,r){for(var i=0;i<e.length;i++){var n=e[i],o=r[n],a=Al(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else a===1&&this._add&&this._add(o);r[n]=null}},t.prototype._initIndexMap=function(e,r,i,n){for(var o=this._diffModeMultiple,a=0;a<e.length;a++){var s="_ec_"+this[n](e[a],a);if(o||(i[a]=s),!!r){var l=r[s],u=Al(l);u===0?(r[s]=a,o&&i.push(s)):u===1?r[s]=[l,a]:l.push(a)}}},t})(),G1=FP;var BP=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function Y1(t,e){var r={},i=r.encode={},n=Z(),o=[],a=[],s={};C(t.dimensions,function(p){var d=t.getDimensionInfo(p),h=d.coordDim;if(h){var g=d.coordDimIndex;$m(i,h)[g]=p,d.isExtraCoord||(n.set(h,1),zP(d.type)&&(o[0]=p),$m(s,h)[g]=t.getDimensionIndex(d.name)),d.defaultTooltip&&a.push(p)}ff.each(function(v,m){var _=$m(i,m),y=d.otherDims[m];y!=null&&y!==!1&&(_[y]=d.name)})});var l=[],u={};n.each(function(p,d){var h=i[d];u[d]=h[0],l=l.concat(h)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=K(l,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(o=f.slice());var c=i.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,r.userOutput=new BP(s,e),r}function $m(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function X1(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function zP(t){return!(t==="ordinal"||t==="time")}var Nl=B,Cn=K,UP=typeof Int32Array>"u"?Array:Int32Array,VP="e\0\0",q1=-1,WP=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],HP=["_approximateExtent"],j1,dp,Ll,Pl,Qm,kl,Jm,GP=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;yc(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,i=e),i=i||["x","y"];for(var o={},a=[],s={},l=!1,u={},f=0;f<i.length;f++){var c=i[f],p=k(c)?new ja({name:c}):c instanceof ja?c:new ja(c),d=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=d,p.coordDimIndex=0);var h=p.otherDims=p.otherDims||{};a.push(d),o[d]=p,u[d]!=null&&(l=!0),p.createInvertedIndices&&(s[d]=[]),n&&(p.storeDimIndex=f),h.itemName===0&&(this._nameDimIdx=p.storeDimIndex),h.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=Z();C(a,function(v){g.set(o[v].storeDimIndex,v)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var i=this._dimIdxToName.get(r);if(i!=null)return i;var n=this._schema.getSourceDimension(r);if(n)return n.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(be(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return n?n[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,i=r.encode[e];return(i||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,i){var n=this,o;if(e instanceof Tl&&(o=e),!o){var a=this.dimensions,s=Na(e)||vt(e)?new Hc(e,a.length):e;o=new Tl;var l=Cn(a,function(u){return{type:n._dimInfos[u].type,property:u}});o.initData(s,l,i)}this._store=o,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=Y1(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var i=this._store.appendValues(e,r&&r.length),n=i.start,o=i.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<o;s++){var l=s-n;this._nameList[s]=r[l],a&&Jm(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,i=0;i<r.length;i++){var n=this._dimInfos[r[i]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==yr&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=n.getSource().sourceFormat,l=s===Tt;if(l&&!n.pure)for(var u=[],f=e;f<r;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&xx(c)&&(this.hasItemOption=!0),c){var p=c.name;o[f]==null&&p!=null&&(o[f]=mr(p,null));var d=c.id;a[f]==null&&d!=null&&(a[f]=mr(d,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Jm(this,f);j1(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){Nl(e)?N(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=Ll(this,this._nameDimIdx,r)),i==null&&(i=""),i},t.prototype._getCategory=function(e,r){var i=this._store.get(e,r),n=this._store.getOrdinalMeta(e);return n?n.categories[i]:i},t.prototype.getId=function(e){return dp(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.get(n.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.getByRawIndex(n.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var i=this,n=this._store;return L(e)?n.getValues(Cn(e,function(o){return i._getStoreDimIndex(o)}),r):n.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,n=r.length;i<n;i++)if(isNaN(this._store.get(r[i],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,i=this._store.count();r<i;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var i=e&&this._invertedIndicesMap[e],n=i&&i[r];return n==null||isNaN(n)?q1:n},t.prototype.each=function(e,r,i){"use strict";$(e)&&(i=r,r=e,e=[]);var n=i||this,o=Cn(Pl(e),this._getStoreDimIndex,this);this._store.each(o,n?Me(r,n):r)},t.prototype.filterSelf=function(e,r,i){"use strict";$(e)&&(i=r,r=e,e=[]);var n=i||this,o=Cn(Pl(e),this._getStoreDimIndex,this);return this._store=this._store.filter(o,n?Me(r,n):r),this},t.prototype.selectRange=function(e){"use strict";var r=this,i={},n=xe(e),o=[];return C(n,function(a){var s=r._getStoreDimIndex(a);i[s]=e[a],o.push(s)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(e,r,i){"use strict";$(e)&&(i=r,r=e,e=[]),i=i||this;var n=[];return this.each(e,function(){n.push(r&&r.apply(this,arguments))},i),n},t.prototype.map=function(e,r,i,n){"use strict";var o=i||n||this,a=Cn(Pl(e),this._getStoreDimIndex,this),s=kl(this);return s._store=this._store.map(a,o?Me(r,o):r),s},t.prototype.modify=function(e,r,i,n){var o=this,a=i||n||this,s=Cn(Pl(e),this._getStoreDimIndex,this);this._store.modify(s,a?Me(r,a):r)},t.prototype.downSample=function(e,r,i,n){var o=kl(this);return o._store=this._store.downSample(this._getStoreDimIndex(e),r,i,n),o},t.prototype.minmaxDownSample=function(e,r){var i=kl(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),i},t.prototype.lttbDownSample=function(e,r){var i=kl(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),i},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,i=this.getRawDataItem(e);return new Ve(i,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new G1(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return dp(e,i)},function(i){return dp(r,i)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Nl(e)?N(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var i=this._itemVisuals[e],n=i&&i[r];return n??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var i=this._itemVisuals,n=i[e];n||(n=i[e]={});var o=n[r];return o==null&&(o=this.getVisual(r),L(o)?o=o.slice():Nl(o)&&(o=N({},o)),n[r]=o),o},t.prototype.setItemVisual=function(e,r,i){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Nl(r)?N(n,r):n[r]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Nl(e)?N(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,i){this._itemLayouts[e]=i?N(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var i=this.hostModel&&this.hostModel.seriesIndex;Lx(i,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){C(this._graphicEls,function(i,n){i&&e&&e.call(r,i,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Cn(this.dimensions,this._getDimInfo,this),this.hostModel)),Qm(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var i=this[e];$(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(Su(arguments)))})},t.internalField=(function(){j1=function(e){var r=e._invertedIndicesMap;C(r,function(i,n){var o=e._dimInfos[n],a=o.ordinalMeta,s=e._store;if(a){i=r[n]=new UP(a.categories.length);for(var l=0;l<i.length;l++)i[l]=q1;for(var l=0;l<s.count();l++)i[s.get(o.storeDimIndex,l)]=l}})},Ll=function(e,r,i){return mr(e._getCategory(r,i),null)},dp=function(e,r){var i=e._idList[r];return i==null&&e._idDimIdx!=null&&(i=Ll(e,e._idDimIdx,r)),i==null&&(i=VP+r),i},Pl=function(e){return L(e)||(e=e!=null?[e]:[]),e},kl=function(e){var r=new t(e._schema?e._schema:Cn(e.dimensions,e._getDimInfo,e),e.hostModel);return Qm(r,e),r},Qm=function(e,r){C(WP.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(e[i]=r[i])}),e.__wrappedMethods=r.__wrappedMethods,C(HP,function(i){e[i]=ie(r[i])}),e._calculationInfo=N({},r._calculationInfo)},Jm=function(e,r){var i=e._nameList,n=e._idList,o=e._nameDimIdx,a=e._idDimIdx,s=i[r],l=n[r];if(s==null&&o!=null&&(i[r]=s=Ll(e,o,r)),l==null&&a!=null&&(n[r]=l=Ll(e,a,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[r]=l}}})(),t})(),Fl=GP;var YP=(function(t){Oe(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.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:qe.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:qe.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:qe.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:qe.color.tertiary,fontSize:14}},e})(We),K1=YP;function hp(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function Z1(t){if(le.domSupported){for(var e=document.documentElement.style,r=0,i=t.length;r<i;r++)if(t[r]in e)return t[r]}}var eg=Z1(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),$1=Z1(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function tg(t,e){if(!t)return e;e=Sa(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function Q1(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var XP=tg($1,"transition"),rg=tg(eg,"transform"),qP="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(le.transform3dSupported?"will-change:transform;":"");function jP(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function KP(t,e,r){if(!k(r)||r==="inside")return"";var i=t.get("backgroundColor"),n=t.get("borderWidth");e=vn(e);var o=jP(r),a=Math.max(Math.round(n)*1.5,6),s="",l=rg+":",u;pe(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=a+n,p=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),d=Math.round(((p-Math.SQRT2*n)/2+Math.SQRT2*n-(p-c)/2)*100)/100;s+=";"+o+":-"+d+"px";var h=e+" solid "+n+"px;",g=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+h,"border-right:"+h,"background-color:"+i+";"];return'<div style="'+g.join("")+'"></div>'}function ZP(t,e,r){var i="cubic-bezier(0.23,1,0.32,1)",n="",o="";return r&&(n=" "+t/2+"s "+i,o="opacity"+n+",visibility"+n),e||(n=" "+t+"s "+i,o+=(o.length?",":"")+(le.transformSupported?""+rg+n:",left"+n+",top"+n)),XP+":"+o}function J1(t,e,r){var i=t.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!le.transformSupported)return r?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var o=le.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+n+(o?",0":"")+")";return r?"top:0;left:0;"+rg+":"+a+";":[["top",0],["left",0],[eg,a]]}function $P(t){var e=[],r=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var n=Q(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+n+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),C(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function QP(t,e,r,i){var n=[],o=t.get("transitionDuration"),a=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),p=Xc(t,"html"),d=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+d),e&&o>0&&n.push(ZP(o,r,i)),a&&n.push("background-color:"+a),C(["width","color","radius"],function(h){var g="border-"+h,v=Sa(g),m=t.get(v);m!=null&&n.push(g+":"+m+(h==="color"?"":"px"))}),n.push($P(c)),p!=null&&n.push("padding:"+hn(p).join("px ")+"px"),n.join(";")+";"}function eE(t,e,r,i,n){var o=e&&e.painter;if(r){var a=o&&o.getViewportRoot();a&&YS(t,a,r,i,n)}else{t[0]=i,t[1]=n;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var JP=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,le.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=e.getZr(),o=r.appendTo,a=o&&(k(o)?document.querySelector(o):Wo(o)?o:$(o)&&o(e.getDom()));eE(this._styleCoord,n,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(i),this._api=e,this._container=a;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();lr(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),i=Q1(r,"position"),n=r.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var o=e.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,o=this._styleCoord;i.innerHTML?n.cssText=qP+QP(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+J1(o[0],o[1],!0)+("border-color:"+vn(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,i,n,o){var a=this.el;if(e==null){a.innerHTML="";return}var s="";if(k(o)&&i.get("trigger")==="item"&&!hp(i)&&(s=KP(i,n,o)),k(e))a.innerHTML=e+s;else if(e){a.innerHTML="",L(e)||(e=[e]);for(var l=0;l<e.length;l++)Wo(e[l])&&e[l].parentNode!==a&&a.appendChild(e[l]);if(s&&a.childNodes.length){var u=document.createElement("div");u.innerHTML=s,a.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var i=this._styleCoord;if(eE(i,this._zr,this._container,e,r),i[0]!=null&&i[1]!=null){var n=this.el.style,o=J1(i[0],i[1]);C(o,function(a){n[a[0]]=a[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",le.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Me(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;XS(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var i=r.parentNode;i&&i.removeChild(r)}this.el=this._container=null},t})(),tE=JP;var e2=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),iE(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,i,n,o){var a=this;B(e)&&Rt(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new zt({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Xc(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),C(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){a.el.style[u]=i.get(u)}),C(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){a.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),i=rE(e.style);return[r.width+i.left+i.right,r.height+i.top+i.bottom]},t.prototype.moveTo=function(e,r){var i=this.el;if(i){var n=this._styleCoord;iE(n,this._zr,e,r),e=n[0],r=n[1];var o=i.style,a=Tn(o.borderWidth||0),s=rE(o);i.x=e+a+s.left,i.y=r+a+s.top,i.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Me(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function Tn(t){return Math.max(0,t)}function rE(t){var e=Tn(t.shadowBlur||0),r=Tn(t.shadowOffsetX||0),i=Tn(t.shadowOffsetY||0);return{left:Tn(e-r),right:Tn(e+r),top:Tn(e-i),bottom:Tn(e+i)}}function iE(t,e,r,i){t[0]=r,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var nE=e2;var t2=new ft({shape:{x:-1,y:-1,width:2,height:2}}),r2=(function(t){Oe(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,i){if(!(le.node||!i.getDom())){var n=r.getComponent("tooltip"),o=this._renderMode=Dx(n.get("renderMode"));this._tooltipContent=o==="richText"?new nE(i):new tE(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(r,i,n){if(!(le.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=n;var o=this._tooltipContent;o.update(r),o.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Nc(this,"_updatePosition",50,"fixRate"):dl(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get("triggerOn");Lc("itemTooltip",this._api,Me(function(n,o,a){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(o,a):n==="leave"&&this._hide(a))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,i=this._ecModel,n=this._api,o=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&a.manuallyShowTip(r,i,n,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,i,n,o){if(!(o.from===this.uid||le.node||!n.getDom())){var a=oE(o,n);this._ticket="";var s=o.dataByCoordSys,l=a2(o,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var f=t2;f.x=o.x,f.y=o.y,f.update(),Ae(f).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:f},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(r,i,n,o))return;var c=vl(o,i),p=c.point[0],d=c.point[1];p!=null&&d!=null&&this._tryShow({offsetX:p,offsetY:d,target:c.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:n.getZr().findHover(o.x,o.y).target},a))}},e.prototype.manuallyHideTip=function(r,i,n,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,o.from!==this.uid&&this._hide(oE(o,n))},e.prototype._manuallyAxisShowTip=function(r,i,n,o){var a=o.seriesIndex,s=o.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var u=i.getSeriesByIndex(a);if(u){var f=u.getData(),c=Bl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},e.prototype._tryShow=function(r,i){var n=r.target,o=this._tooltipModel;if(o){this._lastX=r.offsetX,this._lastY=r.offsetY;var a=r.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,r);else if(n){var s=Ae(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;bo(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(Ae(f).dataIndex!=null?l=f:Ae(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,i):u?this._showComponentItemTooltip(r,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},e.prototype._showOrMove=function(r,i){var n=r.get("showDelay");i=Me(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},e.prototype._showAxisTooltip=function(r,i){var n=this._ecModel,o=this._tooltipModel,a=[i.offsetX,i.offsetY],s=Bl([i.tooltipOption],o),l=this._renderMode,u=[],f=To("section",{blocks:[],noHeader:!0}),c=[],p=new qc;C(r,function(_){C(_.dataByAxis,function(y){var x=n.getComponent(y.axisDim+"Axis",y.axisIndex),S=y.value,w=x.axis,b=w.scale.parse(S);if(!(!x||S==null)){var E=Yv(S,w,n,y.seriesDataIndices,y.valueLabelOpt),T=To("section",{header:E,noHeader:!Ft(E),sortBlocks:!0,blocks:[]});f.blocks.push(T),C(y.seriesDataIndices,function(D){var O=n.getSeriesByIndex(D.seriesIndex),R=D.dataIndexInside,M=O.getDataParams(R);if(!(M.dataIndex<0)){M.axisDim=y.axisDim,M.axisIndex=y.axisIndex,M.axisType=y.axisType,M.axisId=y.axisId,M.axisValue=Sc(x.axis,{value:b}),M.axisValueLabel=E,M.marker=p.makeTooltipMarker("item",vn(M.color),l);var A=mm(O.formatTooltip(R,!0,null)),j=A.frag;if(j){var H=Bl([O],o).get("valueFormatter");T.blocks.push(H?N({valueFormatter:H},j):j)}A.text&&c.push(A.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var d=i.position,h=s.get("order"),g=Cm(f,p,l,h,n.get("useUTC"),s.get("textStyle"));g&&c.unshift(g);var v=l==="richText"?`
16
-
17
- `:"<br/>",m=c.join(v);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,d,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",a[0],a[1],d,null,p)})},e.prototype._showSeriesItemTooltip=function(r,i,n){var o=this._ecModel,a=Ae(i),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,f=a.dataIndex,c=a.dataType,p=u.getData(c),d=this._renderMode,h=r.positionDefault,g=Bl([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),v=g.get("trigger");if(!(v!=null&&v!=="item")){var m=u.getDataParams(f,c),_=new qc;m.marker=_.makeTooltipMarker("item",vn(m.color),d);var y=mm(u.formatTooltip(f,!1,c)),x=g.get("order"),S=g.get("valueFormatter"),w=y.frag,b=w?Cm(S?N({valueFormatter:S},w):w,_,d,x,o.get("useUTC"),g.get("textStyle")):y.text,E="item_"+u.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,b,m,E,r.offsetX,r.offsetY,r.position,r.target,_)}),n({type:"showTip",dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,i,n){var o=this._renderMode==="html",a=Ae(i),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(k(l)){var f=l;l={content:f,formatter:f},u=!0}u&&o&&l.content&&(l=ie(l),l.content=bt(l.content));var c=[l],p=this._ecModel.getComponent(a.componentMainType,a.componentIndex);p&&c.push(p),c.push({formatter:l.content});var d=r.positionDefault,h=Bl(c,this._tooltipModel,d?{position:d}:null),g=h.get("content"),v=Math.random()+"",m=new qc;this._showOrMove(h,function(){var _=ie(h.get("formatterParams")||{});this._showTooltipContent(h,g,_,v,r.offsetX,r.offsetY,r.position,i,m)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,i,n,o,a,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var p=r.get("formatter");l=l||r.get("position");var d=i,h=this._getNearestPoint([a,s],n,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),g=h.color;if(p)if(k(p)){var v=r.ecModel.get("useUTC"),m=L(n)?n[0]:n,_=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=p,_&&(d=co(m.axisValue,d,v)),d=wa(d,n,!0)}else if($(p)){var y=Me(function(x,S){x===this._ticket&&(c.setContent(S,f,r,g,l),this._updatePosition(r,l,a,s,c,n,u))},this);this._ticket=o,d=p(n,o,y)}else d=p;c.setContent(d,f,r,g,l),c.show(r,g),this._updatePosition(r,l,a,s,c,n,u)}},e.prototype._getNearestPoint=function(r,i,n,o,a){if(n==="axis"||L(i))return{color:o||a};if(!L(i))return{color:o||i.color||i.borderColor}},e.prototype._updatePosition=function(r,i,n,o,a,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||r.get("position");var c=a.getSize(),p=r.get("align"),d=r.get("verticalAlign"),h=l&&l.getBoundingRect().clone();if(l&&h.applyTransform(l.transform),$(i)&&(i=i([n,o],s,a.el,h,{viewSize:[u,f],contentSize:c.slice()})),L(i))n=At(i[0],u),o=At(i[1],f);else if(B(i)){var g=i;g.width=c[0],g.height=c[1];var v=lc(g,{width:u,height:f});n=v.x,o=v.y,p=null,d=null}else if(k(i)&&l){var m=o2(i,h,c,r.get("borderWidth"));n=m[0],o=m[1]}else{var m=i2(n,o,a,u,f,p?null:20,d?null:20);n=m[0],o=m[1]}if(p&&(n-=aE(p)?c[0]/2:p==="right"?c[0]:0),d&&(o-=aE(d)?c[1]/2:d==="bottom"?c[1]:0),hp(r)){var m=n2(n,o,a,u,f);n=m[0],o=m[1]}a.moveTo(n,o)},e.prototype._updateContentNotChangedOnAxis=function(r,i){var n=this._lastDataByCoordSys,o=this._cbParamsList,a=!!n&&n.length===r.length;return a&&C(n,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];a=a&&u.length===c.length,a&&C(u,function(p,d){var h=c[d]||{},g=p.seriesDataIndices||[],v=h.seriesDataIndices||[];a=a&&p.value===h.value&&p.axisType===h.axisType&&p.axisId===h.axisId&&g.length===v.length,a&&C(g,function(m,_){var y=v[_];a=a&&m.seriesIndex===y.seriesIndex&&m.dataIndex===y.dataIndex}),o&&C(p.seriesDataIndices,function(m){var _=m.seriesIndex,y=i[_],x=o[_];y&&x&&x.data!==y.data&&(a=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!a},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,i){le.node||!i.getDom()||(dl(this,"_updatePosition"),this._tooltipContent.dispose(),hl("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(pr);function Bl(t,e,r){var i=e.ecModel,n;r?(n=new Ve(r,i,i),n=new Ve(e.option,n,i)):n=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Ve&&(a=a.get("tooltip",!0)),k(a)&&(a={formatter:a}),a&&(n=new Ve(a,n,i)))}return n}function oE(t,e){return t.dispatchAction||Me(e.dispatchAction,e)}function i2(t,e,r,i,n,o,a){var s=r.getSize(),l=s[0],u=s[1];return o!=null&&(t+l+o+2>i?t-=l+o:t+=o),a!=null&&(e+u+a>n?e-=u+a:e+=a),[t,e]}function n2(t,e,r,i,n){var o=r.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,n)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function o2(t,e,r,i){var n=r[0],o=r[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-o/2;break;case"top":s=e.x+u/2-n/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+a;break;case"left":s=e.x-n-a,l=e.y+f/2-o/2;break;case"right":s=e.x+u+a,l=e.y+f/2-o/2}return[s,l]}function aE(t){return t==="center"||t==="middle"}function a2(t,e,r){var i=ks(t).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var o=fn(e,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=r.getViewOfComponentModel(a),l;if(s.group.traverse(function(u){var f=Ae(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:a.componentIndex,el:l}}}}var sE=r2;function ig(t){Wi(iT),t.registerComponentModel(K1),t.registerComponentView(sE),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ke),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ke)}var s2={label:{enabled:!0},decal:{show:!1}},lE=ne(),uE=ne(),fE=fa(l2);function l2(t,e){var r=t.getModel("aria");if(!r.get("enabled"))return;var i=uE(t).scope||(uE(t).scope={}),n=ie(s2);Le(n.label,t.getLocaleModel().get("aria"),!1),Le(r.option,n,!1),o(),a();function o(){var f=r.getModel("decal"),c=f.get("show");if(c){var p=Z();t.eachSeries(function(d){d.isColorBySeries()||(lE(d).scope=p.get(d.type)||p.set(d.type,{}))}),t.eachSeries(function(d){if($(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=sm(d.ecModel,d.name,i,t.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var g=d.getRawData(),v={},m=lE(d).scope;h.each(function(w){var b=h.getRawIndex(w);v[b]=w});var _=g.count();g.each(function(w){var b=v[w],E=g.getName(w)||w+"",T=sm(d.ecModel,E,m,_),D=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(D,T))})}function S(w,b){var E=w?N(N({},b),w):b;return E.dirty=!0,E}})}}function a(){var f=e.getZr().dom;if(f){var c=t.getLocaleModel().get("aria"),p=r.getModel("label");if(p.option=ye(p.option,c),!!p.get("enabled")){if(f.setAttribute("role","img"),p.get("description")){f.setAttribute("aria-label",p.get("description"));return}var d=t.getSeriesCount(),h=p.get(["data","maxCount"])||10,g=p.get(["series","maxCount"])||10,v=Math.min(d,g),m;if(!(d<1)){var _=l();if(_){var y=p.get(["general","withTitle"]);m=s(y,{title:_})}else m=p.get(["general","withoutTitle"]);var x=[],S=d>1?p.get(["series","multiple","prefix"]):p.get(["series","single","prefix"]);m+=s(S,{seriesCount:d}),t.eachSeries(function(T,D){if(D<v){var O=void 0,R=T.get("name"),M=R?"withName":"withoutName";O=d>1?p.get(["series","multiple",M]):p.get(["series","single",M]),O=s(O,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:u(T.subType)});var A=T.getData();if(A.count()>h){var j=p.get(["data","partialData"]);O+=s(j,{displayCnt:h})}else O+=p.get(["data","allData"]);for(var H=p.get(["data","separator","middle"]),re=p.get(["data","separator","end"]),Ce=p.get(["data","excludeDimensionId"]),ge=[],de=0;de<A.count();de++)if(de<h){var me=A.getName(de),Se=Ce?Ge(A.getValues(de),function(z,I){return pe(Ce,I)===-1}):A.getValues(de),Ee=p.get(["data",me?"withName":"withoutName"]);ge.push(s(Ee,{name:me,value:Se.join(H)}))}O+=ge.join(H)+re,x.push(O)}});var w=p.getModel(["series","multiple","separator"]),b=w.get("middle"),E=w.get("end");m+=x.join(b)+E,f.setAttribute("aria-label",m)}}}}function s(f,c){if(!k(f))return f;var p=f;return C(c,function(d,h){p=p.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),d)}),p}function l(){var f=t.get("title");return f&&f.length&&(f=f[0]),f&&f.text}function u(f){var c=t.getLocaleModel().get(["series","typeNames"]);return c[f]||c.chart}}function ng(t){if(!(!t||!t.aria)){var e=t.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},C(["description","general","series","data"],function(r){e[r]!=null&&(e.label[r]=e[r])})}}function og(t){t.registerPreprocessor(ng),t.registerVisual(t.PRIORITY.VISUAL.ARIA,fE)}var u2=(function(t){Oe(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,i,n){t.prototype.init.call(this,r,i,n),this._sourceManager=new Yc(this),xm(this)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.call(this,r,i),xm(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Qt},e})(We);var f2=(function(t){Oe(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e})(pr);function cE(t){t.registerComponentModel(u2),t.registerComponentView(f2)}var Kr={};Po(Kr,{createDimensions:()=>W1,createList:()=>_2,createScale:()=>x2,createSymbol:()=>Pa,createTextStyle:()=>w2,dataStack:()=>y2,enableHoverEmphasis:()=>Jx,getECData:()=>Ae,getLayoutRect:()=>lc,mixinAxisModelCommonMethods:()=>S2});var c2=(function(){function t(e){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=e}return t})();function pE(t){var e=t.get("coordinateSystem"),r=new c2(e),i=p2[e];if(i)return i(t,r,r.axisMap,r.categoryAxisMap),r}var p2={cartesian2d:function(t,e,r,i){var n=t.getReferringComponents("xAxis",pi).models[0],o=t.getReferringComponents("yAxis",pi).models[0];e.coordSysDims=["x","y"],r.set("x",n),r.set("y",o),Ka(n)&&(i.set("x",n),e.firstCategoryDimIndex=0),Ka(o)&&(i.set("y",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,i){var n=t.getReferringComponents("singleAxis",pi).models[0];e.coordSysDims=["single"],r.set("single",n),Ka(n)&&(i.set("single",n),e.firstCategoryDimIndex=0)},polar:function(t,e,r,i){var n=t.getReferringComponents("polar",pi).models[0],o=n.findAxisModel("radiusAxis"),a=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",o),r.set("angle",a),Ka(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),Ka(a)&&(i.set("angle",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,i){var n=t.ecModel,o=n.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();C(o.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=a[l];r.set(f,u),Ka(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,i){var n=t.getReferringComponents("matrix",pi).models[0];e.coordSysDims=["x","y"];var o=n.getDimensionModel("x"),a=n.getDimensionModel("y");r.set("x",o),r.set("y",a),i.set("x",o),i.set("y",a)}};function Ka(t){return t.get("type")==="category"}function d2(t,e){var r=t.get("coordinateSystem"),i=il.get(r),n;return e&&e.coordSysDims&&(n=K(e.coordSysDims,function(o){var a={name:o},s=e.axisMap.get(o);if(s){var l=s.get("type");a.type=X1(l)}return a})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function h2(t,e,r){var i,n;return r&&C(t,function(o,a){var s=o.coordDim,l=r.categoryAxisMap.get(s);l&&(i==null&&(i=a),o.ordinalMeta=l.getOrdinalMeta(),e&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(t[i].otherDims.itemName=0),i}function v2(t,e,r){r=r||{};var i=e.getSourceManager(),n,o=!1;t?(o=!0,n=La(t)):(n=i.getSource(),o=n.sourceFormat===Tt);var a=pE(e),s=d2(e,a),l=r.useEncodeDefaulter,u=$(l)?l:l?et(kw,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},c=pp(n,f),p=h2(c.dimensions,r.createInvertedIndices,a),d=o?null:i.getSharedDataStore(c),h=xc(e,{schema:c,store:d}),g=new Fl(c,e);g.setCalculationInfo(h);var v=p!=null&&m2(n)?function(m,_,y,x){return x===p?y:this.defaultDimValueGetter(m,_,y,x)}:null;return g.hasItemOption=!1,g.initData(o?n:d,null,v),g}function m2(t){if(t.sourceFormat===Tt){var e=g2(t.data||[]);return!L(Ri(e))}}function g2(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var dE=v2;function _2(t){return dE(null,t)}var y2={isDimensionStacked:bv,enableDataStack:xc,getStackedDimension:Vw};function x2(t,e){var r=e;e instanceof Ve||(r=new Ve(e));var i=Ww(r),n=Hw(r,i,!1);return t[1]<t[0]&&(t=t.slice().reverse()),TC(n,r,null,null,t),n}function S2(t){Xt(t,cw)}function w2(t,e){return e=e||{},lo(t,null,null,e.state!=="normal")}var vp={};Po(vp,{MAX_SAFE_INTEGER:()=>dx,asc:()=>of,getPercentWithPrecision:()=>cx,getPixelPrecision:()=>fx,getPrecision:()=>hr,getPrecisionSafe:()=>Qd,isNumeric:()=>Ns,isRadianAroundZero:()=>Qn,linearMap:()=>lx,nice:()=>Jn,numericToNumber:()=>Lr,parseDate:()=>vr,parsePercent:()=>At,quantile:()=>hx,quantity:()=>af,quantityExponent:()=>As,reformIntervals:()=>vx,remRadian:()=>Rs,round:()=>ux});var mp={};Po(mp,{Arc:()=>no,BezierCurve:()=>Qs,BoundingRect:()=>te,Circle:()=>to,CompoundPath:()=>bf,Ellipse:()=>Xs,Group:()=>It,Image:()=>Nr,IncrementalDisplayable:()=>Nf,Line:()=>vi,LinearGradient:()=>Df,Polygon:()=>$s,Polyline:()=>io,RadialGradient:()=>Mf,Rect:()=>ft,Ring:()=>Zs,Sector:()=>Ks,Text:()=>zt,clipPointsByRect:()=>Bh,clipRectByRect:()=>zh,createIcon:()=>tl,extendPath:()=>Lh,extendShape:()=>Nh,getShapeClass:()=>Ph,getTransform:()=>Fh,initProps:()=>Li,makeImage:()=>el,makePath:()=>ma,mergePath:()=>kh,registerShape:()=>xr,resizePath:()=>Pf,updateProps:()=>Pr});var gp={};Po(gp,{addCommas:()=>rl,capitalFirst:()=>sw,encodeHTML:()=>bt,formatTime:()=>aw,formatTpl:()=>wa,getTextRect:()=>cv,getTooltipMarker:()=>oc,normalizeCssArray:()=>hn,toCamelCase:()=>Sa,truncateText:()=>Nd});var Za={};Po(Za,{bind:()=>Me,clone:()=>ie,curry:()=>et,defaults:()=>ye,each:()=>C,extend:()=>N,filter:()=>Ge,indexOf:()=>pe,inherits:()=>xu,isArray:()=>L,isFunction:()=>$,isObject:()=>B,isString:()=>k,map:()=>K,merge:()=>Le,reduce:()=>qt});function hE(t){var e=Ui.extend(t);return Ui.registerClass(e),e}function vE(t){var e=mi.extend(t);return mi.registerClass(e),e}var zl=Math.PI*2,Io=dr.CMD,C2=["top","right","bottom","left"];function T2(t,e,r,i,n){var o=r.width,a=r.height;switch(t){case"top":i.set(r.x+o/2,r.y-e),n.set(0,-1);break;case"bottom":i.set(r.x+o/2,r.y+a+e),n.set(0,1);break;case"left":i.set(r.x-e,r.y+a/2),n.set(-1,0);break;case"right":i.set(r.x+o+e,r.y+a/2),n.set(1,0);break}}function b2(t,e,r,i,n,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var f=a*r+t,c=s*r+e;if(Math.abs(i-n)%zl<1e-4)return l[0]=f,l[1]=c,u-r;if(o){var p=i;i=Rr(n),n=Rr(p)}else i=Rr(i),n=Rr(n);i>n&&(n+=zl);var d=Math.atan2(s,a);if(d<0&&(d+=zl),d>=i&&d<=n||d+zl>=i&&d+zl<=n)return l[0]=f,l[1]=c,u-r;var h=r*Math.cos(i)+t,g=r*Math.sin(i)+e,v=r*Math.cos(n)+t,m=r*Math.sin(n)+e,_=(h-a)*(h-a)+(g-s)*(g-s),y=(v-a)*(v-a)+(m-s)*(m-s);return _<y?(l[0]=h,l[1]=g,Math.sqrt(_)):(l[0]=v,l[1]=m,Math.sqrt(y))}function sg(t,e,r,i,n,o,a,s){var l=n-t,u=o-e,f=r-t,c=i-e,p=Math.sqrt(f*f+c*c);f/=p,c/=p;var d=l*f+u*c,h=d/p;s&&(h=Math.min(Math.max(h,0),1)),h*=p;var g=a[0]=t+h*f,v=a[1]=e+h*c;return Math.sqrt((g-n)*(g-n)+(v-o)*(v-o))}function gE(t,e,r,i,n,o,a){r<0&&(t=t+r,r=-r),i<0&&(e=e+i,i=-i);var s=t+r,l=e+i,u=a[0]=Math.min(Math.max(n,t),s),f=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-n)*(u-n)+(f-o)*(f-o))}var Zr=[];function E2(t,e,r){var i=gE(e.x,e.y,e.width,e.height,t.x,t.y,Zr);return r.set(Zr[0],Zr[1]),i}function D2(t,e,r){for(var i=0,n=0,o=0,a=0,s,l,u=1/0,f=e.data,c=t.x,p=t.y,d=0;d<f.length;){var h=f[d++];d===1&&(i=f[d],n=f[d+1],o=i,a=n);var g=u;switch(h){case Io.M:o=f[d++],a=f[d++],i=o,n=a;break;case Io.L:g=sg(i,n,f[d],f[d+1],c,p,Zr,!0),i=f[d++],n=f[d++];break;case Io.C:g=Lu(i,n,f[d++],f[d++],f[d++],f[d++],f[d],f[d+1],c,p,Zr),i=f[d++],n=f[d++];break;case Io.Q:g=ku(i,n,f[d++],f[d++],f[d],f[d+1],c,p,Zr),i=f[d++],n=f[d++];break;case Io.A:var v=f[d++],m=f[d++],_=f[d++],y=f[d++],x=f[d++],S=f[d++];d+=1;var w=!!(1-f[d++]);s=Math.cos(x)*_+v,l=Math.sin(x)*y+m,d<=1&&(o=s,a=l);var b=(c-v)*y/_+v;g=b2(v,m,y,x,x+S,w,b,p,Zr),i=Math.cos(x+S)*_+v,n=Math.sin(x+S)*y+m;break;case Io.R:o=i=f[d++],a=n=f[d++];var E=f[d++],T=f[d++];g=gE(o,a,E,T,c,p,Zr);break;case Io.Z:g=sg(i,n,o,a,c,p,Zr,!0),i=o,n=a;break}g<u&&(u=g,r.set(Zr[0],Zr[1]))}return u}var Ao=new ve,Pt=new ve,Tr=new ve,$a=new ve,Ul=new ve;function lg(t,e){if(t){var r=t.getTextGuideLine(),i=t.getTextContent();if(i&&r){var n=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=n.candidates||C2,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=n.anchor,f=t.getComputedTransform(),c=f&&ti([],f),p=e.get("length2")||0;u&&Tr.copy(u);for(var d=0;d<a.length;d++){var h=a[d];T2(h,0,s,Ao,$a),ve.scaleAndAdd(Pt,Ao,$a,p),Pt.transform(c);var g=t.getBoundingRect(),v=u?u.distance(Pt):t instanceof he?D2(Pt,t.path,Tr):E2(Pt,g,Tr);v<l&&(l=v,Pt.transform(f),Tr.transform(f),Tr.toArray(o[0]),Pt.toArray(o[1]),Ao.toArray(o[2]))}M2(o,e.get("minTurnAngle")),r.setShape({points:o})}}}var mE=[],Ro=new ve;function M2(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Ao.fromArray(t[0]),Pt.fromArray(t[1]),Tr.fromArray(t[2]),ve.sub($a,Ao,Pt),ve.sub(Ul,Tr,Pt);var r=$a.len(),i=Ul.len();if(!(r<.001||i<.001)){$a.scale(1/r),Ul.scale(1/i);var n=$a.dot(Ul),o=Math.cos(e);if(o<n){var a=sg(Pt.x,Pt.y,Tr.x,Tr.y,Ao.x,Ao.y,mE,!1);Ro.fromArray(mE),Ro.scaleAndAdd(Ul,a/Math.tan(Math.PI-e));var s=Tr.x!==Pt.x?(Ro.x-Pt.x)/(Tr.x-Pt.x):(Ro.y-Pt.y)/(Tr.y-Pt.y);if(isNaN(s))return;s<0?ve.copy(Ro,Pt):s>1&&ve.copy(Ro,Tr),Ro.toArray(t[1])}}}}function ag(t,e,r,i){var n=r==="normal",o=n?t:t.ensureState(r);o.ignore=e;var a=i.get("smooth");a=a===!0?.3:Math.max(+a,0)||0,o.shape=o.shape||{},o.shape.smooth=a;var s=i.getModel("lineStyle").getLineStyle();n?t.useStyle(s):o.style=s}function O2(t,e){var r=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),r>0&&i.length>=3){var n=hs(i[0],i[1]),o=hs(i[1],i[2]);if(!n||!o){t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]);return}var a=Math.min(n,o)*r,s=Eu([],i[1],i[0],a/n),l=Eu([],i[1],i[2],a/o),u=Eu([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)t.lineTo(i[f][0],i[f][1])}function _E(t,e,r){var i=t.getTextGuideLine(),n=t.getTextContent();if(!n){i&&t.removeTextGuideLine();return}for(var o=e.normal,a=o.get("show"),s=n.ignore,l=0;l<vf.length;l++){var u=vf[l],f=e[u],c=u==="normal";if(f){var p=f.get("show"),d=c?s:Q(n.states[u]&&n.states[u].ignore,s);if(d||!Q(p,a)){var h=c?i:i&&i.states[u];h&&(h.ignore=!0),i&&ag(i,!0,u,f);continue}i||(i=new io,t.setTextGuideLine(i),!c&&(s||!a)&&ag(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),ag(i,!1,u,f)}}if(i){ye(i.style,r),i.style.fill=null;var g=o.get("showAbove"),v=t.textGuideLineConfig=t.textGuideLineConfig||{};v.showAbove=g||!1,i.buildPath=O2}}function yE(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},i=0;i<cn.length;i++){var n=cn[i];r[n]=t.getModel([n,e])}return r}function I2(t){if(t){for(var e=[],r=0;r<t.length;r++)e.push(t[r].slice());return e}}function R2(t,e){var r=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:I2(i&&i.shape.points)}}var xE=["align","verticalAlign","width","height","fontSize"],rr=new $i,ug=ne(),A2=ne();function _p(t,e,r){for(var i=0;i<r.length;i++){var n=r[i];e[n]!=null&&(t[n]=e[n])}}var yp=["x","y","rotation"],N2=(function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,r,i,n,o){var a=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),f=n.getBoundingRect().plain();te.applyTransform(f,f,u),u?rr.setLocalTransform(u):(rr.x=rr.y=rr.rotation=rr.originX=rr.originY=0,rr.scaleX=rr.scaleY=1),rr.rotation=Rr(rr.rotation);var c=n.__hostTarget,p;if(c){p=c.getBoundingRect().plain();var d=c.getComputedTransform();te.applyTransform(p,p,d)}var h=p&&c.getTextGuideLine();this._labelList.push({label:n,labelLine:h,seriesModel:i,dataIndex:e,dataType:r,layoutOptionOrCb:o,layoutOption:null,rect:f,hostRect:p,priority:p?p.width*p.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:h&&h.ignore,x:rr.x,y:rr.y,scaleX:rr.scaleX,scaleY:rr.scaleY,rotation:rr.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},t.prototype.addLabelsOfSeries=function(e){var r=this;this._chartViewList.push(e);var i=e.__model,n=i.get("labelLayout");($(n)||xe(n).length)&&e.group.traverse(function(o){if(o.ignore)return!0;var a=o.getTextContent(),s=Ae(o);a&&!a.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,i,a,n)})},t.prototype.updateLayoutConfig=function(e){var r=e.getWidth(),i=e.getHeight();function n(y,x){return function(){lg(y,x)}}for(var o=0;o<this._labelList.length;o++){var a=this._labelList[o],s=a.label,l=s.__hostTarget,u=a.defaultAttr,f=void 0;$(a.layoutOptionOrCb)?f=a.layoutOptionOrCb(R2(a,l)):f=a.layoutOptionOrCb,f=f||{},a.layoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var p=!1;if(f.x!=null?(s.x=At(f.x,r),s.setStyle("x",0),p=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=At(f.y,i),s.setStyle("y",0),p=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var d=l.getTextGuideLine();d&&(d.setShape({points:f.labelLinePoints}),p=!1)}var h=ug(s);h.needsUpdateLabelLine=p,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var g=0;g<xE.length;g++){var v=xE[g];s.setStyle(v,f[v]!=null?f[v]:u.style[v])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var m=a.seriesModel;if(a.dataIndex!=null){var _=a.seriesModel.getData(a.dataType);m=_.getItemModel(a.dataIndex)}s.on("drag",n(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},t.prototype.layout=function(e){var r=e.getWidth(),i=e.getHeight(),n=[];C(this._labelList,function(l){l.defaultAttr.ignore||n.push(fl({},l))});var o=Ge(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),a=Ge(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});Nv(o,0,0,r),Nv(a,1,0,i);var s=Ge(n,function(l){return l.layoutOption.hideOverlap});fC(s),bc(s)},t.prototype.processLabelsOverall=function(){var e=this;C(this._chartViewList,function(r){var i=r.__model,n=r.ignoreLabelLineUpdate,o=i.isAnimationEnabled();r.group.traverse(function(a){if(a.ignore&&!a.forceLabelAnimation)return!0;var s=!n,l=a.getTextContent();!s&&l&&(s=ug(l).needsUpdateLabelLine),s&&e._updateLabelLine(a,i),o&&e._animateLabels(a,i)})})},t.prototype._updateLabelLine=function(e,r){var i=e.getTextContent(),n=Ae(e),o=n.dataIndex;if(i&&o!=null){var a=r.getData(n.dataType),s=a.getItemModel(o),l={},u=a.getItemVisual(o,"style");if(u){var f=a.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");_E(e,yE(s),l),lg(e,c)}},t.prototype._animateLabels=function(e,r){var i=e.getTextContent(),n=e.getTextGuideLine();if(i&&(e.forceLabelAnimation||!i.ignore&&!i.invisible&&!e.disableLabelAnimation&&!Pi(e))){var o=ug(i),a=o.oldLayout,s=Ae(e),l=s.dataIndex,u={x:i.x,y:i.y,rotation:i.rotation},f=r.getData(s.dataType);if(a){i.attr(a);var p=e.prevStates;p&&(pe(p,"select")>=0&&i.attr(o.oldLayoutSelect),pe(p,"emphasis")>=0&&i.attr(o.oldLayoutEmphasis)),Pr(i,u,r,l)}else if(i.attr(u),!Gh(i).valueAnimation){var c=Q(i.style.opacity,1);i.style.opacity=0,Li(i,{style:{opacity:c}},r,l)}if(o.oldLayout=u,i.states.select){var d=o.oldLayoutSelect={};_p(d,u,yp),_p(d,i.states.select,yp)}if(i.states.emphasis){var h=o.oldLayoutEmphasis={};_p(h,u,yp),_p(h,i.states.emphasis,yp)}VS(i,l,f,r,r)}if(n&&!n.ignore&&!n.invisible){var o=A2(n),a=o.oldLayout,g={points:n.shape.points};a?(n.attr({shape:a}),Pr(n,{shape:g},r)):(n.setShape(g),n.style.strokePercent=0,Li(n,{style:{strokePercent:1}},r)),o.oldLayout=g}},t})(),SE=N2;var fg=ne();function wE(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,r,i){var n=fg(r).labelManager;n||(n=fg(r).labelManager=new SE),n.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,r,i){var n=fg(r).labelManager;C(i.updatedSeries,function(o){n.addLabelsOfSeries(r.getViewOfSeriesModel(o))}),n.updateLayoutConfig(r),n.layout(r),n.processLabelsOverall()})}function CE(t,e,r){var i=st.createCanvas(),n=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=n+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=n*r,i.height=o*r,i}function xp(t){return!t.__cursors.get(wh)}function TE(t){var e=t.__cursors.get(wh);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var L2=(function(t){ae(e,t);function e(r,i,n){var o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.zlevel=0,o.zlevel2=va,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__prevIdx={startIdx:0,endIdx:0};var a;n=n||Un,typeof r=="string"?a=CE(r,i,n):B(r)&&(a=r,r=a.id),o.id=r,o.dom=a;var s=a.style;return s&&(wu(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=i,o.dpr=n,o}return e.prototype.afterBrush=function(){this.__prevIdx=TE(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=CE("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,i,n,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,u=new te(0,0,0,0);function f(x){if(!(!x.isFinite()||x.isZero()))if(a.length===0){var S=new te(0,0,0,0);S.copy(x),a.push(S)}else{for(var w=!1,b=1/0,E=0,T=0;T<a.length;++T){var D=a[T];if(D.intersect(x)){var O=new te(0,0,0,0);O.copy(D),O.union(x),a[T]=O,w=!0;break}else if(l){u.copy(x),u.union(D);var R=x.width*x.height,M=D.width*D.height,A=u.width*u.height,j=A-R-M;j<b&&(b=j,E=T)}}if(l&&(a[E].union(x),w=!0),!w){var S=new te(0,0,0,0);S.copy(x),a.push(S)}l||(l=a.length>=s)}}for(var c=TE(this),p=c.startIdx;p<c.endIdx;++p){var d=r[p];if(d){var h=d.shouldBePainted(n,o,!0,!0),g=d.__isRendered&&(d.__dirty&ut||!h)?d.getPrevPaintRect():null;g&&f(g);var v=h&&(d.__dirty&ut||!d.__isRendered)?d.getPaintRect():null;v&&f(v)}}for(var m=this.__prevIdx,p=m.startIdx;p<m.endIdx;++p){var d=i[p],h=d&&d.shouldBePainted(n,o,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var g=d.getPrevPaintRect();g&&f(g)}}var _;do{_=!1;for(var p=0;p<a.length;){if(a[p].isZero()){a.splice(p,1);continue}for(var y=p+1;y<a.length;)a[p].intersect(a[y])?(_=!0,a[p].union(a[y]),a.splice(y,1)):y++;p++}}while(_);return this._paintRects=a,a},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,i){var n=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=r+"px",a.height=i+"px"),o.width=r*n,o.height=i*n,s&&(s.width=r*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},e.prototype.clear=function(r,i,n){var o=this.dom,a=this.ctx,s=o.width,l=o.height;i=i||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/c,l/c));var d=this.domBack;function h(g,v,m,_){if(a.clearRect(g,v,m,_),i&&i!=="transparent"){var y=void 0;if(Xi(i)){var x=i.global||i.__width===m&&i.__height===_;y=x&&i.__canvasGradient||Ml(a,i,{x:0,y:0,width:m,height:_}),i.__canvasGradient=y,i.__width=m,i.__height=_}else by(i)&&(i.scaleX=i.scaleX||c,i.scaleY=i.scaleY||c,y=tp(a,i,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));a.save(),a.fillStyle=y||i,a.fillRect(g,v,m,_),a.restore()}u&&(a.save(),a.globalAlpha=f,a.drawImage(d,g,v,m,_),a.restore())}!n||u?h(0,0,s,l):n.length&&C(n,function(g){h(g.x*c,g.y*c,g.width*c,g.height*c)})},e})(Bt),cg=L2;var bE=1e5,No=314159,pg=void 0,P2=1,dg=2;function k2(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function F2(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}function EE(t,e,r,i){var n=new cg(t,e,e.dpr);return n.zlevel=r,n.zlevel2=i,n.__builtin__=!0,DE(n),n}function DE(t){t.__cursorStack=[],t.__cursors=Z()}function B2(t){return t.startIdx=t.drawIdx=t.endIdx=t.endIdxNew=0,t.used=!1,t.first=t.last=NaN,t.notClearIdx=-1,t}function z2(t,e){var r=t.__cursors,i=+e;return r.get(i)||(t.__cursorStack.push(i),r.set(i,B2({key:i})))}function Sp(t,e){for(var r=t.__cursorStack,i=0;i<r.length;i++)e(t.__cursors.get(r[i]))}function hg(t,e){var r=t.layers;return r[e]||(r[e]=new Array(3))}function Gt(t,e,r){for(var i=t.layerStack,n=0;n<i.length;n++){var o=i[n].zl,a=i[n].zl2,s=t.layers[o][a];(!r||(!(r&Vl)||s.__builtin__)&&(!(r&vg)||!s.__builtin__)&&(!(r&ME)||s!==t.hoverlayer))&&e(s,o,a,n)}}var Vl=1,vg=2,ME=4,wp=Vl|ME,U2=(function(){function t(e,r,i,n){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var o=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=i=N({},i||{}),this.dpr=i.devicePixelRatio||Un,this._singleCanvas=o,this.root=e;var a=e.style;if(a&&(wu(e),e.innerHTML=""),this.storage=r,this._prevDisplayList=[],o){var l=e,u=l.width,f=l.height;i.width!=null&&(u=i.width),i.height!=null&&(f=i.height),this.dpr=i.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var c=EE(l,this,No,va);c.initContext(),this._insertLayer(c,No,va,!0),this._domRoot=e}else{this._width=Ol(e,0,i),this._height=Ol(e,1,i);var s=this._domRoot=F2(this._width,this._height);e.appendChild(s)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r;e&&!B(e)?r={paintAll:!!e}:r=e||{};var i=Q(r.refresh,!0),n=Q(r.refreshHover,!1);if(n&&(this._hoverLayerDirty=dg),!i)return n&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var o=this.storage.getDisplayList(!0);this._updateLayerStatus(o,r.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(o,a,this._redrawId);var s=this._backgroundColor;return Gt(this._i,function(l,u,f,c){l.refresh&&l.refresh(c===0?s:null)},vg),this._opts.useDirtyRect&&(this._prevDisplayList=o.slice()),this},t.prototype._paintHoverList=function(e){var r=this._i.hoverlayer,i=this._hoverLayerDirty;if(this._hoverLayerDirty=pg,i!==pg&&(!r&&i===dg&&(r=this._i.hoverlayer=this._ensureLayer(bE)),!!r)){r.clear();for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o,a=0,s=e.length;a<s;a++){var l=e[a];if(l.__inHover){o||(o=r.ctx,o.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),Sn(o,l,n),u&&(l.style=f)}}o&&(Do(o,n),o.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(bE)},t.prototype.paintOne=function(e,r){rp(e,r)},t.prototype._paintList=function(e,r,i){if(this._redrawId===i){var n=this._doPaintList(e,r);if(this._needsManuallyCompositing&&this._compositeManually(),n)Gt(this._i,function(a){a.afterBrush&&a.afterBrush()},wp),this._paintHoverList(e);else{var o=this;_l(function(){o._paintList(e,r,i)})}}},t.prototype._compositeManually=function(){var e=this._ensureLayer(No).ctx,r=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,r,i),Gt(this._i,function(n){n.virtual&&e.drawImage(n.dom,0,0,r,i)},Vl)},t.prototype._doPaintList=function(e,r){var i=this,n=!0;return Gt(this._i,function(o){var a=!1;if(Sp(o,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(a=!0)}),!(!a&&!o.__dirty)){var s=i._opts.useDirtyRect&&!xp(o)?o.createRepaintRects(e,r,i._width,i._height):null,l=i._i.layerStack[0],u=!0;if(o.__dirty){u=!1,o.__dirty=!1;var f=o.zlevel===l.zl&&o.zlevel2===l.zl2?i._backgroundColor:null;o.clear(!1,f,s)}Sp(o,function(c){var p=i._paintPerCursor(o,c,e,s,u);n=n&&p})}},wp),le.wxa&&Gt(this._i,function(o){o&&o.ctx&&o.ctx.draw&&o.ctx.draw()}),n},t.prototype._paintPerCursor=function(e,r,i,n,o){var a=e.ctx;if(n)if(!n.length)r.drawIdx=r.endIdx;else for(var s=this.dpr,l=0;l<n.length;++l){var u=n[l];a.save(),a.beginPath(),a.rect(u.x*s,u.y*s,u.width*s,u.height*s),a.clip(),this._paintPerCursorInRect(e,r,i,u,o),a.restore()}else a.save(),this._paintPerCursorInRect(e,r,i,null,o),a.restore();return r.drawIdx>=r.endIdx},t.prototype._paintPerCursorInRect=function(e,r,i,n,o){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:o}},s=e.ctx,l=xp(e),u=l&&st.getTime(),f=r.drawIdx,c=r.notClearIdx,p=c>=0?Math.min(c,f):f;p<r.endIdx;p++){var d=i[p];if(!(p<f&&!d.notClear)){if(d.__inHover&&(this._hoverLayerDirty=dg),n!=null){var h=d.getPaintRect();h&&h.intersect(n)&&(Sn(s,d,a),d.setPrevPaintRect(h))}else Sn(s,d,a);if(l){var g=st.getTime()-u;if(g>15){p++;break}}}}Do(s,a),r.drawIdx=Math.max(p,f)},t.prototype.getLayer=function(e,r){return this._ensureLayer(e,0,r)},t.prototype._ensureLayer=function(e,r,i){r=r||0;var n=this._singleCanvas;n&&!this._needsManuallyCompositing&&(e=No,r=0);var o=hg(this._i,e)[r];return o||(o=EE("zr_"+e+"."+r,this,e,r),this._layerConfig[e]&&Le(o,this._layerConfig[e],!0),(i||n&&e!==No)&&(o.virtual=!0),this._insertLayer(o,e,r,!1),o.initContext()),o},t.prototype.insertLayer=function(e,r){this._insertLayer(r,e,0,!1)},t.prototype._insertLayer=function(e,r,i,n){var o=this._i,a=o.layers,s=o.layerStack,l=this._domRoot,u=null;if(!(a[r]&&a[r][i])&&k2(e)){for(var f=s.length,c=0;c<f&&(s[c].zl<r||s[c].zl===r&&s[c].zl2<i);)c++;if(c>0&&(u=hg(o,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:r,zl2:i}),hg(o,r)[i]=e,!n&&!e.virtual)if(u){var p=u.dom;p.nextSibling?l.insertBefore(e.dom,p.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(e,r){return Gt(this._i,function(i,n){e.call(r,i,n)})},t.prototype.eachBuiltinLayer=function(e,r){return Gt(this._i,function(i,n){e.call(r,i,n)},Vl)},t.prototype.eachOtherLayer=function(e,r){return Gt(this._i,function(i,n){e.call(r,i,n)},vg)},t.prototype.getLayers=function(){var e={};return Gt(this._i,function(r,i,n){e[r.id]=r}),e},t.prototype._updateLayerStatus=function(e,r){var i=this;if(i._singleCanvas)for(var n=1;n<e.length;n++){var o=e[n];if(o.zlevel!==e[n-1].zlevel||o.incremental){i._needsManuallyCompositing=!0;break}}Gt(i._i,function(v){v.__dirty=!1,Sp(v,function(m){m.used=!1,m.endIdxNew=0,m.notClearIdx=-1})},wp);for(var a,s=null,l=null,u=!1,f=0,c=e.length;f<c;f++){var o=e[f],p=o.zlevel,d=o.incremental,h=void 0;if(a!==p&&(a=p,u=!1),d?(u=!0,h=MS):h=u?DS:va,(!s||p!==s.zlevel||h!==s.zlevel2)&&(s=i._ensureLayer(p,h),l=null,!s.__builtin__)){Ho("ZLevel "+p+" has been used by unknown layer "+s.id);continue}if((!l||d!==l.key)&&(l=z2(s,d),!l.used))if(l.used=!0,!r&&l.first===o.id){var g=f-l.startIdx;l.startIdx=f,l.drawIdx+=g,l.endIdx+=g}else s.__dirty=!0,l.first=o.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,o.__dirty&ut&&!o.__inHover&&((!d||!o.notClear&&f<l.drawIdx)&&(s.__dirty=!0),d&&o.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}Gt(i._i,function(v){for(var m=v.__cursorStack,_=v.__cursors,y=m.length-1;y>=0;y--){var x=_.get(m[y]);if(!x.used)v.__dirty=!0,_.removeKey(m[y]),m.splice(y,1);else{var S=x.endIdxNew;(xp(v)?S<x.drawIdx:S!==x.endIdx||!S||e[S-1].id!==x.last)&&(v.__dirty=!0),x.endIdx=x.endIdxNew,x.last=S?e[S-1].id:NaN}}v.__dirty&&(Sp(v,function(w){w.drawIdx=w.startIdx}),i._hoverLayerDirty===pg&&(i._hoverLayerDirty=P2))},wp)},t.prototype.clear=function(){return Gt(this._i,function(e){e.clear(),DE(e)},Vl),this},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,Gt(this._i,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var i=this._layerConfig;i[e]?Le(i[e],r,!0):i[e]=r,Gt(this._i,function(n,o){Le(n,i[o],!0)})}},t.prototype.delLayer=function(e){for(var r=this._i.layerStack,i=this._i.layers,n=r.length-1;n>=0;n--){var o=r[n];if(o.zl===e){var a=i[e][o.zl2];if(a.__builtin__)continue;if(r.splice(n,1),i[e][o.zl2]=void 0,!a.virtual){var s=a.dom.parentNode;s&&s.removeChild(a.dom)}}}},t.prototype.resize=function(e,r){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,o=this.root;e!=null&&(n.width=e),r!=null&&(n.height=r),e=Ol(o,0,n),r=Ol(o,1,n),i.style.display="",(this._width!==e||r!==this._height)&&(i.style.width=e+"px",i.style.height=r+"px",Gt(this._i,function(a){a.resize(e,r)}),this.refresh({paintAll:!0})),this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this._ensureLayer(No).resize(e,r)}return this},t.prototype.clearLayer=function(e){C(this._i.layers[e],function(r){r&&!r.__builtin__&&r.clear()})},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[No][0].dom;var r=new cg("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var i=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=r.dom.width,o=r.dom.height;Gt(this._i,function(c){c.__builtin__?i.drawImage(c.dom,0,0,n,o):c.renderToCanvas&&(i.save(),c.renderToCanvas(i),i.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Sn(i,f,a)}Do(i,a)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})(),OE=U2;function Wl(t){t.registerPainter("canvas",OE)}Wi([Wl,cE]);Wi(wE);hE({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(t){return{fill:t.get("color")}},visualDrawType:"fill",optionUpdated:function(){var t=this.option;t.gridSize=Math.max(Math.floor(t.gridSize),4)},getInitialData:function(t,e){var r=Kr.createDimensions(t.data,{coordDimensions:["value"]}),i=new Fl(r,this);return i.initData(t.data),i},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}});vE({type:"wordCloud",render:function(t,e,r){var i=this.group;i.removeAll();var n=t.getData(),o=t.get("gridSize");t.layoutInstance.ondraw=function(a,s,l,u){var f=n.getItemModel(l),c=f.getModel("textStyle"),p=new mp.Text({style:Kr.createTextStyle(c),scaleX:1/u.info.mu,scaleY:1/u.info.mu,x:(u.gx+u.info.gw/2)*o,y:(u.gy+u.info.gh/2)*o,rotation:u.rot});p.setStyle({x:u.info.fillTextOffsetX,y:u.info.fillTextOffsetY+s*.5,text:a,verticalAlign:"middle",fill:n.getItemVisual(l,"style").fill,fontSize:s}),i.add(p),n.setItemGraphicEl(l,p),p.ensureState("emphasis").style=Kr.createTextStyle(f.getModel(["emphasis","textStyle"]),{state:"emphasis"}),p.ensureState("blur").style=Kr.createTextStyle(f.getModel(["blur","textStyle"]),{state:"blur"}),Kr.enableHoverEmphasis(p,f.get(["emphasis","focus"]),f.get(["emphasis","blurScope"])),p.stateTransition={duration:t.get("animation")?t.get(["stateAnimation","duration"]):0,easing:t.get(["stateAnimation","easing"])},p.__highDownDispatcher=!0},this._model=t},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}});window.setImmediate||(window.setImmediate=(function(){return window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||(function(){if(!window.postMessage||!window.addEventListener)return null;var r=[void 0],i="zero-timeout-message",n=function(a){var s=r.length;return r.push(a),window.postMessage(i+s.toString(36),"*"),s};return window.addEventListener("message",function(a){if(!(typeof a.data!="string"||a.data.substr(0,i.length)!==i)){a.stopImmediatePropagation();var s=parseInt(a.data.substr(i.length),36);r[s]&&(r[s](),r[s]=void 0)}},!0),window.clearImmediate=function(a){r[a]&&(r[a]=void 0)},n})()||function(r){window.setTimeout(r,0)}})());window.clearImmediate||(window.clearImmediate=(function(){return window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(r){window.clearTimeout(r)}})());var _g=(function(){var e=document.createElement("canvas");if(!e||!e.getContext)return!1;var r=e.getContext("2d");return!(!r||!r.getImageData||!r.fillText||!Array.prototype.some||!Array.prototype.push)})(),gg=(function(){if(_g){for(var e=document.createElement("canvas").getContext("2d"),r=20,i,n;r;){if(e.font=r.toString(10)+"px sans-serif",e.measureText("\uFF37").width===i&&e.measureText("m").width===n)return r+1;i=e.measureText("\uFF37").width,n=e.measureText("m").width,r--}return 0}})(),V2=function(t){if(Array.isArray(t)){var e=t.slice();return e.splice(0,2),e}else return[]},W2=function(e){for(var r,i,n=e.length;n;)r=Math.floor(Math.random()*n),i=e[--n],e[n]=e[r],e[r]=i;return e},Qa={},yg=function(e,r){if(!_g)return;var i=Math.floor(Math.random()*Date.now());Array.isArray(e)||(e=[e]),e.forEach(function(z,I){if(typeof z=="string"){if(e[I]=document.getElementById(z),!e[I])throw new Error("The element id specified is not found.")}else if(!z.tagName&&!z.appendChild)throw new Error("You must pass valid HTML elements, or ID of the element.")});var n={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "\u5FAE\u8EDF\u6B63\u9ED1\u9AD4", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,layoutAnimation:!0,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(r)for(var o in r)o in n&&(n[o]=r[o]);if(typeof n.weightFactor!="function"){var a=n.weightFactor;n.weightFactor=function(I){return I*a}}if(typeof n.shape!="function")switch(n.shape){case"circle":default:n.shape="circle";break;case"cardioid":n.shape=function(I){return 1-Math.sin(I)};break;case"diamond":n.shape=function(I){var P=I%(2*Math.PI/4);return 1/(Math.cos(P)+Math.sin(P))};break;case"square":n.shape=function(I){return Math.min(1/Math.abs(Math.cos(I)),1/Math.abs(Math.sin(I)))};break;case"triangle-forward":n.shape=function(I){var P=I%(2*Math.PI/3);return 1/(Math.cos(P)+Math.sqrt(3)*Math.sin(P))};break;case"triangle":case"triangle-upright":n.shape=function(I){var P=(I+Math.PI*3/2)%(2*Math.PI/3);return 1/(Math.cos(P)+Math.sqrt(3)*Math.sin(P))};break;case"pentagon":n.shape=function(I){var P=(I+.955)%(2*Math.PI/5);return 1/(Math.cos(P)+.726543*Math.sin(P))};break;case"star":n.shape=function(I){var P=(I+.955)%(2*Math.PI/10);return(I+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-P)+3.07768*Math.sin(2*Math.PI/10-P)):1/(Math.cos(P)+3.07768*Math.sin(P))};break}n.gridSize=Math.max(Math.floor(n.gridSize),4);var s=n.gridSize,l=s-n.maskGapWidth,u=Math.abs(n.maxRotation-n.minRotation),f=Math.min(n.maxRotation,n.minRotation),c=n.rotationStep,p,d,h,g,v,m,_;function y(z,I){return"hsl("+(Math.random()*360).toFixed()+","+(Math.random()*30+70).toFixed()+"%,"+(Math.random()*(I-z)+z).toFixed()+"%)"}switch(n.color){case"random-dark":_=function(){return y(10,50)};break;case"random-light":_=function(){return y(50,90)};break;default:typeof n.color=="function"&&(_=n.color);break}var x;typeof n.fontWeight=="function"&&(x=n.fontWeight);var S=null;typeof n.classes=="function"&&(S=n.classes);var w=!1,b=[],E,T=function(I){var P=I.currentTarget,G=P.getBoundingClientRect(),fe,J;I.touches?(fe=I.touches[0].clientX,J=I.touches[0].clientY):(fe=I.clientX,J=I.clientY);var ce=fe-G.left,U=J-G.top,q=Math.floor(ce*(P.width/G.width||1)/s),Ne=Math.floor(U*(P.height/G.height||1)/s);return b[q]?b[q][Ne]:null},D=function(I){var P=T(I);if(E!==P){if(E=P,!P){n.hover(void 0,void 0,I);return}n.hover(P.item,P.dimension,I)}},O=function(I){var P=T(I);P&&(n.click(P.item,P.dimension,I),I.preventDefault())},R=[],M=function(I){if(R[I])return R[I];var P=I*8,G=P,fe=[];for(I===0&&fe.push([g[0],g[1],0]);G--;){var J=1;n.shape!=="circle"&&(J=n.shape(G/P*2*Math.PI)),fe.push([g[0]+I*J*Math.cos(-G/P*2*Math.PI),g[1]+I*J*Math.sin(-G/P*2*Math.PI)*n.ellipticity,G/P*2*Math.PI])}return R[I]=fe,fe},A=function(){return n.abortThreshold>0&&new Date().getTime()-m>n.abortThreshold},j=function(){return n.rotateRatio===0||Math.random()>n.rotateRatio?0:u===0?f:f+Math.round(Math.random()*u/c)*c},H=function(I,P,G,fe){var J=!1,ce=n.weightFactor(P);if(ce<=n.minSize)return!1;var U=1;ce<gg&&(U=(function(){for(var Op=2;Op*ce<gg;)Op+=2;return Op})());var q;x?q=x(I,P,ce,fe):q=n.fontWeight;var Ne=document.createElement("canvas"),se=Ne.getContext("2d",{willReadFrequently:!0});se.font=q+" "+(ce*U).toString(10)+"px "+n.fontFamily;var ze=se.measureText(I).width/U,ke=Math.max(ce*U,se.measureText("m").width,se.measureText("\uFF37").width)/U,pt=ze+ke*2,Et=ke*3,ur=Math.ceil(pt/s),dt=Math.ceil(Et/s);pt=ur*s,Et=dt*s;var Re=-ze/2,Ze=-ke*.4,ht=Math.ceil((pt*Math.abs(Math.sin(G))+Et*Math.abs(Math.cos(G)))/s),fr=Math.ceil((pt*Math.abs(Math.cos(G))+Et*Math.abs(Math.sin(G)))/s),bn=fr*s,Lo=ht*s;Ne.setAttribute("width",bn),Ne.setAttribute("height",Lo),J&&(document.body.appendChild(Ne),se.save()),se.scale(1/U,1/U),se.translate(bn*U/2,Lo*U/2),se.rotate(-G),se.font=q+" "+(ce*U).toString(10)+"px "+n.fontFamily,se.fillStyle="#000",se.textBaseline="middle",se.fillText(I,Re*U,(Ze+ce*.5)*U);var UE=se.getImageData(0,0,bn,Lo).data;if(A())return!1;J&&(se.strokeRect(Re*U,Ze,ze*U,ke*U),se.restore());for(var bg=[],gi=fr,$r,Dp,Mp,Yt=[ht/2,fr/2,ht/2,fr/2];gi--;)for($r=ht;$r--;){Mp=s;e:for(;Mp--;)for(Dp=s;Dp--;)if(UE[(($r*s+Mp)*bn+(gi*s+Dp))*4+3]){bg.push([gi,$r]),gi<Yt[3]&&(Yt[3]=gi),gi>Yt[1]&&(Yt[1]=gi),$r<Yt[0]&&(Yt[0]=$r),$r>Yt[2]&&(Yt[2]=$r),J&&(se.fillStyle="rgba(255, 0, 0, 0.5)",se.fillRect(gi*s,$r*s,s-.5,s-.5));break e}J&&(se.fillStyle="rgba(0, 0, 255, 0.5)",se.fillRect(gi*s,$r*s,s-.5,s-.5))}return J&&(se.fillStyle="rgba(0, 255, 0, 0.5)",se.fillRect(Yt[3]*s,Yt[0]*s,(Yt[1]-Yt[3]+1)*s,(Yt[2]-Yt[0]+1)*s)),{mu:U,occupied:bg,bounds:Yt,gw:fr,gh:ht,fillTextOffsetX:Re,fillTextOffsetY:Ze,fillTextWidth:ze,fillTextHeight:ke,fontSize:ce}},re=function(I,P,G,fe,J){for(var ce=J.length;ce--;){var U=I+J[ce][0],q=P+J[ce][1];if(U>=d||q>=h||U<0||q<0){if(!n.drawOutOfBound)return!1;continue}if(!p[U][q])return!1}return!0},Ce=function(I,P,G,fe,J,ce,U,q,Ne,se){var ze=G.fontSize,ke;_?ke=_(fe,J,ze,ce,U,se):ke=n.color;var pt;x?pt=x(fe,J,ze,se):pt=n.fontWeight;var Et;S?Et=S(fe,J,ze,se):Et=n.classes,e.forEach(function(ur){if(ur.getContext){var dt=ur.getContext("2d"),Re=G.mu;dt.save(),dt.scale(1/Re,1/Re),dt.font=pt+" "+(ze*Re).toString(10)+"px "+n.fontFamily,dt.fillStyle=ke,dt.translate((I+G.gw/2)*s*Re,(P+G.gh/2)*s*Re),q!==0&&dt.rotate(-q),dt.textBaseline="middle",dt.fillText(fe,G.fillTextOffsetX*Re,(G.fillTextOffsetY+ze*.5)*Re),dt.restore()}else{var Ze=document.createElement("span"),ht="";ht="rotate("+-q/Math.PI*180+"deg) ",G.mu!==1&&(ht+="translateX(-"+G.fillTextWidth/4+"px) scale("+1/G.mu+")");var fr={position:"absolute",display:"block",font:pt+" "+ze*G.mu+"px "+n.fontFamily,left:(I+G.gw/2)*s+G.fillTextOffsetX+"px",top:(P+G.gh/2)*s+G.fillTextOffsetY+"px",width:G.fillTextWidth+"px",height:G.fillTextHeight+"px",lineHeight:ze+"px",whiteSpace:"nowrap",transform:ht,webkitTransform:ht,msTransform:ht,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};ke&&(fr.color=ke),Ze.textContent=fe;for(var bn in fr)Ze.style[bn]=fr[bn];if(Ne)for(var Lo in Ne)Ze.setAttribute(Lo,Ne[Lo]);Et&&(Ze.className+=Et),ur.appendChild(Ze)}})},ge=function(I,P,G,fe,J){if(!(I>=d||P>=h||I<0||P<0)){if(p[I][P]=!1,G){var ce=e[0].getContext("2d");ce.fillRect(I*s,P*s,l,l)}w&&(b[I][P]={item:J,dimension:fe})}},de=function(I,P,G,fe,J,ce){var U=J.occupied,q=n.drawMask,Ne;q&&(Ne=e[0].getContext("2d"),Ne.save(),Ne.fillStyle=n.maskColor);var se;if(w){var ze=J.bounds;se={x:(I+ze[3])*s,y:(P+ze[0])*s,w:(ze[1]-ze[3]+1)*s,h:(ze[2]-ze[0]+1)*s}}for(var ke=U.length;ke--;){var pt=I+U[ke][0],Et=P+U[ke][1];pt>=d||Et>=h||pt<0||Et<0||ge(pt,Et,q,se,ce)}q&&Ne.restore()},me=function z(I,P){if(P>20)return null;var G,fe,J;Array.isArray(I)?(G=I[0],fe=I[1]):(G=I.word,fe=I.weight,J=I.attributes);var ce=j(),U=V2(I),q=H(G,fe,ce,U);if(!q||A())return!1;if(!n.drawOutOfBound&&!n.shrinkToFit){var Ne=q.bounds;if(Ne[1]-Ne[3]+1>d||Ne[2]-Ne[0]+1>h)return!1}for(var se=v+1,ze=function(ur){var dt=Math.floor(ur[0]-q.gw/2),Re=Math.floor(ur[1]-q.gh/2),Ze=q.gw,ht=q.gh;return re(dt,Re,Ze,ht,q.occupied)?(Ce(dt,Re,q,G,fe,v-se,ur[2],ce,J,U),de(dt,Re,Ze,ht,q,I),{gx:dt,gy:Re,rot:ce,info:q}):!1};se--;){var ke=M(v-se);n.shuffle&&(ke=[].concat(ke),W2(ke));for(var pt=0;pt<ke.length;pt++){var Et=ze(ke[pt]);if(Et)return Et}}return n.shrinkToFit?(Array.isArray(I)?I[1]=I[1]*3/4:I.weight=I.weight*3/4,z(I,P+1)):null},Se=function(I,P,G){if(P)return!e.some(function(fe){var J=new CustomEvent(I,{cancelable:!0,detail:G||{}});return!fe.dispatchEvent(J)},this);e.forEach(function(fe){var J=new CustomEvent(I,{detail:G||{}});fe.dispatchEvent(J)},this)},Ee=function(){var I=e[0];if(I.getContext)d=Math.ceil(I.width/s),h=Math.ceil(I.height/s);else{var P=I.getBoundingClientRect();d=Math.ceil(P.width/s),h=Math.ceil(P.height/s)}if(Se("wordcloudstart",!0)){g=n.origin?[n.origin[0]/s,n.origin[1]/s]:[d/2,h/2],v=Math.floor(Math.sqrt(d*d+h*h)),p=[];var G,fe,J;if(!I.getContext||n.clearCanvas)for(e.forEach(function(Re){if(Re.getContext){var Ze=Re.getContext("2d");Ze.fillStyle=n.backgroundColor,Ze.clearRect(0,0,d*(s+1),h*(s+1)),Ze.fillRect(0,0,d*(s+1),h*(s+1))}else Re.textContent="",Re.style.backgroundColor=n.backgroundColor,Re.style.position="relative"}),G=d;G--;)for(p[G]=[],fe=h;fe--;)p[G][fe]=!0;else{var ce=document.createElement("canvas").getContext("2d");ce.fillStyle=n.backgroundColor,ce.fillRect(0,0,1,1);var U=ce.getImageData(0,0,1,1).data,q=I.getContext("2d").getImageData(0,0,d*s,h*s).data;G=d;for(var Ne,se;G--;)for(p[G]=[],fe=h;fe--;){se=s;e:for(;se--;)for(Ne=s;Ne--;)for(J=4;J--;)if(q[((fe*s+se)*d*s+(G*s+Ne))*4+J]!==U[J]){p[G][fe]=!1;break e}p[G][fe]!==!1&&(p[G][fe]=!0)}q=ce=U=void 0}if(n.hover||n.click){for(w=!0,G=d+1;G--;)b[G]=[];n.hover&&I.addEventListener("mousemove",D),n.click&&(I.addEventListener("click",O),I.addEventListener("touchstart",O),I.addEventListener("touchend",function(Re){Re.preventDefault()}),I.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),I.addEventListener("wordcloudstart",function Re(){I.removeEventListener("wordcloudstart",Re),I.removeEventListener("mousemove",D),I.removeEventListener("click",O),E=void 0})}J=0;var ze,ke,pt=!0;n.layoutAnimation?n.wait!==0?(ze=window.setTimeout,ke=window.clearTimeout):(ze=window.setImmediate,ke=window.clearImmediate):(ze=function(Re){Re()},ke=function(){pt=!1});var Et=function(Ze,ht){e.forEach(function(fr){fr.addEventListener(Ze,ht)},this)},ur=function(Ze,ht){e.forEach(function(fr){fr.removeEventListener(Ze,ht)},this)},dt=function Re(){ur("wordcloudstart",Re),ke(Qa[i])};Et("wordcloudstart",dt),Qa[i]=(n.layoutAnimation?ze:setTimeout)(function Re(){if(pt){if(J>=n.list.length){ke(Qa[i]),Se("wordcloudstop",!1),ur("wordcloudstart",dt),delete Qa[i];return}m=new Date().getTime();var Ze=me(n.list[J],0),ht=!Se("wordclouddrawn",!0,{item:n.list[J],drawn:Ze});if(A()||ht){ke(Qa[i]),n.abort(),Se("wordcloudabort",!1),Se("wordcloudstop",!1),ur("wordcloudstart",dt);return}J++,Qa[i]=ze(Re,n.wait)}},n.wait)}};Ee()};yg.isSupported=_g;yg.minFontSize=gg;var xg=yg;if(!xg.isSupported)throw new Error("Sorry your browser not support wordCloud");function H2(t){for(var e=t.getContext("2d"),r=e.getImageData(0,0,t.width,t.height),i=e.createImageData(r),n=0,o=0,a=0;a<r.data.length;a+=4){var s=r.data[a+3];if(s>128){var l=r.data[a]+r.data[a+1]+r.data[a+2];n+=l,++o}}for(var u=n/o,a=0;a<r.data.length;a+=4){var l=r.data[a]+r.data[a+1]+r.data[a+2],s=r.data[a+3];s<128||l>u?(i.data[a]=0,i.data[a+1]=0,i.data[a+2]=0,i.data[a+3]=0):(i.data[a]=255,i.data[a+1]=255,i.data[a+2]=255,i.data[a+3]=255)}e.putImageData(i,0,0)}cp(function(t,e){t.eachSeriesByType("wordCloud",function(r){var i=Kr.getLayoutRect(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),n=r.get("keepAspect"),o=r.get("maskImage"),a=o?o.width/o.height:1;n&&G2(i,a);var s=r.getData(),l=document.createElement("canvas");l.width=i.width,l.height=i.height;var u=l.getContext("2d");if(o)try{u.drawImage(o,0,0,l.width,l.height),H2(l)}catch(_){console.error("Invalid mask image"),console.error(_.toString())}var f=r.get("sizeRange"),c=r.get("rotationRange"),p=s.getDataExtent("value"),d=Math.PI/180,h=r.get("gridSize");xg(l,{list:s.mapArray("value",function(_,y){var x=s.getItemModel(y);return[s.getName(y),x.get("textStyle.fontSize",!0)||vp.linearMap(_,p,f),y]}).sort(function(_,y){return y[1]-_[1]}),fontFamily:r.get("textStyle.fontFamily")||r.get("emphasis.textStyle.fontFamily")||t.get("textStyle.fontFamily"),fontWeight:r.get("textStyle.fontWeight")||r.get("emphasis.textStyle.fontWeight")||t.get("textStyle.fontWeight"),gridSize:h,ellipticity:i.height/i.width,minRotation:c[0]*d,maxRotation:c[1]*d,clearCanvas:!o,rotateRatio:1,rotationStep:r.get("rotationStep")*d,drawOutOfBound:r.get("drawOutOfBound"),shrinkToFit:r.get("shrinkToFit"),layoutAnimation:r.get("layoutAnimation"),shuffle:!1,shape:r.get("shape")});function g(_){var y=_.detail.item;_.detail.drawn&&r.layoutInstance.ondraw&&(_.detail.drawn.gx+=i.x/h,_.detail.drawn.gy+=i.y/h,r.layoutInstance.ondraw(y[0],y[1],y[2],_.detail.drawn))}l.addEventListener("wordclouddrawn",g),r.layoutInstance&&r.layoutInstance.dispose();var v=e.__wordCloudRunningLayouts=e.__wordCloudRunningLayouts||{},m=r.seriesIndex;v[m]&&v[m].dispose(),r.layoutInstance={ondraw:null,dispose:function(){l.removeEventListener("wordclouddrawn",g),l.addEventListener("wordclouddrawn",function(_){_.preventDefault()})}},v[m]=r.layoutInstance})});Rl(function(t){var e=(t||{}).series;!Za.isArray(e)&&(e=e?[e]:[]);var r=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];Za.each(e,function(n){if(n&&n.type==="wordCloud"){var o=n.textStyle||{};i(o.normal),i(o.emphasis)}});function i(n){n&&Za.each(r,function(o){n.hasOwnProperty(o)&&(n["text"+gp.capitalFirst(o)]=n[o])})}});function G2(t,e){var r=t.width,i=t.height;r>i*e?(t.x+=(r-i*e)/2,t.width=i*e):(t.y+=(i-r/e)/2,t.height=r/e)}Wi([Wl,ig,og]);var Y2=150,X2=200;function IE(t){t.preventDefault()}var Cp=class{constructor(e,r){this.chartRegistry=e,this.handlers=r,this.highlightedWords=[],this.mustRestoreHighlightAfterLayout=!1,this.hasDrawnACloud=!1,this.measuredContainerSize=Dt({width:0,height:0},{equal:(i,n)=>i.width===n.width&&i.height===n.height}),this.drawnWords=Dt(null),this.containerSize=this.measuredContainerSize.asReadonly(),this.drawnWordCount=this.drawnWords.asReadonly()}attachTo(e){this.chart&&this.attachedContainer===e||(this.dispose(),this.attachedContainer=e,this.chart=L1(e),this.chart.on("finished",()=>{this.handlers.onLayoutFinished(),this.scheduleLayoutSettled()}),this.chart.on("click",r=>this.reportClickedWord(r)),this.chart.getZr().on("click",r=>this.reportClickBesideEveryWord(r)),this.chart.on("contextmenu",r=>this.reportRightClickedWord(r)),e.addEventListener("contextmenu",IE),this.chartRegistry.register(this.chart),this.measuredContainerSize.set({width:e.clientWidth,height:e.clientHeight}),this.publishEveryMeasuredSize(e))}reportRightClickedWord({name:e,event:r}){let i=r?.event;!e||!i||this.handlers.onWordRightClicked(e,i.clientX,i.clientY)}highlightWords(e){this.highlightedWords=e,this.applyHighlight()}restoreTheHighlightALayoutWiped(){this.mustRestoreHighlightAfterLayout&&(this.mustRestoreHighlightAfterLayout=!1,this.applyHighlight())}applyHighlight(){this.chart&&(this.chart.dispatchAction({type:"downplay",seriesIndex:0}),this.highlightedWords.length>0&&this.chart.dispatchAction({type:"highlight",seriesIndex:0,name:[...this.highlightedWords]}))}reportClickedWord({name:e}){e&&this.handlers.onWordClicked(e)}reportClickBesideEveryWord({target:e}){e||this.handlers.onBackgroundClicked()}render(e,r){if(this.cancelPendingRender(),!this.hasDrawnACloud){this.draw(e,r);return}this.renderTimeout=setTimeout(()=>{this.renderTimeout=void 0,this.draw(e,r)},Y2)}draw(e,r){this.hasMeasurableContainer()&&(this.hasDrawnACloud=!0,this.drawnWords.set(null),this.chart?.clear(),this.chart?.resize(),this.chart?.setOption(e,!0),this.mustRestoreHighlightAfterLayout=!0,r())}cancelPendingRender(){this.renderTimeout!==void 0&&(clearTimeout(this.renderTimeout),this.renderTimeout=void 0)}hasMeasurableContainer(){return this.attachedContainer!==void 0&&this.attachedContainer.clientWidth>0&&this.attachedContainer.clientHeight>0}dispose(){this.attachedContainer?.removeEventListener("contextmenu",IE),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.cancelPendingRender(),this.layoutSettleTimeout!==void 0&&clearTimeout(this.layoutSettleTimeout),this.drawnWords.set(null),this.hasDrawnACloud=!1,this.chart&&this.chartRegistry.unregister(this.chart),this.chart?.dispose(),this.chart=void 0,this.attachedContainer=void 0}publishEveryMeasuredSize(e){this.resizeObserver=new ResizeObserver(()=>{this.measuredContainerSize.set({width:e.clientWidth,height:e.clientHeight})}),this.resizeObserver.observe(e)}scheduleLayoutSettled(){this.layoutSettleTimeout!==void 0&&clearTimeout(this.layoutSettleTimeout),this.layoutSettleTimeout=setTimeout(()=>{this.layoutSettleTimeout=void 0,this.drawnWords.set(this.countWordsWithAGraphicElement()),this.restoreTheHighlightALayoutWiped()},X2)}countWordsWithAGraphicElement(){let e=this.chart?.getModel?.()?.getSeriesByIndex(0)?.getData();if(!e)return null;let r=0;for(let i=0;i<e.count();i++)e.getItemGraphicEl(i)&&r++;return r}};function RE(t,e){let r=t.slice(0,3).map(n=>n.text).join(", "),i=t.length===1?"domain term":"domain terms";return`Word cloud of ${t.length} ${i} for ${e}; largest: ${r}`}function AE(t,e){return t===null||t>=e?null:`${t} of ${e} words fit \u2014 enlarge the window, reduce word spacing, or enable "Fit all words" or "Draw outside bounds"`}var j2=["wordCloudCanvas"],K2=(t,e)=>e.text;function Z2(t,e){if(t&1){let r=Ut();Je(0,"div",2),_i("click",function(){$e(r);let n=we();return Qe(n.backgroundClicked.emit())}),Je(1,"p",3),oe(2),je(),Je(3,"button",4),_i("click",function(n){$e(r);let o=we();return Qe(o.showWholeMap(n))}),oe(4,"Show whole map"),je()()}if(t&2){let r=we();F(2),Br("No domain words for ",r.selectedNodeName(),". Select a folder or another file in the explorer.")}}function $2(t,e){if(t&1&&(Je(0,"output",8),oe(1),je()),t&2){let r=we(2);F(),Br(" ",r.droppedWordNotice()," ")}}function Q2(t,e){if(t&1&&(Je(0,"li"),oe(1),je()),t&2){let r=e.$implicit;F(),Ig("",r.text,": ",r.frequency)}}function J2(t,e){if(t&1&&(Je(0,"figure",5)(1,"figcaption",6),oe(2),je(),es(3,"div",7,0),je(),ot(5,$2,2,1,"output",8),Je(6,"ol",6),Qr(7,Q2,2,2,"li",null,K2),je()),t&2){let r=we();F(2),kt(r.description()),F(3),at(r.droppedWordNotice()?5:-1),F(2),Jr(r.topWordsForScreenReaders())}}var ek="(prefers-reduced-motion: reduce)";function tk(t,e){return t!==null&&t.container===e.container&&t.words===e.words&&t.settings===e.settings&&t.maskImage===e.maskImage&&t.containerWidth===e.containerWidth&&t.containerHeight===e.containerHeight}var Sg=(()=>{class t{constructor(){this.wordCloudReadStore=V(sy),this.viewReadinessStore=V(Hg),this.settings=_e(au),this.selectedNodePath=_e(null),this.customShapeMask=_e(null),this.markedWords=_e([]),this.clearSelection=Mt(),this.backgroundClicked=Mt(),this.wordRightClicked=Mt(),this.wordClicked=Mt(),this.canvasRef=eu("wordCloudCanvas"),this.chartHost=new Cp(V(Pp),{onLayoutFinished:()=>this.viewReadinessStore.markReady("domain"),onWordRightClicked:(r,i,n)=>this.wordRightClicked.emit({word:r,clientX:i,clientY:n}),onWordClicked:r=>this.wordClicked.emit(r),onBackgroundClicked:()=>this.backgroundClicked.emit()}),this.words=St(tu(this.selectedNodePath).pipe(Xl(r=>this.wordCloudReadStore.wordsForSelectedNode(r))),{initialValue:[]}),this.selectedNodeName=ue(()=>this.wordCloudReadStore.selectedNodeName(this.selectedNodePath())),this.renderedWords=ue(()=>ss(this.words(),this.settings().sizingMode,this.settings().topN)),this.droppedWordNotice=ue(()=>AE(this.chartHost.drawnWordCount(),this.renderedWords().length)),this.topWordsForScreenReaders=ue(()=>this.renderedWords().slice(0,10)),this.description=ue(()=>RE(this.renderedWords(),this.selectedNodeName())),this.prefersReducedMotion=typeof matchMedia=="function"&&matchMedia(ek).matches,this.logoMaskImage=Dt(null),this.customMaskImage=Dt(null),this.lastRenderedInputs=null,this.loadTheLogoMaskAndKeepTheCircleFallbackOnFailure(),ko(()=>this.loadTheUploadedShapeAndKeepTheCircleFallbackOnFailure()),ko(()=>this.renderIntoTheChartOnceTheContainerIsMeasured()),ko(()=>this.chartHost.highlightWords(this.markedWords()))}ngOnDestroy(){this.disposeChart()}disposeChart(){this.chartHost.dispose(),this.lastRenderedInputs=null}showWholeMap(r){r.stopPropagation(),this.clearSelection.emit()}renderIntoTheChartOnceTheContainerIsMeasured(){let r=this.words(),i=this.settings(),n=this.maskImageFor(i.shape),o=this.canvasRef()?.nativeElement;if(!o){this.disposeChart(),this.viewReadinessStore.markReady("domain");return}this.chartHost.attachTo(o);let{width:a,height:s}=this.chartHost.containerSize();if(a===0||s===0){this.chartHost.cancelPendingRender();return}let l={container:o,words:r,settings:i,maskImage:n,containerWidth:a,containerHeight:s};if(tk(this.lastRenderedInputs,l)){this.viewReadinessStore.markReady("domain");return}this.chartHost.render(yy(this.renderedWords(),i,{layoutAnimation:!this.prefersReducedMotion,containerWidth:a,maskImage:n}),()=>{this.lastRenderedInputs=l})}maskImageFor(r){if(r===ei.logoM)return this.logoMaskImage()??void 0;if(r===ei.custom)return this.customMaskImage()??void 0}loadTheLogoMaskAndKeepTheCircleFallbackOnFailure(){Hp(fy).then(r=>this.logoMaskImage.set(r)).catch(()=>{})}loadTheUploadedShapeAndKeepTheCircleFallbackOnFailure(){let r=this.customShapeMask();if(r===null){this.customMaskImage.set(null);return}Hp(r).then(i=>this.customMaskImage.set(i)).catch(()=>this.customMaskImage.set(null))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=De({type:t,selectors:[["cc-word-cloud"]],viewQuery:function(i,n){i&1&&Zl(n.canvasRef,j2,5),i&2&&$l()},hostAttrs:[1,"relative","block","h-full","w-full"],inputs:{settings:[1,"settings"],selectedNodePath:[1,"selectedNodePath"],customShapeMask:[1,"customShapeMask"],markedWords:[1,"markedWords"]},outputs:{clearSelection:"clearSelection",backgroundClicked:"backgroundClicked",wordRightClicked:"wordRightClicked",wordClicked:"wordClicked"},decls:2,vars:1,consts:[["wordCloudCanvas",""],["data-testid","word-cloud-empty-state",1,"flex","h-full","w-full","flex-col","items-center","justify-center","gap-3","px-6","text-center"],["data-testid","word-cloud-empty-state",1,"flex","h-full","w-full","flex-col","items-center","justify-center","gap-3","px-6","text-center",3,"click"],[1,"text-sm","opacity-60"],["type","button",1,"btn","btn-sm","btn-primary",3,"click"],[1,"h-full","w-full"],[1,"sr-only"],[1,"word-cloud-canvas","relative","h-full","w-full"],["data-testid","word-cloud-dropped-word-notice",1,"pointer-events-none","absolute","bottom-2","left-1/2","-translate-x-1/2","whitespace-nowrap","rounded-lg","bg-base-200/90","px-3","py-1","text-xs","opacity-80"]],template:function(i,n){i&1&&ot(0,Z2,5,1,"div",1)(1,J2,9,2),i&2&&at(n.words().length===0?0:1)},encapsulation:2})}}return t})();var Tp={id:"words",label:"Words",icon:"fa-solid fa-font",searchPlaceholder:"payment, invoice",searchAriaLabel:"Search words"},NE=[cu,Tp];var wg=(()=>{class t{constructor(){this.store=V(Ot),this.pathsWithDomainWords=St(this.store.select(h_),{requireSync:!0})}project(r){return U_(r,{pathsWithDomainWords:this.pathsWithDomainWords()})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=He({token:t,factory:t.\u0275fac})}}return t})();var rk=Gi(nu,Lp,(t,e)=>new Set(kg(t,e).map(r=>r.path))),LE={patternSelector:Lp,setPattern:r_,searchedNodePathsSelector:rk};var ik=5,nk="No domain words",Cg=(()=>{class t{constructor(){this.store=V(Ot),this.domainSelectionStore=V(Vo),this.domainBarReadStore=V(wt),this.hoverTooltipService=V(Fg),this.domainWordIndex=St(this.store.select(d_),{requireSync:!0}),this.clearsSelectionOnCollapse=!1}isSelected(r){return this.domainSelectionStore.selectedNodePath()===r.path}isHovered(){return!1}select(r){this.domainSelectionStore.select(r.path)}deselect(){this.domainSelectionStore.clear()}hover(r,i){let n=this.domainBarReadStore.settings().sizingMode,o=this.topWords(r.path,n);this.hoverTooltipService.show({title:r.name,rows:o.length>0?o.map(a=>({label:a.text,value:`${yi(a,n)}`})):[{label:nk,value:""}]},i.right,i.top)}hoverEnd(){this.hoverTooltipService.hide()}topWords(r,i){return ss(this.domainWordIndex().wordsOf(r),i,ik)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=He({token:t,factory:t.\u0275fac})}}return t})();var PE={options:[Np.NAME,Np.NUMBER_OF_FILES],optionSelector:Xg,ascendingSelector:qg,setOption:s_,toggleAscending:t=>l_({value:!t})};var ok=(t,e)=>Gi(nu,r=>P_(V_(r),t,e)),Tg=(()=>{class t{constructor(){this.store=V(Ot)}rootNodeFor(r,i){return this.store.select(ok(r,i))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=He({token:t,factory:t.\u0275fac})}}return t})();var kE=(()=>{class t{constructor(){this.domainSelectionStore=V(Vo),this.revealService=V(I_),this.modeService=V(pu),W_("domain",r=>this.showNode(r))}showNode(r){this.modeService.activate(cu.id),this.domainSelectionStore.select(r),this.revealService.revealNode(r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=Dg({type:t,selectors:[["","ccShowsHandedOverNode",""]]})}}return t})();var FE=(()=>{class t{constructor(){this.inspected=Dt(null),this.inspectedWord=this.inspected.asReadonly()}inspect(r){this.inspected.set(r)}toggle(r){this.inspected.update(i=>i===r?null:r)}clear(){this.inspected.set(null)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=He({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var bp=(()=>{class t{constructor(){this.querySubject=new Yl(""),this.pattern$=this.querySubject.asObservable(),this.isPatternEmpty$=this.pattern$.pipe(Ja(r=>r.trim().length===0))}setPattern(r){this.querySubject.next(r)}resetPattern(){this.setPattern("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=He({token:t,factory:t.\u0275fac})}}return t})();var BE={[ir.OCCURRENCES]:!1,[ir.NAME]:!0,[ir.RELEVANCE]:!1},sk={option:ir.OCCURRENCES,ascending:BE[ir.OCCURRENCES]},Ep=(()=>{class t{constructor(){this.sortingSubject=new Yl(sk),this.options=Object.values(ir),this.sorting$=this.sortingSubject.asObservable(),this.option$=this.sorting$.pipe(Ja(({option:r})=>r)),this.ascending$=this.sorting$.pipe(Ja(({ascending:r})=>r))}setOption(r){this.sortingSubject.next({option:r,ascending:BE[r]})}toggleAscending(){let{ascending:r}=this.sortingSubject.value;this.sortingSubject.next(Gl(Hl({},this.sortingSubject.value),{ascending:!r}))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=He({token:t,factory:t.\u0275fac})}}return t})();function zE(t,e,r,i){let n=i&&r.trim().length>0?is(e,r).map(({text:o})=>o):[];return t===null||n.includes(t)?n:[t,...n]}function lk(t,e){if(t&1){let r=Ut();Y(0,"span",12),oe(1),X(),Y(2,"button",13),Te("click",function(){$e(r);let n=we();return Qe(n.copySelectedPath())}),Fe(3,"i",14),X()}if(t&2){let r=we();ee("title",r.selectedNodePath()),F(),Br(" ",r.selectedNodePath()," "),F(),ee("title",r.copied()?"Copied!":"Copy path"),F(),Ql("fa-copy",!r.copied())("fa-check",r.copied())}}function uk(t,e){if(t&1&&(Y(0,"span",5),oe(1),X()),t&2){let r=we();F(),kt(r.selectedNodeName()||"No selection")}}var gQ=(()=>{class t{constructor(){this.domainBarReadStore=V(wt),this.customShapeMaskStore=V(rs),this.explorerCollapseService=V(T_),this.explorerModeService=V(pu),this.domainSelectionStore=V(Vo),this.domainWordInspectionStore=V(FE),this.domainWordQueryStore=V(bp),this.domainWordSortStore=V(Ep),this.wordOccurrencesReadStore=V(On),this.hiddenWordsReadStore=V(ns),this.hiddenWordsWriteStore=V(os),this.clipboard=V(ts),this.settings=this.domainBarReadStore.settings,this.customShapeMask=this.customShapeMaskStore.dataUri,this.copied=this.clipboard.copied,this.selectedNodePath=this.domainSelectionStore.selectedNodePath,this.selectedNodeName=ue(()=>ru(this.selectedNodePath(),"")),this.hiddenWordCount=ue(()=>this.hiddenWordsReadStore.hiddenWords().length),this.hiddenWordsTooltip=ue(()=>this.hiddenWordCount()===0?"No word is hidden":`${this.hiddenWordCount()} hidden from the cloud and the word list`),this.rightClickedWord=Dt(null),this.inspectedWord=this.domainWordInspectionStore.inspectedWord,this.wordQuery=St(this.domainWordQueryStore.pattern$,{requireSync:!0}),this.wordSorting=St(this.domainWordSortStore.sorting$,{requireSync:!0}),this.projectWords=St(this.wordOccurrencesReadStore.projectWords$,{requireSync:!0}),this.markedWords=ue(()=>zE(this.inspectedWord(),this.projectWords(),this.wordQuery(),!this.explorerModeService.isFilesMode()))}showWordOccurrences(r){this.explorerModeService.activate(Tp.id),this.explorerCollapseService.expand(),this.domainWordInspectionStore.inspect(r)}searchForWord(r){this.explorerModeService.activate(Tp.id),this.explorerCollapseService.expand(),this.domainWordQueryStore.setPattern(r)}toggleInspectedWord(r){this.domainWordInspectionStore.toggle(r)}hideWord(r){this.inspectedWord()===r&&this.domainWordInspectionStore.toggle(r),this.hiddenWordsWriteStore.hide(r)}closeWordMenu(){this.rightClickedWord.set(null)}selectNode(r){this.domainSelectionStore.select(r)}clearSelection(){this.domainSelectionStore.clear()}deselect(){this.domainWordInspectionStore.clear(),this.domainSelectionStore.clear()}async copySelectedPath(){let r=this.selectedNodePath();r&&await this.clipboard.copy(r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=De({type:t,selectors:[["cc-domain-view"]],features:[Jl([wg,{provide:M_,useExisting:wg},Cg,{provide:O_,useExisting:Cg},kp,{provide:R_,useExisting:kp},Tg,{provide:D_,useExisting:Tg},F_(PE),k_(LE),{provide:S_,useValue:{showRules:!1,showSearch:!0,showCounts:!1,modes:NE}},bp,{provide:w_,useExisting:bp},Ep,{provide:E_,useExisting:Ep},{provide:B_,useValue:{showMapActions:!1,jumpTargetView:"metrics"}},ts,L_("domain"),Yg()]),ql([kE])],decls:16,vars:14,consts:[["view","domain"],["headerChips","",1,"flex","items-stretch","border","border-base-300","mx-2","mt-2","rounded-md","overflow-hidden"],["label","Hidden","popoverId","domain-hidden-words","anchorName","domain-hidden-words-chip",3,"count","tooltip"],["explorerPopovers","","popoverId","domain-hidden-words","anchorName","domain-hidden-words-chip"],["collapsedContent","",1,"flex","flex-1","min-w-0","items-center","gap-1"],[1,"flex-1","min-w-0","truncate","text-xs","opacity-50"],["modeBody","",3,"wordToggled","nodeClicked","query","sorting","expandedWord","selectedNodePath"],[1,"fixed","inset-x-0","top-[var(--cc-bars-height,49px)]","bottom-[var(--cc-bottom-bar-height,32px)]"],[3,"clearSelection","backgroundClicked","wordClicked","wordRightClicked","settings","customShapeMask","selectedNodePath","markedWords"],[1,"absolute","right-[10px]","top-[10px]","z-10","flex"],[3,"searchWord","hideWord","closed","rightClickedWord"],[3,"showSelectedWhenNotHovered","selectedNodePath"],["data-testid","explorer-collapsed-path",1,"flex-1","min-w-0","truncate","text-xs","opacity-70",3,"title"],["type","button","data-testid","explorer-copy-path-button",1,"btn","btn-ghost","btn-sm","btn-square","shrink-0",3,"click","title"],[1,"fa"]],template:function(i,n){i&1&&(Fe(0,"cc-loading-file-progress-spinner",0),Y(1,"cc-sidebar-explorer")(2,"div",1),Fe(3,"cc-explorer-count-chip",2),X(),Fe(4,"cc-hidden-words-popover",3),Y(5,"div",4),ot(6,lk,4,7)(7,uk,2,1,"span",5),X(),Y(8,"cc-domain-word-list",6),Te("wordToggled",function(a){return n.toggleInspectedWord(a)})("nodeClicked",function(a){return n.selectNode(a)}),X()(),Y(9,"div",7)(10,"cc-word-cloud",8),Te("clearSelection",function(){return n.clearSelection()})("backgroundClicked",function(){return n.deselect()})("wordClicked",function(a){return n.showWordOccurrences(a)})("wordRightClicked",function(a){return n.rightClickedWord.set(a)}),X(),Fe(11,"cc-domain-toolbox",9),X(),Fe(12,"cc-node-context-menu"),Y(13,"cc-domain-word-menu",10),Te("searchWord",function(a){return n.searchForWord(a)})("hideWord",function(a){return n.hideWord(a)})("closed",function(){return n.closeWordMenu()}),X(),Fe(14,"cc-bottom-bar",11)(15,"cc-domain-bar")),i&2&&(F(3),ee("count",n.hiddenWordCount())("tooltip",n.hiddenWordsTooltip()),F(3),at(n.selectedNodePath()?6:7),F(2),ee("query",n.wordQuery())("sorting",n.wordSorting())("expandedWord",n.inspectedWord())("selectedNodePath",n.selectedNodePath()),F(2),ee("settings",n.settings())("customShapeMask",n.customShapeMask())("selectedNodePath",n.selectedNodePath())("markedWords",n.markedWords()),F(3),ee("rightClickedWord",n.rightClickedWord()),F(),ee("showSelectedWhenNotHovered",!0)("selectedNodePath",n.selectedNodePath()))},dependencies:[N_,Sg,Fp,Bp,zp,z_,Vp,Wp,x_,y_,Gg],encapsulation:2})}}return t})();export{gQ as DomainViewComponent};