@bkm016/basalt 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +275 -2
- package/chunk-09vr609h.js +2 -0
- package/chunk-0hbjv3y6.js +11 -0
- package/chunk-0qqb6v41.js +3753 -0
- package/chunk-0szjy61m.js +2 -0
- package/chunk-0yytz0r1.js +59 -0
- package/chunk-1aspj1hn.js +3 -0
- package/chunk-1b7gbe8g.js +10 -0
- package/chunk-1v7st27a.js +25 -0
- package/chunk-1yzt0qm0.js +2 -0
- package/chunk-2bb01ddq.js +16 -0
- package/chunk-2wkaw73s.js +9 -0
- package/chunk-2zqny2sy.js +2 -0
- package/chunk-32at88hc.js +3 -0
- package/chunk-3m7qwfm3.js +7 -0
- package/chunk-44ek81ad.js +3 -0
- package/chunk-45cz26ap.js +39 -0
- package/chunk-501zkf9b.js +3 -0
- package/chunk-58vz2qsq.js +2 -0
- package/chunk-6e49xsf5.js +3 -0
- package/chunk-6qertm2t.js +3 -0
- package/chunk-8dxzqwq3.js +2 -0
- package/chunk-9mmz6wt3.js +2 -0
- package/chunk-a3tqx584.js +10 -0
- package/chunk-a6r4z44b.js +2 -0
- package/chunk-a8nyk4k9.js +2 -0
- package/chunk-agntrqs9.js +2 -0
- package/chunk-bhqyxyap.js +3 -0
- package/chunk-bpw6q7g0.js +3 -0
- package/chunk-c25s4w6a.js +5 -0
- package/chunk-cv5wsd9m.js +8 -0
- package/chunk-d48bfd2e.js +3 -0
- package/chunk-dakrpbe6.js +3 -0
- package/chunk-dhm42y04.js +7 -0
- package/chunk-exnn1867.js +2 -0
- package/chunk-f7egr55n.js +31 -0
- package/chunk-g2t6t8fk.js +3 -0
- package/chunk-h6sw8fbt.js +5 -0
- package/chunk-hat3s3pr.js +3 -0
- package/chunk-hcn9cf6v.js +2 -0
- package/chunk-jhd54p1b.js +3 -0
- package/chunk-k7w7ac9q.js +18 -0
- package/chunk-kf8hq21a.js +25 -0
- package/chunk-kfq8wyd3.js +3 -0
- package/chunk-n6e43rvk.js +3 -0
- package/chunk-nt2gntad.js +2 -0
- package/chunk-pmc3y1z8.js +2 -0
- package/chunk-pvncysbb.js +3 -0
- package/chunk-q8zx3kt6.js +2 -0
- package/chunk-qczbfccb.js +12 -0
- package/chunk-qnr1f5pj.js +3 -0
- package/chunk-qx0m82rw.js +2 -0
- package/chunk-r9aatvwm.js +3 -0
- package/chunk-rm3kcxq9.js +20 -0
- package/chunk-rv06x0kn.js +7 -0
- package/chunk-ry0z4ev6.js +2 -0
- package/chunk-s37s3k24.js +12 -0
- package/chunk-sh74qzvt.js +5 -0
- package/chunk-szat3vp4.js +3 -0
- package/chunk-t057xfrt.js +5 -0
- package/chunk-tvm4zmgj.js +3 -0
- package/chunk-v9fea96h.js +3 -0
- package/chunk-vgvq3q12.js +3 -0
- package/chunk-vkkj4awb.js +2 -0
- package/chunk-vv7fp27r.js +3 -0
- package/chunk-wjd9fr23.js +2 -0
- package/chunk-wx7kdf0b.js +2 -0
- package/chunk-x3dnb9sz.js +3 -0
- package/chunk-xsbxykr4.js +2 -0
- package/chunk-xysny0ve.js +3 -0
- package/chunk-y69ewdn2.js +3 -0
- package/chunk-yskm0hsy.js +2 -0
- package/chunk-zef13k3h.js +471 -0
- package/cli.js +89 -0
- package/compiled.js +23 -0
- package/icon-dp9pmcvp.png +0 -0
- package/package.json +21 -4
- package/ui-test-worker.js +226 -0
- package/web/KaTeX_AMS-Regular-n7eqehx2.woff2 +0 -0
- package/web/KaTeX_Caligraphic-Bold-20r3b6fv.woff2 +0 -0
- package/web/KaTeX_Caligraphic-Regular-kkjm8f18.woff2 +0 -0
- package/web/KaTeX_Fraktur-Bold-pz5vg4t0.woff2 +0 -0
- package/web/KaTeX_Fraktur-Regular-a1e9wkwk.woff2 +0 -0
- package/web/KaTeX_Main-Bold-mcp098h8.woff2 +0 -0
- package/web/KaTeX_Main-BoldItalic-fy74z249.woff2 +0 -0
- package/web/KaTeX_Main-Italic-hw2gxy7f.woff2 +0 -0
- package/web/KaTeX_Main-Regular-xvp1b75c.woff2 +0 -0
- package/web/KaTeX_Math-BoldItalic-mf5nf33d.woff2 +0 -0
- package/web/KaTeX_Math-Italic-ap60jrna.woff2 +0 -0
- package/web/KaTeX_SansSerif-Bold-we3bymb6.woff2 +0 -0
- package/web/KaTeX_SansSerif-Italic-ent92bjx.woff2 +0 -0
- package/web/KaTeX_SansSerif-Regular-0573pbz9.woff2 +0 -0
- package/web/KaTeX_Script-Regular-z2rtj6vq.woff2 +0 -0
- package/web/KaTeX_Size1-Regular-dfr3w1hv.woff2 +0 -0
- package/web/KaTeX_Size2-Regular-kted78zb.woff2 +0 -0
- package/web/KaTeX_Size3-Regular-e6k1k5jk.woff2 +0 -0
- package/web/KaTeX_Size4-Regular-abedc1pd.woff2 +0 -0
- package/web/KaTeX_Typewriter-Regular-scw9zx1z.woff2 +0 -0
- package/web/apple-touch-icon-7dkm33qp.png +0 -0
- package/web/apple-touch-icon.png +0 -0
- package/web/chunk-05w4fyzc.js +1 -0
- package/web/chunk-0mrkjnte.js +1 -0
- package/web/chunk-0pbjgdgp.js +2 -0
- package/web/chunk-0s80zw00.js +1 -0
- package/web/chunk-0vt9fg48.js +2 -0
- package/web/chunk-20q90epj.js +2 -0
- package/web/chunk-22a4ety5.js +1 -0
- package/web/chunk-24mfx6w1.js +2 -0
- package/web/chunk-2j4m0bh1.js +2 -0
- package/web/chunk-2m12wyrb.js +16 -0
- package/web/chunk-2msj52w6.js +1 -0
- package/web/chunk-2ps6mepk.js +120 -0
- package/web/chunk-2pver6r4.js +1 -0
- package/web/chunk-2scce33n.js +1 -0
- package/web/chunk-37ajk6zg.js +2 -0
- package/web/chunk-3ee04tmm.js +200 -0
- package/web/chunk-3jhyzmnf.js +292 -0
- package/web/chunk-45fzdcgz.js +30 -0
- package/web/chunk-4gavbw65.js +1 -0
- package/web/chunk-4ks96e4r.js +1 -0
- package/web/chunk-4rm1vy7w.js +1 -0
- package/web/chunk-4v8en1yw.js +40 -0
- package/web/chunk-4wd9r73y.js +1 -0
- package/web/chunk-4wkm9fda.js +1 -0
- package/web/chunk-54thej0t.js +2 -0
- package/web/chunk-59kqahb3.js +1 -0
- package/web/chunk-5vw9rs4r.js +4 -0
- package/web/chunk-6beqrmtq.js +1 -0
- package/web/chunk-6m69hczt.js +2 -0
- package/web/chunk-70qwwwak.js +2 -0
- package/web/chunk-74j07k8k.js +2 -0
- package/web/chunk-8g239029.js +1 -0
- package/web/chunk-8p4tc9f4.js +70 -0
- package/web/chunk-90kp4pnz.js +2 -0
- package/web/chunk-9an7cjd9.js +291 -0
- package/web/chunk-9dxjafp2.js +78 -0
- package/web/chunk-9p12mgs6.js +2 -0
- package/web/chunk-9v1f6yc8.js +1 -0
- package/web/chunk-9yakxvjb.js +2 -0
- package/web/chunk-a1z5qx1r.js +36 -0
- package/web/chunk-a3verqw9.js +214 -0
- package/web/chunk-a5x2zveg.js +7 -0
- package/web/chunk-ad6x47yy.js +1 -0
- package/web/chunk-amzgyy1k.js +1 -0
- package/web/chunk-b1pe46zz.js +2 -0
- package/web/chunk-b4wbk7vc.js +217 -0
- package/web/chunk-bc78qf1m.js +7 -0
- package/web/chunk-bgnnrpna.js +89 -0
- package/web/chunk-bj90t5gh.js +99 -0
- package/web/chunk-bjkc94mv.js +1 -0
- package/web/chunk-ca682sm6.js +370 -0
- package/web/chunk-cff5hcm8.js +8 -0
- package/web/chunk-cg3jterp.js +2 -0
- package/web/chunk-d18r4m14.js +141 -0
- package/web/chunk-dmqtdeb4.js +1 -0
- package/web/chunk-dt462hk9.js +332 -0
- package/web/chunk-dy2gm1fs.js +1 -0
- package/web/chunk-dzwxgqgm.js +39 -0
- package/web/chunk-e32y85kx.js +1 -0
- package/web/chunk-e53wfgb8.js +1 -0
- package/web/chunk-e6jxqbv7.js +3 -0
- package/web/chunk-esp1mmgr.js +1 -0
- package/web/chunk-ew3cgdtd.js +1 -0
- package/web/chunk-f26smjjf.js +2 -0
- package/web/chunk-f91wzwtk.js +1 -0
- package/web/chunk-fk0dh93x.js +89 -0
- package/web/chunk-fm2ybfj5.js +98 -0
- package/web/chunk-fscafg24.js +34 -0
- package/web/chunk-fz06t6km.js +55 -0
- package/web/chunk-g1ev11wx.js +1 -0
- package/web/chunk-g4azyef7.js +106 -0
- package/web/chunk-gjq1pxw3.js +1 -0
- package/web/chunk-gqw3f02j.js +140 -0
- package/web/chunk-h5ejbf6e.js +1 -0
- package/web/chunk-hev4hq89.js +2 -0
- package/web/chunk-hfaffkrh.js +1 -0
- package/web/chunk-hp167dbv.js +1 -0
- package/web/chunk-j2vt8c8v.js +1 -0
- package/web/chunk-jjh5jvva.js +1 -0
- package/web/chunk-jrcyc9s9.js +38 -0
- package/web/chunk-jwzd9tzk.js +24 -0
- package/web/chunk-k5btcvbg.js +1 -0
- package/web/chunk-ka3q31t1.js +1 -0
- package/web/chunk-kdyjnwdx.js +2 -0
- package/web/chunk-kpvgecwy.js +1 -0
- package/web/chunk-kq40ss39.js +1 -0
- package/web/chunk-m2d1sp30.js +1 -0
- package/web/chunk-n1dmrz44.js +2 -0
- package/web/chunk-n90cqdvg.js +2 -0
- package/web/chunk-nj0cv1cq.js +257 -0
- package/web/chunk-nzey7cpv.js +1 -0
- package/web/chunk-p3b9crsa.js +2 -0
- package/web/chunk-pf2ab8p8.js +1 -0
- package/web/chunk-pxe3vna4.js +1 -0
- package/web/chunk-q0p5xqe1.js +84 -0
- package/web/chunk-q5ke7a33.js +24 -0
- package/web/chunk-q7dsnvpf.js +1 -0
- package/web/chunk-qd8bxxdj.js +1 -0
- package/web/chunk-qefasa1j.js +2 -0
- package/web/chunk-qh7265qw.js +4 -0
- package/web/chunk-qnaqf0cr.js +1 -0
- package/web/chunk-r1dnh0s8.js +1 -0
- package/web/chunk-r5eakmw6.js +1 -0
- package/web/chunk-rg426vkf.js +1 -0
- package/web/chunk-rpmpttbk.js +12 -0
- package/web/chunk-rtf2zzzv.js +1 -0
- package/web/chunk-ry9256r7.js +1 -0
- package/web/chunk-rykfak98.js +2 -0
- package/web/chunk-scpwc9ev.js +1 -0
- package/web/chunk-srrfphes.js +1 -0
- package/web/chunk-ss1bcb0n.js +2 -0
- package/web/chunk-ssy07dd2.js +1 -0
- package/web/chunk-t6agpn2z.js +1 -0
- package/web/chunk-taynqrgq.js +142 -0
- package/web/chunk-tgpbhzn9.js +1 -0
- package/web/chunk-tmvakq7n.js +19 -0
- package/web/chunk-tqmwd9qp.js +139 -0
- package/web/chunk-ts7zrf5b.js +2 -0
- package/web/chunk-ttg6tbwx.js +2 -0
- package/web/chunk-v28fx2nd.js +1 -0
- package/web/chunk-v5cnt7c8.js +1 -0
- package/web/chunk-vt40e1kp.js +1136 -0
- package/web/chunk-w53rba6g.js +1 -0
- package/web/chunk-w86n42dy.js +1 -0
- package/web/chunk-w880psmw.js +1 -0
- package/web/chunk-wptv8atc.js +2 -0
- package/web/chunk-wtawdeej.css +1 -0
- package/web/chunk-xbty0rv7.js +41 -0
- package/web/chunk-xet1jjy9.js +1 -0
- package/web/chunk-xjxv8dg8.js +169 -0
- package/web/chunk-xrxne80b.js +62 -0
- package/web/chunk-xzp7jf7e.js +2 -0
- package/web/chunk-y0m8hrwz.js +303 -0
- package/web/chunk-y49fhfda.js +7 -0
- package/web/chunk-yd46jhqv.js +1 -0
- package/web/chunk-ydtrc1ay.js +2 -0
- package/web/chunk-z09emmrb.js +1 -0
- package/web/chunk-z7dcbxws.js +1 -0
- package/web/chunk-zbj1trar.js +2 -0
- package/web/chunk-zde7mj43.js +1 -0
- package/web/icon-192.png +0 -0
- package/web/icon-512.png +0 -0
- package/web/icon-maskable-512.png +0 -0
- package/web/icon-yx2p2pye.svg +13 -0
- package/web/icon.svg +13 -0
- package/web/index.html +23 -0
- package/web/install.ps1 +91 -0
- package/web/install.sh +177 -0
- package/web/inter-latin-wght-normal-an0py913.woff2 +0 -0
- package/web/jetbrains-mono-latin-wght-normal-hj2e42wt.woff2 +0 -0
- package/web/manifest-txf6vfbq.webmanifest +35 -0
- package/web/manifest.webmanifest +35 -0
- package/web/source-serif-4-latin-wght-italic-ta5tqqvz.woff2 +0 -0
- package/web/source-serif-4-latin-wght-normal-1yyvbhsz.woff2 +0 -0
- package/web/sw.js +90 -0
- package/worker.js +2 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import{Ce,Se,At,o,j,i,a,t,_}from"./chunk-vt40e1kp.js";import{Fr}from"./chunk-70qwwwak.js";var bV=Se(function(VC,UC){(function(n,e){typeof VC==="object"&&typeof UC<"u"?UC.exports=e():typeof define==="function"&&define.amd?define(e):n.JSON5=e()})(VC,function(){function n(Y,J){return J={exports:{}},Y(J,J.exports),J.exports}var e=n(function(Y){var J=Y.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=J}),r=n(function(Y){var J=Y.exports={version:"2.6.5"};if(typeof __e=="number")__e=J}),s=r.version,l=function(Y){return typeof Y==="object"?Y!==null:typeof Y==="function"},u=function(Y){if(!l(Y))throw TypeError(Y+" is not an object!");return Y},f=function(Y){try{return!!Y()}catch(J){return!0}},c=!f(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),p=e.document,v=l(p)&&l(p.createElement),h=function(Y){return v?p.createElement(Y):{}},d=!c&&!f(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!=7}),m=function(Y,J){if(!l(Y))return Y;var Pe,we;if(J&&typeof(Pe=Y.toString)=="function"&&!l(we=Pe.call(Y)))return we;if(typeof(Pe=Y.valueOf)=="function"&&!l(we=Pe.call(Y)))return we;if(!J&&typeof(Pe=Y.toString)=="function"&&!l(we=Pe.call(Y)))return we;throw TypeError("Can't convert object to primitive value")},g=Object.defineProperty,y=c?Object.defineProperty:function(J,Pe,we){if(u(J),Pe=m(Pe,!0),u(we),d)try{return g(J,Pe,we)}catch(Xe){}if("get"in we||"set"in we)throw TypeError("Accessors not supported!");if("value"in we)J[Pe]=we.value;return J},x={f:y},S=function(Y,J){return{enumerable:!(Y&1),configurable:!(Y&2),writable:!(Y&4),value:J}},D=c?function(Y,J,Pe){return x.f(Y,J,S(1,Pe))}:function(Y,J,Pe){return Y[J]=Pe,Y},b={}.hasOwnProperty,C=function(Y,J){return b.call(Y,J)},A=0,T=Math.random(),E=function(Y){return"Symbol(".concat(Y===void 0?"":Y,")_",(++A+T).toString(36))},w=!1,L=n(function(Y){var J="__core-js_shared__",Pe=e[J]||(e[J]={});(Y.exports=function(we,Xe){return Pe[we]||(Pe[we]=Xe!==void 0?Xe:{})})("versions",[]).push({version:r.version,mode:w?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),M=L("native-function-to-string",Function.toString),P=n(function(Y){var J=E("src"),Pe="toString",we=(""+M).split(Pe);r.inspectSource=function(Xe){return M.call(Xe)},(Y.exports=function(Xe,st,vt,Yr){var yr=typeof vt=="function";if(yr)C(vt,"name")||D(vt,"name",st);if(Xe[st]===vt)return;if(yr)C(vt,J)||D(vt,J,Xe[st]?""+Xe[st]:we.join(String(st)));if(Xe===e)Xe[st]=vt;else if(!Yr)delete Xe[st],D(Xe,st,vt);else if(Xe[st])Xe[st]=vt;else D(Xe,st,vt)})(Function.prototype,Pe,function(){return typeof this=="function"&&this[J]||M.call(this)})}),R=function(Y){if(typeof Y!="function")throw TypeError(Y+" is not a function!");return Y},N=function(Y,J,Pe){if(R(Y),J===void 0)return Y;switch(Pe){case 1:return function(we){return Y.call(J,we)};case 2:return function(we,Xe){return Y.call(J,we,Xe)};case 3:return function(we,Xe,st){return Y.call(J,we,Xe,st)}}return function(){return Y.apply(J,arguments)}},O="prototype",B=function(Y,J,Pe){var we=Y&B.F,Xe=Y&B.G,st=Y&B.S,vt=Y&B.P,Yr=Y&B.B,yr=Xe?e:st?e[J]||(e[J]={}):(e[J]||{})[O],Ys=Xe?r:r[J]||(r[J]={}),mu=Ys[O]||(Ys[O]={}),xa,$a,Xr,gu;if(Xe)Pe=J;for(xa in Pe){if($a=!we&&yr&&yr[xa]!==void 0,Xr=($a?yr:Pe)[xa],gu=Yr&&$a?N(Xr,e):vt&&typeof Xr=="function"?N(Function.call,Xr):Xr,yr)P(yr,xa,Xr,Y&B.U);if(Ys[xa]!=Xr)D(Ys,xa,gu);if(vt&&mu[xa]!=Xr)mu[xa]=Xr}};e.core=r,B.F=1,B.G=2,B.S=4,B.P=8,B.B=16,B.W=32,B.U=64,B.R=128;var F=B,{ceil:z,floor:H}=Math,G=function(Y){return isNaN(Y=+Y)?0:(Y>0?H:z)(Y)},Z=function(Y){if(Y==null)throw TypeError("Can't call method on "+Y);return Y},Q=function(Y){return function(J,Pe){var we=String(Z(J)),Xe=G(Pe),st=we.length,vt,Yr;if(Xe<0||Xe>=st)return Y?"":void 0;return vt=we.charCodeAt(Xe),vt<55296||vt>56319||Xe+1===st||(Yr=we.charCodeAt(Xe+1))<56320||Yr>57343?Y?we.charAt(Xe):vt:Y?we.slice(Xe,Xe+2):(vt-55296<<10)+(Yr-56320)+65536}},q=Q(!1);F(F.P,"String",{codePointAt:function(J){return q(this,J)}});var ae=r.String.codePointAt,{max:ce,min:ne}=Math,de=function(Y,J){return Y=G(Y),Y<0?ce(Y+J,0):ne(Y,J)},{fromCharCode:ze,fromCodePoint:dt}=String;F(F.S+F.F*(!!dt&&dt.length!=1),"String",{fromCodePoint:function(J){var Pe=arguments,we=[],Xe=arguments.length,st=0,vt;while(Xe>st){if(vt=+Pe[st++],de(vt,1114111)!==vt)throw RangeError(vt+" is not a valid code point");we.push(vt<65536?ze(vt):ze(((vt-=65536)>>10)+55296,vt%1024+56320))}return we.join("")}});var ke=r.String.fromCodePoint,me=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ge=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ge=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Ie={Space_Separator:me,ID_Start:Ge,ID_Continue:ge},He={isSpaceSeparator:function(J){return typeof J==="string"&&Ie.Space_Separator.test(J)},isIdStartChar:function(J){return typeof J==="string"&&(J>="a"&&J<="z"||J>="A"&&J<="Z"||J==="$"||J==="_"||Ie.ID_Start.test(J))},isIdContinueChar:function(J){return typeof J==="string"&&(J>="a"&&J<="z"||J>="A"&&J<="Z"||J>="0"&&J<="9"||J==="$"||J==="_"||J===""||J===""||Ie.ID_Continue.test(J))},isDigit:function(J){return typeof J==="string"&&/[0-9]/.test(J)},isHexDigit:function(J){return typeof J==="string"&&/[0-9A-Fa-f]/.test(J)}},ot,je,ct,Ot,$t,Nt,kt,ja,Bn,MV=function(J,Pe){ot=String(J),je="start",ct=[],Ot=0,$t=1,Nt=0,kt=void 0,ja=void 0,Bn=void 0;do kt=LV(),OV[je]();while(kt.type!=="eof");if(typeof Pe==="function")return o0({"":Bn},"",Pe);return Bn};function o0(Y,J,Pe){var we=Y[J];if(we!=null&&typeof we==="object")if(Array.isArray(we))for(var Xe=0;Xe<we.length;Xe++){var st=String(Xe),vt=o0(we,st,Pe);if(vt===void 0)delete we[st];else Object.defineProperty(we,st,{value:vt,writable:!0,enumerable:!0,configurable:!0})}else for(var Yr in we){var yr=o0(we,Yr,Pe);if(yr===void 0)delete we[Yr];else Object.defineProperty(we,Yr,{value:yr,writable:!0,enumerable:!0,configurable:!0})}return Pe.call(Y,J,we)}var at,Qe,gc,Fn,pt;function LV(){at="default",Qe="",gc=!1,Fn=1;for(;;){pt=zn();var Y=WC[at]();if(Y)return Y}}function zn(){if(ot[Ot])return String.fromCodePoint(ot.codePointAt(Ot))}function oe(){var Y=zn();if(Y===`
|
|
2
|
+
`)$t++,Nt=0;else if(Y)Nt+=Y.length;else Nt++;if(Y)Ot+=Y.length;return Y}var WC={default:function(){switch(pt){case"\t":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
|
|
3
|
+
`:case"\r":case"\u2028":case"\u2029":oe();return;case"/":oe(),at="comment";return;case void 0:return oe(),zt("eof")}if(He.isSpaceSeparator(pt)){oe();return}return WC[je]()},comment:function(){switch(pt){case"*":oe(),at="multiLineComment";return;case"/":oe(),at="singleLineComment";return}throw Vt(oe())},multiLineComment:function(){switch(pt){case"*":oe(),at="multiLineCommentAsterisk";return;case void 0:throw Vt(oe())}oe()},multiLineCommentAsterisk:function(){switch(pt){case"*":oe();return;case"/":oe(),at="default";return;case void 0:throw Vt(oe())}oe(),at="multiLineComment"},singleLineComment:function(){switch(pt){case`
|
|
4
|
+
`:case"\r":case"\u2028":case"\u2029":oe(),at="default";return;case void 0:return oe(),zt("eof")}oe()},value:function(){switch(pt){case"{":case"[":return zt("punctuator",oe());case"n":return oe(),Hs("ull"),zt("null",null);case"t":return oe(),Hs("rue"),zt("boolean",!0);case"f":return oe(),Hs("alse"),zt("boolean",!1);case"-":case"+":if(oe()==="-")Fn=-1;at="sign";return;case".":Qe=oe(),at="decimalPointLeading";return;case"0":Qe=oe(),at="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Qe=oe(),at="decimalInteger";return;case"I":return oe(),Hs("nfinity"),zt("numeric",1/0);case"N":return oe(),Hs("aN"),zt("numeric",NaN);case'"':case"'":gc=oe()==='"',Qe="",at="string";return}throw Vt(oe())},identifierNameStartEscape:function(){if(pt!=="u")throw Vt(oe());oe();var J=s0();switch(J){case"$":case"_":break;default:if(!He.isIdStartChar(J))throw YC();break}Qe+=J,at="identifierName"},identifierName:function(){switch(pt){case"$":case"_":case"":case"":Qe+=oe();return;case"\\":oe(),at="identifierNameEscape";return}if(He.isIdContinueChar(pt)){Qe+=oe();return}return zt("identifier",Qe)},identifierNameEscape:function(){if(pt!=="u")throw Vt(oe());oe();var J=s0();switch(J){case"$":case"_":case"":case"":break;default:if(!He.isIdContinueChar(J))throw YC();break}Qe+=J,at="identifierName"},sign:function(){switch(pt){case".":Qe=oe(),at="decimalPointLeading";return;case"0":Qe=oe(),at="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Qe=oe(),at="decimalInteger";return;case"I":return oe(),Hs("nfinity"),zt("numeric",Fn*(1/0));case"N":return oe(),Hs("aN"),zt("numeric",NaN)}throw Vt(oe())},zero:function(){switch(pt){case".":Qe+=oe(),at="decimalPoint";return;case"e":case"E":Qe+=oe(),at="decimalExponent";return;case"x":case"X":Qe+=oe(),at="hexadecimal";return}return zt("numeric",Fn*0)},decimalInteger:function(){switch(pt){case".":Qe+=oe(),at="decimalPoint";return;case"e":case"E":Qe+=oe(),at="decimalExponent";return}if(He.isDigit(pt)){Qe+=oe();return}return zt("numeric",Fn*Number(Qe))},decimalPointLeading:function(){if(He.isDigit(pt)){Qe+=oe(),at="decimalFraction";return}throw Vt(oe())},decimalPoint:function(){switch(pt){case"e":case"E":Qe+=oe(),at="decimalExponent";return}if(He.isDigit(pt)){Qe+=oe(),at="decimalFraction";return}return zt("numeric",Fn*Number(Qe))},decimalFraction:function(){switch(pt){case"e":case"E":Qe+=oe(),at="decimalExponent";return}if(He.isDigit(pt)){Qe+=oe();return}return zt("numeric",Fn*Number(Qe))},decimalExponent:function(){switch(pt){case"+":case"-":Qe+=oe(),at="decimalExponentSign";return}if(He.isDigit(pt)){Qe+=oe(),at="decimalExponentInteger";return}throw Vt(oe())},decimalExponentSign:function(){if(He.isDigit(pt)){Qe+=oe(),at="decimalExponentInteger";return}throw Vt(oe())},decimalExponentInteger:function(){if(He.isDigit(pt)){Qe+=oe();return}return zt("numeric",Fn*Number(Qe))},hexadecimal:function(){if(He.isHexDigit(pt)){Qe+=oe(),at="hexadecimalInteger";return}throw Vt(oe())},hexadecimalInteger:function(){if(He.isHexDigit(pt)){Qe+=oe();return}return zt("numeric",Fn*Number(Qe))},string:function(){switch(pt){case"\\":oe(),Qe+=PV();return;case'"':if(gc)return oe(),zt("string",Qe);Qe+=oe();return;case"'":if(!gc)return oe(),zt("string",Qe);Qe+=oe();return;case`
|
|
5
|
+
`:case"\r":throw Vt(oe());case"\u2028":case"\u2029":NV(pt);break;case void 0:throw Vt(oe())}Qe+=oe()},start:function(){switch(pt){case"{":case"[":return zt("punctuator",oe())}at="value"},beforePropertyName:function(){switch(pt){case"$":case"_":Qe=oe(),at="identifierName";return;case"\\":oe(),at="identifierNameStartEscape";return;case"}":return zt("punctuator",oe());case'"':case"'":gc=oe()==='"',at="string";return}if(He.isIdStartChar(pt)){Qe+=oe(),at="identifierName";return}throw Vt(oe())},afterPropertyName:function(){if(pt===":")return zt("punctuator",oe());throw Vt(oe())},beforePropertyValue:function(){at="value"},afterPropertyValue:function(){switch(pt){case",":case"}":return zt("punctuator",oe())}throw Vt(oe())},beforeArrayValue:function(){if(pt==="]")return zt("punctuator",oe());at="value"},afterArrayValue:function(){switch(pt){case",":case"]":return zt("punctuator",oe())}throw Vt(oe())},end:function(){throw Vt(oe())}};function zt(Y,J){return{type:Y,value:J,line:$t,column:Nt}}function Hs(Y){for(var J=0,Pe=Y;J<Pe.length;J+=1){var we=Pe[J],Xe=zn();if(Xe!==we)throw Vt(oe());oe()}}function PV(){var Y=zn();switch(Y){case"b":return oe(),"\b";case"f":return oe(),"\f";case"n":return oe(),`
|
|
6
|
+
`;case"r":return oe(),"\r";case"t":return oe(),"\t";case"v":return oe(),"\v";case"0":if(oe(),He.isDigit(zn()))throw Vt(oe());return"\x00";case"x":return oe(),RV();case"u":return oe(),s0();case`
|
|
7
|
+
`:case"\u2028":case"\u2029":return oe(),"";case"\r":if(oe(),zn()===`
|
|
8
|
+
`)oe();return"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw Vt(oe());case void 0:throw Vt(oe())}return oe()}function RV(){var Y="",J=zn();if(!He.isHexDigit(J))throw Vt(oe());if(Y+=oe(),J=zn(),!He.isHexDigit(J))throw Vt(oe());return Y+=oe(),String.fromCodePoint(parseInt(Y,16))}function s0(){var Y="",J=4;while(J-- >0){var Pe=zn();if(!He.isHexDigit(Pe))throw Vt(oe());Y+=oe()}return String.fromCodePoint(parseInt(Y,16))}var OV={start:function(){if(kt.type==="eof")throw Ws();l0()},beforePropertyName:function(){switch(kt.type){case"identifier":case"string":ja=kt.value,je="afterPropertyName";return;case"punctuator":zv();return;case"eof":throw Ws()}},afterPropertyName:function(){if(kt.type==="eof")throw Ws();je="beforePropertyValue"},beforePropertyValue:function(){if(kt.type==="eof")throw Ws();l0()},beforeArrayValue:function(){if(kt.type==="eof")throw Ws();if(kt.type==="punctuator"&&kt.value==="]"){zv();return}l0()},afterPropertyValue:function(){if(kt.type==="eof")throw Ws();switch(kt.value){case",":je="beforePropertyName";return;case"}":zv()}},afterArrayValue:function(){if(kt.type==="eof")throw Ws();switch(kt.value){case",":je="beforeArrayValue";return;case"]":zv()}},end:function(){}};function l0(){var Y;switch(kt.type){case"punctuator":switch(kt.value){case"{":Y={};break;case"[":Y=[];break}break;case"null":case"boolean":case"numeric":case"string":Y=kt.value;break}if(Bn===void 0)Bn=Y;else{var J=ct[ct.length-1];if(Array.isArray(J))J.push(Y);else Object.defineProperty(J,ja,{value:Y,writable:!0,enumerable:!0,configurable:!0})}if(Y!==null&&typeof Y==="object")if(ct.push(Y),Array.isArray(Y))je="beforeArrayValue";else je="beforePropertyName";else{var Pe=ct[ct.length-1];if(Pe==null)je="end";else if(Array.isArray(Pe))je="afterArrayValue";else je="afterPropertyValue"}}function zv(){ct.pop();var Y=ct[ct.length-1];if(Y==null)je="end";else if(Array.isArray(Y))je="afterArrayValue";else je="afterPropertyValue"}function Vt(Y){if(Y===void 0)return Vv("JSON5: invalid end of input at "+$t+":"+Nt);return Vv("JSON5: invalid character '"+XC(Y)+"' at "+$t+":"+Nt)}function Ws(){return Vv("JSON5: invalid end of input at "+$t+":"+Nt)}function YC(){return Nt-=5,Vv("JSON5: invalid identifier character at "+$t+":"+Nt)}function NV(Y){console.warn("JSON5: '"+XC(Y)+"' in strings is not valid ECMAScript; consider escaping")}function XC(Y){var J={"'":"\\'",'"':"\\\"","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\x00":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(J[Y])return J[Y];if(Y<" "){var Pe=Y.charCodeAt(0).toString(16);return"\\x"+("00"+Pe).substring(Pe.length)}return Y}function Vv(Y){var J=SyntaxError(Y);return J.lineNumber=$t,J.columnNumber=Nt,J}var kV=function(J,Pe,we){var Xe=[],st="",vt,Yr,yr="",Ys;if(Pe!=null&&typeof Pe==="object"&&!Array.isArray(Pe))we=Pe.space,Ys=Pe.quote,Pe=Pe.replacer;if(typeof Pe==="function")Yr=Pe;else if(Array.isArray(Pe)){vt=[];for(var mu=0,xa=Pe;mu<xa.length;mu+=1){var $a=xa[mu],Xr=void 0;if(typeof $a==="string")Xr=$a;else if(typeof $a==="number"||$a instanceof String||$a instanceof Number)Xr=String($a);if(Xr!==void 0&&vt.indexOf(Xr)<0)vt.push(Xr)}}if(we instanceof Number)we=Number(we);else if(we instanceof String)we=String(we);if(typeof we==="number"){if(we>0)we=Math.min(10,Math.floor(we)),yr=" ".substr(0,we)}else if(typeof we==="string")yr=we.substr(0,10);return gu("",{"":J});function gu(Pt,Rr){var tt=Rr[Pt];if(tt!=null){if(typeof tt.toJSON5==="function")tt=tt.toJSON5(Pt);else if(typeof tt.toJSON==="function")tt=tt.toJSON(Pt)}if(Yr)tt=Yr.call(Rr,Pt,tt);if(tt instanceof Number)tt=Number(tt);else if(tt instanceof String)tt=String(tt);else if(tt instanceof Boolean)tt=tt.valueOf();switch(tt){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof tt==="string")return Uv(tt,!1);if(typeof tt==="number")return String(tt);if(typeof tt==="object")return Array.isArray(tt)?GV(tt):VV(tt);return}function Uv(Pt){var Rr={"'":0.1,'"':0.2},tt={"'":"\\'",'"':"\\\"","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\x00":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},Ir="";for(var _a=0;_a<Pt.length;_a++){var Or=Pt[_a];switch(Or){case"'":case'"':Rr[Or]++,Ir+=Or;continue;case"\x00":if(He.isDigit(Pt[_a+1])){Ir+="\\x00";continue}}if(tt[Or]){Ir+=tt[Or];continue}if(Or<" "){var Xs=Or.charCodeAt(0).toString(16);Ir+="\\x"+("00"+Xs).substring(Xs.length);continue}Ir+=Or}var Vn=Ys||Object.keys(Rr).reduce(function(ko,Zs){return Rr[ko]<Rr[Zs]?ko:Zs});return Ir=Ir.replace(new RegExp(Vn,"g"),tt[Vn]),Vn+Ir+Vn}function VV(Pt){if(Xe.indexOf(Pt)>=0)throw TypeError("Converting circular structure to JSON5");Xe.push(Pt);var Rr=st;st=st+yr;var tt=vt||Object.keys(Pt),Ir=[];for(var _a=0,Or=tt;_a<Or.length;_a+=1){var Xs=Or[_a],Vn=gu(Xs,Pt);if(Vn!==void 0){var ko=UV(Xs)+":";if(yr!=="")ko+=" ";ko+=Vn,Ir.push(ko)}}var Zs;if(Ir.length===0)Zs="{}";else{var Gv;if(yr==="")Gv=Ir.join(","),Zs="{"+Gv+"}";else{var HV=`,
|
|
9
|
+
`+st;Gv=Ir.join(HV),Zs=`{
|
|
10
|
+
`+st+Gv+`,
|
|
11
|
+
`+Rr+"}"}}return Xe.pop(),st=Rr,Zs}function UV(Pt){if(Pt.length===0)return Uv(Pt,!0);var Rr=String.fromCodePoint(Pt.codePointAt(0));if(!He.isIdStartChar(Rr))return Uv(Pt,!0);for(var tt=Rr.length;tt<Pt.length;tt++)if(!He.isIdContinueChar(String.fromCodePoint(Pt.codePointAt(tt))))return Uv(Pt,!0);return Pt}function GV(Pt){if(Xe.indexOf(Pt)>=0)throw TypeError("Converting circular structure to JSON5");Xe.push(Pt);var Rr=st;st=st+yr;var tt=[];for(var Ir=0;Ir<Pt.length;Ir++){var _a=gu(String(Ir),Pt);tt.push(_a!==void 0?_a:"null")}var Or;if(tt.length===0)Or="[]";else if(yr===""){var Xs=tt.join(",");Or="["+Xs+"]"}else{var Vn=`,
|
|
12
|
+
`+st,ko=tt.join(Vn);Or=`[
|
|
13
|
+
`+st+ko+`,
|
|
14
|
+
`+Rr+"]"}return Xe.pop(),st=Rr,Or}},BV={parse:MV,stringify:kV},FV=BV,zV=FV;return zV})});var Ne={};At(Ne,{Arc:()=>rp,BezierCurve:()=>El,BoundingRect:()=>De,Circle:()=>Ia,CompoundPath:()=>od,Ellipse:()=>Fx,Group:()=>ve,HOVER_LAYER_FOR_INCREMENTAL:()=>no,HOVER_LAYER_FROM_THRESHOLD:()=>Zx,HOVER_LAYER_NO:()=>Xx,Image:()=>Bt,IncrementalDisplayable:()=>YE,Line:()=>Zt,LinearGradient:()=>os,OrientedBoundingRect:()=>cd,Path:()=>xe,Point:()=>Le,Polygon:()=>rr,Polyline:()=>ur,RadialGradient:()=>HE,Rect:()=>Ee,Ring:()=>Tl,Sector:()=>Xt,Text:()=>Ve,WH:()=>La,XY:()=>la,applyTransform:()=>$r,calcZ2Range:()=>NG,clipPointsByRect:()=>qx,clipRectByRect:()=>PG,createIcon:()=>np,decomposeTransform:()=>lp,ensureCopyRect:()=>Ju,ensureCopyTransform:()=>dd,expandOrShrinkRect:()=>ss,extendPath:()=>wG,extendShape:()=>TG,getCurrentCanvasPainter:()=>kG,getShapeClass:()=>IG,getTransform:()=>so,groupTransition:()=>lo,initProps:()=>$e,isBoundingRectAxisAligned:()=>hd,isElementRemoved:()=>ao,lineLineIntersect:()=>JE,linePolygonIntersect:()=>RG,makeImage:()=>Kx,makePath:()=>vd,mergePath:()=>zr,payloadDisableAnimation:()=>sp,registerShape:()=>Pa,removeElement:()=>sa,removeElementWithFadeOut:()=>vn,resizePath:()=>QE,retrieveZInfo:()=>hn,setTooltipConfig:()=>ls,subPixelOptimize:()=>ap,subPixelOptimizeLine:()=>oo,subPixelOptimizeRect:()=>MG,transformDirection:()=>Ml,traverseElements:()=>Bi,traverseUpdateZ:()=>op,updateProps:()=>Oe});/*! *****************************************************************************
|
|
15
|
+
Copyright (c) Microsoft Corporation.
|
|
16
|
+
|
|
17
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
18
|
+
purpose with or without fee is hereby granted.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
21
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
22
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
23
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
24
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
25
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
26
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
27
|
+
***************************************************************************** */var u0=function(n,e){return u0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var l in s)if(Object.prototype.hasOwnProperty.call(s,l))r[l]=s[l]},u0(n,e)};function k(n,e){if(typeof e!=="function"&&e!==null)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");u0(n,e);function r(){this.constructor=n}n.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Hv=12,f0="sans-serif",ni=Hv+"px "+f0,WV=20,YV=100,XV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function ZV(n){var e={};if(typeof JSON>"u")return e;for(var r=0;r<n.length;r++){var s=String.fromCharCode(r+32),l=(n.charCodeAt(r)-WV)/YV;e[s]=l}return e}var KV=ZV(XV),xr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var n,e;return function(r,s){if(!n){var l=xr.createCanvas();n=l&&l.getContext("2d")}if(n){if(e!==s)e=n.font=s||ni;return n.measureText(r)}else{r=r||"",s=s||ni;var u=/((?:\d+)?\.?\d*)px/.exec(s),f=u&&+u[1]||Hv,c=0;if(s.indexOf("mono")>=0)c=f*r.length;else for(var p=0;p<r.length;p++){var v=KV[r[p]];c+=v==null?f:v*f}return{width:c}}}}(),loadImage:function(n,e,r){var s=new Image;return s.onload=e,s.onerror=r,s.src=n,s},getTime:function(){return Date.now?Date.now():+new Date}};var qC=wi(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(n,e){return n["[object "+e+"]"]=!0,n},{}),jC=wi(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(n,e){return n["[object "+e+"Array]"]=!0,n},{}),yu=Object.prototype.toString,Yv=Array.prototype,{forEach:qV,filter:jV,slice:p0,map:$V}=Yv,ZC=function(){}.constructor,Wv=ZC?ZC.prototype:null,v0="__proto__",c0=2311,QV=Math.pow(2,53)-1;function Xv(){if(c0>=QV)c0=0;return c0++}function Un(){var n=[];for(var e=0;e<arguments.length;e++)n[e]=arguments[e];if(typeof console<"u")console.error.apply(console,n)}function le(n){if(n==null||typeof n!=="object")return n;var e=n,r=yu.call(n);if(r==="[object Array]"){if(!yc(n)){e=[];for(var s=0,l=n.length;s<l;s++)e[s]=le(n[s])}}else if(jC[r]){if(!yc(n)){var u=n.constructor;if(u.from)e=u.from(n);else{e=new u(n.length);for(var s=0,l=n.length;s<l;s++)e[s]=n[s]}}}else if(!qC[r]&&!yc(n)&&!Ks(n)){e={};for(var f in n)if(n.hasOwnProperty(f)&&f!==v0)e[f]=le(n[f])}return e}function Re(n,e,r){if(!ue(e)||!ue(n))return r?le(e):n;for(var s in e)if(e.hasOwnProperty(s)&&s!==v0){var l=n[s],u=e[s];if(ue(u)&&ue(l)&&!U(u)&&!U(l)&&!Ks(u)&&!Ks(l)&&!KC(u)&&!KC(l)&&!yc(u)&&!yc(l))Re(l,u,r);else if(r||!(s in n))n[s]=le(e[s])}return n}function $C(n,e){var r=n[0];for(var s=1,l=n.length;s<l;s++)r=Re(r,n[s],e);return r}function V(n,e){if(Object.assign)Object.assign(n,e);else for(var r in e)if(e.hasOwnProperty(r)&&r!==v0)n[r]=e[r];return n}function QC(n,e,r){n=n||{};for(var s=0;s<r.length;s++){var l=r[s];n[l]=e[l]}return n}function pe(n,e,r){var s=Me(e);for(var l=0,u=s.length;l<u;l++){var f=s[l];if(r?e[f]!=null:n[f]==null)n[f]=e[f]}return n}var m$=xr.createCanvas;function be(n,e){if(n){if(n.indexOf)return n.indexOf(e);for(var r=0,s=n.length;r<s;r++)if(n[r]===e)return r}return-1}function JC(n,e){var r=n.prototype;function s(){}s.prototype=e.prototype,n.prototype=new s;for(var l in r)if(r.hasOwnProperty(l))n.prototype[l]=r[l];n.prototype.constructor=n,n.superClass=e}function xt(n,e,r){if(n="prototype"in n?n.prototype:n,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames){var s=Object.getOwnPropertyNames(e);for(var l=0;l<s.length;l++){var u=s[l];if(u!=="constructor"){if(r?e[u]!=null:n[u]==null)n[u]=e[u]}}}else pe(n,e,r)}function Qt(n){if(!n)return!1;if(typeof n==="string")return!1;return typeof n.length==="number"}function I(n,e,r){if(!(n&&e))return;if(n.forEach&&n.forEach===qV)n.forEach(e,r);else if(n.length===+n.length)for(var s=0,l=n.length;s<l;s++)e.call(r,n[s],s,n);else for(var u in n)if(n.hasOwnProperty(u))e.call(r,n[u],u,n)}function W(n,e,r){if(!n)return[];if(!e)return Zv(n);if(n.map&&n.map===$V)return n.map(e,r);else{var s=[];for(var l=0,u=n.length;l<u;l++)s.push(e.call(r,n[l],l,n));return s}}function wi(n,e,r,s){if(!(n&&e))return;for(var l=0,u=n.length;l<u;l++)r=e.call(s,r,n[l],l,n);return r}function Ke(n,e,r){if(!n)return[];if(!e)return Zv(n);if(n.filter&&n.filter===jV)return n.filter(e,r);else{var s=[];for(var l=0,u=n.length;l<u;l++)if(e.call(r,n[l],l,n))s.push(n[l]);return s}}function xu(n,e,r){if(!(n&&e))return;for(var s=0,l=n.length;s<l;s++)if(e.call(r,n[s],s,n))return n[s]}function Me(n){if(!n)return[];if(Object.keys)return Object.keys(n);var e=[];for(var r in n)if(n.hasOwnProperty(r))e.push(r);return e}function JV(n,e){var r=[];for(var s=2;s<arguments.length;s++)r[s-2]=arguments[s];return function(){return n.apply(e,r.concat(p0.call(arguments)))}}var se=Wv&&ie(Wv.bind)?Wv.call.bind(Wv.bind):JV;function Ae(n){var e=[];for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return n.apply(this,e.concat(p0.call(arguments)))}}function U(n){if(Array.isArray)return Array.isArray(n);return yu.call(n)==="[object Array]"}function ie(n){return typeof n==="function"}function K(n){return typeof n==="string"}function xc(n){return yu.call(n)==="[object String]"}function Te(n){return typeof n==="number"}function ue(n){var e=typeof n;return e==="function"||!!n&&e==="object"}function KC(n){return!!qC[yu.call(n)]}function Yt(n){return!!jC[yu.call(n)]}function Ks(n){return typeof n==="object"&&typeof n.nodeType==="number"&&typeof n.ownerDocument==="object"}function _u(n){return n.colorStops!=null}function eA(n){return yu.call(n)==="[object RegExp]"}function oi(n){return n!==n}function Ut(){var n=[];for(var e=0;e<arguments.length;e++)n[e]=arguments[e];for(var r=0,s=n.length;r<s;r++)if(n[r]!=null)return n[r]}function te(n,e){return n!=null?n:e}function Jt(n,e,r){return n!=null?n:e!=null?e:r}function Zv(n){var e=[];for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];return p0.apply(n,e)}function Bo(n){if(typeof n==="number")return[n,n,n,n];var e=n.length;if(e===2)return[n[0],n[1],n[0],n[1]];else if(e===3)return[n[0],n[1],n[2],n[1]];return n}function We(n,e){if(!n)throw Error(e)}function Mr(n){if(n==null)return null;else if(typeof n.trim==="function")return n.trim();else return n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var tA="__ec_primitive__";function qs(n){n[tA]=!0}function yc(n){return n[tA]}var eU=function(){function n(){this.data={}}return n.prototype.delete=function(e){var r=this.has(e);if(r)delete this.data[e];return r},n.prototype.has=function(e){return this.data.hasOwnProperty(e)},n.prototype.get=function(e){return this.data[e]},n.prototype.set=function(e,r){return this.data[e]=r,this},n.prototype.keys=function(){return Me(this.data)},n.prototype.forEach=function(e){var r=this.data;for(var s in r)if(r.hasOwnProperty(s))e(r[s],s)},n}(),rA=typeof Map==="function";function tU(){return rA?new Map:new eU}var rU=function(){function n(e){var r=U(e);this.data=tU();var s=this;e instanceof n?e.each(l):e&&I(e,l);function l(u,f){r?s.set(u,f):s.set(f,u)}}return n.prototype.hasKey=function(e){return this.data.has(e)},n.prototype.get=function(e){return this.data.get(e)},n.prototype.set=function(e,r){return this.data.set(e,r),r},n.prototype.each=function(e,r){this.data.forEach(function(s,l){e.call(r,s,l)})},n.prototype.keys=function(){var e=this.data.keys();return rA?Array.from(e):e},n.prototype.removeKey=function(e){this.data.delete(e)},n}();function re(n){return new rU(n)}function Su(n,e){var r=new n.constructor(n.length+e.length);for(var s=0;s<n.length;s++)r[s]=n[s];var l=n.length;for(var s=0;s<e.length;s++)r[s+l]=e[s];return r}function Fo(n,e){var r;if(Object.create)r=Object.create(n);else{var s=function(){};s.prototype=n,r=new s}if(e)V(r,e);return r}function bt(n,e){return n.hasOwnProperty(e)}function mt(){}var Du=180/Math.PI,g$=Number.EPSILON||Math.pow(2,-52);var iU=function(){function n(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return n}(),aU=function(){function n(){this.browser=new iU,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 n}(),zo=new aU;if(typeof wx==="object"&&typeof wx.getSystemInfoSync==="function")zo.wxa=!0,zo.touchEventsSupported=!0;else if(typeof document>"u"&&typeof self<"u")zo.worker=!0;else if(!zo.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent==="string"&&navigator.userAgent.indexOf("Node.js")>-1)zo.node=!0,zo.svgSupported=!0;else nU(navigator.userAgent,zo);function nU(n,e){var r=e.browser,s=n.match(/Firefox\/([\d.]+)/),l=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),u=n.match(/Edge?\/([\d.]+)/),f=/micromessenger/i.test(n);if(s)r.firefox=!0,r.version=s[1];if(l)r.ie=!0,r.version=l[1];if(u)r.edge=!0,r.version=u[1],r.newEdge=+u[1].split(".")[0]>18;if(f)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 c=e.domSupported=typeof document<"u";if(c){var p=document.documentElement.style;e.transform3dSupported=(r.ie&&("transition"in p)||r.edge||("WebKitCSSMatrix"in window)&&("m11"in new WebKitCSSMatrix)||("MozPerspective"in p))&&!("OTransition"in p),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var Ue=zo;var oU=".",js="___EC__COMPONENT__CONTAINER___",iA="___EC__EXTENDED_CLASS___";function si(n){var e={main:"",sub:""};if(n){var r=n.split(oU);e.main=r[0]||"",e.sub=r[1]||""}return e}function sU(n){We(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal')}function aA(n){return!!(n&&n[iA])}function bu(n,e){n.$constructor=n,n.extend=function(r){var s=this,l;if(lU(s))l=function(u){k(f,u);function f(){return u.apply(this,arguments)||this}return f}(s);else l=function(){(r.$constructor||s).apply(this,arguments)},JC(l,this);return V(l.prototype,r),l[iA]=!0,l.extend=this.extend,l.superCall=fU,l.superApply=cU,l.superClass=s,l}}function lU(n){return ie(n)&&/^class\s/.test(Function.prototype.toString.call(n))}function Kv(n,e){n.extend=e.extend}var uU=Math.round(Math.random()*10);function nA(n){var e=["__\x00is_clz",uU++].join("_");n.prototype[e]=!0,n.isInstance=function(r){return!!(r&&r[e])}}function fU(n,e){var r=[];for(var s=2;s<arguments.length;s++)r[s-2]=arguments[s];return this.superClass.prototype[e].apply(n,r)}function cU(n,e,r){return this.superClass.prototype[e].apply(n,r)}function Vo(n){var e={};n.registerClass=function(s){var l=s.type||s.prototype.type;if(l){sU(l),s.prototype.type=l;var u=si(l);if(!u.sub)e[u.main]=s;else if(u.sub!==js){var f=r(u);f[u.sub]=s}}return s},n.getClass=function(s,l,u){var f=e[s];if(f&&f[js])f=l?f[l]:null;if(u&&!f)throw Error(!l?s+".type should be specified.":"Component "+s+"."+(l||"")+" is used but not imported.");return f},n.getClassesByMainType=function(s){var l=si(s),u=[],f=e[l.main];if(f&&f[js])I(f,function(c,p){p!==js&&u.push(c)});else u.push(f);return u},n.hasClass=function(s){var l=si(s);return!!e[l.main]},n.getAllClassMainTypes=function(){var s=[];return I(e,function(l,u){s.push(u)}),s},n.hasSubTypes=function(s){var l=si(s),u=e[l.main];return u&&u[js]};function r(s){var l=e[s.main];if(!l||!l[js])l=e[s.main]={},l[js]=!0;return l}}function li(n,e){for(var r=0;r<n.length;r++)if(!n[r][1])n[r][1]=n[r][0];return e=e||!1,function(s,l,u){var f={};for(var c=0;c<n.length;c++){var p=n[c][1];if(l&&be(l,p)>=0||u&&be(u,p)<0)continue;var v=s.getShallow(p,e);if(v!=null)f[n[c][0]]=v}return f}}var pU=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],vU=li(pU),oA=function(){function n(){}return n.prototype.getAreaStyle=function(e,r){return vU(this,e,r)},n}();var sA=function(){function n(e){this.value=e}return n}();var hU=function(){function n(){this._len=0}return n.prototype.insert=function(e){var r=new sA(e);return this.insertEntry(r),r},n.prototype.insertEntry=function(e){if(!this.head)this.head=this.tail=e;else this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e;this._len++},n.prototype.remove=function(e){var{prev:r,next:s}=e;if(r)r.next=s;else this.head=s;if(s)s.prev=r;else this.tail=r;e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}();var dU=function(){function n(e){this._list=new hU,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,r){var s=this._list,l=this._map,u=null;if(l[e]==null){var f=s.len(),c=this._lastRemovedEntry;if(f>=this._maxSize&&f>0){var p=s.head;s.remove(p),delete l[p.key],u=p.value,this._lastRemovedEntry=p}if(c)c.value=r;else c=new sA(r);c.key=e,s.insertEntry(c),l[e]=c}return u},n.prototype.get=function(e){var r=this._map[e],s=this._list;if(r!=null){if(r!==s.tail)s.remove(r),s.insertEntry(r);return r.value}},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}(),Qa=dU;var d0=new Qa(50);function uA(n){if(typeof n==="string"){var e=d0.get(n);return e&&e.image}else return n}function _c(n,e,r,s,l){if(!n)return e;else if(typeof n==="string"){if(e&&e.__zrImageSrc===n||!r)return e;var u=d0.get(n),f={hostEl:r,cb:s,cbPayload:l};if(u)e=u.image,!Cu(e)&&u.pending.push(f);else e=xr.loadImage(n,lA,lA),e.__zrImageSrc=n,d0.put(n,e.__cachedImgObj={image:e,pending:[f]});return e}else return n}function lA(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<n.pending.length;e++){var r=n.pending[e],s=r.cb;s&&s(this,r.cbPayload),r.hostEl.dirty()}n.pending.length=0}function Cu(n){return n&&n.width&&n.height}function Ct(){return[1,0,0,1,0,0]}function Gn(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function Ja(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function Sa(n,e,r){var s=e[0]*r[0]+e[2]*r[1],l=e[1]*r[0]+e[3]*r[1],u=e[0]*r[2]+e[2]*r[3],f=e[1]*r[2]+e[3]*r[3],c=e[0]*r[4]+e[2]*r[5]+e[4],p=e[1]*r[4]+e[3]*r[5]+e[5];return n[0]=s,n[1]=l,n[2]=u,n[3]=f,n[4]=c,n[5]=p,n}function Zi(n,e,r){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+r[0],n[5]=e[5]+r[1],n}function en(n,e,r,s){if(s===void 0)s=[0,0];var l=e[0],u=e[2],f=e[4],c=e[1],p=e[3],v=e[5],h=Math.sin(r),d=Math.cos(r);return n[0]=l*d+c*h,n[1]=-l*h+c*d,n[2]=u*d+p*h,n[3]=-u*h+d*p,n[4]=d*(f-s[0])+h*(v-s[1])+s[0],n[5]=d*(v-s[1])-h*(f-s[0])+s[1],n}function qv(n,e,r){var s=r[0],l=r[1];return n[0]=e[0]*s,n[1]=e[1]*l,n[2]=e[2]*s,n[3]=e[3]*l,n[4]=e[4]*s,n[5]=e[5]*l,n}function Zr(n,e){var r=e[0],s=e[2],l=e[4],u=e[1],f=e[3],c=e[5],p=r*f-u*s;if(!p)return null;return p=1/p,n[0]=f*p,n[1]=-u*p,n[2]=-s*p,n[3]=r*p,n[4]=(s*c-f*l)*p,n[5]=(u*l-r*c)*p,n}function fA(n){var e=Ct();return Ja(e,n),e}function tn(n,e){if(n==null)n=0;if(e==null)e=0;return[n,e]}function pr(n,e){return n[0]=e[0],n[1]=e[1],n}function ui(n){return[n[0],n[1]]}function Wn(n,e,r){return n[0]=e,n[1]=r,n}function m0(n,e,r){return n[0]=e[0]+r[0],n[1]=e[1]+r[1],n}function Sc(n,e,r,s){return n[0]=e[0]+r[0]*s,n[1]=e[1]+r[1]*s,n}function Da(n,e,r){return n[0]=e[0]-r[0],n[1]=e[1]-r[1],n}function jv(n){return Math.sqrt(gU(n))}function gU(n){return n[0]*n[0]+n[1]*n[1]}function Au(n,e,r){return n[0]=e[0]*r,n[1]=e[1]*r,n}function Ki(n,e){var r=jv(e);if(r===0)n[0]=0,n[1]=0;else n[0]=e[0]/r,n[1]=e[1]/r;return n}function $v(n,e){return Math.sqrt((n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1]))}var Dc=$v;function yU(n,e){return(n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1])}var Yn=yU;function Tu(n,e,r,s){return n[0]=e[0]+s*(r[0]-e[0]),n[1]=e[1]+s*(r[1]-e[1]),n}function er(n,e,r){var s=e[0],l=e[1];return n[0]=r[0]*s+r[2]*l+r[4],n[1]=r[1]*s+r[3]*l+r[5],n}function Xn(n,e,r){return n[0]=Math.min(e[0],r[0]),n[1]=Math.min(e[1],r[1]),n}function Zn(n,e,r){return n[0]=Math.max(e[0],r[0]),n[1]=Math.max(e[1],r[1]),n}var xU=function(){function n(e,r){this.x=e||0,this.y=r||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,r){return this.x=e,this.y=r,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var r=this.x-e.x,s=this.y-e.y;return Math.sqrt(r*r+s*s)},n.prototype.distanceSquare=function(e){var r=this.x-e.x,s=this.y-e.y;return r*r+s*s},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(!e)return;var r=this.x,s=this.y;return this.x=e[0]*r+e[2]*s+e[4],this.y=e[1]*r+e[3]*s+e[5],this},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,r,s){e.x=r,e.y=s},n.copy=function(e,r){e.x=r.x,e.y=r.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,r){return e.x*r.x+e.y*r.y},n.add=function(e,r,s){e.x=r.x+s.x,e.y=r.y+s.y},n.sub=function(e,r,s){e.x=r.x-s.x,e.y=r.y-s.y},n.scale=function(e,r,s){e.x=r.x*s,e.y=r.y*s},n.scaleAndAdd=function(e,r,s,l){e.x=r.x+s.x*l,e.y=r.y+s.y*l},n.lerp=function(e,r,s,l){var u=1-l;e.x=u*r.x+l*s.x,e.y=u*r.y+l*s.y},n}(),Le=xU;var{min:tl,max:Eu,abs:x0}=Math,cA=["x","y"],_U=["width","height"],$s=new Le,Qs=new Le,Js=new Le,el=new Le,Ii=D0(),{minTv:bc,maxTv:_0}=Ii,Cc=[0,0],Kn=function(){function n(e,r,s,l){g0(this,e,r,s,l)}return n.set=function(e,r,s,l,u){if(l<0)r=r+l,l=-l;if(u<0)s=s+u,u=-u;return e.x=r,e.y=s,e.width=l,e.height=u,e},n.prototype.union=function(e){var r=tl(e.x,this.x),s=tl(e.y,this.y);if(isFinite(this.x)&&isFinite(this.width))this.width=Eu(e.x+e.width,this.x+this.width)-r;else this.width=e.width;if(isFinite(this.y)&&isFinite(this.height))this.height=Eu(e.y+e.height,this.y+this.height)-s;else this.height=e.height;this.x=r,this.y=s},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){return S0(Ct(),this,e)},n.prototype.intersect=function(e,r,s){return n.intersect(this,e,r,s)},n.intersect=function(e,r,s,l){if(s)Le.set(s,0,0);var u=l&&l.outIntersectRect||null,f=l&&l.clamp;if(u)u.x=u.y=u.width=u.height=NaN;if(!e||!r)return!1;if(!(e instanceof n))e=g0(SU,e.x,e.y,e.width,e.height);if(!(r instanceof n))r=g0(DU,r.x,r.y,r.width,r.height);var c=!!s;Ii.reset(l,c);var p=Ii.touchThreshold,v=e.x+p,h=e.x+e.width-p,d=e.y+p,m=e.y+e.height-p,g=r.x+p,y=r.x+r.width-p,x=r.y+p,S=r.y+r.height-p;if(v>h||d>m||g>y||x>S)return!1;var D=!(h<g||y<v||m<x||S<d);if(c||u){if(Cc[0]=1/0,Cc[1]=0,pA(v,h,g,y,0,c,u,f),pA(d,m,x,S,1,c,u,f),c)Le.copy(s,D?Ii.useDir?Ii.dirMinTv:bc:_0)}return D},n.contain=function(e,r,s){return r>=e.x&&r<=e.x+e.width&&s>=e.y&&s<=e.y+e.height},n.prototype.contain=function(e,r){return n.contain(this,e,r)},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){rl(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},n.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},n.applyTransform=function(e,r,s){if(!s){if(e!==r)rl(e,r);return}if(s[1]<0.00001&&s[1]>-0.00001&&s[2]<0.00001&&s[2]>-0.00001){var l=s[0],u=s[3],f=s[4],c=s[5];if(e.x=r.x*l+f,e.y=r.y*u+c,e.width=r.width*l,e.height=r.height*u,e.width<0)e.x+=e.width,e.width=-e.width;if(e.height<0)e.y+=e.height,e.height=-e.height;return}$s.x=Js.x=r.x,$s.y=el.y=r.y,Qs.x=el.x=r.x+r.width,Qs.y=Js.y=r.y+r.height,$s.transform(s),el.transform(s),Qs.transform(s),Js.transform(s),e.x=tl($s.x,Qs.x,Js.x,el.x),e.y=tl($s.y,Qs.y,Js.y,el.y);var p=Eu($s.x,Qs.x,Js.x,el.x),v=Eu($s.y,Qs.y,Js.y,el.y);e.width=p-e.x,e.height=v-e.y},n.calculateTransform=function(e,r,s){var l=s.width/r.width,u=s.height/r.height;return e=Gn(e||[]),Zi(e,e,Wn(y0,-r.x,-r.y)),qv(e,e,Wn(y0,l,u)),Zi(e,e,Wn(y0,s.x,s.y)),e},n}(),{create:Ac,set:g0,copy:rl,calculateTransform:S0,applyTransform:vA,contain:hA}=Kn,SU=new Kn(0,0,0,0),DU=new Kn(0,0,0,0),y0=[];function pA(n,e,r,s,l,u,f,c){var p=x0(e-r),v=x0(s-n),h=tl(p,v),d=cA[l],m=cA[1-l],g=_U[l];if(e<r||s<n)if(p<v){if(u)_0[d]=-p;if(c)f[d]=e,f[g]=0}else{if(u)_0[d]=v;if(c)f[d]=n,f[g]=0}else{if(f)f[d]=Eu(n,r),f[g]=tl(e,s)-f[d];if(u){if(h<Cc[0]||Ii.useDir){if(Cc[0]=tl(h,Cc[0]),p<v||!Ii.bidirectional){if(bc[d]=p,bc[m]=0,Ii.useDir)Ii.calcDirMTV()}if(p>=v||!Ii.bidirectional){if(bc[d]=-v,bc[m]=0,Ii.useDir)Ii.calcDirMTV()}}}}}function D0(){var n=0,e=new Le,r=new Le,s={minTv:new Le,maxTv:new Le,useDir:!1,dirMinTv:new Le,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(u,f){if(s.touchThreshold=0,u&&u.touchThreshold!=null)s.touchThreshold=Eu(0,u.touchThreshold);if(s.negativeSize=!1,!f)return;if(s.minTv.set(1/0,1/0),s.maxTv.set(0,0),s.useDir=!1,u&&u.direction!=null){if(s.useDir=!0,s.dirMinTv.copy(s.minTv),r.copy(s.minTv),n=u.direction,s.bidirectional=u.bidirectional==null||!!u.bidirectional,!s.bidirectional)e.set(Math.cos(n),Math.sin(n))}},calcDirMTV:function(){var{minTv:u,dirMinTv:f}=s,c=u.y*u.y+u.x*u.x,p=Math.sin(n),v=Math.cos(n),h=p*u.y+v*u.x;if(l(h)){if(l(u.x)&&l(u.y))f.set(0,0);return}if(r.x=c*v/h,r.y=c*p/h,l(r.x)&&l(r.y)){f.set(0,0);return}if((s.bidirectional||e.dot(r)>0)&&r.len()<f.len())f.copy(r)}};function l(u){return x0(u)<0.0000000001}return s}var De=Kn;function ba(n){if(!Qv)Qv=new Qa(100);n=n||ni;var e=Qv.get(n);if(!e)e={font:n,strWidthCache:new Qa(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:xr.measureText("国",n).width,asciiCharWidth:xr.measureText("a",n).width},Qv.put(n,e);return e}var Qv;function bU(n){if(b0>=dA)return;n=n||ni;var e=[],r=+new Date;for(var s=0;s<=127;s++)e[s]=xr.measureText(String.fromCharCode(s),n).width;var l=+new Date-r;if(l>16)b0=dA;else if(l>2)b0++;return e}var b0=0,dA=5;function C0(n,e){if(!n.asciiWidthMapTried)n.asciiWidthMap=bU(n.font),n.asciiWidthMapTried=!0;return 0<=e&&e<=127?n.asciiWidthMap!=null?n.asciiWidthMap[e]:n.asciiCharWidth:n.stWideCharWidth}function Ca(n,e){var r=n.strWidthCache,s=r.get(e);if(s==null)s=xr.measureText(e,n.font).width,r.put(e,s);return s}function mA(n,e,r,s){var l=Ca(ba(e),n),u=il(e),f=Uo(0,l,r),c=qn(0,u,s),p=new De(f,c,l,u);return p}function wu(n,e,r,s){var l=((n||"")+"").split(`
|
|
28
|
+
`),u=l.length;if(u===1)return mA(l[0],e,r,s);else{var f=new De(0,0,0,0);for(var c=0;c<l.length;c++){var p=mA(l[c],e,r,s);c===0?f.copy(p):f.union(p)}return f}}function Uo(n,e,r,s){if(r==="right")!s?n-=e:n+=e;else if(r==="center")!s?n-=e/2:n+=e/2;return n}function qn(n,e,r,s){if(r==="middle")!s?n-=e/2:n+=e/2;else if(r==="bottom")!s?n-=e:n+=e;return n}function il(n){return ba(n).stWideCharWidth}function fi(n,e){if(typeof n==="string"){if(n.lastIndexOf("%")>=0)return parseFloat(n)/100*e;return parseFloat(n)}return n}function al(n,e,r){var s=e.position||"inside",l=e.distance!=null?e.distance:5,{height:u,width:f}=r,c=u/2,{x:p,y:v}=r,h="left",d="top";if(s instanceof Array)p+=fi(s[0],r.width),v+=fi(s[1],r.height),h=null,d=null;else switch(s){case"left":p-=l,v+=c,h="right",d="middle";break;case"right":p+=l+f,v+=c,d="middle";break;case"top":p+=f/2,v-=l,h="center",d="bottom";break;case"bottom":p+=f/2,v+=u+l,h="center";break;case"inside":p+=f/2,v+=c,h="center",d="middle";break;case"insideLeft":p+=l,v+=c,d="middle";break;case"insideRight":p+=f-l,v+=c,h="right",d="middle";break;case"insideTop":p+=f/2,v+=l,h="center";break;case"insideBottom":p+=f/2,v+=u-l,h="center",d="bottom";break;case"insideTopLeft":p+=l,v+=l;break;case"insideTopRight":p+=f-l,v+=l,h="right";break;case"insideBottomLeft":p+=l,v+=u-l,d="bottom";break;case"insideBottomRight":p+=f-l,v+=u-l,h="right",d="bottom";break}return n=n||{},n.x=p,n.y=v,n.align=h,n.verticalAlign=d,n}var T0=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function CU(n,e,r,s,l,u){if(!r){n.text="",n.isTruncated=!1;return}var f=(e+"").split(`
|
|
29
|
+
`);u=_A(r,s,l,u);var c=!1,p={};for(var v=0,h=f.length;v<h;v++)SA(p,f[v],u),f[v]=p.textLine,c=c||p.isTruncated;n.text=f.join(`
|
|
30
|
+
`),n.isTruncated=c}function _A(n,e,r,s){s=s||{};var l=V({},s);r=te(r,"..."),l.maxIterations=te(s.maxIterations,2);var u=l.minChar=te(s.minChar,0),f=l.fontMeasureInfo=ba(e),c=f.asciiCharWidth;l.placeholder=te(s.placeholder,"");var p=n=Math.max(0,n-1);for(var v=0;v<u&&p>=c;v++)p-=c;var h=Ca(f,r);if(h>p)r="",h=0;return p=n-h,l.ellipsis=r,l.ellipsisWidth=h,l.contentWidth=p,l.containerWidth=n,l}function SA(n,e,r){var{containerWidth:s,contentWidth:l,fontMeasureInfo:u}=r;if(!s){n.textLine="",n.isTruncated=!1;return}var f=Ca(u,e);if(f<=s){n.textLine=e,n.isTruncated=!1;return}for(var c=0;;c++){if(f<=l||c>=r.maxIterations){e+=r.ellipsis;break}var p=c===0?AU(e,l,u):f>0?Math.floor(e.length*l/f):0;e=e.substr(0,p),f=Ca(u,e)}if(e==="")e=r.placeholder;n.textLine=e,n.isTruncated=!0}function AU(n,e,r){var s=0,l=0;for(var u=n.length;l<u&&s<e;l++)s+=C0(r,n.charCodeAt(l));return l}function DA(n,e,r,s){var l=I0(n),{overflow:u,padding:f}=e,c=f?f[1]+f[3]:0,p=f?f[0]+f[2]:0,v=e.font,h=u==="truncate",d=il(v),m=te(e.lineHeight,d),g=e.lineOverflow==="truncate",y=!1,x=e.width;if(x==null&&r!=null)x=r-c;var S=e.height;if(S==null&&s!=null)S=s-p;var D;if(x!=null&&(u==="break"||u==="breakAll"))D=l?CA(l,e.font,x,u==="breakAll",0).lines:[];else D=l?l.split(`
|
|
31
|
+
`):[];var b=D.length*m;if(S==null)S=b;if(b>S&&g){var C=Math.floor(S/m);y=y||D.length>C,D=D.slice(0,C),b=D.length*m}if(l&&h&&x!=null){var A=_A(x,v,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),T={};for(var E=0;E<D.length;E++)SA(T,D[E],A),D[E]=T.textLine,y=y||T.isTruncated}var w=S,L=0,M=ba(v);for(var E=0;E<D.length;E++)L=Math.max(Ca(M,D[E]),L);if(x==null)x=L;var P=x;return w+=p,P+=c,{lines:D,height:S,outerWidth:P,outerHeight:w,lineHeight:m,calculatedLineHeight:d,contentWidth:L,contentHeight:b,width:x,isTruncated:y}}var TU=function(){function n(){}return n}(),gA=function(){function n(e){if(this.tokens=[],e)this.tokens=e}return n}(),EU=function(){function n(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return n}();function bA(n,e,r,s,l){var u=new EU,f=I0(n);if(!f)return u;var c=e.padding,p=c?c[1]+c[3]:0,v=c?c[0]+c[2]:0,h=e.width;if(h==null&&r!=null)h=r-p;var d=e.height;if(d==null&&s!=null)d=s-v;var m=e.overflow,g=(m==="break"||m==="breakAll")&&h!=null?{width:h,accumWidth:0,breakAll:m==="breakAll"}:null,y=T0.lastIndex=0,x;while((x=T0.exec(f))!=null){var S=x.index;if(S>y)E0(u,f.substring(y,S),e,g);E0(u,x[2],e,g,x[1]),y=T0.lastIndex}if(y<f.length)E0(u,f.substring(y,f.length),e,g);var D=[],b=0,C=0,A=m==="truncate",T=e.lineOverflow==="truncate",E={};function w(ze,dt,ke){ze.width=dt,ze.lineHeight=ke,b+=ke,C=Math.max(C,dt)}e:for(var L=0;L<u.lines.length;L++){var M=u.lines[L],P=0,R=0;for(var N=0;N<M.tokens.length;N++){var O=M.tokens[N],B=O.styleName&&e.rich[O.styleName]||{},F=O.textPadding=B.padding,z=F?F[1]+F[3]:0,H=O.font=B.font||e.font;O.contentHeight=il(H);var G=te(B.height,O.contentHeight);if(O.innerHeight=G,F&&(G+=F[0]+F[2]),O.height=G,O.lineHeight=Jt(B.lineHeight,e.lineHeight,G),O.align=B&&B.align||l,O.verticalAlign=B&&B.verticalAlign||"middle",T&&d!=null&&b+O.lineHeight>d){var Z=u.lines.length;if(N>0)M.tokens=M.tokens.slice(0,N),w(M,R,P),u.lines=u.lines.slice(0,L+1);else u.lines=u.lines.slice(0,L);u.isTruncated=u.isTruncated||u.lines.length<Z;break e}var Q=B.width,q=Q==null||Q==="auto";if(typeof Q==="string"&&Q.charAt(Q.length-1)==="%")O.percentWidth=Q,D.push(O),O.contentWidth=Ca(ba(H),O.text);else{if(q){var ae=B.backgroundColor,ce=ae&&ae.image;if(ce){if(ce=uA(ce),Cu(ce))O.width=Math.max(O.width,ce.width*G/ce.height)}}var ne=A&&h!=null?h-R:null;if(ne!=null&&ne<O.width)if(!q||ne<z)O.text="",O.width=O.contentWidth=0;else CU(E,O.text,ne-z,H,e.ellipsis,{minChar:e.truncateMinChar}),O.text=E.text,u.isTruncated=u.isTruncated||E.isTruncated,O.width=O.contentWidth=Ca(ba(H),O.text);else O.contentWidth=Ca(ba(H),O.text)}O.width+=z,R+=O.width,B&&(P=Math.max(P,O.lineHeight))}w(M,R,P)}u.outerWidth=u.width=te(h,C),u.outerHeight=u.height=te(d,b),u.contentHeight=b,u.contentWidth=C,u.outerWidth+=p,u.outerHeight+=v;for(var L=0;L<D.length;L++){var O=D[L],de=O.percentWidth;O.width=parseInt(de,10)/100*u.width}return u}function E0(n,e,r,s,l){var u=e==="",f=l&&r.rich[l]||{},c=n.lines,p=f.font||r.font,v=!1,h,d;if(s){var m=f.padding,g=m?m[1]+m[3]:0;if(f.width!=null&&f.width!=="auto"){var y=fi(f.width,s.width)+g;if(c.length>0){if(y+s.accumWidth>s.width)h=e.split(`
|
|
32
|
+
`),v=!0}s.accumWidth=y}else{var x=CA(e,p,s.width,s.breakAll,s.accumWidth);s.accumWidth=x.accumWidth+g,d=x.linesWidths,h=x.lines}}if(!h)h=e.split(`
|
|
33
|
+
`);var S=ba(p);for(var D=0;D<h.length;D++){var b=h[D],C=new TU;if(C.styleName=l,C.text=b,C.isLineHolder=!b&&!u,typeof f.width==="number")C.width=f.width;else C.width=d?d[D]:Ca(S,b);if(!D&&!v){var A=(c[c.length-1]||(c[0]=new gA)).tokens,T=A.length;T===1&&A[0].isLineHolder?A[0]=C:(b||!T||u)&&A.push(C)}else c.push(new gA([C]))}}function wU(n){var e=n.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var IU=wi(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function MU(n){if(wU(n)){if(IU[n])return!0;return!1}return!0}function CA(n,e,r,s,l){var u=[],f=[],c="",p="",v=0,h=0,d=ba(e);for(var m=0;m<n.length;m++){var g=n.charAt(m);if(g===`
|
|
34
|
+
`){if(p)c+=p,h+=v;u.push(c),f.push(h),c="",p="",v=0,h=0;continue}var y=C0(d,g.charCodeAt(0)),x=s?!1:!MU(g);if(!u.length?l+h+y>r:h+y>r){if(!h)if(x)u.push(p),f.push(v),p=g,v=y;else u.push(g),f.push(y);else if(c||p)if(x){if(!c)c=p,p="",v=0,h=v;u.push(c),f.push(h-v),p+=g,v+=y,c="",h=v}else{if(p)c+=p,p="",v=0;u.push(c),f.push(h),c=g,h=y}continue}if(h+=y,x)p+=g,v+=y;else{if(p)c+=p,p="",v=0;c+=g}}if(p)c+=p;if(c)u.push(c),f.push(h);if(u.length===1)h+=l;return{accumWidth:h,lines:u,linesWidths:f}}function w0(n,e,r,s,l,u){if(n.baseX=r,n.baseY=s,n.outerWidth=n.outerHeight=null,!e)return;var f=e.width*2,c=e.height*2;De.set(yA,Uo(r,f,l),qn(s,c,u),f,c),De.intersect(e,yA,null,xA);var p=xA.outIntersectRect;n.outerWidth=p.width,n.outerHeight=p.height,n.baseX=Uo(p.x,p.width,l,!0),n.baseY=qn(p.y,p.height,u,!0)}var yA=new De(0,0,0,0),xA={outIntersectRect:{},clamp:!0};function I0(n){return n!=null?n+="":n=""}function AA(n){var e=I0(n.text),r=n.font,s=Ca(ba(r),e),l=il(r);return Jv(n,s,l,null)}function Jv(n,e,r,s){var l=new De(Uo(n.x||0,e,n.textAlign),qn(n.y||0,r,n.textBaseline),e,r),u=s!=null?s:M0(n)?n.lineWidth:0;if(u>0)l.x-=u/2,l.y-=u/2,l.width+=u,l.height+=u;return l}function M0(n){var e=n.stroke;return e!=null&&e!=="none"&&n.lineWidth>0}var TA=Gn,EA=0.00005;function nl(n){return n>EA||n<-EA}var ol=[],Iu=[],L0=Ct(),P0=Math.abs,R0=function(){function n(){}return n.prototype.getLocalTransform=function(e){return Go(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return nl(this.rotation)||nl(this.x)||nl(this.y)||nl(this.scaleX-1)||nl(this.scaleY-1)||nl(this.skewX)||nl(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),s=this.transform;if(!(r||e)){if(s)TA(s),this.invTransform=null;return}if(s=s||Ct(),r)this.getLocalTransform(s);else TA(s);if(e)if(r)Sa(s,e,s);else Ja(s,e);this.transform=s,this._resolveGlobalScaleRatio(s),this.invTransform=this.invTransform||Ct(),Zr(this.invTransform,s)},n.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(ol);var s=ol[0]<0?-1:1,l=ol[1]<0?-1:1,u=((ol[0]-s)*r+s)/ol[0]||0,f=((ol[1]-l)*r+l)/ol[1]||0;e[0]*=u,e[1]*=u,e[2]*=f,e[3]*=f}},n.prototype.getComputedTransform=function(){var e=this,r=[];while(e)r.push(e),e=e.parent;while(e=r.pop())e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(!e)return;var r=e[0]*e[0]+e[1]*e[1],s=e[2]*e[2]+e[3]*e[3],l=Math.atan2(e[1],e[0]),u=Math.PI/2+l-Math.atan2(e[3],e[2]);s=Math.sqrt(s)*Math.cos(u),r=Math.sqrt(r),this.skewX=u,this.skewY=0,this.rotation=-l,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=s,this.originX=0,this.originY=0},n.prototype.decomposeTransform=function(){if(!this.transform)return;var e=this.parent,r=this.transform;if(e&&e.transform)e.invTransform=e.invTransform||Ct(),Sa(Iu,e.invTransform,r),r=Iu;var s=this.originX,l=this.originY;if(s||l)L0[4]=s,L0[5]=l,Sa(Iu,r,L0),Iu[4]-=s,Iu[5]-=l,r=Iu;this.setLocalTransform(r)},n.prototype.getGlobalScale=function(e){var r=this.transform;if(e=e||[],!r)return e[0]=1,e[1]=1,e;if(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];if(r[3]<0)e[1]=-e[1];return e},n.prototype.transformCoordToLocal=function(e,r){var s=[e,r],l=this.invTransform;if(l)er(s,s,l);return s},n.prototype.transformCoordToGlobal=function(e,r){var s=[e,r],l=this.transform;if(l)er(s,s,l);return s},n.prototype.getLineScale=function(){var e=this.transform;return e&&P0(e[0]-1)>0.0000000001&&P0(e[3]-1)>0.0000000001?Math.sqrt(P0(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){ci(this,e)},n.getLocalTransform=function(e,r){r=r||[];var s=e.originX||0,l=e.originY||0,{scaleX:u,scaleY:f,anchorX:c,anchorY:p}=e,v=e.rotation||0,{x:h,y:d}=e,m=e.skewX?Math.tan(e.skewX):0,g=e.skewY?Math.tan(-e.skewY):0;if(s||l||c||p){var y=s+c,x=l+p;r[4]=-y*u-m*x*f,r[5]=-x*f-g*y*u}else r[4]=r[5]=0;return r[0]=u,r[3]=f,r[1]=g*u,r[2]=m*f,v&&en(r,r,v),r[4]+=s+h,r[5]+=l+d,r},n.initDefaultProps=function(){var e=n.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}(),n}(),Go=R0.getLocalTransform;function sl(){return new R0}var Mu=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ci(n,e){return QC(n,e,Mu)}var qi=R0;var eh={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){if((n*=2)<1)return 0.5*n*n;return-0.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){if((n*=2)<1)return 0.5*n*n*n;return 0.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){if((n*=2)<1)return 0.5*n*n*n*n;return-0.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){if((n*=2)<1)return 0.5*n*n*n*n*n;return 0.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return 0.5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){if(n===0)return 0;if(n===1)return 1;if((n*=2)<1)return 0.5*Math.pow(1024,n-1);return 0.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){if((n*=2)<1)return-0.5*(Math.sqrt(1-n*n)-1);return 0.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,r=0.1,s=0.4;if(n===0)return 0;if(n===1)return 1;if(!r||r<1)r=1,e=s/4;else e=s*Math.asin(1/r)/(2*Math.PI);return-(r*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/s))},elasticOut:function(n){var e,r=0.1,s=0.4;if(n===0)return 0;if(n===1)return 1;if(!r||r<1)r=1,e=s/4;else e=s*Math.asin(1/r)/(2*Math.PI);return r*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/s)+1},elasticInOut:function(n){var e,r=0.1,s=0.4;if(n===0)return 0;if(n===1)return 1;if(!r||r<1)r=1,e=s/4;else e=s*Math.asin(1/r)/(2*Math.PI);if((n*=2)<1)return-0.5*(r*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/s));return r*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/s)*0.5+1},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;if((n*=2)<1)return 0.5*(n*n*((e+1)*n-e));return 0.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-eh.bounceOut(1-n)},bounceOut:function(n){if(n<0.36363636363636365)return 7.5625*n*n;else if(n<0.7272727272727273)return 7.5625*(n-=0.5454545454545454)*n+0.75;else if(n<0.9090909090909091)return 7.5625*(n-=0.8181818181818182)*n+0.9375;else return 7.5625*(n-=0.9545454545454546)*n+0.984375},bounceInOut:function(n){if(n<0.5)return eh.bounceIn(n*2)*0.5;return eh.bounceOut(n*2-1)*0.5+0.5}},th=eh;var{pow:rh,sqrt:Wo}=Math,ah=0.00000001,IA=0.0001,wA=Wo(3),ih=0.3333333333333333,rn=tn(),ji=tn(),Lu=tn();function Ho(n){return n>-ah&&n<ah}function MA(n){return n>ah||n<-ah}function Gt(n,e,r,s,l){var u=1-l;return u*u*(u*n+3*l*e)+l*l*(l*s+3*u*r)}function O0(n,e,r,s,l){var u=1-l;return 3*(((e-n)*u+2*(r-e)*l)*u+(s-r)*l*l)}function ll(n,e,r,s,l,u){var f=s+3*(e-r)-n,c=3*(r-e*2+n),p=3*(e-n),v=n-l,h=c*c-3*f*p,d=c*p-9*f*v,m=p*p-3*c*v,g=0;if(Ho(h)&&Ho(d))if(Ho(c))u[0]=0;else{var y=-p/c;if(y>=0&&y<=1)u[g++]=y}else{var x=d*d-4*h*m;if(Ho(x)){var S=d/h,y=-c/f+S,D=-S/2;if(y>=0&&y<=1)u[g++]=y;if(D>=0&&D<=1)u[g++]=D}else if(x>0){var b=Wo(x),C=h*c+1.5*f*(-d+b),A=h*c+1.5*f*(-d-b);if(C<0)C=-rh(-C,ih);else C=rh(C,ih);if(A<0)A=-rh(-A,ih);else A=rh(A,ih);var y=(-c-(C+A))/(3*f);if(y>=0&&y<=1)u[g++]=y}else{var T=(2*h*c-3*f*d)/(2*Wo(h*h*h)),E=Math.acos(T)/3,w=Wo(h),L=Math.cos(E),y=(-c-2*w*L)/(3*f),D=(-c+w*(L+wA*Math.sin(E)))/(3*f),M=(-c+w*(L-wA*Math.sin(E)))/(3*f);if(y>=0&&y<=1)u[g++]=y;if(D>=0&&D<=1)u[g++]=D;if(M>=0&&M<=1)u[g++]=M}}return g}function nh(n,e,r,s,l){var u=6*r-12*e+6*n,f=9*e+3*s-3*n-9*r,c=3*e-3*n,p=0;if(Ho(f)){if(MA(u)){var v=-c/u;if(v>=0&&v<=1)l[p++]=v}}else{var h=u*u-4*f*c;if(Ho(h))l[0]=-u/(2*f);else if(h>0){var d=Wo(h),v=(-u+d)/(2*f),m=(-u-d)/(2*f);if(v>=0&&v<=1)l[p++]=v;if(m>=0&&m<=1)l[p++]=m}}return p}function $i(n,e,r,s,l,u){var f=(e-n)*l+n,c=(r-e)*l+e,p=(s-r)*l+r,v=(c-f)*l+f,h=(p-c)*l+c,d=(h-v)*l+v;u[0]=n,u[1]=f,u[2]=v,u[3]=d,u[4]=d,u[5]=h,u[6]=p,u[7]=s}function oh(n,e,r,s,l,u,f,c,p,v,h){var d,m=0.005,g=1/0,y,x,S,D;rn[0]=p,rn[1]=v;for(var b=0;b<1;b+=0.05)if(ji[0]=Gt(n,r,l,f,b),ji[1]=Gt(e,s,u,c,b),S=Yn(rn,ji),S<g)d=b,g=S;g=1/0;for(var C=0;C<32;C++){if(m<IA)break;if(y=d-m,x=d+m,ji[0]=Gt(n,r,l,f,y),ji[1]=Gt(e,s,u,c,y),S=Yn(ji,rn),y>=0&&S<g)d=y,g=S;else if(Lu[0]=Gt(n,r,l,f,x),Lu[1]=Gt(e,s,u,c,x),D=Yn(Lu,rn),x<=1&&D<g)d=x,g=D;else m*=0.5}if(h)h[0]=Gt(n,r,l,f,d),h[1]=Gt(e,s,u,c,d);return Wo(g)}function LA(n,e,r,s,l,u,f,c,p){var v=n,h=e,d=0,m=1/p;for(var g=1;g<=p;g++){var y=g*m,x=Gt(n,r,l,f,y),S=Gt(e,s,u,c,y),D=x-v,b=S-h;d+=Math.sqrt(D*D+b*b),v=x,h=S}return d}function lr(n,e,r,s){var l=1-s;return l*(l*n+2*s*e)+s*s*r}function N0(n,e,r,s){return 2*((1-s)*(e-n)+s*(r-e))}function PA(n,e,r,s,l){var u=n-2*e+r,f=2*(e-n),c=n-s,p=0;if(Ho(u)){if(MA(f)){var v=-c/f;if(v>=0&&v<=1)l[p++]=v}}else{var h=f*f-4*u*c;if(Ho(h)){var v=-f/(2*u);if(v>=0&&v<=1)l[p++]=v}else if(h>0){var d=Wo(h),v=(-f+d)/(2*u),m=(-f-d)/(2*u);if(v>=0&&v<=1)l[p++]=v;if(m>=0&&m<=1)l[p++]=m}}return p}function sh(n,e,r){var s=n+r-2*e;if(s===0)return 0.5;else return(n-e)/s}function Yo(n,e,r,s,l){var u=(e-n)*s+n,f=(r-e)*s+e,c=(f-u)*s+u;l[0]=n,l[1]=u,l[2]=c,l[3]=c,l[4]=f,l[5]=r}function lh(n,e,r,s,l,u,f,c,p){var v,h=0.005,d=1/0;rn[0]=f,rn[1]=c;for(var m=0;m<1;m+=0.05){ji[0]=lr(n,r,l,m),ji[1]=lr(e,s,u,m);var g=Yn(rn,ji);if(g<d)v=m,d=g}d=1/0;for(var y=0;y<32;y++){if(h<IA)break;var x=v-h,S=v+h;ji[0]=lr(n,r,l,x),ji[1]=lr(e,s,u,x);var g=Yn(ji,rn);if(x>=0&&g<d)v=x,d=g;else{Lu[0]=lr(n,r,l,S),Lu[1]=lr(e,s,u,S);var D=Yn(Lu,rn);if(S<=1&&D<d)v=S,d=D;else h*=0.5}}if(p)p[0]=lr(n,r,l,v),p[1]=lr(e,s,u,v);return Wo(d)}function RA(n,e,r,s,l,u,f){var c=n,p=e,v=0,h=1/f;for(var d=1;d<=f;d++){var m=d*h,g=lr(n,r,l,m),y=lr(e,s,u,m),x=g-c,S=y-p;v+=Math.sqrt(x*x+S*S),c=g,p=y}return v}var LU=/cubic-bezier\(([0-9,\.e ]+)\)/;function Pu(n){var e=n&&LU.exec(n);if(e){var r=e[1].split(","),s=+Mr(r[0]),l=+Mr(r[1]),u=+Mr(r[2]),f=+Mr(r[3]);if(isNaN(s+l+u+f))return;var c=[];return function(p){return p<=0?0:p>=1?1:ll(0,s,u,1,p,c)&&Gt(0,l,f,1,c[0])}}}var PU=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1000,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||mt,this.ondestroy=e.ondestroy||mt,this.onrestart=e.onrestart||mt,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,r){if(!this._inited)this._startTime=e+this._delay,this._inited=!0;if(this._paused){this._pausedTime+=r;return}var s=this._life,l=e-this._startTime-this._pausedTime,u=l/s;if(u<0)u=0;u=Math.min(u,1);var f=this.easingFunc,c=f?f(u):u;if(this.onframe(c),u===1)if(this.loop){var p=l%s;this._startTime=e-p,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ie(e)?e:th[e]||Pu(e)},n}(),OA=PU;var NA={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 Aa(n){return n=Math.round(n),n<0?0:n>255?255:n}function RU(n){return n=Math.round(n),n<0?0:n>360?360:n}function Tc(n){return n<0?0:n>1?1:n}function k0(n){var e=n;if(e.length&&e.charAt(e.length-1)==="%")return Aa(parseFloat(e)/100*255);return Aa(parseInt(e,10))}function ul(n){var e=n;if(e.length&&e.charAt(e.length-1)==="%")return Tc(parseFloat(e)/100);return Tc(parseFloat(e))}function B0(n,e,r){if(r<0)r+=1;else if(r>1)r-=1;if(r*6<1)return n+(e-n)*r*6;if(r*2<1)return e;if(r*3<2)return n+(e-n)*(0.6666666666666666-r)*6;return n}function Xo(n,e,r){return n+(e-n)*r}function Qi(n,e,r,s,l){return n[0]=e,n[1]=r,n[2]=s,n[3]=l,n}function F0(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var BA=new Qa(20),fh=null;function Ru(n,e){if(fh)F0(fh,e);fh=BA.put(n,fh||e.slice())}function Ar(n,e){if(!n)return;e=e||[];var r=BA.get(n);if(r)return F0(e,r);n=n+"";var s=n.replace(/ /g,"").toLowerCase();if(s in NA)return F0(e,NA[s]),Ru(n,e),e;var l=s.length;if(s.charAt(0)==="#"){if(l===4||l===5){var u=parseInt(s.slice(1,4),16);if(!(u>=0&&u<=4095)){Qi(e,0,0,0,1);return}return Qi(e,(u&3840)>>4|(u&3840)>>8,u&240|(u&240)>>4,u&15|(u&15)<<4,l===5?parseInt(s.slice(4),16)/15:1),Ru(n,e),e}else if(l===7||l===9){var u=parseInt(s.slice(1,7),16);if(!(u>=0&&u<=16777215)){Qi(e,0,0,0,1);return}return Qi(e,(u&16711680)>>16,(u&65280)>>8,u&255,l===9?parseInt(s.slice(7),16)/255:1),Ru(n,e),e}return}var f=s.indexOf("("),c=s.indexOf(")");if(f!==-1&&c+1===l){var p=s.substr(0,f),v=s.substr(f+1,c-(f+1)).split(","),h=1;switch(p){case"rgba":if(v.length!==4)return v.length===3?Qi(e,+v[0],+v[1],+v[2],1):Qi(e,0,0,0,1);h=ul(v.pop());case"rgb":if(v.length>=3)return Qi(e,k0(v[0]),k0(v[1]),k0(v[2]),v.length===3?h:ul(v[3])),Ru(n,e),e;else{Qi(e,0,0,0,1);return}case"hsla":if(v.length!==4){Qi(e,0,0,0,1);return}return v[3]=ul(v[3]),z0(v,e),Ru(n,e),e;case"hsl":if(v.length!==3){Qi(e,0,0,0,1);return}return z0(v,e),Ru(n,e),e;default:return}}Qi(e,0,0,0,1);return}function z0(n,e){var r=(parseFloat(n[0])%360+360)%360/360,s=ul(n[1]),l=ul(n[2]),u=l<=0.5?l*(s+1):l+s-l*s,f=l*2-u;if(e=e||[],Qi(e,Aa(B0(f,u,r+0.3333333333333333)*255),Aa(B0(f,u,r)*255),Aa(B0(f,u,r-0.3333333333333333)*255),1),n.length===4)e[3]=n[3];return e}function OU(n){if(!n)return;var e=n[0]/255,r=n[1]/255,s=n[2]/255,l=Math.min(e,r,s),u=Math.max(e,r,s),f=u-l,c=(u+l)/2,p,v;if(f===0)p=0,v=0;else{if(c<0.5)v=f/(u+l);else v=f/(2-u-l);var h=((u-e)/6+f/2)/f,d=((u-r)/6+f/2)/f,m=((u-s)/6+f/2)/f;if(e===u)p=m-d;else if(r===u)p=0.3333333333333333+h-m;else if(s===u)p=0.6666666666666666+d-h;if(p<0)p+=1;if(p>1)p-=1}var g=[p*360,v,c];if(n[3]!=null)g.push(n[3]);return g}function ch(n,e){var r=Ar(n);if(r){for(var s=0;s<3;s++){if(e<0)r[s]=r[s]*(1-e)|0;else r[s]=(255-r[s])*e+r[s]|0;if(r[s]>255)r[s]=255;else if(r[s]<0)r[s]=0}return ea(r,r.length===4?"rgba":"rgb")}}function ph(n,e,r){if(!(e&&e.length)||!(n>=0&&n<=1))return;r=r||[];var s=n*(e.length-1),l=Math.floor(s),u=Math.ceil(s),f=e[l],c=e[u],p=s-l;return r[0]=Aa(Xo(f[0],c[0],p)),r[1]=Aa(Xo(f[1],c[1],p)),r[2]=Aa(Xo(f[2],c[2],p)),r[3]=Tc(Xo(f[3],c[3],p)),r}function FA(n,e,r){if(!(e&&e.length)||!(n>=0&&n<=1))return;var s=n*(e.length-1),l=Math.floor(s),u=Math.ceil(s),f=Ar(e[l]),c=Ar(e[u]),p=s-l,v=ea([Aa(Xo(f[0],c[0],p)),Aa(Xo(f[1],c[1],p)),Aa(Xo(f[2],c[2],p)),Tc(Xo(f[3],c[3],p))],"rgba");return r?{color:v,leftIndex:l,rightIndex:u,value:s}:v}function Ji(n,e,r,s){var l=Ar(n);if(n)return l=OU(l),e!=null&&(l[0]=RU(ie(e)?e(l[0]):e)),r!=null&&(l[1]=ul(ie(r)?r(l[1]):r)),s!=null&&(l[2]=ul(ie(s)?s(l[2]):s)),ea(z0(l),"rgba")}function fl(n,e){var r=Ar(n);if(r&&e!=null)return r[3]=Tc(e),ea(r,"rgba")}function ea(n,e){if(!n||!n.length)return;var r=n[0]+","+n[1]+","+n[2];if(e==="rgba"||e==="hsva"||e==="hsla")r+=","+n[3];return e+"("+r+")"}function Ou(n,e){var r=Ar(n);return r?(0.299*r[0]+0.587*r[1]+0.114*r[2])*r[3]/255+(1-r[3])*e:0}var kA=new Qa(100);function Ec(n){if(K(n)){var e=kA.get(n);if(!e)e=ch(n,-0.1),kA.put(n,e);return e}else if(_u(n)){var r=V({},n);return r.colorStops=W(n.colorStops,function(s){return{offset:s.offset,color:ch(s.color,-0.1)}}),r}return n}var hh=Math.round;function Zo(n){var e;if(!n||n==="transparent")n="none";else if(typeof n==="string"&&n.indexOf("rgba")>-1){var r=Ar(n);if(r)n="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3]}return{color:n,opacity:e==null?1:e}}var zA=0.0001;function an(n){return n<zA&&n>-zA}function vh(n){return hh(n*1000)/1000}function dh(n){return hh(n*1e4)/1e4}function VA(n){return"matrix("+vh(n[0])+","+vh(n[1])+","+vh(n[2])+","+vh(n[3])+","+dh(n[4])+","+dh(n[5])+")"}var UA={left:"start",right:"end",center:"middle",middle:"middle"};function GA(n,e,r){if(r==="top")n+=e/2;else if(r==="bottom")n-=e/2;return n}function HA(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function WA(n){var e=n.style,r=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function U0(n){return n&&!!n.image}function NU(n){return n&&!!n.svgElement}function wc(n){return U0(n)||NU(n)}function mh(n){return n.type==="linear"}function gh(n){return n.type==="radial"}function yh(n){return n&&(n.type==="linear"||n.type==="radial")}function Ic(n){return"url(#"+n+")"}function xh(n){var e=n.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function _h(n){var e=n.x||0,r=n.y||0,s=(n.rotation||0)*Du,l=te(n.scaleX,1),u=te(n.scaleY,1),f=n.skewX||0,c=n.skewY||0,p=[];if(e||r)p.push("translate("+e+"px,"+r+"px)");if(s)p.push("rotate("+s+")");if(l!==1||u!==1)p.push("scale("+l+","+u+")");if(f||c)p.push("skew("+hh(f*Du)+"deg, "+hh(c*Du)+"deg)");return p.join(" ")}var YA=function(){if(typeof Buffer<"u"&&typeof Buffer.from==="function")return function(n){return Buffer.from(n).toString("base64")};if(typeof btoa==="function"&&typeof unescape==="function"&&typeof encodeURIComponent==="function")return function(n){return btoa(unescape(encodeURIComponent(n)))};return function(n){return null}}();var H0=Array.prototype.slice;function jn(n,e,r){return(e-n)*r+n}function G0(n,e,r,s){var l=e.length;for(var u=0;u<l;u++)n[u]=jn(e[u],r[u],s);return n}function kU(n,e,r,s){var l=e.length,u=l&&e[0].length;for(var f=0;f<l;f++){if(!n[f])n[f]=[];for(var c=0;c<u;c++)n[f][c]=jn(e[f][c],r[f][c],s)}return n}function Sh(n,e,r,s){var l=e.length;for(var u=0;u<l;u++)n[u]=e[u]+r[u]*s;return n}function XA(n,e,r,s){var l=e.length,u=l&&e[0].length;for(var f=0;f<l;f++){if(!n[f])n[f]=[];for(var c=0;c<u;c++)n[f][c]=e[f][c]+r[f][c]*s}return n}function BU(n,e){var r=n.length,s=e.length,l=r>s?e:n,u=Math.min(r,s),f=l[u-1]||{color:[0,0,0,0],offset:0};for(var c=u;c<Math.max(r,s);c++)l.push({offset:f.offset,color:f.color.slice()})}function FU(n,e,r){var s=n,l=e;if(!s.push||!l.push)return;var u=s.length,f=l.length;if(u!==f){var c=u>f;if(c)s.length=f;else for(var p=u;p<f;p++)s.push(r===1?l[p]:H0.call(l[p]))}var v=s[0]&&s[0].length;for(var p=0;p<s.length;p++)if(r===1){if(isNaN(s[p]))s[p]=l[p]}else for(var h=0;h<v;h++)if(isNaN(s[p][h]))s[p][h]=l[p][h]}function Pc(n){if(Qt(n)){var e=n.length;if(Qt(n[0])){var r=[];for(var s=0;s<e;s++)r.push(H0.call(n[s]));return r}return H0.call(n)}return n}function Ch(n){return n[0]=Math.floor(n[0])||0,n[1]=Math.floor(n[1])||0,n[2]=Math.floor(n[2])||0,n[3]=n[3]==null?1:n[3],"rgba("+n.join(",")+")"}function zU(n){return Qt(n&&n[0])?2:1}var Dh=0,Ah=1,qA=2,Lc=3,W0=4,Y0=5,ZA=6;function KA(n){return n===W0||n===Y0}function bh(n){return n===Ah||n===qA}var Mc=[0,0,0,0],VU=function(){function n(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return n.prototype.isFinished=function(){return this._finished},n.prototype.setFinished=function(){if(this._finished=!0,this._additiveTrack)this._additiveTrack.setFinished()},n.prototype.needsAnimate=function(){return this.keyframes.length>=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,r,s){this._needsSort=!0;var l=this.keyframes,u=l.length,f=!1,c=ZA,p=r;if(Qt(r)){var v=zU(r);if(c=v,v===1&&!Te(r[0])||v===2&&!Te(r[0][0]))f=!0}else if(Te(r)&&!oi(r))c=Dh;else if(K(r))if(!isNaN(+r))c=Dh;else{var h=Ar(r);if(h)p=h,c=Lc}else if(_u(r)){var d=V({},p);if(d.colorStops=W(r.colorStops,function(g){return{offset:g.offset,color:Ar(g.color)}}),mh(r))c=W0;else if(gh(r))c=Y0;p=d}if(u===0)this.valType=c;else if(c!==this.valType||c===ZA)f=!0;this.discrete=this.discrete||f;var m={time:e,value:p,rawValue:r,percent:0};if(s)m.easing=s,m.easingFunc=ie(s)?s:th[s]||Pu(s);return l.push(m),m},n.prototype.prepare=function(e,r){var s=this.keyframes;if(this._needsSort)s.sort(function(x,S){return x.time-S.time});var l=this.valType,u=s.length,f=s[u-1],c=this.discrete,p=bh(l),v=KA(l);for(var h=0;h<u;h++){var d=s[h],m=d.value,g=f.value;if(d.percent=d.time/e,!c){if(p&&h!==u-1)FU(m,g,l);else if(v)BU(m.colorStops,g.colorStops)}}if(!c&&l!==Y0&&r&&this.needsAnimate()&&r.needsAnimate()&&l===r.valType&&!r._finished){this._additiveTrack=r;var y=s[0].value;for(var h=0;h<u;h++)if(l===Dh)s[h].additiveValue=s[h].value-y;else if(l===Lc)s[h].additiveValue=Sh([],s[h].value,y,-1);else if(bh(l))s[h].additiveValue=l===Ah?Sh([],s[h].value,y,-1):XA([],s[h].value,y,-1)}},n.prototype.step=function(e,r){if(this._finished)return;if(this._additiveTrack&&this._additiveTrack._finished)this._additiveTrack=null;var s=this._additiveTrack!=null,l=s?"additiveValue":"value",u=this.valType,f=this.keyframes,c=f.length,p=this.propName,v=u===Lc,h,d=this._lastFr,m=Math.min,g,y;if(c===1)g=y=f[0];else{if(r<0)h=0;else if(r<this._lastFrP){var x=m(d+1,c-1);for(h=x;h>=0;h--)if(f[h].percent<=r)break;h=m(h,c-2)}else{for(h=d;h<c;h++)if(f[h].percent>r)break;h=m(h-1,c-2)}y=f[h+1],g=f[h]}if(!(g&&y))return;this._lastFr=h,this._lastFrP=r;var S=y.percent-g.percent,D=S===0?1:m((r-g.percent)/S,1);if(y.easingFunc)D=y.easingFunc(D);var b=s?this._additiveValue:v?Mc:e[p];if((bh(u)||v)&&!b)b=this._additiveValue=[];if(this.discrete)e[p]=D<1?g.rawValue:y.rawValue;else if(bh(u))u===Ah?G0(b,g[l],y[l],D):kU(b,g[l],y[l],D);else if(KA(u)){var C=g[l],A=y[l],T=u===W0;if(e[p]={type:T?"linear":"radial",x:jn(C.x,A.x,D),y:jn(C.y,A.y,D),colorStops:W(C.colorStops,function(w,L){var M=A.colorStops[L];return{offset:jn(w.offset,M.offset,D),color:Ch(G0([],w.color,M.color,D))}}),global:A.global},T)e[p].x2=jn(C.x2,A.x2,D),e[p].y2=jn(C.y2,A.y2,D);else e[p].r=jn(C.r,A.r,D)}else if(v){if(G0(b,g[l],y[l],D),!s)e[p]=Ch(b)}else{var E=jn(g[l],y[l],D);if(s)this._additiveValue=E;else e[p]=E}if(s)this._addToTarget(e)},n.prototype._addToTarget=function(e){var r=this.valType,s=this.propName,l=this._additiveValue;if(r===Dh)e[s]=e[s]+l;else if(r===Lc)Ar(e[s],Mc),Sh(Mc,Mc,l,1),e[s]=Ch(Mc);else if(r===Ah)Sh(e[s],e[s],l,1);else if(r===qA)XA(e[s],e[s],l,1)},n}(),UU=function(){function n(e,r,s,l){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&l){Un("Can' use additive animation on looped animation.");return}this._additiveAnimators=l,this._allowDiscrete=s}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,r,s){return this.whenWithKeys(e,r,Me(r),s)},n.prototype.whenWithKeys=function(e,r,s,l){var u=this._tracks;for(var f=0;f<s.length;f++){var c=s[f],p=u[c];if(!p){p=u[c]=new VU(c);var v=void 0,h=this._getAdditiveTrack(c);if(h){var d=h.keyframes,m=d[d.length-1];if(v=m&&m.value,h.valType===Lc&&v)v=Ch(v)}else v=this._target[c];if(v==null)continue;if(e>0)p.addKeyframe(0,Pc(v),l);this._trackKeys.push(c)}p.addKeyframe(e,Pc(r[c]),l)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e){var r=e.length;for(var s=0;s<r;s++)e[s].call(this)}},n.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e)e.removeClip(this._clip);if(this._clip=null,r)for(var s=0;s<r.length;s++)r[s].call(this)},n.prototype._setTracksFinished=function(){var e=this._tracks,r=this._trackKeys;for(var s=0;s<r.length;s++)e[r[s]].setFinished()},n.prototype._getAdditiveTrack=function(e){var r,s=this._additiveAnimators;if(s)for(var l=0;l<s.length;l++){var u=s[l].getTrack(e);if(u)r=u}return r},n.prototype.start=function(e){if(this._started>0)return;this._started=1;var r=this,s=[],l=this._maxTime||0;for(var u=0;u<this._trackKeys.length;u++){var f=this._trackKeys[u],c=this._tracks[f],p=this._getAdditiveTrack(f),v=c.keyframes,h=v.length;if(c.prepare(l,p),c.needsAnimate())if(!this._allowDiscrete&&c.discrete){var d=v[h-1];if(d)r._target[c.propName]=d.rawValue;c.setFinished()}else s.push(c)}if(s.length||this._force){var m=new OA({life:l,loop:this._loop,delay:this._delay||0,onframe:function(g){r._started=2;var y=r._additiveAnimators;if(y){var x=!1;for(var S=0;S<y.length;S++)if(y[S]._clip){x=!0;break}if(!x)r._additiveAnimators=null}for(var S=0;S<s.length;S++)s[S].step(r._target,g);var D=r._onframeCbs;if(D)for(var S=0;S<D.length;S++)D[S](r._target,g)},ondestroy:function(){r._doneCallback()}});if(this._clip=m,this.animation)this.animation.addClip(m);if(e)m.setEasing(e)}else this._doneCallback();return this},n.prototype.stop=function(e){if(!this._clip)return;var r=this._clip;if(e)r.onframe(1);this._abortedCallback()},n.prototype.delay=function(e){return this._delay=e,this},n.prototype.during=function(e){if(e){if(!this._onframeCbs)this._onframeCbs=[];this._onframeCbs.push(e)}return this},n.prototype.done=function(e){if(e){if(!this._doneCbs)this._doneCbs=[];this._doneCbs.push(e)}return this},n.prototype.aborted=function(e){if(e){if(!this._abortedCbs)this._abortedCbs=[];this._abortedCbs.push(e)}return this},n.prototype.getClip=function(){return this._clip},n.prototype.getTrack=function(e){return this._tracks[e]},n.prototype.getTracks=function(){var e=this;return W(this._trackKeys,function(r){return e._tracks[r]})},n.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;var s=this._tracks,l=this._trackKeys;for(var u=0;u<e.length;u++){var f=s[e[u]];if(f&&!f.isFinished()){if(r)f.step(this._target,1);else if(this._started===1)f.step(this._target,0);f.setFinished()}}var c=!0;for(var u=0;u<l.length;u++)if(!s[l[u]].isFinished()){c=!1;break}if(c)this._abortedCallback();return c},n.prototype.saveTo=function(e,r,s){if(!e)return;r=r||this._trackKeys;for(var l=0;l<r.length;l++){var u=r[l],f=this._tracks[u];if(!f||f.isFinished())continue;var c=f.keyframes,p=c[s?0:c.length-1];if(p)e[u]=Pc(p.rawValue)}},n.prototype.__changeFinalValue=function(e,r){r=r||Me(e);for(var s=0;s<r.length;s++){var l=r[s],u=this._tracks[l];if(!u)continue;var f=u.keyframes;if(f.length>1){var c=f.pop();u.addKeyframe(c.time,e[l]),u.prepare(this._maxTime,u.getAdditiveTrack())}}},n}(),Rc=UU;var GU=function(){function n(e){if(e)this._$eventProcessor=e}return n.prototype.on=function(e,r,s,l){if(!this._$handlers)this._$handlers={};var u=this._$handlers;if(typeof r==="function")l=s,s=r,r=null;if(!s||!e)return this;var f=this._$eventProcessor;if(r!=null&&f&&f.normalizeQuery)r=f.normalizeQuery(r);if(!u[e])u[e]=[];for(var c=0;c<u[e].length;c++)if(u[e][c].h===s)return this;var p={h:s,query:r,ctx:l||this,callAtLast:s.zrEventfulCallAtLast},v=u[e].length-1,h=u[e][v];return h&&h.callAtLast?u[e].splice(v,0,p):u[e].push(p),this},n.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},n.prototype.off=function(e,r){var s=this._$handlers;if(!s)return this;if(!e)return this._$handlers={},this;if(r){if(s[e]){var l=[];for(var u=0,f=s[e].length;u<f;u++)if(s[e][u].h!==r)l.push(s[e][u]);s[e]=l}if(s[e]&&s[e].length===0)delete s[e]}else delete s[e];return this},n.prototype.trigger=function(e){var r=[];for(var s=1;s<arguments.length;s++)r[s-1]=arguments[s];if(!this._$handlers)return this;var l=this._$handlers[e],u=this._$eventProcessor;if(l){var f=r.length,c=l.length;for(var p=0;p<c;p++){var v=l[p];if(u&&u.filter&&v.query!=null&&!u.filter(e,v.query))continue;switch(f){case 0:v.h.call(v.ctx);break;case 1:v.h.call(v.ctx,r[0]);break;case 2:v.h.call(v.ctx,r[0],r[1]);break;default:v.h.apply(v.ctx,r);break}}}return u&&u.afterTrigger&&u.afterTrigger(e),this},n.prototype.triggerWithContext=function(e){var r=[];for(var s=1;s<arguments.length;s++)r[s-1]=arguments[s];if(!this._$handlers)return this;var l=this._$handlers[e],u=this._$eventProcessor;if(l){var f=r.length,c=r[f-1],p=l.length;for(var v=0;v<p;v++){var h=l[v];if(u&&u.filter&&h.query!=null&&!u.filter(e,h.query))continue;switch(f){case 0:h.h.call(c);break;case 1:h.h.call(c,r[0]);break;case 2:h.h.call(c,r[0],r[1]);break;default:h.h.apply(c,r.slice(1,f-1));break}}}return u&&u.afterTrigger&&u.afterTrigger(e),this},n}(),_r=GU;var jA=1;if(Ue.hasGlobalWindow)jA=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1);var X0=jA,Oc=0.4,Nc="#333",kc="#ccc",$A="#eee";var Nr=1,cl=2,Ko=4;var Z0="__zr_normal__",K0=Mu.concat(["ignore"]),HU=wi(Mu,function(n,e){return n[e]=!0,n},{ignore:!1}),Nu={},WU=new De(0,0,0,0),Th=[],Eh=0,ku=1,$0=function(){function n(e){this.id=Xv(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,r,s){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var l=this.transform;if(!l)l=this.transform=[1,0,0,1,0,0];l[4]+=e,l[5]+=r,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){if(this.updateTransform(),this.__dirty)this.updateInnerText()},n.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){if(!this.textConfig)this.textConfig={};var s=this.textConfig,l=s.local,u=r.innerTransformable,f=void 0,c=void 0,p=!1;u.parent=l?this:null;var v=!1;u.copyTransform(r);var h=s.position!=null,d=s.autoOverflowArea,m=void 0;if(d||h){if(m=WU,s.layoutRect)m.copy(s.layoutRect);else m.copy(this.getBoundingRect());if(!l)m.applyTransform(this.transform)}if(h){if(this.calculateTextPosition)this.calculateTextPosition(Nu,s,m);else al(Nu,s,m);u.x=Nu.x,u.y=Nu.y,f=Nu.align,c=Nu.verticalAlign;var g=s.origin;if(g&&s.rotation!=null){var y=void 0,x=void 0;if(g==="center")y=m.width*0.5,x=m.height*0.5;else y=fi(g[0],m.width),x=fi(g[1],m.height);v=!0,u.originX=-u.x+y+(l?0:m.x),u.originY=-u.y+x+(l?0:m.y)}}if(s.rotation!=null)u.rotation=s.rotation;var S=s.offset;if(S){if(u.x+=S[0],u.y+=S[1],!v)u.originX=-S[0],u.originY=-S[1]}var D=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(d){var b=D.overflowRect=D.overflowRect||new De(0,0,0,0);u.getLocalTransform(Th),Zr(Th,Th),De.copy(b,m),b.applyTransform(Th)}else D.overflowRect=null;var C=s.inside==null?typeof s.position==="string"&&s.position.indexOf("inside")>=0:s.inside,A=void 0,T=void 0,E=void 0;if(C&&this.canBeInsideText()){if(A=s.insideFill,T=s.insideStroke,A==null||A==="auto")A=this.getInsideTextFill();if(T==null||T==="auto")T=this.getInsideTextStroke(A),E=!0}else{if(A=s.outsideFill,T=s.outsideStroke,A==null||A==="auto")A=this.getOutsideFill();if(T==null||T==="auto")T=this.getOutsideStroke(A),E=!0}if(A=A||"#000",A!==D.fill||T!==D.stroke||E!==D.autoStroke||f!==D.align||c!==D.verticalAlign)p=!0,D.fill=A,D.stroke=T,D.autoStroke=E,D.align=f,D.verticalAlign=c,r.setDefaultTextStyle(D);if(r.__dirty|=Nr,p)r.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?kc:Nc},n.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),s=typeof r==="string"&&Ar(r);if(!s)s=[255,255,255,1];var l=s[3],u=this.__zr.isDarkMode();for(var f=0;f<3;f++)s[f]=s[f]*l+(u?0:255)*(1-l);return s[3]=1,ea(s,"rgba")},n.prototype.traverse=function(e,r){},n.prototype.attrKV=function(e,r){if(e==="textConfig")this.setTextConfig(r);else if(e==="textContent")this.setTextContent(r);else if(e==="clipPath")this.setClipPath(r);else if(e==="extra")this.extra=this.extra||{},V(this.extra,r);else this[e]=r},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,r){if(typeof e==="string")this.attrKV(e,r);else if(ue(e)){var s=e,l=Me(s);for(var u=0;u<l.length;u++){var f=l[u];this.attrKV(f,e[f])}}return this.markRedraw(),this},n.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);var r=this._normalState;for(var s=0;s<this.animators.length;s++){var l=this.animators[s],u=l.__fromStateTransition;if(l.getLoop()||u&&u!==Z0)continue;var f=l.targetName,c=f?r[f]:r;l.saveTo(c)}},n.prototype._innerSaveToNormal=function(e){var r=this._normalState;if(!r)r=this._normalState={};if(e.textConfig&&!r.textConfig)r.textConfig=this.textConfig;this._savePrimaryToNormal(e,r,K0)},n.prototype._savePrimaryToNormal=function(e,r,s){for(var l=0;l<s.length;l++){var u=s[l];if(e[u]!=null&&!(u in r))r[u]=this[u]}},n.prototype.hasState=function(){return this.currentStates.length>0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var r=this.states;if(!r[e])r[e]={};return r[e]},n.prototype.clearStates=function(e){this.useState(Z0,!1,e)},n.prototype.useState=function(e,r,s,l){var u=e===Z0,f=this.hasState();if(!f&&u)return;var c=this.currentStates,p=this.stateTransition;if(be(c,e)>=0&&(r||c.length===1))return;var v;if(this.stateProxy&&!u)v=this.stateProxy(e);if(!v)v=this.states&&this.states[e];if(!v&&!u){Un("State "+e+" not exists.");return}if(!u)this.saveCurrentToNormalState(v);var h=this._textContent,d=QA(this,h,v,l);if(d&&!this.__inHover)this.__inHover=d;this._applyStateObj(e,v,this._normalState,r,eT(this,s,p),p);var m=this._textGuide;if(h)h.useState(e,r,s,!!d);if(m)m.useState(e,r,s,!!d);if(u)this.currentStates=[],this._normalState={};else if(!r)this.currentStates=[e];else this.currentStates.push(e);if(this._updateAnimationTargets(),this.markRedraw(),!d&&this.__inHover)this.__inHover=Eh,this.__dirty&=~Nr;return v},n.prototype.useStates=function(e,r,s){if(!e.length)this.clearStates();else{var l=[],u=this.currentStates,f=e.length,c=f===u.length;if(c){for(var p=0;p<f;p++)if(e[p]!==u[p]){c=!1;break}}if(c)return;for(var p=0;p<f;p++){var v=e[p],h=void 0;if(this.stateProxy)h=this.stateProxy(v,e);if(!h)h=this.states[v];if(h)l.push(h)}var d=l[f-1],m=this._textContent,g=QA(this,m,d,s);if(g&&!this.__inHover)this.__inHover=g;var y=this._mergeStates(l),x=this.stateTransition;this.saveCurrentToNormalState(y),this._applyStateObj(e.join(","),y,this._normalState,!1,eT(this,r,x),x);var S=this._textGuide;if(m)m.useStates(e,r,!!g);if(S)S.useStates(e,r,!!g);if(this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!g&&this.__inHover)this.__inHover=Eh,this.__dirty&=~Nr}},n.prototype.isSilent=function(){var e=this;while(e){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},n.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];if(r.targetName)r.changeTarget(this[r.targetName])}},n.prototype.removeState=function(e){var r=be(this.currentStates,e);if(r>=0){var s=this.currentStates.slice();s.splice(r,1),this.useStates(s)}},n.prototype.replaceState=function(e,r,s){var l=this.currentStates.slice(),u=be(l,e),f=be(l,r)>=0;if(u>=0)if(!f)l[u]=r;else l.splice(u,1);else if(s&&!f)l.push(r);this.useStates(l)},n.prototype.toggleState=function(e,r){if(r)this.useState(e,!0);else this.removeState(e)},n.prototype._mergeStates=function(e){var r={},s;for(var l=0;l<e.length;l++){var u=e[l];if(V(r,u),u.textConfig)s=s||{},V(s,u.textConfig)}if(s)r.textConfig=s;return r},n.prototype._applyStateObj=function(e,r,s,l,u,f){if(this.__inHover===ku)return;var c=!(r&&l);if(r&&r.textConfig)this.textConfig=V({},l?this.textConfig:s.textConfig),V(this.textConfig,r.textConfig);else if(c){if(s.textConfig)this.textConfig=s.textConfig}var p={},v=!1;for(var h=0;h<K0.length;h++){var d=K0[h],m=u&&HU[d];if(r&&r[d]!=null)if(m)v=!0,p[d]=r[d];else this[d]=r[d];else if(c){if(s[d]!=null)if(m)v=!0,p[d]=s[d];else this[d]=s[d]}}if(!u)for(var h=0;h<this.animators.length;h++){var g=this.animators[h],y=g.targetName;if(!g.getLoop())g.__changeFinalValue(y?(r||s)[y]:r||s)}if(v)this._transitionState(e,p,f)},n.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget)return;if(e===this)return;var r=this.__zr;if(r)e.addSelfToZr(r);e.__zr=r,e.__hostTarget=this},n.prototype._detachComponent=function(e){if(e.__zr)e.removeSelfFromZr(e.__zr);e.__zr=null,e.__hostTarget=null},n.prototype.getClipPath=function(){return this._clipPath},n.prototype.setClipPath=function(e){if(this._clipPath&&this._clipPath!==e)this.removeClipPath();this._attachComponent(e),this._clipPath=e,this.markRedraw()},n.prototype.removeClipPath=function(){var e=this._clipPath;if(e)this._detachComponent(e),this._clipPath=null,this.markRedraw()},n.prototype.getTextContent=function(){return this._textContent},n.prototype.setTextContent=function(e){var r=this._textContent;if(r===e)return;if(r&&r!==e)this.removeTextContent();e.innerTransformable=new qi,this._attachComponent(e),this._textContent=e,this.markRedraw()},n.prototype.setTextConfig=function(e){if(!this.textConfig)this.textConfig={};V(this.textConfig,e),this.markRedraw()},n.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},n.prototype.removeTextContent=function(){var e=this._textContent;if(e)e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw()},n.prototype.getTextGuideLine=function(){return this._textGuide},n.prototype.setTextGuideLine=function(e){if(this._textGuide&&this._textGuide!==e)this.removeTextGuideLine();this._attachComponent(e),this._textGuide=e,this.markRedraw()},n.prototype.removeTextGuideLine=function(){var e=this._textGuide;if(e)this._detachComponent(e),this._textGuide=null,this.markRedraw()},n.prototype.markRedraw=function(){this.__dirty|=Nr;var e=this.__zr;if(e)if(this.__inHover)e.refreshHover();else e.refresh();if(this.__hostTarget)this.__hostTarget.markRedraw()},n.prototype.dirty=function(){this.markRedraw()},n.prototype.addSelfToZr=function(e){if(this.__zr===e)return;this.__zr=e;var r=this.animators;if(r)for(var s=0;s<r.length;s++)e.animation.addAnimator(r[s]);if(this._clipPath)this._clipPath.addSelfToZr(e);if(this._textContent)this._textContent.addSelfToZr(e);if(this._textGuide)this._textGuide.addSelfToZr(e)},n.prototype.removeSelfFromZr=function(e){if(!this.__zr)return;this.__zr=null;var r=this.animators;if(r)for(var s=0;s<r.length;s++)e.animation.removeAnimator(r[s]);if(this._clipPath)this._clipPath.removeSelfFromZr(e);if(this._textContent)this._textContent.removeSelfFromZr(e);if(this._textGuide)this._textGuide.removeSelfFromZr(e)},n.prototype.animate=function(e,r,s){var l=e?this[e]:this,u=new Rc(l,r,s);return e&&(u.targetName=e),this.addAnimator(u,e),u},n.prototype.addAnimator=function(e,r){var s=this.__zr,l=this;if(e.during(function(){l.updateDuringAnimation(r)}).done(function(){var u=l.animators,f=be(u,e);if(f>=0)u.splice(f,1)}),this.animators.push(e),s)s.animation.addAnimator(e);s&&s.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,r){var s=this.animators,l=s.length,u=[];for(var f=0;f<l;f++){var c=s[f];if(!e||e===c.scope)c.stop(r);else u.push(c)}return this.animators=u,this},n.prototype.animateTo=function(e,r,s){q0(this,e,r,s)},n.prototype.animateFrom=function(e,r,s){q0(this,e,r,s,!0)},n.prototype._transitionState=function(e,r,s,l){var u=q0(this,r,s,l);for(var f=0;f<u.length;f++)u[f].__fromStateTransition=e},n.prototype.getBoundingRect=function(){return null},n.prototype.getPaintRect=function(){return null},n.initDefaultProps=function(){var e=n.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Eh,e.__dirty=Nr;var r={};function s(u,f,c){if(!r[u+f+c])console.warn("DEPRECATED: '"+u+"' has been deprecated. use '"+f+"', '"+c+"' instead"),r[u+f+c]=!0}function l(u,f,c,p){Object.defineProperty(e,u,{get:function(){if(!this[f]){var h=this[f]=[];v(this,h)}return this[f]},set:function(h){this[c]=h[0],this[p]=h[1],this[f]=h,v(this,h)}});function v(h,d){Object.defineProperty(d,0,{get:function(){return h[c]},set:function(m){h[c]=m}}),Object.defineProperty(d,1,{get:function(){return h[p]},set:function(m){h[p]=m}})}}if(Object.defineProperty)l("position","_legacyPos","x","y"),l("scale","_legacyScale","scaleX","scaleY"),l("origin","_legacyOrigin","originX","originY")}(),n}();xt($0,_r);xt($0,qi);function q0(n,e,r,s,l){r=r||{};var u=[];tT(n,"",n,e,r,s,u,l);var f=u.length,c=!1,p=r.done,v=r.aborted,h=function(){if(c=!0,f--,f<=0)c?p&&p():v&&v()},d=function(){if(f--,f<=0)c?p&&p():v&&v()};if(!f)p&&p();if(u.length>0&&r.during)u[0].during(function(y,x){r.during(x)});for(var m=0;m<u.length;m++){var g=u[m];if(h)g.done(h);if(d)g.aborted(d);if(r.force)g.duration(r.duration);g.start(r.easing)}return u}function j0(n,e,r){for(var s=0;s<r;s++)n[s]=e[s]}function YU(n){return Qt(n[0])}function XU(n,e,r){if(Qt(e[r])){if(!Qt(n[r]))n[r]=[];if(Yt(e[r])){var s=e[r].length;if(n[r].length!==s)n[r]=new e[r].constructor(s),j0(n[r],e[r],s)}else{var l=e[r],u=n[r],f=l.length;if(YU(l)){var c=l[0].length;for(var p=0;p<f;p++)if(!u[p])u[p]=Array.prototype.slice.call(l[p]);else j0(u[p],l[p],c)}else j0(u,l,f);u.length=l.length}}else n[r]=e[r]}function ZU(n,e){return n===e||Qt(n)&&Qt(e)&&KU(n,e)}function KU(n,e){var r=n.length;if(r!==e.length)return!1;for(var s=0;s<r;s++)if(n[s]!==e[s])return!1;return!0}function tT(n,e,r,s,l,u,f,c){var p=Me(s),{duration:v,delay:h,additive:d,setToFinal:m}=l,g=!ue(u),y=n.animators,x=[];for(var S=0;S<p.length;S++){var D=p[S],b=s[D];if(b!=null&&r[D]!=null&&(g||u[D]))if(ue(b)&&!Qt(b)&&!_u(b)){if(e){if(!c)r[D]=b,n.updateDuringAnimation(e);continue}tT(n,D,r[D],b,l,u&&u[D],f,c)}else x.push(D);else if(!c)r[D]=b,n.updateDuringAnimation(e),x.push(D)}var C=x.length;if(!d&&C)for(var A=0;A<y.length;A++){var T=y[A];if(T.targetName===e){var E=T.stopTracks(x);if(E){var w=be(y,T);y.splice(w,1)}}}if(!l.force)x=Ke(x,function(R){return!ZU(s[R],r[R])}),C=x.length;if(C>0||l.force&&!f.length){var L=void 0,M=void 0,P=void 0;if(c){if(M={},m)L={};for(var A=0;A<C;A++){var D=x[A];if(M[D]=r[D],m)L[D]=s[D];else r[D]=s[D]}}else if(m){P={};for(var A=0;A<C;A++){var D=x[A];P[D]=Pc(r[D]),XU(r,s,D)}}var T=new Rc(r,!1,!1,d?Ke(y,function(N){return N.targetName===e}):null);if(T.targetName=e,l.scope)T.scope=l.scope;if(m&&L)T.whenWithKeys(0,L,x);if(P)T.whenWithKeys(0,P,x);T.whenWithKeys(v==null?500:v,c?M:s,x).delay(h||0),n.addAnimator(T,e),f.push(T)}}function QA(n,e,r,s){return!(r&&r.hoverLayer||s)||JA(n)||e&&JA(e)?Eh:ku}function JA(n){return n.type==="text"||n.type==="tspan"}function eT(n,e,r){return!e&&!n.__inHover&&r&&r.duration>0}var wh=$0;var ex="__zr_style_"+Math.round(Math.random()*10),nn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},pl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};nn[ex]=!0;var rT=["z","z2","invisible"],qU=["invisible"],jU=function(n){k(e,n);function e(r){return n.call(this,r)||this}return e.prototype._init=function(r){var s=Me(r);for(var l=0;l<s.length;l++){var u=s[l];if(u==="style")this.useStyle(r[u]);else n.prototype.attrKV.call(this,u,r[u])}if(!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,s,l,u){var f=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&$U(this,r,s)||f&&!f[0]&&!f[3])return!1;if(l&&this.__clipPaths&&this.__clipPaths.length){for(var c=0;c<this.__clipPaths.length;++c)if(this.__clipPaths[c].isZeroArea())return!1}if(u&&this.parent){var p=this.parent;while(p){if(p.ignore)return!1;p=p.parent}}return!0},e.prototype.contain=function(r,s){return this.rectContain(r,s)},e.prototype.traverse=function(r,s){r.call(s,this)},e.prototype.rectContain=function(r,s){var l=this.transformCoordToLocal(r,s),u=this.getBoundingRect();return u.contain(l[0],l[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var s=this.transform,l=this.getBoundingRect(),u=this.style,f=u.shadowBlur||0,c=u.shadowOffsetX||0,p=u.shadowOffsetY||0;if(r=this._paintRect||(this._paintRect=new De(0,0,0,0)),s)De.applyTransform(r,l,s);else r.copy(l);if(f||c||p)r.width+=f*2+Math.abs(c),r.height+=f*2+Math.abs(p),r.x=Math.min(r.x,r.x+c-f),r.y=Math.min(r.y,r.y+p-f);var v=this.dirtyRectTolerance;if(!r.isZero())r.x=Math.floor(r.x-v),r.y=Math.floor(r.y-v),r.width=Math.ceil(r.width+1+v*2),r.height=Math.ceil(r.height+1+v*2)}return r},e.prototype.setPrevPaintRect=function(r){if(r)this._prevPaintRect=this._prevPaintRect||new De(0,0,0,0),this._prevPaintRect.copy(r);else 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){if(r==="style")this.dirtyStyle();else this.markRedraw()},e.prototype.attrKV=function(r,s){if(r!=="style")n.prototype.attrKV.call(this,r,s);else if(!this.style)this.useStyle(s);else this.setStyle(s)},e.prototype.setStyle=function(r,s){if(typeof r==="string")this.style[r]=s;else V(this.style,r);return this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){if(!r)this.markRedraw();if(this.__dirty|=cl,this._rect)this._rect=null},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&cl)},e.prototype.styleUpdated=function(){this.__dirty&=~cl},e.prototype.createStyle=function(r){return Fo(nn,r)},e.prototype.useStyle=function(r){if(!r[ex])r=this.createStyle(r);this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[ex]},e.prototype._innerSaveToNormal=function(r){n.prototype._innerSaveToNormal.call(this,r);var s=this._normalState;if(r.style&&!s.style)s.style=this._mergeStyle(this.createStyle(),this.style);this._savePrimaryToNormal(r,s,rT)},e.prototype._applyStateObj=function(r,s,l,u,f,c){n.prototype._applyStateObj.call(this,r,s,l,u,f,c);var p=!(s&&u),v=this.__inHover===ku,h;if(s&&s.style)if(f)if(u)h=s.style;else h=this._mergeStyle(this.createStyle(),l.style),this._mergeStyle(h,s.style);else h=this._mergeStyle(this.createStyle(),u?this.style:l.style),this._mergeStyle(h,s.style);else if(p)h=l.style;if(h)if(f){var d=this.style;if(this.style=this.createStyle(p?{}:d),p){var m=Me(d);for(var g=0;g<m.length;g++){var y=m[g];if(y in h)h[y]=h[y],this.style[y]=d[y]}}var x=Me(h);for(var g=0;g<x.length;g++){var y=x[g];this.style[y]=this.style[y]}this._transitionState(r,{style:h},c,this.getAnimationStyleProps())}else if(v)this._useHoverStyle(h);else this.useStyle(h);if(!v){var S=this.__inHover?qU:rT;for(var g=0;g<S.length;g++){var y=S[g];if(s&&s[y]!=null)this[y]=s[y];else if(p){if(l[y]!=null)this[y]=l[y]}}}},e.prototype._mergeStates=function(r){var s=n.prototype._mergeStates.call(this,r),l;for(var u=0;u<r.length;u++){var f=r[u];if(f.style)l=l||{},this._mergeStyle(l,f.style)}if(l)s.style=l;return s},e.prototype._mergeStyle=function(r,s){return V(r,s),r},e.prototype.getAnimationStyleProps=function(){return pl},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=Nr|cl}(),e}(wh),Q0=new De(0,0,0,0),J0=new De(0,0,0,0);function $U(n,e,r){if(Q0.copy(n.getBoundingRect()),n.transform)Q0.applyTransform(n.transform);return J0.width=e,J0.height=r,!Q0.intersect(J0)}var pi=jU;var{min:vi,max:hi,sin:tx,cos:rx}=Math,vl=Math.PI*2,Ih=tn(),Mh=tn(),Lh=tn();function hl(n,e,r){if(n.length===0)return;var s=n[0],l=s[0],u=s[0],f=s[1],c=s[1];for(var p=1;p<n.length;p++)s=n[p],l=vi(l,s[0]),u=hi(u,s[0]),f=vi(f,s[1]),c=hi(c,s[1]);e[0]=l,e[1]=f,r[0]=u,r[1]=c}function ix(n,e,r,s,l,u){l[0]=vi(n,r),l[1]=vi(e,s),u[0]=hi(n,r),u[1]=hi(e,s)}var iT=[],aT=[];function nT(n,e,r,s,l,u,f,c,p,v){var h=nh,d=Gt,m=h(n,r,l,f,iT);p[0]=1/0,p[1]=1/0,v[0]=-1/0,v[1]=-1/0;for(var g=0;g<m;g++){var y=d(n,r,l,f,iT[g]);p[0]=vi(y,p[0]),v[0]=hi(y,v[0])}m=h(e,s,u,c,aT);for(var g=0;g<m;g++){var x=d(e,s,u,c,aT[g]);p[1]=vi(x,p[1]),v[1]=hi(x,v[1])}p[0]=vi(n,p[0]),v[0]=hi(n,v[0]),p[0]=vi(f,p[0]),v[0]=hi(f,v[0]),p[1]=vi(e,p[1]),v[1]=hi(e,v[1]),p[1]=vi(c,p[1]),v[1]=hi(c,v[1])}function oT(n,e,r,s,l,u,f,c){var p=sh,v=lr,h=hi(vi(p(n,r,l),1),0),d=hi(vi(p(e,s,u),1),0),m=v(n,r,l,h),g=v(e,s,u,d);f[0]=vi(n,l,m),f[1]=vi(e,u,g),c[0]=hi(n,l,m),c[1]=hi(e,u,g)}function sT(n,e,r,s,l,u,f,c,p){var v=Xn,h=Zn,d=Math.abs(l-u);if(d%vl<0.0001&&d>0.0001){c[0]=n-r,c[1]=e-s,p[0]=n+r,p[1]=e+s;return}if(Ih[0]=rx(l)*r+n,Ih[1]=tx(l)*s+e,Mh[0]=rx(u)*r+n,Mh[1]=tx(u)*s+e,v(c,Ih,Mh),h(p,Ih,Mh),l=l%vl,l<0)l=l+vl;if(u=u%vl,u<0)u=u+vl;if(l>u&&!f)u+=vl;else if(l<u&&f)l+=vl;if(f){var m=u;u=l,l=m}for(var g=0;g<u;g+=Math.PI/2)if(g>l)Lh[0]=rx(g)*r+n,Lh[1]=tx(g)*s+e,v(c,Lh,c),h(p,Lh,p)}var Et={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},dl=[],ml=[],on=[],qo=[],sn=[],ln=[],{min:ax,max:nx,cos:gl,sin:yl,abs:$n,PI:lx}=Math,jo=lx*2,ox=typeof Float32Array<"u",Bc=[];function sx(n){var e=Math.round(n/lx*1e8)/1e8;return e%2*lx}function Fc(n,e){var r=sx(n[0]);if(r<0)r+=jo;var s=r-n[0],l=n[1];if(l+=s,!e&&l-r>=jo)l=r+jo;else if(e&&r-l>=jo)l=r-jo;else if(!e&&r>l)l=r+(jo-sx(r-l));else if(e&&r<l)l=r-(jo-sx(l-r));n[0]=r,n[1]=l}var QU=function(){function n(e){if(this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e)this._saveData=!1;if(this._saveData)this.data=[]}return n.prototype.increaseVersion=function(){this._version++},n.prototype.getVersion=function(){return this._version},n.prototype.setScale=function(e,r,s){if(s=s||0,s>0)this._ux=$n(s/X0/e)||0,this._uy=$n(s/X0/r)||0},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){if(this._saveData)this._len=0;if(this._pathSegLen)this._pathSegLen=null,this._pathLen=0;this._version++},n.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Et.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},n.prototype.lineTo=function(e,r){var s=$n(e-this._xi),l=$n(r-this._yi),u=s>this._ux||l>this._uy;if(this.addData(Et.L,e,r),this._ctx&&u)this._ctx.lineTo(e,r);if(u)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var f=s*s+l*l;if(f>this._pendingPtDist)this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=f}return this},n.prototype.bezierCurveTo=function(e,r,s,l,u,f){if(this._drawPendingPt(),this.addData(Et.C,e,r,s,l,u,f),this._ctx)this._ctx.bezierCurveTo(e,r,s,l,u,f);return this._xi=u,this._yi=f,this},n.prototype.quadraticCurveTo=function(e,r,s,l){if(this._drawPendingPt(),this.addData(Et.Q,e,r,s,l),this._ctx)this._ctx.quadraticCurveTo(e,r,s,l);return this._xi=s,this._yi=l,this},n.prototype.arc=function(e,r,s,l,u,f){this._drawPendingPt(),Bc[0]=l,Bc[1]=u,Fc(Bc,f),l=Bc[0],u=Bc[1];var c=u-l;return this.addData(Et.A,e,r,s,s,l,c,0,f?0:1),this._ctx&&this._ctx.arc(e,r,s,l,u,f),this._xi=gl(u)*s+e,this._yi=yl(u)*s+r,this},n.prototype.arcTo=function(e,r,s,l,u){if(this._drawPendingPt(),this._ctx)this._ctx.arcTo(e,r,s,l,u);return this},n.prototype.rect=function(e,r,s,l){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,s,l),this.addData(Et.R,e,r,s,l),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(Et.Z);var e=this._ctx,r=this._x0,s=this._y0;if(e)e.closePath();return this._xi=r,this._yi=s,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){if(!this._saveData)return;var r=e.length;if(!(this.data&&this.data.length===r)&&ox)this.data=new Float32Array(r);for(var s=0;s<r;s++)this.data[s]=e[s];this._len=r},n.prototype.appendPath=function(e){if(!this._saveData)return;if(!(e instanceof Array))e=[e];var r=e.length,s=0,l=this._len;for(var u=0;u<r;u++)s+=e[u].len();var f=this.data;if(ox&&(f instanceof Float32Array||!f)){if(this.data=new Float32Array(l+s),l>0&&f)for(var c=0;c<l;c++)this.data[c]=f[c]}for(var u=0;u<r;u++){var p=e[u].data;for(var c=0;c<p.length;c++)this.data[l++]=p[c]}this._len=l},n.prototype.addData=function(e,r,s,l,u,f,c,p,v){if(!this._saveData)return;var h=this.data;if(this._len+arguments.length>h.length)this._expandData(),h=this.data;for(var d=0;d<arguments.length;d++)h[this._len++]=arguments[d]},n.prototype._drawPendingPt=function(){if(this._pendingPtDist>0)this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0},n.prototype._expandData=function(){if(!(this.data instanceof Array)){var e=[];for(var r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},n.prototype.toStatic=function(){if(!this._saveData)return;this._drawPendingPt();var e=this.data;if(e instanceof Array){if(e.length=this._len,ox&&this._len>11)this.data=new Float32Array(e)}},n.prototype.getBoundingRect=function(){on[0]=on[1]=sn[0]=sn[1]=Number.MAX_VALUE,qo[0]=qo[1]=ln[0]=ln[1]=-Number.MAX_VALUE;var e=this.data,r=0,s=0,l=0,u=0,f;for(f=0;f<this._len;){var c=e[f++],p=f===1;if(p)r=e[f],s=e[f+1],l=r,u=s;switch(c){case Et.M:r=l=e[f++],s=u=e[f++],sn[0]=l,sn[1]=u,ln[0]=l,ln[1]=u;break;case Et.L:ix(r,s,e[f],e[f+1],sn,ln),r=e[f++],s=e[f++];break;case Et.C:nT(r,s,e[f++],e[f++],e[f++],e[f++],e[f],e[f+1],sn,ln),r=e[f++],s=e[f++];break;case Et.Q:oT(r,s,e[f++],e[f++],e[f],e[f+1],sn,ln),r=e[f++],s=e[f++];break;case Et.A:var v=e[f++],h=e[f++],d=e[f++],m=e[f++],g=e[f++],y=e[f++]+g;f+=1;var x=!e[f++];if(p)l=gl(g)*d+v,u=yl(g)*m+h;sT(v,h,d,m,g,y,x,sn,ln),r=gl(y)*d+v,s=yl(y)*m+h;break;case Et.R:l=r=e[f++],u=s=e[f++];var S=e[f++],D=e[f++];ix(l,u,l+S,u+D,sn,ln);break;case Et.Z:r=l,s=u;break}Xn(on,on,sn),Zn(qo,qo,ln)}if(f===0)on[0]=on[1]=qo[0]=qo[1]=0;return new De(on[0],on[1],qo[0]-on[0],qo[1]-on[1])},n.prototype._calculateLength=function(){var e=this.data,r=this._len,s=this._ux,l=this._uy,u=0,f=0,c=0,p=0;if(!this._pathSegLen)this._pathSegLen=[];var v=this._pathSegLen,h=0,d=0;for(var m=0;m<r;){var g=e[m++],y=m===1;if(y)u=e[m],f=e[m+1],c=u,p=f;var x=-1;switch(g){case Et.M:u=c=e[m++],f=p=e[m++];break;case Et.L:{var S=e[m++],D=e[m++],b=S-u,C=D-f;if($n(b)>s||$n(C)>l||m===r-1)x=Math.sqrt(b*b+C*C),u=S,f=D;break}case Et.C:{var A=e[m++],T=e[m++],S=e[m++],D=e[m++],E=e[m++],w=e[m++];x=LA(u,f,A,T,S,D,E,w,10),u=E,f=w;break}case Et.Q:{var A=e[m++],T=e[m++],S=e[m++],D=e[m++];x=RA(u,f,A,T,S,D,10),u=S,f=D;break}case Et.A:var L=e[m++],M=e[m++],P=e[m++],R=e[m++],N=e[m++],O=e[m++],B=O+N;if(m+=1,y)c=gl(N)*P+L,p=yl(N)*R+M;x=nx(P,R)*ax(jo,Math.abs(O)),u=gl(B)*P+L,f=yl(B)*R+M;break;case Et.R:{c=u=e[m++],p=f=e[m++];var F=e[m++],z=e[m++];x=F*2+z*2;break}case Et.Z:{var b=c-u,C=p-f;x=Math.sqrt(b*b+C*C),u=c,f=p;break}}if(x>=0)v[d++]=x,h+=x}return this._pathLen=h,h},n.prototype.rebuildPath=function(e,r){var s=this.data,l=this._ux,u=this._uy,f=this._len,c,p,v,h,d,m,g=r<1,y,x,S=0,D=0,b,C=0,A,T;if(g){if(!this._pathSegLen)this._calculateLength();if(y=this._pathSegLen,x=this._pathLen,b=r*x,!b)return}e:for(var E=0;E<f;){var w=s[E++],L=E===1;if(L)v=s[E],h=s[E+1],c=v,p=h;if(w!==Et.L&&C>0)e.lineTo(A,T),C=0;switch(w){case Et.M:c=v=s[E++],p=h=s[E++],e.moveTo(v,h);break;case Et.L:{d=s[E++],m=s[E++];var M=$n(d-v),P=$n(m-h);if(M>l||P>u){if(g){var R=y[D++];if(S+R>b){var N=(b-S)/R;e.lineTo(v*(1-N)+d*N,h*(1-N)+m*N);break e}S+=R}e.lineTo(d,m),v=d,h=m,C=0}else{var O=M*M+P*P;if(O>C)A=d,T=m,C=O}break}case Et.C:{var B=s[E++],F=s[E++],z=s[E++],H=s[E++],G=s[E++],Z=s[E++];if(g){var R=y[D++];if(S+R>b){var N=(b-S)/R;$i(v,B,z,G,N,dl),$i(h,F,H,Z,N,ml),e.bezierCurveTo(dl[1],ml[1],dl[2],ml[2],dl[3],ml[3]);break e}S+=R}e.bezierCurveTo(B,F,z,H,G,Z),v=G,h=Z;break}case Et.Q:{var B=s[E++],F=s[E++],z=s[E++],H=s[E++];if(g){var R=y[D++];if(S+R>b){var N=(b-S)/R;Yo(v,B,z,N,dl),Yo(h,F,H,N,ml),e.quadraticCurveTo(dl[1],ml[1],dl[2],ml[2]);break e}S+=R}e.quadraticCurveTo(B,F,z,H),v=z,h=H;break}case Et.A:var Q=s[E++],q=s[E++],ae=s[E++],ce=s[E++],ne=s[E++],de=s[E++],ze=s[E++],dt=!s[E++],ke=ae>ce?ae:ce,me=$n(ae-ce)>0.001,Ge=ne+de,ge=!1;if(g){var R=y[D++];if(S+R>b)Ge=ne+de*(b-S)/R,ge=!0;S+=R}if(me&&e.ellipse)e.ellipse(Q,q,ae,ce,ze,ne,Ge,dt);else e.arc(Q,q,ke,ne,Ge,dt);if(ge)break e;if(L)c=gl(ne)*ae+Q,p=yl(ne)*ce+q;v=gl(Ge)*ae+Q,h=yl(Ge)*ce+q;break;case Et.R:c=v=s[E],p=h=s[E+1],d=s[E++],m=s[E++];var Ie=s[E++],He=s[E++];if(g){var R=y[D++];if(S+R>b){var ot=b-S;if(e.moveTo(d,m),e.lineTo(d+ax(ot,Ie),m),ot-=Ie,ot>0)e.lineTo(d+Ie,m+ax(ot,He));if(ot-=He,ot>0)e.lineTo(d+nx(Ie-ot,0),m+He);if(ot-=Ie,ot>0)e.lineTo(d,m+nx(He-ot,0));break e}S+=R}e.rect(d,m,Ie,He);break;case Et.Z:if(g){var R=y[D++];if(S+R>b){var N=(b-S)/R;e.lineTo(v*(1-N)+c*N,h*(1-N)+p*N);break e}S+=R}e.closePath(),v=c,h=p}}},n.prototype.clone=function(){var e=new n,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},n.prototype.canSave=function(){return!!this._saveData},n.CMD=Et,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}(),Sr=QU;function xl(n,e,r,s,l,u,f){if(l===0)return!1;var c=l,p=0,v=n;if(f>e+c&&f>s+c||f<e-c&&f<s-c||u>n+c&&u>r+c||u<n-c&&u<r-c)return!1;if(n!==r)p=(e-s)/(n-r),v=(n*s-r*e)/(n-r);else return Math.abs(u-n)<=c/2;var h=p*u-f+v,d=h*h/(p*p+1);return d<=c/2*c/2}function uT(n,e,r,s,l,u,f,c,p,v,h){if(p===0)return!1;var d=p;if(h>e+d&&h>s+d&&h>u+d&&h>c+d||h<e-d&&h<s-d&&h<u-d&&h<c-d||v>n+d&&v>r+d&&v>l+d&&v>f+d||v<n-d&&v<r-d&&v<l-d&&v<f-d)return!1;var m=oh(n,e,r,s,l,u,f,c,v,h,null);return m<=d/2}function fT(n,e,r,s,l,u,f,c,p){if(f===0)return!1;var v=f;if(p>e+v&&p>s+v&&p>u+v||p<e-v&&p<s-v&&p<u-v||c>n+v&&c>r+v&&c>l+v||c<n-v&&c<r-v&&c<l-v)return!1;var h=lh(n,e,r,s,l,u,c,p,null);return h<=v/2}var cT=Math.PI*2;function Lr(n){if(n%=cT,n<0)n+=cT;return n}var zc=Math.PI*2;function pT(n,e,r,s,l,u,f,c,p){if(f===0)return!1;var v=f;c-=n,p-=e;var h=Math.sqrt(c*c+p*p);if(h-v>r||h+v<r)return!1;if(Math.abs(s-l)%zc<0.0001)return!0;if(u){var d=s;s=Lr(l),l=Lr(d)}else s=Lr(s),l=Lr(l);if(s>l)l+=zc;var m=Math.atan2(p,c);if(m<0)m+=zc;return m>=s&&m<=l||m+zc>=s&&m+zc<=l}function Qn(n,e,r,s,l,u){if(u>e&&u>s||u<e&&u<s)return 0;if(s===e)return 0;var f=(u-e)/(s-e),c=s<e?1:-1;if(f===1||f===0)c=s<e?0.5:-0.5;var p=f*(r-n)+n;return p===l?1/0:p>l?c:0}var $o=Sr.CMD,_l=Math.PI*2,i5=0.0001;function a5(n,e){return Math.abs(n-e)<i5}var qr=[-1,-1,-1],ta=[-1,-1];function n5(){var n=ta[0];ta[0]=ta[1],ta[1]=n}function o5(n,e,r,s,l,u,f,c,p,v){if(v>e&&v>s&&v>u&&v>c||v<e&&v<s&&v<u&&v<c)return 0;var h=ll(e,s,u,c,v,qr);if(h===0)return 0;else{var d=0,m=-1,g=void 0,y=void 0;for(var x=0;x<h;x++){var S=qr[x],D=S===0||S===1?0.5:1,b=Gt(n,r,l,f,S);if(b<p)continue;if(m<0){if(m=nh(e,s,u,c,ta),ta[1]<ta[0]&&m>1)n5();if(g=Gt(e,s,u,c,ta[0]),m>1)y=Gt(e,s,u,c,ta[1])}if(m===2)if(S<ta[0])d+=g<e?D:-D;else if(S<ta[1])d+=y<g?D:-D;else d+=c<y?D:-D;else if(S<ta[0])d+=g<e?D:-D;else d+=c<g?D:-D}return d}}function s5(n,e,r,s,l,u,f,c){if(c>e&&c>s&&c>u||c<e&&c<s&&c<u)return 0;var p=PA(e,s,u,c,qr);if(p===0)return 0;else{var v=sh(e,s,u);if(v>=0&&v<=1){var h=0,d=lr(e,s,u,v);for(var m=0;m<p;m++){var g=qr[m]===0||qr[m]===1?0.5:1,y=lr(n,r,l,qr[m]);if(y<f)continue;if(qr[m]<v)h+=d<e?g:-g;else h+=u<d?g:-g}return h}else{var g=qr[0]===0||qr[0]===1?0.5:1,y=lr(n,r,l,qr[0]);if(y<f)return 0;return u<e?g:-g}}}function l5(n,e,r,s,l,u,f,c){if(c-=e,c>r||c<-r)return 0;var p=Math.sqrt(r*r-c*c);qr[0]=-p,qr[1]=p;var v=Math.abs(s-l);if(v<0.0001)return 0;if(v>=_l-0.0001){s=0,l=_l;var h=u?1:-1;if(f>=qr[0]+n&&f<=qr[1]+n)return h;else return 0}if(s>l){var d=s;s=l,l=d}if(s<0)s+=_l,l+=_l;var m=0;for(var g=0;g<2;g++){var y=qr[g];if(y+n>f){var x=Math.atan2(c,y),h=u?1:-1;if(x<0)x=_l+x;if(x>=s&&x<=l||x+_l>=s&&x+_l<=l){if(x>Math.PI/2&&x<Math.PI*1.5)h=-h;m+=h}}}return m}function vT(n,e,r,s,l){var u=n.data,f=n.len(),c=0,p=0,v=0,h=0,d=0,m,g;for(var y=0;y<f;){var x=u[y++],S=y===1;if(x===$o.M&&y>1){if(!r)c+=Qn(p,v,h,d,s,l)}if(S)p=u[y],v=u[y+1],h=p,d=v;switch(x){case $o.M:h=u[y++],d=u[y++],p=h,v=d;break;case $o.L:if(r){if(xl(p,v,u[y],u[y+1],e,s,l))return!0}else c+=Qn(p,v,u[y],u[y+1],s,l)||0;p=u[y++],v=u[y++];break;case $o.C:if(r){if(uT(p,v,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],e,s,l))return!0}else c+=o5(p,v,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],s,l)||0;p=u[y++],v=u[y++];break;case $o.Q:if(r){if(fT(p,v,u[y++],u[y++],u[y],u[y+1],e,s,l))return!0}else c+=s5(p,v,u[y++],u[y++],u[y],u[y+1],s,l)||0;p=u[y++],v=u[y++];break;case $o.A:var D=u[y++],b=u[y++],C=u[y++],A=u[y++],T=u[y++],E=u[y++];y+=1;var w=!!(1-u[y++]);if(m=Math.cos(T)*C+D,g=Math.sin(T)*A+b,!S)c+=Qn(p,v,m,g,s,l);else h=m,d=g;var L=(s-D)*A/C+D;if(r){if(pT(D,b,A,T,T+E,w,e,L,l))return!0}else c+=l5(D,b,A,T,T+E,w,L,l);p=Math.cos(T+E)*C+D,v=Math.sin(T+E)*A+b;break;case $o.R:h=p=u[y++],d=v=u[y++];var M=u[y++],P=u[y++];if(m=h+M,g=d+P,r){if(xl(h,d,m,d,e,s,l)||xl(m,d,m,g,e,s,l)||xl(m,g,h,g,e,s,l)||xl(h,g,h,d,e,s,l))return!0}else c+=Qn(m,d,m,g,s,l),c+=Qn(h,g,h,d,s,l);break;case $o.Z:if(r){if(xl(p,v,h,d,e,s,l))return!0}else c+=Qn(p,v,h,d,s,l);p=h,v=d;break}}if(!r&&!a5(v,d))c+=Qn(p,v,h,d,s,l)||0;return c!==0}function hT(n,e,r){return vT(n,0,!1,e,r)}function dT(n,e,r,s){return vT(n,e,!0,r,s)}var Bu=pe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},nn),f5={style:pe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},pl.style)},ux=Mu.concat(["invisible","culling","z","z2","zlevel","parent"]),c5=function(n){k(e,n);function e(r){return n.call(this,r)||this}return e.prototype.update=function(){var r=this;n.prototype.update.call(this);var s=this.style;if(s.decal){var l=this._decalEl=this._decalEl||new e;if(l.buildPath===e.prototype.buildPath)l.buildPath=function(p){r.buildPath(p,r.shape)};l.silent=!0;var u=l.style;for(var f in s)if(u[f]!==s[f])u[f]=s[f];u.fill=s.fill?s.decal:null,u.decal=null,u.shadowColor=null,s.strokeFirst&&(u.stroke=null);for(var c=0;c<ux.length;++c)l[ux[c]]=this[ux[c]];l.__dirty|=Nr}else if(this._decalEl)this._decalEl=null},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var s=Me(r);this.shape=this.getDefaultShape();var l=this.getDefaultStyle();if(l)this.useStyle(l);for(var u=0;u<s.length;u++){var f=s[u],c=r[f];if(f==="style")if(!this.style)this.useStyle(c);else V(this.style,c);else if(f==="shape")V(this.shape,c);else n.prototype.attrKV.call(this,f,c)}if(!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 s=Ou(r,0);if(s>0.5)return Nc;else if(s>0.2)return $A;return kc}else if(r)return kc}return Nc},e.prototype.getInsideTextStroke=function(r){var s=this.style.fill;if(K(s)){var l=this.__zr,u=!!(l&&l.isDarkMode()),f=Ou(r,0)<Oc;if(u===f)return s}},e.prototype.buildPath=function(r,s,l){},e.prototype.pathUpdated=function(){this.__dirty&=~Ko},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 Sr(!1)},e.prototype.hasStroke=function(){var r=this.style,s=r.stroke;return!(s==null||s==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,s=r.fill;return s!=null&&s!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,s=this.style,l=!r;if(l){var u=!1;if(!this.path)u=!0,this.createPathProxy();var f=this.path;if(u||this.__dirty&Ko)f.beginPath(),this.buildPath(f,this.shape,!1),this.pathUpdated();r=f.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var c=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||l){c.copy(r);var p=s.strokeNoScale?this.getLineScale():1,v=s.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;v=Math.max(v,h==null?4:h)}if(p>0.0000000001)c.width+=v/p,c.height+=v/p,c.x-=v/p/2,c.y-=v/p/2}return c}return r},e.prototype.contain=function(r,s){var l=this.transformCoordToLocal(r,s),u=this.getBoundingRect(),f=this.style;if(r=l[0],s=l[1],u.contain(r,s)){var c=this.path;if(this.hasStroke()){var p=f.lineWidth,v=f.strokeNoScale?this.getLineScale():1;if(v>0.0000000001){if(!this.hasFill())p=Math.max(p,this.strokeContainThreshold);if(dT(c,p/v,r,s))return!0}}if(this.hasFill())return hT(c,r,s)}return!1},e.prototype.dirtyShape=function(){if(this.__dirty|=Ko,this._rect)this._rect=null;if(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){if(r==="style")this.dirtyStyle();else if(r==="shape")this.dirtyShape();else this.markRedraw()},e.prototype.attrKV=function(r,s){if(r==="shape")this.setShape(s);else n.prototype.attrKV.call(this,r,s)},e.prototype.setShape=function(r,s){var l=this.shape;if(!l)l=this.shape={};if(typeof r==="string")l[r]=s;else V(l,r);return this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Ko)},e.prototype.createStyle=function(r){return Fo(Bu,r)},e.prototype._innerSaveToNormal=function(r){n.prototype._innerSaveToNormal.call(this,r);var s=this._normalState;if(r.shape&&!s.shape)s.shape=V({},this.shape)},e.prototype._applyStateObj=function(r,s,l,u,f,c){if(n.prototype._applyStateObj.call(this,r,s,l,u,f,c),this.__inHover===ku)return;var p=!(s&&u),v;if(s&&s.shape)if(f)if(u)v=s.shape;else v=V({},l.shape),V(v,s.shape);else v=V({},u?this.shape:l.shape),V(v,s.shape);else if(p)v=l.shape;if(v)if(f){this.shape=V({},this.shape);var h={},d=Me(v);for(var m=0;m<d.length;m++){var g=d[m];if(typeof v[g]==="object")this.shape[g]=v[g];else h[g]=v[g]}this._transitionState(r,{shape:h},c)}else this.shape=v,this.dirtyShape()},e.prototype._mergeStates=function(r){var s=n.prototype._mergeStates.call(this,r),l;for(var u=0;u<r.length;u++){var f=r[u];if(f.shape)l=l||{},this._mergeStyle(l,f.shape)}if(l)s.shape=l;return s},e.prototype.getAnimationStyleProps=function(){return f5},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var s=function(u){k(f,u);function f(c){var p=u.call(this,c)||this;return r.init&&r.init.call(p,c),p}return f.prototype.getDefaultStyle=function(){return le(r.style)},f.prototype.getDefaultShape=function(){return le(r.shape)},f}(e);for(var l in r)if(typeof r[l]==="function")s.prototype[l]=r[l];return s},e.initDefaultProps=function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Nr|cl|Ko}(),e}(pi),xe=c5;var p5=pe({strokeFirst:!0,font:ni,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Bu),mT=function(n){k(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return M0(this.style)},e.prototype.hasFill=function(){var r=this.style,s=r.fill;return s!=null&&s!=="none"},e.prototype.createStyle=function(r){return Fo(p5,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){if(!this._rect)this._rect=AA(this.style);return this._rect},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(pi);mT.prototype.type="tspan";var Sl=mT;var v5=pe({x:0,y:0},nn),h5={style:pe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},pl.style)};function d5(n){return!!(n&&typeof n!=="string"&&n.width&&n.height)}var gT=function(n){k(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return Fo(v5,r)},e.prototype._getSize=function(r){var s=this.style,l=s[r];if(l!=null)return l;var u=d5(s.image)?s.image:this.__image;if(!u)return 0;var f=r==="width"?"height":"width",c=s[f];if(c==null)return u[r];else return u[r]/u[f]*c},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return h5},e.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect)this._rect=new De(r.x||0,r.y||0,this.getWidth(),this.getHeight());return this._rect},e}(pi);gT.prototype.type="image";var Bt=gT;function yT(n,e){var{x:r,y:s,width:l,height:u,r:f}=e,c,p,v,h;if(l<0)r=r+l,l=-l;if(u<0)s=s+u,u=-u;if(typeof f==="number")c=p=v=h=f;else if(f instanceof Array)if(f.length===1)c=p=v=h=f[0];else if(f.length===2)c=v=f[0],p=h=f[1];else if(f.length===3)c=f[0],p=h=f[1],v=f[2];else c=f[0],p=f[1],v=f[2],h=f[3];else c=p=v=h=0;var d;if(c+p>l)d=c+p,c*=l/d,p*=l/d;if(v+h>l)d=v+h,v*=l/d,h*=l/d;if(p+v>u)d=p+v,p*=u/d,v*=u/d;if(c+h>u)d=c+h,c*=u/d,h*=u/d;n.moveTo(r+c,s),n.lineTo(r+l-p,s),p!==0&&n.arc(r+l-p,s+p,p,-Math.PI/2,0),n.lineTo(r+l,s+u-v),v!==0&&n.arc(r+l-v,s+u-v,v,0,Math.PI/2),n.lineTo(r+h,s+u),h!==0&&n.arc(r+h,s+u-h,h,Math.PI/2,Math.PI),n.lineTo(r,s+c),c!==0&&n.arc(r+c,s+c,c,Math.PI,Math.PI*1.5),n.closePath()}var Fu=Math.round;function Ph(n,e,r){if(!e)return;var{x1:s,x2:l,y1:u,y2:f}=e;n.x1=s,n.x2=l,n.y1=u,n.y2=f;var c=r&&r.lineWidth;if(!c)return n;if(Fu(s*2)===Fu(l*2))n.x1=n.x2=Qo(s,c,!0);if(Fu(u*2)===Fu(f*2))n.y1=n.y2=Qo(u,c,!0);return n}function Rh(n,e,r){if(!e)return;var{x:s,y:l,width:u,height:f}=e;n.x=s,n.y=l,n.width=u,n.height=f;var c=r&&r.lineWidth;if(!c)return n;return n.x=Qo(s,c,!0),n.y=Qo(l,c,!0),n.width=Math.max(Qo(s+u,c,!1)-n.x,u===0?0:1),n.height=Math.max(Qo(l+f,c,!1)-n.y,f===0?0:1),n}function Qo(n,e,r){if(!e)return n;var s=Fu(n*2);return(s+Fu(e))%2===0?s/2:(s+(r?1:-1))/2}var y5=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}();var x5={},xT=function(n){k(e,n);function e(r){return n.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new y5},e.prototype.buildPath=function(r,s){var l,u,f,c;if(this.subPixelOptimize){var p=Rh(x5,s,this.style);l=p.x,u=p.y,f=p.width,c=p.height,p.r=s.r,s=p}else l=s.x,u=s.y,f=s.width,c=s.height;if(!s.r)r.rect(l,u,f,c);else yT(r,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(xe);xT.prototype.type="rect";var Ee=xT;var _T={fill:"#000"},ST=2,un={},_5={style:pe({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},pl.style)},IT=function(n){k(e,n);function e(r){var s=n.call(this)||this;return s.type="text",s._children=[],s._defaultStyle=_T,s.attr(r),s}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){if(n.prototype.update.call(this),this.styleChanged())this._updateSubTexts();for(var r=0;r<this._children.length;r++){var s=this._children[r];s.zlevel=this.zlevel,s.z=this.z,s.z2=this.z2,s.culling=this.culling,s.cursor=this.cursor,s.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;if(r){if(r.updateTransform(),r.transform)this.transform=r.transform}else n.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var s=this.innerTransformable;return s?s.getLocalTransform(r):n.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){if(this.__hostTarget)this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0);return n.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,b5(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){n.prototype.addSelfToZr.call(this,r);for(var s=0;s<this._children.length;s++)this._children[s].__zr=r},e.prototype.removeSelfFromZr=function(r){n.prototype.removeSelfFromZr.call(this,r);for(var s=0;s<this._children.length;s++)this._children[s].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged())this._updateSubTexts();if(!this._rect){var r=new De(0,0,0,0),s=this._children,l=[],u=null;for(var f=0;f<s.length;f++){var c=s[f],p=c.getBoundingRect(),v=c.getLocalTransform(l);if(v)r.copy(p),r.applyTransform(v),u=u||r.clone(),u.union(r);else u=u||p.clone(),u.union(p)}this._rect=u||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||_T},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,s){if(!s)return r;var l=s.rich,u=r.rich||l&&{};if(V(r,s),l&&u)this._mergeRich(u,l),r.rich=u;else if(u)r.rich=u;return r},e.prototype._mergeRich=function(r,s){var l=Me(s);for(var u=0;u<l.length;u++){var f=l[u];r[f]=r[f]||{},V(r[f],s[f])}},e.prototype.getAnimationStyleProps=function(){return _5},e.prototype._getOrCreateChild=function(r){var s=this._children[this._childCursor];if(!s||!(s instanceof r))s=new r;return this._children[this._childCursor++]=s,s.__zr=this.__zr,s.parent=this,s},e.prototype._updatePlainTexts=function(){var r=this.style,s=r.font||ni,l=r.padding,u=this._defaultStyle,f=r.x||0,c=r.y||0,p=r.align||u.align||"left",v=r.verticalAlign||u.verticalAlign||"top";w0(un,u.overflowRect,f,c,p,v),f=un.baseX,c=un.baseY;var h=wT(r),d=DA(h,r,un.outerWidth,un.outerHeight),m=fx(r),g=!!r.backgroundColor,{outerHeight:y,outerWidth:x,lines:S,lineHeight:D}=d;this.isTruncated=!!d.isTruncated;var b=f,C=qn(c,d.contentHeight,v);if(m||l){var A=Uo(f,x,p),T=qn(c,y,v);m&&this._renderBackground(r,r,A,T,x,y)}if(C+=D/2,l){if(b=ET(f,p,l),v==="top")C+=l[0];else if(v==="bottom")C-=l[2]}var E=0,w=!1,L=!1,M=TT("fill"in r?r.fill:(L=!0,u.fill)),P=AT("stroke"in r?r.stroke:!g&&(!u.autoStroke||L)?(E=ST,w=!0,u.stroke):null),R=r.textShadowBlur>0;for(var N=0;N<S.length;N++){var O=this._getOrCreateChild(Sl),B=O.createStyle();if(O.useStyle(B),B.text=S[N],B.x=b,B.y=C,p)B.textAlign=p;if(B.textBaseline="middle",B.opacity=r.opacity,B.strokeFirst=!0,R)B.shadowBlur=r.textShadowBlur||0,B.shadowColor=r.textShadowColor||"transparent",B.shadowOffsetX=r.textShadowOffsetX||0,B.shadowOffsetY=r.textShadowOffsetY||0;if(B.stroke=P,B.fill=M,P)B.lineWidth=r.lineWidth||E,B.lineDash=r.lineDash,B.lineDashOffset=r.lineDashOffset||0;B.font=s,bT(B,r),C+=D,O.setBoundingRect(Jv(B,d.contentWidth,d.calculatedLineHeight,w?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,s=this._defaultStyle,l=r.align||s.align,u=r.verticalAlign||s.verticalAlign,f=r.x||0,c=r.y||0;w0(un,s.overflowRect,f,c,l,u),f=un.baseX,c=un.baseY;var p=wT(r),v=bA(p,r,un.outerWidth,un.outerHeight,l),{width:h,outerWidth:d,outerHeight:m}=v,g=r.padding;this.isTruncated=!!v.isTruncated;var y=Uo(f,d,l),x=qn(c,m,u),S=y,D=x;if(g)S+=g[3],D+=g[0];var b=S+h;if(fx(r))this._renderBackground(r,r,y,x,d,m);var C=!!r.backgroundColor;for(var A=0;A<v.lines.length;A++){var T=v.lines[A],E=T.tokens,w=E.length,{lineHeight:L,width:M}=T,P=0,R=S,N=b,O=w-1,B=void 0;while(P<w&&(B=E[P],!B.align||B.align==="left"))this._placeToken(B,r,L,D,R,"left",C),M-=B.width,R+=B.width,P++;while(O>=0&&(B=E[O],B.align==="right"))this._placeToken(B,r,L,D,N,"right",C),M-=B.width,N-=B.width,O--;R+=(h-(R-S)-(b-N)-M)/2;while(P<=O)B=E[P],this._placeToken(B,r,L,D,R+B.width/2,"center",C),R+=B.width,P++;D+=L}},e.prototype._placeToken=function(r,s,l,u,f,c,p){var v=s.rich[r.styleName]||{};v.text=r.text;var h=r.verticalAlign,d=u+l/2;if(h==="top")d=u+r.height/2;else if(h==="bottom")d=u+l-r.height/2;var m=!r.isLineHolder&&fx(v);m&&this._renderBackground(v,s,c==="right"?f-r.width:c==="center"?f-r.width/2:f,d-r.height/2,r.width,r.height);var g=!!v.backgroundColor,y=r.textPadding;if(y)f=ET(f,c,y),d-=r.height/2-y[0]-r.innerHeight/2;var x=this._getOrCreateChild(Sl),S=x.createStyle();x.useStyle(S);var D=this._defaultStyle,b=!1,C=0,A=!1,T=TT("fill"in v?v.fill:("fill"in s)?s.fill:(b=!0,D.fill)),E=AT("stroke"in v?v.stroke:("stroke"in s)?s.stroke:!g&&!p&&(!D.autoStroke||b)?(C=ST,A=!0,D.stroke):null),w=v.textShadowBlur>0||s.textShadowBlur>0;if(S.text=r.text,S.x=f,S.y=d,w)S.shadowBlur=v.textShadowBlur||s.textShadowBlur||0,S.shadowColor=v.textShadowColor||s.textShadowColor||"transparent",S.shadowOffsetX=v.textShadowOffsetX||s.textShadowOffsetX||0,S.shadowOffsetY=v.textShadowOffsetY||s.textShadowOffsetY||0;if(S.textAlign=c,S.textBaseline="middle",S.font=r.font||ni,S.opacity=Jt(v.opacity,s.opacity,1),bT(S,v),E)S.lineWidth=Jt(v.lineWidth,s.lineWidth,C),S.lineDash=te(v.lineDash,s.lineDash),S.lineDashOffset=s.lineDashOffset||0,S.stroke=E;if(T)S.fill=T;x.setBoundingRect(Jv(S,r.contentWidth,r.contentHeight,A?0:null))},e.prototype._renderBackground=function(r,s,l,u,f,c){var{backgroundColor:p,borderWidth:v,borderColor:h}=r,d=p&&p.image,m=p&&!d,g=r.borderRadius,y=this,x,S;if(m||r.lineHeight||v&&h){x=this._getOrCreateChild(Ee),x.useStyle(x.createStyle()),x.style.fill=null;var D=x.shape;D.x=l,D.y=u,D.width=f,D.height=c,D.r=g,x.dirtyShape()}if(m){var b=x.style;b.fill=p||null,b.fillOpacity=te(r.fillOpacity,1)}else if(d){S=this._getOrCreateChild(Bt),S.onload=function(){y.dirtyStyle()};var C=S.style;C.image=p.image,C.x=l,C.y=u,C.width=f,C.height=c}if(v&&h){var b=x.style;if(b.lineWidth=v,b.stroke=h,b.strokeOpacity=te(r.strokeOpacity,1),b.lineDash=r.borderDash,b.lineDashOffset=r.borderDashOffset||0,x.strokeContainThreshold=0,x.hasFill()&&x.hasStroke())b.strokeFirst=!0,b.lineWidth*=2}var A=(x||S).style;A.shadowBlur=r.shadowBlur||0,A.shadowColor=r.shadowColor||"transparent",A.shadowOffsetX=r.shadowOffsetX||0,A.shadowOffsetY=r.shadowOffsetY||0,A.opacity=Jt(r.opacity,s.opacity,1)},e.makeFont=function(r){var s="";if(px(r))s=[r.fontStyle,r.fontWeight,cx(r.fontSize),r.fontFamily||"sans-serif"].join(" ");return s&&Mr(s)||r.textFont||r.font},e}(pi),S5={left:!0,right:1,center:1},D5={top:1,bottom:1,middle:1},DT=["fontStyle","fontWeight","fontSize","fontFamily"];function cx(n){if(typeof n==="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1))return n;else if(!isNaN(+n))return n+"px";else return Hv+"px"}function bT(n,e){for(var r=0;r<DT.length;r++){var s=DT[r],l=e[s];if(l!=null)n[s]=l}}function px(n){return n.fontSize!=null||n.fontFamily||n.fontWeight}function b5(n){return CT(n),I(n.rich,CT),n}function CT(n){if(n){n.font=IT.makeFont(n);var e=n.align;e==="middle"&&(e="center"),n.align=e==null||S5[e]?e:"left";var r=n.verticalAlign;r==="center"&&(r="middle"),n.verticalAlign=r==null||D5[r]?r:"top";var s=n.padding;if(s)n.padding=Bo(n.padding)}}function AT(n,e){return n==null||e<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function TT(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function ET(n,e,r){return e==="right"?n-r[1]:e==="center"?n+r[3]/2-r[1]/2:n+r[3]}function wT(n){var e=n.text;return e!=null&&(e+=""),e}function fx(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}var Ve=IT;var MT=0.0001,LT=20,PT=14;function C5(n){return n.replace(/^\s+|\s+$/g,"")}var{min:lt,max:Be,abs:_t,round:Li,floor:kr,ceil:ra,pow:Jo,log:zu,LN10:vx,PI:Vu,random:A5}=Math;function Ze(n,e,r,s){var l=e[0],u=e[1],f=r[0],c=r[1],p=u-l,v=c-f;if(p===0)return v===0?f:(f+c)/2;if(s){if(p>0){if(n<=l)return f;else if(n>=u)return c}else if(n>=l)return f;else if(n<=u)return c}else{if(n===l)return f;if(n===u)return c}return(n-l)/p*v+f}var ee=T5;function T5(n,e,r){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return Oh(n,e,r)}function Oh(n,e,r){if(K(n)){if(OT(n))return parseFloat(n)/100*e+(r||0);return parseFloat(n)}return n==null?NaN:+n}function RT(n){return K(n)&&OT(n)}function OT(n){return!!C5(n).match(/%$/)}function Ye(n,e,r){if(isNaN(e))return r?""+n:+n;return e=lt(Be(0,e),LT),n=(+n).toFixed(e),r?n:+n}function Rt(n){return n.sort(function(e,r){return e-r}),n}function Mi(n){if(n=+n,isNaN(n))return 0;if(n>0.00000000000001){var e=1;for(var r=0;r<15;r++,e*=10)if(Li(n*e)/e===n)return r}return E5(n)}function E5(n){var e=n.toString().toLowerCase(),r=e.indexOf("e"),s=r>0?+e.slice(r+1):0,l=r>0?r:e.length,u=e.indexOf("."),f=u<0?0:l-1-u;return Be(0,f-s)}function Nh(n,e,r){var s=_t(n[1]-n[0]);if(!isFinite(s)||s===0)return NaN;var l=zu(2*_t(r||1)*_t(s))/vx,u=zu(_t(e))/vx,f=Be(0,ra(-l+u));if(!isFinite(f))f=NaN;return f}function NT(n,e){var r=wi(n,function(g,y){return g+(isNaN(y)?0:y)},0);if(r===0)return[];var s=Jo(10,e),l=W(n,function(g){return(isNaN(g)?0:g)/r*s*100}),u=s*100,f=W(l,function(g){return kr(g)}),c=wi(f,function(g,y){return g+y},0),p=W(l,function(g,y){return g-f[y]});while(c<u){var v=Number.NEGATIVE_INFINITY,h=null;for(var d=0,m=p.length;d<m;++d)if(p[d]>v)v=p[d],h=d;++f[h],p[h]=0,++c}return W(f,function(g){return g/s})}function Jn(n,e){var r=Be(Mi(n),Mi(e)),s=n+e;return r>LT?s:Ye(s,r)}var Uu=Jo(2,53)-1;function hx(n){var e=Vu*2;return(n%e+e)%e}function es(n){return n>-MT&&n<MT}var w5=/^(?:(\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 ia(n){if(n instanceof Date)return n;else if(K(n)){var e=w5.exec(n);if(!e)return new Date(NaN);if(!e[8])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{var r=+e[4]||0;if(e[8].toUpperCase()!=="Z")r-=+e[8].slice(0,3);return 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 if(n==null)return new Date(NaN);return new Date(Li(n))}function kh(n){return Jo(10,Bh(n))}function Bh(n){if(n===0)return 0;var e=kr(zu(n)/vx);if(n/Jo(10,e)>=10)e++;return e}var dx=2;function Dl(n,e){var r=Bh(n),s=Jo(10,r),l=n/s,u;if(e===dx)u=1;else if(e)if(l<1.5)u=1;else if(l<2.5)u=2;else if(l<4)u=3;else if(l<7)u=5;else u=10;else if(l<1)u=1;else if(l<2)u=2;else if(l<3)u=3;else if(l<5)u=5;else u=10;return n=u*s,Ye(n,-r)}function Fh(n,e){var r=(n.length-1)*e+1,s=kr(r),l=+n[s-1],u=r-s;return u?l+u*(n[s]-l):l}function mx(n){n.sort(function(p,v){return c(p,v,0)?-1:1});var e=-1/0,r=1;for(var s=0;s<n.length;){var l=n[s].interval,u=n[s].close;for(var f=0;f<2;f++){if(l[f]<=e)l[f]=e,u[f]=!f?1-r:1;e=l[f],r=u[f]}if(l[0]===l[1]&&u[0]*u[1]!==1)n.splice(s,1);else s++}return n;function c(p,v,h){return p.interval[h]<v.interval[h]||p.interval[h]===v.interval[h]&&(p.close[h]-v.close[h]===(!h?1:-1)||!h&&c(p,v,1))}}function aa(n){var e=parseFloat(n);return e==n&&(e!==0||!K(n)||n.indexOf("x")<=0)?e:NaN}function Vc(n){return!isNaN(aa(n))}function Uc(){return Li(A5()*9)}function kT(n,e){if(e===0)return n;return kT(e,n%e)}function gx(n,e){if(n==null)return e;if(e==null)return n;return n*e/kT(n,e)}function vr(n){return n!=null&&isFinite(n)}var I5="[ECharts] ",BT={},M5=typeof console<"u"&&console.warn&&console.log;function FT(n,e,r){if(M5){if(r){if(BT[e])return;BT[e]=!0}console[n](I5+e)}}function yx(n,e){FT("warn",n,e)}function zh(n,e){FT("error",n,e)}function zT(n){}function rt(n){throw Error(n)}function VT(n,e,r){return(e-n)*r+n}var UT="series\x00",L5="\x00_ec_\x00";function nt(n){return n instanceof Array?n:n==null?[]:[n]}function Ea(n,e,r){if(n){n[e]=n[e]||{},n.emphasis=n.emphasis||{},n.emphasis[e]=n.emphasis[e]||{};for(var s=0,l=r.length;s<l;s++){var u=r[s];if(!n.emphasis[e].hasOwnProperty(u)&&n[e].hasOwnProperty(u))n.emphasis[e][u]=n[e][u]}}}var xx=["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 eo(n){return ue(n)&&!U(n)&&!(n instanceof Date)?n.value:n}function GT(n){return ue(n)&&!(n instanceof Array)}function HT(n,e,r){var s=r==="normalMerge",l=r==="replaceMerge",u=r==="replaceAll";n=n||[],e=(e||[]).slice();var f=re();I(e,function(p,v){if(!ue(p)){e[v]=null;return}});var c=P5(n,f,r);if(s||l)R5(c,n,f,e);if(s)O5(c,e);if(s||l)N5(c,e,l);else if(u)k5(c,e);return B5(c),c}function P5(n,e,r){var s=[];if(r==="replaceAll")return s;for(var l=0;l<n.length;l++){var u=n[l];if(u&&u.id!=null)e.set(u.id,l);s.push({existing:r==="replaceMerge"||Gu(u)?null:u,newOption:null,keyInfo:null,brandNew:null})}return s}function R5(n,e,r,s){I(s,function(l,u){if(!l||l.id==null)return;var f=Gc(l.id),c=r.get(f);if(c!=null){var p=n[c];We(!p.newOption,'Duplicated option on id "'+f+'".'),p.newOption=l,p.existing=e[c],s[u]=null}})}function O5(n,e){I(e,function(r,s){if(!r||r.name==null)return;for(var l=0;l<n.length;l++){var u=n[l].existing;if(!n[l].newOption&&u&&(u.id==null||r.id==null)&&!Gu(r)&&!Gu(u)&&WT("name",u,r)){n[l].newOption=r,e[s]=null;return}}})}function N5(n,e,r){I(e,function(s){if(!s)return;var l,u=0;while((l=n[u])&&(l.newOption||Gu(l.existing)||l.existing&&s.id!=null&&!WT("id",s,l.existing)))u++;if(l)l.newOption=s,l.brandNew=r;else n.push({newOption:s,brandNew:r,existing:null,keyInfo:null});u++})}function k5(n,e){I(e,function(r){n.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function B5(n){var e=re();I(n,function(r){var s=r.existing;s&&e.set(s.id,r)}),I(n,function(r){var s=r.newOption;We(!s||s.id==null||!e.get(s.id)||e.get(s.id)===r,"id duplicates: "+(s&&s.id)),s&&s.id!=null&&e.set(s.id,r),!r.keyInfo&&(r.keyInfo={})}),I(n,function(r,s){var{existing:l,newOption:u,keyInfo:f}=r;if(!ue(u))return;if(f.name=u.name!=null?Gc(u.name):l?l.name:UT+s,l)f.id=Gc(l.id);else if(u.id!=null)f.id=Gc(u.id);else{var c=0;do f.id="\x00"+f.name+"\x00"+c++;while(e.get(f.id))}e.set(f.id,r)})}function WT(n,e,r){var s=tr(e[n],null),l=tr(r[n],null);return s!=null&&l!=null&&s===l}function Gc(n){return tr(n,"")}function tr(n,e){if(n==null)return e;return K(n)?n:Te(n)||xc(n)?n+"":e}function Hu(n){var e=n.name;return!!(e&&e.indexOf(UT))}function Gu(n){return n&&n.id!=null&&Gc(n.id).indexOf(L5)===0}function YT(n,e,r){I(n,function(s){var l=s.newOption;if(ue(l))s.keyInfo.mainType=e,s.keyInfo.subType=F5(e,l,s.existing,r)})}function F5(n,e,r,s){var l=e.type?e.type:r?r.subType:s.determineSubType(n,e);return l}function XT(n,e){var r={},s={};return l(n||[],r),l(e||[],s,r),[u(r),u(s)];function l(f,c,p){for(var v=0,h=f.length;v<h;v++){var d=tr(f[v].seriesId,null);if(d==null)return;var m=nt(f[v].dataIndex),g=p&&p[d];for(var y=0,x=m.length;y<x;y++){var S=m[y];if(g&&g[S])g[S]=null;else(c[d]||(c[d]={}))[S]=1}}}function u(f,c){var p=[];for(var v in f)if(f.hasOwnProperty(v)&&f[v]!=null)if(c)p.push(+v);else{var h=u(f[v],!0);h.length&&p.push({seriesId:v,dataIndex:h})}return p}}function na(n,e){if(e.dataIndexInside!=null)return e.dataIndexInside;else if(e.dataIndex!=null)return U(e.dataIndex)?W(e.dataIndex,function(r){return n.indexOfRawIndex(r)}):n.indexOfRawIndex(e.dataIndex);else if(e.name!=null)return U(e.name)?W(e.name,function(r){return n.indexOfName(r)}):n.indexOfName(e.name)}function he(){var n="__ec_inner_"+z5++;return function(e){return e[n]||(e[n]={})}}var z5=Uc();function Vh(n,e,r){var s=Hc(e,r),{mainTypeSpecified:l,queryOptionMap:u,others:f}=s,c=f,p=r?r.defaultMainType:null;if(!l&&p)u.set(p,{});return u.each(function(v,h){var d=fn(n,h,v,{useDefault:p===h,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});c[h+"Models"]=d.models,c[h+"Model"]=d.models[0]}),c}function Hc(n,e){var r;if(K(n)){var s={};s[n+"Index"]=0,r=s}else r=n;var l=re(),u={},f=!1;return I(r,function(c,p){if(p==="dataIndex"||p==="dataIndexInside"){u[p]=c;return}var v=p.match(/^(\w+)(Index|Id|Name)$/)||[],h=v[1],d=(v[2]||"").toLowerCase();if(!h||!d||e&&e.includeMainTypes&&be(e.includeMainTypes,h)<0)return;f=f||!!h;var m=l.get(h)||l.set(h,{});m[d]=c}),{mainTypeSpecified:f,queryOptionMap:l,others:u}}var gt={useDefault:!0,enableAll:!1,enableNone:!1},ZT={useDefault:!1,enableAll:!0,enableNone:!0};function fn(n,e,r,s){s=s||gt;var{index:l,id:u,name:f}=r,c={models:null,specified:l!=null||u!=null||f!=null};if(!c.specified){var p=void 0;return c.models=s.useDefault&&(p=n.getComponent(e))?[p]:[],c}if(l==="none"||l===!1)if(s.enableNone)return c.models=[],c;else l=-1;if(l==="all")if(s.enableAll)l=u=f=null;else l=-1;return c.models=n.queryComponents({mainType:e,index:l,id:u,name:f}),c}function Uh(n,e,r){var s={};s[e+"Id"]=n[e+"Id"],s[e+"Index"]=n[e+"Index"],s[e+"Name"]=n[e+"Name"];var l={mainType:e,query:s};return r&&(l.subType=r),l}function _x(n,e,r){n.setAttribute?n.setAttribute(e,r):n[e]=r}function KT(n,e){return n.getAttribute?n.getAttribute(e):n[e]}function qT(n){if(n==="auto")return Ue.domSupported?"html":"richText";else return n||"html"}function Wc(n,e){var r=re(),s=[];return I(n,function(l){var u=e(l);(r.get(u)||(s.push(u),r.set(u,[]))).push(l)}),{keys:s,buckets:r}}function Gh(n,e,r,s,l){var u=e==null||e==="auto";if(s==null)return s;if(Te(s)){var f=VT(r||0,s,l);return Ye(f,u?Math.max(Mi(r||0),Mi(s)):e)}else if(K(s))return l<1?r:s;else{var c=[],p=r,v=s,h=Math.max(p?p.length:0,v.length);for(var d=0;d<h;++d){var m=n.getDimensionInfo(d);if(m&&m.type==="ordinal")c[d]=(l<1&&p?p:v)[d];else{var g=p&&p[d]?p[d]:0,y=v[d],f=VT(g,y,l);c[d]=Ye(f,u?Math.max(Mi(g),Mi(y)):e)}}return c}}var bJ=function(){function n(){}return n.prototype.reset=function(e,r,s,l){return this._list=e,this._step=l=l||1,this._idx=r,this._end=s!=null?s:l>0?e.length:0,this.item=null,this.key=NaN,this},n.prototype.next=function(){if(this._step>0?this._idx<this._end:this._idx>=this._end)return this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0;return!1},n}();function Dr(){return[1/0,-1/0]}function Yc(n,e){if(Ta(e))e<n[0]&&(n[0]=e),e>n[1]&&(n[1]=e)}function Sx(n,e){if(Ta(e)&&e<n[0])n[0]=e}function Dx(n,e){if(Ta(e)&&e>n[1])n[1]=e}function jT(n,e){if(to(e[0],e[1]))e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1])}function Ta(n){return n!=null&&isFinite(n)}function to(n,e){return Ta(n)&&Ta(e)&&n<=e}function $T(n){var e=n[1]-n[0];return isFinite(e)&&e>=0}function Wu(n){if(to(n[0],n[1])&&n[0]>n[1])n[0]=n[1]}function oa(){var n="__ec_once_"+V5++;return function(e,r){if(!bt(e,n))e[n]=1,r()}}var V5=Uc();function Yu(n,e,r){var s=re(),l=0;if(I(n,function(u){var f=e(u),c=s.get(f)||0;if(r)r(u,c);if(!c&&!r)n[l++]=u;s.set(f,c+1)}),!r)n.length=l}function QT(n){return n.value+""}function JT(n){return n+""}function Ri(n,e){return te(e,!0)?n.seriesIndex+2:0}function Hh(n,e,r){var s=n.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&s>=r.threshold,large:n.get("large")&&s>=n.get("largeThreshold"),modDataCount:n.get("progressiveChunkMode")==="mod"?n.getData().count():null}}function yt(n,e){return{seriesType:n,overallReset:e}}function ts(n){return{overallReset:n}}var ye=he(),Xc=function(n,e,r,s){if(s){var l=ye(s);if(l.dataIndex=r,l.dataType=e,l.seriesIndex=n,l.ssrType="chart",s.type==="group")s.traverse(function(u){var f=ye(u);f.seriesIndex=n,f.dataIndex=r,f.dataType=e,f.ssrType="chart"})}};var rs="undefined",di="series",Wh=re(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),br="original",Ht="arrayRows",Tr="objectRows",mi="keyedColumns",Oi="typedArray",bx="unknown",jr="column",cn="row",Cx="Roam";var U5=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],G5=function(){function n(e){I(U5,function(r){this[r]=se(e[r],e)},this)}return n}();function Yh(n,e){return e.mainType===di?n.getViewOfSeriesModel(e):n.getViewOfComponentModel(e)}var Xh=G5;var eE=1,tE={},oE=he(),Ex=he(),Ix=0,bl=1,Zc=2,hr=["emphasis","blur","select"],is=["normal","emphasis","blur","select"],Cl=10,H5=9,as="highlight",Kc="downplay",qc="select",Kh="unselect",jc="toggleSelect",qh="selectchanged";function Xu(n){return n!=null&&n!=="none"}function jh(n,e,r){if(n.onHoverStateChange&&(n.hoverState||0)!==r)n.onHoverStateChange(e);n.hoverState=r}function sE(n){jh(n,"emphasis",Zc)}function lE(n){if(n.hoverState===Zc)jh(n,"normal",Ix)}function Mx(n){jh(n,"blur",bl)}function uE(n){if(n.hoverState===bl)jh(n,"normal",Ix)}function W5(n){n.selected=!0}function Y5(n){n.selected=!1}function rE(n,e,r){e(n,r)}function ro(n,e,r){rE(n,e,r),n.isGroup&&n.traverse(function(s){rE(s,e,r)})}function $c(n,e){switch(e){case"emphasis":n.hoverState=Zc;break;case"normal":n.hoverState=Ix;break;case"blur":n.hoverState=bl;break;case"select":n.selected=!0}}function X5(n,e,r,s){var l=n.style,u={};for(var f=0;f<e.length;f++){var c=e[f],p=l[c];u[c]=p==null?s&&s[c]:p}for(var f=0;f<n.animators.length;f++){var v=n.animators[f];if(v.__fromStateTransition&&v.__fromStateTransition.indexOf(r)<0&&v.targetName==="style")v.saveTo(u,e)}return u}function Z5(n,e,r,s){var l=r&&be(r,"select")>=0,u=!1;if(n instanceof xe){var f=oE(n),c=l?f.selectFill||f.normalFill:f.normalFill,p=l?f.selectStroke||f.normalStroke:f.normalStroke;if(Xu(c)||Xu(p)){s=s||{};var v=s.style||{};if(v.fill==="inherit")u=!0,s=V({},s),v=V({},v),v.fill=c;else if(!Xu(v.fill)&&Xu(c))u=!0,s=V({},s),v=V({},v),v.fill=Ec(c);else if(!Xu(v.stroke)&&Xu(p)){if(!u)s=V({},s),v=V({},v);v.stroke=Ec(p)}s.style=v}}if(s){if(s.z2==null){if(!u)s=V({},s);var h=n.z2EmphasisLift;s.z2=n.z2+(h!=null?h:Cl)}}return s}function K5(n,e,r){if(r){if(r.z2==null){r=V({},r);var s=n.z2SelectLift;r.z2=n.z2+(s!=null?s:H5)}}return r}function q5(n,e,r){var s=be(n.currentStates,e)>=0,l=n.style.opacity,u=!s?X5(n,["opacity"],e,{opacity:1}):null;r=r||{};var f=r.style||{};if(f.opacity==null)r=V({},r),f=V({opacity:s?l:u.opacity*0.1},f),r.style=f;return r}function Ax(n,e){var r=this.states[n];if(this.style){if(n==="emphasis")return Z5(this,n,e,r);else if(n==="blur")return q5(this,n,r);else if(n==="select")return K5(this,n,r)}return r}function Zu(n){n.stateProxy=Ax;var e=n.getTextContent(),r=n.getTextGuideLine();if(e)e.stateProxy=Ax;if(r)r.stateProxy=Ax}function iE(n,e){!fE(n,e)&&!n.__highByOuter&&ro(n,sE)}function aE(n,e){!fE(n,e)&&!n.__highByOuter&&ro(n,lE)}function Ni(n,e){n.__highByOuter|=1<<(e||0),ro(n,sE)}function ki(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&ro(n,lE)}function $h(n){ro(n,Mx)}function Qc(n){ro(n,uE)}function Lx(n){ro(n,W5)}function Px(n){ro(n,Y5)}function fE(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function Rx(n){var e=n.getModel(),r=[],s=[];e.eachComponent(function(l,u){var f=Ex(u),c=Yh(n,u),p=l==="series";if(!p&&s.push(c),f.isBlured)c.group.traverse(function(v){uE(v)}),p&&r.push(u);f.isBlured=!1}),I(s,function(l){if(l&&l.toggleBlurSeries)l.toggleBlurSeries(r,!1,e)})}function Tx(n,e,r,s){var l=s.getModel();r=r||"coordinateSystem";function u(v,h){for(var d=0;d<h.length;d++){var m=v.getItemGraphicEl(h[d]);m&&Qc(m)}}if(n==null)return;if(!e||e==="none")return;var f=l.getSeriesByIndex(n),c=f.coordinateSystem;if(c&&c.master)c=c.master;var p=[];l.eachSeries(function(v){var h=f===v,d=v.coordinateSystem;if(d&&d.master)d=d.master;var m=d&&c?d===c:h;if(!(r==="series"&&!h||r==="coordinateSystem"&&!m||e==="series"&&h)){var g=s.getViewOfSeriesModel(v);if(g.group.traverse(function(S){if(S.__highByOuter&&h&&e==="self")return;Mx(S)}),Qt(e))u(v.getData(),e);else if(ue(e)){var y=Me(e);for(var x=0;x<y.length;x++)u(v.getData(y[x]),e[y[x]])}p.push(v),Ex(v).isBlured=!0}}),l.eachComponent(function(v,h){if(v==="series")return;var d=s.getViewOfComponentModel(h);if(d&&d.toggleBlurSeries)d.toggleBlurSeries(p,!0,l)})}function Zh(n,e,r){if(n==null||e==null)return;var s=r.getModel().getComponent(n,e);if(!s)return;Ex(s).isBlured=!0;var l=r.getViewOfComponentModel(s);if(!l||!l.focusBlurEnabled)return;l.group.traverse(function(u){Mx(u)})}function cE(n,e,r){var s=n.seriesIndex,l=n.getData(e.dataType);if(!l)return;var u=na(l,e);u=(U(u)?u[0]:u)||0;var f=l.getItemGraphicEl(u);if(!f){var c=l.count(),p=0;while(!f&&p<c)f=l.getItemGraphicEl(p++)}if(f){var v=ye(f);Tx(s,v.focus,v.blurScope,r)}else{var h=n.get(["emphasis","focus"]),d=n.get(["emphasis","blurScope"]);if(h!=null)Tx(s,h,d,r)}}function Qh(n,e,r,s){var l={focusSelf:!1,dispatchers:null};if(n==null||n==="series"||e==null||r==null)return l;var u=s.getModel().getComponent(n,e);if(!u)return l;var f=s.getViewOfComponentModel(u);if(!f||!f.findHighDownDispatchers)return l;var c=f.findHighDownDispatchers(r),p;for(var v=0;v<c.length;v++)if(ye(c[v]).focus==="self"){p=!0;break}return{focusSelf:p,dispatchers:c}}function pE(n,e,r){var s=ye(n),l=Qh(s.componentMainType,s.componentIndex,s.componentHighDownName,r),{dispatchers:u,focusSelf:f}=l;if(u){if(f)Zh(s.componentMainType,s.componentIndex,r);I(u,function(c){return iE(c,e)})}else{if(Tx(s.seriesIndex,s.focus,s.blurScope,r),s.focus==="self")Zh(s.componentMainType,s.componentIndex,r);iE(n,e)}}function vE(n,e,r){Rx(r);var s=ye(n),l=Qh(s.componentMainType,s.componentIndex,s.componentHighDownName,r).dispatchers;if(l)I(l,function(u){return aE(u,e)});else aE(n,e)}function hE(n,e,r){if(!ed(e))return;var s=e.dataType,l=n.getData(s),u=na(l,e);if(!U(u))u=[u];n[e.type===jc?"toggleSelect":e.type===qc?"select":"unselect"](u,s)}function Ox(n){var e=n.getAllData();I(e,function(r){var{data:s,type:l}=r;s.eachItemGraphicEl(function(u,f){n.isSelected(f,l)?Lx(u):Px(u)})})}function dE(n){var e=[];return n.eachSeries(function(r){var s=r.getAllData();I(s,function(l){var{data:u,type:f}=l,c=r.getSelectedDataIndices();if(c.length>0){var p={dataIndex:c,seriesIndex:r.seriesIndex};if(f!=null)p.dataType=f;e.push(p)}})}),e}function Ku(n,e,r){io(n,!0),ro(n,Zu),Jh(n,e,r)}function j5(n){io(n,!1)}function it(n,e,r,s){s?j5(n):Ku(n,e,r)}function Jh(n,e,r){var s=ye(n);if(e!=null)s.focus=e,s.blurScope=r;else if(s.focus)s.focus=null}var nE=["emphasis","blur","select"],$5={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function wt(n,e,r,s){r=r||"itemStyle";for(var l=0;l<nE.length;l++){var u=nE[l],f=e.getModel([u,r]),c=n.ensureState(u);c.style=s?s(f):f[$5[r]]()}}function io(n,e){var r=e===!1,s=n;if(n.highDownSilentOnTouch)s.__highDownSilentOnTouch=n.highDownSilentOnTouch;if(!r||s.__highDownDispatcher)s.__highByOuter=s.__highByOuter||0,s.__highDownDispatcher=!r}function ns(n){return!!(n&&n.__highDownDispatcher)}function mE(n){var e=tE[n];if(e==null&&eE<=32)e=tE[n]=eE++;return e}function ed(n){var e=n.type;return e===qc||e===Kh||e===jc}function Nx(n){var e=n.type;return e===as||e===Kc}function gE(n){var e=oE(n);e.normalFill=n.style.fill,e.normalStroke=n.style.stroke;var r=n.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var qu=Sr.CMD,Q5=[[],[],[]],{sqrt:yE,atan2:J5}=Math;function td(n,e){if(!e)return;var r=n.data,s=n.len(),l,u,f,c,p,v,{M:h,C:d,L:m,R:g,A:y,Q:x}=qu;for(f=0,c=0;f<s;){switch(l=r[f++],c=f,u=0,l){case h:u=1;break;case m:u=1;break;case d:u=3;break;case x:u=2;break;case y:var S=e[4],D=e[5],b=yE(e[0]*e[0]+e[1]*e[1]),C=yE(e[2]*e[2]+e[3]*e[3]),A=J5(-e[1]/C,e[0]/b);r[f]*=b,r[f++]+=S,r[f]*=C,r[f++]+=D,r[f++]*=b,r[f++]*=C,r[f++]+=A,r[f++]+=A,f+=2,c=f;break;case g:v[0]=r[f++],v[1]=r[f++],er(v,v,e),r[c++]=v[0],r[c++]=v[1],v[0]+=r[f++],v[1]+=r[f++],er(v,v,e),r[c++]=v[0],r[c++]=v[1]}for(p=0;p<u;p++){var T=Q5[p];T[0]=r[f++],T[1]=r[f++],er(T,T,e),r[c++]=T[0],r[c++]=T[1]}}n.increaseVersion()}var{sqrt:kx,sin:rd,cos:id,PI:Jc}=Math;function xE(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function Bx(n,e){return(n[0]*e[0]+n[1]*e[1])/(xE(n)*xE(e))}function _E(n,e){return(n[0]*e[1]<n[1]*e[0]?-1:1)*Math.acos(Bx(n,e))}function SE(n,e,r,s,l,u,f,c,p,v,h){var d=p*(Jc/180),m=id(d)*(n-r)/2+rd(d)*(e-s)/2,g=-1*rd(d)*(n-r)/2+id(d)*(e-s)/2,y=m*m/(f*f)+g*g/(c*c);if(y>1)f*=kx(y),c*=kx(y);var x=(l===u?-1:1)*kx((f*f*(c*c)-f*f*(g*g)-c*c*(m*m))/(f*f*(g*g)+c*c*(m*m)))||0,S=x*f*g/c,D=x*-c*m/f,b=(n+r)/2+id(d)*S-rd(d)*D,C=(e+s)/2+rd(d)*S+id(d)*D,A=_E([1,0],[(m-S)/f,(g-D)/c]),T=[(m-S)/f,(g-D)/c],E=[(-1*m-S)/f,(-1*g-D)/c],w=_E(T,E);if(Bx(T,E)<=-1)w=Jc;if(Bx(T,E)>=1)w=0;if(w<0){var L=Math.round(w/Jc*1e6)/1e6;w=Jc*2+L%2*Jc}h.addData(v,b,C,f,c,A,w,d,u)}var eG=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,tG=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function rG(n){var e=new Sr;if(!n)return e;var r=0,s=0,l=r,u=s,f,c=Sr.CMD,p=n.match(eG);if(!p)return e;for(var v=0;v<p.length;v++){var h=p[v],d=h.charAt(0),m=void 0,g=h.match(tG)||[],y=g.length;for(var x=0;x<y;x++)g[x]=parseFloat(g[x]);var S=0;while(S<y){var D=void 0,b=void 0,C=void 0,A=void 0,T=void 0,E=void 0,w=void 0,L=r,M=s,P=void 0,R=void 0;switch(d){case"l":r+=g[S++],s+=g[S++],m=c.L,e.addData(m,r,s);break;case"L":r=g[S++],s=g[S++],m=c.L,e.addData(m,r,s);break;case"m":r+=g[S++],s+=g[S++],m=c.M,e.addData(m,r,s),l=r,u=s,d="l";break;case"M":r=g[S++],s=g[S++],m=c.M,e.addData(m,r,s),l=r,u=s,d="L";break;case"h":r+=g[S++],m=c.L,e.addData(m,r,s);break;case"H":r=g[S++],m=c.L,e.addData(m,r,s);break;case"v":s+=g[S++],m=c.L,e.addData(m,r,s);break;case"V":s=g[S++],m=c.L,e.addData(m,r,s);break;case"C":m=c.C,e.addData(m,g[S++],g[S++],g[S++],g[S++],g[S++],g[S++]),r=g[S-2],s=g[S-1];break;case"c":m=c.C,e.addData(m,g[S++]+r,g[S++]+s,g[S++]+r,g[S++]+s,g[S++]+r,g[S++]+s),r+=g[S-2],s+=g[S-1];break;case"S":if(D=r,b=s,P=e.len(),R=e.data,f===c.C)D+=r-R[P-4],b+=s-R[P-3];m=c.C,L=g[S++],M=g[S++],r=g[S++],s=g[S++],e.addData(m,D,b,L,M,r,s);break;case"s":if(D=r,b=s,P=e.len(),R=e.data,f===c.C)D+=r-R[P-4],b+=s-R[P-3];m=c.C,L=r+g[S++],M=s+g[S++],r+=g[S++],s+=g[S++],e.addData(m,D,b,L,M,r,s);break;case"Q":L=g[S++],M=g[S++],r=g[S++],s=g[S++],m=c.Q,e.addData(m,L,M,r,s);break;case"q":L=g[S++]+r,M=g[S++]+s,r+=g[S++],s+=g[S++],m=c.Q,e.addData(m,L,M,r,s);break;case"T":if(D=r,b=s,P=e.len(),R=e.data,f===c.Q)D+=r-R[P-4],b+=s-R[P-3];r=g[S++],s=g[S++],m=c.Q,e.addData(m,D,b,r,s);break;case"t":if(D=r,b=s,P=e.len(),R=e.data,f===c.Q)D+=r-R[P-4],b+=s-R[P-3];r+=g[S++],s+=g[S++],m=c.Q,e.addData(m,D,b,r,s);break;case"A":C=g[S++],A=g[S++],T=g[S++],E=g[S++],w=g[S++],L=r,M=s,r=g[S++],s=g[S++],m=c.A,SE(L,M,r,s,E,w,C,A,T,m,e);break;case"a":C=g[S++],A=g[S++],T=g[S++],E=g[S++],w=g[S++],L=r,M=s,r+=g[S++],s+=g[S++],m=c.A,SE(L,M,r,s,E,w,C,A,T,m,e);break}}if(d==="z"||d==="Z")m=c.Z,e.addData(m),r=l,s=u;f=m}return e.toStatic(),e}var DE=function(n){k(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e}(xe);function bE(n){return n.setData!=null}function CE(n,e){var r=rG(n),s=V({},e);return s.buildPath=function(l){var u=bE(l);if(u&&l.canSave()){l.appendPath(r);var f=l.getContext();if(f)l.rebuildPath(f,1)}else{var f=u?l.getContext():l;if(f)r.rebuildPath(f,1)}},s.applyTransform=function(l){td(r,l),this.dirtyShape()},s}function AE(n,e){return new DE(CE(n,e))}function TE(n,e){var r=CE(n,e),s=function(l){k(u,l);function u(f){var c=l.call(this,f)||this;return c.applyTransform=r.applyTransform,c.buildPath=r.buildPath,c}return u}(DE);return s}function EE(n,e){var r=[],s=n.length;for(var l=0;l<s;l++){var u=n[l];r.push(u.getUpdatedPathProxy(!0))}var f=new xe(e);return f.createPathProxy(),f.buildPath=function(c){if(bE(c)){c.appendPath(r);var p=c.getContext();if(p)c.rebuildPath(p,1)}},f}function ju(n,e){e=e||{};var r=new xe;if(n.shape)r.setShape(n.shape);if(r.setStyle(n.style),e.bakeTransform)td(r.path,n.getComputedTransform());else if(e.toLocal)r.setLocalTransform(n.getComputedTransform());else r.copyTransform(n);return r.buildPath=n.buildPath,r.applyTransform=r.applyTransform,r.z=n.z,r.z2=n.z2,r.zlevel=n.zlevel,r}var wE=function(n){k(e,n);function e(r){var s=n.call(this)||this;return s.isGroup=!0,s._children=[],s.attr(r),s}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){var s=this._children;for(var l=0;l<s.length;l++)if(s[l].name===r)return s[l]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){if(r){if(r!==this&&r.parent!==this)this._children.push(r),this._doAdd(r)}return this},e.prototype.addBefore=function(r,s){if(r&&r!==this&&r.parent!==this&&s&&s.parent===this){var l=this._children,u=l.indexOf(s);if(u>=0)l.splice(u,0,r),this._doAdd(r)}return this},e.prototype.replace=function(r,s){var l=be(this._children,r);if(l>=0)this.replaceAt(s,l);return this},e.prototype.replaceAt=function(r,s){var l=this._children,u=l[s];if(r&&r!==this&&r.parent!==this&&r!==u){l[s]=r,u.parent=null;var f=this.__zr;if(f)u.removeSelfFromZr(f);this._doAdd(r)}return this},e.prototype._doAdd=function(r){if(r.parent)r.parent.remove(r);r.parent=this;var s=this.__zr;if(s&&s!==r.__zr)r.addSelfToZr(s);s&&s.refresh()},e.prototype.remove=function(r){var s=this.__zr,l=this._children,u=be(l,r);if(u<0)return this;if(l.splice(u,1),r.parent=null,s)r.removeSelfFromZr(s);return s&&s.refresh(),this},e.prototype.removeAll=function(){var r=this._children,s=this.__zr;for(var l=0;l<r.length;l++){var u=r[l];if(s)u.removeSelfFromZr(s);u.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,s){var l=this._children;for(var u=0;u<l.length;u++){var f=l[u];r.call(s,f,u)}return this},e.prototype.traverse=function(r,s){for(var l=0;l<this._children.length;l++){var u=this._children[l],f=r.call(s,u);if(u.isGroup&&!f)u.traverse(r,s)}return this},e.prototype.addSelfToZr=function(r){n.prototype.addSelfToZr.call(this,r);for(var s=0;s<this._children.length;s++){var l=this._children[s];l.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){n.prototype.removeSelfFromZr.call(this,r);for(var s=0;s<this._children.length;s++){var l=this._children[s];l.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){var s=new De(0,0,0,0),l=r||this._children,u=[],f=null;for(var c=0;c<l.length;c++){var p=l[c];if(p.ignore||p.invisible)continue;var v=p.getBoundingRect(),h=p.getLocalTransform(u);if(h)De.applyTransform(s,v,h),f=f||s.clone(),f.union(s);else f=f||v.clone(),f.union(v)}return f||s},e}(wh);wE.prototype.type="group";var ve=wE;var aG=function(){function n(){this.cx=0,this.cy=0,this.r=0}return n}();var IE=function(n){k(e,n);function e(r){return n.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new aG},e.prototype.buildPath=function(r,s){r.moveTo(s.cx+s.r,s.cy),r.arc(s.cx,s.cy,s.r,0,Math.PI*2)},e}(xe);IE.prototype.type="circle";var Ia=IE;var nG=function(){function n(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return n}();var ME=function(n){k(e,n);function e(r){return n.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new nG},e.prototype.buildPath=function(r,s){var l=0.5522848,{cx:u,cy:f,rx:c,ry:p}=s,v=c*l,h=p*l;r.moveTo(u-c,f),r.bezierCurveTo(u-c,f-h,u-v,f-p,u,f-p),r.bezierCurveTo(u+v,f-p,u+c,f-h,u+c,f),r.bezierCurveTo(u+c,f+h,u+v,f+p,u,f+p),r.bezierCurveTo(u-v,f+p,u-c,f+h,u-c,f),r.closePath()},e}(xe);ME.prototype.type="ellipse";var Fx=ME;var PE=Math.PI,zx=PE*2,{sin:Al,cos:$u,acos:oG,atan2:Br,abs:LE,sqrt:tp,max:ep,min:pn}=Math,Ma=0.0001;function sG(n,e,r,s,l,u,f,c){var p=r-n,v=s-e,h=f-l,d=c-u,m=d*p-h*v;if(m*m<Ma)return;return m=(h*(e-u)-d*(n-l))/m,[n+m*p,e+m*v]}function ad(n,e,r,s,l,u,f){var c=n-r,p=e-s,v=(f?u:-u)/tp(c*c+p*p),h=v*p,d=-v*c,m=n+h,g=e+d,y=r+h,x=s+d,S=(m+y)/2,D=(g+x)/2,b=y-m,C=x-g,A=b*b+C*C,T=l-u,E=m*x-y*g,w=(C<0?-1:1)*tp(ep(0,T*T*A-E*E)),L=(E*C-b*w)/A,M=(-E*b-C*w)/A,P=(E*C+b*w)/A,R=(-E*b+C*w)/A,N=L-S,O=M-D,B=P-S,F=R-D;if(N*N+O*O>B*B+F*F)L=P,M=R;return{cx:L,cy:M,x0:-h,y0:-d,x1:L*(l/T-1),y1:M*(l/T-1)}}function lG(n){var e;if(U(n)){var r=n.length;if(!r)return n;if(r===1)e=[n[0],n[0],0,0];else if(r===2)e=[n[0],n[0],n[1],n[1]];else if(r===3)e=n.concat(n[2]);else e=n}else e=[n,n,n,n];return e}function RE(n,e){var r,s=ep(e.r,0),l=ep(e.r0||0,0),u=s>0,f=l>0;if(!u&&!f)return;if(!u)s=l,l=0;if(l>s){var c=s;s=l,l=c}var{startAngle:p,endAngle:v}=e;if(isNaN(p)||isNaN(v))return;var{cx:h,cy:d}=e,m=!!e.clockwise,g=LE(v-p),y=g>zx&&g%zx;if(y>Ma&&(g=y),!(s>Ma))n.moveTo(h,d);else if(g>zx-Ma){if(n.moveTo(h+s*$u(p),d+s*Al(p)),n.arc(h,d,s,p,v,!m),l>Ma)n.moveTo(h+l*$u(v),d+l*Al(v)),n.arc(h,d,l,v,p,m)}else{var x=void 0,S=void 0,D=void 0,b=void 0,C=void 0,A=void 0,T=void 0,E=void 0,w=void 0,L=void 0,M=void 0,P=void 0,R=void 0,N=void 0,O=void 0,B=void 0,F=s*$u(p),z=s*Al(p),H=l*$u(v),G=l*Al(v),Z=g>Ma;if(Z){var Q=e.cornerRadius;if(Q)r=lG(Q),x=r[0],S=r[1],D=r[2],b=r[3];var q=LE(s-l)/2;if(C=pn(q,D),A=pn(q,b),T=pn(q,x),E=pn(q,S),M=w=ep(C,A),P=L=ep(T,E),w>Ma||L>Ma){if(R=s*$u(v),N=s*Al(v),O=l*$u(p),B=l*Al(p),g<PE){var ae=sG(F,z,O,B,R,N,H,G);if(ae){var ce=F-ae[0],ne=z-ae[1],de=R-ae[0],ze=N-ae[1],dt=1/Al(oG((ce*de+ne*ze)/(tp(ce*ce+ne*ne)*tp(de*de+ze*ze)))/2),ke=tp(ae[0]*ae[0]+ae[1]*ae[1]);M=pn(w,(s-ke)/(dt+1)),P=pn(L,(l-ke)/(dt-1))}}}}if(!Z)n.moveTo(h+F,d+z);else if(M>Ma){var me=pn(D,M),Ge=pn(b,M),ge=ad(O,B,F,z,s,me,m),Ie=ad(R,N,H,G,s,Ge,m);if(n.moveTo(h+ge.cx+ge.x0,d+ge.cy+ge.y0),M<w&&me===Ge)n.arc(h+ge.cx,d+ge.cy,M,Br(ge.y0,ge.x0),Br(Ie.y0,Ie.x0),!m);else me>0&&n.arc(h+ge.cx,d+ge.cy,me,Br(ge.y0,ge.x0),Br(ge.y1,ge.x1),!m),n.arc(h,d,s,Br(ge.cy+ge.y1,ge.cx+ge.x1),Br(Ie.cy+Ie.y1,Ie.cx+Ie.x1),!m),Ge>0&&n.arc(h+Ie.cx,d+Ie.cy,Ge,Br(Ie.y1,Ie.x1),Br(Ie.y0,Ie.x0),!m)}else n.moveTo(h+F,d+z),n.arc(h,d,s,p,v,!m);if(!(l>Ma)||!Z)n.lineTo(h+H,d+G);else if(P>Ma){var me=pn(x,P),Ge=pn(S,P),ge=ad(H,G,R,N,l,-Ge,m),Ie=ad(F,z,O,B,l,-me,m);if(n.lineTo(h+ge.cx+ge.x0,d+ge.cy+ge.y0),P<L&&me===Ge)n.arc(h+ge.cx,d+ge.cy,P,Br(ge.y0,ge.x0),Br(Ie.y0,Ie.x0),!m);else Ge>0&&n.arc(h+ge.cx,d+ge.cy,Ge,Br(ge.y0,ge.x0),Br(ge.y1,ge.x1),!m),n.arc(h,d,l,Br(ge.cy+ge.y1,ge.cx+ge.x1),Br(Ie.cy+Ie.y1,Ie.cx+Ie.x1),m),me>0&&n.arc(h+Ie.cx,d+Ie.cy,me,Br(Ie.y1,Ie.x1),Br(Ie.y0,Ie.x0),!m)}else n.lineTo(h+H,d+G),n.arc(h,d,l,v,p,m)}n.closePath()}var fG=function(){function n(){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 n}();var OE=function(n){k(e,n);function e(r){return n.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new fG},e.prototype.buildPath=function(r,s){RE(r,s)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(xe);OE.prototype.type="sector";var Xt=OE;var cG=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}();var NE=function(n){k(e,n);function e(r){return n.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new cG},e.prototype.buildPath=function(r,s){var{cx:l,cy:u}=s,f=Math.PI*2;r.moveTo(l+s.r,u),r.arc(l,u,s.r,0,f,!1),r.moveTo(l+s.r0,u),r.arc(l,u,s.r0,0,f,!0)},e}(xe);NE.prototype.type="ring";var Tl=NE;function Vx(n,e,r,s){var l=[],u=[],f=[],c=[],p,v,h,d;if(s){h=[1/0,1/0],d=[-1/0,-1/0];for(var m=0,g=n.length;m<g;m++)Xn(h,h,n[m]),Zn(d,d,n[m]);Xn(h,h,s[0]),Zn(d,d,s[1])}for(var m=0,g=n.length;m<g;m++){var y=n[m];if(r)p=n[m?m-1:g-1],v=n[(m+1)%g];else if(m===0||m===g-1){l.push(ui(n[m]));continue}else p=n[m-1],v=n[m+1];Da(u,v,p),Au(u,u,e);var x=$v(y,p),S=$v(y,v),D=x+S;if(D!==0)x/=D,S/=D;Au(f,u,-x),Au(c,u,S);var b=m0([],y,f),C=m0([],y,c);if(s)Zn(b,b,h),Xn(b,b,d),Zn(C,C,h),Xn(C,C,d);l.push(b),l.push(C)}if(r)l.push(l.shift());return l}function nd(n,e,r){var{smooth:s,points:l}=e;if(l&&l.length>=2){if(s){var u=Vx(l,s,r,e.smoothConstraint);n.moveTo(l[0][0],l[0][1]);var f=l.length;for(var c=0;c<(r?f:f-1);c++){var p=u[c*2],v=u[c*2+1],h=l[(c+1)%f];n.bezierCurveTo(p[0],p[1],v[0],v[1],h[0],h[1])}}else{n.moveTo(l[0][0],l[0][1]);for(var c=1,d=l.length;c<d;c++)n.lineTo(l[c][0],l[c][1])}r&&n.closePath()}}var pG=function(){function n(){this.points=null,this.smooth=0,this.smoothConstraint=null}return n}();var BE=function(n){k(e,n);function e(r){return n.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new pG},e.prototype.buildPath=function(r,s){nd(r,s,!0)},e}(xe);BE.prototype.type="polygon";var rr=BE;var vG=function(){function n(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return n}();var FE=function(n){k(e,n);function e(r){return n.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new vG},e.prototype.buildPath=function(r,s){nd(r,s,!1)},e}(xe);FE.prototype.type="polyline";var ur=FE;var hG={},dG=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return n}();var zE=function(n){k(e,n);function e(r){return n.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new dG},e.prototype.buildPath=function(r,s){var l,u,f,c;if(this.subPixelOptimize){var p=Ph(hG,s,this.style);l=p.x1,u=p.y1,f=p.x2,c=p.y2}else l=s.x1,u=s.y1,f=s.x2,c=s.y2;var v=s.percent;if(v===0)return;if(r.moveTo(l,u),v<1)f=l*(1-v)+f*v,c=u*(1-v)+c*v;r.lineTo(f,c)},e.prototype.pointAt=function(r){var s=this.shape;return[s.x1*(1-r)+s.x2*r,s.y1*(1-r)+s.y2*r]},e}(xe);zE.prototype.type="line";var Zt=zE;var gi=[],mG=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return n}();function VE(n,e,r){var{cpx2:s,cpy2:l}=n;if(s!=null||l!=null)return[(r?O0:Gt)(n.x1,n.cpx1,n.cpx2,n.x2,e),(r?O0:Gt)(n.y1,n.cpy1,n.cpy2,n.y2,e)];else return[(r?N0:lr)(n.x1,n.cpx1,n.x2,e),(r?N0:lr)(n.y1,n.cpy1,n.y2,e)]}var UE=function(n){k(e,n);function e(r){return n.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mG},e.prototype.buildPath=function(r,s){var{x1:l,y1:u,x2:f,y2:c,cpx1:p,cpy1:v,cpx2:h,cpy2:d,percent:m}=s;if(m===0)return;if(r.moveTo(l,u),h==null||d==null){if(m<1)Yo(l,p,f,m,gi),p=gi[1],f=gi[2],Yo(u,v,c,m,gi),v=gi[1],c=gi[2];r.quadraticCurveTo(p,v,f,c)}else{if(m<1)$i(l,p,h,f,m,gi),p=gi[1],h=gi[2],f=gi[3],$i(u,v,d,c,m,gi),v=gi[1],d=gi[2],c=gi[3];r.bezierCurveTo(p,v,h,d,f,c)}},e.prototype.pointAt=function(r){return VE(this.shape,r,!1)},e.prototype.tangentAt=function(r){var s=VE(this.shape,r,!0);return Ki(s,s)},e}(xe);UE.prototype.type="bezier-curve";var El=UE;var gG=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}();var GE=function(n){k(e,n);function e(r){return n.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new gG},e.prototype.buildPath=function(r,s){var{cx:l,cy:u}=s,f=Math.max(s.r,0),{startAngle:c,endAngle:p,clockwise:v}=s,h=Math.cos(c),d=Math.sin(c);r.moveTo(h*f+l,d*f+u),r.arc(l,u,f,c,p,!v)},e}(xe);GE.prototype.type="arc";var rp=GE;var yG=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){var r=this.shape.paths,s=this.shapeChanged();for(var l=0;l<r.length;l++)s=s||r[l].shapeChanged();if(s)this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();var r=this.shape.paths||[],s=this.getGlobalScale();for(var l=0;l<r.length;l++){if(!r[l].path)r[l].createPathProxy();r[l].path.setScale(s[0],s[1],r[l].segmentIgnoreThreshold)}},e.prototype.buildPath=function(r,s){var l=s.paths||[];for(var u=0;u<l.length;u++)l[u].buildPath(r,l[u].shape,!0)},e.prototype.afterBrush=function(){var r=this.shape.paths||[];for(var s=0;s<r.length;s++)r[s].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),xe.prototype.getBoundingRect.call(this)},e}(xe),od=yG;var xG=function(){function n(e){this.colorStops=e||[]}return n.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},n}(),sd=xG;var _G=function(n){k(e,n);function e(r,s,l,u,f,c){var p=n.call(this,f)||this;return p.x=r==null?0:r,p.y=s==null?0:s,p.x2=l==null?1:l,p.y2=u==null?0:u,p.type="linear",p.global=c||!1,p}return e}(sd),os=_G;var SG=function(n){k(e,n);function e(r,s,l,u,f){var c=n.call(this,u)||this;return c.x=r==null?0.5:r,c.y=s==null?0.5:s,c.r=l==null?0.5:l,c.type="radial",c.global=f||!1,c}return e}(sd),HE=SG;var{min:Ux,max:DG,abs:ld}=Math,wl=[0,0],Il=[0,0],Er=D0(),{minTv:ud,maxTv:fd}=Er,bG=function(){function n(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var s=0;s<4;s++)this._corners[s]=new Le;for(var s=0;s<2;s++)this._axes[s]=new Le;if(e)this.fromBoundingRect(e,r)}return n.prototype.fromBoundingRect=function(e,r){var s=this._corners,l=this._axes,{x:u,y:f}=e,c=u+e.width,p=f+e.height;if(s[0].set(u,f),s[1].set(c,f),s[2].set(c,p),s[3].set(u,p),r)for(var v=0;v<4;v++)s[v].transform(r);Le.sub(l[0],s[1],s[0]),Le.sub(l[1],s[3],s[0]),l[0].normalize(),l[1].normalize();for(var v=0;v<2;v++)this._origin[v]=l[v].dot(s[0])},n.prototype.intersect=function(e,r,s){var l=!0,u=!r;if(r)Le.set(r,0,0);if(Er.reset(s,!u),!this._intersectCheckOneSide(this,e,u,1)){if(l=!1,u)return l}if(!this._intersectCheckOneSide(e,this,u,-1)){if(l=!1,u)return l}if(!u&&!Er.negativeSize)Le.copy(r,l?Er.useDir?Er.dirMinTv:ud:fd);return l},n.prototype._intersectCheckOneSide=function(e,r,s,l){var u=!0;for(var f=0;f<2;f++){var c=e._axes[f];if(e._getProjMinMaxOnAxis(f,e._corners,wl),e._getProjMinMaxOnAxis(f,r._corners,Il),Er.negativeSize||wl[1]<Il[0]||wl[0]>Il[1]){if(u=!1,Er.negativeSize||s)return u;var p=ld(Il[0]-wl[1]),v=ld(wl[0]-Il[1]);if(Ux(p,v)>fd.len())if(p<v)Le.scale(fd,c,-p*l);else Le.scale(fd,c,v*l)}else if(!s){var p=ld(Il[0]-wl[1]),v=ld(wl[0]-Il[1]);if(Er.useDir||Ux(p,v)<ud.len()){if(p<v||!Er.bidirectional){if(Le.scale(ud,c,p*l),Er.useDir)Er.calcDirMTV()}if(p>=v||!Er.bidirectional){if(Le.scale(ud,c,-v*l),Er.useDir)Er.calcDirMTV()}}}}return u},n.prototype._getProjMinMaxOnAxis=function(e,r,s){var l=this._axes[e],u=this._origin,f=r[0].dot(l)+u[e],c=f,p=f;for(var v=1;v<r.length;v++){var h=r[v].dot(l)+u[e];c=Ux(h,c),p=DG(h,p)}s[0]=c+Er.touchThreshold,s[1]=p-Er.touchThreshold,Er.negativeSize=s[1]<s[0]},n}(),cd=bG;var WE=1;var CG=[],AG=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.notClear=!0,r.incremental=WE,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,s){r.call(s,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,s){if(s)this._temporaryDisplayables.push(r);else this._displayables.push(r);this.markRedraw()},e.prototype.addDisplayables=function(r,s){s=s||!1;for(var l=0;l<r.length;l++)this.addDisplayable(r[l],s)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var s=this._cursor;s<this._displayables.length;s++)r&&r(this._displayables[s]);for(var s=0;s<this._temporaryDisplayables.length;s++)r&&r(this._temporaryDisplayables[s])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var s=this._displayables[r];s.parent=this,s.update(),s.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var s=this._temporaryDisplayables[r];s.parent=this,s.update(),s.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){var r=new De(1/0,1/0,-1/0,-1/0);for(var s=0;s<this._displayables.length;s++){var l=this._displayables[s],u=l.getBoundingRect().clone();if(l.needLocalTransform())u.applyTransform(l.getLocalTransform(CG));r.union(u)}this._rect=r}return this._rect},e.prototype.contain=function(r,s){var l=this.transformCoordToLocal(r,s),u=this.getBoundingRect();if(u.contain(l[0],l[1]))for(var f=0;f<this._displayables.length;f++){var c=this._displayables[f];if(c.contain(r,s))return!0}return!1},e}(pi),YE=AG;var ZE=he();function Qu(n,e,r,s,l){var u;if(e&&e.ecModel){var f=e.ecModel.getUpdatePayload();u=f&&f.animation}var c=e&&e.isAnimationEnabled(),p=n==="update";if(c){var v=void 0,h=void 0,d=void 0;if(s)v=te(s.duration,200),h=te(s.easing,"cubicOut"),d=0;else v=e.getShallow(p?"animationDurationUpdate":"animationDuration"),h=e.getShallow(p?"animationEasingUpdate":"animationEasing"),d=e.getShallow(p?"animationDelayUpdate":"animationDelay");if(u)u.duration!=null&&(v=u.duration),u.easing!=null&&(h=u.easing),u.delay!=null&&(d=u.delay);if(ie(d))d=d(r,l);if(ie(v))v=v(r);var m={duration:v||0,delay:d,easing:h};return m}else return null}function Gx(n,e,r,s,l,u,f){var c=!1,p;if(ie(l))f=u,u=l,l=null;else if(ue(l))u=l.cb,f=l.during,c=l.isFrom,p=l.removeOpt,l=l.dataIndex;var v=n==="leave";if(!v)e.stopAnimation("leave");var h=Qu(n,s,l,v?p||{}:null,s&&s.getAnimationDelayParams?s.getAnimationDelayParams(e,l):null);if(h&&h.duration>0){var{duration:d,delay:m,easing:g}=h,y={duration:d,delay:m||0,easing:g,done:u,force:!!u||!!f,setToFinal:!v,scope:n,during:f};c?e.animateFrom(r,y):e.animateTo(r,y)}else e.stopAnimation(),!c&&e.attr(r),f&&f(1),u&&u()}function Oe(n,e,r,s,l,u){Gx("update",n,e,r,s,l,u)}function $e(n,e,r,s,l,u){Gx("enter",n,e,r,s,l,u)}function ao(n){if(!n.__zr)return!0;for(var e=0;e<n.animators.length;e++){var r=n.animators[e];if(r.scope==="leave")return!0}return!1}function sa(n,e,r,s,l,u){if(ao(n))return;Gx("leave",n,e,r,s,l,u)}function XE(n,e,r,s){n.removeTextContent(),n.removeTextGuideLine(),sa(n,{style:{opacity:0}},e,r,s)}function vn(n,e,r){function s(){n.parent&&n.parent.remove(n)}if(!n.isGroup)XE(n,e,r,s);else n.traverse(function(l){if(!l.isGroup)XE(l,e,r,s)})}function fr(n){ZE(n).oldStyle=n.style}function KE(n){return ZE(n).oldStyle}var Wx={},la=["x","y"],La=["width","height"],Xx=0,Zx=1,no=2;function TG(n){return xe.extend(n)}var EG=TE;function wG(n,e){return EG(n,e)}function Pa(n,e){Wx[n]=e}function IG(n){if(Wx.hasOwnProperty(n))return Wx[n]}function vd(n,e,r,s){var l=AE(n,e);if(r){if(s==="center")r=$E(r,l.getBoundingRect());QE(l,r)}return l}function Kx(n,e,r){var s=new Bt({style:{image:n,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(l){if(r==="center"){var u={width:l.width,height:l.height};s.setStyle($E(e,u))}}});return s}function $E(n,e){var r=e.width/e.height,s=n.height*r,l;if(s<=n.width)l=n.height;else s=n.width,l=s/r;var u=n.x+n.width/2,f=n.y+n.height/2;return{x:u-s/2,y:f-l/2,width:s,height:l}}var zr=EE;function QE(n,e){if(!n.applyTransform)return;var r=n.getBoundingRect(),s=r.calculateTransform(e);n.applyTransform(s)}function oo(n,e){return Ph(n,n,{lineWidth:e}),n}function MG(n,e){return Rh(n,n,e),n}var ap=Qo;function so(n,e){var r=Gn([]);while(n&&n!==e)Sa(r,n.getLocalTransform(),r),n=n.parent;return r}function $r(n,e,r){if(e&&!Qt(e))e=qi.getLocalTransform(e);if(r)e=Zr([],e);return er([],n,e)}function Ml(n,e,r){var s=e[4]===0||e[5]===0||e[0]===0?1:_t(2*e[4]/e[0]),l=e[4]===0||e[5]===0||e[2]===0?1:_t(2*e[4]/e[2]),u=[n==="left"?-s:n==="right"?s:0,n==="top"?-l:n==="bottom"?l:0];return u=$r(u,e,r),_t(u[0])>_t(u[1])?u[0]>0?"right":"left":u[1]>0?"bottom":"top"}function qE(n){return!n.isGroup}function LG(n){return n.shape!=null}function lo(n,e,r){if(!n||!e)return;function s(f){var c={};return f.traverse(function(p){if(qE(p)&&p.anid)c[p.anid]=p}),c}function l(f){var c={x:f.x,y:f.y,rotation:f.rotation};if(LG(f))c.shape=le(f.shape);return c}var u=s(n);e.traverse(function(f){if(qE(f)&&f.anid){var c=u[f.anid];if(c){var p=l(f);f.attr(l(c)),Oe(f,p,r,ye(f).dataIndex)}}})}function qx(n,e){return W(n,function(r){var s=r[0];s=Be(s,e.x),s=lt(s,e.x+e.width);var l=r[1];return l=Be(l,e.y),l=lt(l,e.y+e.height),[s,l]})}function PG(n,e){var r=Be(n.x,e.x),s=lt(n.x+n.width,e.x+e.width),l=Be(n.y,e.y),u=lt(n.y+n.height,e.y+e.height);if(s>=r&&u>=l)return{x:r,y:l,width:s-r,height:u-l}}function np(n,e,r){var s=V({rectHover:!0},e),l=s.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(l.image=n.slice(8),pe(l,r),new Bt(s)):vd(n.replace("path://",""),s,r,"center")}function RG(n,e,r,s,l){for(var u=0,f=l[l.length-1];u<l.length;u++){var c=l[u];if(JE(n,e,r,s,c[0],c[1],f[0],f[1]))return!0;f=c}}function JE(n,e,r,s,l,u,f,c){var p=r-n,v=s-e,h=f-l,d=c-u,m=Hx(h,d,p,v);if(OG(m))return!1;var g=n-l,y=e-u,x=Hx(g,y,p,v)/m;if(x<0||x>1)return!1;var S=Hx(g,y,h,d)/m;if(S<0||S>1)return!1;return!0}function Hx(n,e,r,s){return n*s-r*e}function OG(n){return n<=0.000001&&n>=-0.000001}function ss(n,e,r,s,l){if(e==null)return n;else if(Te(e))Ft[0]=Ft[1]=Ft[2]=Ft[3]=e;else Ft[0]=e[0],Ft[1]=e[1],Ft[2]=e[2],Ft[3]=e[3];if(s)Ft[0]=Be(0,Ft[0]),Ft[1]=Be(0,Ft[1]),Ft[2]=Be(0,Ft[2]),Ft[3]=Be(0,Ft[3]);if(r)Ft[0]=-Ft[0],Ft[1]=-Ft[1],Ft[2]=-Ft[2],Ft[3]=-Ft[3];return jE(n,Ft,"x","width",3,1,l&&l[0]||0),jE(n,Ft,"y","height",0,2,l&&l[1]||0),n}var Ft=[0,0,0,0];function jE(n,e,r,s,l,u,f){var c=e[u]+e[l],p=n[s];if(n[s]+=c,f=Be(0,lt(f,p)),n[s]<f)n[s]=f,n[r]+=e[l]>=0?-e[l]:e[u]>=0?p+e[u]:_t(c)>0.00000001?(p-f)*e[l]/c:0;else n[r]-=e[l]}function ls(n){var{itemTooltipOption:e,componentModel:r,itemName:s}=n,l=K(e)?{formatter:e}:e,{mainType:u,componentIndex:f}=r,c={componentType:u,name:s,$vars:["name"]};c[u+"Index"]=f;var p=n.formatterParamsExtra;if(p)I(Me(p),function(h){if(!bt(c,h))c[h]=p[h],c.$vars.push(h)});var v=ye(n.el);v.componentMainType=u,v.componentIndex=f,v.tooltipConfig={name:s,option:pe({content:s,encodeHTMLContent:!0,formatterParams:c},l)}}function Yx(n,e){var r;if(n.isGroup)r=e(n);if(!r)n.traverse(e)}function Bi(n,e){if(n)if(U(n))for(var r=0;r<n.length;r++)Yx(n[r],e);else Yx(n,e)}function hd(n){return!n||_t(n[1])<pd&&_t(n[2])<pd||_t(n[0])<pd&&_t(n[3])<pd}var pd=0.00001;function Ju(n,e){return n?De.copy(n,e):e.clone()}function dd(n,e){return e?Ja(n||Ct(),e):void 0}function hn(n){return{z:n.get("z")||0,zlevel:n.get("zlevel")||0}}function NG(n){var e=-1/0,r=1/0;Yx(n,function(u){s(u),s(u.getTextContent()),s(u.getTextGuideLine())});function s(u){if(!u||u.isGroup)return;var f=u.currentStates;if(f.length)for(var c=0;c<f.length;c++)l(u.states[f[c]]);l(u)}function l(u){if(u){var f=u.z2;if(f>e)e=f;if(f<r)r=f}}if(r>e)r=e=0;return{min:r,max:e}}function op(n,e,r){ew(n,e,r,-1/0)}function ew(n,e,r,s){if(n.ignoreModelZ)return s;var l=n.getTextContent(),u=n.getTextGuideLine(),f=n.isGroup;if(f){var c=n.childrenRef();for(var p=0;p<c.length;p++)s=Be(ew(c[p],e,r,s),s)}else n.z=e,n.zlevel=r,s=Be(n.z2||0,s);if(l)l.z=e,l.zlevel=r,isFinite(s)&&(l.z2=s+2);if(u){var v=n.textGuideLineConfig;u.z=e,u.zlevel=r,isFinite(s)&&(u.z2=s+(v&&v.showAbove?1:-1))}return s}function sp(n){return n.animation={duration:0},n}function lp(n,e){return e?Ja(ip.transform,e):Gn(ip.transform),ip.decomposeTransform(),ci(n,ip),n}var ip=new qi;ip.transform=Ct();function kG(n){var e=n.getZr().painter;return e.getType()==="canvas"?e:null}Pa("circle",Ia);Pa("ellipse",Fx);Pa("sector",Xt);Pa("ring",Tl);Pa("polygon",rr);Pa("polyline",ur);Pa("rect",Ee);Pa("line",Zt);Pa("bezierCurve",El);Pa("arc",rp);var md={};function ow(n,e){for(var r=0;r<hr.length;r++){var s=hr[r],l=e[s],u=n.ensureState(s);u.style=u.style||{},u.style.text=l}var f=n.currentStates.slice();n.clearStates(!0),n.setStyle({text:e.normal}),n.useStates(f,!0)}function jx(n,e,r){var{labelFetcher:s,labelDataIndex:l,labelDimIndex:u}=n,f=e.normal,c;if(s)c=s.getFormattedLabel(l,"normal",null,u,f&&f.get("formatter"),r!=null?{interpolatedValue:r}:null);if(c==null)c=ie(n.defaultText)?n.defaultText(l,n,r):n.defaultText;var p={normal:c};for(var v=0;v<hr.length;v++){var h=hr[v],d=e[h];p[h]=te(s?s.getFormattedLabel(l,h,null,u,d&&d.get("formatter")):null,c)}return p}function Mt(n,e,r,s){r=r||md;var l=n instanceof Ve,u=!1;for(var f=0;f<is.length;f++){var c=e[is[f]];if(c&&c.getShallow("show")){u=!0;break}}var p=l?n:n.getTextContent();if(u){if(!l){if(!p)p=new Ve,n.setTextContent(p);if(n.stateProxy)p.stateProxy=n.stateProxy}var v=jx(r,e),h=e.normal,d=!!h.getShallow("show"),m=ut(h,s&&s.normal,r,!1,!l);if(m.text=v.normal,!l)n.setTextConfig(tw(h,r,!1));for(var f=0;f<hr.length;f++){var g=hr[f],c=e[g];if(c){var y=p.ensureState(g),x=!!te(c.getShallow("show"),d);if(x!==d)y.ignore=!x;if(y.style=ut(c,s&&s[g],r,!0,!l),y.style.text=v[g],!l){var S=n.ensureState(g);S.textConfig=tw(c,r,!0)}}}if(p.silent=!!h.getShallow("silent"),p.style.x!=null)m.x=p.style.x;if(p.style.y!=null)m.y=p.style.y;if(p.ignore=!d,p.useStyle(m),p.dirty(),r.enableTextSetter)uo(p).setLabelText=function(D){var b=jx(r,e,D);ow(p,b)}}else if(p)p.ignore=!0;n.dirty()}function St(n,e){e=e||"label";var r={normal:n.getModel(e)};for(var s=0;s<hr.length;s++){var l=hr[s];r[l]=n.getModel([l,e])}return r}function ut(n,e,r,s,l){var u={};return BG(u,n,r,s,l),e&&V(u,e),u}function tw(n,e,r){e=e||{};var s={},l,u=n.getShallow("rotate"),f=te(n.getShallow("distance"),r?null:5),c=n.getShallow("offset");if(l=n.getShallow("position")||(r?null:"inside"),l==="outside"&&(l=e.defaultOutsidePosition||"top"),l!=null)s.position=l;if(c!=null)s.offset=c;if(u!=null)u*=Math.PI/180,s.rotation=u;if(f!=null)s.distance=f;if(s.outsideFill=n.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null)s.autoOverflowArea=e.autoOverflowArea;if(e.layoutRect!=null)s.layoutRect=e.layoutRect;return s}function BG(n,e,r,s,l){r=r||md;var u=e.ecModel,f=u&&u.option.textStyle,c=FG(e),p;if(c){p={};var v="richInheritPlainLabel",h=te(e.get(v),u?u.get(v):void 0);for(var d in c)if(c.hasOwnProperty(d)){var m=e.getModel(["rich",d]);nw(p[d]={},m,f,e,h,r,s,l,!1,!0)}}if(p)n.rich=p;var g=e.get("overflow");if(g)n.overflow=g;var y=e.get("lineOverflow");if(y)n.lineOverflow=y;var x=n,S=e.get("minMargin");if(S!=null)S=!Te(S)?0:S/2,x.margin=[S,S,S,S],x.__marginType=Ll.minMargin;else{var D=e.get("textMargin");if(D!=null)x.margin=Bo(D),x.__marginType=Ll.textMargin}nw(n,e,f,null,null,r,s,l,!0,!1)}function FG(n){var e;while(n&&n!==n.ecModel){var r=(n.option||md).rich;if(r){e=e||{};var s=Me(r);for(var l=0;l<s.length;l++){var u=s[l];e[u]=1}}n=n.parentModel}return e}var rw=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],iw=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],aw=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function nw(n,e,r,s,l,u,f,c,p,v){r=!f&&r||md;var h=u&&u.inheritColor,d=e.getShallow("color"),m=e.getShallow("textBorderColor"),g=te(e.getShallow("opacity"),r.opacity);if(d==="inherit"||d==="auto")if(h)d=h;else d=null;if(m==="inherit"||m==="auto")if(h)m=h;else m=null;if(!c)d=d||r.color,m=m||r.textBorderColor;if(d!=null)n.fill=d;if(m!=null)n.stroke=m;var y=te(e.getShallow("textBorderWidth"),r.textBorderWidth);if(y!=null)n.lineWidth=y;var x=te(e.getShallow("textBorderType"),r.textBorderType);if(x!=null)n.lineDash=x;var S=te(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);if(S!=null)n.lineDashOffset=S;if(!f&&g==null&&!v)g=u&&u.defaultOpacity;if(g!=null)n.opacity=g;if(!f&&!c){if(n.fill==null&&u.inheritColor)n.fill=u.inheritColor}for(var D=0;D<rw.length;D++){var b=rw[D],C=l!==!1&&s?Jt(e.getShallow(b),s.getShallow(b),r[b]):te(e.getShallow(b),r[b]);if(C!=null)n[b]=C}for(var D=0;D<iw.length;D++){var b=iw[D],C=e.getShallow(b);if(C!=null)n[b]=C}if(n.verticalAlign==null){var A=e.getShallow("baseline");if(A!=null)n.verticalAlign=A}if(!p||!u.disableBox){for(var D=0;D<aw.length;D++){var b=aw[D],C=e.getShallow(b);if(C!=null)n[b]=C}var T=e.getShallow("borderType");if(T!=null)n.borderDash=T;if((n.backgroundColor==="auto"||n.backgroundColor==="inherit")&&h)n.backgroundColor=h;if((n.borderColor==="auto"||n.borderColor==="inherit")&&h)n.borderColor=h}}function sw(n,e){var r=e&&e.getModel("textStyle");return Mr([n.fontStyle||r&&r.getShallow("fontStyle")||"",n.fontWeight||r&&r.getShallow("fontWeight")||"",(n.fontSize||r&&r.getShallow("fontSize")||12)+"px",n.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var uo=he();function gd(n,e,r,s){if(!n)return;var l=uo(n);l.prevValue=l.value,l.value=r;var u=e.normal;if(l.valueAnimation=u.get("valueAnimation"),l.valueAnimation)l.precision=u.get("precision"),l.defaultInterpolatedText=s,l.statesModels=e}function yd(n,e,r,s,l){var u=uo(n);if(!u.valueAnimation||u.prevValue===u.value)return;var f=u.defaultInterpolatedText,c=te(u.interpolatedValue,u.prevValue),p=u.value;function v(h){var d=Gh(r,u.precision,c,p,h);u.interpolatedValue=h===1?null:d;var m=jx({labelDataIndex:e,labelFetcher:l,defaultText:f?f(d):d+""},u.statesModels,d);ow(n,m)}n.percent=0,(u.prevValue==null?$e:Oe)(n,{percent:1},s,e,null,v)}var Ll={minMargin:1,textMargin:2};var zG=["textStyle","color"],$x=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Qx=new Ve,VG=function(){function n(){}return n.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(zG):null)},n.prototype.getFont=function(){return sw({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},n.prototype.getTextRect=function(e){var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")};for(var s=0;s<$x.length;s++)r[$x[s]]=this.getShallow($x[s]);return Qx.useStyle(r),Qx.update(),Qx.getBoundingRect()},n}(),lw=VG;var Jx=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],UG=li(Jx),uw=function(){function n(){}return n.prototype.getLineStyle=function(e){return UG(this,e)},n}();var e_=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],GG=li(e_),fw=function(){function n(){}return n.prototype.getItemStyle=function(e,r){return GG(this,e,r)},n}();var Pl=function(){function n(e,r,s){this.parentModel=r,this.ecModel=s,this.option=e}return n.prototype.init=function(e,r,s){var l=[];for(var u=3;u<arguments.length;u++)l[u-3]=arguments[u]},n.prototype.mergeOption=function(e,r){Re(this.option,e,!0)},n.prototype.get=function(e,r){if(e==null)return this.option;return this._doGet(this.parsePath(e),!r&&this.parentModel)},n.prototype.getShallow=function(e,r){var s=this.option,l=s==null?s:s[e];if(l==null&&!r){var u=this.parentModel;if(u)l=u.getShallow(e)}return l},n.prototype.getModel=function(e,r){var s=e!=null,l=s?this.parsePath(e):null,u=s?this._doGet(l):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(l)),new n(u,r,this.ecModel)},n.prototype.isEmpty=function(){return this.option==null},n.prototype.restoreData=function(){},n.prototype.clone=function(){var e=this.constructor;return new e(le(this.option))},n.prototype.parsePath=function(e){if(typeof e==="string")return e.split(".");return e},n.prototype.resolveParentPath=function(e){return e},n.prototype.isAnimationEnabled=function(){if(!Ue.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;else if(this.parentModel)return this.parentModel.isAnimationEnabled()}},n.prototype._doGet=function(e,r){var s=this.option;if(!e)return s;for(var l=0;l<e.length;l++){if(!e[l])continue;if(s=s&&typeof s==="object"?s[e[l]]:null,s==null)break}if(s==null&&r)s=r._doGet(this.resolveParentPath(e),r.parentModel);return s},n}();bu(Pl);nA(Pl);xt(Pl,uw);xt(Pl,fw);xt(Pl,oA);xt(Pl,lw);var Je=Pl;function up(n){return n==null?0:n.length||1}function cw(n){return n}var HG=function(){function n(e,r,s,l,u,f){this._old=e,this._new=r,this._oldKeyGetter=s||cw,this._newKeyGetter=l||cw,this.context=u,this._diffModeMultiple=f==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,r=this._new,s={},l=Array(e.length),u=Array(r.length);this._initIndexMap(e,null,l,"_oldKeyGetter"),this._initIndexMap(r,s,u,"_newKeyGetter");for(var f=0;f<e.length;f++){var c=l[f],p=s[c],v=up(p);if(v>1){var h=p.shift();if(p.length===1)s[c]=p[0];this._update&&this._update(h,f)}else if(v===1)s[c]=null,this._update&&this._update(p,f);else this._remove&&this._remove(f)}this._performRestAdd(u,s)},n.prototype._executeMultiple=function(){var e=this._old,r=this._new,s={},l={},u=[],f=[];this._initIndexMap(e,s,u,"_oldKeyGetter"),this._initIndexMap(r,l,f,"_newKeyGetter");for(var c=0;c<u.length;c++){var p=u[c],v=s[p],h=l[p],d=up(v),m=up(h);if(d>1&&m===1)this._updateManyToOne&&this._updateManyToOne(h,v),l[p]=null;else if(d===1&&m>1)this._updateOneToMany&&this._updateOneToMany(h,v),l[p]=null;else if(d===1&&m===1)this._update&&this._update(h,v),l[p]=null;else if(d>1&&m>1)this._updateManyToMany&&this._updateManyToMany(h,v),l[p]=null;else if(d>1)for(var g=0;g<d;g++)this._remove&&this._remove(v[g]);else this._remove&&this._remove(v)}this._performRestAdd(f,l)},n.prototype._performRestAdd=function(e,r){for(var s=0;s<e.length;s++){var l=e[s],u=r[l],f=up(u);if(f>1)for(var c=0;c<f;c++)this._add&&this._add(u[c]);else if(f===1)this._add&&this._add(u);r[l]=null}},n.prototype._initIndexMap=function(e,r,s,l){var u=this._diffModeMultiple;for(var f=0;f<e.length;f++){var c="_ec_"+this[l](e[f],f);if(!u)s[f]=c;if(!r)continue;var p=r[c],v=up(p);if(v===0){if(r[c]=f,u)s.push(c)}else if(v===1)r[c]=[p,f];else p.push(f)}},n}(),Fi=HG;var Cr={Must:1,Might:2,Not:3},pw=he();function vw(n){pw(n).datasetMap=re()}function xd(n,e,r){var s={},l=Sd(e);if(!l||!n)return s;var u=[],f=[],c=e.ecModel,p=pw(c).datasetMap,v=l.uid+"_"+r.seriesLayoutBy,h,d;n=n.slice(),I(n,function(x,S){var D=ue(x)?x:n[S]={name:x};if(D.type==="ordinal"&&h==null)h=S,d=y(D);s[D.name]=[]});var m=p.get(v)||p.set(v,{categoryWayDim:d,valueWayDim:0});I(n,function(x,S){var D=x.name,b=y(x);if(h==null){var C=m.valueWayDim;g(s[D],C,b),g(f,C,b),m.valueWayDim+=b}else if(h===S)g(s[D],0,b),g(u,0,b);else{var C=m.categoryWayDim;g(s[D],C,b),g(f,C,b),m.categoryWayDim+=b}});function g(x,S,D){for(var b=0;b<D;b++)x.push(S+b)}function y(x){var S=x.dimsDef;return S?S.length:1}return u.length&&(s.itemName=u),f.length&&(s.seriesName=f),s}function _d(n,e,r){var s={},l=Sd(n);if(!l)return s;var{sourceFormat:u,dimensionsDefine:f}=e,c;if(u===Tr||u===mi)I(f,function(h,d){if((ue(h)?h.name:h)==="name")c=d});var p=function(){var h={},d={},m=[];for(var g=0,y=Math.min(5,r);g<y;g++){var x=dw(e.data,u,e.seriesLayoutBy,f,e.startIndex,g);m.push(x);var S=x===Cr.Not;if(S&&h.v==null&&g!==c)h.v=g;if(h.n==null||h.n===h.v||!S&&m[h.n]===Cr.Not)h.n=g;if(D(h)&&m[h.n]!==Cr.Not)return h;if(!S){if(x===Cr.Might&&d.v==null&&g!==c)d.v=g;if(d.n==null||d.n===d.v)d.n=g}}function D(b){return b.v!=null&&b.n!=null}return D(h)?h:D(d)?d:null}();if(p){s.value=[p.v];var v=c!=null?c:p.n;s.itemName=[v],s.seriesName=[v]}return s}function Sd(n){var e=n.get("data",!0);if(!e)return fn(n.ecModel,"dataset",{index:n.get("datasetIndex",!0),id:n.get("datasetId",!0)},gt).models[0]}function hw(n){if(!n.get("transform",!0)&&!n.get("fromTransformResult",!0))return[];return fn(n.ecModel,"dataset",{index:n.get("fromDatasetIndex",!0),id:n.get("fromDatasetId",!0)},gt).models}function Dd(n,e){return dw(n.data,n.sourceFormat,n.seriesLayoutBy,n.dimensionsDefine,n.startIndex,e)}function dw(n,e,r,s,l,u){var f,c=5;if(Yt(n))return Cr.Not;var p,v;if(s){var h=s[u];if(ue(h))p=h.name,v=h.type;else if(K(h))p=h}if(v!=null)return v==="ordinal"?Cr.Must:Cr.Not;if(e===Ht){var d=n;if(r===cn){var m=d[u];for(var g=0;g<(m||[]).length&&g<c;g++)if((f=A(m[l+g]))!=null)return f}else for(var g=0;g<d.length&&g<c;g++){var y=d[l+g];if(y&&(f=A(y[u]))!=null)return f}}else if(e===Tr){var x=n;if(!p)return Cr.Not;for(var g=0;g<x.length&&g<c;g++){var S=x[g];if(S&&(f=A(S[p]))!=null)return f}}else if(e===mi){var D=n;if(!p)return Cr.Not;var m=D[p];if(!m||Yt(m))return Cr.Not;for(var g=0;g<m.length&&g<c;g++)if((f=A(m[g]))!=null)return f}else if(e===br){var b=n;for(var g=0;g<b.length&&g<c;g++){var S=b[g],C=eo(S);if(!U(C))return Cr.Not;if((f=A(C[u]))!=null)return f}}function A(T){var E=K(T);if(T!=null&&isFinite(Number(T))&&T!=="")return E?Cr.Might:Cr.Not;else if(E&&T!=="-")return Cr.Must}return Cr.Not}var bd=function(){function n(e){this.data=e.data||(e.sourceFormat===mi?{}:[]),this.sourceFormat=e.sourceFormat||bx,this.seriesLayoutBy=e.seriesLayoutBy||jr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var s=0;s<r.length;s++){var l=r[s];if(l.type==null){if(Dd(this,s)===Cr.Must)l.type="ordinal"}}}return n}();function ef(n){return n instanceof bd}function fp(n,e,r){r=r||t_(n);var s=e.seriesLayoutBy,l=WG(n,r,s,e.sourceHeader,e.dimensions),u=new bd({data:n,sourceFormat:r,seriesLayoutBy:s,dimensionsDefine:l.dimensionsDefine,startIndex:l.startIndex,dimensionsDetectedCount:l.dimensionsDetectedCount,metaRawOption:le(e)});return u}function tf(n){return new bd({data:n,sourceFormat:Yt(n)?Oi:br})}function yw(n){return new bd({data:n.data,sourceFormat:n.sourceFormat,seriesLayoutBy:n.seriesLayoutBy,dimensionsDefine:le(n.dimensionsDefine),startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount})}function t_(n){var e=bx;if(Yt(n))e=Oi;else if(U(n)){if(n.length===0)e=Ht;for(var r=0,s=n.length;r<s;r++){var l=n[r];if(l==null)continue;else if(U(l)||Yt(l)){e=Ht;break}else if(ue(l)){e=Tr;break}}}else if(ue(n)){for(var u in n)if(bt(n,u)&&Qt(n[u])){e=mi;break}}return e}function WG(n,e,r,s,l){var u,f;if(!n)return{dimensionsDefine:mw(l),startIndex:f,dimensionsDetectedCount:u};if(e===Ht){var c=n;if(s==="auto"||s==null)gw(function(v){if(v!=null&&v!=="-")if(K(v))f==null&&(f=1);else f=0},r,c,10);else f=Te(s)?s:s?1:0;if(!l&&f===1)l=[],gw(function(v,h){l[h]=v!=null?v+"":""},r,c,1/0);u=l?l.length:r===cn?c.length:c[0]?c[0].length:null}else if(e===Tr){if(!l)l=YG(n)}else if(e===mi){if(!l)l=[],I(n,function(v,h){l.push(h)})}else if(e===br){var p=eo(n[0]);u=U(p)&&p.length||1}return{startIndex:f,dimensionsDefine:mw(l),dimensionsDetectedCount:u}}function YG(n){var e=0,r;while(e<n.length&&!(r=n[e++]));if(r)return Me(r)}function mw(n){if(!n)return;var e=re();return W(n,function(r,s){r=ue(r)?r:{name:r};var l={name:r.name,displayName:r.displayName,type:r.type};if(l.name==null)return l;if(l.name+="",l.displayName==null)l.displayName=l.name;var u=e.get(l.name);if(!u)e.set(l.name,{count:1});else l.name+="-"+u.count++;return l})}function gw(n,e,r,s){if(e===cn)for(var l=0;l<r.length&&l<s;l++)n(r[l]?r[l][0]:null,l);else{var u=r[0]||[];for(var l=0;l<u.length&&l<s;l++)n(u[l],l)}}function Cd(n){var e=n.sourceFormat;return e===Tr||e===mi}var Rl,Ol,Nl,kl,xw,_w,Td=function(){function n(e,r){var s=!ef(e)?tf(e):e;this._source=s;var l=this._data=s.data,{sourceFormat:u,seriesLayoutBy:f}=s;if(u===Oi)this._offset=0,this._dimSize=r,this._data=l;if(!1)var c;_w(this,l,s)}return n.prototype.getSource=function(){return this._source},n.prototype.count=function(){return 0},n.prototype.getItem=function(e,r){return},n.prototype.appendData=function(e){},n.prototype.clean=function(){},n.protoInitialize=function(){var e=n.prototype;e.pure=!1,e.persistent=!0}(),n.internalField=function(){var e;_w=function(f,c,p){var{sourceFormat:v,seriesLayoutBy:h,startIndex:d,dimensionsDefine:m}=p,g=xw[o_(v,h)];if(V(f,g),v===Oi)f.getItem=r,f.count=l,f.fillStorage=s;else{var y=i_(v,h);f.getItem=se(y,null,c,d,m);var x=a_(v,h);f.count=se(x,null,c,d,m)}};var r=function(f,c){f=f-this._offset,c=c||[];var p=this._data,v=this._dimSize,h=v*f;for(var d=0;d<v;d++)c[d]=p[h+d];return c},s=function(f,c,p,v){var h=this._data,d=this._dimSize;for(var m=0;m<d;m++){var g=v[m],y=g[0]==null?1/0:g[0],x=g[1]==null?-1/0:g[1],S=c-f,D=p[m];for(var b=0;b<S;b++){var C=h[b*d+m];D[f+b]=C,C<y&&(y=C),C>x&&(x=C)}g[0]=y,g[1]=x}},l=function(){return this._data?this._data.length/this._dimSize:0};xw=(e={},e[Ht+"_"+jr]={pure:!0,appendData:u},e[Ht+"_"+cn]={pure:!0,appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Tr]={pure:!0,appendData:u},e[mi]={pure:!0,appendData:function(f){var c=this._data;I(f,function(p,v){var h=c[v]||(c[v]=[]);for(var d=0;d<(p||[]).length;d++)h.push(p[d])})}},e[br]={appendData:u},e[Oi]={persistent:!1,pure:!0,appendData:function(f){this._data=f},clean:function(){this._offset+=this.count(),this._data=null}},e);function u(f){for(var c=0;c<f.length;c++)this._data.push(f[c])}}(),n}();var Ad=function(n){if(!U(n))zh("series.data or dataset.source must be an array.")},are=(Rl={},Rl[Ht+"_"+jr]=Ad,Rl[Ht+"_"+cn]=Ad,Rl[Tr]=Ad,Rl[mi]=function(n,e){for(var r=0;r<e.length;r++){var s=e[r].name;if(s==null)zh("dimension name must not be null/undefined.")}},Rl[br]=Ad,Rl),Sw=function(n,e,r,s){return n[s]},XG=(Ol={},Ol[Ht+"_"+jr]=function(n,e,r,s){return n[s+e]},Ol[Ht+"_"+cn]=function(n,e,r,s,l){s+=e;var u=l||[],f=n;for(var c=0;c<f.length;c++){var p=f[c];u[c]=p?p[s]:null}return u},Ol[Tr]=Sw,Ol[mi]=function(n,e,r,s,l){var u=l||[];for(var f=0;f<r.length;f++){var c=r[f].name,p=c!=null?n[c]:null;u[f]=p?p[s]:null}return u},Ol[br]=Sw,Ol);function i_(n,e){var r=XG[o_(n,e)];return r}var Dw=function(n,e,r){return n.length},ZG=(Nl={},Nl[Ht+"_"+jr]=function(n,e,r){return Math.max(0,n.length-e)},Nl[Ht+"_"+cn]=function(n,e,r){var s=n[0];return s?Math.max(0,s.length-e):0},Nl[Tr]=Dw,Nl[mi]=function(n,e,r){var s=r[0].name,l=s!=null?n[s]:null;return l?l.length:0},Nl[br]=Dw,Nl);function a_(n,e){var r=ZG[o_(n,e)];return r}var r_=function(n,e,r){return n[e]},KG=(kl={},kl[Ht]=r_,kl[Tr]=function(n,e,r){return n[r]},kl[mi]=r_,kl[br]=function(n,e,r){var s=eo(n);return!(s instanceof Array)?s:s[e]},kl[Oi]=r_,kl);function n_(n){var e=KG[n];return e}function o_(n,e){return n===Ht?n+"_"+e:n}function fo(n,e,r){if(!n)return;var s=n.getRawDataItem(e);if(s==null)return;var l=n.getStore(),u=l.getSource().sourceFormat;if(r!=null){var f=n.getDimensionIndex(r),c=l.getDimensionProperty(f);return n_(u)(s,f,c)}else{var p=s;if(u===br)p=eo(s);return p}}var qG=function(){function n(e,r){this._encode=e,this._schema=r}return n.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},n.prototype._getFullDimensionNames=function(){if(!this._cachedDimNames)this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[];return this._cachedDimNames},n}();function bw(n,e){var r={},s=r.encode={},l=re(),u=[],f=[],c={};I(n.dimensions,function(m){var g=n.getDimensionInfo(m),y=g.coordDim;if(y){var x=g.coordDimIndex;if(s_(s,y)[x]=m,!g.isExtraCoord){if(l.set(y,1),jG(g.type))u[0]=m;s_(c,y)[x]=n.getDimensionIndex(g.name)}if(g.defaultTooltip)f.push(m)}Wh.each(function(S,D){var b=s_(s,D),C=g.otherDims[D];if(C!=null&&C!==!1)b[C]=g.name})});var p=[],v={};l.each(function(m,g){var y=s[g];v[g]=y[0],p=p.concat(y)}),r.dataDimsOnCoord=p,r.dataDimIndicesOnCoord=W(p,function(m){return n.getDimensionInfo(m).storeDimIndex}),r.encodeFirstDimNotExtra=v;var h=s.label;if(h&&h.length)u=h.slice();var d=s.tooltip;if(d&&d.length)f=d.slice();else if(!f.length)f=u.slice();return s.defaultedLabel=u,s.defaultedTooltip=f,r.userOutput=new qG(c,e),r}function s_(n,e){if(!n.hasOwnProperty(e))n[e]=[];return n[e]}function Bl(n){return n==="category"?"ordinal":n==="time"?"time":"float"}function jG(n){return!(n==="ordinal"||n==="time")}var $G=function(){function n(e){if(this.otherDims={},e!=null)V(this,e)}return n}(),rf=$G;function ua(n,e){var r=e&&e.type;if(r==="ordinal")return n;if(r==="time"&&!Te(n)&&n!=null&&n!=="-")n=+ia(n);return n==null||n===""?NaN:Number(n)}var QG=re({number:function(n){return parseFloat(n)},time:function(n){return+ia(n)},trim:function(n){return K(n)?Mr(n):n}});function Ed(n){return QG.get(n)}var Cw={lt:function(n,e){return n<e},lte:function(n,e){return n<=e},gt:function(n,e){return n>e},gte:function(n,e){return n>=e}},JG=function(){function n(e,r){if(!Te(r)){var s="";rt(s)}this._opFn=Cw[e],this._rvalFloat=aa(r)}return n.prototype.evaluate=function(e){return Te(e)?this._opFn(e,this._rvalFloat):this._opFn(aa(e),this._rvalFloat)},n}(),wd=function(){function n(e,r){var s=e==="desc";if(this._resultLT=s?1:-1,r==null)r=s?"min":"max";this._incomparable=r==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,r){var s=Te(e)?e:aa(e),l=Te(r)?r:aa(r),u=isNaN(s),f=isNaN(l);if(u)s=this._incomparable;if(f)l=this._incomparable;if(u&&f){var c=K(e),p=K(r);if(c)s=p?e:0;if(p)l=c?r:0}return s<l?this._resultLT:s>l?-this._resultLT:0},n}();var eH=function(){function n(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=aa(r)}return n.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var s=typeof e;if(s!==this._rvalTypeof&&(s==="number"||this._rvalTypeof==="number"))r=aa(e)===this._rvalFloat}return this._isEQ?r:!r},n}();function Aw(n,e){return n==="eq"||n==="ne"?new eH(n==="eq",e):bt(Cw,n)?new JG(n,e):null}function Id(n){var e="",r=-1/0,s=-1/0,l=1/0,u=1/0;if(n){if(n.g!=null)e+="G"+n.g,r=n.g;if(n.ge!=null)e+="GE"+n.ge,s=n.ge;if(n.l!=null)e+="L"+n.l,l=n.l;if(n.le!=null)e+="LE"+n.le,u=n.le}return{key:e,g:r,ge:s,l,le:u}}function Md(n,e){return e>n.g&&e>=n.ge&&e<n.l&&e<=n.le}var tH=typeof Uint32Array===rs?Array:Uint32Array,rH=typeof Uint16Array===rs?Array:Uint16Array,u_=typeof Int32Array===rs?Array:Int32Array,Tw=typeof Float64Array===rs?Array:Float64Array,ww={float:Tw,int:u_,ordinal:Array,number:Array,time:Tw},l_;function af(n){return n>65535?tH:rH}function iH(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function Ew(n,e,r,s,l){var u=ww[r||"float"];if(l){var f=n[e],c=f&&f.length;if(c!==s){var p=new u(s);for(var v=0;v<c;v++)p[v]=f[v];n[e]=p}}else n[e]=new u(s)}var aH=function(){function n(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=re()}return n.prototype.initData=function(e,r,s){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var l=e.getSource(),u=this.defaultDimValueGetter=l_[l.sourceFormat];this._dimValueGetter=s||u,this._rawExtent=[];var f=Cd(l);this._dimensions=W(r,function(c){return{type:c.type,property:c.property}}),this._initDataFromProvider(0,e.count())},n.prototype.getProvider=function(){return this._provider},n.prototype.getSource=function(){return this._provider.getSource()},n.prototype.ensureCalculationDimension=function(e,r){var s=this._calcDimNameToIdx,l=this._dimensions,u=s.get(e);if(u!=null){if(l[u].type===r)return u}else u=l.length;return l[u]={type:r},s.set(e,u),this._chunks[u]=new ww[r||"float"](this._rawCount),this._rawExtent[u]=Dr(),u},n.prototype.collectOrdinalMeta=function(e,r){var s=this._chunks[e],l=this._dimensions[e],u=this._rawExtent,f=l.ordinalOffset||0,c=s.length;if(f===0)u[e]=Dr();var p=u[e];for(var v=f;v<c;v++){var h=s[v]=r.parseAndCollect(s[v]);if(!isNaN(h))p[0]=Math.min(h,p[0]),p[1]=Math.max(h,p[1])}l.ordinalMeta=r,l.ordinalOffset=c,l.type="ordinal"},n.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],s=r.ordinalMeta;return s},n.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},n.prototype.appendData=function(e){var r=this._provider,s=this.count();r.appendData(e);var l=r.count();if(!r.persistent)l+=s;if(s<l)this._initDataFromProvider(s,l,!0);return[s,l]},n.prototype.appendValues=function(e,r){var s=this._chunks,l=this._dimensions,u=l.length,f=this._rawExtent,c=this.count(),p=c+Math.max(e.length,r||0);for(var v=0;v<u;v++){var h=l[v];Ew(s,v,h.type,p,!0)}var d=[];for(var m=c;m<p;m++){var g=m-c;for(var y=0;y<u;y++){var h=l[y],x=l_.arrayRows.call(this,e[g]||d,h.property,g,y);s[y][m]=x;var S=f[y];x<S[0]&&(S[0]=x),x>S[1]&&(S[1]=x)}}return this._rawCount=this._count=p,{start:c,end:p}},n.prototype._initDataFromProvider=function(e,r,s){var l=this._provider,u=this._chunks,f=this._dimensions,c=f.length,p=this._rawExtent,v=W(f,function(b){return b.property});for(var h=0;h<c;h++){var d=f[h];if(!p[h])p[h]=Dr();Ew(u,h,d.type,r,s)}if(l.fillStorage)l.fillStorage(e,r,u,p);else{var m=[];for(var g=e;g<r;g++){m=l.getItem(g,m);for(var y=0;y<c;y++){var x=u[y],S=this._dimValueGetter(m,v[y],g,y);x[g]=S;var D=p[y];S<D[0]&&(D[0]=S),S>D[1]&&(D[1]=S)}}}if(!l.persistent&&l.clean)l.clean();this._rawCount=this._count=r,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var s=this._chunks[e];return s?s[this.getRawIndex(r)]:NaN},n.prototype.getValues=function(e,r){var s=[],l=[];if(r==null){r=e,e=[];for(var u=0;u<this._dimensions.length;u++)l.push(u)}else l=e;for(var u=0,f=l.length;u<f;u++)s.push(this.get(l[u],r));return s},n.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var s=this._chunks[e];return s?s[r]:NaN},n.prototype.getSum=function(e){var r=this._chunks[e],s=0;if(r)for(var l=0,u=this.count();l<u;l++){var f=this.get(e,l);if(!isNaN(f))s+=f}return s},n.prototype.getMedian=function(e){var r=[];this.each([e],function(l){if(!isNaN(l))r.push(l)}),Rt(r);var s=this.count();return s===0?0:s%2===1?r[(s-1)/2]:(r[s/2]+r[s/2-1])/2},n.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,s=r[e];if(s!=null&&s<this._count&&s===e)return e;var l=0,u=this._count-1;while(l<=u){var f=(l+u)/2|0;if(r[f]<e)l=f+1;else if(r[f]>e)u=f-1;else return f}return-1},n.prototype.getIndices=function(){var e,r=this._indices;if(r){var s=r.constructor,l=this._count;if(s===Array){e=new s(l);for(var u=0;u<l;u++)e[u]=r[u]}else e=new s(r.buffer,0,l)}else{var s=af(this._rawCount);e=new s(this.count());for(var u=0;u<e.length;u++)e[u]=u}return e},n.prototype.filter=function(e,r){if(!this._count)return this;var s=this.clone(),l=s.count(),u=af(s._rawCount),f=new u(l),c=[],p=e.length,v=0,h=e[0],d=s._chunks;for(var m=0;m<l;m++){var g=void 0,y=s.getRawIndex(m);if(p===0)g=r(m);else if(p===1){var x=d[h][y];g=r(x,m)}else{var S=0;for(;S<p;S++)c[S]=d[e[S]][y];c[S]=m,g=r.apply(null,c)}if(g)f[v++]=y}if(v<l)s._indices=f;return s._count=v,s._extent=[],s._updateGetRawIdx(),s},n.prototype.selectRange=function(e){var r=this.clone(),s=r._count;if(!s)return this;var l=Me(e),u=l.length;if(!u)return this;var f=r.count(),c=af(r._rawCount),p=new c(f),v=0,h=l[0],d=e[h][0],m=e[h][1],g=r._chunks,y=!1;if(!r._indices){var x=0;if(u===1){var S=g[l[0]];for(var D=0;D<s;D++){var b=S[D];if(b>=d&&b<=m||isNaN(b))p[v++]=x;x++}y=!0}else if(u===2){var S=g[l[0]],C=g[l[1]],A=e[l[1]][0],T=e[l[1]][1];for(var D=0;D<s;D++){var b=S[D],E=C[D];if((b>=d&&b<=m||isNaN(b))&&(E>=A&&E<=T||isNaN(E)))p[v++]=x;x++}y=!0}}if(!y)if(u===1)for(var D=0;D<f;D++){var w=r.getRawIndex(D),b=g[l[0]][w];if(b>=d&&b<=m||isNaN(b))p[v++]=w}else for(var D=0;D<f;D++){var L=!0,w=r.getRawIndex(D);for(var M=0;M<u;M++){var P=l[M],b=g[P][w];if(b<e[P][0]||b>e[P][1])L=!1}if(L)p[v++]=r.getRawIndex(D)}if(v<f)r._indices=p;return r._count=v,r._extent=[],r._updateGetRawIdx(),r},n.prototype.map=function(e,r){var s=this.clone(e);return this._updateDims(s,e,r),s},n.prototype.modify=function(e,r){this._updateDims(this,e,r)},n.prototype._updateDims=function(e,r,s){var l=e._chunks,u=[],f=r.length,c=e.count(),p=[],v=e._rawExtent;for(var h=0;h<r.length;h++)v[r[h]]=Dr();for(var d=0;d<c;d++){var m=e.getRawIndex(d);for(var g=0;g<f;g++)p[g]=l[r[g]][m];p[f]=d;var y=s&&s.apply(null,p);if(y!=null){if(typeof y!=="object")u[0]=y,y=u;for(var h=0;h<y.length;h++){var x=r[h],S=y[h],D=v[x],b=l[x];if(b)b[m]=S;if(S<D[0])D[0]=S;if(S>D[1])D[1]=S}}}},n.prototype.lttbDownSample=function(e,r){var s=this.clone([e],!0),l=s._chunks,u=l[e],f=this.count(),c=0,p=Math.floor(1/r),v=this.getRawIndex(0),h,d,m,g=new(af(this._rawCount))(Math.min((Math.ceil(f/p)+2)*2,f));g[c++]=v;for(var y=1;y<f-1;y+=p){var x=Math.min(y+p,f-1),S=Math.min(y+p*2,f),D=(S+x)/2,b=0;for(var C=x;C<S;C++){var A=this.getRawIndex(C),T=u[A];if(isNaN(T))continue;b+=T}b/=S-x;var E=y,w=Math.min(y+p,f),L=y-1,M=u[v];h=-1,m=E;var P=-1,R=0;for(var C=E;C<w;C++){var A=this.getRawIndex(C),T=u[A];if(isNaN(T)){if(R++,P<0)P=A;continue}if(d=Math.abs((L-D)*(T-M)-(L-C)*(b-M)),d>h)h=d,m=A}if(R>0&&R<w-E)g[c++]=Math.min(P,m),m=Math.max(P,m);g[c++]=m,v=m}return g[c++]=this.getRawIndex(f-1),s._count=c,s._indices=g,s.getRawIndex=this._getRawIdx,s},n.prototype.minmaxDownSample=function(e,r){var s=this.clone([e],!0),l=s._chunks,u=Math.floor(1/r),f=l[e],c=this.count(),p=new(af(this._rawCount))(Math.ceil(c/u)*2),v=0;for(var h=0;h<c;h+=u){var d=h,m=f[this.getRawIndex(d)],g=h,y=f[this.getRawIndex(g)],x=u;if(h+u>c)x=c-h;for(var S=0;S<x;S++){var D=this.getRawIndex(h+S),b=f[D];if(b<m)m=b,d=h+S;if(b>y)y=b,g=h+S}var C=this.getRawIndex(d),A=this.getRawIndex(g);if(d<g)p[v++]=C,p[v++]=A;else p[v++]=A,p[v++]=C}return s._count=v,s._indices=p,s._updateGetRawIdx(),s},n.prototype.downSample=function(e,r,s,l){var u=this.clone([e],!0),f=u._chunks,c=[],p=Math.floor(1/r),v=f[e],h=this.count(),d=u._rawExtent[e]=Dr(),m=new(af(this._rawCount))(Math.ceil(h/p)),g=0;for(var y=0;y<h;y+=p){if(p>h-y)p=h-y,c.length=p;for(var x=0;x<p;x++){var S=this.getRawIndex(y+x);c[x]=v[S]}var D=s(c),b=this.getRawIndex(Math.min(y+l(c,D)||0,h-1));if(v[b]=D,D<d[0])d[0]=D;if(D>d[1])d[1]=D;m[g++]=b}return u._count=g,u._indices=m,u._updateGetRawIdx(),u},n.prototype.each=function(e,r){if(!this._count)return;var s=e.length,l=this._chunks;for(var u=0,f=this.count();u<f;u++){var c=this.getRawIndex(u);switch(s){case 0:r(u);break;case 1:r(l[e[0]][c],u);break;case 2:r(l[e[0]][c],l[e[1]][c],u);break;default:var p=0,v=[];for(;p<s;p++)v[p]=l[e[p]][c];v[p]=u,r.apply(null,v)}}},n.prototype.getDataExtent=function(e,r){var s=this._chunks[e],l=Dr();if(!s)return l;var u=this.count(),f=!this._indices&&!r;if(f)return this._rawExtent[e].slice();var c=this._extent,p=c[e]||(c[e]={}),v=Id(r),h=v.key,d=p[h];if(d)return d.slice();var m=l[0],g=l[1];for(var y=0;y<u;y++){var x=this.getRawIndex(y),S=s[x];if(!r||Md(v,S)){if(S<m)m=S;if(S>g)g=S}}return p[h]=[m,g]},n.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(!this._provider.persistent){var s=[],l=this._chunks;for(var u=0;u<l.length;u++)s.push(l[u][r]);return s}else return this._provider.getItem(r)},n.prototype.clone=function(e,r){var s=new n,l=this._chunks,u=e&&wi(e,function(c,p){return c[p]=!0,c},{});if(u)for(var f=0;f<l.length;f++)s._chunks[f]=!u[f]?l[f]:iH(l[f]);else s._chunks=l;if(this._copyCommonProps(s),!r)s._indices=this._cloneIndices();return s._updateGetRawIdx(),s},n.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=le(this._extent),e._rawExtent=le(this._rawExtent)},n.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var s=this._indices.length;r=new e(s);for(var l=0;l<s;l++)r[l]=this._indices[l]}else r=new e(this._indices);return r}return null},n.prototype._getRawIdxIdentity=function(e){return e},n.prototype._getRawIdx=function(e){if(e<this._count&&e>=0)return this._indices[e];return-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(r,s,l,u){return ua(r[u],this._dimensions[u])}l_={arrayRows:e,objectRows:function(r,s,l,u){return ua(r[s],this._dimensions[u])},keyedColumns:e,original:function(r,s,l,u){var f=r&&(r.value==null?r:r.value);return ua(f instanceof Array?f[u]:f,this._dimensions[u])},typedArray:function(r,s,l,u){return r[u]}}}(),n}(),cp=aH;var nH=he(),oH={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},f_=function(){function n(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(e){if(this._dimOmitted=e,!e)return;if(!this._dimNameMap)this._dimNameMap=c_(this.source)},n.prototype.getSourceDimensionIndex=function(e){return te(this._dimNameMap.get(e),-1)},n.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},n.prototype.makeStoreSchema=function(){var e=this._fullDimCount,r=Cd(this.source),s=!p_(e),l="",u=[];for(var f=0,c=0;f<e;f++){var p=void 0,v=void 0,h=void 0,d=this.dimensions[c];if(d&&d.storeDimIndex===f)p=r?d.name:null,v=d.type,h=d.ordinalMeta,c++;else{var m=this.getSourceDimension(f);if(m)p=r?m.name:null,v=m.type}if(u.push({property:p,type:v,ordinalMeta:h}),r&&p!=null&&(!d||!d.isCalculationCoord))l+=s?p.replace(/\`/g,"`1").replace(/\$/g,"`2"):p;if(l+="$",l+=oH[v]||"f",h)l+=h.uid;l+="$"}var g=this.source,y=[g.seriesLayoutBy,g.startIndex,l].join("$$");return{dimensions:u,hash:y}},n.prototype.makeOutputDimensionNames=function(){var e=[];for(var r=0,s=0;r<this._fullDimCount;r++){var l=void 0,u=this.dimensions[s];if(u&&u.storeDimIndex===r){if(!u.isCalculationCoord)l=u.name;s++}else{var f=this.getSourceDimension(r);if(f)l=f.name}e.push(l)}return e},n.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},n}();function Ld(n){return n instanceof f_}function pp(n){var e=re();for(var r=0;r<(n||[]).length;r++){var s=n[r],l=ue(s)?s.name:s;if(l!=null&&e.get(l)==null)e.set(l,r)}return e}function c_(n){var e=nH(n);return e.dimNameMap||(e.dimNameMap=pp(n.dimensionsDefine))}function p_(n){return n>30}var vp=ue,us=W,sH=typeof Int32Array>"u"?Array:Int32Array,lH="e\x00\x00",Iw=-1,uH=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],fH=["_approximateExtent"],Mw,Pd,hp,dp,v_,mp,h_,cH=function(){function n(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 s,l=!1;if(Ld(e))s=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e;else l=!0,s=e;s=s||["x","y"];var u={},f=[],c={},p=!1,v={};for(var h=0;h<s.length;h++){var d=s[h],m=K(d)?new rf({name:d}):!(d instanceof rf)?new rf(d):d,g=m.name;if(m.type=m.type||"float",!m.coordDim)m.coordDim=g,m.coordDimIndex=0;var y=m.otherDims=m.otherDims||{};if(f.push(g),u[g]=m,v[g]!=null)p=!0;if(m.createInvertedIndices)c[g]=[];if(l)m.storeDimIndex=h;if(y.itemName===0)this._nameDimIdx=m.storeDimIndex;if(y.itemId===0)this._idDimIdx=m.storeDimIndex}if(this.dimensions=f,this._dimInfos=u,this._initGetDimensionInfo(p),this.hostModel=r,this._invertedIndicesMap=c,this._dimOmitted){var x=this._dimIdxToName=re();I(f,function(S){x.set(u[S].storeDimIndex,S)})}}return n.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var s=this._dimIdxToName.get(r);if(s!=null)return s;var l=this._schema.getSourceDimension(r);if(l)return l.name},n.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var s=this._getDimInfo(e);return s?s.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},n.prototype._recognizeDimIndex=function(e){if(Te(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},n.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},n.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},n.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(s){return r.hasOwnProperty(s)?r[s]:void 0}:function(s){return r[s]}},n.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},n.prototype.mapDimension=function(e,r){var s=this._dimSummary;if(r==null)return s.encodeFirstDimNotExtra[e];var l=s.encode[e];return l?l[r]:null},n.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,s=r.encode[e];return(s||[]).slice()},n.prototype.getStore=function(){return this._store},n.prototype.initData=function(e,r,s){var l=this,u;if(e instanceof cp)u=e;if(!u){var f=this.dimensions,c=ef(e)||Qt(e)?new Td(e,f.length):e;u=new cp;var p=us(f,function(v){return{type:l._dimInfos[v].type,property:v}});u.initData(c,p,s)}this._store=u,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,u.count()),this._dimSummary=bw(this,this._schema),this.userOutput=this._dimSummary.userOutput},n.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},n.prototype.appendValues=function(e,r){var s=this._store.appendValues(e,r&&r.length),{start:l,end:u}=s,f=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var c=l;c<u;c++){var p=c-l;if(this._nameList[c]=r[p],f)h_(this,c)}},n.prototype._updateOrdinalMeta=function(){var e=this._store,r=this.dimensions;for(var s=0;s<r.length;s++){var l=this._dimInfos[r[s]];if(l.ordinalMeta)e.collectOrdinalMeta(l.storeDimIndex,l.ordinalMeta)}},n.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Oi&&!e.fillStorage},n.prototype._doInit=function(e,r){if(e>=r)return;var s=this._store,l=s.getProvider();this._updateOrdinalMeta();var u=this._nameList,f=this._idList,c=l.getSource().sourceFormat,p=c===br;if(p&&!l.pure){var v=[];for(var h=e;h<r;h++){var d=l.getItem(h,v);if(!this.hasItemOption&>(d))this.hasItemOption=!0;if(d){var m=d.name;if(u[h]==null&&m!=null)u[h]=tr(m,null);var g=d.id;if(f[h]==null&&g!=null)f[h]=tr(g,null)}}}if(this._shouldMakeIdFromName())for(var h=e;h<r;h++)h_(this,h);Mw(this)},n.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},n.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},n.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},n.prototype.setCalculationInfo=function(e,r){vp(e)?V(this._calculationInfo,e):this._calculationInfo[e]=r},n.prototype.getName=function(e){var r=this.getRawIndex(e),s=this._nameList[r];if(s==null&&this._nameDimIdx!=null)s=hp(this,this._nameDimIdx,r);if(s==null)s="";return s},n.prototype._getCategory=function(e,r){var s=this._store.get(e,r),l=this._store.getOrdinalMeta(e);if(l)return l.categories[s];return s},n.prototype.getId=function(e){return Pd(this,this.getRawIndex(e))},n.prototype.count=function(){return this._store.count()},n.prototype.get=function(e,r){var s=this._store,l=this._dimInfos[e];if(l)return s.get(l.storeDimIndex,r)},n.prototype.getByRawIndex=function(e,r){var s=this._store,l=this._dimInfos[e];if(l)return s.getByRawIndex(l.storeDimIndex,r)},n.prototype.getIndices=function(){return this._store.getIndices()},n.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},n.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},n.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},n.prototype.getValues=function(e,r){var s=this,l=this._store;return U(e)?l.getValues(us(e,function(u){return s._getStoreDimIndex(u)}),r):l.getValues(e)},n.prototype.hasValue=function(e){var r=this._dimSummary.dataDimIndicesOnCoord;for(var s=0,l=r.length;s<l;s++)if(isNaN(this._store.get(r[s],e)))return!1;return!0},n.prototype.indexOfName=function(e){for(var r=0,s=this._store.count();r<s;r++)if(this.getName(r)===e)return r;return-1},n.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},n.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},n.prototype.rawIndexOf=function(e,r){var s=e&&this._invertedIndicesMap[e],l=s&&s[r];if(l==null||isNaN(l))return Iw;return l},n.prototype.each=function(e,r,s){if(ie(e))s=r,r=e,e=[];var l=s||this,u=us(dp(e),this._getStoreDimIndex,this);this._store.each(u,l?se(r,l):r)},n.prototype.filterSelf=function(e,r,s){if(ie(e))s=r,r=e,e=[];var l=s||this,u=us(dp(e),this._getStoreDimIndex,this);return this._store=this._store.filter(u,l?se(r,l):r),this},n.prototype.selectRange=function(e){var r=this,s={},l=Me(e),u=[];return I(l,function(f){var c=r._getStoreDimIndex(f);s[c]=e[f],u.push(c)}),this._store=this._store.selectRange(s),this},n.prototype.mapArray=function(e,r,s){if(ie(e))s=r,r=e,e=[];s=s||this;var l=[];return this.each(e,function(){l.push(r&&r.apply(this,arguments))},s),l},n.prototype.map=function(e,r,s,l){var u=s||l||this,f=us(dp(e),this._getStoreDimIndex,this),c=mp(this);return c._store=this._store.map(f,u?se(r,u):r),c},n.prototype.modify=function(e,r,s,l){var u=this,f=s||l||this,c=us(dp(e),this._getStoreDimIndex,this);this._store.modify(c,f?se(r,f):r)},n.prototype.downSample=function(e,r,s,l){var u=mp(this);return u._store=this._store.downSample(this._getStoreDimIndex(e),r,s,l),u},n.prototype.minmaxDownSample=function(e,r){var s=mp(this);return s._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),s},n.prototype.lttbDownSample=function(e,r){var s=mp(this);return s._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),s},n.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},n.prototype.getItemModel=function(e){var r=this.hostModel,s=this.getRawDataItem(e);return new Je(s,r,r&&r.ecModel)},n.prototype.diff=function(e){var r=this;return new Fi(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(s){return Pd(e,s)},function(s){return Pd(r,s)})},n.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},n.prototype.setVisual=function(e,r){if(this._visual=this._visual||{},vp(e))V(this._visual,e);else this._visual[e]=r},n.prototype.getItemVisual=function(e,r){var s=this._itemVisuals[e],l=s&&s[r];if(l==null)return this.getVisual(r);return l},n.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},n.prototype.ensureUniqueItemVisual=function(e,r){var s=this._itemVisuals,l=s[e];if(!l)l=s[e]={};var u=l[r];if(u==null){if(u=this.getVisual(r),U(u))u=u.slice();else if(vp(u))u=V({},u);l[r]=u}return u},n.prototype.setItemVisual=function(e,r,s){var l=this._itemVisuals[e]||{};if(this._itemVisuals[e]=l,vp(r))V(l,r);else l[r]=s},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,r){vp(e)?V(this._layout,e):this._layout[e]=r},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,r,s){this._itemLayouts[e]=s?V(this._itemLayouts[e]||{},r):r},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,r){var s=this.hostModel&&this.hostModel.seriesIndex;Xc(s,this.dataType,e,r),this._graphicEls[e]=r},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,r){I(this._graphicEls,function(s,l){if(s)e&&e.call(r,s,l)})},n.prototype.cloneShallow=function(e){if(!e)e=new n(this._schema?this._schema:us(this.dimensions,this._getDimInfo,this),this.hostModel);return v_(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,r){var s=this[e];if(!ie(s))return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var l=s.apply(this,arguments);return r.apply(this,[l].concat(Zv(arguments)))}},n.internalField=function(){Mw=function(e){var r=e._invertedIndicesMap;I(r,function(s,l){var u=e._dimInfos[l],f=u.ordinalMeta,c=e._store;if(f){s=r[l]=new sH(f.categories.length);for(var p=0;p<s.length;p++)s[p]=Iw;for(var p=0;p<c.count();p++)s[c.get(u.storeDimIndex,p)]=p}})},hp=function(e,r,s){return tr(e._getCategory(r,s),null)},Pd=function(e,r){var s=e._idList[r];if(s==null&&e._idDimIdx!=null)s=hp(e,e._idDimIdx,r);if(s==null)s=lH+r;return s},dp=function(e){if(!U(e))e=e!=null?[e]:[];return e},mp=function(e){var r=new n(e._schema?e._schema:us(e.dimensions,e._getDimInfo,e),e.hostModel);return v_(r,e),r},v_=function(e,r){I(uH.concat(r.__wrappedMethods||[]),function(s){if(r.hasOwnProperty(s))e[s]=r[s]}),e.__wrappedMethods=r.__wrappedMethods,I(fH,function(s){e[s]=le(r[s])}),e._calculationInfo=V({},r._calculationInfo)},h_=function(e,r){var{_nameList:s,_idList:l,_nameDimIdx:u,_idDimIdx:f}=e,c=s[r],p=l[r];if(c==null&&u!=null)s[r]=c=hp(e,u,r);if(p==null&&f!=null)l[r]=p=hp(e,f,r);if(p==null&&c!=null){var v=e._nameRepeatCount,h=v[c]=(v[c]||0)+1;if(p=c,h>1)p+="__ec__"+h;l[r]=p}}}(),n}(),ir=cH;function Ra(n,e){if(!ef(n))n=tf(n);e=e||{};var r=e.coordDimensions||[],s=e.dimensionsDefine||n.dimensionsDefine||[],l=re(),u=[],f=pH(n,r,s,e.dimensionsCount),c=e.canOmitUnusedDimensions&&p_(f),p=s===n.dimensionsDefine,v=p?c_(n):pp(s),h=e.encodeDefine;if(!h&&e.encodeDefaulter)h=e.encodeDefaulter(n,f);var d=re(h),m=new u_(f);for(var g=0;g<m.length;g++)m[g]=-1;function y(M){var P=m[M];if(P<0){var R=s[M],N=ue(R)?R:{name:R},O=new rf,B=N.name;if(B!=null&&v.get(B)!=null)O.name=O.displayName=B;N.type!=null&&(O.type=N.type),N.displayName!=null&&(O.displayName=N.displayName);var F=u.length;return m[M]=F,O.storeDimIndex=M,u.push(O),O}return u[P]}if(!c)for(var g=0;g<f;g++)y(g);d.each(function(M,P){var R=nt(M).slice();if(R.length===1&&!K(R[0])&&R[0]<0){d.set(P,!1);return}var N=d.set(P,[]);I(R,function(O,B){var F=K(O)?v.get(O):O;if(F!=null&&F<f)N[B]=F,S(y(F),P,B)})});var x=0;I(r,function(M){var P,R,N,O;if(K(M))P=M,O={};else{O=M,P=O.name;var B=O.ordinalMeta;O.ordinalMeta=null,O=V({},O),O.ordinalMeta=B,R=O.dimsDef,N=O.otherDims,O.name=O.coordDim=O.coordDimIndex=O.dimsDef=O.otherDims=null}var F=d.get(P);if(F===!1)return;if(F=nt(F),!F.length)for(var z=0;z<(R&&R.length||1);z++){while(x<f&&y(x).coordDim!=null)x++;x<f&&F.push(x++)}I(F,function(H,G){var Z=y(H);if(p&&O.type!=null)Z.type=O.type;if(S(pe(Z,O),P,G),Z.name==null&&R){var Q=R[G];!ue(Q)&&(Q={name:Q}),Z.name=Z.displayName=Q.name,Z.defaultTooltip=Q.defaultTooltip}N&&pe(Z.otherDims,N)})});function S(M,P,R){if(Wh.get(P)!=null)M.otherDims[P]=R;else M.coordDim=P,M.coordDimIndex=R,l.set(P,!0)}var D=e.generateCoord,b=e.generateCoordCount,C=b!=null;b=D?b||1:0;var A=D||"value";function T(M){if(M.name==null)M.name=M.coordDim}if(!c)for(var E=0;E<f;E++){var w=y(E),L=w.coordDim;if(L==null){if(w.coordDim=vH(A,l,C),w.coordDimIndex=0,!D||b<=0)w.isExtraCoord=!0;b--}if(T(w),w.type==null&&(Dd(n,E)===Cr.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null)))w.type="ordinal"}else I(u,function(M){T(M)}),u.sort(function(M,P){return M.storeDimIndex-P.storeDimIndex});return Yu(u,function(M){return M.name},function(M,P){if(P>0)M.name=M.name+(P-1)}),new f_({source:n,dimensions:u,fullDimensionCount:f,dimensionOmitted:c})}function pH(n,e,r,s){var l=Math.max(n.dimensionsDetectedCount||1,e.length,r.length,s||0);return I(e,function(u){var f;if(ue(u)&&(f=u.dimsDef))l=Math.max(l,f.length)}),l}function vH(n,e,r){if(r||e.hasKey(n)){var s=0;while(e.hasKey(n+s))s++;n+=s}return e.set(n,!0),n}var Rd={},d_={},hH=function(){function n(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return n.prototype.create=function(e,r){this._nonSeriesBoxMasterList=s(Rd,!0),this._normalMasterList=s(d_,!1);function s(l,u){var f=[];return I(l,function(c,p){var v=c.create(e,r);f=f.concat(v||[])}),f}},n.prototype.update=function(e,r){I(this._normalMasterList,function(s){s.update&&s.update(e,r)})},n.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},n.register=function(e,r){if(e==="matrix"||e==="calendar"){Rd[e]=r;return}d_[e]=r},n.get=function(e){return d_[e]||Rd[e]},n}();function dH(n){return!!Rd[n]}var mH=1,m_=2;function Lw(n){Pw.set(n.fullType,{getCoord2:void 0}).getCoord2=n.getCoord2}var Pw=re();function Nd(n){var e=n.getShallow("coord",!0),r=mH;if(e==null){var s=Pw.get(n.type);if(s&&s.getCoord2)r=m_,e=s.getCoord2(n)}return{coord:e,from:r}}var nf=0,Od=1,gH=2;function yH(n,e){var r=n.getShallow("coordinateSystem"),s=n.getShallow("coordinateSystemUsage",!0),l=s!=null,u=nf;if(r){var f=n.mainType==="series";if(s==null)s=f?"data":"box";if(s==="data"){if(u=Od,!f)u=nf}else if(s==="box"){if(u=gH,!f&&!dH(r))u=nf}}return{coordSysType:r,kind:u}}function of(n){var{targetModel:e,coordSysType:r,coordSysProvider:s,isDefaultDataCoordSys:l,allowNotFound:u}=n,f=yH(e,!0),{kind:c,coordSysType:p}=f;if(l&&c!==Od)c=Od,p=r;if(c===nf||p!==r)return nf;var v=s(r,e);if(!v)return nf;if(c===Od)e.coordinateSystem=v;else e.boxCoordinateSystem=v;return c}var Rw=function(n,e){var r=e.getReferringComponents(n,gt).models[0];return r&&r.coordinateSystem},co=hH;var xH=function(){function n(e){this.coordSysDims=[],this.axisMap=re(),this.categoryAxisMap=re(),this.coordSysName=e}return n}();function Ow(n){var e=n.get("coordinateSystem"),r=new xH(e),s=_H[e];if(s)return s(n,r,r.axisMap,r.categoryAxisMap),r}var _H={cartesian2d:function(n,e,r,s){var l=n.getReferringComponents("xAxis",gt).models[0],u=n.getReferringComponents("yAxis",gt).models[0];if(e.coordSysDims=["x","y"],r.set("x",l),r.set("y",u),sf(l))s.set("x",l),e.firstCategoryDimIndex=0;if(sf(u))s.set("y",u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1)},singleAxis:function(n,e,r,s){var l=n.getReferringComponents("singleAxis",gt).models[0];if(e.coordSysDims=["single"],r.set("single",l),sf(l))s.set("single",l),e.firstCategoryDimIndex=0},polar:function(n,e,r,s){var l=n.getReferringComponents("polar",gt).models[0],u=l.findAxisModel("radiusAxis"),f=l.findAxisModel("angleAxis");if(e.coordSysDims=["radius","angle"],r.set("radius",u),r.set("angle",f),sf(u))s.set("radius",u),e.firstCategoryDimIndex=0;if(sf(f))s.set("angle",f),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1)},geo:function(n,e,r,s){e.coordSysDims=["lng","lat"]},parallel:function(n,e,r,s){var l=n.ecModel,u=l.getComponent("parallel",n.get("parallelIndex")),f=e.coordSysDims=u.dimensions.slice();I(u.parallelAxisIndex,function(c,p){var v=l.getComponent("parallelAxis",c),h=f[p];if(r.set(h,v),sf(v)){if(s.set(h,v),e.firstCategoryDimIndex==null)e.firstCategoryDimIndex=p}})},matrix:function(n,e,r,s){var l=n.getReferringComponents("matrix",gt).models[0];e.coordSysDims=["x","y"];var u=l.getDimensionModel("x"),f=l.getDimensionModel("y");r.set("x",u),r.set("y",f),s.set("x",u),s.set("y",f)}};function sf(n){return n.get("type")==="category"}function Nw(n,e,r){r=r||{};var s=r.byIndex,l=r.stackedCoordDimension,u,f,c;if(SH(e))u=e;else f=e.schema,u=f.dimensions,c=e.store;var p=!!(n&&n.get("stack")),v,h,d,m,g=!0;function y(A){return A.type!=="ordinal"&&A.type!=="time"}if(I(u,function(A,T){if(K(A))u[T]=A={name:A};if(!y(A))g=!1}),I(u,function(A,T){if(p&&!A.isExtraCoord){if(!s&&!v&&A.ordinalMeta)v=A;if(!h&&y(A)&&(!g||A.coordDim!=="x"&&A.coordDim!=="angle")&&(!l||l===A.coordDim))h=A}}),h&&!s&&!v)s=!0;if(h){if(d="__\x00ecstackresult_"+n.id,m="__\x00ecstackedover_"+n.id,v)v.createInvertedIndices=!0;var x=h.coordDim,S=h.type,D=0;I(u,function(A){if(A.coordDim===x)D++});var b={name:d,coordDim:x,coordDimIndex:D,type:S,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:u.length},C={name:m,coordDim:m,coordDimIndex:D+1,type:S,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:u.length+1};if(f){if(c)b.storeDimIndex=c.ensureCalculationDimension(m,S),C.storeDimIndex=c.ensureCalculationDimension(d,S);f.appendCalculationDimension(b),f.appendCalculationDimension(C)}else u.push(b),u.push(C)}return{stackedDimension:h&&h.name,stackedByDimension:v&&v.name,isStackedByIndex:s,stackedOverDimension:m,stackResultDimension:d}}function SH(n){return!Ld(n.schema)}function zi(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function kd(n,e){return zi(n,e)?n.getCalculationInfo("stackResultDimension"):e}function DH(n,e){var r=n.get("coordinateSystem"),s=co.get(r),l;if(e&&e.coordSysDims)l=W(e.coordSysDims,function(u){var f={name:u},c=e.axisMap.get(u);if(c){var p=c.get("type");f.type=Bl(p)}return f});if(!l)l=s&&(s.getDimensionsInfo?s.getDimensionsInfo():s.dimensions.slice())||["x","y"];return l}function bH(n,e,r){var s,l;if(r&&I(n,function(u,f){var c=u.coordDim,p=r.categoryAxisMap.get(c);if(p){if(s==null)s=f;if(u.ordinalMeta=p.getOrdinalMeta(),e)u.createInvertedIndices=!0}if(u.otherDims.itemName!=null)l=!0}),!l&&s!=null)n[s].otherDims.itemName=0;return s}function CH(n,e,r){r=r||{};var s=e.getSourceManager(),l,u=!1;if(n)u=!0,l=tf(n);else l=s.getSource(),u=l.sourceFormat===br;var f=Ow(e),c=DH(e,f),p=r.useEncodeDefaulter,v=ie(p)?p:p?Ae(xd,c,e):null,h={coordDimensions:c,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:v,canOmitUnusedDimensions:!u},d=Ra(l,h),m=bH(d.dimensions,r.createInvertedIndices,f),g=!u?s.getSharedDataStore(d):null,y=Nw(e,{schema:d,store:g}),x=new ir(d,e);x.setCalculationInfo(y);var S=m!=null&&AH(l)?function(D,b,C,A){return A===m?C:this.defaultDimValueGetter(D,b,C,A)}:null;return x.hasItemOption=!1,x.initData(u?l:g,null,S),x}function AH(n){if(n.sourceFormat===br){var e=TH(n.data||[]);return!U(eo(e))}}function TH(n){var e=0;while(e<n.length&&n[e]==null)e++;return n[e]}var Vr=CH;var EH=Math.round(Math.random()*10);function dn(n){return[n||"",EH++].join("_")}function kw(n){var e={};n.registerSubTypeDefaulter=function(r,s){var l=si(r);e[l.main]=s},n.determineSubType=function(r,s){var l=s.type;if(!l){var u=si(r).main;if(n.hasSubTypes(r)&&e[u])l=e[u](s)}return l}}function Bw(n,e){n.topologicalTravel=function(u,f,c,p){if(!u.length)return;var v=r(f),{graph:h,noEntryList:d}=v,m={};I(u,function(b){m[b]=!0});while(d.length){var g=d.pop(),y=h[g],x=!!m[g];if(x)c.call(p,g,y.originalDeps.slice()),delete m[g];I(y.successor,x?D:S)}I(m,function(){var b="";throw Error(b)});function S(b){if(h[b].entryCount--,h[b].entryCount===0)d.push(b)}function D(b){m[b]=!0,S(b)}};function r(u){var f={},c=[];return I(u,function(p){var v=s(f,p),h=v.originalDeps=e(p),d=l(h,u);if(v.entryCount=d.length,v.entryCount===0)c.push(p);I(d,function(m){if(be(v.predecessor,m)<0)v.predecessor.push(m);var g=s(f,m);if(be(g.successor,m)<0)g.successor.push(p)})}),{graph:f,noEntryList:c}}function s(u,f){if(!u[f])u[f]={predecessor:[],successor:[]};return u[f]}function l(u,f){var c=[];return I(u,function(p){be(f,p)>=0&&c.push(p)}),c}}function yi(n,e){return Re(Re({},n,!0),e,!0)}var wH=Math.log(2);function y_(n,e,r,s,l,u){var f=s+"-"+l,c=n.length;if(u.hasOwnProperty(f))return u[f];if(e===1){var p=Math.round(Math.log((1<<c)-1&~l)/wH);return n[r][p]}var v=s|1<<r,h=r+1;while(s&1<<h)h++;var d=0;for(var m=0,g=0;m<c;m++){var y=1<<m;if(!(y&l))d+=(g%2?-1:1)*n[r][m]*y_(n,e-1,h,v,l|y,u),g++}return u[f]=d,d}function x_(n,e){var r=[[n[0],n[1],1,0,0,0,-e[0]*n[0],-e[0]*n[1]],[0,0,0,n[0],n[1],1,-e[1]*n[0],-e[1]*n[1]],[n[2],n[3],1,0,0,0,-e[2]*n[2],-e[2]*n[3]],[0,0,0,n[2],n[3],1,-e[3]*n[2],-e[3]*n[3]],[n[4],n[5],1,0,0,0,-e[4]*n[4],-e[4]*n[5]],[0,0,0,n[4],n[5],1,-e[5]*n[4],-e[5]*n[5]],[n[6],n[7],1,0,0,0,-e[6]*n[6],-e[6]*n[7]],[0,0,0,n[6],n[7],1,-e[7]*n[6],-e[7]*n[7]]],s={},l=y_(r,8,0,0,0,s);if(l===0)return;var u=[];for(var f=0;f<8;f++)for(var c=0;c<8;c++)u[c]==null&&(u[c]=0),u[c]+=((f+c)%2?-1:1)*y_(r,7,f===0?1:0,1<<f,1<<c,s)/l*e[f];return function(p,v,h){var d=v*u[6]+h*u[7]+1;p[0]=(v*u[0]+h*u[1]+u[2])/d,p[1]=(v*u[3]+h*u[4]+u[5])/d}}var Bd="___zrEVENTSAVED",__=[];function Fw(n,e,r,s,l){return Fd(__,e,s,l,!0)&&Fd(n,r,__[0],__[1])}function zw(n,e){n&&r(n),e&&r(e);function r(s){var l=s[Bd];if(l)l.clearMarkers&&l.clearMarkers(),delete s[Bd]}}function Fd(n,e,r,s,l){if(e.getBoundingClientRect&&Ue.domSupported&&!S_(e)){var u=e[Bd]||(e[Bd]={}),f=IH(e,u),c=MH(f,u,l);if(c)return c(n,r,s),!0}return!1}function IH(n,e){var r=e.markers;if(r)return r;r=e.markers=[];var s=["left","right"],l=["top","bottom"];for(var u=0;u<4;u++){var f=document.createElement("div"),c=f.style,p=u%2,v=(u>>1)%2;c.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",s[p]+":0",l[v]+":0",s[1-p]+":auto",l[1-v]+":auto",""].join("!important;"),n.appendChild(f),r.push(f)}return e.clearMarkers=function(){I(r,function(h){h.parentNode&&h.parentNode.removeChild(h)})},r}function MH(n,e,r){var s=r?"invTrans":"trans",l=e[s],u=e.srcCoords,f=[],c=[],p=!0;for(var v=0;v<4;v++){var h=n[v].getBoundingClientRect(),d=2*v,{left:m,top:g}=h;f.push(m,g),p=p&&u&&m===u[d]&&g===u[d+1],c.push(n[v].offsetLeft,n[v].offsetTop)}return p&&l?l:(e.srcCoords=f,e[s]=r?x_(c,f):x_(f,c))}function S_(n){return n.nodeName.toUpperCase()==="CANVAS"}var LH=/([&<>"'])/g,PH={"&":"&","<":"<",">":">",'"':""","'":"'"};function dr(n){return n==null?"":(n+"").replace(LH,function(e,r){return PH[r]})}var Vw={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 Uw={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Vd="ZH",D_="EN",lf=D_,zd={},b_={},Ud=!Ue.domSupported?lf:function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage||lf).toUpperCase();return n.indexOf(Vd)>-1?Vd:lf}();function Gw(n,e){n=n.toUpperCase(),b_[n]=new Je(e),zd[n]=e}function Hw(n){if(K(n)){var e=zd[n.toUpperCase()]||{};if(n===Vd||n===D_)return le(e);else return Re(le(e),le(zd[lf]),!1)}else return Re(le(n),le(zd[lf]),!1)}function gp(n){return b_[n]}function Ww(){return b_[lf]}Gw(D_,Vw);Gw(Vd,Uw);var RH=null;function Kt(){return RH}function Gd(n,e){var r=Kt(),{breakOption:s,breakParsed:l}=e;if(!l&&r)l=r.parseAxisBreakOption(s,n);return l}function Fl(n){var e=n.brk;return e?e.breaks:[]}function fs(n){var e=n.brk;return e?e.hasBreaks():!1}var Yd=1000,Xd=Yd*60,uf=Xd*60,Vi=uf*24,C_=Vi*365,OH={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Wd={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},NH="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Hd="{yyyy}-{MM}-{dd}",A_={year:"{yyyy}",month:"{yyyy}-{MM}",day:Hd,hour:Hd+" "+Wd.hour,minute:Hd+" "+Wd.minute,second:Hd+" "+Wd.second,millisecond:NH},xi=["year","month","day","hour","minute","second","millisecond"],Yw=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Xw(n){return!K(n)&&!ie(n)?kH(n):n}function kH(n){n=n||{};var e={},r=!0;return I(xi,function(s){r&&(r=n[s]==null)}),I(xi,function(s,l){var u=n[s];e[s]={};var f=null;for(var c=l;c>=0;c--){var p=xi[c],v=ue(u)&&!U(u)?u[p]:u,h=void 0;if(U(v))h=v.slice(),f=h[0]||"";else if(K(v))f=v,h=[f];else{if(f==null)f=Wd[s];else if(!OH[p].test(f))f=e[p][p][0]+" "+f;if(h=[f],r)h[1]="{primary|"+f+"}"}e[s][p]=h}}),e}function po(n,e){return n+="","0000".substr(0,e-n.length)+n}function ff(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function Zw(n){return n===ff(n)}function Kw(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function zl(n,e,r,s){var l=ia(n),u=l[T_(r)](),f=l[Kd(r)]()+1,c=Math.floor((f-1)/3)+1,p=l[qd(r)](),v=l["get"+(r?"UTC":"")+"Day"](),h=l[jd(r)](),d=(h-1)%12+1,m=l[$d(r)](),g=l[Qd(r)](),y=l[Jd(r)](),x=h>=12?"pm":"am",S=x.toUpperCase(),D=s instanceof Je?s:gp(s||Ud)||Ww(),b=D.getModel("time"),C=b.get("month"),A=b.get("monthAbbr"),T=b.get("dayOfWeek"),E=b.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,x+"").replace(/{A}/g,S+"").replace(/{yyyy}/g,u+"").replace(/{yy}/g,po(u%100+"",2)).replace(/{Q}/g,c+"").replace(/{MMMM}/g,C[f-1]).replace(/{MMM}/g,A[f-1]).replace(/{MM}/g,po(f,2)).replace(/{M}/g,f+"").replace(/{dd}/g,po(p,2)).replace(/{d}/g,p+"").replace(/{eeee}/g,T[v]).replace(/{ee}/g,E[v]).replace(/{e}/g,v+"").replace(/{HH}/g,po(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,po(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,po(m,2)).replace(/{m}/g,m+"").replace(/{ss}/g,po(g,2)).replace(/{s}/g,g+"").replace(/{SSS}/g,po(y,3)).replace(/{S}/g,y+"")}function qw(n,e,r,s,l){var u=null;if(K(r))u=r;else if(ie(r)){var f={time:n.time,level:n.time?n.time.level:0},c=Kt();if(c)c.makeAxisLabelFormatterParamBreak(f,n.break);u=r(n.value,e,f)}else{var p=n.time;if(p){var v=r[p.lowerTimeUnit][p.upperTimeUnit];u=v[Math.min(p.level,v.length-1)]||""}else{var h=Vl(n.value,l);u=r[h][h][0]}}return zl(new Date(n.value),u,l,s)}function Vl(n,e){var r=ia(n),s=r[Kd(e)]()+1,l=r[qd(e)](),u=r[jd(e)](),f=r[$d(e)](),c=r[Qd(e)](),p=r[Jd(e)](),v=p===0,h=v&&c===0,d=h&&f===0,m=d&&u===0,g=m&&l===1,y=g&&s===1;if(y)return"year";else if(g)return"month";else if(m)return"day";else if(d)return"hour";else if(h)return"minute";else if(v)return"second";else return"millisecond"}function Zd(n,e,r){switch(e){case"year":n[E_(r)](0);case"month":n[w_(r)](1);case"day":n[I_(r)](0);case"hour":n[M_(r)](0);case"minute":n[L_(r)](0);case"second":n[P_(r)](0)}return n}function T_(n){return n?"getUTCFullYear":"getFullYear"}function Kd(n){return n?"getUTCMonth":"getMonth"}function qd(n){return n?"getUTCDate":"getDate"}function jd(n){return n?"getUTCHours":"getHours"}function $d(n){return n?"getUTCMinutes":"getMinutes"}function Qd(n){return n?"getUTCSeconds":"getSeconds"}function Jd(n){return n?"getUTCMilliseconds":"getMilliseconds"}function jw(n){return n?"setUTCFullYear":"setFullYear"}function E_(n){return n?"setUTCMonth":"setMonth"}function w_(n){return n?"setUTCDate":"setDate"}function I_(n){return n?"setUTCHours":"setHours"}function M_(n){return n?"setUTCMinutes":"setMinutes"}function L_(n){return n?"setUTCSeconds":"setSeconds"}function P_(n){return n?"setUTCMilliseconds":"setMilliseconds"}function O_(n){if(!Vc(n))return K(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function em(n,e){if(n=(n||"").toLowerCase().replace(/-(.)/g,function(r,s){return s.toUpperCase()}),e&&n)n=n.charAt(0).toUpperCase()+n.slice(1);return n}var mn=Bo;function tm(n,e,r){var s="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function l(h){return h&&Mr(h)?h:"-"}function u(h){return vr(h)}var f=e==="time",c=n instanceof Date;if(f||c){var p=f?ia(n):n;if(!isNaN(+p))return zl(p,s,r);else if(c)return"-"}if(e==="ordinal")return xc(n)?l(n):Te(n)?u(n)?n+"":"-":"-";var v=aa(n);return u(v)?O_(v):xc(n)?l(n):typeof n==="boolean"?n+"":"-"}var $w=["a","b","c","d","e","f","g"],R_=function(n,e){return"{"+n+(e==null?"":e)+"}"};function rm(n,e,r){if(!U(e))e=[e];var s=e.length;if(!s)return"";var l=e[0].$vars||[];for(var u=0;u<l.length;u++){var f=$w[u];n=n.replace(R_(f),R_(f,0))}for(var c=0;c<s;c++)for(var p=0;p<l.length;p++){var v=e[c][l[p]];n=n.replace(R_($w[p],c),r?dr(v):v)}return n}function Qw(n,e,r){return I(e,function(s,l){n=n.replace("{"+l+"}",r?dr(s):s)}),n}function Jw(n,e){var r=K(n)?{color:n,extraCssText:e}:n||{},{color:s,type:l}=r;e=r.extraCssText;var u=r.renderMode||"html";if(!s)return"";if(u==="html")return l==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+dr(s)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+dr(s)+";"+(e||"")+'"></span>';else{var f=r.markerId||"markerX";return{renderMode:u,content:"{"+f+"|} ",style:l==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:s}:{width:10,height:10,borderRadius:5,backgroundColor:s}}}}function Oa(n,e){return e=e||"transparent",K(n)?n:ue(n)?n.colorStops&&(n.colorStops[0]||{}).color||e:e}function Ul(n,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=n}else window.open(n,e)}var am=I,BH=["left","right","top","bottom","width","height"],Gl=[["width","left","right"],["height","top","bottom"]];function N_(n,e,r,s,l){var u=0,f=0;if(s==null)s=1/0;if(l==null)l=1/0;var c=0;e.eachChild(function(p,v){var h=p.getBoundingRect(),d=e.childAt(v+1),m=d&&d.getBoundingRect(),g,y;if(n==="horizontal"){var x=h.width+(m?-m.x+h.x:0);if(g=u+x,g>s||p.newline)u=0,g=x,f+=c+r,c=h.height;else c=Math.max(c,h.height)}else{var S=h.height+(m?-m.y+h.y:0);if(y=f+S,y>l||p.newline)u+=c+r,f=0,y=S,c=h.width;else c=Math.max(c,h.width)}if(p.newline)return;p.x=u,p.y=f,p.markRedraw(),n==="horizontal"?u=g+r:f=y+r})}var vo=N_,kie=Ae(N_,"vertical"),Bie=Ae(N_,"horizontal");function eI(n,e){return{left:n.getShallow("left",e),top:n.getShallow("top",e),right:n.getShallow("right",e),bottom:n.getShallow("bottom",e),width:n.getShallow("width",e),height:n.getShallow("height",e)}}function FH(n,e){var r=Tt(n,e,{enableLayoutOnlyByCenter:!0}),s=n.getBoxLayoutParams(),l,u;if(r.type===yp.point)u=r.refPoint,l=ht(s,{width:e.getWidth(),height:e.getHeight()});else{var f=n.get("center"),c=U(f)?f:[f,f];l=ht(s,r.refContainer),u=r.boxCoordFrom===m_?r.refPoint:[ee(c[0],l.width)+l.x,ee(c[1],l.height)+l.y]}return{viewRect:l,center:u}}function tI(n,e){var r=FH(n,e),{viewRect:s,center:l}=r,u=n.get("radius");if(!U(u))u=[0,u];var f=ee(s.width,e.getWidth()),c=ee(s.height,e.getHeight()),p=Math.min(f,c),v=ee(u[0],p/2),h=ee(u[1],p/2);return{cx:l[0],cy:l[1],r0:v,r:h,viewRect:s}}function ht(n,e,r){r=mn(r||0);var{width:s,height:l}=e,u=ee(n.left,s),f=ee(n.top,l),c=ee(n.right,s),p=ee(n.bottom,l),v=ee(n.width,s),h=ee(n.height,l),d=r[2]+r[0],m=r[1]+r[3],g=n.aspect;if(isNaN(v))v=s-c-m-u;if(isNaN(h))h=l-p-d-f;if(g!=null){if(isNaN(v)&&isNaN(h))if(g>s/l)v=s*0.8;else h=l*0.8;if(isNaN(v))v=g*h;if(isNaN(h))h=v/g}if(isNaN(u))u=s-c-v-m;if(isNaN(f))f=l-p-h-d;switch(n.left||n.right){case"center":u=s/2-v/2-r[3];break;case"right":u=s-v-m;break}switch(n.top||n.bottom){case"middle":case"center":f=l/2-h/2-r[0];break;case"bottom":f=l-h-d;break}if(u=u||0,f=f||0,isNaN(v))v=s-m-u-(c||0);if(isNaN(h))h=l-d-f-(p||0);var y=new De((e.x||0)+u+r[3],(e.y||0)+f+r[0],v,h);return y.margin=r,y}function rI(n,e,r){var s=n.getShallow("preserveAspect",!0);if(!s)return e;var l=e.width/e.height;if(Math.abs(Math.atan(r)-Math.atan(l))<0.000000001)return e;var u=n.getShallow("preserveAspectAlign",!0),f=n.getShallow("preserveAspectVerticalAlign",!0),c={width:e.width,height:e.height},p=s==="cover";if(l>r&&!p||l<r&&p)c.width=e.height*r,u==="left"?c.left=0:u==="right"?c.right=0:c.left="center";else c.height=e.width/r,f==="top"?c.top=0:f==="bottom"?c.bottom=0:c.top="middle";return ht(c,e)}var yp={rect:1,point:2};function Tt(n,e,r){var s,l,u,f=n.boxCoordinateSystem,c;if(f){var p=Nd(n),{coord:v,from:h}=p;if(f.dataToLayout){u=yp.rect,c=h;var d=f.dataToLayout(v);s=d.contentRect||d.rect}else if(r&&r.enableLayoutOnlyByCenter&&f.dataToPoint)u=yp.point,c=h,l=f.dataToPoint(v)}if(u==null)u=yp.rect;if(u===yp.rect){if(!s)s={x:0,y:0,width:e.getWidth(),height:e.getHeight()};l=[s.x+s.width/2,s.y+s.height/2]}return{type:u,refContainer:s,refPoint:l,boxCoordFrom:c}}function nm(n,e,r,s,l,u){var f=!l||!l.hv||l.hv[0],c=!l||!l.hv||l.hv[1],p=l&&l.boundingMode||"all";if(u=u||n,u.x=n.x,u.y=n.y,!f&&!c)return!1;var v;if(p==="raw")v=n.type==="group"?new De(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(v=n.getBoundingRect(),n.needLocalTransform()){var h=n.getLocalTransform();v=v.clone(),v.applyTransform(h)}var d=ht(pe({width:v.width,height:v.height},e),r,s),m=f?d.x-v.x:0,g=c?d.y-v.y:0;if(p==="raw")u.x=m,u.y=g;else u.x+=m,u.y+=g;if(u===n)n.markRedraw();return!0}function iI(n,e){return n[Gl[e][0]]!=null||n[Gl[e][1]]!=null&&n[Gl[e][2]]!=null}function cs(n){var e=n.layoutMode||n.constructor.layoutMode;return ue(e)?e:e?{type:e}:null}function Qr(n,e,r){var s=r&&r.ignoreSize;!U(s)&&(s=[s,s]);var l=f(Gl[0],0),u=f(Gl[1],1);p(Gl[0],n,l),p(Gl[1],n,u);function f(v,h){var d={},m=0,g={},y=0,x=2;if(am(v,function(b){g[b]=n[b]}),am(v,function(b){bt(e,b)&&(d[b]=g[b]=e[b]),c(d,b)&&m++,c(g,b)&&y++}),s[h]){if(c(e,v[1]))g[v[2]]=null;else if(c(e,v[2]))g[v[1]]=null;return g}if(y===x||!m)return g;else if(m>=x)return d;else{for(var S=0;S<v.length;S++){var D=v[S];if(!bt(d,D)&&bt(n,D)){d[D]=n[D];break}}return d}}function c(v,h){return v[h]!=null&&v[h]!=="auto"}function p(v,h,d){am(v,function(m){h[m]=d[m]})}}function _i(n){return zH({},n)}function zH(n,e){return e&&n&&am(BH,function(r){bt(e,r)&&(n[r]=e[r])}),n}var VH=he(),cf=function(n){k(e,n);function e(r,s,l){var u=n.call(this,r,s,l)||this;return u.uid=dn("ec_cpt_model"),u}return e.prototype.init=function(r,s,l){this.mergeDefaultAndTheme(r,l)},e.prototype.mergeDefaultAndTheme=function(r,s){var l=cs(this),u=l?_i(r):{},f=s.getTheme();if(Re(r,f.get(this.mainType)),Re(r,this.getDefaultOption()),l)Qr(r,u,l)},e.prototype.mergeOption=function(r,s){Re(this.option,r,!0);var l=cs(this);if(l)Qr(this.option,r,l)},e.prototype.optionUpdated=function(r,s){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!aA(r))return r.defaultOption;var s=VH(this);if(!s.defaultOption){var l=[],u=r;while(u){var f=u.prototype.defaultOption;f&&l.push(f),u=u.superClass}var c={};for(var p=l.length-1;p>=0;p--)c=Re(c,l[p],!0);s.defaultOption=c}return s.defaultOption},e.prototype.getReferringComponents=function(r,s){var l=r+"Index",u=r+"Id";return fn(this.ecModel,r,{index:this.get(l,!0),id:this.get(u,!0)},s)},e.prototype.getBoxLayoutParams=function(){return eI(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}(Je);Kv(cf,Je);Vo(cf);kw(cf);Bw(cf,UH);function UH(n){var e=[];if(I(cf.getClassesByMainType(n),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=W(e,function(r){return si(r).main}),n!=="dataset"&&be(e,"dataset")<=0)e.unshift("dataset");return e}var Fe=cf;var aI=he(),GH=he(),xp=function(){function n(){}return n.prototype.getColorFromPalette=function(e,r,s){var l=nt(this.get("color",!0)),u=this.get("colorLayer",!0);return nI(this,aI,l,u,e,r,s)},n.prototype.clearColorPalette=function(){WH(this,aI)},n}();function _p(n,e,r,s){var l=nt(n.get(["aria","decal","decals"]));return nI(n,GH,l,null,e,r,s)}function HH(n,e){var r=n.length;for(var s=0;s<r;s++)if(n[s].length>e)return n[s];return n[r-1]}function nI(n,e,r,s,l,u,f){u=u||n;var c=e(u),p=c.paletteIdx||0,v=c.paletteNameMap=c.paletteNameMap||{};if(v.hasOwnProperty(l))return v[l];var h=f==null||!s?r:HH(s,f);if(h=h||r,!h||!h.length)return;var d=h[p];if(l)v[l]=d;return c.paletteIdx=(p+1)%h.length,d}function WH(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var YH=/\{@(.+?)\}/g,Sp=function(){function n(){}return n.prototype.getDataParams=function(e,r){var s=this.getData(r),l=this.getRawValue(e,r),u=s.getRawIndex(e),f=s.getName(e),c=s.getRawDataItem(e),p=s.getItemVisual(e,"style"),v=p&&p[s.getItemVisual(e,"drawType")||"fill"],h=p&&p.stroke,d=this.mainType,m=d==="series",g=s.userOutput&&s.userOutput.get();return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:m?this.subType:null,seriesIndex:this.seriesIndex,seriesId:m?this.id:null,seriesName:m?this.name:null,name:f,dataIndex:u,data:c,dataType:r,value:l,color:v,borderColor:h,dimensionNames:g?g.fullDimensions:null,encode:g?g.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(e,r,s,l,u,f){r=r||"normal";var c=this.getData(s),p=this.getDataParams(e,s);if(f)p.value=f.interpolatedValue;if(l!=null&&U(p.value))p.value=p.value[l];if(!u){var v=c.getItemModel(e);u=v.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ie(u))return p.status=r,p.dimensionIndex=l,u(p);else if(K(u)){var h=rm(u,p);return h.replace(YH,function(d,m){var g=m.length,y=m;if(y.charAt(0)==="["&&y.charAt(g-1)==="]")y=+y.slice(1,g-1);var x=fo(c,e,y);if(f&&U(f.interpolatedValue)){var S=c.getDimensionIndex(y);if(S>=0)x=f.interpolatedValue[S]}return x!=null?x+"":""})}},n.prototype.getRawValue=function(e,r){return fo(this.getData(r),e)},n.prototype.formatTooltip=function(e,r,s){return},n}();function k_(n){var e,r;if(ue(n)){if(n.type)r=n}else e=n;return{text:e,frag:r}}function ps(n){return new XH(n)}var XH=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var r=this._upstream,s=e&&e.skip;if(this._dirty&&r){var l=this.context;l.data=l.outputData=r.context.outputData}if(this.__pipeline)this.__pipeline.currentTask=this;var u;if(this._plan&&!s)u=this._plan(this.context);var f=h(this._modBy),c=this._modDataCount||0,p=h(e&&e.modBy),v=e&&e.modDataCount||0;if(f!==p||c!==v)u="reset";function h(b){return!(b>=1)&&(b=1),b}var d;if(this._dirty||u==="reset")this._dirty=!1,d=this._doReset(s);this._modBy=p,this._modDataCount=v;var m=e&&e.step;if(r)this._dueEnd=r._outputDueEnd;else this._dueEnd=this._count?this._count(this.context):1/0;if(this._progress){var g=this._dueIndex,y=Math.min(m!=null?this._dueIndex+m:1/0,this._dueEnd);if(!s&&(d||g<y)){var x=this._progress;if(U(x))for(var S=0;S<x.length;S++)this._doProgress(x[S],g,y,p,v);else this._doProgress(x,g,y,p,v)}this._dueIndex=y;var D=this._settedOutputEnd!=null?this._settedOutputEnd:y;this._outputDueEnd=D}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},n.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},n.prototype._doProgress=function(e,r,s,l,u){oI.reset(r,s,l,u),this._callingProgress=e,this._callingProgress({start:r,end:s,count:s-r,next:oI.next},this.context)},n.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,s;if(!e&&this._reset){if(r=this._reset(this.context),r&&r.progress)s=r.forceFirstProgress,r=r.progress;if(U(r)&&!r.length)r=null}this._progress=r,this._modBy=this._modDataCount=null;var l=this._downstream;return l&&l.dirty(),s},n.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},n.prototype.pipe=function(e){if(this._downstream!==e||this._dirty)this._downstream=e,e._upstream=this,e.dirty()},n.prototype.dispose=function(){if(this._disposed)return;this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0},n.prototype.getUpstream=function(){return this._upstream},n.prototype.getDownstream=function(){return this._downstream},n.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},n}();var oI=function(){var n,e,r,s,l,u={reset:function(p,v,h,d){e=p,n=v,r=h,s=d,l=Math.ceil(s/r),u.next=r>1&&s>0?c:f}};return u;function f(){return e<n?e++:null}function c(){var p=e%l*r+Math.ceil(e/l),v=e>=n?null:p<s?p:e;return e++,v}}();var ZH=function(){function n(){}return n.prototype.getRawData=function(){throw Error("not supported")},n.prototype.getRawDataItem=function(e){throw Error("not supported")},n.prototype.cloneRawData=function(){return},n.prototype.getDimensionInfo=function(e){return},n.prototype.cloneAllDimensionInfo=function(){return},n.prototype.count=function(){return},n.prototype.retrieveValue=function(e,r){return},n.prototype.retrieveValueFromItem=function(e,r){return},n.prototype.convertValue=function(e,r){return ua(e,r)},n}();function KH(n,e){var r=new ZH,s=n.data,l=r.sourceFormat=n.sourceFormat,u=n.startIndex,f="";if(n.seriesLayoutBy!==jr)rt(f);var c=[],p={},v=n.dimensionsDefine;if(v)I(v,function(x,S){var D=x.name,b={index:S,name:D,displayName:x.displayName};if(c.push(b),D!=null){var C="";if(bt(p,D))rt(C);p[D]=b}});else for(var h=0;h<n.dimensionsDetectedCount;h++)c.push({index:h});var d=i_(l,jr);if(e.__isBuiltIn)r.getRawDataItem=function(x){return d(s,u,c,x)},r.getRawData=se(qH,null,n);r.cloneRawData=se(jH,null,n);var m=a_(l,jr);r.count=se(m,null,s,u,c);var g=n_(l);r.retrieveValue=function(x,S){var D=d(s,u,c,x);return y(D,S)};var y=r.retrieveValueFromItem=function(x,S){if(x==null)return;var D=c[S];if(D)return g(x,S,D.name)};return r.getDimensionInfo=se($H,null,c,p),r.cloneAllDimensionInfo=se(QH,null,c),r}function qH(n){var e=n.sourceFormat;if(!B_(e)){var r="";rt(r)}return n.data}function jH(n){var{sourceFormat:e,data:r}=n;if(!B_(e)){var s="";rt(s)}if(e===Ht){var l=[];for(var u=0,f=r.length;u<f;u++)l.push(r[u].slice());return l}else if(e===Tr){var l=[];for(var u=0,f=r.length;u<f;u++)l.push(V({},r[u]));return l}}function $H(n,e,r){if(r==null)return;if(Te(r)||!isNaN(r)&&!bt(e,r))return n[r];else if(bt(e,r))return e[r]}function QH(n){return le(n)}var sI=re();function lI(n){n=le(n);var e=n.type,r="";if(!e)rt(r);var s=e.split(":");if(s.length!==2)rt(r);var l=!1;if(s[0]==="echarts")e=s[1],l=!0;n.__isBuiltIn=l,sI.set(e,n)}function uI(n,e,r){var s=nt(n),l=s.length,u="";if(!l)rt(u);for(var f=0,c=l;f<c;f++){var p=s[f];if(e=JH(p,e,r,l===1?null:f),f!==c-1)e.length=Math.max(e.length,1)}return e}function JH(n,e,r,s){var l="";if(!e.length)rt(l);if(!ue(n))rt(l);var u=n.type,f=sI.get(u);if(!f)rt(l);var c=W(e,function(h){return KH(h,f)}),p=nt(f.transform({upstream:c[0],upstreamList:c,config:le(n.config)}));if(!1){if(n.print)var v}return W(p,function(h,d){var m="";if(!ue(h))rt(m);if(!h.data)rt(m);var g=t_(h.data);if(!B_(g))rt(m);var y,x=e[0];if(x&&d===0&&!h.dimensions){var S=x.startIndex;if(S)h.data=x.data.slice(0,S).concat(h.data);y={seriesLayoutBy:jr,sourceHeader:S,dimensions:x.metaRawOption.dimensions}}else y={seriesLayoutBy:jr,sourceHeader:0,dimensions:h.dimensions};return fp(h.data,y,null)})}function B_(n){return n===Ht||n===Tr}var lm=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,r){if(this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>90000000000)this._versionSignBase=0},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){if(this._isDirty())this._createSource(),this._dirty=!1},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),s=!!r.length,l,u;if(sm(e)){var f=e,c=void 0,p=void 0,v=void 0;if(s){var h=r[0];h.prepareSource(),v=h.getSource(),c=v.data,p=v.sourceFormat,u=[h._getVersionSign()]}else c=f.get("data",!0),p=Yt(c)?Oi:br,u=[];var d=this._getSourceMetaRawOption()||{},m=v&&v.metaRawOption||{},g=te(d.seriesLayoutBy,m.seriesLayoutBy)||null,y=te(d.sourceHeader,m.sourceHeader),x=te(d.dimensions,m.dimensions),S=g!==m.seriesLayoutBy||!!y!==!!m.sourceHeader||x;l=S?[fp(c,{seriesLayoutBy:g,sourceHeader:y,dimensions:x},p)]:[]}else{var D=e;if(s){var b=this._applyTransform(r);l=b.sourceList,u=b.upstreamSignList}else{var C=D.get("source",!0);l=[fp(C,this._getSourceMetaRawOption(),null)],u=[]}}this._setLocalSource(l,u)},n.prototype._applyTransform=function(e){var r=this._sourceHost,s=r.get("transform",!0),l=r.get("fromTransformResult",!0);if(l!=null){var u="";if(e.length!==1)fI(u)}var f,c=[],p=[];if(I(e,function(v){v.prepareSource();var h=v.getSource(l||0),d="";if(l!=null&&!h)fI(d);c.push(h),p.push(v._getVersionSign())}),s)f=uI(s,c,{datasetIndex:r.componentIndex});else if(l!=null)f=[yw(c[0])];return{sourceList:f,upstreamSignList:p}},n.prototype._isDirty=function(){if(this._dirty)return!0;var e=this._getUpstreamSourceManagers();for(var r=0;r<e.length;r++){var s=e[r];if(s._isDirty()||this._upstreamSignList[r]!==s._getVersionSign())return!0}},n.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var s=this._getUpstreamSourceManagers();return s[0]&&s[0].getSource(e)}return r},n.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},n.prototype._innerGetDataStore=function(e,r,s){var l=0,u=this._storeList,f=u[l];if(!f)f=u[l]={};var c=f[s];if(!c){var p=this._getUpstreamSourceManagers()[0];if(sm(this._sourceHost)&&p)c=p._innerGetDataStore(e,r,s);else c=new cp,c.initData(new Td(r,e.length),e);f[s]=c}return c},n.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(sm(e)){var r=Sd(e);return!r?[]:[r.getSourceManager()]}else return W(hw(e),function(s){return s.getSourceManager()})},n.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,s,l;if(sm(e))r=e.get("seriesLayoutBy",!0),s=e.get("sourceHeader",!0),l=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var u=e;r=u.get("seriesLayoutBy",!0),s=u.get("sourceHeader",!0),l=u.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:s,dimensions:l}},n}();function F_(n){var e=n.option.transform;e&&qs(n.option.transform)}function sm(n){return n.mainType==="series"}function fI(n){throw Error(n)}var Hl={color:{},darkColor:{},size:{}},ar=Hl.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)"};V(ar,{primary:ar.neutral80,secondary:ar.neutral70,tertiary:ar.neutral60,quaternary:ar.neutral50,disabled:ar.neutral20,border:ar.neutral30,borderTint:ar.neutral20,borderShade:ar.neutral40,background:ar.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:ar.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:ar.neutral70,axisLineTint:ar.neutral40,axisTick:ar.neutral70,axisTickMinor:ar.neutral60,axisLabel:ar.neutral70,axisSplitLine:ar.neutral15,axisMinorSplitLine:ar.neutral05});for(ho in ar)if(ar.hasOwnProperty(ho))if(um=ar[ho],ho==="theme")Hl.darkColor.theme=ar.theme.slice();else if(ho==="highlight")Hl.darkColor.highlight="rgba(255,231,130,0.4)";else if(ho.indexOf("accent")===0)Hl.darkColor[ho]=Ji(um,null,function(n){return n*0.5},function(n){return Math.min(1,1.3-n)});else Hl.darkColor[ho]=Ji(um,null,function(n){return n*0.9},function(n){return 1-Math.pow(n,1.5)});var um,ho;Hl.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var X=Hl;var e3="line-height:1";function cI(n){var e=n.lineHeight;if(e==null)return e3;else return"line-height:"+dr(e+"")+"px"}function pI(n,e){var r=n.color||X.color.tertiary,s=n.fontSize||12,l=n.fontWeight||"400",u=n.color||X.color.secondary,f=n.fontSize||14,c=n.fontWeight||"900";if(e==="html")return{nameStyle:"font-size:"+dr(s+"")+"px;color:"+dr(r)+";font-weight:"+dr(l+""),valueStyle:"font-size:"+dr(f+"")+"px;color:"+dr(u)+";font-weight:"+dr(c+"")};else return{nameStyle:{fontSize:s,fill:r,fontWeight:l},valueStyle:{fontSize:f,fill:u,fontWeight:c}}}var t3=[0,10,20,30],r3=["",`
|
|
35
|
+
`,`
|
|
36
|
+
|
|
37
|
+
`,`
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
`];function Wt(n,e){return e.type=n,e}function z_(n){return n.type==="section"}function vI(n){return z_(n)?i3:a3}function hI(n){if(z_(n)){var e=0,r=n.blocks.length,s=r>1||r>0&&!n.noHeader;return I(n.blocks,function(l){var u=hI(l);if(u>=e)e=u+ +(s&&(!u||z_(l)&&!l.noHeader))}),e}return 0}function i3(n,e,r,s){var l=e.noHeader,u=n3(hI(e)),f=[],c=e.blocks||[];We(!c||U(c)),c=c||[];var p=n.orderMode;if(e.sortBlocks&&p){c=c.slice();var v={valueAsc:"asc",valueDesc:"desc"};if(bt(v,p)){var h=new wd(v[p],null);c.sort(function(x,S){return h.evaluate(x.sortParam,S.sortParam)})}else if(p==="seriesDesc")c.reverse()}I(c,function(x,S){var D=e.valueFormatter,b=vI(x)(D?V(V({},n),{valueFormatter:D}):n,x,S>0?u.html:0,s);b!=null&&f.push(b)});var d=n.renderMode==="richText"?f.join(u.richText):V_(s,f.join(""),l?r:u.html);if(l)return d;var m=tm(e.header,"ordinal",n.useUTC),g=pI(s,n.renderMode).nameStyle,y=cI(s);if(n.renderMode==="richText")return dI(n,m,g)+u.richText+d;else return V_(s,'<div style="'+g+";"+y+';">'+dr(m)+"</div>"+d,r)}function a3(n,e,r,s){var l=n.renderMode,{noName:u,noValue:f}=e,c=!e.markerType,p=e.name,v=n.useUTC,h=e.valueFormatter||n.valueFormatter||function(A){return A=U(A)?A:[A],W(A,function(T,E){return tm(T,U(g)?g[E]:g,v)})};if(u&&f)return;var d=c?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||X.color.secondary,l),m=u?"":tm(p,"ordinal",v),g=e.valueType,y=f?[]:h(e.value,e.rawDataIndex),x=!c||!u,S=!c&&u,D=pI(s,l),{nameStyle:b,valueStyle:C}=D;return l==="richText"?(c?"":d)+(u?"":dI(n,m,b))+(f?"":l3(n,y,x,S,C)):V_(s,(c?"":d)+(u?"":o3(m,!c,b))+(f?"":s3(y,x,S,C)),r)}function U_(n,e,r,s,l,u){if(!n)return;var f=vI(n),c={useUTC:l,renderMode:r,orderMode:s,markupStyleCreator:e,valueFormatter:n.valueFormatter};return f(c,n,0,u)}function n3(n){return{html:t3[n],richText:r3[n]}}function V_(n,e,r){var s='<div style="clear:both"></div>',l="margin: "+r+"px 0 0",u=cI(n);return'<div style="'+l+";"+u+';">'+e+s+"</div>"}function o3(n,e,r){var s=e?"margin-left:2px":"";return'<span style="'+r+";"+s+'">'+dr(n)+"</span>"}function s3(n,e,r,s){var l=r?"10px":"20px",u=e?"float:right;margin-left:"+l:"";return n=U(n)?n:[n],'<span style="'+u+";"+s+'">'+W(n,function(f){return dr(f)}).join(" ")+"</span>"}function dI(n,e,r){return n.markupStyleCreator.wrapRichTextStyle(e,r)}function l3(n,e,r,s,l){var u=[l],f=s?10:20;return r&&u.push({padding:[0,0,0,f],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(U(e)?e.join(" "):e,u)}function fm(n,e){var r=n.getData().getItemVisual(e,"style"),s=r[n.visualDrawType];return Oa(s)}function cm(n,e){var r=n.get("padding");return r!=null?r:e==="richText"?[8,10]:10}var pm=function(){function n(){this.richTextStyles={},this._nextStyleNameId=Uc()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,r,s){var l=s==="richText"?this._generateStyleName():null,u=Jw({color:r,type:e,renderMode:s,markerId:l});if(K(u))return u;else return this.richTextStyles[l]=u.style,u.content},n.prototype.wrapRichTextStyle=function(e,r){var s={};if(U(r))I(r,function(u){return V(s,u)});else V(s,r);var l=this._generateStyleName();return this.richTextStyles[l]=s,"{"+l+"|"+e+"}"},n}();function vm(n){var{series:e,dataIndex:r,multipleSeries:s}=n,l=e.getData(),u=l.mapDimensionsAll("defaultedTooltip"),f=u.length,c=e.getRawValue(r),p=U(c),v=fm(e,r),h,d,m,g;if(f>1||p&&!f){var y=u3(c,e,r,u,v);h=y.inlineValues,d=y.inlineValueTypes,m=y.blocks,g=y.inlineValues[0]}else if(f){var x=l.getDimensionInfo(u[0]);g=h=fo(l,r,u[0]),d=x.type}else g=h=p?c[0]:c;var S=Hu(e),D=S&&e.name||"",b=l.getName(r),C=s?D:b;return Wt("section",{header:D,noHeader:s||!S,sortParam:g,blocks:[Wt("nameValue",{markerType:"item",markerColor:v,name:C,noName:!Mr(C),value:h,valueType:d,rawDataIndex:l.getRawIndex(r)})].concat(m||[])})}function u3(n,e,r,s,l){var u=e.getData(),f=wi(n,function(d,m,g){var y=u.getDimensionInfo(g);return d=d||y&&y.tooltip!==!1&&y.displayName!=null},!1),c=[],p=[],v=[];s.length?I(s,function(d){h(fo(u,r,d),d)}):I(n,h);function h(d,m){var g=u.getDimensionInfo(m);if(!g||g.otherDims.tooltip===!1)return;if(f)v.push(Wt("nameValue",{markerType:"subItem",markerColor:l,name:g.displayName,value:d,valueType:g.type}));else c.push(d),p.push(g.type)}return{inlineValues:c,inlineValueTypes:p,blocks:v}}var vs=he();function hm(n,e){return n.getName(e)||n.getId(e)}var Dp="__universalTransitionEnabled",dm=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,s,l){this.seriesIndex=this.componentIndex,this.dataTask=ps({count:c3,reset:p3}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,l);var u=vs(this).sourceManager=new lm(this);u.prepareSource();var f=this.getInitialData(r,l);gI(f,this),this.dataTask.context.data=f,vs(this).dataBeforeProcessed=f,mI(this),this._initSelectedMapFromData(f)},e.prototype.mergeDefaultAndTheme=function(r,s){var l=cs(this),u=l?_i(r):{},f=this.subType;if(Fe.hasClass(f))f+="Series";if(Re(r,s.getTheme().get(this.subType)),Re(r,this.getDefaultOption()),Ea(r,"label",["show"]),this.fillDataTextStyle(r.data),l)Qr(r,u,l)},e.prototype.mergeOption=function(r,s){r=Re(this.option,r,!0),this.fillDataTextStyle(r.data);var l=cs(this);if(l)Qr(this.option,r,l);var u=vs(this).sourceManager;u.dirty(),u.prepareSource();var f=this.getInitialData(r,s);gI(f,this),this.dataTask.dirty(),this.dataTask.context.data=f,vs(this).dataBeforeProcessed=f,mI(this),this._initSelectedMapFromData(f)},e.prototype.fillDataTextStyle=function(r){if(r&&!Yt(r)){var s=["show"];for(var l=0;l<r.length;l++)if(r[l]&&r[l].label)Ea(r[l],"label",s)}},e.prototype.getInitialData=function(r,s){return},e.prototype.appendData=function(r){var s=this.getRawData();s.appendData(r.data)},e.prototype.getData=function(r){var s=G_(this);if(s){var l=s.context.data;return r==null||!l.getLinkedData?l:l.getLinkedData(r)}else return vs(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var s=G_(this);if(s){var l=s.context;if(l.outputData=r,s!==this.dataTask)l.data=r}vs(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return re(r)},e.prototype.getSourceManager=function(){return vs(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return vs(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,s,l,u){var f=this.getData(),c=this.coordinateSystem,p=c&&c.getAxis(r);if(!c||!p)return[];var v=p.dataToCoord(l);if(u==null)u=1/0;var h=[],d=1/0,m=-1,g=0,y=f.getDimensionIndex(s),x=f.getStore();for(var S=0,D=x.count();S<D;S++){var b=x.get(y,S),C=p.dataToCoord(b),A=v-C,T=Math.abs(A);if(T<=u){if(T<d||T===d&&A>=0&&m<0)d=T,m=A,g=0;if(A===m)h[g++]=S}}return h.length=g,h},e.prototype.formatTooltip=function(r,s,l){return vm({series:this,dataIndex:r,multipleSeries:s})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Ue.node&&!(r&&r.ssr))return!1;var s=this.getShallow("animation");if(s){if(this.getData().count()>this.getShallow("animationThreshold"))s=!1}return!!s},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,s,l){var u=this.ecModel,f=xp.prototype.getColorFromPalette.call(this,r,s,l);if(!f)f=u.getColorFromPalette(r,s,l);return f},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,s){this._innerSelect(this.getData(s),r)},e.prototype.unselect=function(r,s){var l=this.option.selectedMap;if(!l)return;var u=this.option.selectedMode,f=this.getData(s);if(u==="series"||l==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var c=0;c<r.length;c++){var p=r[c],v=hm(f,p);l[v]=!1,this._selectedDataIndicesMap[v]=-1}},e.prototype.toggleSelect=function(r,s){var l=[];for(var u=0;u<r.length;u++)l[0]=r[u],this.isSelected(r[u],s)?this.unselect(l,s):this.select(l,s)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());var r=this._selectedDataIndicesMap,s=Me(r),l=[];for(var u=0;u<s.length;u++){var f=r[s[u]];if(f>=0)l.push(f)}return l},e.prototype.isSelected=function(r,s){var l=this.option.selectedMap;if(!l)return!1;var u=this.getData(s);return(l==="all"||l[hm(u,r)])&&!u.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Dp])return!0;var r=this.option.universalTransition;if(!r)return!1;if(r===!0)return!0;return r&&r.enabled},e.prototype._innerSelect=function(r,s){var l,u,f=this.option,c=f.selectedMode,p=s.length;if(!c||!p)return;if(c==="series")f.selectedMap="all";else if(c==="multiple"){if(!ue(f.selectedMap))f.selectedMap={};var v=f.selectedMap;for(var h=0;h<p;h++){var d=s[h],m=hm(r,d);v[m]=!0,this._selectedDataIndicesMap[m]=r.getRawIndex(d)}}else if(c==="single"||c===!0){var g=s[p-1],m=hm(r,g);f.selectedMap=(l={},l[m]=!0,l),this._selectedDataIndicesMap=(u={},u[m]=r.getRawIndex(g),u)}},e.prototype._initSelectedMapFromData=function(r){if(this.option.selectedMap)return;var s=[];if(r.hasItemOption)r.each(function(l){var u=r.getRawDataItem(l);if(u&&u.selected)s.push(l)});if(s.length>0)this._innerSelect(r,s)},e.registerClass=function(r){return Fe.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}(Fe);xt(dm,Sp);xt(dm,xp);Kv(dm,Fe);function mI(n){var e=n.name;if(!Hu(n))n.name=f3(n)||e}function f3(n){var e=n.getRawData(),r=e.mapDimensionsAll("seriesName"),s=[];return I(r,function(l){var u=e.getDimensionInfo(l);u.displayName&&s.push(u.displayName)}),s.join(" ")}function c3(n){return n.model.getRawData().count()}function p3(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),v3}function v3(n,e){if(e.outputData&&n.end>e.outputData.count())e.model.getRawData().cloneShallow(e.outputData)}function gI(n,e){I(Su(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(r){n.wrapMethod(r,Ae(h3,e))})}function h3(n,e){var r=G_(n);if(r)r.setOutputEnd((e||this).count());return e}function G_(n){var e=(n.ecModel||{}).scheduler,r=e&&e.getPipeline(n.uid);if(r){var s=r.currentTask;if(s){var l=s.agentStubMap;if(l)s=l.get(n.uid)}return s}}var et=dm;var d3=xe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,e){var{cx:r,cy:s}=e,l=e.width/2,u=e.height/2;n.moveTo(r,s-u),n.lineTo(r+l,s+u),n.lineTo(r-l,s+u),n.closePath()}}),m3=xe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,e){var{cx:r,cy:s}=e,l=e.width/2,u=e.height/2;n.moveTo(r,s-u),n.lineTo(r+l,s),n.lineTo(r,s+u),n.lineTo(r-l,s),n.closePath()}}),g3=xe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,e){var{x:r,y:s}=e,l=e.width/5*3,u=Math.max(l,e.height),f=l/2,c=f*f/(u-f),p=s-u+f+c,v=Math.asin(c/f),h=Math.cos(v)*f,d=Math.sin(v),m=Math.cos(v),g=f*0.6,y=f*0.7;n.moveTo(r-h,p+c),n.arc(r,p,f,Math.PI-v,Math.PI*2+v),n.bezierCurveTo(r+h-d*g,p+c+m*g,r,s-y,r,s),n.bezierCurveTo(r,s-y,r-h+d*g,p+c+m*g,r-h,p+c),n.closePath()}}),y3=xe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,e){var{height:r,width:s,x:l,y:u}=e,f=s/3*2;n.moveTo(l,u),n.lineTo(l+f,u+r),n.lineTo(l,u+r/4*3),n.lineTo(l-f,u+r),n.lineTo(l,u),n.closePath()}}),x3={line:Zt,rect:Ee,roundRect:Ee,square:Ee,circle:Ia,diamond:m3,pin:g3,arrow:y3,triangle:d3},_3={line:function(n,e,r,s,l){l.x1=n,l.y1=e+s/2,l.x2=n+r,l.y2=e+s/2},rect:function(n,e,r,s,l){l.x=n,l.y=e,l.width=r,l.height=s},roundRect:function(n,e,r,s,l){l.x=n,l.y=e,l.width=r,l.height=s,l.r=Math.min(r,s)/4},square:function(n,e,r,s,l){var u=Math.min(r,s);l.x=n,l.y=e,l.width=u,l.height=u},circle:function(n,e,r,s,l){l.cx=n+r/2,l.cy=e+s/2,l.r=Math.min(r,s)/2},diamond:function(n,e,r,s,l){l.cx=n+r/2,l.cy=e+s/2,l.width=r,l.height=s},pin:function(n,e,r,s,l){l.x=n+r/2,l.y=e+s/2,l.width=r,l.height=s},arrow:function(n,e,r,s,l){l.x=n+r/2,l.y=e+s/2,l.width=r,l.height=s},triangle:function(n,e,r,s,l){l.cx=n+r/2,l.cy=e+s/2,l.width=r,l.height=s}},bp={};I(x3,function(n,e){bp[e]=new n});var S3=xe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(n,e,r){var s=al(n,e,r),l=this.shape;if(l&&l.symbolType==="pin"&&e.position==="inside")s.y=r.y+r.height*0.4;return s},buildPath:function(n,e,r){var s=e.symbolType;if(s!=="none"){var l=bp[s];if(!l)s="rect",l=bp[s];_3[s](e.x,e.y,e.width,e.height,l.shape),l.buildPath(n,l.shape,r)}}});function D3(n,e){if(this.type!=="image"){var r=this.style;if(this.__isEmptyBrush)r.stroke=n,r.fill=e||X.color.neutral00,r.lineWidth=2;else if(this.shape.symbolType==="line")r.stroke=n;else r.fill=n;this.markRedraw()}}function Dt(n,e,r,s,l,u,f){var c=n.indexOf("empty")===0;if(c)n=n.substr(5,1).toLowerCase()+n.substr(6);var p;if(n.indexOf("image://")===0)p=Kx(n.slice(8),new De(e,r,s,l),f?"center":"cover");else if(n.indexOf("path://")===0)p=vd(n.slice(7),{},new De(e,r,s,l),f?"center":"cover");else p=new S3({shape:{symbolType:n,x:e,y:r,width:s,height:l}});if(p.__isEmptyBrush=c,p.setColor=D3,u)p.setColor(u);return p}function mo(n){if(!U(n))n=[+n,+n];return[n[0]||0,n[1]||0]}function ka(n,e){if(n==null)return;if(!U(n))n=[n,n];return[ee(n[0],e[0])||0,ee(te(n[1],n[0]),e[1])||0]}var b3=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){if(!1)var s;return Vr(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var s=new ve,l=Dt("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);s.add(l),l.setStyle(r.lineStyle);var u=this.getData().getVisual("symbol"),f=this.getData().getVisual("symbolRotate"),c=u==="none"?"circle":u,p=r.itemHeight*0.8,v=Dt(c,(r.itemWidth-p)/2,(r.itemHeight-p)/2,p,p,r.itemStyle.fill);s.add(v),v.setStyle(r.itemStyle);var h=r.iconRotate==="inherit"?f:r.iconRotate||0;if(v.rotation=h*Math.PI/180,v.setOrigin([r.itemWidth/2,r.itemHeight/2]),c.indexOf("empty")>-1)v.style.stroke=v.style.fill,v.style.fill=X.color.neutral00,v.style.lineWidth=2;return s},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e}(et),xI=b3;function hs(n,e){var r=n.mapDimensionsAll("defaultedLabel"),s=r.length;if(s===1){var l=fo(n,e,r[0]);return l!=null?l+"":null}else if(s){var u=[];for(var f=0;f<r.length;f++)u.push(fo(n,e,r[f]));return u.join(" ")}}function mm(n,e){var r=n.mapDimensionsAll("defaultedLabel");if(!U(e))return e+"";var s=[];for(var l=0;l<r.length;l++){var u=n.getDimensionIndex(r[l]);if(u>=0)s.push(e[u])}return s.join(" ")}var C3=function(n){k(e,n);function e(r,s,l,u){var f=n.call(this)||this;return f.updateData(r,s,l,u),f}return e.prototype._createSymbol=function(r,s,l,u,f,c){this.removeAll();var p=Dt(r,-1,-1,2,2,null,c);p.attr({z2:te(f,100),culling:!0,scaleX:u[0]/2,scaleY:u[1]/2}),p.drift=A3,this._symbolType=r,this.add(p)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Ni(this.childAt(0))},e.prototype.downplay=function(){ki(this.childAt(0))},e.prototype.setZ=function(r,s){var l=this.childAt(0);l.zlevel=r,l.z=s},e.prototype.setDraggable=function(r,s){var l=this.childAt(0);l.draggable=r,l.cursor=!s&&r?"move":l.cursor},e.prototype.updateData=function(r,s,l,u){this.silent=!1;var f=r.getItemVisual(s,"symbol")||"circle",c=r.hostModel,p=e.getSymbolSize(r,s),v=e.getSymbolZ2(r,s),h=f!==this._symbolType,d=u&&u.disableAnimation;if(h){var m=r.getItemVisual(s,"symbolKeepAspect");this._createSymbol(f,r,s,p,v,m)}else{var g=this.childAt(0);g.silent=!1;var y={scaleX:p[0]/2,scaleY:p[1]/2};d?g.attr(y):Oe(g,y,c,s),fr(g)}if(this._updateCommon(r,s,p,l,u),h){var g=this.childAt(0);if(!d){var y={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:g.style.opacity}};g.scaleX=g.scaleY=0,g.style.opacity=0,$e(g,y,c,s)}}if(d)this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,s,l,u,f){var c=this.childAt(0),p=r.hostModel,v,h,d,m,g,y,x,S,D;if(u)v=u.emphasisItemStyle,h=u.blurItemStyle,d=u.selectItemStyle,m=u.focus,g=u.blurScope,x=u.labelStatesModels,S=u.hoverScale,D=u.cursorStyle,y=u.emphasisDisabled;if(!u||r.hasItemOption){var b=u&&u.itemModel?u.itemModel:r.getItemModel(s),C=b.getModel("emphasis");v=C.getModel("itemStyle").getItemStyle(),d=b.getModel(["select","itemStyle"]).getItemStyle(),h=b.getModel(["blur","itemStyle"]).getItemStyle(),m=C.get("focus"),g=C.get("blurScope"),y=C.get("disabled"),x=St(b),S=C.getShallow("scale"),D=b.getShallow("cursor")}var A=r.getItemVisual(s,"symbolRotate");c.attr("rotation",(A||0)*Math.PI/180||0);var T=ka(r.getItemVisual(s,"symbolOffset"),l);if(T)c.x=T[0],c.y=T[1];D&&c.attr("cursor",D);var E=r.getItemVisual(s,"style"),w=E.fill;if(c instanceof Bt){var L=c.style;c.useStyle(V({image:L.image,x:L.x,y:L.y,width:L.width,height:L.height},E))}else{if(c.__isEmptyBrush)c.useStyle(V({},E));else c.useStyle(E);c.style.decal=null,c.setColor(w,f&&f.symbolInnerColor),c.style.strokeNoScale=!0}var M=r.getItemVisual(s,"liftZ"),P=this._z2;if(M!=null){if(P==null)this._z2=c.z2,c.z2+=M}else if(P!=null)c.z2=P,this._z2=null;var R=f&&f.useNameLabel;Mt(c,x,{labelFetcher:p,labelDataIndex:s,defaultText:N,inheritColor:w,defaultOpacity:E.opacity});function N(F){return R?r.getName(F):hs(r,F)}this._sizeX=l[0]/2,this._sizeY=l[1]/2;var O=c.ensureState("emphasis");O.style=v,c.ensureState("select").style=d,c.ensureState("blur").style=h;var B=S==null||S===!0?Math.max(1.1,3/this._sizeY):isFinite(S)&&S>0?+S:1;O.scaleX=this._sizeX*B,O.scaleY=this._sizeY*B,this.setSymbolScale(1),it(this,m,g,y)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,s,l){var u=this.childAt(0),f=ye(this).dataIndex,c=l&&l.animation;if(this.silent=u.silent=!0,l&&l.fadeLabel){var p=u.getTextContent();if(p)sa(p,{style:{opacity:0}},s,{dataIndex:f,removeOpt:c,cb:function(){u.removeTextContent()}})}else u.removeTextContent();sa(u,{style:{opacity:0},scaleX:0,scaleY:0},s,{dataIndex:f,cb:r,removeOpt:c})},e.getSymbolSize=function(r,s){return mo(r.getItemVisual(s,"symbolSize"))},e.getSymbolZ2=function(r,s){return r.getItemVisual(s,"z2")},e}(ve);function A3(n,e){this.parent.drift(n,e)}var go=C3;function gm(n,e,r,s){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(s&&s.isIgnore&&s.isIgnore(r))&&!(s&&s.clipShape&&!s.clipShape.contain(e[0],e[1]))&&n.getItemVisual(r,"symbol")!=="none"}function _I(n){if(n!=null&&!ue(n))n={isIgnore:n};return n||{}}function SI(n){var e=n.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:St(e),cursorStyle:e.get("cursor")}}function DI(n,e,r,s,l,u,f){var c=new n(e,r,s,l);return c.setPosition(u),e.setItemGraphicEl(r,c),f.add(c),c}var T3=function(){function n(e){this.group=new ve,this._SymbolCtor=e||go}return n.prototype.updateData=function(e,r){this._progressiveEls=null,r=_I(r);var s=this.group,l=e.hostModel,u=this._data,f=this._SymbolCtor,c=r.disableAnimation,p=this._seriesScope=SI(e),v={disableAnimation:c},h=r.getSymbolPoint||function(d){return e.getItemLayout(d)};if(!u)s.removeAll();e.diff(u).add(function(d){var m=h(d);if(gm(e,m,d,r))DI(f,e,d,p,v,m,s)}).update(function(d,m){var g=u.getItemGraphicEl(m),y=h(d);if(!gm(e,y,d,r)){s.remove(g);return}var x=e.getItemVisual(d,"symbol")||"circle",S=g&&g.getSymbolType&&g.getSymbolType();if(!g||S&&S!==x)s.remove(g),g=new f(e,d,p,v),g.setPosition(y);else{g.updateData(e,d,p,v);var D={x:y[0],y:y[1]};c?g.attr(D):Oe(g,D,l)}s.add(g),e.setItemGraphicEl(d,g)}).remove(function(d){var m=u.getItemGraphicEl(d);m&&m.fadeOut(function(){s.remove(m)},l)}).execute(),this._getSymbolPoint=h,this._data=e},n.prototype.updateLayout=function(e){var r=this._data;if(!r)return;var s=this,l=r.getStore();for(var u=0,f=l.count();u<f;u++){var c=r.getItemGraphicEl(u),p=s._getSymbolPoint(u);if(gm(r,p,u,e))c=c||DI(s._SymbolCtor,r,u,s._seriesScope,{disableAnimation:!0},p,s.group),c.stopAnimation(),c.setPosition(p),c.markRedraw();else if(c)s.group.remove(c),r.setItemGraphicEl(u,null)}},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=SI(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,r,s,l){this._progressiveEls=[],l=_I(l);function u(v){if(!v.isGroup)v.incremental=s,v.ensureState("emphasis").hoverLayer=no}for(var f=e.start;f<e.end;f++){var c=r.getItemLayout(f);if(gm(r,c,f,l)){var p=new this._SymbolCtor(r,f,this._seriesScope);p.traverse(u),p.setPosition(c),this.group.add(p),r.setItemGraphicEl(f,p),this._progressiveEls.push(p)}}},n.prototype.eachRendered=function(e){Bi(this._progressiveEls||this.group,e)},n.prototype.remove=function(e){var r=this.group,s=this._data;if(s&&e)s.eachItemGraphicEl(function(l){l.fadeOut(function(){r.remove(l)},s.hostModel)});else r.removeAll()},n}(),gn=T3;function ym(n,e,r){var s=n.getBaseAxis(),l=n.getOtherAxis(s),u=E3(l,r),f=s.dim,c=l.dim,p=e.mapDimension(c),v=e.mapDimension(f),h=c==="x"||c==="radius"?1:0,d=W(n.dimensions,function(y){return e.mapDimension(y)}),m=!1,g=e.getCalculationInfo("stackResultDimension");if(zi(e,d[0]))m=!0,d[0]=g;if(zi(e,d[1]))m=!0,d[1]=g;return{dataDimsForPoint:d,valueStart:u,valueAxisDim:c,baseAxisDim:f,stacked:!!m,valueDim:p,baseDim:v,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function E3(n,e){var r=0,s=n.scale.getExtent();if(e==="start")r=s[0];else if(e==="end")r=s[1];else if(Te(e)&&!isNaN(e))r=e;else if(s[0]>0)r=s[0];else if(s[1]<0)r=s[1];return r}function xm(n,e,r,s){var l=NaN;if(n.stacked)l=r.get(r.getCalculationInfo("stackedOverDimension"),s);if(isNaN(l))l=n.valueStart;var u=n.baseDataOffset,f=[];return f[u]=r.get(n.baseDim,s),f[1-u]=l,e.dataToPoint(f)}function Si(n,e){return!isFinite(n)||!isFinite(e)}var w3=typeof Float32Array!==rs?Float32Array:void 0,bI=typeof Float64Array!==rs?Float64Array:void 0;function Jr(n){return _m({ctor:w3},n).arr}function _m(n,e){var{arr:r,ctor:s}=n;if(e>Uu)e=Uu;if(!r||n.typed&&r.length<e){var l=void 0;if(s)try{l=new s(e),n.typed=!0,r&&l.set(r)}catch(c){}if(!l){if(l=[],n.typed=!1,r)for(var u=0,f=r.length;u<f;u++)l[u]=r[u]}n.arr=l}return n}function I3(n,e){var r=[];return e.diff(n).add(function(s){r.push({cmd:"+",idx:s})}).update(function(s,l){r.push({cmd:"=",idx:l,idx1:s})}).remove(function(s){r.push({cmd:"-",idx:s})}).execute(),r}function H_(n,e,r,s,l,u,f,c){var p=I3(n,e),v=[],h=[],d=[],m=[],g=[],y=[],x=[],S=ym(l,e,f),D=n.getLayout("points")||[],b=e.getLayout("points")||[];for(var C=0;C<p.length;C++){var A=p[C],T=!0,E=void 0,w=void 0;switch(A.cmd){case"=":E=A.idx*2,w=A.idx1*2;var L=D[E],M=D[E+1],P=b[w],R=b[w+1];if(isNaN(L)||isNaN(M))L=P,M=R;v.push(L,M),h.push(P,R),d.push(r[E],r[E+1]),m.push(s[w],s[w+1]),x.push(e.getRawIndex(A.idx1));break;case"+":var N=A.idx,O=S.dataDimsForPoint,B=l.dataToPoint([e.get(O[0],N),e.get(O[1],N)]);w=N*2,v.push(B[0],B[1]),h.push(b[w],b[w+1]);var F=xm(S,l,e,N);d.push(F[0],F[1]),m.push(s[w],s[w+1]),x.push(e.getRawIndex(N));break;case"-":T=!1}if(T)g.push(A),y.push(y.length)}y.sort(function(de,ze){return x[de]-x[ze]});var z=v.length,H=Jr(z),G=Jr(z),Z=Jr(z),Q=Jr(z),q=[];for(var C=0;C<y.length;C++){var ae=y[C],ce=C*2,ne=ae*2;H[ce]=v[ne],H[ce+1]=v[ne+1],G[ce]=h[ne],G[ce+1]=h[ne+1],Z[ce]=d[ne],Z[ce+1]=d[ne+1],Q[ce]=m[ne],Q[ce+1]=m[ne+1],q[C]=g[ae]}return{current:H,next:G,stackedOnCurrent:Z,stackedOnNext:Q,status:q}}var{min:ds,max:ms}=Math;function W_(n,e,r,s,l,u,f,c,p){var v,h,d,m,g,y,x=r,S=0;for(;S<s;S++){var D=e[x*2],b=e[x*2+1];if(x>=l||x<0)break;if(Si(D,b)){if(p){x+=u;continue}break}if(x===r)n[u>0?"moveTo":"lineTo"](D,b),d=D,m=b;else{var C=D-v,A=b-h;if(C*C+A*A<0.5){x+=u;continue}if(f>0){var T=x+u,E=e[T*2],w=e[T*2+1];while(E===D&&w===b&&S<s)S++,T+=u,x+=u,E=e[T*2],w=e[T*2+1],D=e[x*2],b=e[x*2+1],C=D-v,A=b-h;var L=S+1;if(p)while(Si(E,w)&&L<s)L++,T+=u,E=e[T*2],w=e[T*2+1];var M=0.5,P=0,R=0,N=void 0,O=void 0;if(L>=s||Si(E,w))g=D,y=b;else{P=E-v,R=w-h;var B=D-v,F=E-D,z=b-h,H=w-b,G=void 0,Z=void 0;if(c==="x"){G=Math.abs(B),Z=Math.abs(F);var Q=P>0?1:-1;g=D-Q*G*f,y=b,N=D+Q*Z*f,O=b}else if(c==="y"){G=Math.abs(z),Z=Math.abs(H);var q=R>0?1:-1;g=D,y=b-q*G*f,N=D,O=b+q*Z*f}else G=Math.sqrt(B*B+z*z),Z=Math.sqrt(F*F+H*H),M=Z/(Z+G),g=D-P*f*(1-M),y=b-R*f*(1-M),N=D+P*f*M,O=b+R*f*M,N=ds(N,ms(E,D)),O=ds(O,ms(w,b)),N=ms(N,ds(E,D)),O=ms(O,ds(w,b)),P=N-D,R=O-b,g=D-P*G/Z,y=b-R*G/Z,g=ds(g,ms(v,D)),y=ds(y,ms(h,b)),g=ms(g,ds(v,D)),y=ms(y,ds(h,b)),P=D-g,R=b-y,N=D+P*Z/G,O=b+R*Z/G}n.bezierCurveTo(d,m,g,y,D,b),d=N,m=O}else n.lineTo(D,b)}v=D,h=b,x+=u}return S}var CI=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),AI=function(n){k(e,n);function e(r){var s=n.call(this,r)||this;return s.type="ec-polyline",s}return e.prototype.getDefaultStyle=function(){return{stroke:X.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new CI},e.prototype.buildPath=function(r,s){var l=s.points,u=0,f=l.length/2;if(s.connectNulls){for(;f>0;f--)if(!Si(l[f*2-2],l[f*2-1]))break;for(;u<f;u++)if(!Si(l[u*2],l[u*2+1]))break}while(u<f)u+=W_(r,l,u,f,f,1,s.smooth,s.smoothMonotone,s.connectNulls)+1},e.prototype.getPointOn=function(r,s){if(!this.path)this.createPathProxy(),this.buildPath(this.path,this.shape);var l=this.path,u=l.data,f=Sr.CMD,c,p,v=s==="x",h=[];for(var d=0;d<u.length;){var m=u[d++],g=void 0,y=void 0,x=void 0,S=void 0,D=void 0,b=void 0,C=void 0;switch(m){case f.M:c=u[d++],p=u[d++];break;case f.L:if(g=u[d++],y=u[d++],C=v?(r-c)/(g-c):(r-p)/(y-p),C<=1&&C>=0){var A=v?(y-p)*C+p:(g-c)*C+c;return v?[r,A]:[A,r]}c=g,p=y;break;case f.C:g=u[d++],y=u[d++],x=u[d++],S=u[d++],D=u[d++],b=u[d++];var T=v?ll(c,g,x,D,r,h):ll(p,y,S,b,r,h);if(T>0)for(var E=0;E<T;E++){var w=h[E];if(w<=1&&w>=0){var A=v?Gt(p,y,S,b,w):Gt(c,g,x,D,w);return v?[r,A]:[A,r]}}c=D,p=b;break}}},e}(xe);var M3=function(n){k(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(CI),Sm=function(n){k(e,n);function e(r){var s=n.call(this,r)||this;return s.type="ec-polygon",s}return e.prototype.getDefaultShape=function(){return new M3},e.prototype.buildPath=function(r,s){var{points:l,stackedOnPoints:u}=s,f=0,c=l.length/2,p=s.smoothMonotone;if(s.connectNulls){for(;c>0;c--)if(!Si(l[c*2-2],l[c*2-1]))break;for(;f<c;f++)if(!Si(l[f*2],l[f*2+1]))break}while(f<c){var v=W_(r,l,f,c,c,1,s.smooth,p,s.connectNulls);W_(r,u,f+v-1,v,c,-1,s.stackedOnSmooth,p,s.connectNulls),f+=v+1,r.closePath()}},e}(xe);function Ba(){var n=he();return function(e){var r=n(e),s=e.pipelineContext,l=!!r.large,u=!!r.progressiveRender,f=r.large=!!(s&&s.large),c=r.progressiveRender=!!(s&&s.progressiveRender);return(l!==f||u!==c)&&"reset"}}var wI=he(),L3=Ba(),Y_=function(){function n(){this.group=new ve,this.uid=dn("viewChart"),this.renderTask=ps({plan:P3,reset:R3}),this.renderTask.context={view:this}}return n.prototype.init=function(e,r){},n.prototype.render=function(e,r,s,l){},n.prototype.highlight=function(e,r,s,l){var u=e.getData(l&&l.dataType);if(!u)return;EI(u,l,"emphasis")},n.prototype.downplay=function(e,r,s,l){var u=e.getData(l&&l.dataType);if(!u)return;EI(u,l,"normal")},n.prototype.remove=function(e,r){this.group.removeAll()},n.prototype.dispose=function(e,r){},n.prototype.updateView=function(e,r,s,l){this.render(e,r,s,l)},n.prototype.updateVisual=function(e,r,s,l){this.render(e,r,s,l)},n.prototype.eachRendered=function(e){Bi(this.group,e)},n.markUpdateMethod=function(e,r){wI(e).updateMethod=r},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function TI(n,e,r){if(n&&ns(n))(e==="emphasis"?Ni:ki)(n,r)}function EI(n,e,r){var s=na(n,e),l=e&&e.highlightKey!=null?mE(e.highlightKey):null;if(s!=null)I(nt(s),function(u){TI(n.getItemGraphicEl(u),r,l)});else n.eachItemGraphicEl(function(u){TI(u,r,l)})}bu(Y_,["dispose"]);Vo(Y_);function P3(n){return L3(n.model)}function R3(n){var{model:e,ecModel:r,api:s,payload:l}=n,u=e.pipelineContext.progressiveRender,f=n.view,c=l&&wI(l).updateMethod,p=u?"incrementalPrepareRender":c&&f[c]?c:"render";if(p!=="render")f[p](e,r,s,l);return O3[p]}var O3={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},qe=Y_;function X_(n,e,r,s,l){var u=n.getArea(),{x:f,y:c,width:p,height:v}=u,h=r.get(["lineStyle","width"])||0;if(f-=h/2,c-=h/2,p+=h,v+=h,p=Math.ceil(p),f!==Math.floor(f))f=Math.floor(f),p++;var d=new Ee({shape:{x:f,y:c,width:p,height:v}});if(e){var m=n.getBaseAxis(),g=m.isHorizontal(),y=m.inverse;if(g){if(y)d.shape.x+=p;d.shape.width=0}else{if(!y)d.shape.y+=v;d.shape.height=0}var x=ie(l)?function(S){l(S,d)}:null;$e(d,{shape:{width:p,height:v,x:f,y:c}},r,null,s,x)}return d}function Z_(n,e,r){var s=n.getArea(),l=Ye(s.r0,1),u=Ye(s.r,1),f=new Xt({shape:{cx:Ye(n.cx,1),cy:Ye(n.cy,1),r0:l,r:u,startAngle:s.startAngle,endAngle:s.endAngle,clockwise:s.clockwise}});if(e){var c=n.getBaseAxis().dim==="angle";if(c)f.shape.endAngle=s.startAngle;else f.shape.r=l;$e(f,{shape:{endAngle:s.endAngle,r:u}},r)}return f}function yo(n,e,r,s,l){if(!n)return null;else if(n.type==="polar")return Z_(n,e,r);else if(n.type==="cartesian2d")return X_(n,e,r,s,l);return null}var gs=0,ys=1,xs=2;function _s(n,e,r){if(n)e.setClipPath(r);else e.removeClipPath()}function Dm(n){var e=n.coordinateSystem;if(n.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(0.1)}function fa(n,e){return n.type===e}function K_(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"&&!!n.getViewRect}var II=function(){function n(){}return n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Vo(II);var ei=II;var N3=0,k3=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++N3,this._onCollect=e.onCollect}return n.createByAxisModel=function(e){var r=e.option,s=r.data,l=s&&W(s,B3);return new n({categories:l,needCollect:!l,deduplication:r.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var r,s=this._needCollect;if(!K(e)&&!s)return e;if(s&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var l=this._getOrCreateMap();if(r=l.get(e),r==null)if(s)r=this.categories.length,this.categories[r]=e,l.set(e,r),this._onCollect&&this._onCollect(e,r);else r=NaN;return r},n.prototype._getOrCreateMap=function(){return this._map||(this._map=re(this.categories))},n}();function B3(n){if(ue(n)&&n.value!=null)return n.value;else return n+""}var Cp=k3;var Di=0,pf=1,F3={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},LI=Me(F3),vf=2,PI=3;function hf(n,e,r){var s;n=n||{};var l=Kt();if(l){var u=l.createBreakScaleMapper(e,r);if(u.hasBreaks())I(LI,function(f){if(u[f])n[f]=se(u[f],u)}),s=u}if(s==null)z3(n,r);return{brk:s,mapper:n}}function bm(n,e){I(LI,function(r){n[r]=e[r]})}function Cm(n,e){n.freeze=mt}function xo(n){return n.getExtentUnsafe(Di,vf)}function Wl(n,e){return n.getExtentUnsafe(pf,e)||n.getExtentUnsafe(Di,e)}function RI(n){var e=Wl(n,PI);return e[1]-e[0]}function df(n){var e=n.getExtentUnsafe(Di,PI);return e[1]-e[0]}function z3(n,e){var r=n||{},s=[];return r._extents=s,s[Di]=e?e.slice():Dr(),V(r,V3),r}var V3={needTransform:function(){return!1},normalize:function(n){var e=this._extents[pf]||this._extents[Di];if(e[1]===e[0])return 0.5;return(n-e[0])/(e[1]-e[0])},scale:function(n){var e=this._extents[pf]||this._extents[Di];return n*(e[1]-e[0])+e[0]},transformIn:function(n){return n},transformOut:function(n){return n},contain:function(n){var e=Wl(this,null);return n>=e[0]&&n<=e[1]},getExtent:function(){return this._extents[Di].slice()},getExtentUnsafe:function(n){return this._extents[n]},setExtent:function(n,e){MI(this._extents,Di,n,e)},setExtent2:function(n,e,r){var s=this._extents;if(!s[n])s[n]=s[Di].slice();MI(s,n,e,r)},freeze:function(){}};function MI(n,e,r,s){if(to(r,s))n[e][0]=r,n[e][1]=s}function Am(n){return mf(n)||xn(n)}function mf(n){return n.type==="interval"}function yn(n){return n.type==="time"}function xn(n){return n.type==="log"}function nr(n){return n.type==="ordinal"}function OI(n){var e=Bh(n),r=Jo(10,e),s=Li(n/r);if(!s)s=1;else if(s===2)s=3;else if(s===3)s=5;else s*=2;return Ye(s*r,-e)}function Fa(n){return Mi(n)+2}function Ap(n,e){return zu(n)/zu(e)}function Tm(n,e,r){var s=r&&r.lookup;if(s){for(var l=0;l<s.from.length;l++)if(n===s.from[l])return s.to[l]}return Jo(e,n)}function Em(n,e,r){var s=n.slice();if(s[0]===s[1]){var l=r&&r.ctnShp;if(s[0]!==0){var u=_t(s[0]);if(!e[1])s[1]+=u/2,s[0]-=u/2;else s[0]-=u/2}else if(l)s[0]=-1,s[1]=1;else s[1]=1}if(!Ta(s[0])||!Ta(s[1]))s[0]=0,s[1]=1;if(s[1]<s[0])s.reverse();return s}function NI(n,e){return[n[0]!==e[0],n[1]!==e[1]]}function Yl(n,e){return n=n||e,Li(Be(n,1))}function wm(n,e,r){var s=xo(n),l=s[0],u=n.count(),f=Math.max((e||0)+1,1);if(l!==0&&f>1&&u/f>2)l=Math.round(Math.ceil(l/f)*f);if(l!==s[0])p(s[0],!0,!0);var c=l;for(;c<=s[1];c+=f)p(c,!1,c===s[0]||c===s[1]);if(c-f!==s[1])p(s[1],!0,!0);function p(v,h,d){r({value:v,offInterval:h},d)}}var kI=function(n){k(e,n);function e(r){var s=n.call(this)||this;s.type="ordinal",s.parse=e.parse,bm(s,e.decoratedMethods);var l=r.ordinalMeta;if(!l)l=new Cp({});if(U(l))l=new Cp({categories:W(l,function(f){return ue(f)?f.value:f})});s._ordinalMeta=l;var u=hf(null,null,r.extent||[0,l.categories.length-1]);return s._mapper=u.mapper,Cm(s,u.mapper),s}return e.parse=function(r){if(r==null)r=NaN;else if(K(r)){if(r=this._ordinalMeta.getOrdinal(r),r==null)r=NaN}else r=Li(r);return r},e.prototype.getTicks=function(){var r=[];return wm(this,0,function(s){r.push(s)}),r},e.prototype.getMinorTicks=function(r){return},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}var s=r.ordinalNumbers,l=this._ordinalNumbersByTick=[],u=this._ticksByOrdinalNumber=[],f=0,c=this._ordinalMeta.categories.length;for(var p=lt(c,s.length);f<p;++f){var v=l[f]=s[f];u[v]=f}var h=0;for(;f<c;++f){while(u[h]!=null)h++;l[f]=h,u[h]=f}},e.prototype._getTickNumber=function(r){var s=this._ticksByOrdinalNumber;return s&&r>=0&&r<s.length?s[r]:r},e.prototype.getRawOrdinalNumber=function(r){var s=this._ordinalNumbersByTick;return s&&r>=0&&r<s.length?s[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var s=this.getRawOrdinalNumber(r.value),l=this._ordinalMeta.categories[s];return l==null?"":l+""}},e.prototype.count=function(){var r=xo(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(Li(this._mapper.scale(r)))},transformIn:function(r,s){return this._mapper.transformIn(this._getTickNumber(r),s)},transformOut:function(r,s){return this.getRawOrdinalNumber(this._mapper.transformOut(r,s))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,s){return this._mapper.getExtentUnsafe(r,s)},setExtent:function(r,s){return this._mapper.setExtent(r,s)},setExtent2:function(r,s,l){return this._mapper.setExtent2(r,s,l)}},e}(ei);ei.registerClass(kI);var BI=kI;function gf(n,e,r,s){var l=n.getTicks({expandToNicedExtent:!0}),u=[],f=n.getExtent();for(var c=1;c<l.length;c++){var p=l[c],v=l[c-1];if(v.break||p.break)continue;var h=0,d=[],m=p.value-v.value,g=m/e,y=Fa(g);while(h<e-1){var x=Ye(v.value+(h+1)*g,y);if(x>f[0]&&x<f[1])d.push(x);h++}var S=Kt();S&&S.pruneTicksByBreak("auto",d,r,function(D){return D},s,f),u.push(d)}return u}var FI=function(n){k(e,n);function e(r){var s=n.call(this)||this;s.type="interval",s.parse=e.parse,r=r||{};var l=Gd(s,r),u=hf(s,l,null);return s.brk=u.brk,s._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},s}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return le(this._cfg)},e.prototype.setConfig=function(r){var s=xo(this);if(this._cfg=r=le(r),r.niceExtent==null)r.niceExtent=s.slice();if(r.intervalPrecision==null)r.intervalPrecision=Fa(r.interval)},e.prototype.getTicks=function(r){r=r||{};var s=this._cfg,l=s.interval,u=xo(this),{niceExtent:f,intervalPrecision:c}=s,p=Kt(),v=this.brk,h=p&&v,d=[];if(!l)return d;if(r.breakTicks==="only_break"&&h)return p.addBreaksToTicks(d,v.breaks,u),d;var m=3000;if(u[0]<f[0])d.push({value:r.expandToNicedExtent?Ye(f[0]-l,c):u[0]});var g=function(C,A){return Li((A-C)/l)},y=s.intervalCount;for(var x=f[0],S=0;;S++){if(y==null){if(x>f[1]||!isFinite(x)||!isFinite(f[1]))break}else{if(S>y)break;if(x=lt(x,f[1]),S===y)x=f[1]}if(d.push({value:x}),x=Ye(x+l,c),v){var D=v.calcNiceTickMultiple(x,g);if(D>=0)x=Ye(x+D*l,c)}if(d.length>0&&x===d[d.length-1].value)break;if(d.length>m)return[]}var b=d.length?d[d.length-1].value:f[1];if(u[1]>b)d.push({value:r.expandToNicedExtent?Ye(b+l,c):u[1]});if(h)p.pruneTicksByBreak(r.pruneByBreak,d,v.breaks,function(C){return C.value},s.interval,u);if(h&&r.breakTicks!=="none")p.addBreaksToTicks(d,v.breaks,u);return d},e.prototype.getMinorTicks=function(r){return gf(this,r,Fl(this),this._cfg.interval)},e.prototype.getLabel=function(r,s){if(r==null)return"";var l=s&&s.precision;if(l==null)l=Mi(r.value)||0;else if(l==="auto")l=this._cfg.intervalPrecision;var u=Ye(r.value,l,!0);return O_(u)},e.type="interval",e}(ei);ei.registerClass(FI);var _n=FI;var U3=function(n,e,r,s){while(r<s){var l=r+s>>>1;if(n[l][1]<e)r=l+1;else s=l}return r},VI=function(n){k(e,n);function e(r){var s=n.call(this)||this;s.type="time",s.parse=e.parse,s._locale=r.locale,s._useUTC=r.useUTC,s._interval=0;var l=Gd(s,r),u=hf(s,l,null);return s.brk=u.brk,s}return e.prototype.getLabel=function(r){return zl(r.value,A_[Kw(ff(this._minLevelUnit))]||A_.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,s,l){return qw(r,s,l,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var s=this._interval,l=xo(this),u=Kt(),f=this.brk,c=u&&f,p=[];if(!s)return p;var v=this._useUTC;if(c&&r.breakTicks==="only_break")return Kt().addBreaksToTicks(p,f.breaks,l),p;p=K3(this._minLevelUnit,this._approxInterval,v,l,df(this),f);var h=xi.length-1,d=0;if(I(p,function(m){if(m.time)h=Math.min(h,be(xi,m.time.upperTimeUnit)),d=Math.max(d,m.time.level)}),c)Kt().pruneTicksByBreak(r.pruneByBreak,p,f.breaks,function(m){return m.value},this._approxInterval,l);if(c&&r.breakTicks!=="none")Kt().addBreaksToTicks(p,f.breaks,l,function(m){var g=Math.max(be(xi,Vl(m.vmin,v)),be(xi,Vl(m.vmax,v))),y=0;for(var x=0;x<xi.length;x++)if(!UI(xi[x],m.vmin,m.vmax,v)){y=x;break}var S=Math.min(y,h),D=Math.max(S,g);return{level:d,lowerTimeUnit:xi[D],upperTimeUnit:xi[S]}});return p},e.prototype.getMinorTicks=function(r){return gf(this,r,Fl(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 Te(r)?Math.round(r):+ia(r)},e.type="time",e}(ei),Im=[["second",Yd],["minute",Xd],["hour",uf],["quarter-day",uf*6],["half-day",uf*12],["day",Vi*1.2],["half-week",Vi*3.5],["week",Vi*7],["month",Vi*31],["quarter",Vi*95],["half-year",C_/2],["year",C_]];function UI(n,e,r,s){return Zd(new Date(e),n,s).getTime()===Zd(new Date(r),n,s).getTime()}function G3(n,e){return n/=Vi,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function H3(n){var e=30*Vi;return n/=e,n>6?6:n>3?3:n>2?2:1}function W3(n){return n/=uf,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function zI(n,e){return n/=e?Xd:Yd,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function Y3(n){return Be(Dl(n,!0),1)}function X3(n,e,r){var s=Math.max(0,be(xi,e)-1);return Zd(new Date(n),xi[s],r).getTime()}function Z3(n,e){var r=new Date(0);r[n](1);var s=r.getTime();r[n](1+e);var l=r.getTime()-s;return function(u,f){return Math.max(0,Math.round((f-u)/l))}}function K3(n,e,r,s,l,u){var f=3000,c=Yw,p=0;function v(z,H,G,Z,Q,q,ae){var ce=Z3(Q,z),ne=H,de=new Date(ne);while(ne<G&&ne<=s[1]){if(ae.push({value:ne}),p++>f)break;if(de[Q](de[Z]()+z),ne=de.getTime(),u){var ze=u.calcNiceTickMultiple(ne,ce);if(ze>0)de[Q](de[Z]()+ze*z),ne=de.getTime()}}ae.push({value:ne,notAdd:ne>s[1]})}function h(z,H,G){var Z=[],Q=!H.length;if(UI(ff(z),s[0],s[1],r))return;if(Q)H=[{value:X3(s[0],z,r)},{value:s[1]}];for(var q=0;q<H.length-1;q++){var ae=H[q].value,ce=H[q+1].value;if(ae===ce)continue;var ne=void 0,de=void 0,ze=void 0,dt=!1;switch(z){case"year":ne=Math.max(1,Math.round(e/Vi/365)),de=T_(r),ze=jw(r);break;case"half-year":case"quarter":case"month":ne=H3(e),de=Kd(r),ze=E_(r);break;case"week":case"half-week":case"day":ne=G3(e,31),de=qd(r),ze=w_(r),dt=!0;break;case"half-day":case"quarter-day":case"hour":ne=W3(e),de=jd(r),ze=I_(r);break;case"minute":ne=zI(e,!0),de=$d(r),ze=M_(r);break;case"second":ne=zI(e,!1),de=Qd(r),ze=L_(r);break;case"millisecond":ne=Y3(e),de=Jd(r),ze=P_(r);break}if(ce>=s[0]&&ae<=s[1])v(ne,ae,ce,de,ze,dt,Z);if(z==="year"&&G.length>1&&q===0)G.unshift({value:G[0].value-ne})}for(var q=0;q<Z.length;q++)G.push(Z[q])}var d=[],m=[],g=0,y=0;for(var x=0;x<c.length;++x){var S=ff(c[x]);if(!Zw(c[x]))continue;h(c[x],d[d.length-1]||[],m);var D=c[x+1]?ff(c[x+1]):null;if(S!==D){if(m.length){y=g,m.sort(function(z,H){return z.value-H.value});var b=[];for(var C=0;C<m.length;++C){var A=m[C].value;if(C===0||m[C-1].value!==A){if(b.push(m[C]),A>=s[0]&&A<=s[1])g++}}var T=l/e;if(g>T*1.5&&y>T/1.5)break;if(d.push(b),g>T||n===c[x])break}m=[]}}var E=Ke(W(d,function(z){return Ke(z,function(H){return H.value>=s[0]&&H.value<=s[1]&&!H.notAdd})}),function(z){return z.length>0}),w=E.length-1,L=[];for(var x=0;x<E.length;++x){var M=E[x];for(var P=0;P<M.length;++P){var R=Vl(M[P].value,r);L.push({value:M[P].value,time:{level:w-x,upperTimeUnit:R,lowerTimeUnit:R}})}}Yu(L,QT,null),L.sort(function(z,H){return z.value-H.value});var N=L[0],O=L[L.length-1],B=Vl(s[0],r),F=Vl(s[1],r);if(!N||N.value>s[0])L.unshift({value:s[0],time:{level:0,upperTimeUnit:B,lowerTimeUnit:B},notNice:!0});if(!O||O.value<s[1])L.push({value:s[1],time:{level:0,upperTimeUnit:F,lowerTimeUnit:F},notNice:!0});return L}var GI=function(n,e){var r=n.getExtent();if(r[0]===r[1])r[0]-=Vi,r[1]+=Vi;if(r[1]===-1/0&&r[0]===1/0){var s=new Date;r[1]=+new Date(s.getFullYear(),s.getMonth(),s.getDate()),r[0]=r[1]-Vi}n.setExtent(r[0],r[1]);var l=Yl(e.splitNumber,10),u=df(n)/l,{minInterval:f,maxInterval:c}=e;if(f!=null&&u<f)u=f;if(c!=null&&u>c)u=c;var p=Im.length,v=Math.min(U3(Im,u,0,p),p-1),h=Im[v][1],d=Im[Math.max(v-1,0)][0];n.setTimeInterval({approxInterval:u,interval:h,minLevelUnit:d})};ei.registerClass(VI);var HI=VI;var Mm=0,Lm=1,q3=2,ZI=function(n){k(e,n);function e(r){var s=n.call(this)||this;s.type="log",s.parse=_n.parse,s.base=r.logBase||10;var l=[],u=[],f=s._lookup={from:l,to:u};l[Mm]=l[Lm]=u[Mm]=u[Lm]=NaN,bm(s,e.mapperMethods);var c=Kt(),p=r.breakOption,v={lookup:f};if(c)c.parseAxisBreakOptionInwardTransform(p,s,{noNegative:!0},q3,v);return s.powStub=new _n({breakParsed:v.original}),s.intervalStub=new _n({breakParsed:v.transformed}),Cm(s,s.intervalStub),s}return e.prototype.getTicks=function(r){var s=this.base,l=this.powStub,u=Kt(),f=this.intervalStub,c=f.getExtent(),p=l.getExtent(),v={lookup:{from:c,to:p}};return W(f.getTicks(r||{}),function(h){var d=h.value,m=Tm(d,s,v),g;if(u){var y=u.getTicksBreakOutwardTransform(this,h,Fl(l),this._lookup);if(y)g=y.vBreak,m=y.tickVal}return{value:m,break:g}},this)},e.prototype.getMinorTicks=function(r){return gf(this,r,Fl(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,s){return this.intervalStub.getLabel(r,s)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(Ap(r,this.base))},scale:function(r){return Tm(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,s){return r=Ap(r,this.base),s&&s.depth===vf?r:this.intervalStub.transformIn(r,s)},transformOut:function(r,s){var l=s?s.depth:null;return WI.depth=l,YI.lookup=this._lookup,Tm(l===vf?r:this.intervalStub.transformOut(r,WI),this.base,YI)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,s){this.setExtent2(Di,r,s)},setExtent2:function(r,s,l){if(!to(s,l)||s<=0||l<=0)return;var u=XI,f=XI;if(r===Di){var c=this._lookup;u=c.to,f=c.from}this.powStub.setExtent2(r,u[Mm]=s,u[Lm]=l);var p=this.base;this.intervalStub.setExtent2(r,f[Mm]=Ap(s,p),f[Lm]=Ap(l,p))},getFilter:function(){return{g:0}},sanitize:function(r,s){if(to(s[0],s[1])&&vr(r)&&r<=0)r=s[0];return r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,s){return s===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,s)}},e}(ei);ei.registerClass(ZI);var WI={},YI={},XI=[],KI=ZI;var Pm={value:1,category:1,time:1,log:1};var qI=he();function Ss(n){var e=n.get("type");if(e==null||!bt(Pm,e)&&!ei.getClass(e))e="value";return e}function Ds(n,e,r){var s=Kt(),l;if(s)l=q_(n,e,r);switch(e){case"category":return new BI({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:Dr()});case"time":return new HI({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC"),breakOption:l});case"log":return new KI({logBase:n.get("logBase"),breakOption:l});case"value":return new _n({breakOption:l});default:return new(ei.getClass(e)||_n)({})}}function jI(n,e,r){var s=r?Wl(n,null):n.getExtentUnsafe(Di,null),l=s[0],u=s[1];return!to(l,u)?Rm:l===e||u===e?$3:l<e&&u>e?j3:Rm}var j3=1,$3=2,Rm=3;function $I(n){qI(n).noOnMyZero=!0}function QI(n){return qI(n).noOnMyZero}function Tp(n){var e=n.getLabelModel().get("formatter");if(n.type==="time"){var r=Xw(e);return function(l,u){return n.scale.getFormattedLabel(l,u,r)}}else if(K(e))return function(l){var u=n.scale.getLabel(l),f=e.replace("{value}",u!=null?u:"");return f};else if(ie(e)){if(n.type==="category")return function(l,u){return e(yf(n,l),l.value-n.scale.getExtent()[0],null)};var s=Kt();return function(l,u){var f=null;if(s)f=s.makeAxisLabelFormatterParamBreak(f,l.break);return e(yf(n,l),u,f)}}else return function(l){return n.scale.getLabel(l)}}function yf(n,e){var r=n.scale;return nr(r)?r.getLabel(e):e.value}function Om(n){var e=n.get("interval");return e==null?"auto":e}function JI(n){return n.type==="category"&&Om(n.getLabelModel())===0}function eM(n,e){var r={};return I(n.mapDimensionsAll(e),function(s){r[kd(n,s)]=!0}),Me(r)}function bs(n){return n==="middle"||n==="center"}function Xl(n){return n.getShallow("show")}function q_(n,e,r){var s=n.get("breaks",!0);if(s!=null){if(!Kt())return;if(!r||!Q3(e)){if(!1)var l;return}return s}}function Q3(n){return n!=="category"}function Nm(n,e,r,s,l,u){var f=xn(n),c=f?n.intervalStub:n;if(c.setExtent(s[0],s[1]),f){var p=n.powStub,v={depth:vf},h=n.transformOut(s[0],v),d=n.transformOut(s[1],v),m=NI(r,s);if(e[0]&&!m[0])h=l[0];if(e[1]&&!m[1])d=l[1];p.setExtent(h,d)}c.setConfig(u)}function za(n,e){return nr(n)?n.getRawOrdinalNumber(e.value):e.value}function Sn(n,e){return nr(n)&&!!e.get("boundaryGap")}function tM(n,e){if(n.length!==e.length)return;for(var r=0;r<n.length;r++)if(n[r]!==e[r])return;return!0}function rM(n){var e=Dr(),r=Dr();for(var s=0;s<n.length;){var l=n[s++],u=n[s++];if(!Si(l,u))Yc(e,l),Yc(r,u)}return[e,r]}function iM(n,e){var r=rM(n),s=r[0],l=r[1],u=rM(e),f=u[0],c=u[1];return Math.max(Math.abs(s[0]-f[0]),Math.abs(l[0]-c[0]),Math.abs(s[1]-f[1]),Math.abs(l[1]-c[1]))}function aM(n){return Te(n)?n:n?0.5:0}function J3(n,e,r){if(r.valueDim==null)return[];var s=e.count(),l=Jr(s*2);for(var u=0;u<s;u++){var f=xm(r,n,e,u);l[u*2]=f[0],l[u*2+1]=f[1]}return l}function Cs(n,e,r,s,l){var u=r.getBaseAxis(),f=u.dim==="x"||u.dim==="radius"?0:1,c=[],p=0,v=[],h=[],d=[],m=[];if(l){for(p=0;p<n.length;p+=2){var g=e||n;if(!Si(g[p],g[p+1]))m.push(n[p],n[p+1])}n=m}for(p=0;p<n.length-2;p+=2)switch(d[0]=n[p+2],d[1]=n[p+3],h[0]=n[p],h[1]=n[p+1],c.push(h[0],h[1]),s){case"end":v[f]=d[f],v[1-f]=h[1-f],c.push(v[0],v[1]);break;case"middle":var y=(h[f]+d[f])/2,x=[];v[f]=x[f]=y,v[1-f]=h[1-f],x[1-f]=d[1-f],c.push(v[0],v[1]),c.push(x[0],x[1]);break;default:v[f]=h[f],v[1-f]=d[1-f],c.push(v[0],v[1])}return c.push(n[p++],n[p++]),c}function e8(n,e){var r=[],s=n.length,l,u;function f(h,d,m){var g=h.coord,y=(m-g)/(d.coord-g),x=FA(y,[h.color,d.color]);return{coord:m,color:x}}for(var c=0;c<s;c++){var p=n[c],v=p.coord;if(v<0)l=p;else if(v>e){if(u)r.push(f(u,p,e));else if(l)r.push(f(l,p,0),f(l,p,e));break}else{if(l)r.push(f(l,p,0)),l=null;r.push(p),u=p}}return r}function t8(n,e,r){var s=n.getVisual("visualMeta");if(!s||!s.length||!n.count())return;if(e.type!=="cartesian2d")return;var l,u;for(var f=s.length-1;f>=0;f--){var c=n.getDimensionInfo(s[f].dimension);if(l=c&&c.coordDim,l==="x"||l==="y"){u=s[f];break}}if(!u)return;var p=e.getAxis(l),v=W(u.stops,function(C){return{coord:p.toGlobalCoord(p.dataToCoord(C.value)),color:C.color}}),h=v.length,d=u.outerColors.slice();if(h&&v[0].coord>v[h-1].coord)v.reverse(),d.reverse();var m=e8(v,l==="x"?r.getWidth():r.getHeight()),g=m.length;if(!g&&h)return v[0].coord<0?d[1]?d[1]:v[h-1].color:d[0]?d[0]:v[0].color;var y=10,x=m[0].coord-y,S=m[g-1].coord+y,D=S-x;if(D<0.001)return"transparent";I(m,function(C){C.offset=(C.coord-x)/D}),m.push({offset:g?m[g-1].offset:0.5,color:d[1]||"transparent"}),m.unshift({offset:g?m[0].offset:0.5,color:d[0]||"transparent"});var b=new os(0,0,0,0,m,!0);return b[l]=x,b[l+"2"]=S,b}function r8(n,e,r){var s=n.get("showAllSymbol"),l=s==="auto";if(s&&!l)return;var u=r.getAxesByScale("ordinal")[0];if(!u)return;if(l&&i8(u,e))return;var f=e.mapDimension(u.dim),c={};return I(u.getViewLabels(),function(p){if(!p.tick.offInterval)c[za(u.scale,p.tick)]=1}),function(p){return!c.hasOwnProperty(e.get(f,p))}}function i8(n,e){var r=n.getExtent(),s=Math.abs(r[1]-r[0])/n.scale.count();isNaN(s)&&(s=0);var l=e.count(),u=Math.max(1,Math.round(l/5));for(var f=0;f<l;f+=u)if(go.getSymbolSize(e,f)[n.isHorizontal()?1:0]*1.5>s)return!1;return!0}function a8(n){var e=n.length/2;for(;e>0;e--)if(!Si(n[e*2-2],n[e*2-1]))break;return e-1}function nM(n,e){return[n[e*2],n[e*2+1]]}function n8(n,e,r){var s=n.length/2,l=r==="x"?0:1,u,f,c=0,p=-1;for(var v=0;v<s;v++){if(f=n[v*2+l],Si(f,n[v*2+1-l]))continue;if(v===0){u=f;continue}if(u<=e&&f>=e||u>=e&&f<=e){p=v;break}c=v,u=f}return{range:[c,p],t:(e-u)/(f-u)}}function oM(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e<hr.length;e++)if(n.get([hr[e],"endLabel","show"]))return!0;return!1}function j_(n,e,r,s){if(fa(e,"cartesian2d")){var l=s.getModel("endLabel"),u=l.get("valueAnimation"),f=s.getData(),c={lastFrameIndex:0},p=oM(s)?function(g,y){n._endLabelOnDuring(g,y,f,c,u,l,e)}:null,v=e.getBaseAxis().isHorizontal(),h=X_(e,r,s,function(){var g=n._endLabel;if(g&&r){if(c.originalX!=null)g.attr({x:c.originalX,y:c.originalY})}},p);if(!s.get("clip",!0)){var d=h.shape,m=Math.max(d.width,d.height);if(v)d.y-=m,d.height+=m*2;else d.x-=m,d.width+=m*2}if(p)p(1,h);return h}else return Z_(e,r,s)}function o8(n,e){var r=e.getBaseAxis(),s=r.isHorizontal(),l=r.inverse,u=s?l?"right":"left":"center",f=s?"middle":l?"top":"bottom";return{normal:{align:n.get("align")||u,verticalAlign:n.get("verticalAlign")||f}}}var s8=function(n){k(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(){var r=new ve,s=new gn;this.group.add(s.group),this._symbolDraw=s,this._lineGroup=r,this._changePolyState=se(this._changePolyState,this)},e.prototype.render=function(r,s,l){var u=r.coordinateSystem,f=this.group,c=r.getData(),p=r.getModel("lineStyle"),v=r.getModel("areaStyle"),h=c.getLayout("points")||[],d=u.type==="polar",m=this._coordSys,g=this._symbolDraw,y=this._polyline,x=this._polygon,S=this._lineGroup,D=!s.ssr&&r.get("animation"),b=!v.isEmpty(),C=v.get("origin"),A=ym(u,c,C),T=b&&J3(u,c,A),E=r.get("showSymbol"),w=r.get("connectNulls"),L=E&&!d&&r8(r,c,u),M=this._data;if(M&&M.eachItemGraphicEl(function(me,Ge){if(me.__temp)f.remove(me),M.setItemGraphicEl(Ge,null)}),!E)g.remove();f.add(S);var P=!d?r.get("step"):!1,R;if(u&&u.getArea&&r.get("clip",!0)){if(R=u.getArea(),R.width!=null)R.x-=0.1,R.y-=0.1,R.width+=0.2,R.height+=0.2;else if(R.r0)R.r0-=0.5,R.r+=0.5}this._clipShapeForSymbol=R;var N=t8(c,u,l)||c.getVisual("style")[c.getVisual("drawType")];if(!(y&&m.type===u.type&&P===this._step)){if(E&&g.updateData(c,{isIgnore:L,clipShape:R,disableAnimation:!0,getSymbolPoint:function(me){return[h[me*2],h[me*2+1]]}}),D&&this._initSymbolLabelAnimation(c,u,R),P){if(T)T=Cs(T,h,u,P,w);h=Cs(h,null,u,P,w)}if(y=this._newPolyline(h),b)x=this._newPolygon(h,T);else if(x)S.remove(x),x=this._polygon=null;if(!d)this._initOrUpdateEndLabel(r,u,Oa(N));S.setClipPath(j_(this,u,!0,r))}else{if(b&&!x)x=this._newPolygon(h,T);else if(x&&!b)S.remove(x),x=this._polygon=null;if(!d)this._initOrUpdateEndLabel(r,u,Oa(N));var O=S.getClipPath();if(O){var B=j_(this,u,!1,r);$e(O,{shape:B.shape},r)}else S.setClipPath(j_(this,u,!0,r));if(E&&g.updateData(c,{isIgnore:L,clipShape:R,disableAnimation:!0,getSymbolPoint:function(me){return[h[me*2],h[me*2+1]]}}),!tM(this._stackedOnPoints,T)||!tM(this._points,h))if(D)this._doUpdateAnimation(c,T,u,l,P,C,w);else{if(P){if(T)T=Cs(T,h,u,P,w);h=Cs(h,null,u,P,w)}y.setShape({points:h}),x&&x.setShape({points:h,stackedOnPoints:T})}}var F=r.getModel("emphasis"),z=F.get("focus"),H=F.get("blurScope"),G=F.get("disabled");if(y.useStyle(pe(p.getLineStyle(),{fill:"none",stroke:N,lineJoin:"bevel"})),wt(y,r,"lineStyle"),y.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var Z=y.getState("emphasis").style;Z.lineWidth=+y.style.lineWidth+1}ye(y).seriesIndex=r.seriesIndex,it(y,z,H,G);var Q=aM(r.get("smooth")),q=r.get("smoothMonotone");if(y.setShape({smooth:Q,smoothMonotone:q,connectNulls:w}),x){var ae=c.getCalculationInfo("stackedOnSeries"),ce=0;if(x.useStyle(pe(v.getAreaStyle(),{fill:N,opacity:0.7,lineJoin:"bevel",decal:c.getVisual("style").decal})),ae)ce=aM(ae.get("smooth"));x.setShape({smooth:Q,stackedOnSmooth:ce,smoothMonotone:q,connectNulls:w}),wt(x,r,"areaStyle"),ye(x).seriesIndex=r.seriesIndex,it(x,z,H,G)}var ne=this._changePolyState;c.eachItemGraphicEl(function(me){me&&(me.onHoverStateChange=ne)}),this._polyline.onHoverStateChange=ne,this._data=c,this._coordSys=u,this._stackedOnPoints=T,this._points=h,this._step=P,this._valueOrigin=C;var de=r.get("triggerEvent"),ze=r.get("triggerLineEvent"),dt=ze===!0||de===!0||de==="line",ke=ze===!0||de===!0||de==="area";this.packEventData(r,y,dt),x&&this.packEventData(r,x,ke)},e.prototype.packEventData=function(r,s,l){ye(s).eventData=l?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:s===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,s,l,u){var f=r.getData(),c=na(f,u);if(this._changePolyState("emphasis"),!(c instanceof Array)&&c!=null&&c>=0){var p=f.getLayout("points"),v=f.getItemGraphicEl(c);if(!v){var h=p[c*2],d=p[c*2+1];if(Si(h,d))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,d))return;var m=r.get("zlevel")||0,g=r.get("z")||0;v=new go(f,c),v.x=h,v.y=d,v.setZ(m,g);var y=v.getSymbolPath().getTextContent();if(y)y.zlevel=m,y.z=g,y.z2=this._polyline.z2+1;v.__temp=!0,f.setItemGraphicEl(c,v),v.stopSymbolAnimation(!0),this.group.add(v)}v.highlight()}else qe.prototype.highlight.call(this,r,s,l,u)},e.prototype.downplay=function(r,s,l,u){var f=r.getData(),c=na(f,u);if(this._changePolyState("normal"),c!=null&&c>=0){var p=f.getItemGraphicEl(c);if(p)if(p.__temp)f.setItemGraphicEl(c,null),this.group.remove(p);else p.downplay()}else qe.prototype.downplay.call(this,r,s,l,u)},e.prototype._changePolyState=function(r){var s=this._polygon;$c(this._polyline,r),s&&$c(s,r)},e.prototype._newPolyline=function(r){var s=this._polyline;if(s)this._lineGroup.remove(s);return s=new AI({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(s),this._polyline=s,s},e.prototype._newPolygon=function(r,s){var l=this._polygon;if(l)this._lineGroup.remove(l);return l=new Sm({shape:{points:r,stackedOnPoints:s},segmentIgnoreThreshold:2}),this._lineGroup.add(l),this._polygon=l,l},e.prototype._initSymbolLabelAnimation=function(r,s,l){var u,f,c=s.getBaseAxis(),p=c.inverse;if(s.type==="cartesian2d")u=c.isHorizontal(),f=!1;else if(s.type==="polar")u=c.dim==="angle",f=!0;var v=r.hostModel,h=v.get("animationDuration");if(ie(h))h=h(null);var d=v.get("animationDelay")||0,m=ie(d)?d(null):d;r.eachItemGraphicEl(function(g,y){var x=g;if(x){var S=[g.x,g.y],D=void 0,b=void 0,C=void 0;if(l)if(f){var A=l,T=s.pointToCoord(S);if(u)D=A.startAngle,b=A.endAngle,C=-T[1]/180*Math.PI;else D=A.r0,b=A.r,C=T[0]}else{var E=l;if(u)D=E.x,b=E.x+E.width,C=g.x;else D=E.y+E.height,b=E.y,C=g.y}var w=b===D?0:(C-D)/(b-D);if(p)w=1-w;var L=ie(d)?d(y):h*w+m,M=x.getSymbolPath(),P=M.getTextContent();if(x.attr({scaleX:0,scaleY:0}),x.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:L}),P)P.animateFrom({style:{opacity:0}},{duration:300,delay:L});M.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,s,l){var u=r.getModel("endLabel");if(oM(r)){var f=r.getData(),c=this._polyline,p=f.getLayout("points");if(!p){c.removeTextContent(),this._endLabel=null;return}var v=this._endLabel;if(!v)v=this._endLabel=new Ve({z2:200}),v.ignoreClip=!0,c.setTextContent(this._endLabel),c.disableLabelAnimation=!0;var h=a8(p);if(h>=0)Mt(c,St(r,"endLabel"),{inheritColor:l,labelFetcher:r,labelDataIndex:h,defaultText:function(d,m,g){return g!=null?mm(f,g):hs(f,d)},enableTextSetter:!0},o8(u,s)),c.textConfig.position=null}else if(this._endLabel)this._polyline.removeTextContent(),this._endLabel=null},e.prototype._endLabelOnDuring=function(r,s,l,u,f,c,p){var v=this._endLabel,h=this._polyline;if(v){if(r<1&&u.originalX==null)u.originalX=v.x,u.originalY=v.y;var d=l.getLayout("points"),m=l.hostModel,g=m.get("connectNulls"),y=c.get("precision"),x=c.get("distance")||0,S=p.getBaseAxis(),D=S.isHorizontal(),b=S.inverse,C=s.shape,A=b?D?C.x:C.y+C.height:D?C.x+C.width:C.y,T=(D?x:0)*(b?-1:1),E=(D?0:-x)*(b?-1:1),w=D?"x":"y",L=n8(d,A,w),M=L.range,P=M[1]-M[0],R=void 0;if(P>=1){if(P>1&&!g){var N=nM(d,M[0]);v.attr({x:N[0]+T,y:N[1]+E}),f&&(R=m.getRawValue(M[0]))}else{var N=h.getPointOn(A,w);N&&v.attr({x:N[0]+T,y:N[1]+E});var O=m.getRawValue(M[0]),B=m.getRawValue(M[1]);f&&(R=Gh(l,y,O,B,L.t))}u.lastFrameIndex=M[0]}else{var F=r===1||u.lastFrameIndex>0?M[0]:0,N=nM(d,F);f&&(R=m.getRawValue(F)),v.attr({x:N[0]+T,y:N[1]+E})}if(f){var z=uo(v);if(typeof z.setLabelText==="function")z.setLabelText(R)}}},e.prototype._doUpdateAnimation=function(r,s,l,u,f,c,p){var v=this._polyline,h=this._polygon,d=r.hostModel,m=H_(this._data,r,this._stackedOnPoints,s,this._coordSys,l,this._valueOrigin,c),{current:g,stackedOnCurrent:y,next:x,stackedOnNext:S}=m;if(f)y=Cs(m.stackedOnCurrent,m.current,l,f,p),g=Cs(m.current,null,l,f,p),S=Cs(m.stackedOnNext,m.next,l,f,p),x=Cs(m.next,null,l,f,p);if(iM(g,x)>3000||h&&iM(y,S)>3000){if(v.stopAnimation(),v.setShape({points:x}),h)h.stopAnimation(),h.setShape({points:x,stackedOnPoints:S});return}v.shape.__points=m.current,v.shape.points=g;var D={shape:{points:x}};if(m.current!==g)D.shape.__points=m.next;if(v.stopAnimation(),Oe(v,D,d),h){if(h.setShape({points:g,stackedOnPoints:y}),h.stopAnimation(),Oe(h,{shape:{stackedOnPoints:S}},d),v.shape.points!==h.shape.points)h.shape.points=v.shape.points}var b=[],C=m.status;for(var A=0;A<C.length;A++){var T=C[A].cmd;if(T==="="){var E=r.getItemGraphicEl(C[A].idx1);if(E)b.push({el:E,ptIdx:A})}}if(v.animators&&v.animators.length)v.animators[0].during(function(){h&&h.dirtyShape();var w=v.shape.__points;for(var L=0;L<b.length;L++){var M=b[L].el,P=b[L].ptIdx*2;M.x=w[P],M.y=w[P+1],M.markRedraw()}})},e.prototype.remove=function(r){var s=this.group,l=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),l&&l.eachItemGraphicEl(function(u,f){if(u.__temp)s.remove(u),l.setItemGraphicEl(f,null)}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(qe),sM=s8;function Va(n,e){return{seriesType:n,plan:Ba(),reset:function(r){var s=r.getData(),{coordinateSystem:l,pipelineContext:u}=r,f=e||u.large;if(!l)return;var c=W(l.dimensions,function(g){return s.mapDimension(g)}).slice(0,2),p=c.length,v=s.getCalculationInfo("stackResultDimension");if(zi(s,c[0]))c[0]=v;if(zi(s,c[1]))c[1]=v;var h=s.getStore(),d=s.getDimensionIndex(c[0]),m=s.getDimensionIndex(c[1]);return p&&{progress:function(g,y){var x=g.end-g.start,S=f&&Jr(x*p),D=[],b=[];for(var C=g.start,A=0;C<g.end;C++){var T=void 0;if(p===1){var E=h.get(d,C);T=l.dataToPoint(E,null,b)}else D[0]=h.get(d,C),D[1]=h.get(m,C),T=l.dataToPoint(D,null,b);if(f)S[A++]=T[0],S[A++]=T[1];else y.setItemLayout(C,T.slice())}if(f)y.setLayout("points",S),y.setLayout("pointsRange",{start:g.start,end:g.end})}}}}}var l8={average:function(n){var e=0,r=0;for(var s=0;s<n.length;s++)if(!isNaN(n[s]))e+=n[s],r++;return r===0?NaN:e/r},sum:function(n){var e=0;for(var r=0;r<n.length;r++)e+=n[r]||0;return e},max:function(n){var e=-1/0;for(var r=0;r<n.length;r++)n[r]>e&&(e=n[r]);return isFinite(e)?e:NaN},min:function(n){var e=1/0;for(var r=0;r<n.length;r++)n[r]<e&&(e=n[r]);return isFinite(e)?e:NaN},nearest:function(n){return n[0]}},u8=function(n){return Math.round(n.length/2)};function Ep(n){return{seriesType:n,reset:function(e,r,s){var l=e.getData(),u=e.get("sampling"),f=e.coordinateSystem,c=l.count();if(c>10&&f.type==="cartesian2d"&&u){var p=f.getBaseAxis(),v=f.getOtherAxis(p),h=p.getExtent(),d=s.getDevicePixelRatio(),m=Math.abs(h[1]-h[0])*(d||1),g=Math.round(c/m);if(isFinite(g)&&g>1){if(u==="lttb")e.setData(l.lttbDownSample(l.mapDimension(v.dim),1/g));else if(u==="minmax")e.setData(l.minmaxDownSample(l.mapDimension(v.dim),1/g));var y=void 0;if(K(u))y=l8[u];else if(ie(u))y=u;if(y)e.setData(l.downSample(l.mapDimension(v.dim),1/g,y,u8))}}}}}function $_(n){n.registerChartView(sM),n.registerSeriesModel(xI),n.registerLayout(Va("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),s=e.getModel("lineStyle").getLineStyle();if(s&&!s.stroke)s.stroke=r.getVisual("style").fill;r.setVisual("legendLineStyle",s)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,Ep("line"))}var f8=he(),wp=he(),bi={estimate:1,determine:2};function xf(n){return{out:{noPxChangeTryDetermine:[]},kind:n}}function lM(n,e){var r=n.getLabelModel().get("customValues");if(r){var s=n.scale;return{labels:W(fM(r,s),function(l,u){return{formattedLabel:Tp(n)(l,u),rawLabel:s.getLabel(l),tick:l}})}}return n.type==="category"?c8(n,e):v8(n)}function uM(n,e,r){var s=n.scale,l=n.getTickModel().get("customValues");if(l)return{ticks:fM(l,s)};return n.type==="category"?p8(n,e):{ticks:s.getTicks(r)}}function fM(n,e){var r=e.getExtent(),s=[];return I(n,function(l){if(l=e.parse(l),l>=r[0]&&l<=r[1])s.push(l)}),Yu(s,JT,null),Rt(s),W(s,function(l){return{value:l}})}function c8(n,e){var r=n.getLabelModel(),s=cM(n,r,e);return!r.get("show")||n.scale.isBlank()?{labels:[]}:s}function cM(n,e,r){var s=d8(n),l=Om(e),u=r.kind===bi.estimate;if(!u){var f=vM(s,l);if(f)return f}var c,p;if(ie(l))c=Bm(n,l,!1);else p=l==="auto"?m8(n,r):l,c=Bm(n,p,!1);var v={labels:c,labelCategoryInterval:p};if(!u)Q_(s,l,v);else r.out.noPxChangeTryDetermine.push(function(){return Q_(s,l,v),!0});return v}function p8(n,e){var r=h8(n),s=Om(e),l=vM(r,s);if(l)return l;var u,f;if(!e.get("show")||n.scale.isBlank())u=[];if(ie(s))u=Bm(n,s,!0);else if(s==="auto"){var c=cM(n,n.getLabelModel(),xf(bi.determine));f=c.labelCategoryInterval,u=W(c.labels,function(p){return p.tick})}else f=s,u=Bm(n,f,!0);return Q_(r,s,{ticks:u,tickCategoryInterval:f})}function v8(n){var e=n.scale.getTicks(),r=Tp(n);return{labels:W(e,function(s,l){return{formattedLabel:r(s,l),rawLabel:n.scale.getLabel(s),tick:s}})}}var h8=pM("axisTick"),d8=pM("axisLabel");function pM(n){return function(r){return wp(r)[n]||(wp(r)[n]={list:[]})}}function vM(n,e){for(var r=0;r<n.list.length;r++)if(n.list[r].key===e)return n.list[r].value}function Q_(n,e,r){return n.list.push({key:e,value:r}),r}function m8(n,e){if(e.kind===bi.estimate){var r=n.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return wp(n).autoInterval=r,!0}),r}var s=wp(n).autoInterval;return s!=null?s:wp(n).autoInterval=n.calculateCategoryInterval(e)}function hM(n,e){var r=e.kind,s=y8(n),l=Tp(n),u=(s.axisRotate-s.labelRotate)/180*Math.PI,f=n.scale,c=f.getExtent(),p=f.count();if(c[1]-c[0]<1)return 0;var v=1,h=40;if(p>h)v=Math.max(1,Math.floor(p/h));var d=c[0],m=n.dataToCoord(d+1)-n.dataToCoord(d),g=Math.abs(m*Math.cos(u)),y=Math.abs(m*Math.sin(u)),x=0,S=0;for(;d<=c[1];d+=v){var D=0,b=0,C=wu(l({value:d}),s.font,"center","top");D=C.width*1.3,b=C.height*1.3,x=Math.max(x,D,7),S=Math.max(S,b,7)}var A=x/g,T=S/y;isNaN(A)&&(A=1/0),isNaN(T)&&(T=1/0);var E=Math.max(0,Math.floor(Math.min(A,T)));if(r===bi.estimate)return e.out.noPxChangeTryDetermine.push(se(g8,null,n,E,p)),E;var w=dM(n,E,p);return w!=null?w:E}function g8(n,e,r){return dM(n,e,r)==null}function dM(n,e,r){var s=f8(n.model),l=n.getExtent(),{lastAutoInterval:u,lastTickCount:f}=s;if(u!=null&&f!=null&&Math.abs(u-e)<=1&&Math.abs(f-r)<=1&&u>e&&s.axisExtent0===l[0]&&s.axisExtent1===l[1])return u;else s.lastTickCount=r,s.lastAutoInterval=e,s.axisExtent0=l[0],s.axisExtent1=l[1]}function y8(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Bm(n,e,r){var s=Tp(n),l=n.scale,u=[],f=ie(e);return wm(l,f?0:e,function(c,p){var v=l.getLabel(c);if(f){var h=!!e(c.value,v);if(c.offInterval=!h,!h&&!p)return}u.push(r?c:{formattedLabel:s(c),rawLabel:v,tick:c})}),u}var Fm=he();function mM(n){Fm(n).prepare={}}function gM(n){Fm(n).fullUpdate={}}function zm(n){return Fm(n).prepare}function Zl(n){return Fm(n).fullUpdate}var x8=oa(),Ip="|&",_f=he(),Vm=-2,yM=-1,_8=he();function tS(n,e){var r=n.model,s=_f(Zl(r.ecModel)).keyed,l=s&&s.get(e);return l&&l.get(r.uid)}function xM(n,e){return DM(tS(n,e))}function _M(n,e){var r=[];return SM(n.model.ecModel,function(s){for(var l=0;l<e.length;l++)if(e[l]&&s.serByIdx[e[l].seriesIndex])r.push(DM(s))}),r}function SM(n,e){var r=_f(Zl(n)).keyed;r&&r.each(function(s,l){s.each(function(u,f){e(u,l,f)})})}function DM(n){return{liPosMinGap:n?n.liPosMinGap:void 0}}function bM(n,e){var r=n.model.ecModel,s=_f(Zl(r)).axSer;s&&Mp(r,s.get(n.model.uid),e)}function Dn(n,e,r){var s=tS(n,e);s&&Mp(n.model.ecModel,s.sers,r)}function Mp(n,e,r){if(!e)return;for(var s=0;s<e.length;s++){var l=e[s];if(!n.isSeriesFiltered(l))r(l)}}function CM(n,e){var r=tS(n,e);if(!r||!r.sers.length)return 0;var s=0;return Mp(n.model.ecModel,r.sers,function(){s++}),s}function Sf(n,e,r){var s=_f(Zl(n)).keyed,l=s&&s.get(e);l&&l.each(function(u){r(u.axis)})}function rS(n,e){var r=n.model,s=_f(Zl(r.ecModel)).keys;s&&I(s.get(r.uid),function(l){if(!1)var u;e(l)})}function S8(n){var e=_8(zm(n)),r=e.keyed||(e.keyed=re());SM(n,function(s,l,u){var f=r.get(l)||r.set(l,re()),c=f.get(u)||f.set(u,{});if(s.metrics.liPosMinGap)TM.liPosMinGap(n,s,c)})}function AM(n,e){TM[n]=e}var TM={};function ca(n,e,r){if(!n)return;var s=e.ecModel,l=_f(Zl(s)),u=n.model.uid;if(!1)var f,c;var p=l.axSer||(l.axSer=re()),v=p.get(u)||p.set(u,[]);if(!1)var h;v.push(e);var d=e.subType,m=e.getBaseAxis()===n,g=eS.get(J_(d,m,r))||eS.get(J_(d,m,null));if(!g)return;var y=l.keyed||(l.keyed=re()),x=l.keys||(l.keys=re()),S=g.key,D=y.get(S)||y.set(S,re()),b=D.get(u);if(!b)b=D.set(u,{axis:n,sers:[],serByIdx:[]}),b.metrics=g.getMetrics(n),(x.get(u)||x.set(u,[])).push(S);b.sers.push(e),b.serByIdx[e.seriesIndex]=e}function J_(n,e,r){return n+Ip+te(e,!0)+Ip+(r||"")}function Df(n,e){var r=J_(e.seriesType,e.baseAxis,e.coordSysType);eS.set(r,e),x8(n,function(){n.registerProcessor(n.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:S8})})}var eS=re();var D8=0.8;function mr(n,e){e=e||{};var r={w:NaN,w2:NaN},s=n.scale,l=e.fromStat,u=e.min,f=RI(s);if(!vr(f))f=NaN;var c=n.getExtent(),p=_t(c[1]-c[0]);if(nr(s))b8(r,n,f,p);else if(l)C8(r,n,f,p,l);else if(u==null);if(u!=null)r.w=vr(r.w)?Be(u,r.w):u;return r}function b8(n,e,r,s){var l=e.onBand,u=r+(l?1:0);if(u===0&&(u=1),n.w=s/u,!l&&r&&s)n.w2=n.w*r/s}function C8(n,e,r,s,l){var u=!1,f=-1/0;if(I(l.key?[xM(e,l.key)]:_M(e,l.sers||[]),function(c){var p=c.liPosMinGap;if(p!=null){if(p>0){if(p>f)f=p;u=!1}else if(p===Vm)u=!0}}),vr(r)&&r>0&&vr(f))n.w=s/r*f,n.w2=f;else if(u)n.w=s*D8,n.w2=n.w*r/s}var EM=[0,1],A8=function(){function n(e,r,s){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=s||[0,0]}return n.prototype.contain=function(e){var r=this._extent,s=Math.min(r[0],r[1]),l=Math.max(r[0],r[1]);return e>=s&&e<=l},n.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,r){var s=this._extent;s[0]=e,s[1]=r},n.prototype.dataToCoord=function(e,r){var s=this.scale;return e=s.normalize(s.parse(e)),Ze(e,EM,wM(this),r)},n.prototype.coordToData=function(e,r){var s=Ze(e,wM(this),EM,r);return this.scale.scale(s)},n.prototype.pointToData=function(e,r){return},n.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),s=uM(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),l=W(s.ticks,function(c){return{coord:this.dataToCoord(za(this.scale,c)),tick:c}},this),u=r.get("alignWithLabel"),f=T8(this,l,u);return W(l,function(c){return{coord:c.coord,tickValue:c.tick.value,onBand:f}})},n.prototype.getMinorTicksCoords=function(){if(nr(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");if(!(r>0&&r<100))r=5;var s=this.scale.getMinorTicks(r),l=W(s,function(u){return W(u,function(f){return{coord:this.dataToCoord(f),tickValue:f}},this)},this);return l},n.prototype.getViewLabels=function(e){return e=e||xf(bi.determine),lM(this,e).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){return mr(this,{min:1}).w},n.prototype.calculateCategoryInterval=function(e){return e=e||xf(bi.determine),hM(this,e)},n}();function wM(n){var e=n.getExtent();if(n.onBand){var r=e[1]-e[0],s=r/n.scale.count()/2;e[0]+=s,e[1]-=s}return e}function T8(n,e,r){var s=e.length;if(!n.onBand||r||!s)return!1;var l=mr(n).w;if(!l)return!1;I(e,function(c){c.coord-=l/2});var u=n.scale.getExtent(),f=e[s-1];if(f.tick.offInterval)e.pop();return e.push({coord:f.coord+l,tick:{value:u[1]+1}}),!0}var Ur=A8;var E8=function(n){k(e,n);function e(r,s,l,u,f){var c=n.call(this,r,s,l)||this;return c.index=0,c.type=u||"value",c.position=f||"bottom",c}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var s=this.getExtent();return s[0]=this.toGlobalCoord(s[0]),s[1]=this.toGlobalCoord(s[1]),r&&s[0]>s[1]&&s.reverse(),s},e.prototype.pointToData=function(r,s){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),s)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e}(Ur),IM=E8;var MM=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],w8=1,Um=2,PM=w8|Um;function Lp(n,e,r){r=r||PM,e?n.dirty|=r:n.dirty&=~r}function RM(n,e){return e=e||PM,n.dirty==null||!!(n.dirty&e)}function Ua(n){if(!n)return;if(RM(n))aS(n,n.label,n);return n}function aS(n,e,r){var s=e.getComputedTransform();n.transform=dd(n.transform,s);var l=n.localRect=Ju(n.localRect,e.getBoundingRect()),u=e.style,f=u.margin,c=r&&r.marginForce,p=r&&r.minMarginForce,v=r&&r.marginDefault,h=u.__marginType;if(h==null&&v)f=v,h=Ll.textMargin;for(var d=0;d<4;d++)iS[d]=h===Ll.minMargin&&p&&p[d]!=null?p[d]:c&&c[d]!=null?c[d]:f?f[d]:0;if(h===Ll.textMargin)ss(l,iS,!1,!1);var m=n.rect=Ju(n.rect,l);if(s)m.applyTransform(s);if(h===Ll.minMargin)ss(m,iS,!1,!1);return n.axisAligned=hd(s),(n.label=n.label||{}).ignore=e.ignore,Lp(n,!1),Lp(n,!0,Um),n}var iS=[0,0,0,0];function OM(n,e,r){if(n.transform=dd(n.transform,r),n.localRect=Ju(n.localRect,e),n.rect=Ju(n.rect,e),r)n.rect.applyTransform(r);return n.axisAligned=hd(r),n.obb=void 0,(n.label=n.label||{}).ignore=!1,n}function NM(n,e){if(!n)return;n.label.x+=e.x,n.label.y+=e.y,n.label.markRedraw();var r=n.transform;if(r)r[4]+=e.x,r[5]+=e.y;var s=n.rect;if(s)s.x+=e.x,s.y+=e.y;var l=n.obb;if(l)l.fromBoundingRect(n.localRect,r)}function Pp(n,e){for(var r=0;r<MM.length;r++){var s=MM[r];if(n[s]==null)n[s]=e[s]}return Ua(n)}function LM(n){var e=n.obb;if(!e||RM(n,Um))n.obb=e=e||new cd,e.fromBoundingRect(n.localRect,n.transform),Lp(n,!1,Um);return e}function Rp(n,e,r,s,l){var u=n.length,f=la[e],c=La[e];if(u<2)return!1;n.sort(function(M,P){return M.rect[f]-P.rect[f]});var p=0,v,h=!1,d=0;for(var m=0;m<u;m++){var g=n[m],y=g.rect;if(v=y[f]-p,v<0)y[f]-=v,g.label[f]-=v,h=!0;var x=Math.max(-v,0);d+=x,p=y[f]+y[c]}if(d>0&&l)E(-d/u,0,u);var S=n[0],D=n[u-1],b,C;if(A(),b<0&&w(-b,0.8),C<0&&w(C,0.8),A(),T(b,C,1),T(C,b,-1),A(),b<0)L(-b);if(C<0)L(C);function A(){b=S.rect[f]-r,C=s-D.rect[f]-D.rect[c]}function T(M,P,R){if(M<0){var N=Math.min(P,-M);if(N>0){E(N*R,0,u);var O=N+M;if(O<0)w(-O*R,1)}else w(-M*R,1)}}function E(M,P,R){if(M!==0)h=!0;for(var N=P;N<R;N++){var O=n[N],B=O.rect;B[f]+=M,O.label[f]+=M}}function w(M,P){var R=[],N=0;for(var O=1;O<u;O++){var B=n[O-1].rect,F=Math.max(n[O].rect[f]-B[f]-B[c],0);R.push(F),N+=F}if(!N)return;var z=Math.min(Math.abs(M)/N,P);if(M>0)for(var O=0;O<u-1;O++){var H=R[O]*z;E(H,0,O+1)}else for(var O=u-1;O>0;O--){var H=R[O-1]*z;E(-H,O,u)}}function L(M){var P=M<0?-1:1;M=Math.abs(M);var R=Math.ceil(M/(u-1));for(var N=0;N<u-1;N++){if(P>0)E(R,0,N+1);else E(-R,u-N-1,u);if(M-=R,M<=0)return}}return h}function kM(n){for(var e=0;e<n.length;e++){var r=n[e],{defaultAttr:s,labelLine:l}=r;r.label.attr("ignore",s.ignore),l&&l.attr("ignore",s.labelGuideIgnore)}}function Gm(n){var e=[];n.sort(function(v,h){return(h.suggestIgnore?1:0)-(v.suggestIgnore?1:0)||h.priority-v.priority});function r(v){if(!v.ignore){var h=v.ensureState("emphasis");if(h.ignore==null)h.ignore=!1}v.ignore=!0}for(var s=0;s<n.length;s++){var l=Ua(n[s]);if(l.label.ignore)continue;var{label:u,labelLine:f}=l,c=!1;for(var p=0;p<e.length;p++)if(Hm(l,e[p],null,{touchThreshold:0.05})){c=!0;break}if(c)r(u),f&&r(f);else e.push(l)}}function Hm(n,e,r,s){if(!n||!e)return!1;if(n.label&&n.label.ignore||e.label&&e.label.ignore)return!1;if(!n.rect.intersect(e.rect,r,s))return!1;if(n.axisAligned&&e.axisAligned)return!0;return LM(n).intersect(LM(e),r,s)}var I8=null;function _o(){return I8}var BM="expandAxisBreak";var As=Math.PI,M8=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],L8=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ts=he(),VM=he(),oS=function(){function n(e){this.recordMap={},this.resolveAxisNameOverlap=e}return n.prototype.ensureRecord=function(e){var r=e.axis.dim,s=e.componentIndex,l=this.recordMap,u=l[r]||(l[r]=[]);return u[s]||(u[s]={ready:{}})},n}();function P8(n,e,r,s){var l=r.axis,u=e.ensureRecord(r),f=[],c,p=uS(n.axisName)&&bs(n.nameLocation);I(s,function(y){var x=Ua(y);if(!x||x.label.ignore)return;f.push(x);var S=u.transGroup;if(p){if(S.transform?Zr(Op,S.transform):Gn(Op),x.transform)Sa(Op,Op,x.transform);De.copy(Wm,x.localRect),Wm.applyTransform(Op),c?c.union(Wm):De.copy(c=new De(0,0,0,0),Wm)}});var v=Math.abs(u.dirVec.x)>0.1?"x":"y",h=u.transGroup[v];if(f.sort(function(y,x){return Math.abs(y.label[v]-h)-Math.abs(x.label[v]-h)}),p&&c){var d=l.getExtent(),m=Math.min(d[0],d[1]),g=Math.max(d[0],d[1])-m;c.union(new De(m,0,g,1))}u.stOccupiedRect=c,u.labelInfoList=f}var Op=Ct(),Wm=new De(0,0,0,0),sS=function(n,e,r,s,l,u){if(bs(n.nameLocation)){var f=u.stOccupiedRect;if(f)UM(OM({},f,u.transGroup.transform),s,l)}else lS(u.labelInfoList,u.dirVec,s,l)};function UM(n,e,r){var s=new Le;if(Hm(n,e,s,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:0.05}))NM(e,s)}function lS(n,e,r,s){var l=Le.dot(s,e)>=0;for(var u=0,f=n.length;u<f;u++){var c=n[l?u:f-1-u];if(!c.label.ignore)UM(c,r,s)}}var Kl=function(){function n(e,r,s,l){this.group=new ve,this._axisModel=e,this._api=r,this._local={},this._shared=l||new oS(sS),this._resetCfgDetermined(s)}return n.prototype.updateCfg=function(e){if(!1)var r;var s=this._cfg.raw;s.position=e.position,s.labelOffset=e.labelOffset,this._resetCfgDetermined(s)},n.prototype.__getRawCfg=function(){return this._cfg.raw},n.prototype._resetCfgDetermined=function(e){var r=this._axisModel,s=r.getDefaultOption?r.getDefaultOption():{},l=te(e.axisName,r.get("name")),u=r.get("nameMoveOverlap");if(u==null||u==="auto")u=te(e.defaultNameMoveOverlap,!0);var f={raw:e,position:e.position,rotation:e.rotation,nameDirection:te(e.nameDirection,1),tickDirection:te(e.tickDirection,1),labelDirection:te(e.labelDirection,1),labelOffset:te(e.labelOffset,0),silent:te(e.silent,!0),axisName:l,nameLocation:Jt(r.get("nameLocation"),s.nameLocation,"end"),shouldNameMoveOverlap:uS(l)&&u,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=f;var c=new ve({x:f.position[0],y:f.position[1],rotation:f.rotation});c.updateTransform(),this._transformGroup=c;var p=this._shared.ensureRecord(r);p.transGroup=this._transformGroup,p.dirVec=new Le(Math.cos(-f.rotation),Math.sin(-f.rotation))},n.prototype.build=function(e,r){var s=this;if(!e)e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0};return I(R8,function(l){if(e[l])O8[l](s._cfg,s._local,s._shared,s._axisModel,s.group,s._transformGroup,s._api,r||{})}),this},n.innerTextLayout=function(e,r,s){var l=hx(r-e),u,f;if(es(l))f=s>0?"top":"bottom",u="center";else if(es(l-As))f=s>0?"bottom":"top",u="center";else if(f="middle",l>0&&l<As)u=s>0?"right":"left";else u=s>0?"left":"right";return{rotation:l,textAlign:u,textVerticalAlign:f}},n.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},n.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},n}(),R8=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],O8={axisLine:function(n,e,r,s,l,u,f){if(!1)var c;var p=s.get(["axisLine","show"]);if(p==="auto"){if(p=!0,n.raw.axisLineAutoShow!=null)p=!!n.raw.axisLineAutoShow}if(!p)return;var v=s.axis.getExtent(),h=u.transform,d=[v[0],0],m=[v[1],0],g=d[0]>m[0];if(h)er(d,d,h),er(m,m,h);var y=V({lineCap:"round"},s.getModel(["axisLine","lineStyle"]).getLineStyle()),x={strokeContainThreshold:n.raw.strokeContainThreshold||5,silent:!0,z2:1,style:y};if(s.get(["axisLine","breakLine"])&&fs(s.axis.scale))_o().buildAxisBreakLine(s,l,u,x);else{var S=new Zt(V({shape:{x1:d[0],y1:d[1],x2:m[0],y2:m[1]}},x));oo(S.shape,S.style.lineWidth),S.anid="line",l.add(S)}var D=s.get(["axisLine","symbol"]);if(D!=null){var b=s.get(["axisLine","symbolSize"]);if(K(D))D=[D,D];if(K(b)||Te(b))b=[b,b];var C=ka(s.get(["axisLine","symbolOffset"])||0,b),A=b[0],T=b[1];I([{rotate:n.rotation+Math.PI/2,offset:C[0],r:0},{rotate:n.rotation-Math.PI/2,offset:C[1],r:Math.sqrt((d[0]-m[0])*(d[0]-m[0])+(d[1]-m[1])*(d[1]-m[1]))}],function(E,w){if(D[w]!=="none"&&D[w]!=null){var L=Dt(D[w],-A/2,-T/2,A,T,y.stroke,!0),M=E.r+E.offset,P=g?m:d;L.attr({rotation:E.rotate,x:P[0]+M*Math.cos(n.rotation),y:P[1]-M*Math.sin(n.rotation),silent:!0,z2:11}),l.add(L)}})}},axisTickLabelEstimate:function(n,e,r,s,l,u,f,c){if(!1)var p;var v=zM(e,l,c);if(v)FM(n,e,r,s,l,u,f,bi.estimate)},axisTickLabelDetermine:function(n,e,r,s,l,u,f,c){if(!1)var p;var v=zM(e,l,c);if(v)FM(n,e,r,s,l,u,f,bi.determine);var h=F8(n,l,u,s);B8(n,e.labelLayoutList,h),z8(n,l,u,s,n.tickDirection)},axisName:function(n,e,r,s,l,u,f,c){var p=r.ensureRecord(s);if(!1)var v;if(e.nameEl)l.remove(e.nameEl),e.nameEl=p.nameLayout=p.nameLocation=null;var h=n.axisName;if(!uS(h))return;var{nameLocation:d,nameDirection:m}=n,g=s.getModel("nameTextStyle"),y=s.get("nameGap")||0,x=s.axis.getExtent(),S=s.axis.inverse?-1:1,D=new Le(0,0),b=new Le(0,0);if(d==="start")D.x=x[0]-S*y,b.x=-S;else if(d==="end")D.x=x[1]+S*y,b.x=S;else D.x=(x[0]+x[1])/2,D.y=n.labelOffset+m*y,b.y=m;var C=Ct();b.transform(en(C,C,n.rotation));var A=s.get("nameRotate");if(A!=null)A=A*As/180;var T,E;if(bs(d))T=Kl.innerTextLayout(n.rotation,A!=null?A:n.rotation,m);else if(T=N8(n.rotation,d,A||0,x),E=n.raw.axisNameAvailableWidth,E!=null)E=Math.abs(E/Math.sin(T.rotation)),!isFinite(E)&&(E=null);var w=g.getFont(),L=s.get("nameTruncate",!0)||{},M=L.ellipsis,P=Ut(n.raw.nameTruncateMaxWidth,L.maxWidth,E),R=c.nameMarginLevel||0,N=new Ve({x:D.x,y:D.y,rotation:T.rotation,silent:Kl.isLabelSilent(s),style:ut(g,{text:h,font:w,overflow:"truncate",width:P,ellipsis:M,fill:g.getTextColor()||s.get(["axisLine","lineStyle","color"]),align:g.get("align")||T.textAlign,verticalAlign:g.get("verticalAlign")||T.textVerticalAlign}),z2:1});if(ls({el:N,componentModel:s,itemName:h}),N.__fullText=h,N.anid="name",s.get("triggerEvent")){var O=Kl.makeAxisEventDataBase(s);O.targetType="axisName",O.name=h,ye(N).eventData=O}u.add(N),N.updateTransform(),e.nameEl=N;var B=p.nameLayout=Ua({label:N,priority:N.z2,defaultAttr:{ignore:N.ignore},marginDefault:bs(d)?M8[R]:L8[R]});if(p.nameLocation=d,l.add(N),N.decomposeTransform(),n.shouldNameMoveOverlap&&B){var F=r.ensureRecord(s);r.resolveAxisNameOverlap(n,r,s,B,b,F)}}};function FM(n,e,r,s,l,u,f,c){if(!HM(e))V8(n,e,l,c,s,f);var p=e.labelLayoutList;U8(n,s,p,u),W8(s,n.rotation,p);var v=n.optionHideOverlap;if(k8(s,p,v),v)Gm(Ke(p,function(h){return h&&!h.label.ignore}));P8(n,r,s,p)}function N8(n,e,r,s){var l=hx(r-n),u,f,c=s[0]>s[1],p=e==="start"&&!c||e!=="start"&&c;if(es(l-As/2))f=p?"bottom":"top",u="center";else if(es(l-As*1.5))f=p?"top":"bottom",u="center";else if(f="middle",l<As*1.5&&l>As/2)u=p?"left":"right";else u=p?"right":"left";return{rotation:l,textAlign:u,textVerticalAlign:f}}function k8(n,e,r){var s=n.axis,l=n.get(["axisLabel","customValues"]);if(JI(s))return;function u(v,h,d){var m=Ua(e[h]),g=Ua(e[d]),y=s.scale;if(!m||!g)return;if(v==null){if(!r&&l)return;var x=Ts(m.label).labelInfo.tick;if(yn(y)&&x.notNice||nr(y)&&x.offInterval){bf(m.label);return}}if(v===!1||m.suggestIgnore){bf(m.label);return}if(g.suggestIgnore){bf(g.label);return}var S=0.1;if(!r){var D=[0,0,0,0];m=Pp({marginForce:D},m),g=Pp({marginForce:D},g)}if(Hm(m,g,null,{touchThreshold:S}))if(v)bf(g.label);else bf(m.label)}var f=n.get(["axisLabel","showMinLabel"]),c=n.get(["axisLabel","showMaxLabel"]),p=e.length;u(f,0,1),u(c,p-1,p-2)}function B8(n,e,r){if(n.showMinorTicks)return;I(e,function(s){if(s&&s.label.ignore)for(var l=0;l<r.length;l++){var u=r[l],f=VM(u),c=Ts(s.label);if(f.tickValue!=null&&!f.onBand&&f.tickValue===c.labelInfo.tick.value){bf(u);return}}})}function bf(n){n&&(n.ignore=!0)}function GM(n,e,r,s,l){var u=[],f=[],c=[];for(var p=0;p<n.length;p++){var v=n[p].coord;if(f[0]=v,f[1]=0,c[0]=v,c[1]=r,e)er(f,f,e),er(c,c,e);var h=new Zt({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:s,z2:2,autoBatch:!0,silent:!0});oo(h.shape,h.style.lineWidth),h.anid=l+"_"+n[p].tickValue,u.push(h);var d=VM(h);d.onBand=!!n[p].onBand,d.tickValue=n[p].tickValue}return u}function F8(n,e,r,s){var l=s.axis,u=s.getModel("axisTick"),f=u.get("show");if(f==="auto"){if(f=!0,n.raw.axisTickAutoShow!=null)f=!!n.raw.axisTickAutoShow}if(!f||l.scale.isBlank())return[];var c=u.getModel("lineStyle"),p=n.tickDirection*u.get("length"),v=l.getTicksCoords(),h=GM(v,r.transform,p,pe(c.getLineStyle(),{stroke:s.get(["axisLine","lineStyle","color"])}),"ticks");for(var d=0;d<h.length;d++)e.add(h[d]);return h}function z8(n,e,r,s,l){var u=s.axis,f=s.getModel("minorTick");if(!n.showMinorTicks||u.scale.isBlank())return;var c=u.getMinorTicksCoords();if(!c.length)return;var p=f.getModel("lineStyle"),v=l*f.get("length"),h=pe(p.getLineStyle(),pe(s.getModel("axisTick").getLineStyle(),{stroke:s.get(["axisLine","lineStyle","color"])}));for(var d=0;d<c.length;d++){var m=GM(c[d],r.transform,v,h,"minorticks_"+d);for(var g=0;g<m.length;g++)e.add(m[g])}}function zM(n,e,r){if(HM(n)){var s=n.axisLabelsCreationContext,l=s.out.noPxChangeTryDetermine;if(r.noPxChange){var u=!0;for(var f=0;f<l.length;f++)u=u&&l[f]();if(u)return!1}if(l.length)e.remove(n.labelGroup),nS(n,null,null,null)}return!0}function V8(n,e,r,s,l,u){var f=l.axis,c=Ut(n.raw.axisLabelShow,l.get(["axisLabel","show"])),p=new ve;r.add(p);var v=xf(s);if(!c||f.scale.isBlank()){nS(e,[],p,v);return}var h=l.getModel("axisLabel"),d=f.getViewLabels(v),m=(Ut(n.raw.labelRotate,h.get("rotate"))||0)*As/180,g=Kl.innerTextLayout(n.rotation,m,n.labelDirection),y=l.getCategories&&l.getCategories(!0),x=[],S=l.get("triggerEvent"),D=1/0,b=-1/0;I(d,function(A,T){var E,{tick:w,formattedLabel:L,rawLabel:M}=A,P=h,R=za(f.scale,w);if(y&&y[R]){var N=y[R];if(ue(N)&&N.textStyle)P=new Je(N.textStyle,h,l.ecModel)}var O=P.getTextColor()||l.get(["axisLine","lineStyle","color"]),B=P.getShallow("align",!0)||g.textAlign,F=te(P.getShallow("alignMinLabel",!0),B),z=te(P.getShallow("alignMaxLabel",!0),B),H=P.getShallow("verticalAlign",!0)||P.getShallow("baseline",!0)||g.textVerticalAlign,G=te(P.getShallow("verticalAlignMinLabel",!0),H),Z=te(P.getShallow("verticalAlignMaxLabel",!0),H),Q=10+(((E=w.time)===null||E===void 0?void 0:E.level)||0);D=Math.min(D,Q),b=Math.max(b,Q);var q=new Ve({x:0,y:0,rotation:0,silent:Kl.isLabelSilent(l),z2:Q,style:ut(P,{text:L,align:T===0?F:T===d.length-1?z:B,verticalAlign:T===0?G:T===d.length-1?Z:H,fill:ie(O)?O(f.type==="category"?M:f.type==="value"?R+"":R,T):O})});q.anid="label_"+R;var ae=Ts(q);if(ae.labelInfo=A,ae.layoutRotation=g.rotation,ls({el:q,componentModel:l,itemName:L,formatterParamsExtra:{isTruncated:function(){return q.isTruncated},value:M,tickIndex:T}}),S){var ce=Kl.makeAxisEventDataBase(l);ce.targetType="axisLabel",ce.value=M,ce.tickIndex=T;var ne=A.tick.break;if(ne){var de=ne.parsedBreak;ce.break={start:de.vmin,end:de.vmax}}if(f.type==="category")ce.dataIndex=R;if(ye(q).eventData=ce,ne)H8(l,u,q,ne)}x.push(q),p.add(q)});var C=W(x,function(A){return{label:A,priority:Ts(A).labelInfo.tick.break?A.z2+(b-D+1):A.z2,defaultAttr:{ignore:A.ignore}}});nS(e,C,p,v)}function HM(n){return!!n.labelLayoutList}function nS(n,e,r,s){n.labelLayoutList=e,n.labelGroup=r,n.axisLabelsCreationContext=s}function U8(n,e,r,s){var l=e.get(["axisLabel","margin"]);I(r,function(u,f){var c=Ua(u);if(!c)return;var p=c.label,v=Ts(p);c.suggestIgnore=p.ignore,p.ignore=!1,ci(So,G8);var h=e.axis;So.x=h.dataToCoord(za(h.scale,v.labelInfo.tick)),So.y=n.labelOffset+n.labelDirection*l,So.rotation=v.layoutRotation,s.add(So),So.updateTransform(),s.remove(So),So.decomposeTransform(),ci(p,So),p.markRedraw(),Lp(c,!0),Ua(c)})}var So=new Ee,G8=new Ee;function uS(n){return!!n}function H8(n,e,r,s){r.on("click",function(l){var u={type:BM,breaks:[{start:s.parsedBreak.breakOption.start,end:s.parsedBreak.breakOption.end}]};u[n.axis.dim+"AxisIndex"]=n.componentIndex,e.dispatchAction(u)})}function W8(n,e,r){var s=Kt();if(!s)return;var l=s.retrieveAxisBreakPairs(r,function(f){return f&&Ts(f.label).labelInfo.tick.break},!0),u=n.get(["breakLabelLayout","moveOverlap"],!0);if(u===!0||u==="auto")I(l,function(f){_o().adjustBreakLabelPair(n.axis.inverse,e,[Ua(r[f[0]]),Ua(r[f[1]])])})}var Pr=Kl;function Np(n,e,r){r=r||{};var s=e.axis,l={},u=s.getAxesOnZeroOf()[0],f=s.position,c=u?"onZero":f,p=s.dim,v=[n.x,n.x+n.width,n.y,n.y+n.height],h={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,m=p==="x"?[v[2]-d,v[3]+d]:[v[0]-d,v[1]+d];if(u){var g=u.toGlobalCoord(u.dataToCoord(0));m[h.onZero]=Math.max(Math.min(g,m[1]),m[0])}l.position=[p==="y"?m[h[c]]:v[0],p==="x"?m[h[c]]:v[3]],l.rotation=Math.PI/2*(p==="x"?0:1);var y={top:-1,bottom:1,left:-1,right:1};if(l.labelDirection=l.tickDirection=l.nameDirection=y[f],l.labelOffset=u?m[h[f]]-m[h.onZero]:0,e.get(["axisTick","inside"]))l.tickDirection=-l.tickDirection;if(Ut(r.labelInside,e.get(["axisLabel","inside"])))l.labelDirection=-l.labelDirection;var x=e.get(["axisLabel","rotate"]);return l.labelRotate=c==="top"?-x:x,l.z2=1,l}function WM(n){return n.coordinateSystem&&n.coordinateSystem.type==="cartesian2d"}function YM(n){var e={xAxisModel:null,yAxisModel:null};return I(e,function(r,s){var l=s.replace(/Model$/,""),u=n.getReferringComponents(l,gt).models[0];e[s]=u}),e}function XM(n,e,r,s,l,u){var f=Np(n,r),c=!1,p=!1;for(var v=0;v<e.length;v++)if(Am(e[v].getOtherAxis(r.axis).scale)){if(c=p=!0,r.axis.type==="category"&&r.axis.onBand)p=!1}return f.axisLineAutoShow=c,f.axisTickAutoShow=p,f.defaultNameMoveOverlap=u,new Pr(r,s,f,l)}function ZM(n,e,r){var s=Np(e,r);if(!1)var l;n.updateCfg(s)}var X8=he(),Ga=1,jM=2,Z8=3,$M=function(){function n(e,r,s,l,u){var f=nr(e),c=f?r.getCategories().length:null,p;if(f){var v=r.getCategories(!0);p=v&&!v.length}var h=s.slice();if(mf(e)||xn(e)||yn(e))Sx(h,kp(e,r.get("dataMin",!0))),Dx(h,kp(e,r.get("dataMax",!0)));if(!$T(h))h[0]=h[1]=NaN;var d=[],m=[!1,!1],g=r.get("min",!0);if(g==="dataMin")d[0]=h[0],m[0]=!0;else d[0]=kp(e,ie(g)?g({min:h[0],max:h[1]}):g),m[0]=d[0]!=null;var y=r.get("max",!0);if(y==="dataMax")d[1]=h[1],m[1]=!0;else d[1]=kp(e,ie(y)?y({min:h[0],max:h[1]}):y),m[1]=d[1]!=null;var x=K8(e,r),S=!f?h[1]-h[0]||Math.abs(h[0]):null;if(d[0]==null)d[0]=f?p?h[0]:c?0:NaN:h[0]-x[0]*S;if(d[1]==null)d[1]=f?p?h[1]:c?c-1:NaN:h[1]+x[1]*S;!Ta(d[0])&&(d[0]=NaN),!Ta(d[1])&&(d[1]=NaN);var D=p||oi(d[0])||oi(d[1])||f&&!c,b=mf(e),C=b&&r.needIncludeZero&&r.needIncludeZero();if(C){if(d[0]>0&&d[1]>0&&!m[0])d[0]=0;if(d[0]<0&&d[1]<0&&!m[1])d[1]=0}var A=!1;if(d[0]>d[1])d.reverse(),A=!0;var T=kp(e,r.get("startValue",!0)),E=T!=null;if(!vr(T)&&l)T=e.getDefaultStartValue?e.getDefaultStartValue():0;if(vr(T)&&(E||!b||C)){if(T<d[0]&&!m[0])d[0]=T,m[0]=!0;else if(T>d[1]&&!m[1])d[1]=T,m[1]=!0}var w=this._i={scale:e,dataMM:h,noZoomEffMM:d,zoomMM:[],fixMM:m,zoomFixMM:[!1,!1],startValue:T,isBlank:D,incl0:C,tggAxInv:A,ctnShp:u};KM(w,d)}return n.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},n.prototype.makeFinal=function(){var e=this._i,{zoomMM:r,noZoomEffMM:s,zoomFixMM:l,fixMM:u}=e,f={fixMM:u,zoomFixMM:l,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:s.slice()},c=f.effMM;if(r[0]!=null)c[0]=r[0],u[0]=l[0]=!0;if(r[1]!=null)c[1]=r[1],u[1]=l[1]=!0;return KM(e,c),f},n.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},n.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},n}();function KM(n,e){var{scale:r,dataMM:s}=n;if(r.sanitize)e[0]=r.sanitize(e[0],s),e[1]=r.sanitize(e[1],s),Wu(e)}function kp(n,e){return e==null?null:oi(e)?NaN:n.parse(e)}function K8(n,e){var r;if(nr(n))r=[0,0];else{var s=e.get("boundaryGap");if(typeof s==="boolean")s=null;r=U(s)?s:[s,s]}return[qM(r[0]),qM(r[1])]}function qM(n){return fi(typeof n==="boolean"?0:n,1)||0}function QM(n){var e=X8(n.scale);if(!e.extent)e.extent=Dr();return e}function JM(n,e){QM(n).dimIdxInCoord=e.get(n.dim)}function Ui(n,e){var{scale:r,model:s,dim:l}=n;if(r.rawExtentInfo)return;q8(r,n,l,s,e)}function q8(n,e,r,s,l){var u=QM(e),f=u.extent,c=!1;bM(e,function(h){if(h.boxCoordinateSystem){var d=Nd(h).coord,m=u.dimIdxInCoord;if(!(m>=0));else if(U(d)){var g=d[m];if(g!=null&&!U(g))Yc(f,n.parse(g))}}else if(h.coordinateSystem){var y=h.getData();if(y){var x=n.getFilter?n.getFilter():null;I(eM(y,r),function(S){jT(f,y.getApproximateExtent(S,x))})}if(h.__requireStartValue&&h.__requireStartValue(e))c=!0}});var p=$8(n,e,s),v=new $M(n,s,f,c,p);eL(n,v,l),u.extent=null}function j8(n,e){var r=n.scale;eL(r,new $M(r,n.model,e,!1,!1),Z8)}function eL(n,e,r){n.rawExtentInfo=e,e.from=r}function Es(n,e){fS.set(n,e)}var fS=re();function Ym(n,e,r,s,l){if(!n.rawExtentInfo)j8({scale:n,model:e},l||Dr());var u=n.rawExtentInfo.makeFinal(),f=u.effMM;if(n.setExtent(f[0],f[1]),n.setBlank(u.isBlank),s&&u.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis"))s.inverse=!s.inverse;return u}function $8(n,e,r){var s=Sn(n,r),l=r.get("containShape",!0);if(l==null&&!s)l=!0;if(!l)return!1;var u=!1;return rS(e,function(f){u=!!fS.get(f)||u}),u}function tL(n,e,r,s){if(!r.ctnShp)return;var l;if(rS(n,function(c){var p=fS.get(c);if(p){var v=p(n,s);if(v)l=l||[0,0],Sx(l,v[0]),Dx(l,v[1]),$I(n)}}),!l)return;var u=e.getExtent();if(nr(e)){if(!n.onBand)e.setExtent2(pf,lt(u[0],u[0]+l[0]),Be(u[1],u[1]+l[1]))}else{var f=u.slice();if(!r.zoomFixMM[0])f[0]=lt(f[0],e.transformOut(e.transformIn(f[0],null)+l[0],null));if(!r.zoomFixMM[1])f[1]=Be(f[1],e.transformOut(e.transformIn(f[1],null)+l[1],null));if(f[0]<u[0]||f[1]>u[1])e.setExtent2(pf,f[0],f[1])}}function rL(){AM("liPosMinGap",Q8)}function Q8(n,e,r){var s=re(),{serUids:l,liPosMinGap:u}=r,f,c=e.axis,p=c.scale,v=p.needTransform(),h=p.getFilter?p.getFilter():null,d=Id(h);function m(C){Mp(n,e.sers,function(A){var T=A.getRawData(),E=T.getDimensionIndex(T.mapDimension(c.dim));if(E>=0)C(E,A,T.getStore())})}var g=0;if(m(function(C,A,T){if(s.set(A.uid,1),!l||!l.hasKey(A.uid))f=!0;g+=T.count()}),!l||l.keys().length!==s.keys().length)f=!0;if(!f&&u!=null){e.liPosMinGap=u;return}_m(ql,g);var y=0;m(function(C,A,T){for(var E=0,w=T.count();E<w;++E){var L=T.get(C,E);if(isFinite(L)&&(!h||Md(d,L))){if(v)L=p.transformIn(L,null);ql.arr[y++]=L}}});var x=ql.typed?ql.arr.subarray(0,y):(ql.arr.length=y,ql.arr);if(ql.typed)x.sort();else Rt(x);var S=1/0;for(var D=1;D<y;++D){var b=x[D]-x[D-1];if(b>0&&b<S)S=b}r.liPosMinGap=e.liPosMinGap=vr(S)?S:y>0?Vm:yM,r.serUids=s}var ql=_m({ctor:bI},50);function ws(n){return function(e,r){var s=mr(e,{fromStat:{key:n}});if(vr(s.w2))return[-s.w2/2,s.w2/2]}}function Do(n){return n+Ip}function bo(n,e){return n+Ip+e}function Cf(n){return rL(),{liPosMinGap:!nr(n.scale)}}var ti="bar",Is="pictorialBar";function Xm(n,e,r,s){Df(n,{key:e,seriesType:r,coordSysType:s,getMetrics:Cf})}function Zm(n){var e=n.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var cS={left:0,right:0,top:0,bottom:0},Bp=["25%","25%"],pa="cartesian2d",J8=function(n){k(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,s){var l=_i(r.outerBounds);if(n.prototype.mergeDefaultAndTheme.apply(this,arguments),l&&r.outerBounds)Qr(r.outerBounds,l)},e.prototype.mergeOption=function(r,s){if(n.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds)Qr(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:cS,outerBoundsContain:"all",outerBoundsClampWidth:Bp[0],outerBoundsClampHeight:Bp[1],backgroundColor:X.color.transparent,borderWidth:1,borderColor:X.color.neutral30},e}(Fe),iL=J8;var e4=oa(),t4="__ec_stack_";function aL(n){return n.get("stack")||t4+n.seriesIndex}function r4(n,e){var r=i4(n,e);return r.columnMap=a4(r),r}function i4(n,e){var r=bo(e,pa),s=[],l=mr(n,{fromStat:{key:r},min:1});return Dn(n,r,function(u){s.push({barWidth:ee(u.get("barWidth"),l.w),barMaxWidth:ee(u.get("barMaxWidth"),l.w),barMinWidth:ee(u.get("barMinWidth")||(nL(u)?0.5:1),l.w),barGap:u.get("barGap"),barCategoryGap:u.get("barCategoryGap"),defaultBarGap:u.get("defaultBarGap"),stackId:aL(u)})}),{bandWidthResult:l,seriesInfo:s}}function a4(n){var e=n.bandWidthResult.w,r=e,s=0,l,u,f=[],c={};if(I(n.seriesInfo,function(x,S){if(!S)u=x.defaultBarGap||0;var D=x.stackId;if(!bt(c,D))s++;var b=c[D];if(!b)b=c[D]={width:0,maxWidth:0},f.push(D);var C=x.barWidth;if(C&&!b.width)b.width=C,C=lt(r,C),r-=C;var A=x.barMaxWidth;A&&(b.maxWidth=A);var T=x.barMinWidth;T&&(b.minWidth=T);var E=x.barGap;E!=null&&(u=E);var w=x.barCategoryGap;w!=null&&(l=w)}),l==null)l=Be(35-f.length*4,15)+"%";var p=ee(l,e),v=ee(u,1),h=(r-p)/(s+(s-1)*v);h=Be(h,0),I(f,function(x){var S=c[x],{maxWidth:D,minWidth:b}=S;if(!S.width){var C=h;if(D&&D<C)C=lt(D,r);if(b&&b>C)C=b;if(C!==h)S.width=C,r-=C+v*C,s--}else{var C=S.width;if(D)C=lt(C,D);if(b)C=Be(C,b);S.width=C,r-=C+v*C,s--}}),h=(r-p)/(s+(s-1)*v),h=Be(h,0);var d=0,m;if(I(f,function(x){var S=c[x];if(!S.width)S.width=h;m=S,d+=S.width*(1+v)}),m)d-=m.width*v;var g={},y=-d/2;return I(f,function(x){var S=c[x];g[x]=g[x]||{bandWidth:e,offset:y,width:S.width},y+=S.width*(1+v)}),g}function Km(n){return{seriesType:n,overallReset:function(e){var r=bo(n,pa);Sf(e,r,function(s){var l=r4(s,n);Dn(s,r,function(u){var f=l.columnMap[aL(u)];u.getData().setLayout({bandWidth:f.bandWidth,offset:f.offset,size:f.width})})})}}}function qm(n){return{seriesType:n,plan:Ba(),reset:function(e){if(!WM(e))return;var r=e.getData(),s=e.coordinateSystem,l=s.getBaseAxis(),u=s.getOtherAxis(l),f=r.getDimensionIndex(r.mapDimension(u.dim)),c=r.getDimensionIndex(r.mapDimension(l.dim)),p=e.get("showBackground",!0),v=r.mapDimension(u.dim),h=r.getCalculationInfo("stackResultDimension"),d=zi(r,v)&&!!r.getCalculationInfo("stackedOnSeries"),m=u.isHorizontal(),g=u.toGlobalCoord(u.dataToCoord(Zm(u))),y=nL(e),x=e.get("barMinHeight")||0,S=h&&r.getDimensionIndex(h),D=r.getLayout("size"),b=r.getLayout("offset");return{progress:function(C,A){var T=C.count,E=y&&Jr(T*3),w=y&&p&&Jr(T*3),L=y&&Jr(T),M=s.master.getRect(),P=m?M.width:M.height,R,N=A.getStore(),O=0;while((R=C.next())!=null){var B=N.get(d?S:f,R),F=N.get(c,R),z=g,H=void 0;if(d)H=+B-N.get(f,R);var G=void 0,Z=void 0,Q=void 0,q=void 0;if(m){var ae=s.dataToPoint([B,F]);if(d)z=s.dataToPoint([H,F])[0];if(G=z,Z=ae[1]+b,Q=ae[0]-z,q=D,_t(Q)<x)Q=(Q<0?-1:1)*x}else{var ae=s.dataToPoint([F,B]);if(d)z=s.dataToPoint([F,H])[1];if(G=ae[0]+b,Z=z,Q=D,q=ae[1]-z,_t(q)<x)q=(q<=0?-1:1)*x}if(!y)A.setItemLayout(R,{x:G,y:Z,width:Q,height:q});else{if(E[O]=G,E[O+1]=Z,E[O+2]=m?Q:q,w)w[O]=m?M.x:G,w[O+1]=m?Z:M.y,w[O+2]=P;L[R]=R}O+=3}if(y)A.setLayout({largePoints:E,largeDataIndices:L,largeBackgroundPoints:w,valueAxisHorizontal:m})}}}}}function nL(n){return n.pipelineContext&&n.pipelineContext.large}function n4(n){return ws(bo(n,pa))}function jm(n){e4(n,function(){function e(r){var s=bo(r,pa);Xm(n,s,r,pa),Es(s,n4(r))}e("bar"),e("pictorialBar")})}var oL=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,s){return Vr(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,s,l){var u=this.coordinateSystem;if(u&&u.clampData){var f=u.clampData(r),c=u.dataToPoint(f);if(l)I(u.getAxes(),function(m,g){if(m.type==="category"&&s!=null){var y=m.getTicksCoords(),x=m.getTickModel().get("alignWithLabel"),S=f[g],D=s[g]==="x1"||s[g]==="y1";if(D&&!x)S+=1;if(y.length<2)return;else if(y.length===2){c[g]=m.toGlobalCoord(m.getExtent()[D?1:0]);return}var b=void 0,C=void 0,A=1;for(var T=0;T<y.length;T++){var E=y[T].coord,w=T===y.length-1?y[T-1].tickValue+A:y[T].tickValue;if(w===S){C=E;break}else if(w<S)b=E;else if(b!=null&&w>S){C=(E+b)/2;break}if(T===1)A=w-y[0].tickValue}if(C==null){if(!b)C=y[0].coord;else if(b)C=y[y.length-1].coord}c[g]=m.toGlobalCoord(C)}});else{var p=this.getData(),v=p.getLayout("offset"),h=p.getLayout("size"),d=u.getBaseAxis().isHorizontal()?0:1;c[d]+=v+h/2}return c}return[NaN,NaN]},e.prototype.__requireStartValue=function(r){return this.getBaseAxis()!==r},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3000,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(et);et.registerClass(oL);var Af=oL;var o4=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return Vr(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(r,s){var l=Hh(this,r,s);if(l.progressiveRender)l.large=!0;return l},e.prototype.brushSelector=function(r,s,l){return l.rect(s.getItemLayout(r))},e.type="series."+ti,e.dependencies=["grid","polar"],e.defaultOption=yi(Af.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:X.color.primary,borderWidth:2}},realtimeSort:!1}),e}(Af),sL=o4;var $m="\x00__throttleOriginMethod",lL="\x00__throttleRate",uL="\x00__throttleType";function Fp(n,e,r){var s,l=0,u=0,f=null,c,p,v,h;e=e||0;function d(){u=new Date().getTime(),f=null,n.apply(p,v||[])}var m=function(){var g=[];for(var y=0;y<arguments.length;y++)g[y]=arguments[y];s=new Date().getTime(),p=this,v=g;var x=h||e,S=h||r;if(h=null,c=s-(S?l:u)-x,clearTimeout(f),S)f=setTimeout(d,x);else if(c>=0)d();else f=setTimeout(d,-c);l=s};return m.clear=function(){if(f)clearTimeout(f),f=null},m.debounceNextCall=function(g){h=g},m}function bn(n,e,r,s){var l=n[e];if(!l)return;var u=l[$m]||l,f=l[uL],c=l[lL];if(c!==r||f!==s){if(r==null||!s)return n[e]=u;l=n[e]=Fp(u,r,s==="debounce"),l[$m]=u,l[uL]=s,l[lL]=r}return l}function Co(n,e){var r=n[e];if(r&&r[$m])r.clear&&r.clear(),n[e]=r[$m]}var s4=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),l4=function(n){k(e,n);function e(r){var s=n.call(this,r)||this;return s.type="sausage",s}return e.prototype.getDefaultShape=function(){return new s4},e.prototype.buildPath=function(r,s){var{cx:l,cy:u}=s,f=Math.max(s.r0||0,0),c=Math.max(s.r,0),p=(c-f)*0.5,v=f+p,{startAngle:h,endAngle:d,clockwise:m}=s,g=Math.PI*2,y=m?d-h<g:h-d<g;if(!y)h=d-(m?g:-g);var x=Math.cos(h),S=Math.sin(h),D=Math.cos(d),b=Math.sin(d);if(y)r.moveTo(x*f+l,S*f+u),r.arc(x*v+l,S*v+u,p,-Math.PI+h,h,!m);else r.moveTo(x*c+l,S*c+u);if(r.arc(l,u,c,h,d,!m),r.arc(D*v+l,b*v+u,p,d-Math.PI*2,d-Math.PI,!m),f!==0)r.arc(l,u,f,d,h,m)},e}(xe),Tf=l4;function fL(n,e){e=e||{};var r=e.isRoundCap;return function(s,l,u){var f=l.position;if(!f||f instanceof Array)return al(s,l,u);var c=n(f),p=l.distance!=null?l.distance:5,v=this.shape,{cx:h,cy:d,r:m,r0:g}=v,y=(m+g)/2,{startAngle:x,endAngle:S}=v,D=(x+S)/2,b=r?Math.abs(m-g)/2:0,{cos:C,sin:A}=Math,T=h+m*C(x),E=d+m*A(x),w="left",L="top";switch(c){case"startArc":T=h+(g-p)*C(D),E=d+(g-p)*A(D),w="center",L="top";break;case"insideStartArc":T=h+(g+p)*C(D),E=d+(g+p)*A(D),w="center",L="bottom";break;case"startAngle":T=h+y*C(x)+Qm(x,p+b,!1),E=d+y*A(x)+Jm(x,p+b,!1),w="right",L="middle";break;case"insideStartAngle":T=h+y*C(x)+Qm(x,-p+b,!1),E=d+y*A(x)+Jm(x,-p+b,!1),w="left",L="middle";break;case"middle":T=h+y*C(D),E=d+y*A(D),w="center",L="middle";break;case"endArc":T=h+(m+p)*C(D),E=d+(m+p)*A(D),w="center",L="bottom";break;case"insideEndArc":T=h+(m-p)*C(D),E=d+(m-p)*A(D),w="center",L="top";break;case"endAngle":T=h+y*C(S)+Qm(S,p+b,!0),E=d+y*A(S)+Jm(S,p+b,!0),w="left",L="middle";break;case"insideEndAngle":T=h+y*C(S)+Qm(S,-p+b,!0),E=d+y*A(S)+Jm(S,-p+b,!0),w="right",L="middle";break;default:return al(s,l,u)}return s=s||{},s.x=T,s.y=E,s.align=w,s.verticalAlign=L,s}}function cL(n,e,r,s){if(Te(s)){n.setTextConfig({rotation:s});return}else if(U(e)){n.setTextConfig({rotation:0});return}var l=n.shape,u=l.clockwise?l.startAngle:l.endAngle,f=l.clockwise?l.endAngle:l.startAngle,c=(u+f)/2,p,v=r(e);switch(v){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":p=c;break;case"startAngle":case"insideStartAngle":p=u;break;case"endAngle":case"insideEndAngle":p=f;break;default:n.setTextConfig({rotation:0});return}var h=Math.PI*1.5-p;if(v==="middle"&&h>Math.PI/2&&h<Math.PI*1.5)h-=Math.PI;n.setTextConfig({rotation:h})}function Qm(n,e,r){return e*Math.sin(n)*(r?-1:1)}function Jm(n,e,r){return e*Math.cos(n)*(r?1:-1)}function Cn(n,e,r){var s=n.get("borderRadius");if(s==null)return r?{cornerRadius:0}:null;if(!U(s))s=[s,s,s,s];var l=Math.abs(e.r||0-e.r0||0);return{cornerRadius:W(s,function(u){return fi(u,l)})}}var{max:vS,min:hS}=Math,u4=function(n){k(e,n);function e(){var r=n.call(this)||this;return r.type=ti,r._isFirstFrame=!0,r}return e.prototype.render=function(r,s,l,u){this._model=r,this._removeOnRenderedListener(l),this._updateDrawMode(r);var f=r.get("coordinateSystem");if(f==="cartesian2d"||f==="polar")this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,s,l):this._renderNormal(r,s,l,u)},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,s){this._progressiveEls=[],this._incrementalRenderLarge(r,s)},e.prototype.eachRendered=function(r){Bi(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var s=r.pipelineContext.large;if(this._isLargeDraw==null||s!==this._isLargeDraw)this._isLargeDraw=s,this._clear()},e.prototype._renderNormal=function(r,s,l,u){var f=this.group,c=r.getData(),p=this._data,v=r.coordinateSystem,h=v.getBaseAxis(),d;if(v.type==="cartesian2d")d=h.isHorizontal();else if(v.type==="polar")d=h.dim==="angle";var m=r.isAnimationEnabled()?r:null,g=f4(r,v);if(g)this._enableRealtimeSort(g,c,l);var y=r.get("clip",!0)||g,x=v.getArea();f.removeClipPath();var S=r.get("roundCap",!0),D=r.get("showBackground",!0),b=r.getModel("backgroundStyle"),C=b.get("borderRadius")||0,A=[],T=this._backgroundEls,E=u&&u.isInitSort,w=u&&u.type==="changeAxisOrder";function L(R){var N=eg[v.type](c,R);if(!N)return null;var O=g4(v,d,N);if(O.useStyle(b.getItemStyle()),v.type==="cartesian2d")O.setShape("r",C);else O.setShape("cornerRadius",C);return A[R]=O,O}c.diff(p).add(function(R){var N=c.getItemModel(R),O=eg[v.type](c,R,N);if(!O)return;if(D)L(R);if(!c.hasValue(R)||!mL[v.type](O))return;var B=!1;if(y)B=pL[v.type](x,O);var F=vL[v.type](r,c,R,O,d,m,h.model,!1,S);if(g)F.forceLabelAnimation=!0;if(gL(F,c,R,N,O,r,d,v.type==="polar"),E)F.attr({shape:O});else if(g)hL(g,m,F,O,R,d,!1,!1);else $e(F,{shape:O},r,R);c.setItemGraphicEl(R,F),f.add(F),F.ignore=B}).update(function(R,N){var O=c.getItemModel(R),B=eg[v.type](c,R,O);if(!B)return;if(D){var F=void 0;if(T.length===0)F=L(N);else{if(F=T[N],F.useStyle(b.getItemStyle()),v.type==="cartesian2d")F.setShape("r",C);else F.setShape("cornerRadius",C);A[R]=F}var z=eg[v.type](c,R),H=DL(d,z,v);Oe(F,{shape:H},m,R)}var G=p.getItemGraphicEl(N);if(!c.hasValue(R)||!mL[v.type](B)){f.remove(G);return}var Z=!1;if(y){if(Z=pL[v.type](x,B),Z)f.remove(G)}var Q=G&&(G.type==="sector"&&S||G.type==="sausage"&&!S);if(Q)G&&vn(G,r,N),G=null;if(!G)G=vL[v.type](r,c,R,B,d,m,h.model,!0,S);else fr(G);if(g)G.forceLabelAnimation=!0;if(w){var q=G.getTextContent();if(q){var ae=uo(q);if(ae.prevValue!=null)ae.prevValue=ae.value}}else gL(G,c,R,O,B,r,d,v.type==="polar");if(E)G.attr({shape:B});else if(g)hL(g,m,G,B,R,d,!0,w);else Oe(G,{shape:B},r,R,null);c.setItemGraphicEl(R,G),G.ignore=Z,f.add(G)}).remove(function(R){var N=p.getItemGraphicEl(R);N&&vn(N,r,R)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new ve);M.removeAll();for(var P=0;P<A.length;++P)M.add(A[P]);f.add(M),this._backgroundEls=A,this._data=c},e.prototype._renderLarge=function(r,s,l){this._clear(),xL(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,s){this._removeBackground(),xL(s,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var s=r.get("clip",!0)&&yo(r.coordinateSystem,!1,r),l=this.group;if(s)l.setClipPath(s);else l.removeClipPath()},e.prototype._enableRealtimeSort=function(r,s,l){var u=this;if(!s.count())return;var f=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(s,r,l),this._isFirstFrame=!1;else{var c=function(p){var v=s.getItemGraphicEl(p),h=v&&v.shape;return h&&Math.abs(f.isHorizontal()?h.height:h.width)||0};this._onRendered=function(){u._updateSortWithinSameData(s,c,f,l)},l.getZr().on("rendered",this._onRendered)}},e.prototype._dataSort=function(r,s,l){var u=[];return r.each(r.mapDimension(s.dim),function(f,c){var p=l(c);p=p==null?NaN:p,u.push({dataIndex:c,mappedValue:p,ordinalNumber:f})}),u.sort(function(f,c){return c.mappedValue-f.mappedValue}),{ordinalNumbers:W(u,function(f){return f.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,s,l){var u=l.scale,f=r.mapDimension(l.dim),c=Number.MAX_VALUE;for(var p=0,v=u.getOrdinalMeta().categories.length;p<v;++p){var h=r.rawIndexOf(f,u.getRawOrdinalNumber(p)),d=h<0?Number.MIN_VALUE:s(r.indexOfRawIndex(h));if(d>c)return!0;c=d}return!1},e.prototype._isOrderDifferentInView=function(r,s){var l=s.scale,u=l.getExtent(),f=Math.max(0,u[0]),c=Math.min(u[1],l.getOrdinalMeta().categories.length-1);for(;f<=c;++f)if(r.ordinalNumbers[f]!==l.getRawOrdinalNumber(f))return!0},e.prototype._updateSortWithinSameData=function(r,s,l,u){if(!this._isOrderChangedWithinSameData(r,s,l))return;var f=this._dataSort(r,l,s);if(this._isOrderDifferentInView(f,l))this._removeOnRenderedListener(u),u.dispatchAction({type:"changeAxisOrder",componentType:l.dim+"Axis",axisId:l.index,sortInfo:f})},e.prototype._dispatchInitSort=function(r,s,l){var u=s.baseAxis,f=this._dataSort(r,u,function(c){return r.get(r.mapDimension(s.otherAxis.dim),c)});l.dispatchAction({type:"changeAxisOrder",componentType:u.dim+"Axis",isInitSort:!0,axisId:u.index,sortInfo:f})},e.prototype.remove=function(r,s){this._clear(this._model),this._removeOnRenderedListener(s)},e.prototype.dispose=function(r,s){this._removeOnRenderedListener(s)},e.prototype._removeOnRenderedListener=function(r){if(this._onRendered)r.getZr().off("rendered",this._onRendered),this._onRendered=null},e.prototype._clear=function(r){var s=this.group,l=this._data;if(r&&r.isAnimationEnabled()&&l&&!this._isLargeDraw)this._removeBackground(),this._backgroundEls=[],l.eachItemGraphicEl(function(u){vn(u,r,ye(u).dataIndex)});else s.removeAll();this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=ti,e}(qe),pL={cartesian2d:function(n,e){var r=e.width<0?-1:1,s=e.height<0?-1:1;if(r<0)e.x+=e.width,e.width=-e.width;if(s<0)e.y+=e.height,e.height=-e.height;var l=n.x+n.width,u=n.y+n.height,f=vS(e.x,n.x),c=hS(e.x+e.width,l),p=vS(e.y,n.y),v=hS(e.y+e.height,u),h=c<f,d=v<p;if(e.x=h&&f>l?c:f,e.y=d&&p>u?v:p,e.width=h?0:c-f,e.height=d?0:v-p,r<0)e.x+=e.width,e.width=-e.width;if(s<0)e.y+=e.height,e.height=-e.height;return h||d},polar:function(n,e){var r=e.r0<=e.r?1:-1;if(r<0){var s=e.r;e.r=e.r0,e.r0=s}var l=hS(e.r,n.r),u=vS(e.r0,n.r0);e.r=l,e.r0=u;var f=l-u<0;if(r<0){var s=e.r;e.r=e.r0,e.r0=s}return f}},vL={cartesian2d:function(n,e,r,s,l,u,f,c,p){var v=new Ee({shape:V({},s),z2:1});if(v.__dataIndex=r,v.name="item",u){var h=v.shape,d=l?"height":"width";h[d]=0}return v},polar:function(n,e,r,s,l,u,f,c,p){var v=!l&&p?Tf:Xt,h=new v({shape:s,z2:1});h.name="item";var d=SL(l);if(h.calculateTextPosition=fL(d,{isRoundCap:v===Tf}),u){var m=h.shape,g=l?"r":"endAngle",y={};m[g]=l?s.r0:s.startAngle,y[g]=s[g],(c?Oe:$e)(h,{shape:y},u)}return h}};function f4(n,e){var r=n.get("realtimeSort",!0),s=e.getBaseAxis();if(r&&s.type==="category"&&e.type==="cartesian2d")return{baseAxis:s,otherAxis:e.getOtherAxis(s)}}function hL(n,e,r,s,l,u,f,c){var p,v;if(u)v={x:s.x,width:s.width},p={y:s.y,height:s.height};else v={y:s.y,height:s.height},p={x:s.x,width:s.width};if(!c)(f?Oe:$e)(r,{shape:p},e,l,null);var h=e?n.baseAxis.model:null;(f?Oe:$e)(r,{shape:v},h,l)}function dL(n,e){for(var r=0;r<e.length;r++)if(!isFinite(n[e[r]]))return!0;return!1}var c4=["x","y","width","height"],p4=["cx","cy","r","startAngle","endAngle"],mL={cartesian2d:function(n){return!dL(n,c4)},polar:function(n){return!dL(n,p4)}},eg={cartesian2d:function(n,e,r){var s=n.getItemLayout(e);if(!s)return null;var l=r?h4(r,s):0,u=s.width>0?1:-1,f=s.height>0?1:-1;return{x:s.x+u*l/2,y:s.y+f*l/2,width:s.width-u*l,height:s.height-f*l}},polar:function(n,e,r){var s=n.getItemLayout(e);return{cx:s.cx,cy:s.cy,r0:s.r0,r:s.r,startAngle:s.startAngle,endAngle:s.endAngle,clockwise:s.clockwise}}};function v4(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function SL(n){return function(e){var r=e?"Arc":"Angle";return function(s){switch(s){case"start":case"insideStart":case"end":case"insideEnd":return s+r;default:return s}}}(n)}function gL(n,e,r,s,l,u,f,c){var p=e.getItemVisual(r,"style");if(!c){var v=s.get(["itemStyle","borderRadius"])||0;n.setShape("r",v)}else if(!u.get("roundCap")){var h=n.shape,d=Cn(s.getModel("itemStyle"),h,!0);V(h,d),n.setShape(h)}n.useStyle(p);var m=s.getShallow("cursor");m&&n.attr("cursor",m);var g=c?f?l.r>=l.r0?"endArc":"startArc":l.endAngle>=l.startAngle?"endAngle":"startAngle":f?y4(l,u.coordinateSystem):x4(l,u.coordinateSystem),y=St(s);Mt(n,y,{labelFetcher:u,labelDataIndex:r,defaultText:hs(u.getData(),r),inheritColor:p.fill,defaultOpacity:p.opacity,defaultOutsidePosition:g});var x=n.getTextContent();if(c&&x){var S=s.get(["label","position"]);n.textConfig.inside=S==="middle"?!0:null,cL(n,S==="outside"?g:S,SL(f),s.get(["label","rotate"]))}gd(x,y,u.getRawValue(r),function(b){return mm(e,b)});var D=s.getModel(["emphasis"]);if(it(n,D.get("focus"),D.get("blurScope"),D.get("disabled")),wt(n,s),v4(l))n.style.fill="none",n.style.stroke="none",I(n.states,function(b){if(b.style)b.style.fill=b.style.stroke="none"})}function h4(n,e){var r=n.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var s=n.get(["itemStyle","borderWidth"])||0,l=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),u=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(s,l,u)}var d4=function(){function n(){}return n}(),yL=function(n){k(e,n);function e(r){var s=n.call(this,r)||this;return s.type="largeBar",s}return e.prototype.getDefaultShape=function(){return new d4},e.prototype.buildPath=function(r,s){var l=s.points,u=this.baseDimIdx,f=1-this.baseDimIdx,c=[],p=[],v=this.barWidth;for(var h=0;h<l.length;h+=3)p[u]=v,p[f]=l[h+2],c[u]=l[h+u],c[f]=l[h+f],r.rect(c[0],c[1],p[0],p[1])},e}(xe);function xL(n,e,r,s){var l=n.getData(),u=l.getLayout("valueAxisHorizontal")?1:0,f=l.getLayout("largeDataIndices"),c=l.getLayout("size"),p=n.getModel("backgroundStyle"),v=l.getLayout("largeBackgroundPoints"),h=s?Ri(n):0;if(v){var d=new yL({shape:{points:v},incremental:h,silent:!0,z2:0});d.baseDimIdx=u,d.largeDataIndices=f,d.barWidth=c,d.useStyle(p.getItemStyle()),e.add(d),r&&r.push(d)}var m=new yL({shape:{points:l.getLayout("largePoints")},incremental:h,ignoreCoarsePointer:!0,z2:1});if(m.baseDimIdx=u,m.largeDataIndices=f,m.barWidth=c,e.add(m),m.useStyle(l.getVisual("style")),m.style.stroke=null,ye(m).seriesIndex=n.seriesIndex,!n.get("silent"))m.on("mousedown",_L),m.on("mousemove",_L);r&&r.push(m)}var _L=Fp(function(n){var e=this,r=m4(e,n.offsetX,n.offsetY);ye(e).dataIndex=r>=0?r:null},30,!1);function m4(n,e,r){var s=n.baseDimIdx,l=1-s,u=n.shape.points,f=n.largeDataIndices,c=[],p=[],v=n.barWidth;for(var h=0,d=u.length/3;h<d;h++){var m=h*3;if(p[s]=v,p[l]=u[m+2],c[s]=u[m+s],c[l]=u[m+l],p[l]<0)c[l]+=p[l],p[l]=-p[l];if(e>=c[0]&&e<=c[0]+p[0]&&r>=c[1]&&r<=c[1]+p[1])return f[h]}return-1}function DL(n,e,r){if(fa(r,"cartesian2d")){var s=e,l=r.getArea();return{x:n?s.x:l.x,y:n?l.y:s.y,width:n?s.width:l.width,height:n?l.height:s.height}}else{var l=r.getArea(),u=e;return{cx:l.cx,cy:l.cy,r0:n?l.r0:u.r0,r:n?l.r:u.r,startAngle:n?u.startAngle:0,endAngle:n?u.endAngle:Math.PI*2}}}function g4(n,e,r){var s=n.type==="polar"?Xt:Ee;return new s({shape:DL(e,r,n),silent:!0,z2:0})}function y4(n,e){if(n.height===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"bottom":"top"}return n.height>0?"bottom":"top"}function x4(n,e){if(n.width===0){var r=e.getOtherAxis(e.getBaseAxis());return r.inverse?"left":"right"}return n.width>=0?"right":"left"}var bL=u4;function dS(n){n.registerChartView(bL),n.registerSeriesModel(sL),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Km(ti)),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,qm(ti)),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,Ep(ti)),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var s=e.componentType||"series";r.eachComponent({mainType:s,query:e},function(l){if(e.sortInfo)l.axis.setCategorySortInfo(e.sortInfo)})}),jm(n)}function CL(n,e){function r(s,l){var u=[];return s.eachComponent({mainType:"series",subType:n,query:l},function(f){u.push(f.seriesIndex)}),u}I([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(s){e(s[0],function(l,u,f){l=V({},l),f.dispatchAction(V(l,{type:s[1],seriesIndex:r(u,l)}))})})}function Ef(n,e,r,s,l){var u=n+e;if(!r.isSilent(u))s.eachComponent({mainType:"series",subType:"pie"},function(f){var c=f.seriesIndex,p=f.option.selectedMap,v=l.selected;for(var h=0;h<v.length;h++)if(v[h].seriesIndex===c){var d=f.getData(),m=na(d,l.fromActionPayload);r.trigger(u,{type:u,seriesId:f.id,name:U(m)?d.getName(m[0]):d.getName(m),selected:K(p)?p:V({},p)})}})}function AL(n,e,r){n.on("selectchanged",function(s){var l=r.getModel();if(s.isFromClick)Ef("map","selectchanged",e,l,s),Ef("pie","selectchanged",e,l,s);else if(s.fromAction==="select")Ef("map","selected",e,l,s),Ef("pie","selected",e,l,s);else if(s.fromAction==="unselect")Ef("map","unselected",e,l,s),Ef("pie","unselected",e,l,s)})}function Ao(n){return{seriesType:n,reset:function(e,r){var s=r.findComponents({mainType:"legend"});if(!s||!s.length)return;var l=e.getData();l.filterSelf(function(u){var f=l.getName(u);for(var c=0;c<s.length;c++)if(!s[c].isSelected(f))return!1;return!0})}}}function Ha(n,e,r){e=U(e)&&{coordDimensions:e}||V({encodeDefine:n.getEncode()},e);var s=n.getSource(),l=Ra(s,e).dimensions,u=new ir(l,n);return u.initData(s,r),u}var _4=function(){function n(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},n.prototype.getItemVisual=function(e,r){var s=this._getDataWithEncodedVisual();return s.getItemVisual(e,r)},n}(),An=_4;var Wa="pie",S4=he(),TL=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new An(se(this.getData,this),se(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Ha(this,{coordDimensions:["value"],encodeDefaulter:Ae(_d,this)})},e.prototype.getDataParams=function(r){var s=this.getData(),l=S4(s),u=l.seats;if(!u){var f=[];s.each(s.mapDimension("value"),function(p){f.push(p)}),u=l.seats=NT(f,s.hostModel.get("percentPrecision"))}var c=n.prototype.getDataParams.call(this,r);return c.percent=u[r]||0,c.$vars.push("percent"),c},e.prototype._defaultLabelLine=function(r){Ea(r,"labelLine",["show"]);var s=r.labelLine,l=r.emphasis.labelLine;s.show=s.show&&r.label.show,l.show=l.show&&r.emphasis.label.show},e.type="series."+Wa,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1000,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(et);Lw({fullType:TL.type,getCoord2:function(n){return n.getShallow("center")}});var EL=TL;var zp=Math.PI*2,jl=Sr.CMD,D4=["top","right","bottom","left"];function b4(n,e,r,s,l){var{width:u,height:f}=r;switch(n){case"top":s.set(r.x+u/2,r.y-e),l.set(0,-1);break;case"bottom":s.set(r.x+u/2,r.y+f+e),l.set(0,1);break;case"left":s.set(r.x-e,r.y+f/2),l.set(-1,0);break;case"right":s.set(r.x+u+e,r.y+f/2),l.set(1,0);break}}function C4(n,e,r,s,l,u,f,c,p){f-=n,c-=e;var v=Math.sqrt(f*f+c*c);f/=v,c/=v;var h=f*r+n,d=c*r+e;if(Math.abs(s-l)%zp<0.0001)return p[0]=h,p[1]=d,v-r;if(u){var m=s;s=Lr(l),l=Lr(m)}else s=Lr(s),l=Lr(l);if(s>l)l+=zp;var g=Math.atan2(c,f);if(g<0)g+=zp;if(g>=s&&g<=l||g+zp>=s&&g+zp<=l)return p[0]=h,p[1]=d,v-r;var y=r*Math.cos(s)+n,x=r*Math.sin(s)+e,S=r*Math.cos(l)+n,D=r*Math.sin(l)+e,b=(y-f)*(y-f)+(x-c)*(x-c),C=(S-f)*(S-f)+(D-c)*(D-c);if(b<C)return p[0]=y,p[1]=x,Math.sqrt(b);else return p[0]=S,p[1]=D,Math.sqrt(C)}function tg(n,e,r,s,l,u,f,c){var p=l-n,v=u-e,h=r-n,d=s-e,m=Math.sqrt(h*h+d*d);h/=m,d/=m;var g=p*h+v*d,y=g/m;if(c)y=Math.min(Math.max(y,0),1);y*=m;var x=f[0]=n+y*h,S=f[1]=e+y*d;return Math.sqrt((x-l)*(x-l)+(S-u)*(S-u))}function wL(n,e,r,s,l,u,f){if(r<0)n=n+r,r=-r;if(s<0)e=e+s,s=-s;var c=n+r,p=e+s,v=f[0]=Math.min(Math.max(l,n),c),h=f[1]=Math.min(Math.max(u,e),p);return Math.sqrt((v-l)*(v-l)+(h-u)*(h-u))}var Ya=[];function A4(n,e,r){var s=wL(e.x,e.y,e.width,e.height,n.x,n.y,Ya);return r.set(Ya[0],Ya[1]),s}function T4(n,e,r){var s=0,l=0,u=0,f=0,c,p,v=1/0,h=e.data,{x:d,y:m}=n;for(var g=0;g<h.length;){var y=h[g++];if(g===1)s=h[g],l=h[g+1],u=s,f=l;var x=v;switch(y){case jl.M:u=h[g++],f=h[g++],s=u,l=f;break;case jl.L:x=tg(s,l,h[g],h[g+1],d,m,Ya,!0),s=h[g++],l=h[g++];break;case jl.C:x=oh(s,l,h[g++],h[g++],h[g++],h[g++],h[g],h[g+1],d,m,Ya),s=h[g++],l=h[g++];break;case jl.Q:x=lh(s,l,h[g++],h[g++],h[g],h[g+1],d,m,Ya),s=h[g++],l=h[g++];break;case jl.A:var S=h[g++],D=h[g++],b=h[g++],C=h[g++],A=h[g++],T=h[g++];g+=1;var E=!!(1-h[g++]);if(c=Math.cos(A)*b+S,p=Math.sin(A)*C+D,g<=1)u=c,f=p;var w=(d-S)*C/b+S;x=C4(S,D,C,A,A+T,E,w,m,Ya),s=Math.cos(A+T)*b+S,l=Math.sin(A+T)*C+D;break;case jl.R:u=s=h[g++],f=l=h[g++];var L=h[g++],M=h[g++];x=wL(u,f,L,M,d,m,Ya);break;case jl.Z:x=tg(s,l,u,f,d,m,Ya,!0),s=u,l=f;break}if(x<v)v=x,r.set(Ya[0],Ya[1])}return v}var Xa=new Le,Lt=new Le,or=new Le,En=new Le,Tn=new Le;function gS(n,e){if(!n)return;var r=n.getTextGuideLine(),s=n.getTextContent();if(!(s&&r))return;var l=n.textGuideLineConfig||{},u=[[0,0],[0,0],[0,0]],f=l.candidates||D4,c=s.getBoundingRect().clone();c.applyTransform(s.getComputedTransform());var p=1/0,v=l.anchor,h=n.getComputedTransform(),d=h&&Zr([],h),m=e.get("length2")||0;if(v)or.copy(v);for(var g=0;g<f.length;g++){var y=f[g];b4(y,0,c,Xa,En),Le.scaleAndAdd(Lt,Xa,En,m),Lt.transform(d);var x=n.getBoundingRect(),S=v?v.distance(Lt):n instanceof xe?T4(Lt,n.path,or):A4(Lt,x,or);if(S<p)p=S,Lt.transform(h),or.transform(h),or.toArray(u[0]),Lt.toArray(u[1]),Xa.toArray(u[2])}yS(u,e.get("minTurnAngle")),r.setShape({points:u})}var rg=[],ri=new Le;function yS(n,e){if(!(e<=180&&e>0))return;e=e/180*Math.PI,Xa.fromArray(n[0]),Lt.fromArray(n[1]),or.fromArray(n[2]),Le.sub(En,Xa,Lt),Le.sub(Tn,or,Lt);var r=En.len(),s=Tn.len();if(r<0.001||s<0.001)return;En.scale(1/r),Tn.scale(1/s);var l=En.dot(Tn),u=Math.cos(e);if(u<l){var f=tg(Lt.x,Lt.y,or.x,or.y,Xa.x,Xa.y,rg,!1);ri.fromArray(rg),ri.scaleAndAdd(Tn,f/Math.tan(Math.PI-e));var c=or.x!==Lt.x?(ri.x-Lt.x)/(or.x-Lt.x):(ri.y-Lt.y)/(or.y-Lt.y);if(isNaN(c))return;if(c<0)Le.copy(ri,Lt);else if(c>1)Le.copy(ri,or);ri.toArray(n[1])}}function IL(n,e,r){if(!(r<=180&&r>0))return;r=r/180*Math.PI,Xa.fromArray(n[0]),Lt.fromArray(n[1]),or.fromArray(n[2]),Le.sub(En,Lt,Xa),Le.sub(Tn,or,Lt);var s=En.len(),l=Tn.len();if(s<0.001||l<0.001)return;En.scale(1/s),Tn.scale(1/l);var u=En.dot(e),f=Math.cos(r);if(u<f){var c=tg(Lt.x,Lt.y,or.x,or.y,Xa.x,Xa.y,rg,!1);ri.fromArray(rg);var p=Math.PI/2,v=Math.acos(Tn.dot(e)),h=p+v-r;if(h>=p)Le.copy(ri,or);else{ri.scaleAndAdd(Tn,c/Math.tan(Math.PI/2-h));var d=or.x!==Lt.x?(ri.x-Lt.x)/(or.x-Lt.x):(ri.y-Lt.y)/(or.y-Lt.y);if(isNaN(d))return;if(d<0)Le.copy(ri,Lt);else if(d>1)Le.copy(ri,or)}ri.toArray(n[1])}}function mS(n,e,r,s){var l=r==="normal",u=l?n:n.ensureState(r);u.ignore=e;var f=s.get("smooth");f=f===!0?0.3:Math.max(+f,0)||0,u.shape=u.shape||{},u.shape.smooth=f;var c=s.getModel("lineStyle").getLineStyle();l?n.useStyle(c):u.style=c}function E4(n,e){var{smooth:r,points:s}=e;if(!s)return;if(n.moveTo(s[0][0],s[0][1]),r>0&&s.length>=3){var l=Dc(s[0],s[1]),u=Dc(s[1],s[2]);if(!l||!u){n.lineTo(s[1][0],s[1][1]),n.lineTo(s[2][0],s[2][1]);return}var f=Math.min(l,u)*r,c=Tu([],s[1],s[0],f/l),p=Tu([],s[1],s[2],f/u),v=Tu([],c,p,0.5);n.bezierCurveTo(c[0],c[1],c[0],c[1],v[0],v[1]),n.bezierCurveTo(p[0],p[1],p[0],p[1],s[2][0],s[2][1])}else for(var h=1;h<s.length;h++)n.lineTo(s[h][0],s[h][1])}function wf(n,e,r){var s=n.getTextGuideLine(),l=n.getTextContent();if(!l){if(s)n.removeTextGuideLine();return}var u=e.normal,f=u.get("show"),c=l.ignore;for(var p=0;p<is.length;p++){var v=is[p],h=e[v],d=v==="normal";if(h){var m=h.get("show"),g=d?c:te(l.states[v]&&l.states[v].ignore,c);if(g||!te(m,f)){var y=d?s:s&&s.states[v];if(y)y.ignore=!0;if(s)mS(s,!0,v,h);continue}if(!s){if(s=new ur,n.setTextGuideLine(s),!d&&(c||!f))mS(s,!0,"normal",e.normal);if(n.stateProxy)s.stateProxy=n.stateProxy}mS(s,!1,v,h)}}if(s){pe(s.style,r),s.style.fill=null;var x=u.get("showAbove"),S=n.textGuideLineConfig=n.textGuideLineConfig||{};S.showAbove=x||!1,s.buildPath=E4}}function If(n,e){e=e||"labelLine";var r={normal:n.getModel(e)};for(var s=0;s<hr.length;s++){var l=hr[s];r[l]=n.getModel([l,e])}return r}var w4=Math.PI/180;function ML(n,e,r,s,l,u,f,c,p,v){if(n.length<2)return;function h(x){var S=x.rB,D=S*S;for(var b=0;b<x.list.length;b++){var C=x.list[b],A=Math.abs(C.label.y-r),T=s+C.len,E=T*T,w=Math.sqrt(Math.abs((1-A*A/D)*E)),L=e+(w+C.len2)*l,M=L-C.label.x,P=C.targetTextWidth-M*l;PL(C,P,!0),C.label.x=L}}function d(x){var S={list:[],maxY:0},D={list:[],maxY:0};for(var b=0;b<x.length;b++){if(x[b].labelAlignTo!=="none")continue;var C=x[b],A=C.label.y>r?D:S,T=Math.abs(C.label.y-r);if(T>=A.maxY){var E=C.label.x-e-C.len2*l,w=s+C.len,L=Math.abs(E)<w?Math.sqrt(T*T/(1-E*E/w/w)):w;A.rB=L,A.maxY=T}A.list.push(C)}h(S),h(D)}var m=n.length;for(var g=0;g<m;g++)if(n[g].position==="outer"&&n[g].labelAlignTo==="labelLine"){var y=n[g].label.x-v;n[g].linePoints[1][0]+=y,n[g].label.x=v}if(Rp(n,1,p,p+f))d(n)}function I4(n,e,r,s,l,u,f,c){var p=[],v=[],h=Number.MAX_VALUE,d=-Number.MAX_VALUE;for(var m=0;m<n.length;m++){var g=n[m].label;if(xS(n[m]))continue;if(g.x<e)h=Math.min(h,g.x),p.push(n[m]);else d=Math.max(d,g.x),v.push(n[m])}for(var m=0;m<n.length;m++){var y=n[m];if(!xS(y)&&y.linePoints){if(y.labelStyleWidth!=null)continue;var{label:g,linePoints:x}=y,S=void 0;if(y.labelAlignTo==="edge")if(g.x<e)S=x[2][0]-y.labelDistance-f-y.edgeDistance;else S=f+l-y.edgeDistance-x[2][0]-y.labelDistance;else if(y.labelAlignTo==="labelLine")if(g.x<e)S=h-f-y.bleedMargin;else S=f+l-d-y.bleedMargin;else if(g.x<e)S=g.x-f-y.bleedMargin;else S=f+l-g.x-y.bleedMargin;y.targetTextWidth=S,PL(y,S,!1)}}ML(v,e,r,s,1,l,u,f,c,d),ML(p,e,r,s,-1,l,u,f,c,h);for(var m=0;m<n.length;m++){var y=n[m];if(!xS(y)&&y.linePoints){var{label:g,linePoints:x}=y,D=y.labelAlignTo==="edge",b=g.style.padding,C=b?b[1]+b[3]:0,A=g.style.backgroundColor?0:C,T=y.rect.width+A,E=x[1][0]-x[2][0];if(D)if(g.x<e)x[2][0]=f+y.edgeDistance+T+y.labelDistance;else x[2][0]=f+l-y.edgeDistance-T-y.labelDistance;else{if(g.x<e)x[2][0]=g.x+y.labelDistance;else x[2][0]=g.x-y.labelDistance;x[1][0]=x[2][0]+E}x[1][1]=x[2][1]=g.y}}}function PL(n,e,r){if(n.labelStyleWidth!=null)return;var s=n.label,l=s.style,u=n.rect,{backgroundColor:f,padding:c}=l,p=c?c[1]+c[3]:0,v=l.overflow,h=u.width+(f?0:p);if(e<h||r){if(v&&v.match("break")){s.setStyle("backgroundColor",null),s.setStyle("width",e-p);var d=s.getBoundingRect();s.setStyle("width",Math.ceil(d.width)),s.setStyle("backgroundColor",f)}else{var m=e-p,g=e<h?m:r?m>n.unconstrainedWidth?null:m:null;s.setStyle("width",g)}RL(u,s)}}function RL(n,e){LL.rect=n,aS(LL,e,M4)}var M4={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},LL={};function xS(n){return n.position==="center"}function _S(n){var e=n.getData(),r=[],s,l,u=!1,f=(n.get("minShowLabelAngle")||0)*w4,c=e.getLayout("viewRect"),p=e.getLayout("r"),{width:v,x:h,y:d,height:m}=c;function g(E){E.ignore=!0}function y(E){if(!E.ignore)return!0;for(var w in E.states)if(E.states[w].ignore===!1)return!0;return!1}if(e.each(function(E){var w=e.getItemGraphicEl(E),L=w.shape,M=w.getTextContent(),P=w.getTextGuideLine(),R=e.getItemModel(E),N=R.getModel("label"),O=N.get("position")||R.get(["emphasis","label","position"]),B=N.get("distanceToLabelLine"),F=N.get("alignTo"),z=ee(N.get("edgeDistance"),v),H=N.get("bleedMargin");if(H==null)H=Math.min(v,m)>200?10:2;var G=R.getModel("labelLine"),Z=G.get("length");Z=ee(Z,v);var Q=G.get("length2");if(Q=ee(Q,v),Math.abs(L.endAngle-L.startAngle)<f){if(I(M.states,g),M.ignore=!0,P)I(P.states,g),P.ignore=!0;return}if(!y(M))return;var q=(L.startAngle+L.endAngle)/2,ae=Math.cos(q),ce=Math.sin(q),ne,de,ze,dt;s=L.cx,l=L.cy;var ke=O==="inside"||O==="inner";if(O==="center")ne=L.cx,de=L.cy,dt="center";else{var me=(ke?(L.r+L.r0)/2*ae:L.r*ae)+s,Ge=(ke?(L.r+L.r0)/2*ce:L.r*ce)+l;if(ne=me+ae*3,de=Ge+ce*3,!ke){var ge=me+ae*(Z+p-L.r),Ie=Ge+ce*(Z+p-L.r),He=ge+(ae<0?-1:1)*Q,ot=Ie;if(F==="edge")ne=ae<0?h+z:h+v-z;else ne=He+(ae<0?-B:B);de=ot,ze=[[me,Ge],[ge,Ie],[He,ot]]}dt=ke?"center":F==="edge"?ae>0?"right":"left":ae>0?"left":"right"}var je=Math.PI,ct=0,Ot=N.get("rotate");if(Te(Ot))ct=Ot*(je/180);else if(O==="center")ct=0;else if(Ot==="radial"||Ot===!0){var $t=ae<0?-q+je:-q;ct=$t}else if(Ot==="tangential"||Ot==="tangential-noflip"&&O!=="outside"&&O!=="outer"){var Nt=Math.atan2(ae,ce);if(Nt<0)Nt=je*2+Nt;var kt=ce>0;if(kt&&Ot!=="tangential-noflip")Nt=je+Nt;ct=Nt-je}if(u=!!ct,M.x=ne,M.y=de,M.rotation=ct,M.setStyle({verticalAlign:"middle"}),!ke){var ja=new De(0,0,0,0);RL(ja,M),r.push({label:M,labelLine:P,position:O,len:Z,len2:Q,minTurnAngle:G.get("minTurnAngle"),maxSurfaceAngle:G.get("maxSurfaceAngle"),surfaceNormal:new Le(ae,ce),linePoints:ze,textAlign:dt,labelDistance:B,labelAlignTo:F,edgeDistance:z,bleedMargin:H,rect:ja,unconstrainedWidth:ja.width,labelStyleWidth:M.style.width})}else{M.setStyle({align:dt});var Bn=M.states.select;if(Bn)Bn.x+=M.x,Bn.y+=M.y}w.setTextConfig({inside:ke})}),!u&&n.get("avoidLabelOverlap"))I4(r,s,l,p,v,m,h,d);for(var x=0;x<r.length;x++){var S=r[x],{label:D,labelLine:b}=S,C=isNaN(D.x)||isNaN(D.y);if(D){if(D.setStyle({align:S.textAlign}),C)I(D.states,g),D.ignore=!0;var A=D.states.select;if(A)A.x+=D.x,A.y+=D.y}if(b){var T=S.linePoints;if(C||!T)I(b.states,g),b.ignore=!0;else yS(T,S.minTurnAngle),IL(T,S.surfaceNormal,S.maxSurfaceAngle),b.setShape({points:T}),D.__hostTarget.textGuideLineConfig={anchor:new Le(T[0][0],T[0][1])}}}}var OL=Math.PI*2,ig=Math.PI/180,NL=yt(Wa,L4);function L4(n,e){n.eachSeriesByType(Wa,function(r){var s=r.getData(),l=s.mapDimension("value"),u=tI(r,e),{cx:f,cy:c,r:p,r0:v,viewRect:h}=u,d=-r.get("startAngle")*ig,m=r.get("endAngle"),g=r.get("padAngle")*ig;m=m==="auto"?d-OL:-m*ig;var y=r.get("minAngle")*ig,x=y+g,S=0;s.each(l,function(z){!isNaN(z)&&S++});var D=s.getSum(l),b=Math.PI/(D||S)*2,C=r.get("clockwise"),A=r.get("roseType"),T=r.get("stillShowZeroSum"),E=s.getDataExtent(l);E[0]=0;var w=C?1:-1,L=[d,m],M=w*g/2;Fc(L,!C),d=L[0],m=L[1];var P=SS(r);P.startAngle=d,P.endAngle=m,P.clockwise=C,P.cx=f,P.cy=c,P.r=p,P.r0=v;var R=Math.abs(m-d),N=R,O=0,B=d;if(s.setLayout({viewRect:h,r:p}),s.each(l,function(z,H){var G;if(isNaN(z)){s.setItemLayout(H,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:C,cx:f,cy:c,r0:v,r:A?NaN:p});return}if(A!=="area")G=D===0&&T?b:z*b;else G=R/S;if(G<x)G=x,N-=x;else O+=z;var Z=B+w*G,Q=0,q=0;if(g>G)Q=B+w*G/2,q=Q;else Q=B+M,q=Z-M;s.setItemLayout(H,{angle:G,startAngle:Q,endAngle:q,clockwise:C,cx:f,cy:c,r0:v,r:A?Ze(z,E,[v,p]):p}),B=Z}),N<OL&&S)if(N<=0.001){var F=R/S;s.each(l,function(z,H){if(!isNaN(z)){var G=s.getItemLayout(H);G.angle=F;var Z=0,Q=0;if(F<g)Z=d+w*(H+0.5)*F,Q=Z;else Z=d+w*H*F+M,Q=d+w*(H+1)*F-M;G.startAngle=Z,G.endAngle=Q}})}else b=N/O,B=d,s.each(l,function(z,H){if(!isNaN(z)){var G=s.getItemLayout(H),Z=G.angle===x?x:z*b,Q=0,q=0;if(Z<g)Q=B+w*Z/2,q=Q;else Q=B+M,q=B+w*Z-M;G.startAngle=Q,G.endAngle=q,B+=w*Z}})})}var SS=he();var P4=function(n){k(e,n);function e(r,s,l){var u=n.call(this)||this;u.z2=2;var f=new Ve;return u.setTextContent(f),u.updateData(r,s,l,!0),u}return e.prototype.updateData=function(r,s,l,u){var f=this,c=r.hostModel,p=r.getItemModel(s),v=p.getModel("emphasis"),h=r.getItemLayout(s),d=V(Cn(p.getModel("itemStyle"),h,!0),h);if(isNaN(d.startAngle)){f.setShape(d);return}if(u){f.setShape(d);var m=c.getShallow("animationType");if(c.ecModel.ssr)$e(f,{scaleX:0,scaleY:0},c,{dataIndex:s,isFrom:!0}),f.originX=d.cx,f.originY=d.cy;else if(m==="scale")f.shape.r=h.r0,$e(f,{shape:{r:h.r}},c,s);else if(l!=null)f.setShape({startAngle:l,endAngle:l}),$e(f,{shape:{startAngle:h.startAngle,endAngle:h.endAngle}},c,s);else f.shape.endAngle=h.startAngle,Oe(f,{shape:{endAngle:h.endAngle}},c,s)}else fr(f),Oe(f,{shape:d},c,s);f.useStyle(r.getItemVisual(s,"style")),wt(f,p);var g=(h.startAngle+h.endAngle)/2,y=c.get("selectedOffset"),x=Math.cos(g)*y,S=Math.sin(g)*y,D=p.getShallow("cursor");D&&f.attr("cursor",D),this._updateLabel(c,r,s),f.ensureState("emphasis").shape=V({r:h.r+(v.get("scale")?v.get("scaleSize")||0:0)},Cn(v.getModel("itemStyle"),h)),V(f.ensureState("select"),{x,y:S,shape:Cn(p.getModel(["select","itemStyle"]),h)}),V(f.ensureState("blur"),{shape:Cn(p.getModel(["blur","itemStyle"]),h)});var b=f.getTextGuideLine(),C=f.getTextContent();b&&V(b.ensureState("select"),{x,y:S}),V(C.ensureState("select"),{x,y:S}),it(this,v.get("focus"),v.get("blurScope"),v.get("disabled"))},e.prototype._updateLabel=function(r,s,l){var u=this,f=s.getItemModel(l),c=f.getModel("labelLine"),p=s.getItemVisual(l,"style"),v=p&&p.fill,h=p&&p.opacity;Mt(u,St(f),{labelFetcher:s.hostModel,labelDataIndex:l,inheritColor:v,defaultOpacity:h,defaultText:r.getFormattedLabel(l,"normal")||s.getName(l)});var d=u.getTextContent();u.setTextConfig({position:null,rotation:null}),d.attr({z2:10});var m=f.get(["label","position"]);if(m!=="outside"&&m!=="outer")u.removeTextGuideLine();else{var g=this.getTextGuideLine();if(!g)g=new ur,this.setTextGuideLine(g);wf(this,If(f),{stroke:v,opacity:Jt(c.get(["lineStyle","opacity"]),h,1)})}},e}(Xt),R4=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=Wa,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,s,l,u){var f=r.getData(),c=this._data,p=this.group,v;if(!c&&f.count()>0){var h=f.getItemLayout(0);for(var d=1;isNaN(h&&h.startAngle)&&d<f.count();++d)h=f.getItemLayout(d);if(h)v=h.startAngle}if(this._emptyCircleSector)p.remove(this._emptyCircleSector);if(f.count()===0&&r.get("showEmptyCircle")){var m=SS(r),g=new Xt({shape:le(m)});g.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=g,p.add(g)}if(f.diff(c).add(function(y){var x=new P4(f,y,v);f.setItemGraphicEl(y,x),p.add(x)}).update(function(y,x){var S=c.getItemGraphicEl(x);S.updateData(f,y,v),S.off("click"),p.add(S),f.setItemGraphicEl(y,S)}).remove(function(y){var x=c.getItemGraphicEl(y);vn(x,r,y)}).execute(),_S(r),r.get("animationTypeUpdate")!=="expansion")this._data=f},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,s){var l=s.getData(),u=l.getItemLayout(0);if(u){var f=r[0]-u.cx,c=r[1]-u.cy,p=Math.sqrt(f*f+c*c);return p<=u.r&&p>=u.r0}},e.type=Wa,e}(qe),kL=R4;function DS(n){return{seriesType:n,reset:function(e,r){var s=e.getData();s.filterSelf(function(l){var u=s.mapDimension("value"),f=s.get(u,l);if(Te(f)&&!isNaN(f)&&f<0)return!1;return!0})}}}function bS(n){n.registerChartView(kL),n.registerSeriesModel(EL),CL(Wa,n.registerAction),n.registerLayout(NL),n.registerProcessor(Ao(Wa)),n.registerProcessor(DS(Wa))}var Mf=function(){function n(e,r){this.target=e,this.topTarget=r&&r.topTarget}return n}(),O4=function(){function n(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return n.prototype._dragStart=function(e){var r=e.target;while(r&&!r.draggable)r=r.parent||r.__hostTarget;if(r)this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Mf(r,e),"dragstart",e.event)},n.prototype._drag=function(e){var r=this._draggingTarget;if(r){var{offsetX:s,offsetY:l}=e,u=s-this._x,f=l-this._y;this._x=s,this._y=l,r.drift(u,f,e),this.handler.dispatchToElement(new Mf(r,e),"drag",e.event);var c=this.handler.findHover(s,l,r).target,p=this._dropTarget;if(this._dropTarget=c,r!==c){if(p&&c!==p)this.handler.dispatchToElement(new Mf(p,e),"dragleave",e.event);if(c&&c!==p)this.handler.dispatchToElement(new Mf(c,e),"dragenter",e.event)}}},n.prototype._dragEnd=function(e){var r=this._draggingTarget;if(r)r.dragging=!1;if(this.handler.dispatchToElement(new Mf(r,e),"dragend",e.event),this._dropTarget)this.handler.dispatchToElement(new Mf(this._dropTarget,e),"drop",e.event);this._draggingTarget=null,this._dropTarget=null},n}(),BL=O4;var N4=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,CS=[],k4=Ue.browser.firefox&&+Ue.browser.version.split(".")[0]<39;function ag(n,e,r,s){if(r=r||{},s)FL(n,e,r);else if(k4&&e.layerX!=null&&e.layerX!==e.offsetX)r.zrX=e.layerX,r.zrY=e.layerY;else if(e.offsetX!=null)r.zrX=e.offsetX,r.zrY=e.offsetY;else FL(n,e,r);return r}function FL(n,e,r){if(Ue.domSupported&&n.getBoundingClientRect){var{clientX:s,clientY:l}=e;if(S_(n)){var u=n.getBoundingClientRect();r.zrX=s-u.left,r.zrY=l-u.top;return}else if(Fd(CS,n,s,l)){r.zrX=CS[0],r.zrY=CS[1];return}}r.zrX=r.zrY=0}function ng(n){return n||window.event}function Ci(n,e,r){if(e=ng(e),e.zrX!=null)return e;var s=e.type,l=s&&s.indexOf("touch")>=0;if(!l){ag(n,e,e,r);var u=B4(e);e.zrDelta=u?u/120:-(e.detail||0)/3}else{var f=s!=="touchend"?e.targetTouches[0]:e.changedTouches[0];f&&ag(n,f,e,r)}var c=e.button;if(e.which==null&&c!==void 0&&N4.test(e.type))e.which=c&1?1:c&2?3:c&4?2:0;return e}function B4(n){var e=n.wheelDelta;if(e)return e;var{deltaX:r,deltaY:s}=n;if(r==null||s==null)return e;var l=s!==0?Math.abs(s):Math.abs(r),u=s>0?-1:s<0?1:r>0?-1:1;return 3*l*u}function zL(n,e,r,s){n.addEventListener(e,r,s)}function VL(n,e,r,s){n.removeEventListener(e,r,s)}var Ai=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function AS(n){return n.which===2||n.which===3}var GL=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,r,s){return this._doTrack(e,r,s),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,r,s){var l=e.touches;if(!l)return;var u={points:[],touches:[],target:r,event:e};for(var f=0,c=l.length;f<c;f++){var p=l[f],v=ag(s,p,{});u.points.push([v.zrX,v.zrY]),u.touches.push(p)}this._track.push(u)},n.prototype._recognize=function(e){for(var r in TS)if(TS.hasOwnProperty(r)){var s=TS[r](this._track,e);if(s)return s}},n}();function UL(n){var e=n[1][0]-n[0][0],r=n[1][1]-n[0][1];return Math.sqrt(e*e+r*r)}function F4(n){return[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]}var TS={pinch:function(n,e){var r=n.length;if(!r)return;var s=(n[r-1]||{}).points,l=(n[r-2]||{}).points||s;if(l&&l.length>1&&s&&s.length>1){var u=UL(s)/UL(l);!isFinite(u)&&(u=1),e.pinchScale=u;var f=F4(s);return e.pinchX=f[0],e.pinchY=f[1],{type:"pinch",target:n[0].target,event:e}}}};var WL="silent";function z4(n,e,r){return{type:n,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:V4}}function V4(){Ai(this.event)}var U4=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(_r),Vp=function(){function n(e,r){this.x=e,this.y=r}return n}(),G4=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ES=new De(0,0,0,0),YL=function(n){k(e,n);function e(r,s,l,u,f){var c=n.call(this)||this;return c._hovered=new Vp(0,0),c.storage=r,c.painter=s,c.painterRoot=u,c._pointerSize=f,l=l||new U4,c.proxy=null,c.setHandlerProxy(l),c._draggingMgr=new BL(c),c}return e.prototype.setHandlerProxy=function(r){if(this.proxy)this.proxy.dispose();if(r)I(G4,function(s){r.on&&r.on(s,this[s],this)},this),r.handler=this;this.proxy=r},e.prototype.mousemove=function(r){var{zrX:s,zrY:l}=r,u=XL(this,s,l),f=this._hovered,c=f.target;if(c&&!c.__zr)f=this.findHover(f.x,f.y),c=f.target;var p=this._hovered=u?new Vp(s,l):this.findHover(s,l),v=p.target,h=this.proxy;if(h.setCursor&&h.setCursor(v?v.cursor:"default"),c&&v!==c)this.dispatchToElement(f,"mouseout",r);if(this.dispatchToElement(p,"mousemove",r),v&&v!==c)this.dispatchToElement(p,"mouseover",r)},e.prototype.mouseout=function(r){var s=r.zrEventControl;if(s!=="only_globalout")this.dispatchToElement(this._hovered,"mouseout",r);if(s!=="no_globalout")this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Vp(0,0)},e.prototype.dispatch=function(r,s){var l=this[r];l&&l.call(this,s)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var s=this.proxy;s.setCursor&&s.setCursor(r)},e.prototype.dispatchToElement=function(r,s,l){r=r||{};var u=r.target;if(u&&u.silent)return;var f="on"+s,c=z4(s,r,l);while(u)if(u[f]&&(c.cancelBubble=!!u[f].call(u,c)),u.trigger(s,c),u=u.__hostTarget?u.__hostTarget:u.parent,c.cancelBubble)break;if(!c.cancelBubble){if(this.trigger(s,c),this.painter&&this.painter.eachOtherLayer)this.painter.eachOtherLayer(function(p){if(typeof p[f]==="function")p[f].call(p,c);if(p.trigger)p.trigger(s,c)})}},e.prototype.findHover=function(r,s,l){var u=this.storage.getDisplayList(),f=new Vp(r,s);if(HL(u,f,r,s,l),this._pointerSize&&!f.target){var c=[],p=this._pointerSize,v=p/2,h=new De(r-v,s-v,p,p);for(var d=u.length-1;d>=0;d--){var m=u[d];if(m!==l&&!m.ignore&&!m.ignoreCoarsePointer&&(!m.parent||!m.parent.ignoreCoarsePointer)){if(ES.copy(m.getBoundingRect()),m.transform)ES.applyTransform(m.transform);if(ES.intersect(h))c.push(m)}}if(c.length){var g=4,y=Math.PI/12,x=Math.PI*2;for(var S=0;S<v;S+=g)for(var D=0;D<x;D+=y){var b=r+S*Math.cos(D),C=s+S*Math.sin(D);if(HL(c,f,b,C,l),f.target)return f}}}return f},e.prototype.processGesture=function(r,s){if(!this._gestureMgr)this._gestureMgr=new GL;var l=this._gestureMgr;s==="start"&&l.clear();var u=l.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(s==="end"&&l.clear(),u){var f=u.type;r.gestureEvent=f;var c=new Vp;c.target=u.target,this.dispatchToElement(c,f,u.event)}},e}(_r);I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){YL.prototype[n]=function(e){var{zrX:r,zrY:s}=e,l=XL(this,r,s),u,f;if(n!=="mouseup"||!l)u=this.findHover(r,s),f=u.target;if(n==="mousedown")this._downEl=f,this._downPoint=[e.zrX,e.zrY],this._upEl=f;else if(n==="mouseup")this._upEl=f;else if(n==="click"){if(this._downEl!==this._upEl||!this._downPoint||Dc(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(u,n,e)}});function H4(n,e,r){if(n[n.rectHover?"rectContain":"contain"](e,r)){var s=n,l=void 0,u=!1;while(s){if(s.ignoreClip)u=!0;if(!u){var f=s.getClipPath();if(f&&!f.contain(e,r))return!1}if(s.silent)l=!0;var c=s.__hostTarget;s=c?s.ignoreHostSilent?null:c:s.parent}return l?WL:!0}return!1}function HL(n,e,r,s,l){for(var u=n.length-1;u>=0;u--){var f=n[u],c=void 0;if(f!==l&&!f.ignore&&(c=H4(f,r,s))){if(!e.topTarget&&(e.topTarget=f),c!==WL){e.target=f;break}}}}function XL(n,e,r){var s=n.painter;return e<0||e>s.getWidth()||r<0||r>s.getHeight()}var ZL=YL;var jL=32,Up=7;function W4(n){var e=0;while(n>=jL)e|=n&1,n>>=1;return n+e}function KL(n,e,r,s){var l=e+1;if(l===r)return 1;if(s(n[l++],n[e])<0){while(l<r&&s(n[l],n[l-1])<0)l++;Y4(n,e,l)}else while(l<r&&s(n[l],n[l-1])>=0)l++;return l-e}function Y4(n,e,r){r--;while(e<r){var s=n[e];n[e++]=n[r],n[r--]=s}}function qL(n,e,r,s,l){if(s===e)s++;for(;s<r;s++){var u=n[s],f=e,c=s,p;while(f<c)if(p=f+c>>>1,l(u,n[p])<0)c=p;else f=p+1;var v=s-f;switch(v){case 3:n[f+3]=n[f+2];case 2:n[f+2]=n[f+1];case 1:n[f+1]=n[f];break;default:while(v>0)n[f+v]=n[f+v-1],v--}n[f]=u}}function wS(n,e,r,s,l,u){var f=0,c=0,p=1;if(u(n,e[r+l])>0){c=s-l;while(p<c&&u(n,e[r+l+p])>0)if(f=p,p=(p<<1)+1,p<=0)p=c;if(p>c)p=c;f+=l,p+=l}else{c=l+1;while(p<c&&u(n,e[r+l-p])<=0)if(f=p,p=(p<<1)+1,p<=0)p=c;if(p>c)p=c;var v=f;f=l-p,p=l-v}f++;while(f<p){var h=f+(p-f>>>1);if(u(n,e[r+h])>0)f=h+1;else p=h}return p}function IS(n,e,r,s,l,u){var f=0,c=0,p=1;if(u(n,e[r+l])<0){c=l+1;while(p<c&&u(n,e[r+l-p])<0)if(f=p,p=(p<<1)+1,p<=0)p=c;if(p>c)p=c;var v=f;f=l-p,p=l-v}else{c=s-l;while(p<c&&u(n,e[r+l+p])>=0)if(f=p,p=(p<<1)+1,p<=0)p=c;if(p>c)p=c;f+=l,p+=l}f++;while(f<p){var h=f+(p-f>>>1);if(u(n,e[r+h])<0)p=h;else f=h+1}return p}function X4(n,e){var r=Up,s,l,u=0,f=[];s=[],l=[];function c(g,y){s[u]=g,l[u]=y,u+=1}function p(){while(u>1){var g=u-2;if(g>=1&&l[g-1]<=l[g]+l[g+1]||g>=2&&l[g-2]<=l[g]+l[g-1]){if(l[g-1]<l[g+1])g--}else if(l[g]>l[g+1])break;h(g)}}function v(){while(u>1){var g=u-2;if(g>0&&l[g-1]<l[g+1])g--;h(g)}}function h(g){var y=s[g],x=l[g],S=s[g+1],D=l[g+1];if(l[g]=x+D,g===u-3)s[g+1]=s[g+2],l[g+1]=l[g+2];u--;var b=IS(n[S],n,y,x,0,e);if(y+=b,x-=b,x===0)return;if(D=wS(n[y+x-1],n,S,D,D-1,e),D===0)return;if(x<=D)d(y,x,S,D);else m(y,x,S,D)}function d(g,y,x,S){var D=0;for(D=0;D<y;D++)f[D]=n[g+D];var b=0,C=x,A=g;if(n[A++]=n[C++],--S===0){for(D=0;D<y;D++)n[A+D]=f[b+D];return}if(y===1){for(D=0;D<S;D++)n[A+D]=n[C+D];n[A+S]=f[b];return}var T=r,E,w,L;while(!0){E=0,w=0,L=!1;do if(e(n[C],f[b])<0){if(n[A++]=n[C++],w++,E=0,--S===0){L=!0;break}}else if(n[A++]=f[b++],E++,w=0,--y===1){L=!0;break}while((E|w)<T);if(L)break;do{if(E=IS(n[C],f,b,y,0,e),E!==0){for(D=0;D<E;D++)n[A+D]=f[b+D];if(A+=E,b+=E,y-=E,y<=1){L=!0;break}}if(n[A++]=n[C++],--S===0){L=!0;break}if(w=wS(f[b],n,C,S,0,e),w!==0){for(D=0;D<w;D++)n[A+D]=n[C+D];if(A+=w,C+=w,S-=w,S===0){L=!0;break}}if(n[A++]=f[b++],--y===1){L=!0;break}T--}while(E>=Up||w>=Up);if(L)break;if(T<0)T=0;T+=2}if(r=T,r<1&&(r=1),y===1){for(D=0;D<S;D++)n[A+D]=n[C+D];n[A+S]=f[b]}else if(y===0)throw Error();else for(D=0;D<y;D++)n[A+D]=f[b+D]}function m(g,y,x,S){var D=0;for(D=0;D<S;D++)f[D]=n[x+D];var b=g+y-1,C=S-1,A=x+S-1,T=0,E=0;if(n[A--]=n[b--],--y===0){T=A-(S-1);for(D=0;D<S;D++)n[T+D]=f[D];return}if(S===1){A-=y,b-=y,E=A+1,T=b+1;for(D=y-1;D>=0;D--)n[E+D]=n[T+D];n[A]=f[C];return}var w=r;while(!0){var L=0,M=0,P=!1;do if(e(f[C],n[b])<0){if(n[A--]=n[b--],L++,M=0,--y===0){P=!0;break}}else if(n[A--]=f[C--],M++,L=0,--S===1){P=!0;break}while((L|M)<w);if(P)break;do{if(L=y-IS(f[C],n,g,y,y-1,e),L!==0){A-=L,b-=L,y-=L,E=A+1,T=b+1;for(D=L-1;D>=0;D--)n[E+D]=n[T+D];if(y===0){P=!0;break}}if(n[A--]=f[C--],--S===1){P=!0;break}if(M=S-wS(n[b],f,0,S,S-1,e),M!==0){A-=M,C-=M,S-=M,E=A+1,T=C+1;for(D=0;D<M;D++)n[E+D]=f[T+D];if(S<=1){P=!0;break}}if(n[A--]=n[b--],--y===0){P=!0;break}w--}while(L>=Up||M>=Up);if(P)break;if(w<0)w=0;w+=2}if(r=w,r<1)r=1;if(S===1){A-=y,b-=y,E=A+1,T=b+1;for(D=y-1;D>=0;D--)n[E+D]=n[T+D];n[A]=f[C]}else if(S===0)throw Error();else{T=A-(S-1);for(D=0;D<S;D++)n[T+D]=f[D]}}return{mergeRuns:p,forceMergeRuns:v,pushRun:c}}function $l(n,e,r,s){if(!r)r=0;if(!s)s=n.length;var l=s-r;if(l<2)return;var u=0;if(l<jL){u=KL(n,r,s,e),qL(n,r,s,r+u,e);return}var f=X4(n,e),c=W4(l);do{if(u=KL(n,r,s,e),u<c){var p=l;if(p>c)p=c;qL(n,r,r+p,r+u,e),u=p}f.pushRun(r,u),f.mergeRuns(),l-=u,r+=u}while(l!==0);f.forceMergeRuns()}var $L=!1;function MS(){if($L)return;$L=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors")}function QL(n,e){if(n.zlevel===e.zlevel){if(n.z===e.z)return n.z2-e.z2;return n.z-e.z}return n.zlevel-e.zlevel}var Z4=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=QL}return n.prototype.traverse=function(e,r){for(var s=0;s<this._roots.length;s++)this._roots[s].traverse(e,r)},n.prototype.getDisplayList=function(e,r){r=r||!1;var s=this._displayList;if(e||!s.length)this.updateDisplayList(r);return s},n.prototype.updateDisplayList=function(e){this._displayListLen=0;var r=this._roots,s=this._displayList;for(var l=0,u=r.length;l<u;l++)this._updateAndAddDisplayable(r[l],null,e);s.length=this._displayListLen,$l(s,QL)},n.prototype._updateAndAddDisplayable=function(e,r,s){if(e.ignore&&!s)return;e.beforeUpdate(),e.update(),e.afterUpdate();var l=e.getClipPath(),u=r&&r.length,f=0,c=e.__clipPaths;if(!e.ignoreClip&&(u||l)){if(!c)c=e.__clipPaths=[];if(u)for(var p=0;p<r.length;p++)c[f++]=r[p];var v=l,h=e;while(v)v.parent=h,v.updateTransform(),c[f++]=v,h=v,v=v.getClipPath()}if(c)c.length=f;if(e.childrenRef){var d=e.childrenRef();for(var m=0;m<d.length;m++){var g=d[m];if(e.__dirty)g.__dirty|=Nr;this._updateAndAddDisplayable(g,c,s)}e.__dirty=0}else{var y=e;if(isNaN(y.z))MS(),y.z=0;if(isNaN(y.z2))MS(),y.z2=0;if(isNaN(y.zlevel))MS(),y.zlevel=0;this._displayList[this._displayListLen++]=y}var x=e.getDecalElement&&e.getDecalElement();if(x)this._updateAndAddDisplayable(x,c,s);var S=e.getTextGuideLine();if(S)this._updateAndAddDisplayable(S,c,s);var D=e.getTextContent();if(D)this._updateAndAddDisplayable(D,c,s)},n.prototype.addRoot=function(e){if(e.__zr&&e.__zr.storage===this)return;this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,s=e.length;r<s;r++)this.delRoot(e[r]);return}var l=be(this._roots,e);if(l>=0)this._roots.splice(l,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0;return},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}(),JL=Z4;var eP;eP=Ue.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};var LS=eP;function Ql(){return new Date().getTime()}var K4=function(n){k(e,n);function e(r){var s=n.call(this)||this;return s._running=!1,s._time=0,s._pausedTime=0,s._pauseStart=0,s._paused=!1,r=r||{},s.stage=r.stage||{},s}return e.prototype.addClip=function(r){if(r.animation)this.removeClip(r);if(!this._head)this._head=this._tail=r;else this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r;r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var s=r.getClip();if(s)this.addClip(s)},e.prototype.removeClip=function(r){if(!r.animation)return;var{prev:s,next:l}=r;if(s)s.next=l;else this._head=l;if(l)l.prev=s;else this._tail=s;r.next=r.prev=r.animation=null},e.prototype.removeAnimator=function(r){var s=r.getClip();if(s)this.removeClip(s);r.animation=null},e.prototype.update=function(r){var s=Ql()-this._pausedTime,l=s-this._time,u=this._head;while(u){var f=u.next,c=u.step(s,l);if(c)u.ondestroy(),this.removeClip(u),u=f;else u=f}if(this._time=s,!r)this.trigger("frame",l),this.stage.update&&this.stage.update()},e.prototype._startLoop=function(){var r=this;this._running=!0;function s(){if(r._running)LS(s),!r._paused&&r.update()}LS(s)},e.prototype.start=function(){if(this._running)return;this._time=Ql(),this._pausedTime=0,this._startLoop()},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){if(!this._paused)this._pauseStart=Ql(),this._paused=!0},e.prototype.resume=function(){if(this._paused)this._pausedTime+=Ql()-this._pauseStart,this._paused=!1},e.prototype.clear=function(){var r=this._head;while(r){var s=r.next;r.prev=r.next=r.animation=null,r=s}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,s){s=s||{},this.start();var l=new Rc(r,s.loop);return this.addAnimator(l),l},e}(_r),tP=K4;var q4=300,PS=Ue.domSupported,RS=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},s=W(n,function(l){var u=l.replace("mouse","pointer");return r.hasOwnProperty(u)?u:l});return{mouse:n,touch:e,pointer:s}}(),rP={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},iP=!1;function kS(n){var e=n.pointerType;return e==="pen"||e==="touch"}function j4(n){if(n.touching=!0,n.touchTimer!=null)clearTimeout(n.touchTimer),n.touchTimer=null;n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function OS(n){n&&(n.zrByTouch=!0)}function $4(n,e){return Ci(n.dom,new Q4(n,e),!0)}function nP(n,e){var r=e,s=!1;while(r&&r.nodeType!==9&&!(s=r.domBelongToZr||r!==e&&r===n.painterRoot))r=r.parentNode;return s}var Q4=function(){function n(e,r){this.stopPropagation=mt,this.stopImmediatePropagation=mt,this.preventDefault=mt,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return n}(),Za={mousedown:function(n){n=Ci(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=Ci(this.dom,n);var e=this.__mayPointerCapture;if(e&&(n.zrX!==e[0]||n.zrY!==e[1]))this.__togglePointerCapture(!0);this.trigger("mousemove",n)},mouseup:function(n){n=Ci(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=Ci(this.dom,n);var e=n.toElement||n.relatedTarget;if(!nP(this,e)){if(this.__pointerCapturing)n.zrEventControl="no_globalout";this.trigger("mouseout",n)}},wheel:function(n){iP=!0,n=Ci(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){if(iP)return;n=Ci(this.dom,n),this.trigger("mousewheel",n)},touchstart:function(n){n=Ci(this.dom,n),OS(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),Za.mousemove.call(this,n),Za.mousedown.call(this,n)},touchmove:function(n){n=Ci(this.dom,n),OS(n),this.handler.processGesture(n,"change"),Za.mousemove.call(this,n)},touchend:function(n){if(n=Ci(this.dom,n),OS(n),this.handler.processGesture(n,"end"),Za.mouseup.call(this,n),+new Date-+this.__lastTouchMoment<q4)Za.click.call(this,n)},pointerdown:function(n){Za.mousedown.call(this,n)},pointermove:function(n){if(!kS(n))Za.mousemove.call(this,n)},pointerup:function(n){Za.mouseup.call(this,n)},pointerout:function(n){if(!kS(n))Za.mouseout.call(this,n)}};I(["click","dblclick","contextmenu"],function(n){Za[n]=function(e){e=Ci(this.dom,e),this.trigger(n,e)}});var BS={pointermove:function(n){if(!kS(n))BS.mousemove.call(this,n)},pointerup:function(n){BS.mouseup.call(this,n)},mousemove:function(n){this.trigger("mousemove",n)},mouseup:function(n){var e=this.__pointerCapturing;if(this.__togglePointerCapture(!1),this.trigger("mouseup",n),e)n.zrEventControl="only_globalout",this.trigger("mouseout",n)}};function J4(n,e){var r=e.domHandlers;if(Ue.pointerEventsSupported)I(RS.pointer,function(s){og(e,s,function(l){r[s].call(n,l)})});else{if(Ue.touchEventsSupported)I(RS.touch,function(s){og(e,s,function(l){r[s].call(n,l),j4(e)})});I(RS.mouse,function(s){og(e,s,function(l){if(l=ng(l),!e.touching)r[s].call(n,l)})})}}function eW(n,e){if(Ue.pointerEventsSupported)I(rP.pointer,r);else if(!Ue.touchEventsSupported)I(rP.mouse,r);function r(s){function l(u){if(u=ng(u),!nP(n,u.target))u=$4(n,u),e.domHandlers[s].call(n,u)}og(e,s,l,{capture:!0})}}function og(n,e,r,s){n.mounted[e]=r,n.listenerOpts[e]=s,zL(n.domTarget,e,r,s)}function NS(n){var e=n.mounted;for(var r in e)if(e.hasOwnProperty(r))VL(n.domTarget,r,e[r],n.listenerOpts[r]);n.mounted={}}var aP=function(){function n(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return n}(),tW=function(n){k(e,n);function e(r,s){var l=n.call(this)||this;if(l.__pointerCapturing=!1,l.dom=r,l.painterRoot=s,l._localHandlerScope=new aP(r,Za),PS)l._globalHandlerScope=new aP(document,BS);return J4(l,l._localHandlerScope),l}return e.prototype.dispose=function(){if(NS(this._localHandlerScope),PS)NS(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,PS&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var s=this._globalHandlerScope;r?eW(this,s):NS(s)}},e}(_r),oP=tW;/*!
|
|
41
|
+
* ZRender, a high performance 2d drawing library.
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
44
|
+
* All rights reserved.
|
|
45
|
+
*
|
|
46
|
+
* LICENSE
|
|
47
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE
|
|
48
|
+
*/var sg={},sP={};function rW(n){delete sP[n]}function iW(n){if(!n)return!1;if(typeof n==="string")return Ou(n,1)<Oc;else if(n.colorStops){var e=n.colorStops,r=0,s=e.length;for(var l=0;l<s;l++)r+=Ou(e[l].color,1);return r/=s,r<Oc}return!1}var aW=function(){function n(e,r,s){var l=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,s=s||{},this.dom=r,this.id=e;var u=new JL,f=s.renderer||"canvas";if(!sg[f])f=Me(sg)[0];s.useDirtyRect=s.useDirtyRect==null?!1:s.useDirtyRect;var c=new sg[f](r,u,s,e),p=s.ssr||c.ssrOnly;this.storage=u,this.painter=c;var v=!Ue.node&&!Ue.worker&&!p?new oP(c.getViewportRoot(),c.root):null,h=s.useCoarsePointer,d=h==null||h==="auto"?Ue.touchEventsSupported:!!h,m=44,g;if(d)g=te(s.pointerSize,m);if(this.handler=new ZL(u,c,v,c.root,g),this.animation=new tP({stage:{update:p?null:function(){return l._flush(!1)}}}),!p)this.animation.start()}return n.prototype.add=function(e){if(this._disposed||!e)return;this.storage.addRoot(e),e.addSelfToZr(this),this.refresh()},n.prototype.remove=function(e){if(this._disposed||!e)return;this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh()},n.prototype.configLayer=function(e,r){if(this._disposed)return;if(this.painter.configLayer)this.painter.configLayer(e,r);this.refresh()},n.prototype.setBackgroundColor=function(e){if(this._disposed)return;if(this.painter.setBackgroundColor)this.painter.setBackgroundColor(e);this.refresh(),this._backgroundColor=e,this._darkMode=iW(e)},n.prototype.getBackgroundColor=function(){return this._backgroundColor},n.prototype.setDarkMode=function(e){this._darkMode=e},n.prototype.isDarkMode=function(){return this._darkMode},n.prototype.refreshImmediately=function(e){if(this._disposed)return;this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},n.prototype._refresh=function(e){if(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},n.prototype.refresh=function(){if(this._disposed)return;this._needsRefresh=!0,this.animation.start()},n.prototype.flush=function(){if(this._disposed)return;this._flush(!0)},n.prototype._flush=function(e){var r,s=Ql(),l=this._needsRefresh,u=this._needsRefreshHover;if(l||u)r=!0,this._refresh({animUpdate:e,refresh:l,refreshHover:u});var f=Ql();if(r)this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:f-s});else if(this._sleepAfterStill>0){if(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill)this.animation.stop()}},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){if(this._disposed)return;this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){if(this._disposed)return;this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},n.prototype.resize=function(e){if(this._disposed)return;e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){if(this._disposed)return;this.animation.clear()},n.prototype.getWidth=function(){if(this._disposed)return;return this.painter.getWidth()},n.prototype.getHeight=function(){if(this._disposed)return;return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){if(this._disposed)return;this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,r){if(this._disposed)return;return this.handler.findHover(e,r)},n.prototype.on=function(e,r,s){if(!this._disposed)this.handler.on(e,r,s);return this},n.prototype.off=function(e,r){if(this._disposed)return;this.handler.off(e,r)},n.prototype.trigger=function(e,r){if(this._disposed)return;this.handler.trigger(e,r)},n.prototype.clear=function(){if(this._disposed)return;var e=this.storage.getRoots();for(var r=0;r<e.length;r++)if(e[r]instanceof ve)e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},n.prototype.dispose=function(){if(this._disposed)return;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,rW(this.id)},n}();function zS(n,e){var r=new aW(Xv(),n,e);return sP[r.id]=r,r}function lP(n,e){sg[n]=e}var FS;function uP(n){if(typeof FS==="function")return FS(n)}function fP(n){FS=n}var cP="";if(typeof navigator<"u")cP=navigator.platform||"";var Pf="rgba(0, 0, 0, 0.2)",pP=X.color.theme[0],oW=Ji(pP,null,null,0.9),lg={darkMode:"auto",colorBy:"series",color:X.color.theme,gradientColor:[oW,pP],aria:{decal:{decals:[{color:Pf,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Pf,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:0.8},{color:Pf,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Pf,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Pf,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Pf,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:0.75}]}},textStyle:{fontFamily:cP.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1000,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2000,progressiveThreshold:3000,progressive:400,hoverLayerThreshold:3000,useUTC:!1};var sW=re();function vP(n,e,r){var s=sW.get(e);if(!s)return r;var l=s(n);if(!l)return r;if(!1)for(var u;u<l.length;u++);return r.concat(l)}var ug,Gp,hP,dP="\x00_ec_inner",lW=1;var xP=function(n){k(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(r,s,l,u,f,c){u=u||{},this.option=null,this._theme=new Je(u),this._locale=new Je(f),this._optionManager=c},e.prototype.setOption=function(r,s,l){var u=yP(s);this._optionManager.setOption(r,l,u),this._resetOption(null,u)},e.prototype.resetOption=function(r,s){return this._resetOption(r,yP(s))},e.prototype._resetOption=function(r,s){var l=!1,u=this._optionManager;if(!r||r==="recreate"){var f=u.mountOption(r==="recreate");if(!this.option||r==="recreate")hP(this,f);else this.restoreData(),this._mergeOption(f,s);l=!0}if(r==="timeline"||r==="media")this.restoreData();if(!r||r==="recreate"||r==="timeline"){var c=u.getTimelineOption(this);if(c)l=!0,this._mergeOption(c,s)}if(!r||r==="recreate"||r==="media"){var p=u.getMediaOption(this);if(p.length)I(p,function(v){l=!0,this._mergeOption(v,s)},this)}return l},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,s){var l=this.option,u=this._componentsMap,f=this._componentsCount,c=[],p=re(),v=s&&s.replaceMergeMainTypeMap;if(vw(this),I(r,function(d,m){if(d==null)return;if(!Fe.hasClass(m))l[m]=l[m]==null?le(d):Re(l[m],d,!0);else if(m)c.push(m),p.set(m,!0)}),v)v.each(function(d,m){if(Fe.hasClass(m)&&!p.get(m))c.push(m),p.set(m,!0)});Fe.topologicalTravel(c,Fe.getAllClassMainTypes(),h,this);function h(d){var m=vP(this,d,nt(r[d])),g=u.get(d),y=!g?"replaceAll":v&&v.get(d)?"replaceMerge":"normalMerge",x=HT(g,m,y);YT(x,d,Fe),l[d]=null,u.set(d,null),f.set(d,0);var S=[],D=[],b=0,C,A;if(I(x,function(T,E){var{existing:w,newOption:L}=T;if(!L){if(w)w.mergeOption({},this),w.optionUpdated({},!1)}else{var M=d==="series",P=Fe.getClass(d,T.keyInfo.subType,!M);if(!P){if(!1)var R,N;return}if(d==="tooltip"){if(C)return;C=!0}if(w&&w.constructor===P)w.name=T.keyInfo.name,w.mergeOption(L,this),w.optionUpdated(L,!1);else{var O=V({componentIndex:E},T.keyInfo);if(w=new P(L,this,this,O),V(w,O),T.brandNew)w.__requireNewView=!0;w.init(L,this,this),w.optionUpdated(null,!0)}}if(w)S.push(w.option),D.push(w),b++;else S.push(void 0),D.push(void 0)},this),l[d]=S,u.set(d,D),f.set(d,b),d==="series")ug(this)}if(!this._seriesIndices)ug(this)},e.prototype.getOption=function(){var r=le(this.option);return I(r,function(s,l){if(Fe.hasClass(l)){var u=nt(s),f=u.length,c=!1;for(var p=f-1;p>=0;p--)if(u[p]&&!Gu(u[p]))c=!0;else u[p]=null,!c&&f--;u.length=f,r[l]=u}}),delete r[dP],r},e.prototype.setTheme=function(r){this._theme=new Je(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,s){var l=this._componentsMap.get(r);if(l){var u=l[s||0];if(u)return u;else if(s==null){for(var f=0;f<l.length;f++)if(l[f])return l[f]}}},e.prototype.queryComponents=function(r){var s=r.mainType;if(!s)return[];var{index:l,id:u,name:f}=r,c=this._componentsMap.get(s);if(!c||!c.length)return[];var p;if(l!=null)p=[],I(nt(l),function(v){c[v]&&p.push(c[v])});else if(u!=null)p=mP("id",u,c);else if(f!=null)p=mP("name",f,c);else p=Ke(c,function(v){return!!v});return gP(p,r)},e.prototype.findComponents=function(r){var{query:s,mainType:l}=r,u=c(s),f=u?this.queryComponents(u):Ke(this._componentsMap.get(l),function(v){return!!v});return p(gP(f,r));function c(v){var h=l+"Index",d=l+"Id",m=l+"Name";return v&&(v[h]!=null||v[d]!=null||v[m]!=null)?{mainType:l,index:v[h],id:v[d],name:v[m]}:null}function p(v){return r.filter?Ke(v,r.filter):v}},e.prototype.eachComponent=function(r,s,l){var u=this._componentsMap;if(ie(r)){var f=s,c=r;u.each(function(d,m){for(var g=0;d&&g<d.length;g++){var y=d[g];y&&c.call(f,m,y,y.componentIndex)}})}else{var p=K(r)?u.get(r):ue(r)?this.findComponents(r):null;for(var v=0;p&&v<p.length;v++){var h=p[v];h&&s.call(l,h,h.componentIndex)}}},e.prototype.getSeriesByName=function(r){var s=tr(r,null);return Ke(this._componentsMap.get("series"),function(l){return!!l&&s!=null&&l.name===s})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Ke(this._componentsMap.get("series"),function(s){return!!s&&s.subType===r})},e.prototype.getSeries=function(){return Ke(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,s){Gp(this),I(this._seriesIndices,function(l){var u=this._componentsMap.get("series")[l];r.call(s,u,l)},this)},e.prototype.eachRawSeries=function(r,s){I(this._componentsMap.get("series"),function(l){l&&r.call(s,l,l.componentIndex)})},e.prototype.eachSeriesByType=function(r,s,l){Gp(this),I(this._seriesIndices,function(u){var f=this._componentsMap.get("series")[u];if(f.subType===r)s.call(l,f,u)},this)},e.prototype.eachRawSeriesByType=function(r,s,l){return I(this.getSeriesByType(r),s,l)},e.prototype.isSeriesFiltered=function(r){return Gp(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,s){Gp(this);var l=[];I(this._seriesIndices,function(u){var f=this._componentsMap.get("series")[u];r.call(s,f,u)&&l.push(u)},this),this._seriesIndices=l,this._seriesIndicesMap=re(l)},e.prototype.restoreData=function(r){ug(this);var s=this._componentsMap,l=[];s.each(function(u,f){if(Fe.hasClass(f))l.push(f)}),Fe.topologicalTravel(l,Fe.getAllClassMainTypes(),function(u){I(s.get(u),function(f){if(f&&(u!=="series"||!uW(f,r)))f.restoreData()})})},e.internalField=function(){ug=function(r){var s=r._seriesIndices=[];I(r._componentsMap.get("series"),function(l){l&&s.push(l.componentIndex)}),r._seriesIndicesMap=re(s)},Gp=function(r){},hP=function(r,s){r.option={},r.option[dP]=lW,r._componentsMap=re({series:[]}),r._componentsCount=re();var l=s.aria;if(ue(l)&&l.enabled==null)l.enabled=!0;fW(s,r._theme.option),Re(s,lg,!1),r._mergeOption(s,null)}}(),e}(Je);function uW(n,e){if(e){var{seriesIndex:r,seriesId:s,seriesName:l}=e;return r!=null&&n.componentIndex!==r||s!=null&&n.id!==s||l!=null&&n.name!==l}}function fW(n,e){var r=n.color&&!n.colorLayer;I(e,function(s,l){if(l==="colorLayer"&&r||l==="color"&&n.color)return;if(!Fe.hasClass(l)){if(typeof s==="object")n[l]=!n[l]?le(s):Re(n[l],s,!1);else if(n[l]==null)n[l]=s}})}function mP(n,e,r){if(U(e)){var s=re();return I(e,function(u){if(u!=null){var f=tr(u,null);f!=null&&s.set(u,!0)}}),Ke(r,function(u){return u&&s.get(u[n])})}else{var l=tr(e,null);return Ke(r,function(u){return u&&l!=null&&u[n]===l})}}function gP(n,e){return e.hasOwnProperty("subType")?Ke(n,function(r){return r&&r.subType===e.subType}):n}function yP(n){var e=re();return n&&I(nt(n.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}xt(xP,xp);var fg=xP;var cW=/^(min|max)?(.+)$/,pW=function(){function n(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return n.prototype.setOption=function(e,r,s){if(e)I(nt(e.series),function(f){f&&f.data&&Yt(f.data)&&qs(f.data)}),I(nt(e.dataset),function(f){f&&f.source&&Yt(f.source)&&qs(f.source)});e=le(e);var l=this._optionBackup,u=vW(e,r,!l);if(this._newBaseOption=u.baseOption,l){if(u.timelineOptions.length)l.timelineOptions=u.timelineOptions;if(u.mediaList.length)l.mediaList=u.mediaList;if(u.mediaDefault)l.mediaDefault=u.mediaDefault}else this._optionBackup=u},n.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],le(e?r.baseOption:this._newBaseOption)},n.prototype.getTimelineOption=function(e){var r,s=this._timelineOptions;if(s.length){var l=e.getComponent("timeline");if(l)r=le(s[l.getCurrentIndex()])}return r},n.prototype.getMediaOption=function(e){var r=this._api.getWidth(),s=this._api.getHeight(),l=this._mediaList,u=this._mediaDefault,f=[],c=[];if(!l.length&&!u)return c;for(var p=0,v=l.length;p<v;p++)if(hW(l[p].query,r,s))f.push(p);if(!f.length&&u)f=[-1];if(f.length&&!mW(f,this._currentMediaIndices))c=W(f,function(h){return le(h===-1?u.option:l[h].option)});return this._currentMediaIndices=f,c},n}();function vW(n,e,r){var s=[],l,u,{baseOption:f,timeline:c,options:p,media:v}=n,h=!!n.media,d=!!(p||c||f&&f.timeline);if(f){if(u=f,!u.timeline)u.timeline=c}else{if(d||h)n.options=n.media=null;u=n}if(h){if(U(v))I(v,function(g){if(g&&g.option){if(g.query)s.push(g);else if(!l)l=g}})}m(u),I(p,function(g){return m(g)}),I(s,function(g){return m(g.option)});function m(g){I(e,function(y){y(g,r)})}return{baseOption:u,timelineOptions:p||[],mediaDefault:l,mediaList:s}}function hW(n,e,r){var s={width:e,height:r,aspectratio:e/r},l=!0;return I(n,function(u,f){var c=f.match(cW);if(!c||!c[1]||!c[2])return;var p=c[1],v=c[2].toLowerCase();if(!dW(s[v],u,p))l=!1}),l}function dW(n,e,r){if(r==="min")return n>=e;else if(r==="max")return n<=e;else return n===e}function mW(n,e){return n.join(",")===e.join(",")}var _P=pW;var Ka=I,Wp=ue,SP=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function VS(n){var e=n&&n.itemStyle;if(!e)return;for(var r=0,s=SP.length;r<s;r++){var l=SP[r],{normal:u,emphasis:f}=e;if(u&&u[l]){if(n[l]=n[l]||{},!n[l].normal)n[l].normal=u[l];else Re(n[l].normal,u[l]);u[l]=null}if(f&&f[l]){if(n[l]=n[l]||{},!n[l].emphasis)n[l].emphasis=f[l];else Re(n[l].emphasis,f[l]);f[l]=null}}}function Gr(n,e,r){if(n&&n[e]&&(n[e].normal||n[e].emphasis)){var s=n[e].normal,l=n[e].emphasis;if(s)if(r)n[e].normal=n[e].emphasis=null,pe(n[e],s);else n[e]=s;if(l){if(n.emphasis=n.emphasis||{},n.emphasis[e]=l,l.focus)n.emphasis.focus=l.focus;if(l.blurScope)n.emphasis.blurScope=l.blurScope}}}function Hp(n){Gr(n,"itemStyle"),Gr(n,"lineStyle"),Gr(n,"areaStyle"),Gr(n,"label"),Gr(n,"labelLine"),Gr(n,"upperLabel"),Gr(n,"edgeLabel")}function cr(n,e){var r=Wp(n)&&n[e],s=Wp(r)&&r.textStyle;if(s)for(var l=0,u=xx.length;l<u;l++){var f=xx[l];if(s.hasOwnProperty(f))r[f]=s[f]}}function va(n){if(n)Hp(n),cr(n,"label"),n.emphasis&&cr(n.emphasis,"label")}function gW(n){if(!Wp(n))return;if(VS(n),Hp(n),cr(n,"label"),cr(n,"upperLabel"),cr(n,"edgeLabel"),n.emphasis)cr(n.emphasis,"label"),cr(n.emphasis,"upperLabel"),cr(n.emphasis,"edgeLabel");var e=n.markPoint;if(e)VS(e),va(e);var r=n.markLine;if(r)VS(r),va(r);var s=n.markArea;if(s)va(s);var l=n.data;if(n.type==="graph"){l=l||n.nodes;var u=n.links||n.edges;if(u&&!Yt(u))for(var f=0;f<u.length;f++)va(u[f]);I(n.categories,function(v){Hp(v)})}if(l&&!Yt(l))for(var f=0;f<l.length;f++)va(l[f]);if(e=n.markPoint,e&&e.data){var c=e.data;for(var f=0;f<c.length;f++)va(c[f])}if(r=n.markLine,r&&r.data){var p=r.data;for(var f=0;f<p.length;f++)if(U(p[f]))va(p[f][0]),va(p[f][1]);else va(p[f])}if(n.type==="gauge")cr(n,"axisLabel"),cr(n,"title"),cr(n,"detail");else if(n.type==="treemap")Gr(n.breadcrumb,"itemStyle"),I(n.levels,function(v){Hp(v)});else if(n.type==="tree")Hp(n.leaves)}function To(n){return U(n)?n:n?[n]:[]}function DP(n){return(U(n)?n[0]:n)||{}}function US(n,e){Ka(To(n.series),function(s){Wp(s)&&gW(s)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ka(r,function(s){Ka(To(n[s]),function(l){if(l)cr(l,"axisLabel"),cr(l.axisPointer,"label")})}),Ka(To(n.parallel),function(s){var l=s&&s.parallelAxisDefault;cr(l,"axisLabel"),cr(l&&l.axisPointer,"label")}),Ka(To(n.calendar),function(s){Gr(s,"itemStyle"),cr(s,"dayLabel"),cr(s,"monthLabel"),cr(s,"yearLabel")}),Ka(To(n.radar),function(s){if(cr(s,"name"),s.name&&s.axisName==null)s.axisName=s.name,delete s.name;if(s.nameGap!=null&&s.axisNameGap==null)s.axisNameGap=s.nameGap,delete s.nameGap}),Ka(To(n.geo),function(s){if(Wp(s))va(s),Ka(To(s.regions),function(l){va(l)})}),Ka(To(n.timeline),function(s){va(s),Gr(s,"label"),Gr(s,"itemStyle"),Gr(s,"controlStyle",!0);var l=s.data;U(l)&&I(l,function(u){if(ue(u))Gr(u,"label"),Gr(u,"itemStyle")})}),Ka(To(n.toolbox),function(s){Gr(s,"iconStyle"),Ka(s.feature,function(l){Gr(l,"iconStyle")})}),cr(DP(n.axisPointer),"label"),cr(DP(n.tooltip).axisPointer,"label")}function yW(n,e){var r=e.split(","),s=n;for(var l=0;l<r.length;l++)if(s=s&&s[r[l]],s==null)break;return s}function xW(n,e,r,s){var l=e.split(","),u=n,f,c=0;for(;c<l.length-1;c++){if(f=l[c],u[f]==null)u[f]={};u=u[f]}if(s||u[l[c]]==null)u[l[c]]=r}function bP(n){n&&I(_W,function(e){if(e[0]in n&&!(e[1]in n))n[e[1]]=n[e[0]]})}var _W=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],SW=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],GS=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Yp(n){var e=n&&n.itemStyle;if(e)for(var r=0;r<GS.length;r++){var s=GS[r][1],l=GS[r][0];if(e[s]!=null)e[l]=e[s]}}function CP(n){if(!n)return;if(n.alignTo==="edge"&&n.margin!=null&&n.edgeDistance==null)n.edgeDistance=n.margin}function AP(n){if(!n)return;if(n.downplay&&!n.blur)n.blur=n.downplay}function DW(n){if(!n)return;if(n.focusNodeAdjacency!=null){if(n.emphasis=n.emphasis||{},n.emphasis.focus==null)n.emphasis.focus="adjacency"}}function TP(n,e){if(n)for(var r=0;r<n.length;r++)e(n[r]),n[r]&&TP(n[r].children,e)}function cg(n,e){if(US(n,e),n.series=nt(n.series),I(n.series,function(r){if(!ue(r))return;var s=r.type;if(s==="line"){if(r.clipOverflow!=null)r.clip=r.clipOverflow}else if(s==="pie"||s==="gauge"){if(r.clockWise!=null)r.clockwise=r.clockWise;CP(r.label);var l=r.data;if(l&&!Yt(l))for(var u=0;u<l.length;u++)CP(l[u]);if(r.hoverOffset!=null){if(r.emphasis=r.emphasis||{},r.emphasis.scaleSize=null)r.emphasis.scaleSize=r.hoverOffset}}else if(s==="gauge"){var f=yW(r,"pointer.color");f!=null&&xW(r,"itemStyle.color",f)}else if(s==="bar"){Yp(r),Yp(r.backgroundStyle),Yp(r.emphasis);var l=r.data;if(l&&!Yt(l)){for(var u=0;u<l.length;u++)if(typeof l[u]==="object")Yp(l[u]),Yp(l[u]&&l[u].emphasis)}}else if(s==="sunburst"){var c=r.highlightPolicy;if(c){if(r.emphasis=r.emphasis||{},!r.emphasis.focus)r.emphasis.focus=c}AP(r),TP(r.data,AP)}else if(s==="graph"||s==="sankey")DW(r);else if(s==="map"){if(r.mapType&&!r.map)r.map=r.mapType;if(r.mapLocation)pe(r,r.mapLocation)}if(r.hoverAnimation!=null){if(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null)r.emphasis.scale=r.hoverAnimation}bP(r)}),n.dataRange)n.visualMap=n.dataRange;I(SW,function(r){var s=n[r];if(s){if(!U(s))s=[s];I(s,function(l){bP(l)})}})}var EP=ts(bW);function bW(n){var e=re();n.eachSeries(function(r){var s=r.get("stack");if(s){var l=e.get(s)||e.set(s,[]),u=r.getData(),f={stackResultDimension:u.getCalculationInfo("stackResultDimension"),stackedOverDimension:u.getCalculationInfo("stackedOverDimension"),stackedDimension:u.getCalculationInfo("stackedDimension"),stackedByDimension:u.getCalculationInfo("stackedByDimension"),isStackedByIndex:u.getCalculationInfo("isStackedByIndex"),data:u,seriesModel:r};if(!f.stackedDimension||!(f.isStackedByIndex||f.stackedByDimension))return;l.push(f)}}),e.each(function(r){if(r.length===0)return;var s=r[0].seriesModel,l=s.get("stackOrder")||"seriesAsc";if(l==="seriesDesc")r.reverse();I(r,function(u,f){u.data.setCalculationInfo("stackedOnSeries",f>0?r[f-1].seriesModel:null)}),CW(r)})}function CW(n){I(n,function(e,r){var s=[],l=[NaN,NaN],u=[e.stackResultDimension,e.stackedOverDimension],{data:f,isStackedByIndex:c}=e,p=e.seriesModel.get("stackStrategy")||"samesign";f.modify(u,function(v,h,d){var m=f.get(e.stackedDimension,d);if(isNaN(m))return l;var g,y;if(c)y=f.getRawIndex(d);else g=f.get(e.stackedByDimension,d);var x=NaN;for(var S=r-1;S>=0;S--){var D=n[S];if(!c)y=D.data.rawIndexOf(D.stackedByDimension,g);if(y>=0){var b=D.data.getByRawIndex(D.stackResultDimension,y);if(p==="all"||p==="positive"&&b>0||p==="negative"&&b<0||p==="samesign"&&m>=0&&b>0||p==="samesign"&&m<=0&&b<0){m=Jn(m,b),x=b;break}}}return s[0]=m,s[1]=x,s})})}var HS=function(){function n(){this.group=new ve,this.uid=dn("viewComponent")}return n.prototype.init=function(e,r){},n.prototype.render=function(e,r,s,l){},n.prototype.dispose=function(e,r){},n.prototype.updateView=function(e,r,s,l){},n.prototype.updateLayout=function(e,r,s,l){},n.prototype.updateVisual=function(e,r,s,l){},n.prototype.toggleBlurSeries=function(e,r,s){},n.prototype.eachRendered=function(e){var r=this.group;if(r)r.traverse(e)},n}();bu(HS);Vo(HS);var ft=HS;var wP=he(),IP={itemStyle:li(e_,!0),lineStyle:li(Jx,!0)},AW={lineStyle:"stroke",itemStyle:"fill"};function MP(n,e){var r=n.visualStyleMapper||IP[e];if(!r)return console.warn("Unknown style type '"+e+"'."),IP.itemStyle;return r}function LP(n,e){var r=n.visualDrawType||AW[e];if(!r)return console.warn("Unknown style type '"+e+"'."),"fill";return r}var PP={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var r=n.getData(),s=n.visualStyleAccessPath||"itemStyle",l=n.getModel(s),u=MP(n,s),f=u(l),c=l.getShallow("decal");if(c)r.setVisual("decal",c),c.dirty=!0;var p=LP(n,s),v=f[p],h=ie(v)?v:null,d=f.fill==="auto"||f.stroke==="auto";if(!f[p]||h||d){var m=n.getColorFromPalette(n.name,null,e.getSeriesCount());if(!f[p])f[p]=m,r.setVisual("colorFromPalette",!0);f.fill=f.fill==="auto"||ie(f.fill)?m:f.fill,f.stroke=f.stroke==="auto"||ie(f.stroke)?m:f.stroke}if(r.setVisual("style",f),r.setVisual("drawType",p),!e.isSeriesFiltered(n)&&h)return r.setVisual("colorFromPalette",!1),{dataEach:function(g,y){var x=n.getDataParams(y),S=V({},f);S[p]=h(x),g.setItemVisual(y,"style",S)}}}},Xp=new Je,RP={createOnAllSeries:!0,reset:function(n,e){if(n.ignoreStyleOnData)return;var r=n.getData(),s=n.visualStyleAccessPath||"itemStyle",l=MP(n,s),u=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(f,c){var p=f.getRawDataItem(c);if(p&&p[s]){Xp.option=p[s];var v=l(Xp),h=f.ensureUniqueItemVisual(c,"style");if(V(h,v),Xp.option.decal)f.setItemVisual(c,"decal",Xp.option.decal),Xp.option.decal.dirty=!0;if(u in v)f.setItemVisual(c,"colorFromPalette",!1)}}:null}}},OP={performRawSeries:!0,overallReset:function(n){var e=re();n.eachSeries(function(r){if(!r.isColorBySeries()){var s=r.type+"-"+r.getColorBy();wP(r).scope=e.get(s)||e.set(s,{})}}),n.eachSeries(function(r){if(r.isColorBySeries())return;var s=r.getRawData(),l={},u=r.getData(),f=wP(r).scope,c=r.visualStyleAccessPath||"itemStyle",p=LP(r,c);u.each(function(v){var h=u.getRawIndex(v);l[h]=v}),s.each(function(v){var h=l[v],d=u.getItemVisual(h,"colorFromPalette");if(d){var m=u.ensureUniqueItemVisual(h,"style"),g=s.getName(v)||v+"",y=s.count();m[p]=r.getColorFromPalette(g,f,y)}})})}};var pg=Math.PI;function WS(n,e){e=e||{},pe(e,{text:"loading",textColor:X.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:X.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ve,s=new Ee({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(s);var l=new Ve({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),u=new Ee({style:{fill:"none"},textContent:l,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(u);var f;if(e.showSpinner)f=new rp({shape:{startAngle:-pg/2,endAngle:-pg/2+0.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),f.animateShape(!0).when(1000,{endAngle:pg*3/2}).start("circularInOut"),f.animateShape(!0).when(1000,{startAngle:pg*3/2}).delay(300).start("circularInOut"),r.add(f);return r.resize=function(){var c=l.getBoundingRect().width,p=e.showSpinner?e.spinnerRadius:0,v=(n.getWidth()-p*2-(e.showSpinner&&c?10:0)-c)/2-(e.showSpinner&&c?0:5+c/2)+(e.showSpinner?0:c/2)+(c?0:p),h=n.getHeight()/2;e.showSpinner&&f.setShape({cx:v,cy:h}),u.setShape({x:v-p,y:h-p,width:p*2,height:p*2}),s.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},r.resize(),r}var TW=function(){function n(e,r,s,l){this._stageTaskMap=re(),this.ecInstance=e,this.api=r,s=this._dataProcessorHandlers=s.slice(),l=this._visualHandlers=l.slice(),this._allHandlers=s.concat(l)}return n.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(s){var l=s.overallTask;l&&l.dirty()})},n.prototype.getPerformArgs=function(e,r){if(!e.__pipeline)return;var s=this._pipelineMap.get(e.__pipeline.id),l=s.context,u=!r&&s.progressiveEnabled&&(!l||l.progressiveRender)&&e.__idxInPipeline>s.blockIndex,f=u?s.step:null,c=l&&l.modDataCount,p=c!=null?Math.ceil(c/f):null;return{step:f,modBy:p,modDataCount:c}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,r){var s=this._pipelineMap.get(e.uid),l=e.__preparePipelineContext?e.__preparePipelineContext(r,s):Hh(e,r,s);e.pipelineContext=s.context=l},n.prototype.restorePipelines=function(e,r){var s=this,l=s._pipelineMap=re();r.eachSeries(function(u){var f=e.painter.type==="canvas"&&u.getProgressive(),c=u.uid;l.set(c,{id:c,head:null,tail:null,threshold:u.getProgressiveThreshold(),progressiveEnabled:f&&!(u.preventIncremental&&u.preventIncremental()),blockIndex:-1,step:Math.round(f||700),count:0}),s._pipe(u,u.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),s=this.api;I(this._allHandlers,function(l){var u=e.get(l.uid)||e.set(l.uid,{}),f="";We(!(l.reset&&l.overallReset),f),l.reset&&this._createSeriesStageTask(l,u,r,s),l.overallReset&&this._createOverallStageTask(l,u,r,s)},this)},n.prototype.prepareView=function(e,r,s,l){var u=e.renderTask,f=u.context;f.model=r,f.ecModel=s,f.api=l,u.__block=!e.incrementalPrepareRender,this._pipe(r,u)},n.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},n.prototype.performVisualTasks=function(e,r,s){this._performStageTasks(this._visualHandlers,e,r,s)},n.prototype._performStageTasks=function(e,r,s,l){l=l||{};var u=!1,f=this;I(e,function(p,v){if(l.visualType&&l.visualType!==p.visualType)return;var h=f._stageTaskMap.get(p.uid),{seriesTaskMap:d,overallTask:m}=h;if(m){var g,y=m.agentStubMap;y.each(function(S){if(c(l,S))S.dirty(),g=!0}),g&&m.dirty(),f.updatePayload(m,s);var x=f.getPerformArgs(m,l.block);if(y.each(function(S){S.perform(x)}),m.perform(x))u=!0}else if(d)d.each(function(S,D){if(c(l,S))S.dirty();var b=f.getPerformArgs(S,l.block);if(b.skip=!p.performRawSeries&&r.isSeriesFiltered(S.context.model),f.updatePayload(S,s),S.perform(b))u=!0})});function c(p,v){return p.setDirty&&(!p.dirtyMap||p.dirtyMap.get(v.__pipeline.id))}this.unfinished=u||this.unfinished},n.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(s){r=s.dataTask.perform()||r}),this.unfinished=r||this.unfinished},n.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)})},n.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},n.prototype._createSeriesStageTask=function(e,r,s,l){var u=this,f=r.seriesTaskMap,c=r.seriesTaskMap=re(),{seriesType:p,getTargetSeries:v}=e;if(e.createOnAllSeries)s.eachRawSeries(h);else if(p)s.eachRawSeriesByType(p,h);else if(v)v(s,l).each(h);function h(d){var m=d.uid,g=c.set(m,f&&f.get(m)||ps({plan:LW,reset:PW,count:OW}));g.context={model:d,ecModel:s,api:l,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:u},u._pipe(d,g)}},n.prototype._createOverallStageTask=function(e,r,s,l){var u=this,f=r.overallTask=r.overallTask||ps({reset:EW});f.context={ecModel:s,api:l,overallReset:e.overallReset,scheduler:u};var c=f.agentStubMap,p=f.agentStubMap=re(),{seriesType:v,getTargetSeries:h,dirtyOnOverallProgress:d}=e,m=!1,g="";if(We(!e.createOnAllSeries,g),v)s.eachRawSeriesByType(v,y);else if(h)h(s,l).each(y);else I(s.getSeries(),y);function y(x){var S=x.uid,D=p.set(S,c&&c.get(S)||(m=!0,ps({reset:wW,onDirty:MW})));D.context={model:x,dirtyOnOverallProgress:d},D.agent=f,D.__block=d,u._pipe(x,D)}if(m)f.dirty()},n.prototype._pipe=function(e,r){var s=e.uid,l=this._pipelineMap.get(s);!l.head&&(l.head=r),l.tail&&l.tail.pipe(r),l.tail=r,r.__idxInPipeline=l.count++,r.__pipeline=l},n.wrapStageHandler=function(e,r){if(ie(e))e={overallReset:e,seriesType:NW(e)};return e.uid=dn("stageHandler"),r&&(e.visualType=r),e},n}();function EW(n){n.overallReset(n.ecModel,n.api,n.payload)}function wW(n){return n.dirtyOnOverallProgress&&IW}function IW(){this.agent.dirty(),this.getDownstream().dirty()}function MW(){this.agent&&this.agent.dirty()}function LW(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function PW(n){if(n.useClearVisual)n.data.clearAllVisual();var e=n.resetDefines=nt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?W(e,function(r,s){return NP(s)}):RW}var RW=NP(0);function NP(n){return function(e,r){var s=r.data,l=r.resetDefines[n];if(l&&l.dataEach)for(var u=e.start;u<e.end;u++)l.dataEach(s,u);else if(l&&l.progress)l.progress(e,s)}}function OW(n){return n.data.count()}function NW(n){vg=null;try{n(Zp,kP)}catch(e){}return vg}var Zp={},kP={},vg;BP(Zp,fg);BP(kP,Xh);Zp.eachSeriesByType=Zp.eachRawSeriesByType=function(n){vg=n};Zp.eachComponent=function(n){if(n.mainType==="series"&&n.subType)vg=n.subType};function BP(n,e){for(var r in e.prototype)n[r]=mt}var YS=TW;var _e=X.darkColor,FP=_e.background,Kp=function(){return{axisLine:{lineStyle:{color:_e.axisLine}},splitLine:{lineStyle:{color:_e.axisSplitLine}},splitArea:{areaStyle:{color:[_e.backgroundTint,_e.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:_e.axisMinorSplitLine}},axisLabel:{color:_e.axisLabel},axisName:{}}},zP={label:{color:_e.secondary},itemStyle:{borderColor:_e.borderTint},dividerLineStyle:{color:_e.border}},VP={darkMode:!0,color:_e.theme,backgroundColor:FP,axisPointer:{lineStyle:{color:_e.border},crossStyle:{color:_e.borderShade},label:{color:_e.tertiary}},legend:{textStyle:{color:_e.secondary},pageTextStyle:{color:_e.tertiary}},textStyle:{color:_e.secondary},title:{textStyle:{color:_e.primary},subtextStyle:{color:_e.quaternary}},toolbox:{iconStyle:{borderColor:_e.accent50},feature:{dataView:{backgroundColor:FP,textColor:_e.primary,textareaColor:_e.background,textareaBorderColor:_e.border,buttonColor:_e.accent50,buttonTextColor:_e.neutral00}}},tooltip:{backgroundColor:_e.neutral20,defaultBorderColor:_e.border,textStyle:{color:_e.tertiary}},dataZoom:{borderColor:_e.accent10,textStyle:{color:_e.tertiary},brushStyle:{color:_e.backgroundTint},handleStyle:{color:_e.neutral00,borderColor:_e.accent20},moveHandleStyle:{color:_e.accent40},emphasis:{handleStyle:{borderColor:_e.accent50}},dataBackground:{lineStyle:{color:_e.accent30},areaStyle:{color:_e.accent20}},selectedDataBackground:{lineStyle:{color:_e.accent50},areaStyle:{color:_e.accent30}}},visualMap:{textStyle:{color:_e.secondary},handleStyle:{borderColor:_e.neutral30}},timeline:{lineStyle:{color:_e.accent10},label:{color:_e.tertiary},controlStyle:{color:_e.accent30,borderColor:_e.accent30}},calendar:{itemStyle:{color:_e.neutral00,borderColor:_e.neutral20},dayLabel:{color:_e.tertiary},monthLabel:{color:_e.secondary},yearLabel:{color:_e.secondary}},matrix:{x:zP,y:zP,backgroundColor:{borderColor:_e.axisLine},body:{itemStyle:{borderColor:_e.borderTint}}},timeAxis:Kp(),logAxis:Kp(),valueAxis:Kp(),categoryAxis:Kp(),line:{symbol:"circle"},graph:{color:_e.theme},gauge:{title:{color:_e.secondary},axisLine:{lineStyle:{color:[[1,_e.neutral05]]}},axisLabel:{color:_e.axisLabel},detail:{color:_e.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:_e.background}},radar:function(){var n=Kp();return n.axisName={color:_e.axisLabel},n.axisLine.lineStyle.color=_e.neutral20,n}(),treemap:{breadcrumb:{itemStyle:{color:_e.neutral20,textStyle:{color:_e.secondary}},emphasis:{itemStyle:{color:_e.neutral30}}}},sunburst:{itemStyle:{borderColor:_e.background}},map:{itemStyle:{borderColor:_e.border,areaColor:_e.neutral10},label:{color:_e.tertiary},emphasis:{label:{color:_e.primary},itemStyle:{areaColor:_e.highlight}},select:{label:{color:_e.primary},itemStyle:{areaColor:_e.highlight}}},geo:{itemStyle:{borderColor:_e.border,areaColor:_e.neutral10},emphasis:{label:{color:_e.primary},itemStyle:{areaColor:_e.highlight}},select:{label:{color:_e.primary},itemStyle:{color:_e.highlight}}}};VP.categoryAxis.splitLine.show=!1;var UP=VP;var GP=function(){function n(){}return n.prototype.normalizeQuery=function(e){var r={},s={},l={};if(K(e)){var u=si(e);r.mainType=u.main||null,r.subType=u.sub||null}else{var f=["Index","Name","Id"],c={name:1,dataIndex:1,dataType:1};I(e,function(p,v){var h=!1;for(var d=0;d<f.length;d++){var m=f[d],g=v.lastIndexOf(m);if(g>0&&g===v.length-m.length){var y=v.slice(0,g);if(y!=="data")r.mainType=y,r[m.toLowerCase()]=p,h=!0}}if(c.hasOwnProperty(v))s[v]=p,h=!0;if(!h)l[v]=p})}return{cptQuery:r,dataQuery:s,otherQuery:l}},n.prototype.filter=function(e,r){var s=this.eventInfo;if(!s)return!0;var{targetEl:l,packedEvent:u,model:f,view:c}=s;if(!f||!c)return!0;var{cptQuery:p,dataQuery:v}=r;return h(p,f,"mainType")&&h(p,f,"subType")&&h(p,f,"index","componentIndex")&&h(p,f,"name")&&h(p,f,"id")&&h(v,u,"name")&&h(v,u,"dataIndex")&&h(v,u,"dataType")&&(!c.filterForExposedEvent||c.filterForExposedEvent(e,r.otherQuery,l,u));function h(d,m,g,y){return d[g]==null||m[y||g]===d[g]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}();var XS=["symbol","symbolSize","symbolRotate","symbolOffset"],HP=XS.concat(["symbolKeepAspect"]),WP={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var r=n.getData();if(n.legendIcon)r.setVisual("legendIcon",n.legendIcon);if(!n.hasSymbolVisual)return;var s={},l={},u=!1;for(var f=0;f<XS.length;f++){var c=XS[f],p=n.get(c);if(ie(p))u=!0,l[c]=p;else s[c]=p}if(s.symbol=s.symbol||n.defaultSymbol,r.setVisual(V({legendIcon:n.legendIcon||s.symbol,symbolKeepAspect:n.get("symbolKeepAspect")},s)),e.isSeriesFiltered(n))return;var v=Me(l);function h(d,m){var g=n.getRawValue(m),y=n.getDataParams(m);for(var x=0;x<v.length;x++){var S=v[x];d.setItemVisual(m,S,l[S](g,y))}}return{dataEach:u?h:null}}},YP={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!n.hasSymbolVisual)return;if(e.isSeriesFiltered(n))return;var r=n.getData();function s(l,u){var f=l.getItemModel(u);for(var c=0;c<HP.length;c++){var p=HP[c],v=f.getShallow(p,!0);if(v!=null)l.setItemVisual(u,p,v)}}return{dataEach:r.hasItemOption?s:null}}};function hg(n,e,r){switch(r){case"color":var s=n.getItemVisual(e,"style");return s[n.getVisual("drawType")];case"opacity":return n.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(e,r);default:}}function wn(n,e){switch(e){case"color":var r=n.getVisual("style");return r[n.getVisual("drawType")];case"opacity":return n.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getVisual(e);default:}}function XP(n,e,r,s){switch(r){case"color":var l=n.ensureUniqueItemVisual(e,"style");l[n.getVisual("drawType")]=s,n.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":n.ensureUniqueItemVisual(e,"style").opacity=s;break;case"symbol":case"symbolSize":case"liftZ":n.setItemVisual(e,r,s);break;default:}}function Eo(n,e,r){var s;while(n){if(e(n)){if(s=n,r)break}n=n.__hostTarget||n.parent}return s}var kW=new _r,Gi=kW;var ZP={};function KP(n,e){ZP[n]=e}function qP(n){return ZP[n]}var BW={};function jP(n,e){BW[n]=e}var FW=Math.round(Math.random()*9),zW=typeof Object.defineProperty==="function",VW=function(){function n(){this._id="__ec_inner_"+FW++}return n.prototype.get=function(e){return this._guard(e)[this._id]},n.prototype.set=function(e,r){var s=this._guard(e);if(zW)Object.defineProperty(s,this._id,{value:r,enumerable:!1,configurable:!0});else s[this._id]=r;return this},n.prototype.delete=function(e){if(this.has(e))return delete this._guard(e)[this._id],!0;return!1},n.prototype.has=function(e){return!!this._guard(e)[this._id]},n.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},n}(),$P=VW;function Jl(n){return isFinite(n)}function UW(n,e,r){var s=e.x==null?0:e.x,l=e.x2==null?1:e.x2,u=e.y==null?0:e.y,f=e.y2==null?0:e.y2;if(!e.global)s=s*r.width+r.x,l=l*r.width+r.x,u=u*r.height+r.y,f=f*r.height+r.y;s=Jl(s)?s:0,l=Jl(l)?l:1,u=Jl(u)?u:0,f=Jl(f)?f:0;var c=n.createLinearGradient(s,u,l,f);return c}function GW(n,e,r){var{width:s,height:l}=r,u=Math.min(s,l),f=e.x==null?0.5:e.x,c=e.y==null?0.5:e.y,p=e.r==null?0.5:e.r;if(!e.global)f=f*s+r.x,c=c*l+r.y,p=p*u;f=Jl(f)?f:0.5,c=Jl(c)?c:0.5,p=p>=0&&Jl(p)?p:0.5;var v=n.createRadialGradient(f,c,0,f,c,p);return v}function ZS(n,e,r){var s=e.type==="radial"?GW(n,e,r):UW(n,e,r),l=e.colorStops;for(var u=0;u<l.length;u++)s.addColorStop(l[u].offset,l[u].color);return s}function QP(n,e){if(n===e||!n&&!e)return!1;if(!n||!e||n.length!==e.length)return!0;for(var r=0;r<n.length;r++)if(n[r]!==e[r])return!0;return!1}function dg(n){return parseInt(n,10)}function KS(n,e,r){var s=["width","height"][e],l=["clientWidth","clientHeight"][e],u=["paddingLeft","paddingTop"][e],f=["paddingRight","paddingBottom"][e];if(r[s]!=null&&r[s]!=="auto")return parseFloat(r[s]);var c=document.defaultView.getComputedStyle(n);return(n[l]||dg(c[s])||dg(n.style[s]))-(dg(c[u])||0)-(dg(c[f])||0)||0}function HW(n,e){if(!n||n==="solid"||!(e>0))return null;return n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:Te(n)?[n]:U(n)?n:null}function qp(n){var e=n.style,r=e.lineDash&&e.lineWidth>0&&HW(e.lineDash,e.lineWidth),s=e.lineDashOffset;if(r){var l=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;if(l&&l!==1)r=W(r,function(u){return u/l}),s/=l}return[r,s]}var WW=new Sr(!0);function mg(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function JP(n){return typeof n==="string"&&n!=="none"}function gg(n){var e=n.fill;return e!=null&&e!=="none"}function e2(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=r}else n.fill()}function t2(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=r}else n.stroke()}function r2(n,e,r){var s=_c(e.image,e.__image,r);if(Cu(s)){var l=n.createPattern(s,e.repeat||"repeat");if(typeof DOMMatrix==="function"&&l&&l.setTransform){var u=new DOMMatrix;u.translateSelf(e.x||0,e.y||0),u.rotateSelf(0,0,(e.rotation||0)*Du),u.scaleSelf(e.scaleX||1,e.scaleY||1),l.setTransform(u)}return l}}function YW(n,e,r,s,l){var u,f=mg(r),c=gg(r),p=r.strokePercent,v=p<1,h=!e.path;if((!e.silent||v)&&h)e.createPathProxy();var d=e.path||WW,m=e.__dirty;if(!s){var{fill:g,stroke:y}=r,x=c&&!!g.colorStops,S=f&&!!y.colorStops,D=c&&!!g.image,b=f&&!!y.image,C=void 0,A=void 0,T=void 0,E=void 0,w=void 0;if(x||S)w=e.getBoundingRect();if(x)C=m?ZS(n,g,w):e.__canvasFillGradient,e.__canvasFillGradient=C;if(S)A=m?ZS(n,y,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=A;if(D)T=m||!e.__canvasFillPattern?r2(n,g,e):e.__canvasFillPattern,e.__canvasFillPattern=T;if(b)E=m||!e.__canvasStrokePattern?r2(n,y,e):e.__canvasStrokePattern,e.__canvasStrokePattern=E;if(x)n.fillStyle=C;else if(D)if(T)n.fillStyle=T;else c=!1;if(S)n.strokeStyle=A;else if(b)if(E)n.strokeStyle=E;else f=!1}var L=e.getGlobalScale();d.setScale(L[0],L[1],e.segmentIgnoreThreshold);var M,P;if(n.setLineDash&&r.lineDash)u=qp(e),M=u[0],P=u[1];var R=!0;if(h||m&Ko){if(d.setDPR(n.dpr),v)d.setContext(null);else d.setContext(n),R=!1;d.reset(),e.buildPath(d,e.shape,s),d.toStatic(),e.pathUpdated()}if(R)d.rebuildPath(n,v?p:1);if(M)n.setLineDash(M),n.lineDashOffset=P;if(!s)if(r.strokeFirst){if(f)t2(n,r);if(c)e2(n,r)}else{if(c)e2(n,r);if(f)t2(n,r)}else l.batchFill=c,l.batchStroke=f;if(M)n.setLineDash([])}function XW(n,e,r){var s=e.__image=_c(r.image,e.__image,e,e.onload);if(!s||!Cu(s))return;var l=r.x||0,u=r.y||0,f=e.getWidth(),c=e.getHeight(),p=s.width/s.height;if(f==null&&c!=null)f=c*p;else if(c==null&&f!=null)c=f/p;else if(f==null&&c==null)f=s.width,c=s.height;if(r.sWidth&&r.sHeight){var v=r.sx||0,h=r.sy||0;n.drawImage(s,v,h,r.sWidth,r.sHeight,l,u,f,c)}else if(r.sx&&r.sy){var{sx:v,sy:h}=r,d=f-v,m=c-h;n.drawImage(s,v,h,d,m,l,u,f,c)}else n.drawImage(s,l,u,f,c)}function ZW(n,e,r){var s,l=r.text;if(l!=null&&(l+=""),l){n.font=r.font||ni,n.textAlign=r.textAlign,n.textBaseline=r.textBaseline;var u=void 0,f=void 0;if(n.setLineDash&&r.lineDash)s=qp(e),u=s[0],f=s[1];if(u)n.setLineDash(u),n.lineDashOffset=f;if(r.strokeFirst){if(mg(r))n.strokeText(l,r.x,r.y);if(gg(r))n.fillText(l,r.x,r.y)}else{if(gg(r))n.fillText(l,r.x,r.y);if(mg(r))n.strokeText(l,r.x,r.y)}if(u)n.setLineDash([])}}var i2=["shadowBlur","shadowOffsetX","shadowOffsetY"],a2=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function f2(n,e,r,s,l){var u=!1;if(!s){if(r=r||{},e===r)return!1}if(s||e.opacity!==r.opacity){ii(n,l),u=!0;var f=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(f)?nn.opacity:f}if(s||e.blend!==r.blend){if(!u)ii(n,l),u=!0;n.globalCompositeOperation=e.blend||nn.blend}for(var c=0;c<i2.length;c++){var p=i2[c];if(s||e[p]!==r[p]){if(!u)ii(n,l),u=!0;n[p]=n.dpr*(e[p]||0)}}if(s||e.shadowColor!==r.shadowColor){if(!u)ii(n,l),u=!0;n.shadowColor=e.shadowColor||nn.shadowColor}return u}function n2(n,e,r,s,l){var u=e.style,f=s?null:r&&r.style||{};if(u===f)return!1;var c=f2(n,u,f,s,l);if(s||u.fill!==f.fill){if(!c)ii(n,l),c=!0;JP(u.fill)&&(n.fillStyle=u.fill)}if(s||u.stroke!==f.stroke){if(!c)ii(n,l),c=!0;JP(u.stroke)&&(n.strokeStyle=u.stroke)}if(s||u.opacity!==f.opacity){if(!c)ii(n,l),c=!0;n.globalAlpha=u.opacity==null?1:u.opacity}if(e.hasStroke()){var p=u.lineWidth,v=p/(u.strokeNoScale&&e.getLineScale?e.getLineScale():1);if(n.lineWidth!==v){if(!c)ii(n,l),c=!0;n.lineWidth=v}}for(var h=0;h<a2.length;h++){var d=a2[h],m=d[0];if(s||u[m]!==f[m]){if(!c)ii(n,l),c=!0;n[m]=u[m]||d[1]}}return c}function KW(n,e,r,s,l){return f2(n,e.style,r&&r.style,s,l)}function c2(n,e){var r=e.transform,s=n.dpr||1;if(r)n.setTransform(s*r[0],s*r[1],s*r[2],s*r[3],s*r[4],s*r[5]);else n.setTransform(s,0,0,s,0,0)}function qW(n,e,r){var s=!1;for(var l=0;l<n.length;l++){var u=n[l];s=s||u.isZeroArea(),c2(e,u),e.beginPath(),u.buildPath(e,u.shape),e.clip()}r.allClipped=s}function jW(n,e){if(n&&e)return n[0]!==e[0]||n[1]!==e[1]||n[2]!==e[2]||n[3]!==e[3]||n[4]!==e[4]||n[5]!==e[5];else if(!n&&!e)return!1;return!0}var o2=1,s2=2,l2=3,u2=4;function $W(n){var e=gg(n),r=mg(n);return!(n.lineDash||!(+e^+r)||e&&typeof n.fill!=="string"||r&&typeof n.stroke!=="string"||n.strokePercent<1||n.strokeOpacity<1||n.fillOpacity<1)}function ii(n,e){if(e.batchFill)e.batchFill=!1,n.fill();if(e.batchStroke)e.batchStroke=!1,n.stroke()}function p2(n,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};qS(n,e,r),jS(n,r)}function qS(n,e,r){var s=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Nr,e.__isRendered=!1;return}var l=e.__clipPaths,u=r.prevElClipPaths,f=e.style,c=!1,p=!1;if(!u||QP(l,u)){if(u)ii(n,r),n.restore(),p=c=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null;if(l&&l.length)ii(n,r),n.save(),qW(l,n,r),c=!0,r.prevElClipPaths=l}if(r.allClipped){e.__dirty&=~Nr,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var v=r.prevEl;if(!v)p=c=!0;var h=e instanceof xe&&e.autoBatch&&$W(f);if(c||jW(s,v.transform))ii(n,r),c2(n,e);else if(!h)ii(n,r);if(e instanceof xe){if(r.lastDrawType!==o2)p=!0,r.lastDrawType=o2;if(n2(n,e,v,p,r),!h||!r.batchFill&&!r.batchStroke)n.beginPath();YW(n,e,f,h,r)}else if(e instanceof Sl){if(r.lastDrawType!==l2)p=!0,r.lastDrawType=l2;n2(n,e,v,p,r),ZW(n,e,f)}else if(e instanceof Bt){if(r.lastDrawType!==s2)p=!0,r.lastDrawType=s2;KW(n,e,v,p,r),XW(n,e,f)}else if(e.getTemporalDisplayables){if(r.lastDrawType!==u2)p=!0,r.lastDrawType=u2;QW(n,e,r)}if(e.innerAfterBrush(),e.afterBrush){if(h)ii(n,r);e.afterBrush()}r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function jS(n,e){if(ii(n,e),e.prevElClipPaths)n.restore()}function QW(n,e,r){var s=e.getDisplayables(),l=e.getTemporalDisplayables();n.save();var u={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},f,c;for(f=e.getCursor(),c=s.length;f<c;f++){var p=s[f];p.beforeBrush&&p.beforeBrush(r.beforeBrushParam),p.innerBeforeBrush(),qS(n,p,u),p.innerAfterBrush(),p.afterBrush&&p.afterBrush(),u.prevEl=p}jS(n,u);for(var v=0,h=l.length;v<h;v++){var p=l[v];p.beforeBrush&&p.beforeBrush(r.beforeBrushParam),p.innerBeforeBrush(),qS(n,p,u),p.innerAfterBrush(),p.afterBrush&&p.afterBrush(),u.prevEl=p}jS(n,u),e.clearTemporalDisplayables(),e.notClear=!0,n.restore()}var $S=new $P,v2=new Qa(100),h2=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function eu(n,e){if(n==="none")return null;var r=e.getDevicePixelRatio(),s=e.getZr(),l=s.painter.type==="svg";if(n.dirty)$S.delete(n);var u=$S.get(n);if(u)return u;var f=pe(n,{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});if(f.backgroundColor==="none")f.backgroundColor=null;var c={repeat:"repeat"};return p(c),c.rotation=f.rotation,c.scaleX=c.scaleY=l?1:1/r,$S.set(n,c),n.dirty=!1,c;function p(v){var h=[r],d=!0;for(var m=0;m<h2.length;++m){var g=f[h2[m]];if(g!=null&&!U(g)&&!K(g)&&!Te(g)&&typeof g!=="boolean"){d=!1;break}h.push(g)}var y;if(d){y=h.join(",")+(l?"-svg":"");var x=v2.get(y);if(x)l?v.svgElement=x:v.image=x}var S=m2(f.dashArrayX),D=JW(f.dashArrayY),b=d2(f.symbol),C=e6(S),A=g2(D),T=!l&&xr.createCanvas(),E=l&&{tag:"g",attrs:{},key:"dcl",children:[]},w=M(),L;if(T)T.width=w.width*r,T.height=w.height*r,L=T.getContext("2d");if(P(),d)v2.put(y,T||E);v.image=T,v.svgElement=E,v.svgWidth=w.width,v.svgHeight=w.height;function M(){var R=1;for(var N=0,O=C.length;N<O;++N)R=gx(R,C[N]);var B=1;for(var N=0,O=b.length;N<O;++N)B=gx(B,b[N].length);R*=B;var F=A*C.length*b.length;if(!1)var z;return{width:Math.max(1,Math.min(R,f.maxTileWidth)),height:Math.max(1,Math.min(F,f.maxTileHeight))}}function P(){if(L){if(L.clearRect(0,0,T.width,T.height),f.backgroundColor)L.fillStyle=f.backgroundColor,L.fillRect(0,0,T.width,T.height)}var R=0;for(var N=0;N<D.length;++N)R+=D[N];if(R<=0)return;var O=-A,B=0,F=0,z=0;while(O<w.height){if(B%2===0){var H=F/2%b.length,G=0,Z=0,Q=0;while(G<w.width*2){var q=0;for(var N=0;N<S[z].length;++N)q+=S[z][N];if(q<=0)break;if(Z%2===0){var ae=(1-f.symbolSize)*0.5,ce=G+S[z][Z]*ae,ne=O+D[B]*ae,de=S[z][Z]*f.symbolSize,ze=D[B]*f.symbolSize,dt=Q/2%b[H].length;ke(ce,ne,de,ze,b[H][dt])}if(G+=S[z][Z],++Q,++Z,Z===S[z].length)Z=0}if(++z,z===S.length)z=0}if(O+=D[B],++F,++B,B===D.length)B=0}function ke(me,Ge,ge,Ie,He){var ot=l?1:r,je=Dt(He,me*ot,Ge*ot,ge*ot,Ie*ot,f.color,f.symbolKeepAspect);if(l){var ct=s.painter.renderOneToVNode(je);if(ct)E.children.push(ct)}else p2(L,je)}}}}function d2(n){if(!n||n.length===0)return[["rect"]];if(K(n))return[[n]];var e=!0;for(var r=0;r<n.length;++r)if(!K(n[r])){e=!1;break}if(e)return d2([n]);var s=[];for(var r=0;r<n.length;++r)if(K(n[r]))s.push([n[r]]);else s.push(n[r]);return s}function m2(n){if(!n||n.length===0)return[[0,0]];if(Te(n)){var e=Math.ceil(n);return[[e,e]]}var r=!0;for(var s=0;s<n.length;++s)if(!Te(n[s])){r=!1;break}if(r)return m2([n]);var l=[];for(var s=0;s<n.length;++s)if(Te(n[s])){var e=Math.ceil(n[s]);l.push([e,e])}else{var e=W(n[s],function(c){return Math.ceil(c)});if(e.length%2===1)l.push(e.concat(e));else l.push(e)}return l}function JW(n){if(!n||typeof n==="object"&&n.length===0)return[0,0];if(Te(n)){var e=Math.ceil(n);return[e,e]}var r=W(n,function(s){return Math.ceil(s)});return n.length%2?r.concat(r):r}function e6(n){return W(n,function(e){return g2(e)})}function g2(n){var e=0;for(var r=0;r<n.length;++r)e+=n[r];if(n.length%2===1)return e*2;return e}var y2=ts(t6);function t6(n,e){n.eachRawSeries(function(r){if(n.isSeriesFiltered(r))return;var s=r.getData();if(s.hasItemVisual())s.each(function(f){var c=s.getItemVisual(f,"decal");if(c){var p=s.ensureUniqueItemVisual(f,"style");p.decal=eu(c,e)}});var l=s.getVisual("decal");if(l){var u=s.getVisual("style");u.decal=eu(l,e)}})}var r6=1,i6=800,a6=900,n6=920,o6=1000,s6=2000,x2=5000,I2=1000,l6=1100,uD=2000,M2=3000,u6=4000,Cg=4500,f6=4600,c6=5000,p6=6000,L2=7000,P2={PROCESSOR:{SERIES_FILTER:i6,AXIS_STATISTICS:n6,FILTER:o6,STATISTIC:x2,STATISTICS:x2},VISUAL:{LAYOUT:I2,PROGRESSIVE_LAYOUT:l6,GLOBAL:uD,CHART:M2,POST_CHART_LAYOUT:f6,COMPONENT:u6,BRUSH:c6,CHART_ITEM:Cg,ARIA:p6,DECAL:L2}},gr="__flagInMainProcess",yg="__mainProcessVersion",wr="__pendingUpdate",QS="__needsUpdateStatus",_2=/^[a-zA-Z0-9_]+$/,JS="__connectUpdateStatus",S2=0,v6=1,h6=2;function R2(n){return function(){var e=[];for(var r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){Ti(this.id);return}return N2(this,n,e)}}function O2(n){return function(){var e=[];for(var r=0;r<arguments.length;r++)e[r]=arguments[r];return N2(this,n,e)}}function N2(n,e,r){return r[0]=r[0]&&r[0].toLowerCase(),_r.prototype[e].apply(n,r)}var k2=function(n){k(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(_r),B2=k2.prototype;B2.on=O2("on");B2.off=O2("off");var tu,eD,xg,wo,_g,tD,rD,Rf,Of,D2,b2,iD,C2,Sg,A2,F2,ha,T2,Nf,z2=function(n){k(e,n);function e(r,s,l){var u=n.call(this,new GP)||this;u._chartsViews=[],u._chartsMap={},u._componentsViews=[],u._componentsMap={},u._pendingActions=[],l=l||{},u.__v_skip=!0,u._dom=r;var f="canvas",c="auto",p=!1;if(u[yg]=1,!1)var v;if(l.ssr)fP(function(g){var y=ye(g),x=y.dataIndex;if(x==null)return;var S=re();return S.set("series_index",y.seriesIndex),S.set("data_index",x),y.ssrType&&S.set("ssr_type",y.ssrType),S});var h=u._zr=zS(r,{renderer:l.renderer||f,devicePixelRatio:l.devicePixelRatio,width:l.width,height:l.height,ssr:l.ssr,useDirtyRect:te(l.useDirtyRect,p),useCoarsePointer:te(l.useCoarsePointer,c),pointerSize:l.pointerSize});u._ssr=l.ssr,u._throttledZrFlush=Fp(se(h.flush,h),17),u._updateTheme(s),u._locale=Hw(l.locale||Ud),u._coordSysMgr=new co;var d=u._api=A2(u);function m(g,y){return g.__prio-y.__prio}return $l(bg,m),$l(oD,m),u._scheduler=new YS(u,d,oD,bg),u._messageCenter=new k2,u._initEvents(),u.resize=se(u.resize,u),h.animation.on("frame",u._onframe,u),D2(h,u),b2(h,u),qs(u),u}return e.prototype._onframe=function(){if(this._disposed)return;var r=this._scheduler,s=this._model,l=this._api;if(T2(this),this[wr]){var u=this[wr].silent;this[gr]=!0,Nf(this);try{tu(this),wo.update.call(this,null,this[wr].updateParams)}catch(p){throw this[gr]=!1,this[wr]=null,p}this._zr.flush(),this[gr]=!1,this[wr]=null,Rf.call(this,u),Of.call(this,u)}else if(r.unfinished){var f=r6;do{r.unfinished=!1;var c=xr.getTime();r.performSeriesTasks(s),r.performDataProcessorTasks(s),tD(this,s),r.performVisualTasks(s),Sg(this,this._model,l,"remain",{}),f-=xr.getTime()-c}while(f>0&&r.unfinished);if(!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,s,l){if(this[gr])return;if(this._disposed){Ti(this.id);return}var u,f,c;if(ue(s))l=s.lazyUpdate,u=s.silent,f=s.replaceMerge,c=s.transition,s=s.notMerge;if(this[gr]=!0,Nf(this),!this._model||s){var p=new _P(this._api),v=this._theme,h=this._model=new fg;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,v,this._locale,p)}this._model.setOption(r,{replaceMerge:f},sD);var d={seriesTransition:c,optionChanged:!0};if(l)this[wr]={silent:u,updateParams:d},this[gr]=!1,this.getZr().wakeUp();else{try{tu(this),wo.update.call(this,null,d)}catch(m){throw this[wr]=null,this[gr]=!1,m}if(!this._ssr)this._zr.flush();this[wr]=null,this[gr]=!1,Rf.call(this,u),Of.call(this,u)}},e.prototype.setTheme=function(r,s){if(this[gr])return;if(this._disposed){Ti(this.id);return}var l=this._model;if(!l)return;var u=s&&s.silent,f=null;if(this[wr]){if(u==null)u=this[wr].silent;f=this[wr].updateParams,this[wr]=null}this[gr]=!0,Nf(this);try{this._updateTheme(r),l.setTheme(this._theme),tu(this),wo.update.call(this,{type:"setTheme"},f)}catch(c){throw this[gr]=!1,c}this[gr]=!1,Rf.call(this,u),Of.call(this,u)},e.prototype._updateTheme=function(r){if(K(r))r=V2[r];if(r)r=le(r),r&&cg(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||Ue.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var s=this._zr.painter;return s.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var s=this._zr.painter;return s.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,s=r.storage.getDisplayList();return I(s,function(l){l.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){Ti(this.id);return}r=r||{};var s=r.excludeComponents,l=this._model,u=[],f=this;I(s,function(p){l.eachComponent({mainType:p},function(v){var h=f._componentsMap[v.__viewId];if(!h.group.ignore)u.push(h),h.group.ignore=!0})});var c=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return I(u,function(p){p.group.ignore=!1}),c},e.prototype.getConnectedDataURL=function(r){if(this._disposed){Ti(this.id);return}var s=r.type==="svg",l=this.group,{min:u,max:f}=Math,c=1/0;if(E2[l]){var p=c,v=c,h=-c,d=-c,m=[],g=r&&r.pixelRatio||this.getDevicePixelRatio();I(jp,function(C,A){if(C.group===l){var T=s?C.getZr().painter.getSvgDom().innerHTML:C.renderToCanvas(le(r)),E=C.getDom().getBoundingClientRect();p=u(E.left,p),v=u(E.top,v),h=f(E.right,h),d=f(E.bottom,d),m.push({dom:T,left:E.left,top:E.top})}}),p*=g,v*=g,h*=g,d*=g;var y=h-p,x=d-v,S=xr.createCanvas(),D=zS(S,{renderer:s?"svg":"canvas"});if(D.resize({width:y,height:x}),s){var b="";if(I(m,function(C){var A=C.left-p,T=C.top-v;b+='<g transform="translate('+A+","+T+')">'+C.dom+"</g>"}),D.painter.getSvgRoot().innerHTML=b,r.connectedBackgroundColor)D.painter.setBackgroundColor(r.connectedBackgroundColor);return D.refreshImmediately(),D.painter.toDataURL()}else{if(r.connectedBackgroundColor)D.add(new Ee({shape:{x:0,y:0,width:y,height:x},style:{fill:r.connectedBackgroundColor}}));return I(m,function(C){var A=new Bt({style:{x:C.left*g-p,y:C.top*g-v,image:C.dom}});D.add(A)}),D.refreshImmediately(),S.toDataURL("image/"+(r&&r.type||"png"))}}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,s,l){return _g(this,"convertToPixel",r,s,l)},e.prototype.convertToLayout=function(r,s,l){return _g(this,"convertToLayout",r,s,l)},e.prototype.convertFromPixel=function(r,s,l){return _g(this,"convertFromPixel",r,s,l)},e.prototype.containPixel=function(r,s){if(this._disposed){Ti(this.id);return}var l=this._model,u,f=Vh(l,r);return I(f,function(c,p){p.indexOf("Models")>=0&&I(c,function(v){var h=v.coordinateSystem;if(h&&h.containPoint)u=u||!!h.containPoint(s);else if(p==="seriesModels"){var d=this._chartsMap[v.__viewId];if(d&&d.containPoint)u=u||d.containPoint(s,v)}},this)},this),!!u},e.prototype.getVisual=function(r,s){var l=this._model,u=Vh(l,r,{defaultMainType:"series"}),f=u.seriesModel,c=f.getData(),p=u.hasOwnProperty("dataIndexInside")?u.dataIndexInside:u.hasOwnProperty("dataIndex")?c.indexOfRawIndex(u.dataIndex):null;return p!=null?hg(c,p,s):wn(c,s)},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;I(d6,function(l){var u=function(f){var c=r.getModel(),p=f.target,v,h=l==="globalout";if(h)v={};else p&&Eo(p,function(x){var S=ye(x);if(S&&S.dataIndex!=null){var D=S.dataModel||c.getSeriesByIndex(S.seriesIndex);return v=D&&D.getDataParams(S.dataIndex,S.dataType,p)||{},!0}else if(S.eventData)return v=V({},S.eventData),!0},!0);if(v){var d=v.componentType,m=v.componentIndex;if(d==="markLine"||d==="markPoint"||d==="markArea")d="series",m=v.seriesIndex;var g=d&&m!=null&&c.getComponent(d,m),y=g&&r[g.mainType==="series"?"_chartsMap":"_componentsMap"][g.__viewId];v.event=f,v.type=l,r._$eventProcessor.eventInfo={targetEl:p,packedEvent:v,model:g,view:y},r.trigger(l,v)}};u.zrEventfulCallAtLast=!0,r._zr.on(l,u,r)});var s=this._messageCenter;I(nD,function(l,u){s.on(u,function(f){r.trigger(u,f)})}),AL(s,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){Ti(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){Ti(this.id);return}this._disposed=!0;var r=this.getDom();if(r)_x(this.getDom(),cD,"");var s=this,{_api:l,_model:u}=s;I(s._componentsViews,function(f){f.dispose(u,l)}),I(s._chartsViews,function(f){f.dispose(u,l)}),s._zr.dispose(),s._dom=s._model=s._chartsMap=s._componentsMap=s._chartsViews=s._componentsViews=s._scheduler=s._api=s._zr=s._throttledZrFlush=s._theme=s._coordSysMgr=s._messageCenter=null,delete jp[s.id]},e.prototype.resize=function(r){if(this[gr])return;if(this._disposed){Ti(this.id);return}this._zr.resize(r);var s=this._model;if(this._loadingFX&&this._loadingFX.resize(),!s)return;var l=s.resetOption("media"),u=r&&r.silent;if(this[wr]){if(u==null)u=this[wr].silent;l=!0,this[wr]=null}this[gr]=!0,Nf(this);try{l&&tu(this),wo.update.call(this,{type:"resize",animation:V({duration:0},r&&r.animation)})}catch(f){throw this[gr]=!1,f}this[gr]=!1,Rf.call(this,u),Of.call(this,u)},e.prototype.showLoading=function(r,s){if(this._disposed){Ti(this.id);return}if(ue(r))s=r,r="";if(r=r||"default",this.hideLoading(),!lD[r])return;var l=lD[r](this._api,s),u=this._zr;this._loadingFX=l,u.add(l)},e.prototype.hideLoading=function(){if(this._disposed){Ti(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var s=V({},r);return s.type=aD[r.type],s},e.prototype.dispatchAction=function(r,s){if(this._disposed){Ti(this.id);return}if(!ue(s))s={silent:!!s};if(!Dg[r.type])return;if(!this._model)return;if(this[gr]){this._pendingActions.push(r);return}var l=s.silent;rD.call(this,r,l);var u=s.flush;if(u)this._zr.flush();else if(u!==!1&&Ue.browser.weChat)this._throttledZrFlush();Rf.call(this,l),Of.call(this,l)},e.prototype.updateLabelLayout=function(){Gi.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){Ti(this.id);return}var s=r.seriesIndex,l=this.getModel(),u=l.getSeriesByIndex(s);u.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){tu=function(d){mM(d._model);var m=d._scheduler;m.restorePipelines(d._zr,d._model),m.prepareStageTasks(),eD(d,!0),eD(d,!1),m.plan()},eD=function(d,m){var{_model:g,_scheduler:y}=d,x=m?d._componentsViews:d._chartsViews,S=m?d._componentsMap:d._chartsMap,{_zr:D,_api:b}=d;for(var C=0;C<x.length;C++)x[C].__alive=!1;m?g.eachComponent(function(E,w){E!=="series"&&A(w)}):g.eachSeries(A);function A(E){var w=E.__requireNewView;E.__requireNewView=!1;var L="_ec_"+E.id+"_"+E.type,M=!w&&S[L];if(!M){var P=si(E.type),R=m?ft.getClass(P.main,P.sub):qe.getClass(P.sub);M=new R,M.init(g,b),S[L]=M,x.push(M),D.add(M.group)}E.__viewId=M.__id=L,M.__alive=!0,M.__model=E,M.group.__ecComponentInfo={mainType:E.mainType,index:E.componentIndex},!m&&y.prepareView(M,E,g,b)}for(var C=0;C<x.length;){var T=x[C];if(!T.__alive){if(!m&&T.renderTask.dispose(),D.remove(T.group),T.dispose(g,b),x.splice(C,1),S[T.__id]===T)delete S[T.__id];T.__id=T.group.__ecComponentInfo=null}else C++}},xg=function(d,m,g,y,x){var S=d._model;if(S.setUpdatePayload(g),!y){I([].concat(d._componentsViews).concat(d._chartsViews),A);return}var D=Uh(g,y,x),b=g.excludeSeriesId,C;if(b!=null)C=re(),I(nt(b),function(T){var E=tr(T,null);if(E!=null)C.set(E,!0)});S&&S.eachComponent(D,function(T){var E=C&&C.get(T.id)!=null;if(E)return;if(Nx(g))if(T instanceof et){if(g.type===as&&!g.notBlur&&!T.get(["emphasis","disabled"]))cE(T,g,d._api)}else{var w=Qh(T.mainType,T.componentIndex,g.name,d._api),{focusSelf:L,dispatchers:M}=w;if(g.type===as&&L&&!g.notBlur)Zh(T.mainType,T.componentIndex,d._api);if(M)I(M,function(P){g.type===as?Ni(P):ki(P)})}else if(ed(g)){if(T instanceof et)hE(T,g,d._api),Ox(T),ha(d)}},d),S&&S.eachComponent(D,function(T){var E=C&&C.get(T.id)!=null;if(E)return;A(d[y==="series"?"_chartsMap":"_componentsMap"][T.__viewId])},d);function A(T){T&&T.__alive&&T[m]&&T[m](T.__model,S,d._api,g)}},wo={prepareAndUpdate:function(d){tu(this),wo.update.call(this,d,d&&{optionChanged:d.newOption!=null})},update:function(d,m){var g=this._model,y=this._api,x=this._zr,S=this._coordSysMgr,D=this._scheduler;if(!g)return;gM(g),g.setUpdatePayload(d),D.restoreData(g,d),D.performSeriesTasks(g),S.create(g,y),Gi.trigger("coordsys:aftercreate",g,y),D.performDataProcessorTasks(g,d),tD(this,g),S.update(g,y),s(g),D.performVisualTasks(g,d);var b=g.get("backgroundColor")||"transparent";x.setBackgroundColor(b);var C=g.get("darkMode");if(C!=null&&C!=="auto")x.setDarkMode(C);iD(this,g,y,d,m),Gi.trigger("afterupdate",g,y)},updateTransform:function(d){var m=this,{_model:g,_api:y}=m;if(!g)return;g.setUpdatePayload(d);var x=[];g.eachComponent(function(D,b){if(D===di)return;var C=m.getViewOfComponentModel(b);if(C&&C.__alive)if(C.updateTransform){var A=C.updateTransform(b,g,y,d);A&&A.update&&x.push(C)}else x.push(C)});var S=re();g.eachSeries(function(D){var b=m._chartsMap[D.__viewId],C=D.pipelineContext;if(b.updateTransform&&!C.progressiveRender){var A=b.updateTransform(D,g,y,d);A&&A.update&&S.set(D.uid,1)}else S.set(D.uid,1)}),m._scheduler.performVisualTasks(g,d,{setDirty:!0,dirtyMap:S}),Sg(m,g,y,d,{},S),Gi.trigger("afterupdate",g,y)},updateView:function(d){var m=this._model;if(!m)return;m.setUpdatePayload(d),qe.markUpdateMethod(d,"updateView"),s(m),this._scheduler.performVisualTasks(m,d,{setDirty:!0}),iD(this,m,this._api,d,{}),Gi.trigger("afterupdate",m,this._api)},updateVisual:function(d){var m=this,g=this._model;if(!g)return;g.setUpdatePayload(d),g.eachSeries(function(y){y.getData().clearAllVisual()}),qe.markUpdateMethod(d,"updateVisual"),s(g),this._scheduler.performVisualTasks(g,d,{visualType:"visual",setDirty:!0}),g.eachComponent(function(y,x){if(y!=="series"){var S=m.getViewOfComponentModel(x);S&&S.__alive&&S.updateVisual(x,g,m._api,d)}}),g.eachSeries(function(y){var x=m._chartsMap[y.__viewId];x.updateVisual(y,g,m._api,d)}),Gi.trigger("afterupdate",g,this._api)},updateLayout:function(d){wo.update.call(this,d)}};function r(d,m,g,y,x){if(d._disposed){Ti(d.id);return}var S=d._model,D=d._coordSysMgr.getCoordinateSystems(),b,C=Vh(S,g);for(var A=0;A<D.length;A++){var T=D[A];if(T[m]&&(b=T[m](S,C,y,x))!=null)return b}}_g=r,tD=function(d,m){var{_chartsMap:g,_scheduler:y}=d;m.eachSeries(function(x){y.updateStreamModes(x,g[x.__viewId])})},rD=function(d,m){var g=this,y=this.getModel(),{type:x,escapeConnect:S}=d,D=Dg[x],b=(D.update||"update").split(":"),C=b.pop(),A=b[0]!=null&&si(b[0]);this[gr]=!0,Nf(this);var T=[d],E=!1;if(d.batch)E=!0,T=W(d.batch,function(z){return z=pe(V({},z),d),z.batch=null,z});var w=[],L,M=[],P=D.nonRefinedEventType,R=ed(d),N=Nx(d);if(N)Rx(this._api);if(I(T,function(z){var H=D.action(z,y,g._api);if(D.refineEvent)M.push(H);else L=H;if(L=L||V({},z),L.type=P,w.push(L),N){var G=Hc(d),{queryOptionMap:Z,mainTypeSpecified:Q}=G,q=Q?Z.keys()[0]:"series";xg(g,C,z,q),ha(g)}else if(R)xg(g,C,z,"series"),ha(g);else if(A)xg(g,C,z,A.main,A.sub)}),C!=="none"&&!N&&!R&&!A)try{if(this[wr])tu(this),wo.update.call(this,d),this[wr]=null;else wo[C].call(this,d)}catch(z){throw this[gr]=!1,z}if(E)L={type:P,escapeConnect:S,batch:w};else L=w[0];if(this[gr]=!1,!m){var O=void 0;if(D.refineEvent){var B=D.refineEvent(M,d,y,this._api).eventContent;We(ue(B)),O=pe({type:D.refinedEventType},B),O.fromAction=d.type,O.fromActionPayload=d,O.escapeConnect=!0}var F=this._messageCenter;if(F.trigger(L.type,L),O)F.trigger(O.type,O)}},Rf=function(d){var m=this._pendingActions;while(m.length){var g=m.shift();rD.call(this,g,d)}},Of=function(d){!d&&this.trigger("updated")},D2=function(d,m){d.on("rendered",function(g){if(m.trigger("rendered",g),d.animation.isFinished()&&!m[wr]&&!m._scheduler.unfinished&&!m._pendingActions.length)m.trigger("finished");else d.refresh()})},b2=function(d,m){d.on("mouseover",function(g){var y=g.target,x=Eo(y,ns);if(x)pE(x,g,m._api),ha(m)}).on("mouseout",function(g){var y=g.target,x=Eo(y,ns);if(x)vE(x,g,m._api),ha(m)}).on("click",function(g){var y=g.target,x=Eo(y,function(b){return ye(b).dataIndex!=null},!0);if(x){var S=x.selected?"unselect":"select",D=ye(x);m._api.dispatchAction({type:S,dataType:D.dataType,dataIndexInside:D.dataIndex,seriesIndex:D.seriesIndex,isFromClick:!0})}})};function s(d){d.clearColorPalette(),d.eachSeries(function(m){m.clearColorPalette()})}function l(d){var m=[],g=[],y=!1;if(d.eachComponent(function(b,C){var A=C.get("zlevel")||0,T=C.get("z")||0,E=C.getZLevelKey();y=y||!!E,(b==="series"?g:m).push({zlevel:A,z:T,idx:C.componentIndex,type:b,key:E})}),y){var x=m.concat(g),S,D;$l(x,function(b,C){if(b.zlevel===C.zlevel)return b.z-C.z;return b.zlevel-C.zlevel}),I(x,function(b){var C=d.getComponent(b.type,b.idx),{zlevel:A,key:T}=b;if(S!=null)A=Math.max(S,A);if(T){if(A===S&&T!==D)A++;D=T}else if(D){if(A===S)A++;D=""}S=A,C.setZLevel(A)})}}iD=function(d,m,g,y,x){l(m),C2(d,m,g,y,x),I(d._chartsViews,function(S){S.__alive=!1}),Sg(d,m,g,y,x),I(d._chartsViews,function(S){if(!S.__alive)S.remove(m,g)})},C2=function(d,m,g,y,x,S){I(S||d._componentsViews,function(D){var b=D.__model;v(b,D),D.render(b,m,g,y),p(b,D),h(b,D)})},Sg=function(d,m,g,y,x,S){var D=d._scheduler;x=V(x||{},{updatedSeries:m.getSeries()}),Gi.trigger("series:beforeupdate",m,g,x);var b=!1;m.eachSeries(function(C){var A=d._chartsMap[C.__viewId];A.__alive=!0;var T=A.renderTask;if(D.updatePayload(T,y),v(C,A),S&&S.get(C.uid))T.dirty();if(T.perform(D.getPerformArgs(T)))b=!0;A.group.silent=!!C.get("silent"),c(C,A),Ox(C)}),D.unfinished=b||D.unfinished,Gi.trigger("series:layoutlabels",m,g,x),Gi.trigger("series:transition",m,g,x),m.eachSeries(function(C){var A=d._chartsMap[C.__viewId];p(C,A),h(C,A)}),f(d,m),Gi.trigger("series:afterupdate",m,g,x)},ha=function(d){d[QS]=!0,d.getZr().wakeUp()},Nf=function(d){d[yg]=(d[yg]+1)%1e6},T2=function(d){if(!d[QS])return;d.getZr().storage.traverse(function(m){if(ao(m))return;u(m)}),d[QS]=!1};function u(d){var m=[],g=d.currentStates;for(var y=0;y<g.length;y++){var x=g[y];if(!(x==="emphasis"||x==="blur"||x==="select"))m.push(x)}if(d.selected&&d.states.select)m.push("select");if(d.hoverState===Zc&&d.states.emphasis)m.push("emphasis");else if(d.hoverState===bl&&d.states.blur)m.push("blur");d.useStates(m)}function f(d,m){var g=d._zr;if(g.painter.type!=="canvas")return;var y=g.storage,x=0;y.traverse(function(D){if(!D.isGroup)x++});var S=x>te(m.get("hoverLayerThreshold"),lg.hoverLayerThreshold)&&!Ue.node&&!Ue.worker;if(d._usingTHL||S)m.eachSeries(function(D){if(D.preventUsingHoverLayer)return;var b=d._chartsMap[D.__viewId];if(b.__alive)b.eachRendered(function(C){var A=C.states.emphasis;if(A&&A.hoverLayer!==no)A.hoverLayer=S?Zx:Xx})}),d._usingTHL=S}function c(d,m){var g=d.get("blendMode")||null;m.eachRendered(function(y){if(!y.isGroup)y.style.blend=g})}function p(d,m){if(d.preventAutoZ)return;var g=hn(d);m.eachRendered(function(y){return op(y,g.z,g.zlevel),!0})}function v(d,m){m.eachRendered(function(g){if(ao(g))return;var y=g.getTextContent(),x=g.getTextGuideLine();if(g.stateTransition)g.stateTransition=null;if(y&&y.stateTransition)y.stateTransition=null;if(x&&x.stateTransition)x.stateTransition=null;if(g.hasState())g.prevStates=g.currentStates,g.clearStates();else if(g.prevStates)g.prevStates=null})}function h(d,m){var g=d.getModel("stateAnimation"),y=d.isAnimationEnabled(),x=g.get("duration"),S=x>0?{duration:x,delay:g.get("delay"),easing:g.get("easing")}:null;m.eachRendered(function(D){if(D.states&&D.states.emphasis){if(ao(D))return;if(D instanceof xe)gE(D);if(D.__dirty){var b=D.prevStates;if(b)D.useStates(b)}if(y){D.stateTransition=S;var C=D.getTextContent(),A=D.getTextGuideLine();if(C)C.stateTransition=S;if(A)A.stateTransition=S}if(D.__dirty)u(D)}})}A2=function(d){return new(function(m){k(g,m);function g(){return m!==null&&m.apply(this,arguments)||this}return g.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},g.prototype.getComponentByElement=function(y){while(y){var x=y.__ecComponentInfo;if(x!=null)return d._model.getComponent(x.mainType,x.index);y=y.parent}},g.prototype.enterEmphasis=function(y,x){Ni(y,x),ha(d)},g.prototype.leaveEmphasis=function(y,x){ki(y,x),ha(d)},g.prototype.enterBlur=function(y){$h(y),ha(d)},g.prototype.leaveBlur=function(y){Qc(y),ha(d)},g.prototype.enterSelect=function(y){Lx(y),ha(d)},g.prototype.leaveSelect=function(y){Px(y),ha(d)},g.prototype.getModel=function(){return d.getModel()},g.prototype.getViewOfComponentModel=function(y){return d.getViewOfComponentModel(y)},g.prototype.getViewOfSeriesModel=function(y){return d.getViewOfSeriesModel(y)},g.prototype.getECUpdateCycleVersion=function(){return d[yg]},g.prototype.usingTHL=function(){return d._usingTHL},g}(Xh))(d)},F2=function(d){function m(g,y){for(var x=0;x<g.length;x++){var S=g[x];S[JS]=y}}I(aD,function(g,y){d._messageCenter.on(y,function(x){if(E2[d.group]&&d[JS]!==S2){if(x&&x.escapeConnect)return;var S=d.makeActionFromEvent(x),D=[];I(jp,function(b){if(b!==d&&b.group===d.group)D.push(b)}),m(D,S2),I(D,function(b){if(b[JS]!==v6)b.dispatchAction(S)}),m(D,h6)}})})}}(),e}(_r),fD=z2.prototype;fD.on=R2("on");fD.off=R2("off");fD.one=function(n,e,r){var s=this;zT("ECharts#one is deprecated.");function l(){var u=[];for(var f=0;f<arguments.length;f++)u[f]=arguments[f];e&&e.apply&&e.apply(this,u),s.off(n,l)}this.on.call(this,n,l,r)};var d6=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Ti(n){}var Dg={},aD={},nD={},oD=[],sD=[],bg=[],V2={},lD={},jp={},E2={},m6=+new Date-0,hhe=+new Date-0,cD="_echarts_instance_";function U2(n,e,r){var s=!(r&&r.ssr);if(s){var l=g6(n);if(l)return l}var u=new z2(n,e,r);return u.id="ec_"+m6++,jp[u.id]=u,s&&_x(n,cD,u.id),F2(u),Gi.trigger("afterinit",u),u}function g6(n){return jp[KT(n,cD)]}function ru(n,e){V2[n]=e}function pD(n){if(be(sD,n)<0)sD.push(n)}function vD(n,e){hD(oD,n,e,s6)}function G2(n){Ag("afterinit",n)}function H2(n){Ag("afterupdate",n)}function Ag(n,e){Gi.on(n,e)}function Io(n,e,r){var s,l,u,f,c;if(ie(e))r=e,e="";if(ue(n)){if(s=n.type,l=n.event,f=n.update,c=n.publishNonRefinedEvent,!r)r=n.action;u=n.refineEvent}else s=n,l=e;function p(h){return h.toLowerCase()}l=p(l||s);var v=u?p(s):l;if(Dg[s])return;if(We(_2.test(s)&&_2.test(l)),u)We(l!==s);if(Dg[s]={actionType:s,refinedEventType:l,nonRefinedEventType:v,update:f,action:r,refineEvent:u},nD[l]=1,u&&c)nD[v]=1;aD[v]=s}function W2(n,e){co.register(n,e)}function Y2(n,e){hD(bg,n,e,I2,"layout",!0)}function Ms(n,e){hD(bg,n,e,M2,"visual",!0)}var w2=[];function hD(n,e,r,s,l,u){if(ie(e)||ue(e))r=e,e=s;if(be(w2,r)>=0)return;w2.push(r);var f=YS.wrapStageHandler(r,l);f.__prio=e,f.__raw=r,n.push(f)}function dD(n,e){lD[n]=e}function X2(n,e,r){var s=qP("registerMap");s&&s(n,e,r)}var Z2=lI;Ms(uD,PP);Ms(Cg,RP);Ms(Cg,OP);Ms(uD,WP);Ms(Cg,YP);Ms(L2,y2);pD(cg);vD(a6,EP);dD("default",WS);Io({type:as,event:as,update:as},mt);Io({type:Kc,event:Kc,update:Kc},mt);Io({type:qc,event:qh,update:qc,action:mt,refineEvent:mD,publishNonRefinedEvent:!0});Io({type:Kh,event:qh,update:Kh,action:mt,refineEvent:mD,publishNonRefinedEvent:!0});Io({type:jc,event:qh,update:jc,action:mt,refineEvent:mD,publishNonRefinedEvent:!0});function mD(n,e,r,s){return{eventContent:{selected:dE(r),isFromClick:e.isFromClick||!1}}}ru("default",{});ru("dark",UP);var K2=[],x6={registerPreprocessor:pD,registerProcessor:vD,registerPostInit:G2,registerPostUpdate:H2,registerUpdateLifecycle:Ag,registerAction:Io,registerCoordinateSystem:W2,registerLayout:Y2,registerVisual:Ms,registerTransform:Z2,registerLoading:dD,registerMap:X2,registerImpl:KP,PRIORITY:P2,ComponentModel:Fe,ComponentView:ft,SeriesModel:et,ChartView:qe,registerComponentModel:function(n){Fe.registerClass(n)},registerComponentView:function(n){ft.registerClass(n)},registerSeriesModel:function(n){et.registerClass(n)},registerChartView:function(n){qe.registerClass(n)},registerCustomSeries:function(n,e){jP(n,e)},registerSubTypeDefaulter:function(n,e){Fe.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){lP(n,e)}};function It(n){if(U(n)){I(n,function(e){It(e)});return}if(be(K2,n)>=0)return;if(K2.push(n),ie(n))n={install:n};n.install(x6)}var _6=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,s){return Vr(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var r=this.option.progressive;if(r==null)return this.option.large?5000:this.get("progressive");return r},e.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;if(r==null)return this.option.large?1e4:this.get("progressiveThreshold");return r},e.prototype.brushSelector=function(r,s,l){return l.point(s.getItemLayout(r))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2000,itemStyle:{opacity:0.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:X.color.primary}},universalTransition:{divideShape:"clone"}},e}(et),q2=_6;var j2=4,S6=function(){function n(){}return n}(),D6=function(n){k(e,n);function e(r){var s=n.call(this,r)||this;return s._off=0,s.hoverDataIdx=-1,s}return e.prototype.getDefaultShape=function(){return new S6},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(r){if(r&&!r.contentRetained)this.reset()},e.prototype.buildPath=function(r,s){var{points:l,size:u}=s,f=this.symbolProxy,c=f.shape,p=r.getContext?r.getContext():r,v=p&&u[0]<j2,h=this.softClipShape,d;if(v){this._ctx=p;return}this._ctx=null;for(d=this._off;d<l.length;){var m=l[d++],g=l[d++];if(isNaN(m)||isNaN(g))continue;if(h&&!h.contain(m,g))continue;c.x=m-u[0]/2,c.y=g-u[1]/2,c.width=u[0],c.height=u[1],f.buildPath(r,c,!0)}if(this.incremental)this._off=d,this.notClear=!0},e.prototype.afterBrush=function(){var r=this.shape,{points:s,size:l}=r,u=this._ctx,f=this.softClipShape,c;if(!u)return;for(c=this._off;c<s.length;){var p=s[c++],v=s[c++];if(isNaN(p)||isNaN(v))continue;if(f&&!f.contain(p,v))continue;u.fillRect(p-l[0]/2,v-l[1]/2,l[0],l[1])}if(this.incremental)this._off=c,this.notClear=!0},e.prototype.findDataIndex=function(r,s){var l=this.shape,{points:u,size:f}=l,c=Math.max(f[0],4),p=Math.max(f[1],4);for(var v=u.length/2-1;v>=0;v--){var h=v*2,d=u[h]-c/2,m=u[h+1]-p/2;if(r>=d&&s>=m&&r<=d+c&&s<=m+p)return v}return-1},e.prototype.contain=function(r,s){var l=this.transformCoordToLocal(r,s),u=this.getBoundingRect();if(r=l[0],s=l[1],u.contain(r,s)){var f=this.hoverDataIdx=this.findDataIndex(r,s);return f>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var r=this._rect;if(!r){var s=this.shape,{points:l,size:u}=s,f=u[0],c=u[1],p=1/0,v=1/0,h=-1/0,d=-1/0;for(var m=0;m<l.length;){var g=l[m++],y=l[m++];p=Math.min(g,p),h=Math.max(g,h),v=Math.min(y,v),d=Math.max(y,d)}r=this._rect=new De(p-f/2,v-c/2,h-p+f,d-v+c)}return r},e}(xe),b6=function(){function n(){this.group=new ve}return n.prototype.updateData=function(e,r){this._clear(),this._data=e;var s=this._create();s.setShape({points:e.getLayout("points")}),this._setCommon(s,e,r)},n.prototype.updateLayout=function(e){var r=this._data;if(!r)return;var s=r.getLayout("points");this.group.eachChild(function(l){if(l.startIndex!=null){var u=(l.endIndex-l.startIndex)*2,f=l.startIndex*4*2;s=new Float32Array(s.buffer,f,u)}l.setShape("points",s),l.reset(),l.stopAnimation()})},n.prototype.incrementalPrepareUpdate=function(e){this._clear()},n.prototype.incrementalUpdate=function(e,r,s,l){var u=this._newAdded[0],f=r.getLayout("points"),c=u&&u.shape.points;if(c&&c.length<20000){var p=c.length,v=new Float32Array(p+f.length);v.set(c),v.set(f,p),u.endIndex=e.end,u.setShape({points:v})}else{this._newAdded=[];var h=this._create();h.startIndex=e.start,h.endIndex=e.end,h.incremental=s,h.setShape({points:f}),this._setCommon(h,r,l)}},n.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},n.prototype._create=function(){var e=new D6({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},n.prototype._setCommon=function(e,r,s){var l=r.hostModel;s=s||{};var u=r.getVisual("symbolSize");e.setShape("size",u instanceof Array?u:[u,u]),e.softClipShape=s.clipShape||null,e.symbolProxy=Dt(r.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var f=e.shape.size[0]<j2;e.useStyle(l.getModel("itemStyle").getItemStyle(f?["color","shadowBlur","shadowColor"]:["color"]));var c=r.getVisual("style"),p=c&&c.fill;if(p)e.setColor(p);var v=ye(e);v.seriesIndex=l.seriesIndex,e.on("mousemove",function(h){v.dataIndex=null;var d=e.hoverDataIdx;if(d>=0)v.dataIndex=d+(e.startIndex||0)})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}(),$2=b6;var C6=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,s,l){var u=r.getData(),f=this._updateSymbolDraw(u,r);f.updateData(u,gD(r)),this._finished=!0},e.prototype.incrementalPrepareRender=function(r,s,l){var u=r.getData(),f=this._updateSymbolDraw(u,r);f.incrementalPrepareUpdate(u),this._finished=!1},e.prototype.incrementalRender=function(r,s,l){this._symbolDraw.incrementalUpdate(r,s.getData(),Ri(s),gD(s)),this._finished=r.end===s.getData().count()},e.prototype.updateTransform=function(r,s,l){var u=r.getData();if(this.group.dirty(),!this._finished)return{update:!0};else{var f=Va("").reset(r,s,l);if(f.progress)f.progress({start:0,end:u.count(),count:u.count()},u);this._symbolDraw.updateLayout(gD(r))}},e.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},e.prototype._updateSymbolDraw=function(r,s){var l=this._symbolDraw,u=s.pipelineContext,f=u.large;if(!l||f!==this._isLargeDraw)l&&l.remove(),l=this._symbolDraw=f?new $2:new gn,this._isLargeDraw=f,this.group.removeAll();return this.group.add(l.group),l},e.prototype.remove=function(r,s){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(qe);function gD(n){return{clipShape:Dm(n)}}var Q2=C6;var In=function(){function n(){}return n.prototype.needIncludeZero=function(){return!this.option.scale},n.prototype.getCoordSysModel=function(){return},n}();var Tg=function(n){k(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",gt).models[0]},e.type="cartesian2dAxis",e}(Fe);xt(Tg,In);var J2={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:X.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:X.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:X.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[X.color.backgroundTint,X.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:X.color.neutral00,borderColor:X.color.border,borderWidth:1,borderType:[3,3],opacity:0.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},A6=Re({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},J2),yD=Re({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:X.color.axisMinorSplitLine,width:1}}},J2),T6=Re({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},yD),E6=pe({logBase:10},yD),Eg={category:A6,value:yD,time:T6,log:E6};function qa(n,e,r,s){I(Pm,function(l,u){var f=Re(Re({},Eg[u],!0),s,!0),c=function(p){k(v,p);function v(){var h=p!==null&&p.apply(this,arguments)||this;return h.type=e+"Axis."+u,h}return v.prototype.mergeDefaultAndTheme=function(h,d){var m=cs(this),g=m?_i(h):{},y=d.getTheme();if(Re(h,y.get(u+"Axis")),Re(h,this.getDefaultOption()),h.type=eR(h),m)Qr(h,g,m)},v.prototype.optionUpdated=function(){var h=this.option;if(h.type==="category")this.__ordinalMeta=Cp.createByAxisModel(this)},v.prototype.getCategories=function(h){var d=this.option;if(d.type==="category"){if(h)return d.data;return this.__ordinalMeta.categories}},v.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},v.prototype.updateAxisBreaks=function(h){var d=_o();return d?d.updateModelAxisBreak(this,h):{breaks:[]}},v.type=e+"Axis."+u,v.defaultOption=f,v}(r);n.registerComponentModel(c)}),n.registerSubTypeDefaulter(e+"Axis",eR)}function eR(n){return n.type||(n.data?"category":"value")}var w6=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return W(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ke(this.getAxes(),function(r){return r.scale.type===e})},n.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},n}(),tR=w6;var $p=["x","y"];function rR(n){return(n.type==="interval"||n.type==="time")&&!fs(n)}var I6=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=pa,r.dimensions=$p,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,s=this.getAxis("y").scale;if(!rR(r)||!rR(s))return;var l=Wl(r,null),u=Wl(s,null),f=this.dataToPoint([l[0],u[0]]),c=this.dataToPoint([l[1],u[1]]),p=l[1]-l[0],v=u[1]-u[0];if(!p||!v)return;var h=(c[0]-f[0])/p,d=(c[1]-f[1])/v,m=f[0]-l[0]*h,g=f[1]-u[0]*d,y=this._transform=[h,0,0,d,m,g];this._invTransform=Zr([],y)},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var s=this.getAxis("x"),l=this.getAxis("y");return s.contain(s.toLocalCoord(r[0]))&&l.contain(l.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,s){var l=this.dataToPoint(r),u=this.dataToPoint(s),f=this.getArea(),c=new De(l[0],l[1],u[0]-l[0],u[1]-l[1]);return f.intersect(c)},e.prototype.dataToPoint=function(r,s,l){l=l||[];var u=r[0],f=r[1];if(this._transform&&u!=null&&isFinite(u)&&f!=null&&isFinite(f))return er(l,r,this._transform);var c=this.getAxis("x"),p=this.getAxis("y");return l[0]=c.toGlobalCoord(c.dataToCoord(u,s)),l[1]=p.toGlobalCoord(p.dataToCoord(f,s)),l},e.prototype.clampData=function(r,s){var l=this.getAxis("x").scale,u=this.getAxis("y").scale,f=l.getExtent(),c=u.getExtent(),p=l.parse(r[0]),v=u.parse(r[1]);return s=s||[],s[0]=Math.min(Math.max(Math.min(f[0],f[1]),p),Math.max(f[0],f[1])),s[1]=Math.min(Math.max(Math.min(c[0],c[1]),v),Math.max(c[0],c[1])),s},e.prototype.pointToData=function(r,s,l){if(l=l||[],this._invTransform)return er(l,r,this._invTransform);var u=this.getAxis("x"),f=this.getAxis("y");return l[0]=u.coordToData(u.toLocalCoord(r[0]),s),l[1]=f.coordToData(f.toLocalCoord(r[1]),s),l},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var s=this.getAxis("x").getGlobalExtent(),l=this.getAxis("y").getGlobalExtent(),u=Math.min(s[0],s[1])-r,f=Math.min(l[0],l[1])-r,c=Math.max(s[0],s[1])-u+r,p=Math.max(l[0],l[1])-f+r;return new De(u,f,c,p)},e}(tR),iR=I6;function wg(n,e){var{scale:r,model:s}=n,l=Ym(r,s,s.ecModel,n,null),u=xn(r),f=xn(e)?e.intervalStub:e,c=u?r.intervalStub:r,p=r.base,v=f.getTicks(),h=f.getTicks({expandToNicedExtent:!0}),d=v.length-1,m,g,y;if(d===1)m=g=0,y=1;else if(d===2){var x=_t(v[0].value-v[1].value),S=_t(v[1].value-v[2].value);if(m=g=0,x===S)y=2;else if(y=1,x<S)m=x/S;else g=S/x}else{var D=f.getConfig().interval;m=(1-(v[0].value-h[0].value)/D)%1,g=(1-(h[d].value-v[d].value)/D)%1,y=d-(m?1:0)-(g?1:0)}var b=l.zoomFixMM,C=b[0]||b[1],A=[l.fixMM[0]||C,l.fixMM[1]||C],T=r.getExtent(),E=c.getExtent(),w=Em(E,A),L,M,P,R,N,O;function B(ae){var ce=50,ne=0;for(;ne<ce;ne++){if(ae())break;P=u?P*Be(p,2):OI(P),R=Fa(P)}}function F(){L=Ye(O-P*m,R)}function z(){M=Ye(N+P*g,R)}function H(){O=m?Ye(L+P*m,R):L}function G(){N=g?Ye(M-P*g,R):M}if(A[0]&&A[1]){L=w[0],M=w[1],P=(M-L)/(y+m+g);var Z=n.getExtent(),Q=_t(Z[1]-Z[0]);if(R=Nh([M,L],Q,0.5/y),H(),G(),vr(R))P=Ye(P,R)}else{var q=w[1]-w[0];if(P=u?Be(kh(q),1):Dl(q/y,dx),R=Fa(P),A[0])L=w[0],B(function(){if(H(),N=Ye(O+P*y,R),z(),M>=w[1])return!0});else if(A[1])M=w[1],B(function(){if(G(),O=Ye(N-P*y,R),F(),L<=w[0])return!0});else B(function(){O=Ye(ra(w[0]/P)*P,R),N=Ye(kr(w[1]/P)*P,R);var ae=Li((N-O)/P);if(ae<=y){var ce=y-ae,ne=void 0,de=l.incl0||u;if(de&&w[0]===0)ne=[0,ce];else if(de&&w[1]===0)ne=[ce,0];else{var ze=kr(ce/2);ne=ce%2===0?[ze,ze]:L+M<w[0]+w[1]?[ze,ze+1]:[ze+1,ze]}if(O=Ye(O-P*ne[0],R),N=Ye(N+P*ne[1],R),F(),z(),L<=w[0]&&M>=w[1])return!0}})}Nm(r,A,E,[L,M],T,{interval:P,intervalCount:y,intervalPrecision:R,niceExtent:[O,N]})}function aR(n,e){var r=xn(n),s=r?n.intervalStub:n,l=e.fixMinMax||[],u=r?n.getExtent():null,f=s.getExtent(),c=Em(f,l,e.rawExtentResult);s.setExtent(c[0],c[1]),c=s.getExtent();var p=r?L6(s,e):M6(s,e),{intervalPrecision:v,interval:h}=p,d=e.userInterval;if(d!=null)p.interval=d,p.intervalPrecision=Fa(d);if(!l[0])c[0]=Ye(kr(c[0]/h)*h,v);if(!l[1])c[1]=Ye(ra(c[1]/h)*h,v);if(d!=null)p.niceExtent=c.slice();Nm(n,l,f,c,u,p)}function M6(n,e){var r=Yl(e.splitNumber,5),s=df(n),{minInterval:l,maxInterval:u}=e,f=Dl(s/r,!0);if(l!=null&&f<l)f=l;if(u!=null&&f>u)f=u;var c=Fa(f),p=n.getExtent(),v=[Ye(ra(p[0]/f)*f,c),Ye(kr(p[1]/f)*f,c)];return{interval:f,intervalPrecision:c,niceExtent:v}}function L6(n,e){var r=Yl(e.splitNumber,10),s=n.getExtent(),l=df(n),u=Be(kh(l),1),f=r/l*u;if(f<=0.5)u*=10;var c=Fa(u),p=[Ye(ra(s[0]/u)*u,c),Ye(kr(s[1]/u)*u,c)];return{intervalPrecision:c,interval:u,niceExtent:p}}function Mn(n){var{scale:e,model:r}=n,{axis:s,ecModel:l}=r;P6(e,r,s,l,null)}function P6(n,e,r,s,l){var u=Ym(n,e,s,r,l),f=mf(n)||yn(n);if(R6(n,{splitNumber:e.get("splitNumber"),fixMinMax:u.fixMM,userInterval:e.get("interval"),minInterval:f?e.get("minInterval"):null,maxInterval:f?e.get("maxInterval"):null,rawExtentResult:u}),r&&s)tL(r,n,u,s)}function R6(n,e){O6[n.type](n,e)}var O6={interval:aR,log:aR,time:GI,ordinal:mt};var nR=[[3,1],[0,2]],N6=function(){function n(e,r,s){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=$p,this._initCartesian(e,r,s),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,r){var s=this._axesMap;I(this._axesList,function(f){Ui(f,Ga);var c=f.scale;if(nr(c))c.setSortInfo(f.model.get("categorySortInfo"))});function l(f){var c=Me(f),p=[];for(var v=c.length-1;v>=0;v--){var h=f[+c[v]];if(h.__alignTo)p.push(h);else Mn(h)}I(p,function(d){if(B6(d,d.__alignTo))Mn(d);else wg(d,d.__alignTo.scale)})}l(s.x),l(s.y);var u={};I(s.x,function(f){oR(s,"y",f,u)}),I(s.y,function(f){oR(s,"x",f,u)}),this.resize(this.model,r)},n.prototype.resize=function(e,r,s){var l=Tt(e,r),u=this._rect=ht(e.getBoxLayoutParams(),l.refContainer),f=this._axesMap,c=this._coordsList,p=e.get("containLabel");if(xD(f,u),!s){var v=z6(u,c,f,p,r),h=void 0;if(p)if(fR)fR(this._axesList,u),xD(f,u);else h=cR(u.clone(),"axisLabel",null,u,f,v,l);else{var d=V6(e,u,l),{outerBoundsRect:m,parsedOuterBoundsContain:g,outerBoundsClamp:y}=d;if(m)h=cR(m,g,y,u,f,v,l)}pR(u,f,bi.determine,null,h,l),I(this._coordsList,function(x){x.calcAffineTransform()})}},n.prototype.getAxis=function(e,r){var s=this._axesMap[e];if(s!=null)return s[r||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var s="x"+e+"y"+r;return this._coordsMap[s]}if(ue(e))r=e.yAxisIndex,e=e.xAxisIndex;for(var l=0,u=this._coordsList;l<u.length;l++)if(u[l].getAxis("x").index===e||u[l].getAxis("y").index===r)return u[l]},n.prototype.getCartesians=function(){return this._coordsList.slice()},n.prototype.convertToPixel=function(e,r,s){var l=this._findConvertTarget(r);return l.cartesian?l.cartesian.dataToPoint(s):l.axis?l.axis.toGlobalCoord(l.axis.dataToCoord(s)):null},n.prototype.convertFromPixel=function(e,r,s){var l=this._findConvertTarget(r);return l.cartesian?l.cartesian.pointToData(s):l.axis?l.axis.coordToData(l.axis.toLocalCoord(s)):null},n.prototype._findConvertTarget=function(e){var r=e.seriesModel,s=e.xAxisModel||r&&r.getReferringComponents("xAxis",gt).models[0],l=e.yAxisModel||r&&r.getReferringComponents("yAxis",gt).models[0],u=e.gridModel,f=this._coordsList,c,p;if(r)c=r.coordinateSystem,be(f,c)<0&&(c=null);else if(s&&l)c=this.getCartesian(s.componentIndex,l.componentIndex);else if(s)p=this.getAxis("x",s.componentIndex);else if(l)p=this.getAxis("y",l.componentIndex);else if(u){var v=u.coordinateSystem;if(v===this)c=this._coordsList[0]}return{cartesian:c,axis:p}},n.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},n.prototype._initCartesian=function(e,r,s){var l=this,u=this,f={left:!1,right:!1,top:!1,bottom:!1},c={x:{},y:{}},p={x:0,y:0};if(r.eachComponent("xAxis",v("x"),this),r.eachComponent("yAxis",v("y"),this),!p.x||!p.y){this._axesMap={},this._axesList=[];return}this._axesMap=c,I(c.x,function(h,d){I(c.y,function(m,g){var y="x"+d+"y"+g,x=new iR(y);x.master=l,x.model=e,l._coordsMap[y]=x,l._coordsList.push(x),x.addAxis(h),x.addAxis(m)})}),lR(c.x),lR(c.y);function v(h){return function(d,m){if(!k6(d,e))return;var g=d.get("position");if(h==="x"){if(g!=="top"&&g!=="bottom")g=f.bottom?"top":"bottom"}else if(g!=="left"&&g!=="right")g=f.left?"right":"left";f[g]=!0;var y=Ss(d),x=new IM(h,Ds(d,y,!0),[0,0],y,g);x.onBand=Sn(x.scale,d),x.inverse=d.get("inverse"),d.axis=x,x.model=d,x.grid=u,x.index=m,u._axesList.push(x),c[h][m]=x,p[h]++}}},n.prototype.getTooltipAxes=function(e){var r=[],s=[];return I(this.getCartesians(),function(l){var u=e!=null&&e!=="auto"?l.getAxis(e):l.getBaseAxis(),f=l.getOtherAxis(u);be(r,u)<0&&r.push(u),be(s,f)<0&&s.push(f)}),{baseAxes:r,otherAxes:s}},n.create=function(e,r){var s=[];return e.eachComponent("grid",function(l,u){var f=new n(l,e,r);f.name="grid_"+u,f.resize(l,r,!0),l.coordinateSystem=f,s.push(f),I(f._axesList,function(c){JM(c,n.dimIdxMap)})}),e.eachSeries(function(l){var u,f;of({targetModel:l,coordSysType:pa,coordSysProvider:c});function c(){var p=YM(l),{xAxisModel:v,yAxisModel:h}=p;u=v.axis,f=h.axis;var d=v.getCoordSysModel(),m=d.coordinateSystem;return m.getCartesian(v.componentIndex,h.componentIndex)}if(u&&f)ca(u,l,pa),ca(f,l,pa)},this),s},n.dimensions=$p,n.dimIdxMap=pp($p),n}();function k6(n,e){return n.getCoordSysModel()===e}function oR(n,e,r,s){r.getAxesOnZeroOf=function(){return u?[u]:[]};var l=n[e],u,f=r.model,c=f.get(["axisLine","onZero"]),p=f.get(["axisLine","onZeroAxisIndex"]);if(!c)return;if(p!=null){if(sR(c,l[p]))u=l[p]}else for(var v in l)if(bt(l,v)&&sR(c,l[v])&&!s[h(l[v])]){u=l[v];break}if(u)s[h(u)]=!0;function h(d){return d.dim+"_"+d.index}}function sR(n,e){if(!e)return!1;var r=e.scale,s=jI(r,0,!1),l=e&&e.type!=="category"&&e.type!=="time"&&s!==Rm;if(l&&n==="auto"&&QI(e))l=!1;return l}function lR(n){var e=Me(n),r,s=[];for(var l=e.length-1;l>=0;l--){var u=n[+e[l]];if(Am(u.scale)&&q_(u.model,u.type,!0)==null)if(u.model.get("alignTicks")&&u.model.get("interval")==null)s.push(u);else r=u}if(!r)r=s.pop();if(r)I(s,function(f){f.__alignTo=r})}function B6(n,e){return fs(n.scale)||fs(e.scale)||e.scale.getTicks().length<2}function F6(n,e){var r=n.getExtent(),s=r[0]+r[1];n.toGlobalCoord=n.dim==="x"?function(l){return l+e}:function(l){return s-l+e},n.toLocalCoord=n.dim==="x"?function(l){return l-e}:function(l){return s-l+e}}function xD(n,e){I(n.x,function(r){return uR(r,e.x,e.width)}),I(n.y,function(r){return uR(r,e.y,e.height)})}function uR(n,e,r){var s=[0,r],l=n.inverse?1:0;n.setExtent(s[l],s[1-l]),F6(n,e)}var fR;function cR(n,e,r,s,l,u,f){pR(s,l,bi.estimate,e,!1,f);var c=[0,0,0,0];v(0),v(1),h(s,0,NaN),h(s,1,NaN);var p=xu(c,function(m){return m>0})==null;return ss(s,c,!0,!0,r),xD(l,s),p;function v(m){I(l[la[m]],function(g){if(!Xl(g.model))return;var y=u.ensureRecord(g.model),x=y.labelInfoList;if(x)for(var S=0;S<x.length;S++){var D=x[S],b=g.scale.normalize(za(g.scale,Ts(D.label).labelInfo.tick));b=m===1?1-b:b,h(D.rect,m,b),h(D.rect,1-m,NaN)}var C=y.nameLayout;if(C){var b=bs(y.nameLocation)?0.5:NaN;h(C.rect,m,b),h(C.rect,1-m,NaN)}})}function h(m,g,y){var x=n[la[g]]-m[la[g]],S=m[La[g]]+m[la[g]]-(n[La[g]]+n[la[g]]);x=d(x,1-y),S=d(S,y);var D=nR[g][0],b=nR[g][1];c[D]=Be(c[D],x),c[b]=Be(c[b],S)}function d(m,g){if(m>0&&!oi(g)&&g>0.0001)m/=g;return m}}function z6(n,e,r,s,l){var u=new oS(U6);return I(r,function(f){return I(f,function(c){if(Xl(c.model)){var p=!s;c.axisBuilder=XM(n,e,c.model,l,u,p)}})}),u}function pR(n,e,r,s,l,u){var f=r===bi.determine;I(e,function(v){return I(v,function(h){if(Xl(h.model))ZM(h.axisBuilder,n,h.model),h.axisBuilder.build(f?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:l})})});var c={x:0,y:0};p(0),p(1);function p(v){c[la[1-v]]=n[La[v]]<=u.refContainer[La[v]]*0.5?0:1-v===1?2:1}I(e,function(v,h){return I(v,function(d){if(Xl(d.model)){if(s==="all"||f)d.axisBuilder.build({axisName:!0},{nameMarginLevel:c[h]});if(f)d.axisBuilder.build({axisLine:!0})}})})}function V6(n,e,r){var s,l=n.get("outerBoundsMode",!0);if(l==="same")s=e.clone();else if(l==null||l==="auto")s=ht(n.get("outerBounds",!0)||cS,r.refContainer);var u=n.get("outerBoundsContain",!0),f;if(u==null||u==="auto")f="all";else if(be(["all","axisLabel"],u)<0)f="all";else f=u;var c=[Oh(te(n.get("outerBoundsClampWidth",!0),Bp[0]),e.width),Oh(te(n.get("outerBoundsClampHeight",!0),Bp[1]),e.height)];return{outerBoundsRect:s,parsedOuterBoundsContain:f,outerBoundsClamp:c}}var U6=function(n,e,r,s,l,u){var f=r.axis.dim==="x"?"y":"x";if(sS(n,e,r,s,l,u),!bs(n.nameLocation))I(e.recordMap[f],function(c){if(c&&c.labelInfoList&&c.dirVec)lS(c.labelInfoList,c.dirVec,s,l)})},vR=N6;function hR(n,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return G6(r,n,e),r.seriesInvolved&&W6(r,n),r}function G6(n,e,r){var s=e.getComponent("tooltip"),l=e.getComponent("axisPointer"),u=l.get("link",!0)||[],f=[];I(r.getCoordinateSystems(),function(c){if(!c.axisPointerEnabled)return;var p=kf(c.model),v=n.coordSysAxesInfo[p]={};n.coordSysMap[p]=c;var h=c.model,d=h.getModel("tooltip",s);if(I(c.getAxes(),Ae(x,!1,null)),c.getTooltipAxes&&s&&d.get("show")){var m=d.get("trigger")==="axis",g=d.get(["axisPointer","type"])==="cross",y=c.getTooltipAxes(d.get(["axisPointer","axis"]));if(m||g)I(y.baseAxes,Ae(x,g?"cross":!0,m));if(g)I(y.otherAxes,Ae(x,"cross",!1))}function x(S,D,b){var C=b.model.getModel("axisPointer",l),A=C.get("show");if(!A||A==="auto"&&!S&&!SD(C))return;if(D==null)D=C.get("triggerTooltip");C=S?H6(b,d,l,e,S,D):C;var T=C.get("snap"),E=C.get("triggerEmphasis"),w=kf(b.model),L=D||T||b.type==="category",M=n.axesInfo[w]={key:w,axis:b,coordSys:c,axisPointerModel:C,triggerTooltip:D,triggerEmphasis:E,involveSeries:L,snap:T,useHandle:SD(C),seriesModels:[],linkGroup:null};v[w]=M,n.seriesInvolved=n.seriesInvolved||L;var P=Y6(u,b);if(P!=null){var R=f[P]||(f[P]={axesInfo:{}});R.axesInfo[w]=M,R.mapper=u[P].mapper,M.linkGroup=R}}})}function H6(n,e,r,s,l,u){var f=e.getModel("axisPointer"),c=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],p={};if(I(c,function(m){p[m]=le(f.get(m))}),p.snap=n.type!=="category"&&!!u,f.get("type")==="cross")p.type="line";var v=p.label||(p.label={});if(v.show==null&&(v.show=!1),l==="cross"){var h=f.get(["label","show"]);if(v.show=h!=null?h:!0,!u){var d=p.lineStyle=f.get("crossStyle");d&&pe(v,d.textStyle)}}return n.model.getModel("axisPointer",new Je(p,r,s))}function W6(n,e){e.eachSeries(function(r){var s=r.coordinateSystem,l=r.get(["tooltip","trigger"],!0),u=r.get(["tooltip","show"],!0);if(!s||!s.model||l==="none"||l===!1||l==="item"||u===!1||r.get(["axisPointer","show"],!0)===!1)return;I(n.coordSysAxesInfo[kf(s.model)],function(f){var c=f.axis;if(s.getAxis(c.dim)===c)f.seriesModels.push(r),f.seriesDataCount==null&&(f.seriesDataCount=0),f.seriesDataCount+=r.getData().count()})})}function Y6(n,e){var{model:r,dim:s}=e;for(var l=0;l<n.length;l++){var u=n[l]||{};if(_D(u[s+"AxisId"],r.id)||_D(u[s+"AxisIndex"],r.componentIndex)||_D(u[s+"AxisName"],r.name))return l}}function _D(n,e){return n==="all"||U(n)&&be(n,e)>=0||n===e}function dR(n){var e=Ig(n);if(!e)return;var r=e.axisPointerModel,s=e.axis.scale,l=r.option,u=r.get("status"),f=r.get("value");if(f!=null)f=s.parse(f);var c=SD(r);if(u==null)l.status=c?"show":"hide";var p=s.getExtent();if(f==null||f>p[1])f=p[1];if(f<p[0])f=p[0];if(l.value=f,c)l.status=e.axis.scale.isBlank()?"hide":"show"}function Ig(n){var e=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[kf(n)]}function mR(n){var e=Ig(n);return e&&e.axisPointerModel}function SD(n){return!!n.get(["handle","show"])}function kf(n){return n.type+"||"+n.id}var gR={},X6=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,s,l,u){this.axisPointerClass&&dR(r),n.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,l,!0)},e.prototype.updateAxisPointer=function(r,s,l,u){this._doUpdateAxisPointerClass(r,l,!1)},e.prototype.remove=function(r,s){var l=this._axisPointer;l&&l.remove(s)},e.prototype.dispose=function(r,s){this._disposeAxisPointer(s),n.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,s,l){var u=e.getAxisPointerClass(this.axisPointerClass);if(!u)return;var f=mR(r);f?(this._axisPointer||(this._axisPointer=new u)).render(r,f,s,l):this._disposeAxisPointer(s)},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,s){gR[r]=s},e.getAxisPointerClass=function(r){return r&&gR[r]},e.type="axis",e}(ft),Ei=X6;var bD=he();function Mg(n,e,r,s){var l=r.axis;if(l.scale.isBlank())return;var u=r.getModel("splitArea"),f=u.getModel("areaStyle"),c=f.get("color"),p=s.coordinateSystem.getRect(),v=l.getTicksCoords({tickModel:u,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(!v.length)return;var h=c.length,d=bD(n).splitAreaColors,m=re(),g=0;if(d)for(var y=0;y<v.length;y++){var x=d.get(v[y].tickValue);if(x!=null){g=(x+(h-1)*y)%h;break}}var S=l.toGlobalCoord(v[0].coord),D=f.getAreaStyle();c=U(c)?c:[c];for(var y=1;y<v.length;y++){var b=l.toGlobalCoord(v[y].coord),C=void 0,A=void 0,T=void 0,E=void 0;if(l.isHorizontal())C=S,A=p.y,T=b-C,E=p.height,S=C+T;else C=p.x,A=S,T=p.width,E=b-A,S=A+E;var w=v[y-1].tickValue;w!=null&&m.set(w,g),e.add(new Ee({anid:w!=null?"area_"+w:null,shape:{x:C,y:A,width:T,height:E},style:pe({fill:c[g]},D),autoBatch:!0,silent:!0})),g=(g+1)%h}bD(n).splitAreaColors=m}function Lg(n){bD(n).splitAreaColors=null}var Z6=["splitArea","splitLine","minorSplitLine","breakArea"],yR=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,s,l,u){this.group.removeAll();var f=this._axisGroup;if(this._axisGroup=new ve,this.group.add(this._axisGroup),!Xl(r))return;this._axisGroup.add(r.axis.axisBuilder.group),I(Z6,function(p){if(r.get([p,"show"]))K6[p](this,this._axisGroup,r,r.getCoordSysModel(),l)},this);var c=u&&u.type==="changeAxisOrder"&&u.isInitSort;if(!c)lo(f,this._axisGroup,r);n.prototype.render.call(this,r,s,l,u)},e.prototype.remove=function(){Lg(this)},e.type="cartesianAxis",e}(Ei),K6={splitLine:function(n,e,r,s,l){var u=r.axis;if(u.scale.isBlank())return;var f=r.getModel("splitLine"),c=f.getModel("lineStyle"),p=c.get("color"),v=f.get("showMinLine")!==!1,h=f.get("showMaxLine")!==!1;p=U(p)?p:[p];var d=s.coordinateSystem.getRect(),m=u.isHorizontal(),g=0,y=u.getTicksCoords({tickModel:f,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),x=[],S=[],D=c.getLineStyle();for(var b=0;b<y.length;b++){var C=u.toGlobalCoord(y[b].coord);if(b===0&&!v||b===y.length-1&&!h)continue;var A=y[b].tickValue;if(m)x[0]=C,x[1]=d.y,S[0]=C,S[1]=d.y+d.height;else x[0]=d.x,x[1]=C,S[0]=d.x+d.width,S[1]=C;var T=g++%p.length,E=new Zt({anid:A!=null?"line_"+A:null,autoBatch:!0,shape:{x1:x[0],y1:x[1],x2:S[0],y2:S[1]},style:pe({stroke:p[T]},D),silent:!0});oo(E.shape,D.lineWidth),e.add(E)}},minorSplitLine:function(n,e,r,s,l){var u=r.axis,f=r.getModel("minorSplitLine"),c=f.getModel("lineStyle"),p=s.coordinateSystem.getRect(),v=u.isHorizontal(),h=u.getMinorTicksCoords();if(!h.length)return;var d=[],m=[],g=c.getLineStyle();for(var y=0;y<h.length;y++)for(var x=0;x<h[y].length;x++){var S=u.toGlobalCoord(h[y][x].coord);if(v)d[0]=S,d[1]=p.y,m[0]=S,m[1]=p.y+p.height;else d[0]=p.x,d[1]=S,m[0]=p.x+p.width,m[1]=S;var D=new Zt({anid:"minor_line_"+h[y][x].tickValue,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:m[0],y2:m[1]},style:g,silent:!0});oo(D.shape,g.lineWidth),e.add(D)}},splitArea:function(n,e,r,s,l){Mg(n,e,r,s)},breakArea:function(n,e,r,s,l){var u=_o(),f=r.axis.scale;if(u&&f.type!=="ordinal")u.rectCoordBuildBreakAxis(e,n,r,s.coordinateSystem.getRect(),l)}},CD=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e}(yR);var xR=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=CD.type,r}return e.type="yAxis",e}(yR);var q6=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,s){if(this.group.removeAll(),r.get("show"))this.group.add(new Ee({shape:r.coordinateSystem.getRect(),style:pe({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(ft),_R={offset:0};function Pg(n){n.registerComponentView(q6),n.registerComponentModel(iL),n.registerCoordinateSystem("cartesian2d",vR),qa(n,"x",Tg,_R),qa(n,"y",Tg,_R),n.registerComponentView(CD),n.registerComponentView(xR),n.registerPreprocessor(function(e){if(e.xAxis&&e.yAxis&&!e.grid)e.grid={}})}var Rg="single",SR="singleAxis",Og="singleAxis",DR=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getCoordSysModel=function(){return this},e.type=Og,e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:0.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},e}(Fe);xt(DR,In.prototype);var Ng=DR;function AD(n){It(Pg),n.registerSeriesModel(q2),n.registerChartView(Q2),n.registerLayout(Va("scatter"))}function TD(n){var e=n.polar;if(e){if(!U(e))e=[e];var r=[];I(e,function(s,l){if(s.indicator){if(s.type&&!s.shape)s.shape=s.type;if(n.radar=n.radar||[],!U(n.radar))n.radar=[n.radar];n.radar.push(s)}else r.push(s)}),n.polar=r}I(n.series,function(s){if(s&&s.type==="radar"&&s.polarIndex)s.radarIndex=s.polarIndex})}var iu="radar",j6=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new An(se(this.getData,this),se(this.getRawData,this))},e.prototype.getInitialData=function(r,s){return Ha(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(r,s,l){var u=this.getData(),f=this.coordinateSystem,c=f.getIndicatorAxes(),p=this.getData().getName(r),v=p===""?this.name:p,h=fm(this,r);return Wt("section",{header:v,sortBlocks:!0,blocks:W(c,function(d){var m=u.get(u.mapDimension(d.dim),r);return Wt("nameValue",{markerType:"subItem",markerColor:h,name:d.name,value:m,sortParam:m})})})},e.prototype.getTooltipPosition=function(r){if(r!=null){var s=this.getData(),l=this.coordinateSystem,u=s.getValues(W(l.dimensions,function(v){return s.mapDimension(v)}),r);for(var f=0,c=u.length;f<c;f++)if(!isNaN(u[f])){var p=l.getIndicatorAxes();return l.coordToPoint(p[f].dataToCoord(u[f]),f)}}},e.type="series."+iu,e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(et),bR=j6;var $6=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=iu,r}return e.prototype.render=function(r,s,l){var u=r.coordinateSystem,f=this.group,c=r.getData(),p=this._data;function v(m,g){var y=m.getItemVisual(g,"symbol")||"circle";if(y==="none")return;var x=mo(m.getItemVisual(g,"symbolSize")),S=Dt(y,-1,-1,2,2),D=m.getItemVisual(g,"symbolRotate")||0;return S.attr({style:{strokeNoScale:!0},z2:100,scaleX:x[0]/2,scaleY:x[1]/2,rotation:D*Math.PI/180||0}),S}function h(m,g,y,x,S,D){y.removeAll();for(var b=0;b<g.length-1;b++){var C=v(x,S);if(C){if(C.__dimIdx=b,m[b])C.setPosition(m[b]),Ne[D?"initProps":"updateProps"](C,{x:g[b][0],y:g[b][1]},r,S);else C.setPosition(g[b]);y.add(C)}}}function d(m){return W(m,function(g){return[u.cx,u.cy]})}c.diff(p).add(function(m){var g=c.getItemLayout(m);if(!g)return;var y=new rr,x=new ur,S={shape:{points:g}};y.shape.points=d(g),x.shape.points=d(g),$e(y,S,r,m),$e(x,S,r,m);var D=new ve,b=new ve;D.add(x),D.add(y),D.add(b),h(x.shape.points,g,b,c,m,!0),c.setItemGraphicEl(m,D)}).update(function(m,g){var y=p.getItemGraphicEl(g),x=y.childAt(0),S=y.childAt(1),D=y.childAt(2),b={shape:{points:c.getItemLayout(m)}};if(!b.shape.points)return;h(x.shape.points,b.shape.points,D,c,m,!1),fr(S),fr(x),Oe(x,b,r),Oe(S,b,r),c.setItemGraphicEl(m,y)}).remove(function(m){f.remove(p.getItemGraphicEl(m))}).execute(),c.eachItemGraphicEl(function(m,g){var y=c.getItemModel(g),x=m.childAt(0),S=m.childAt(1),D=m.childAt(2),b=c.getItemVisual(g,"style"),C=b.fill;f.add(m),x.useStyle(pe(y.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:C})),wt(x,y,"lineStyle"),wt(S,y,"areaStyle");var A=y.getModel("areaStyle"),T=A.isEmpty()&&A.parentModel.isEmpty();S.ignore=T,I(["emphasis","select","blur"],function(w){var L=y.getModel([w,"areaStyle"]),M=L.isEmpty()&&L.parentModel.isEmpty();S.ensureState(w).ignore=M&&T;var P=y.getModel([w,"lineStyle"]).getLineStyle();x.ensureState(w).style=P;var R=L.getAreaStyle();S.ensureState(w).style=R;var N=y.getModel([w,"itemStyle"]).getItemStyle();D.eachChild(function(O){O.ensureState(w).style=le(N)})}),S.useStyle(pe(y.getModel("areaStyle").getAreaStyle(),{fill:C,opacity:0.7,decal:b.decal}));var E=y.getModel("emphasis");D.eachChild(function(w){if(w instanceof Bt){var L=w.style;w.useStyle(V({image:L.image,x:L.x,y:L.y,width:L.width,height:L.height},b))}else w.useStyle(b),w.setColor(C),w.style.strokeNoScale=!0;var M=c.getStore().get(c.getDimensionIndex(w.__dimIdx),g);(M==null||isNaN(M))&&(M=""),Mt(w,St(y),{labelFetcher:c.hostModel,labelDataIndex:g,labelDimIndex:w.__dimIdx,defaultText:M,inheritColor:C,defaultOpacity:b.opacity})}),it(m,E.get("focus"),E.get("blurScope"),E.get("disabled"))}),this._data=c},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=iu,e}(qe),CR=$6;var Qp=Eg.value,Bf="radar",ED=Bf,AR=Bf,wD=5;function kg(n,e){return pe({show:e},n)}var Q6=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),s=this.get("splitNumber"),l=this.get("clockwise"),u=this.get("scale"),f=this.get("axisLine"),c=this.get("axisTick"),p=this.get("axisLabel"),v=this.get("axisName"),h=this.get(["axisName","show"]),d=this.get(["axisName","formatter"]),m=this.get("axisNameGap"),g=this.get("triggerEvent"),y=W(this.get("indicator")||[],function(x){if(x.max!=null&&x.max>0&&!x.min)x.min=0;else if(x.min!=null&&x.min<0&&!x.max)x.max=0;var S=v;if(x.color!=null)S=pe({color:x.color},v);var D=Re(le(x),{boundaryGap:r,splitNumber:s,clockwise:l,scale:u,axisLine:f,axisTick:c,axisLabel:p,name:x.text,showName:h,nameLocation:"end",nameGap:m,nameTextStyle:S,triggerEvent:g},!1);if(K(d)){var b=D.name;D.name=d.replace("{value}",b!=null?b:"")}else if(ie(d))D.name=d(D.name,D);var C=new Je(D,null,this.ecModel);return xt(C,In.prototype),C.mainType="radar",C.componentIndex=this.componentIndex,C.uid=dn("ec_radar"),C},this);this._indicatorModels=y},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=ED,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:X.color.axisLabel},boundaryGap:[0,0],splitNumber:wD,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Re({lineStyle:{color:X.color.neutral20}},Qp.axisLine),axisLabel:kg(Qp.axisLabel,!1),axisTick:kg(Qp.axisTick,!1),splitLine:kg(Qp.splitLine,!0),splitArea:kg(Qp.splitArea,!0),indicator:[]},e}(Fe),TR=Q6;var J6=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,s,l){var u=this.group;u.removeAll(),this._buildAxes(r,l),this._buildSplitLineAndArea(r)},e.prototype._buildAxes=function(r,s){var l=r.coordinateSystem,u=l.getIndicatorAxes(),f=W(u,function(c){var p=c.model.get("showName")?c.name:"",v=new Pr(c.model,s,{axisName:p,position:[l.cx,l.cy],rotation:c.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return v});I(f,function(c){c.build(),this.group.add(c.group)},this)},e.prototype._buildSplitLineAndArea=function(r){var s=r.coordinateSystem,l=s.getIndicatorAxes();if(!l.length)return;var u=r.get("shape"),f=r.getModel("splitLine"),c=r.getModel("splitArea"),p=f.getModel("lineStyle"),v=c.getModel("areaStyle"),h=f.get("show"),d=c.get("show"),m=p.get("color"),g=v.get("color"),y=U(m)?m:[m],x=U(g)?g:[g],S=[],D=[];function b(F,z,H){var G=H%z.length;return F[G]=F[G]||[],G}if(u==="circle"){var C=l[0].getTicksCoords(),{cx:A,cy:T}=s;for(var E=0;E<C.length;E++){if(h){var w=b(S,y,E);S[w].push(new Ia({shape:{cx:A,cy:T,r:C[E].coord}}))}if(d&&E<C.length-1){var w=b(D,x,E);D[w].push(new Tl({shape:{cx:A,cy:T,r0:C[E].coord,r:C[E+1].coord}}))}}}else{var L,M=W(l,function(F,z){var H=F.getTicksCoords();return L=L==null?H.length-1:Math.min(H.length-1,L),W(H,function(G){return s.coordToPoint(G.coord,z)})}),P=[];for(var E=0;E<=L;E++){var R=[];for(var N=0;N<l.length;N++)R.push(M[N][E]);if(R[0])R.push(R[0].slice());if(h){var w=b(S,y,E);S[w].push(new ur({shape:{points:R}}))}if(d&&P){var w=b(D,x,E-1);D[w].push(new rr({shape:{points:R.concat(P)}}))}P=R.slice().reverse()}}var O=p.getLineStyle(),B=v.getAreaStyle();I(D,function(F,z){this.group.add(zr(F,{style:pe({stroke:"none",fill:x[z%x.length]},B),silent:!0}))},this),I(S,function(F,z){this.group.add(zr(F,{style:pe({fill:"none",stroke:y[z%y.length]},O),silent:!0}))},this)},e.type="radar",e}(ft),ER=J6;var eY=function(n){k(e,n);function e(r,s,l){var u=n.call(this,r,s,l)||this;return u.type="value",u.angle=0,u.name="",u}return e}(Ur),wR=eY;var tY=function(){function n(e,r,s){this.type=Bf,this.dimensions=[],this._model=e,this._indicatorAxes=W(e.getIndicatorModels(),function(l,u){var f="indicator_"+u,c=new wR(f,new _n);return c.name=l.get("name"),c.model=l,l.axis=c,this.dimensions.push(f),c},this),this.resize(e,s)}return n.prototype.getIndicatorAxes=function(){return this._indicatorAxes},n.prototype.dataToPoint=function(e,r){var s=this._indicatorAxes[r];return this.coordToPoint(s.dataToCoord(e),r)},n.prototype.coordToPoint=function(e,r){var s=this._indicatorAxes[r],l=s.angle,u=this.cx+e*Math.cos(l),f=this.cy-e*Math.sin(l);return[u,f]},n.prototype.pointToData=function(e){var r=e[0]-this.cx,s=e[1]-this.cy,l=Math.sqrt(r*r+s*s);r/=l,s/=l;var u=Math.atan2(-s,r),f=1/0,c,p=-1;for(var v=0;v<this._indicatorAxes.length;v++){var h=this._indicatorAxes[v],d=Math.abs(u-h.angle);if(d<f)c=h,p=v,f=d}return[p,+(c&&c.coordToData(l))]},n.prototype.resize=function(e,r){var s=Tt(e,r).refContainer,l=e.get("center"),u=e.get("clockwise")||!1,f=Math.min(s.width,s.height)/2;this.cx=ee(l[0],s.width)+s.x,this.cy=ee(l[1],s.height)+s.y,this.startAngle=e.get("startAngle")*Math.PI/180;var c=e.get("radius");if(K(c)||Te(c))c=[0,c];this.r0=ee(c[0],f),this.r=ee(c[1],f);var p=u?-1:1;I(this._indicatorAxes,function(v,h){v.setExtent(this.r0,this.r);var d=this.startAngle+p*h*Math.PI*2/this._indicatorAxes.length;d=Math.atan2(Math.sin(d),Math.cos(d)),v.angle=d},this)},n.prototype.update=function(e,r){var s=this._indicatorAxes,l=this._model,u=Yl(l.get("splitNumber"),wD),f=new _n;f.setExtent(0,u),f.setConfig({interval:1}),I(s,function(c){Ui(c,Ga),wg(c,f)})},n.prototype.convertToPixel=function(e,r,s){return console.warn("Not implemented."),null},n.prototype.convertFromPixel=function(e,r,s){return console.warn("Not implemented."),null},n.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},n.create=function(e,r){var s=[];return e.eachComponent(ED,function(l){var u=new n(l,e,r);s.push(u),l.coordinateSystem=u}),e.eachSeriesByType(AR,function(l){if(l.get("coordinateSystem")===Bf){var u=l.coordinateSystem=s[l.get("radarIndex")||0];if(u)I(u.getIndicatorAxes(),function(f){ca(f,l,Bf)})}}),s},n.dimensions=[],n}(),IR=tY;function Jp(n){n.registerCoordinateSystem("radar",IR),n.registerComponentModel(TR),n.registerComponentView(ER),n.registerVisual({seriesType:"radar",reset:function(e){var r=e.getData();r.each(function(s){r.setItemVisual(s,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}var PR=yt(iu,rY);function rY(n){n.eachSeriesByType(iu,function(e){var r=e.getData(),s=[],l=e.coordinateSystem;if(!l)return;var u=l.getIndicatorAxes();I(u,function(f,c){r.each(r.mapDimension(u[c].dim),function(p,v){s[v]=s[v]||[];var h=l.dataToPoint(p,c);s[v][c]=MR(h)?h:LR(l)})}),r.each(function(f){var c=xu(s[f],function(p){return MR(p)})||LR(l);s[f].push(c.slice()),r.setItemLayout(f,s[f])})})}function MR(n){return!isNaN(n[0])&&!isNaN(n[1])}function LR(n){return[n.cx,n.cy]}function ID(n){It(Jp),n.registerChartView(CR),n.registerSeriesModel(bR),n.registerLayout(PR),n.registerProcessor(Ao("radar")),n.registerPreprocessor(TD)}var MD=he();function RR(n,e,r){MD(n)[e]=r}function OR(n,e,r){var s=MD(n),l=s[e];if(l===r)s[e]=null}function LD(n,e){return!!MD(n)[e]}Io({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},mt);var iY={axisPointer:1,tooltip:1,brush:1};function Bg(n,e,r){var s=e.getComponentByElement(n.topTarget);if(!s||s===r||iY.hasOwnProperty(s.mainType))return!1;var l=s.coordinateSystem;if(!l||l.model===r)return!1;var u=hn(s),f=hn(r);if((u.zlevel-f.zlevel||u.z-f.z)<=0)return!1;return!0}var aY=function(n){k(e,n);function e(r){var s=n.call(this)||this;s._zr=r;var l=se(s._mousedownHandler,s),u=se(s._mousemoveHandler,s),f=se(s._mouseupHandler,s),c=se(s._mousewheelHandler,s),p=se(s._pinchHandler,s);return s.enable=function(v,h){var d=h.zInfo,m=hn(d.component),{z:g,zlevel:y}=m,x={component:d.component,z:g,zlevel:y,z2:te(d.z2,-1/0)},S=V({},h.triggerInfo);if(this._opt=pe(V({},h),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:x,triggerInfo:S,cursorGrab:"grab",cursorGrabbing:"grabbing"}),v==null)v=!0;if(!this._enabled||this._controlType!==v){if(this.disable(),this._enabled=!0,v===!0||v==="move"||v==="pan")tv(r,"mousedown",l,x),tv(r,"mousemove",u,x),tv(r,"mouseup",f,x);if(v===!0||v==="scale"||v==="zoom")tv(r,"mousewheel",c,x),tv(r,"pinch",p,x)}},s.disable=function(){if(this._enabled)this._enabled=!1,rv(r,"mousedown",l),rv(r,"mousemove",u),rv(r,"mouseup",f),rv(r,"mousewheel",c),rv(r,"pinch",p)},s}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(r,s,l){var u=this._opt,f=u.zInfoParsed;if(Bg(r,u.api,f.component))return!1;var c=u.triggerInfo,p=c.roamTrigger,v=!1;if(p==="global")v=!0;if(!v)v=c.isInSelf(r,s,l);if(v&&c.isInClip&&!c.isInClip(r,s,l))v=!1;return v},e.prototype._decideCursorStyle=function(r,s,l,u){var f=r.target;if(!f&&this._checkPointer(r,s,l))return this._opt.cursorGrab;if(u)return f&&f.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(r){if(AS(r)||ev(r))return;var s=r.target;while(s){if(s.draggable)return;s=s.__hostTarget||s.parent}var{offsetX:l,offsetY:u}=r;if(this._checkPointer(r,l,u))this._x=l,this._y=u,this._dragging=!0},e.prototype._mousemoveHandler=function(r){var s=this._zr;if(r.gestureEvent==="pinch"||LD(s,"globalPan")||ev(r))return;var{offsetX:l,offsetY:u}=r;if(!this._dragging||!Fg("moveOnMouseMove",r,this._opt)){var f=this._decideCursorStyle(r,l,u,!1);if(f)s.setCursorStyle(f);return}s.setCursorStyle(this._opt.cursorGrabbing);var c=this._x,p=this._y,v=l-c,h=u-p;if(this._x=l,this._y=u,this._opt.preventDefaultMouseMove)Ai(r.event);r.__ecRoamConsumed=!0,kR(this,"pan","moveOnMouseMove",r,{dx:v,dy:h,oldX:c,oldY:p,newX:l,newY:u,isAvailableBehavior:null})},e.prototype._mouseupHandler=function(r){if(ev(r))return;var s=this._zr;if(!AS(r)){this._dragging=!1;var l=this._decideCursorStyle(r,r.offsetX,r.offsetY,!0);if(l)s.setCursorStyle(l)}},e.prototype._mousewheelHandler=function(r){if(ev(r))return;var s=Fg("zoomOnMouseWheel",r,this._opt),l=Fg("moveOnMouseWheel",r,this._opt),u=r.wheelDelta,f=Math.abs(u),{offsetX:c,offsetY:p}=r;if(u===0||!s&&!l)return;if(s){var v=f>3?1.4:f>1?1.2:1.1,h=u>0?v:1/v;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",r,{scale:h,originX:c,originY:p,isAvailableBehavior:null})}if(l){var d=Math.abs(u),m=(u>0?1:-1)*(d>3?0.4:d>1?0.15:0.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:m,originX:c,originY:p,isAvailableBehavior:null})}},e.prototype._pinchHandler=function(r){if(LD(this._zr,"globalPan")||ev(r))return;var s=r.pinchScale>1?1.1:0.9090909090909091;this._checkTriggerMoveZoom(this,"zoom",null,r,{scale:s,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})},e.prototype._checkTriggerMoveZoom=function(r,s,l,u,f){if(r._checkPointer(u,f.originX,f.originY))Ai(u.event),u.__ecRoamConsumed=!0,kR(r,s,l,u,f)},e}(_r);function ev(n){return n.__ecRoamConsumed}var nY=he();function zg(n){var e=nY(n);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function tv(n,e,r,s){var l=zg(n),u=l.roam,f=u[e]=u[e]||[],c=0;for(;c<f.length;c++){var p=f[c].zInfoParsed;if((p.zlevel-s.zlevel||p.z-s.z||p.z2-s.z2)<=0)break}f.splice(c,0,{listener:r,zInfoParsed:s}),oY(n,e)}function rv(n,e,r){var s=zg(n),l=s.roam[e]||[];for(var u=0;u<l.length;u++)if(l[u].listener===r){if(l.splice(u,1),!l.length)sY(n,e);return}}function oY(n,e){var r=zg(n);if(!r.uniform[e])n.on(e,r.uniform[e]=function(s){var l=r.roam[e];if(l)for(var u=0;u<l.length;u++)l[u].listener(s)})}function sY(n,e){var r=zg(n),s=r.uniform;if(s[e])n.off(e,s[e]),s[e]=null}function kR(n,e,r,s,l){l.isAvailableBehavior=se(Fg,null,r,s),n.trigger(e,l)}function Fg(n,e,r){var s=r[n];return!n||s&&(!K(s)||e.event[s+"Key"])}var Ln=aY;var Hg=0,av=1,Hi=2;function Hr(n){return n}var lY="view",uY=function(n){k(e,n);function e(r,s,l){var u=n.call(this)||this;u.type=lY,u.dimensions=["x","y"];var f=Hr(u);f.invertY=r,f.lgCt=s,f.lgGeo=l;var c=f.trans=[];return c[Hg]=sl(),c[av]=sl(),c[Hi]=sl(),f.mtRaw=Ct(),f.mtRawInv=Ct(),f.mtOverall=Ct(),f.mtOverallInv=Ct(),f.zoom=1,u}return e.prototype.getBoundingRect=function(){return fY(null,this)},e.prototype.getViewRect=function(){return cY(null,this)},e.prototype.getRoamTransform=function(){return Go(Hr(this).trans[av])},e.prototype.dataToPoint=function(r,s,l){var u=s?Hr(this).mtRaw:Hr(this).mtOverall;return l=l||[],u?er(l,r,u):pr(l,r)},e.prototype.pointToData=function(r,s,l){l=l||[];var u=Hr(this).mtOverallInv;return u?er(l,r,u):pr(l,r)},e.prototype.convertToPixel=function(r,s,l){var u=GR(s);return u===this?u.dataToPoint(l):null},e.prototype.convertFromPixel=function(r,s,l){var u=GR(s);return u===this?u.pointToData(l):null},e.prototype.containPoint=function(r){var s=Hr(this);return rl(Vg,s.dataRect),vA(Vg,Vg,s.mtOverall),hA(Vg,r[0],r[1])},e.dimensions=["x","y"],e}(qi),Vg=Ac();function ND(n,e){return Ja(n||[],Hr(e).mtOverall)}function fY(n,e){return rl(n||Ac(),Hr(e).dataRect)}function cY(n,e){return rl(n||Ac(),Hr(e).viewRect)}function BR(n,e,r){return ci(n||sl(),Hr(e).trans[r])}function kD(n){return!!(n.dataRect&&n.viewRect)}function pY(n,e,r,s){if(s===av)XR(n,e.trans[Hg],r);else ci(n,r)}function FR(n,e,r){Go(r,Ug),Sa(Ug,Ug,e.mtRawInv),lp(n,Ug)}var Ug=Ct();function BD(n,e){var r=Hr(n);r.centerOption=e.getShallow("center");var s=r.zoomLimit=e.getShallow("scaleLimit"),l=e.getShallow("zoom");if(r.zoom=Yg(l||1,s)||1,kD(r))zD(r)}function YR(n,e,r,s,l){var u=Hr(n);if(u.dataRect=new De(e,r,s,l),kD(u))zD(u)}function FD(n,e,r,s,l){var u=Hr(n);if(u.viewRect=new De(e,r,s,l),kD(u))zD(u)}function zD(n){vY(n),dY(n),mY(n)}function vY(n){var{dataRect:e,viewRect:r}=n,s=n.trans[Hg],l=n.invertY;if(l)e=rl(hY,e),e.y=-e.y-e.height;if(S0(zR,e,r),lp(s,zR),l)s.scaleY=-s.scaleY;var u=Go(s,n.mtRaw);Zr(n.mtRawInv,u)}var zR=Ct(),hY=Ac();function dY(n){var e=ZR(n),r=xY(PD,n,n.centerOption)?er(PD,PD,n.mtRaw):e,s=n.zoom,l=n.trans[av];l.x=e[0]-s*r[0],l.y=e[1]-s*r[1],l.scaleX=l.scaleY=s}var PD=[];function mY(n){var e=n.trans,r=e[av],s=e[Hg],l=e[Hi];XR(l,s,r);var u=Go(l,n.mtOverall),f=Zr(n.mtOverallInv,u);VR(n,l,u,f),VR(n.lgGeo,l,u,f)}function VR(n,e,r,s){if(n)ci(n,e),Ja(n.transform||(n.transform=[]),r),Ja(n.invTransform||(n.invTransform=[]),s)}function XR(n,e,r){Go(e,UR),Go(r,Gg),Sa(Gg,Gg,UR),lp(n,Gg)}var UR=Ct(),Gg=Ct();function GR(n){var e=n.seriesModel;return e?e.coordinateSystem:null}function ZR(n){var e=n.viewRect;return RD[0]=e.x+e.width/2,RD[1]=e.y+e.height/2,RD}var RD=[];function Wg(n){return n&&n.type==="view"}function Mo(n,e,r,s){var l=Hr(r);if(l.syncBackEl=n,l.syncBackType=e,!s)BR(n,r,e),n.dirty();else Oe(n,BR(null,r,e),s)}function gY(n,e,r,s){var l=Hr(n),u=l.syncBackEl;if(u)u.stopAnimation(),pY(Ls,l,u,l.syncBackType);else ci(Ls,l.trans[Hi]);FR(OD,l,Ls),s?yY(Ls,OD,l,s):ci(Ls,OD),FR(Ls,l,Ls),SY(l,e,r,Ls)}var Ls=sl(),OD=sl();function KR(n,e,r){var s=Ff(e);if(s)gY(s,e,r,n),BD(s,e)}function Ff(n){return n.__ownRoamView?n.__ownRoamView():null}function qR(n,e,r,s){r.setUpdatePayload(sp(n));var l=Yh(s,e);if(l&&l.__updateOnOwnRoam)l.__updateOnOwnRoam(n,e,s)}function yY(n,e,r,s){if(s.dx!=null&&s.dy!=null)n.x+=s.dx,n.y+=s.dy;var l=s.zoom;if(l!=null){var u=jR(e),f=Yg(u*l,r.zoomLimit),c=f/u;n.x-=(s.originX-n.x)*(c-1),n.y-=(s.originY-n.y)*(c-1),n.scaleX*=c,n.scaleY*=c}}function jR(n){return n.scaleX}function xY(n,e,r){var s=e.dataRect;if(!r)return!1;var l=e.lgCt;if(l)Wn(n,ee(r[0],l.w),ee(r[1],l.h));else if(s)Wn(n,ee(r[0],s.width,s.x),ee(r[1],s.height,s.y));return!0}function _Y(n,e){var{centerOption:r,dataRect:s}=n;return!r||n.lgCt?e.slice():[HR(0,e,r,s),HR(1,e,r,s)]}function HR(n,e,r,s){return r&&s&&s[La[n]]&&RT(r[n])?(e[n]-s[la[n]])/s[La[n]]*100+"%":e[n]}function $R(n,e){return e&&n&&n.getShallow("legacyViewCoordSysCenterBase")?{w:e.getWidth(),h:e.getHeight()}:null}function SY(n,e,r,s){var l=ZR(n),u=jR(s),f=_t(u)>0.000001;iv[0]=f?(l[0]-s.x)/u:l[0],iv[1]=f?(l[1]-s.y)/u:l[1],er(iv,iv,n.mtRawInv);var c=_Y(n,iv);WR(e,c,u),I(r,function(p){if(p!==e)WR(p,c.slice(),u)})}var iv=[];function WR(n,e,r){var s=n.option;s.center=e,s.zoom=r}function Yg(n,e){if(e){var r=e.min||0,s=e.max||1/0;n=Math.max(Math.min(s,n),r)}return n}function Xg(n,e){var r=e.getShallow("nodeScaleRatio",!0)||1,s=Hr(n);return((s.zoom-1)*r+1)/(s.trans[Hi].scaleX||1)}var Zg=uY;function zf(n,e,r,s,l,u,f,c){var p=Ff(n);if(!p){r.disable();return}r.enable(te(n.get("roam"),f),{api:e,zInfo:{component:n},triggerInfo:{roamTrigger:n.get("roamTrigger"),isInSelf:s,isInClip:function(h,d,m){return!l||l.contain(d,m)}}});function v(h){var d=n.mainType,m=sp(pe({type:QR(d,n.subType,Cx)},h));if(c)m.componentType=d;m[d+"Id"]=n.id,e.dispatchAction(m)}r.off("pan").off("zoom").on("pan",function(h){u&&u("pan"),v({dx:h.dx,dy:h.dy})}).on("zoom",function(h){u&&u("zoom"),v({zoom:h.scale,originX:h.originX,originY:h.originY})})}function Kg(n){return function(e,r,s){return VD.copy(n.getBoundingRect()),VD.applyTransform(n.getComputedTransform()),VD.contain(r,s)}}var VD=new De(0,0,0,0);function Vf(n,e,r){var s=QR(e,r,Cx);n.registerAction({type:s,event:s,update:"none"},function(l,u,f){u.eachComponent(Uh(l,e,r),function(c){KR(l,c),qR(l,c,u,f)})})}function QR(n,e,r){return(n!==di?n:e==="map"?"geo":e)+r}function qg(n){return n.zoom!=null}function Uf(n,e,r,s,l,u,f){var c=new Zg(null,$R(n.ecModel,e));return YR(c,r,s,l,u),f?FD(c,f.x,f.y,f.width,f.height):FD(c,r,s,l,u),BD(c,n),c}function JR(n){var e=n;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var r=[e],s,l;while(s=r.pop())if(l=s.children,s.isExpand&&l.length){var u=l.length;for(var f=u-1;f>=0;f--){var c=l[f];c.hierNode={defaultAncestor:null,ancestor:c,prelim:0,modifier:0,change:0,shift:0,i:f,thread:null},r.push(c)}}}function eO(n,e){var r=n.isExpand?n.children:[],s=n.parentNode.children,l=n.hierNode.i?s[n.hierNode.i-1]:null;if(r.length){DY(n);var u=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;if(l)n.hierNode.prelim=l.hierNode.prelim+e(n,l),n.hierNode.modifier=n.hierNode.prelim-u;else n.hierNode.prelim=u}else if(l)n.hierNode.prelim=l.hierNode.prelim+e(n,l);n.parentNode.hierNode.defaultAncestor=bY(n,l,n.parentNode.hierNode.defaultAncestor||s[0],e)}function tO(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function HD(n){return arguments.length?n:TY}function au(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function DY(n){var e=n.children,r=e.length,s=0,l=0;while(--r>=0){var u=e[r];u.hierNode.prelim+=s,u.hierNode.modifier+=s,l+=u.hierNode.change,s+=u.hierNode.shift+l}}function bY(n,e,r,s){if(e){var l=n,u=n,f=u.parentNode.children[0],c=e,p=l.hierNode.modifier,v=u.hierNode.modifier,h=f.hierNode.modifier,d=c.hierNode.modifier;while(c=UD(c),u=GD(u),c&&u){l=UD(l),f=GD(f),l.hierNode.ancestor=n;var m=c.hierNode.prelim+d-u.hierNode.prelim-v+s(c,u);if(m>0)AY(CY(c,n,r),n,m),v+=m,p+=m;d+=c.hierNode.modifier,v+=u.hierNode.modifier,p+=l.hierNode.modifier,h+=f.hierNode.modifier}if(c&&!UD(l))l.hierNode.thread=c,l.hierNode.modifier+=d-p;if(u&&!GD(f))f.hierNode.thread=u,f.hierNode.modifier+=v-h,r=n}return r}function UD(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function GD(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function CY(n,e,r){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:r}function AY(n,e,r){var s=r/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=s,e.hierNode.shift+=r,e.hierNode.modifier+=r,e.hierNode.prelim+=r,n.hierNode.change+=s}function TY(n,e){return n.parentNode===e.parentNode?1:2}var da=he();function EY(n){var{mainData:e,datas:r}=n;if(!r)r={main:e},n.datasAttr={main:"data"};n.datas=n.mainData=null,rO(e,r,n),I(r,function(s){I(e.TRANSFERABLE_METHODS,function(l){s.wrapMethod(l,Ae(wY,n))})}),e.wrapMethod("cloneShallow",Ae(MY,n)),I(e.CHANGABLE_METHODS,function(s){e.wrapMethod(s,Ae(IY,n))}),We(r[e.dataType]===e)}function wY(n,e){if(RY(this)){var r=V({},da(this).datas);r[this.dataType]=e,rO(e,r,n)}else WD(e,this.dataType,da(this).mainData,n);return e}function IY(n,e){return n.struct&&n.struct.update(),e}function MY(n,e){return I(da(e).datas,function(r,s){r!==e&&WD(r.cloneShallow(),s,e,n)}),e}function LY(n){var e=da(this).mainData;return n==null||e==null?e:da(e).datas[n]}function PY(){var n=da(this).mainData;return n==null?[{data:n}]:W(Me(da(n).datas),function(e){return{type:e,data:da(n).datas[e]}})}function RY(n){return da(n).mainData===n}function rO(n,e,r){da(n).datas={},I(e,function(s,l){WD(s,l,n,r)})}function WD(n,e,r,s){if(da(r).datas[e]=n,da(n).mainData=r,n.dataType=e,s.struct)n[s.structAttr]=s.struct,s.struct[s.datasAttr[e]]=n;n.getLinkedData=LY,n.getLinkedDataAll=PY}var jg=EY;var OY=function(){function n(e,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=r}return n.prototype.isRemoved=function(){return this.dataIndex<0},n.prototype.eachNode=function(e,r,s){if(ie(e))s=r,r=e,e=null;if(e=e||{},K(e))e={order:e};var l=e.order||"preorder",u=this[e.attr||"children"],f;l==="preorder"&&(f=r.call(s,this));for(var c=0;!f&&c<u.length;c++)u[c].eachNode(e,r,s);l==="postorder"&&r.call(s,this)},n.prototype.updateDepthAndHeight=function(e){var r=0;this.depth=e;for(var s=0;s<this.children.length;s++){var l=this.children[s];if(l.updateDepthAndHeight(e+1),l.height>r)r=l.height}this.height=r+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var r=0,s=this.children,l=s.length;r<l;r++){var u=s[r].getNodeById(e);if(u)return u}},n.prototype.contains=function(e){if(e===this)return!0;for(var r=0,s=this.children,l=s.length;r<l;r++){var u=s[r].contains(e);if(u)return u}},n.prototype.getAncestors=function(e){var r=[],s=e?this:this.parentNode;while(s)r.push(s),s=s.parentNode;return r.reverse(),r},n.prototype.getAncestorsIndices=function(){var e=[],r=this;while(r)e.push(r.dataIndex),r=r.parentNode;return e.reverse(),e},n.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(r){e.push(r.dataIndex)}),e},n.prototype.getValue=function(e){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(e||"value"),this.dataIndex)},n.prototype.setLayout=function(e,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,r)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(this.dataIndex<0)return;var r=this.hostTree,s=r.data.getItemModel(this.dataIndex);return s.getModel(e)},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,r)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){var e=this.parentNode.children;for(var r=0;r<e.length;++r)if(e[r]===this)return r;return-1}return-1},n.prototype.isAncestorOf=function(e){var r=e.parentNode;while(r){if(r===this)return!0;r=r.parentNode}return!1},n.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},n}();var NY=function(){function n(e){this.type="tree",this._nodes=[],this.hostModel=e}return n.prototype.eachNode=function(e,r,s){this.root.eachNode(e,r,s)},n.prototype.getNodeByDataIndex=function(e){var r=this.data.getRawIndex(e);return this._nodes[r]},n.prototype.getNodeById=function(e){return this.root.getNodeById(e)},n.prototype.update=function(){var e=this.data,r=this._nodes;for(var s=0,l=r.length;s<l;s++)r[s].dataIndex=-1;for(var s=0,l=e.count();s<l;s++)r[e.getRawIndex(s)].dataIndex=s},n.prototype.clearLayouts=function(){this.data.clearItemLayouts()},n.createTree=function(e,r,s){var l=new n(r),u=[],f=1;c(e);function c(h,d){var m=h.value;f=Math.max(f,U(m)?m.length:1),u.push(h);var g=new OY(tr(h.name,""),l);d?kY(g,d):l.root=g,l._nodes.push(g);var y=h.children;if(y)for(var x=0;x<y.length;x++)c(y[x],g)}l.root.updateDepthAndHeight(0);var p=Ra(u,{coordDimensions:["value"],dimensionsCount:f}).dimensions,v=new ir(p,r);return v.initData(u),s&&s(v),jg({mainData:v,struct:l,structAttr:"tree"}),l.update(),l},n}();function kY(n,e){var r=e.children;if(n.parentNode===e)return;r.push(n),n.parentNode=e}var Gf=NY;function Lo(n,e,r){if(n&&be(e,n.type)>=0){var s=r.getData().tree.root,l=n.targetNode;if(K(l))l=s.getNodeById(l);if(l&&s.contains(l))return{node:l};var u=n.targetNodeId;if(u!=null&&(l=s.getNodeById(u)))return{node:l}}}function YD(n){var e=[];while(n)n=n.parentNode,n&&e.push(n);return e.reverse()}function Hf(n,e){var r=YD(n);return be(r,e)>=0}function Ps(n,e){var r=[];while(n){var s=n.dataIndex;r.push({name:n.name,dataIndex:s,value:e.getRawValue(s)}),n=n.parentNode}return r.reverse(),r}var Pn="tree",BY=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return e.prototype.getInitialData=function(r){var s={name:r.name,children:r.data},l=r.leaves||{},u=new Je(l,this,this.ecModel),f=Gf.createTree(s,this,c);function c(d){d.wrapMethod("getItemModel",function(m,g){var y=f.getNodeByDataIndex(g);if(!(y&&y.children.length&&y.isExpand))m.parentModel=u;return m})}var p=0;f.eachNode("preorder",function(d){if(d.depth>p)p=d.depth});var v=r.expandAndCollapse,h=v&&r.initialTreeDepth>=0?r.initialTreeDepth:p;return f.root.eachNode("preorder",function(d){var m=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=m&&m.collapsed!=null?!m.collapsed:d.depth<=h}),f.data},e.prototype.getOrient=function(){var r=this.get("orient");if(r==="horizontal")r="LR";else if(r==="vertical")r="TB";return r},e.prototype.formatTooltip=function(r,s,l){var u=this.getData().tree,f=u.root.children[0],c=u.getNodeByDataIndex(r),p=c.getValue(),v=c.name;while(c&&c!==f)v=c.parentNode.name+"."+v,c=c.parentNode;return Wt("nameValue",{name:v,value:p,noValue:isNaN(p)||p==null})},e.prototype.getDataParams=function(r){var s=n.prototype.getDataParams.apply(this,arguments),l=this.getData().tree.getNodeByDataIndex(r);return s.treeAncestors=Ps(l,this),s.collapsed=!l.isExpand,s},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+Pn,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:0.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:X.color.borderTint,width:1.5,curveness:0.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(et),iO=BY;var FY=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),zY=function(n){k(e,n);function e(r){return n.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:X.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new FY},e.prototype.buildPath=function(r,s){var l=s.childPoints,u=l.length,f=s.parentPoint,c=l[0],p=l[u-1];if(u===1){r.moveTo(f[0],f[1]),r.lineTo(c[0],c[1]);return}var v=s.orient,h=v==="TB"||v==="BT"?0:1,d=1-h,m=ee(s.forkPosition,1),g=[];g[h]=f[h],g[d]=f[d]+(p[d]-f[d])*m,r.moveTo(f[0],f[1]),r.lineTo(g[0],g[1]),r.moveTo(c[0],c[1]),g[h]=c[h],r.lineTo(g[0],g[1]),g[h]=p[h],r.lineTo(g[0],g[1]),r.lineTo(p[0],p[1]);for(var y=1;y<u-1;y++){var x=l[y];r.moveTo(x[0],x[1]),g[h]=x[h],r.lineTo(g[0],g[1])}},e}(xe),VY=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=Pn,r._mainGroup=new ve,r}return e.prototype.init=function(r,s){this._controller=new Ln(s.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(r,s,l){var u=r.getData(),f=r.layoutInfo,c=this._mainGroup,p=r.get("layout");if(p==="radial")c.x=f.x+f.width/2,c.y=f.y+f.height/2;else c.x=f.x,c.y=f.y;this._updateViewCoordSys(r,l),zf(r,l,this._controller,Kg(this.group),null);var v=this._data;if(u.diff(v).add(function(h){if(aO(u,h))nO(u,h,null,c,r)}).update(function(h,d){var m=v.getItemGraphicEl(d);if(!aO(u,h)){m&&sO(v,d,m,c,r);return}nO(u,h,m,c,r)}).remove(function(h){var d=v.getItemGraphicEl(h);if(d)sO(v,h,d,c,r)}).execute(),this._updateNodeAndLinkScale(r),r.get("expandAndCollapse")===!0)u.eachItemGraphicEl(function(h,d){h.off("click").on("click",function(){l.dispatchAction({type:"treeExpandAndCollapse",seriesId:r.id,dataIndex:d})})});this._data=u,this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(r,s,l){if(Mo(this.group,Hi,s.coordinateSystem,null),qg(r))this._updateNodeAndLinkScale(s)},e.prototype._updateViewCoordSys=function(r,s){var l=r.getData(),u=[];l.each(function(d){var m=l.getItemLayout(d);if(m&&!isNaN(m.x)&&!isNaN(m.y))u.push([+m.x,+m.y])});var f=[],c=[];hl(u,f,c);var p=this._min,v=this._max;if(c[0]-f[0]===0)f[0]=p?p[0]:f[0]-1,c[0]=v?v[0]:c[0]+1;if(c[1]-f[1]===0)f[1]=p?p[1]:f[1]-1,c[1]=v?v[1]:c[1]+1;var h=r.coordinateSystem=Uf(r,s,f[0],f[1],c[0]-f[0],c[1]-f[1]);Mo(this.group,Hi,h,this._firstRender?null:r),this._min=f,this._max=c},e.prototype._updateNodeAndLinkScale=function(r){var s=r.getData(),l=Xg(r.coordinateSystem,r);s.eachItemGraphicEl(function(u,f){u.setSymbolScale(l)})},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type=Pn,e}(qe);function aO(n,e){var r=n.getItemLayout(e);return r&&!isNaN(r.x)&&!isNaN(r.y)}function nO(n,e,r,s,l){var u=!r,f=n.tree.getNodeByDataIndex(e),c=f.getModel(),p=f.getVisual("style").fill,v=f.isExpand===!1&&f.children.length!==0?p:X.color.neutral00,h=n.tree.root,d=f.parentNode===h?f:f.parentNode||f,m=n.getItemGraphicEl(d.dataIndex),g=d.getLayout(),y=m?{x:m.__oldX,y:m.__oldY,rawX:m.__radialOldRawX,rawY:m.__radialOldRawY}:g,x=f.getLayout();if(u)r=new go(n,e,null,{symbolInnerColor:v,useNameLabel:!0}),r.x=y.x,r.y=y.y;else r.updateData(n,e,null,{symbolInnerColor:v,useNameLabel:!0});r.__radialOldRawX=r.__radialRawX,r.__radialOldRawY=r.__radialRawY,r.__radialRawX=x.rawX,r.__radialRawY=x.rawY,s.add(r),n.setItemGraphicEl(e,r),r.__oldX=r.x,r.__oldY=r.y,Oe(r,{x:x.x,y:x.y},l);var S=r.getSymbolPath();if(l.get("layout")==="radial"){var D=h.children[0],b=D.getLayout(),C=D.children.length,A=void 0,T=void 0;if(x.x===b.x&&f.isExpand===!0&&D.children.length){var E={x:(D.children[0].getLayout().x+D.children[C-1].getLayout().x)/2,y:(D.children[0].getLayout().y+D.children[C-1].getLayout().y)/2};if(A=Math.atan2(E.y-b.y,E.x-b.x),A<0)A=Math.PI*2+A;if(T=E.x<b.x,T)A=A-Math.PI}else{if(A=Math.atan2(x.y-b.y,x.x-b.x),A<0)A=Math.PI*2+A;if(f.children.length===0||f.children.length!==0&&f.isExpand===!1){if(T=x.x<b.x,T)A=A-Math.PI}else if(T=x.x>b.x,!T)A=A-Math.PI}var w=T?"left":"right",L=c.getModel("label"),M=L.get("rotate"),P=M*(Math.PI/180),R=S.getTextContent();if(R)S.setTextConfig({position:L.get("position")||w,rotation:M==null?-A:P,origin:"center"}),R.setStyle("verticalAlign","middle")}var N=c.get(["emphasis","focus"]),O=N==="relative"?Su(f.getAncestorsIndices(),f.getDescendantIndices()):N==="ancestor"?f.getAncestorsIndices():N==="descendant"?f.getDescendantIndices():null;if(O)ye(r).focus=O;if(UY(l,f,h,r,y,g,x,s),r.__edge)r.onHoverStateChange=function(B){if(B!=="blur"){var F=f.parentNode&&n.getItemGraphicEl(f.parentNode.dataIndex);if(!(F&&F.hoverState===bl))$c(r.__edge,B)}}}function UY(n,e,r,s,l,u,f,c){var p=e.getModel(),v=n.get("edgeShape"),h=n.get("layout"),d=n.getOrient(),m=n.get(["lineStyle","curveness"]),g=n.get("edgeForkPosition"),y=p.getModel("lineStyle").getLineStyle(),x=s.__edge;if(v==="curve"){if(e.parentNode&&e.parentNode!==r){if(!x)x=s.__edge=new El({shape:ZD(h,d,m,l,l)});Oe(x,{shape:ZD(h,d,m,u,f)},n)}}else if(v==="polyline"){if(h==="orthogonal"){if(e!==r&&e.children&&e.children.length!==0&&e.isExpand===!0){var S=e.children,D=[];for(var b=0;b<S.length;b++){var C=S[b].getLayout();D.push([C.x,C.y])}if(!x)x=s.__edge=new zY({shape:{parentPoint:[f.x,f.y],childPoints:[[f.x,f.y]],orient:d,forkPosition:g}});Oe(x,{shape:{parentPoint:[f.x,f.y],childPoints:D}},n)}}}if(x&&!(v==="polyline"&&!e.isExpand))x.useStyle(pe({strokeNoScale:!0,fill:null},y)),wt(x,p,"lineStyle"),Zu(x),c.add(x)}function oO(n,e,r,s,l){var u=e.tree.root,f=lO(u,n),{source:c,sourceLayout:p}=f,v=e.getItemGraphicEl(n.dataIndex);if(!v)return;var h=e.getItemGraphicEl(c.dataIndex),d=h.__edge,m=v.__edge||(c.isExpand===!1||c.children.length===1?d:void 0),g=s.get("edgeShape"),y=s.get("layout"),x=s.get("orient"),S=s.get(["lineStyle","curveness"]);if(m){if(g==="curve")sa(m,{shape:ZD(y,x,S,p,p),style:{opacity:0}},s,{cb:function(){r.remove(m)},removeOpt:l});else if(g==="polyline"&&s.get("layout")==="orthogonal")sa(m,{shape:{parentPoint:[p.x,p.y],childPoints:[[p.x,p.y]]},style:{opacity:0}},s,{cb:function(){r.remove(m)},removeOpt:l})}}function lO(n,e){var r=e.parentNode===n?e:e.parentNode||e,s;while(s=r.getLayout(),s==null)r=r.parentNode===n?r:r.parentNode||r;return{source:r,sourceLayout:s}}function sO(n,e,r,s,l){var u=n.tree.getNodeByDataIndex(e),f=n.tree.root,c=lO(f,u).sourceLayout,p={duration:l.get("animationDurationUpdate"),easing:l.get("animationEasingUpdate")};sa(r,{x:c.x+1,y:c.y+1},l,{cb:function(){s.remove(r),n.setItemGraphicEl(e,null)},removeOpt:p}),r.fadeOut(null,n.hostModel,{fadeLabel:!0,animation:p}),I(u.children,function(v){oO(v,n,s,l,p)}),oO(u,n,s,l,p)}function ZD(n,e,r,s,l){var u,f,c,p,v,h,d,m;if(n==="radial"){v=s.rawX,d=s.rawY,h=l.rawX,m=l.rawY;var g=au(v,d),y=au(v,d+(m-d)*r),x=au(h,m+(d-m)*r),S=au(h,m);return{x1:g.x||0,y1:g.y||0,x2:S.x||0,y2:S.y||0,cpx1:y.x||0,cpy1:y.y||0,cpx2:x.x||0,cpy2:x.y||0}}else{if(v=s.x,d=s.y,h=l.x,m=l.y,e==="LR"||e==="RL")u=v+(h-v)*r,f=d,c=h+(v-h)*r,p=m;if(e==="TB"||e==="BT")u=v,f=d+(m-d)*r,c=h,p=m+(d-m)*r}return{x1:v,y1:d,x2:h,y2:m,cpx1:u,cpy1:f,cpx2:c,cpy2:p}}var uO=VY;function fO(n,e,r){var s=[n],l=[],u;while(u=s.pop())if(l.push(u),u.isExpand){var f=u.children;if(f.length)for(var c=0;c<f.length;c++)s.push(f[c])}while(u=l.pop())e(u,r)}function Wf(n,e){var r=[n],s;while(s=r.pop())if(e(s),s.isExpand){var l=s.children;if(l.length)for(var u=l.length-1;u>=0;u--)r.push(l[u])}}function KD(n,e){n.eachSeriesByType("tree",function(r){GY(r,e)})}function GY(n,e){var r=Tt(n,e).refContainer,s=ht(n.getBoxLayoutParams(),r);n.layoutInfo=s;var l=n.get("layout"),u=0,f=0,c=null;if(l==="radial")u=2*Math.PI,f=Math.min(s.height,s.width)/2,c=HD(function(A,T){return(A.parentNode===T.parentNode?1:2)/A.depth});else u=s.width,f=s.height,c=HD();var p=n.getData().tree.root,v=p.children[0];if(v){JR(p),fO(v,eO,c),p.hierNode.modifier=-v.hierNode.prelim,Wf(v,tO);var h=v,d=v,m=v;Wf(v,function(A){var T=A.getLayout().x;if(T<h.getLayout().x)h=A;if(T>d.getLayout().x)d=A;if(A.depth>m.depth)m=A});var g=h===d?1:c(h,d)/2,y=g-h.getLayout().x,x=0,S=0,D=0,b=0;if(l==="radial")x=u/(d.getLayout().x+g+y),S=f/(m.depth-1||1),Wf(v,function(A){D=(A.getLayout().x+y)*x,b=(A.depth-1)*S;var T=au(D,b);A.setLayout({x:T.x,y:T.y,rawX:D,rawY:b},!0)});else{var C=n.getOrient();if(C==="RL"||C==="LR")S=f/(d.getLayout().x+g+y),x=u/(m.depth-1||1),Wf(v,function(A){b=(A.getLayout().x+y)*S,D=C==="LR"?(A.depth-1)*x:u-(A.depth-1)*x,A.setLayout({x:D,y:b},!0)});else if(C==="TB"||C==="BT")x=u/(d.getLayout().x+g+y),S=f/(m.depth-1||1),Wf(v,function(A){D=(A.getLayout().x+y)*x,b=C==="TB"?(A.depth-1)*S:f-(A.depth-1)*S,A.setLayout({x:D,y:b},!0)})}}}function cO(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,r){r.eachComponent({mainType:di,subType:Pn,query:e},function(s){var l=e.dataIndex,u=s.getData().tree,f=u.getNodeByDataIndex(l);f.isExpand=!f.isExpand})}),Vf(n,di,Pn)}var pO=yt(Pn,HY);function HY(n){n.eachSeriesByType(Pn,function(e){var r=e.getData(),s=r.tree;s.eachNode(function(l){var u=l.getModel(),f=u.getModel("itemStyle").getItemStyle(),c=r.ensureUniqueItemVisual(l.dataIndex,"style");V(c,f)})})}function qD(n){n.registerChartView(uO),n.registerSeriesModel(iO),n.registerLayout(KD),n.registerVisual(pO),cO(n)}var vO=["treemapZoomToNode","treemapRender","treemapMove"];function hO(n){for(var e=0;e<vO.length;e++)n.registerAction({type:vO[e],update:"updateView"},mt);n.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,s){s.eachComponent({mainType:"series",subType:"treemap",query:r},l);function l(u,f){var c=["treemapZoomToNode","treemapRootToNode"],p=Lo(r,c,u);if(p){var v=u.getViewRoot();if(v)r.direction=Hf(v,p.node)?"rollUp":"drillDown";u.resetViewRoot(p.node)}}})}function nv(n){var e=n.getData(),r=e.tree,s={};r.eachNode(function(l){var u=l;while(u&&u.depth>1)u=u.parentNode;var f=_p(n.ecModel,u.name||u.dataIndex+"",s);l.setVisual("decal",f)})}var WY=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.preventUsingHoverLayer=!0,r}return e.prototype.getInitialData=function(r,s){var l={name:r.name,children:r.data};dO(l);var u=r.levels||[],f=this.designatedVisualItemStyle={},c=new Je({itemStyle:f},this,s);u=r.levels=YY(u,s);var p=W(u||[],function(d){return new Je(d,c,s)},this),v=Gf.createTree(l,this,h);function h(d){d.wrapMethod("getItemModel",function(m,g){var y=v.getNodeByDataIndex(g),x=y?p[y.depth]:null;return m.parentModel=x||c,m})}return v.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(r,s,l){var u=this.getData(),f=this.getRawValue(r),c=u.getName(r);return Wt("nameValue",{name:c,value:f})},e.prototype.getDataParams=function(r){var s=n.prototype.getDataParams.apply(this,arguments),l=this.getData().tree.getNodeByDataIndex(r);return s.treeAncestors=Ps(l,this),s.treePathInfo=s.treeAncestors,s},e.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,r)},e.prototype.mapIdToIndex=function(r){var s=this._idIndexMap;if(!s)s=this._idIndexMap=re(),this._idIndexMapCount=0;var l=s.get(r);if(l==null)s.set(r,l=this._idIndexMapCount++);return l},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var s=this.getRawData().tree.root;if(!r||r!==s&&!s.contains(r))this._viewRoot=s},e.prototype.enableAriaDecal=function(){nv(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:X.size.l,top:X.size.xxxl,right:X.size.l,bottom:X.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:0.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:0.1024,scaleLimit:{max:5,min:0.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:X.size.m,emptyItemWidth:25,itemStyle:{color:X.color.backgroundShade,textStyle:{color:X.color.secondary}},emphasis:{itemStyle:{color:X.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:X.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:X.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(et);function dO(n){var e=0;I(n.children,function(s){dO(s);var l=s.value;U(l)&&(l=l[0]),e+=l});var r=n.value;if(U(r))r=r[0];if(r==null||isNaN(r))r=e;if(r<0)r=0;U(n.value)?n.value[0]=r:n.value=r}function YY(n,e){var r=nt(e.get("color")),s=nt(e.get(["aria","decal","decals"]));if(!r)return;n=n||[];var l,u;I(n,function(c){var p=new Je(c),v=p.get("color"),h=p.get("decal");if(p.get(["itemStyle","color"])||v&&v!=="none")l=!0;if(p.get(["itemStyle","decal"])||h&&h!=="none")u=!0});var f=n[0]||(n[0]={});if(!l)f.color=r.slice();if(!u&&s)f.decal=s.slice();return n}var mO=WY;var XY=8,gO=8,jD=5,ZY=function(){function n(e){this.group=new ve,e.add(this.group)}return n.prototype.render=function(e,r,s,l){var u=e.getModel("breadcrumb"),f=this.group;if(f.removeAll(),!u.get("show")||!s)return;var c=u.getModel("itemStyle"),p=u.getModel("emphasis"),v=c.getModel("textStyle"),h=p.getModel(["itemStyle","textStyle"]),d=Tt(e,r).refContainer,m={left:u.get("left"),right:u.get("right"),top:u.get("top"),bottom:u.get("bottom")},g={emptyItemWidth:u.get("emptyItemWidth"),totalWidth:0,renderList:[]},y=ht(m,d);this._prepare(s,g,v),this._renderContent(e,g,y,c,p,v,h,l),nm(f,m,d)},n.prototype._prepare=function(e,r,s){for(var l=e;l;l=l.parentNode){var u=tr(l.getModel().get("name"),""),f=s.getTextRect(u),c=Math.max(f.width+XY*2,r.emptyItemWidth);r.totalWidth+=c+gO,r.renderList.push({node:l,text:u,width:c})}},n.prototype._renderContent=function(e,r,s,l,u,f,c,p){var v=0,h=r.emptyItemWidth,d=e.get(["breadcrumb","height"]),{totalWidth:m,renderList:g}=r,y=u.getModel("itemStyle").getItemStyle();for(var x=g.length-1;x>=0;x--){var S=g[x],{node:D,width:b,text:C}=S;if(m>s.width)m-=b-h,b=h,C=null;var A=new rr({shape:{points:KY(v,0,b,d,x===g.length-1,x===0)},style:pe(l.getItemStyle(),{lineJoin:"bevel"}),textContent:new Ve({style:ut(f,{text:C})}),textConfig:{position:"inside"},z2:Cl*1e4,onclick:Ae(p,D)});A.disableLabelAnimation=!0,A.getTextContent().ensureState("emphasis").style=ut(c,{text:C}),A.ensureState("emphasis").style=y,it(A,u.get("focus"),u.get("blurScope"),u.get("disabled")),this.group.add(A),qY(A,e,D),v+=b+gO}},n.prototype.remove=function(){this.group.removeAll()},n}();function KY(n,e,r,s,l,u){var f=[[l?n:n-jD,e],[n+r,e],[n+r,e+s],[l?n:n-jD,e+s]];return!u&&f.splice(2,0,[n+r+jD,e+s/2]),!l&&f.push([n,e+s/2]),f}function qY(n,e,r){ye(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&Ps(r,e)}}var yO=ZY;var jY=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,r,s,l,u){if(this._elExistsMap[e.id])return!1;return this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:r,duration:s,delay:l,easing:u}),!0},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){var e=this,r=this._storage.length,s=function(){if(r--,r<=0)e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback()};for(var l=0,u=this._storage.length;l<u;l++){var f=this._storage[l];f.el.animateTo(f.target,{duration:f.duration,delay:f.delay,easing:f.easing,setToFinal:!0,done:s,aborted:s})}return this},n}();function xO(){return new jY}var{max:ov,min:$g}=Math,$D=I,SO=["itemStyle","borderWidth"],QY=["itemStyle","gapWidth"],JY=["upperLabel","show"],e9=["upperLabel","height"],DO={seriesType:"treemap",reset:function(n,e,r,s){var l=n.option,u=Tt(n,r).refContainer,f=ht(n.getBoxLayoutParams(),u),c=s&&s.type,p=["treemapZoomToNode","treemapRootToNode"],v=Lo(s,p,n),h=c==="treemapRender"||c==="treemapMove"?s.rootRect:null,d=n.getViewRoot(),m=YD(d);if(c!=="treemapMove"){var g=!1,y=c==="treemapZoomToNode"?(g=!0,o9(n,v,d,f)):h?(g=!0,V({},h)):V({},f);if(g){var x=QD(f,y);x=JD(x,n),y.width=f.width*x,y.height=f.height*x}var S=l.sort;if(S&&S!=="asc"&&S!=="desc")S="desc";var D={squareRatio:l.squareRatio,sort:S,leafDepth:l.leafDepth};d.hostTree.clearLayouts();var b={x:0,y:0,width:y.width,height:y.height,area:y.width*y.height};d.setLayout(b),bO(d,D,!1,0),b=d.getLayout(),$D(m,function(A,T){var E=(m[T+1]||d).getValue();A.setLayout(V({dataExtent:[E,E],borderWidth:0,upperHeight:0},b))})}var C=n.getData().tree.root;C.setLayout(s9(f,h,v),!0),n.setLayoutInfo(f),CO(C,new De(-f.x,-f.y,r.getWidth(),r.getHeight()),m,d,0)}};function bO(n,e,r,s){var l,u;if(n.isRemoved())return;var f=n.getLayout();l=f.width,u=f.height;var c=n.getModel(),p=c.get(SO),v=c.get(QY)/2,h=AO(c),d=Math.max(p,h),m=p-v,g=d-v;n.setLayout({borderWidth:p,upperHeight:d,upperLabelHeight:h},!0),l=ov(l-2*m,0),u=ov(u-m-g,0);var y=l*u,x=t9(n,c,y,e,r,s);if(!x.length)return;var S={x:m,y:g,width:l,height:u},D=$g(l,u),b=1/0,C=[];C.area=0;for(var A=0,T=x.length;A<T;){var E=x[A];C.push(E),C.area+=E.getLayout().area;var w=n9(C,D,e.squareRatio);if(w<=b)A++,b=w;else C.area-=C.pop().getLayout().area,_O(C,D,S,v,!1),D=$g(S.width,S.height),C.length=C.area=0,b=1/0}if(C.length)_O(C,D,S,v,!0);if(!r){var L=c.get("childrenVisibleMin");if(L!=null&&y<L)r=!0}for(var A=0,T=x.length;A<T;A++)bO(x[A],e,r,s+1)}function t9(n,e,r,s,l,u){var f=n.children||[],c=s.sort;c!=="asc"&&c!=="desc"&&(c=null);var p=s.leafDepth!=null&&s.leafDepth<=u;if(l&&!p)return n.viewChildren=[];f=Ke(f,function(g){return!g.isRemoved()}),i9(f,c);var v=a9(e,f,c);if(v.sum===0)return n.viewChildren=[];if(v.sum=r9(e,r,v.sum,c,f),v.sum===0)return n.viewChildren=[];for(var h=0,d=f.length;h<d;h++){var m=f[h].getValue()/v.sum*r;f[h].setLayout({area:m})}if(p)f.length&&n.setLayout({isLeafRoot:!0},!0),f.length=0;return n.viewChildren=f,n.setLayout({dataExtent:v.dataExtent},!0),f}function r9(n,e,r,s,l){if(!s)return r;var u=n.get("visibleMin"),f=l.length,c=f;for(var p=f-1;p>=0;p--){var v=l[s==="asc"?f-p-1:p].getValue();if(v/r*e<u)c=p,r-=v}return s==="asc"?l.splice(0,f-c):l.splice(c,f-c),r}function i9(n,e){if(e)n.sort(function(r,s){var l=e==="asc"?r.getValue()-s.getValue():s.getValue()-r.getValue();return l===0?e==="asc"?r.dataIndex-s.dataIndex:s.dataIndex-r.dataIndex:l});return n}function a9(n,e,r){var s=0;for(var l=0,u=e.length;l<u;l++)s+=e[l].getValue();var f=n.get("visualDimension"),c;if(!e||!e.length)c=[NaN,NaN];else if(f==="value"&&r)c=[e[e.length-1].getValue(),e[0].getValue()],r==="asc"&&c.reverse();else c=Dr(),$D(e,function(p){var v=p.getValue(f);v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v)});return{sum:s,dataExtent:c}}function n9(n,e,r){var s=0,l=1/0;for(var u=0,f=void 0,c=n.length;u<c;u++)if(f=n[u].getLayout().area,f)f<l&&(l=f),f>s&&(s=f);var p=n.area*n.area,v=e*e*r;return p?ov(v*s/p,p/(v*l)):1/0}function _O(n,e,r,s,l){var u=e===r.width?0:1,f=1-u,c=["x","y"],p=["width","height"],v=r[c[u]],h=e?n.area/e:0;if(l||h>r[p[f]])h=r[p[f]];for(var d=0,m=n.length;d<m;d++){var g=n[d],y={},x=h?g.getLayout().area/h:0,S=y[p[f]]=ov(h-2*s,0),D=r[c[u]]+r[p[u]]-v,b=d===m-1||D<x?D:x,C=y[p[u]]=ov(b-2*s,0);y[c[f]]=r[c[f]]+$g(s,S/2),y[c[u]]=v+$g(s,C/2),v+=b,g.setLayout(y,!0)}r[c[f]]+=h,r[p[f]]-=h}function o9(n,e,r,s){var l=(e||{}).node,{width:u,height:f}=s,c=V({},s);if(!l||l===r)return c;var p,v=u*f,h=v*n.option.zoomToNodeRatio;while(p=l.parentNode){var d=0,m=p.children;for(var g=0,y=m.length;g<y;g++)d+=m[g].getValue();var x=l.getValue();if(x===0)return c;h*=d/x;var S=p.getModel(),D=S.get(SO),b=Math.max(D,AO(S));h+=4*D*D+(3*D+b)*Math.pow(h,0.5),h>Uu&&(h=Uu),l=p}h<v&&(h=v);var C=Math.pow(h/v,0.5);return{width:u*C,height:f*C}}function s9(n,e,r){if(e)return{x:e.x,y:e.y};var s={x:0,y:0};if(!r)return s;var l=r.node,u=l.getLayout();if(!u)return s;var f=[u.width/2,u.height/2],c=l;while(c){var p=c.getLayout();f[0]+=p.x,f[1]+=p.y,c=c.parentNode}return{x:n.width/2-f[0],y:n.height/2-f[1]}}function CO(n,e,r,s,l){var u=n.getLayout(),f=r[l],c=f&&f===n;if(f&&!c||l===r.length&&n!==s)return;n.setLayout({isInView:!0,invisible:!c&&!e.intersect(u),isAboveViewRoot:c},!0);var p=new De(e.x-u.x,e.y-u.y,e.width,e.height);$D(n.viewChildren||[],function(v){CO(v,p,r,s,l+1)})}function AO(n){return n.get(JY)?n.get(e9):0}function QD(n,e){return e.width/n.width||e.height/n.height||1}function JD(n,e){return Yg(n,e.get("scaleLimit",!0))}var e1=ve,TO=Ee,EO=3,wO="label",IO="upperLabel",l9=Cl*10,u9=Cl*2,f9=Cl*3,nu=li([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),MO=function(n){var e=nu(n);return e.stroke=e.fill=e.lineWidth=null,e},Qg=he(),c9=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r._state="ready",r._storage=sv(),r}return e.prototype.render=function(r,s,l,u){var f=s.findComponents({mainType:"series",subType:"treemap",query:u});if(be(f,r)<0)return;this.seriesModel=r,this.api=l,this.ecModel=s;var c=["treemapZoomToNode","treemapRootToNode"],p=Lo(u,c,r),v=u&&u.type,h=r.layoutInfo,d=!this._oldTree,m=this._storage,g=v==="treemapRootToNode"&&p&&m?{rootNodeGroup:m.nodeGroup[p.node.getRawIndex()],direction:u.direction}:null,y=this._giveContainerGroup(h),x=r.get("animation"),S=this._doRender(y,r,g);x&&!d&&(!v||v==="treemapZoomToNode"||v==="treemapRootToNode")?this._doAnimation(y,S,r,g):S.renderFinally(),this._resetController(l),this._renderBreadcrumb(r,l,p)},e.prototype._giveContainerGroup=function(r){var s=this._containerGroup;if(!s)s=this._containerGroup=new e1,this._initEvents(s),this.group.add(s);return s.x=r.x,s.y=r.y,s},e.prototype._doRender=function(r,s,l){var u=s.getData().tree,f=this._oldTree,c=sv(),p=sv(),v=this._storage,h=[];function d(S,D,b,C){return p9(s,p,v,l,c,h,S,D,b,C)}g(u.root?[u.root]:[],f&&f.root?[f.root]:[],r,u===f||!f,0);var m=y(v);return this._oldTree=u,this._storage=p,{lastsForAnimation:c,willDeleteEls:m,renderFinally:x};function g(S,D,b,C,A){if(C)D=S,I(S,function(w,L){!w.isRemoved()&&E(L,L)});else new Fi(D,S,T,T).add(E).update(E).remove(Ae(E,null)).execute();function T(w){return w.getId()}function E(w,L){var M=w!=null?S[w]:null,P=L!=null?D[L]:null,R=d(M,P,b,A);R&&g(M&&M.viewChildren||[],P&&P.viewChildren||[],R,C,A+1)}}function y(S){var D=sv();return S&&I(S,function(b,C){var A=D[C];I(b,function(T){T&&(A.push(T),Qg(T).willDelete=!0)})}),D}function x(){I(m,function(S){I(S,function(D){D.parent&&D.parent.remove(D)})}),I(h,function(S){S.invisible=!0,S.dirty()})}},e.prototype._doAnimation=function(r,s,l,u){var f=l.get("animationDurationUpdate"),c=l.get("animationEasing"),p=(ie(f)?0:f)||0,v=(ie(c)?null:c)||"cubicOut",h=xO();I(s.willDeleteEls,function(d,m){I(d,function(g,y){if(g.invisible)return;var x=g.parent,S,D=Qg(x);if(u&&u.direction==="drillDown")S=x===u.rootNodeGroup?{shape:{x:0,y:0,width:D.nodeWidth,height:D.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var b=0,C=0;if(!D.willDelete)b=D.nodeWidth/2,C=D.nodeHeight/2;S=m==="nodeGroup"?{x:b,y:C,style:{opacity:0}}:{shape:{x:b,y:C,width:0,height:0},style:{opacity:0}}}S&&h.add(g,S,p,0,v)})}),I(this._storage,function(d,m){I(d,function(g,y){var x=s.lastsForAnimation[m][y],S={};if(!x)return;if(g instanceof ve){if(x.oldX!=null)S.x=g.x,S.y=g.y,g.x=x.oldX,g.y=x.oldY}else{if(x.oldShape)S.shape=V({},g.shape),g.setShape(x.oldShape);if(x.fadein)g.setStyle("opacity",0),S.style={opacity:1};else if(g.style.opacity!==1)S.style={opacity:1}}h.add(g,S,p,0,v)})},this),this._state="animating",h.finished(se(function(){this._state="ready",s.renderFinally()},this)).start()},e.prototype._resetController=function(r){var s=this,l=this.seriesModel,u=this._controller;if(!u)u=this._controller=new Ln(r.getZr()),u.on("pan",se(this._onPan,this)),u.on("zoom",se(this._onZoom,this));u.enable(l.get("roam"),{api:r,zInfo:{component:l},triggerInfo:{roamTrigger:l.get("roamTrigger"),isInSelf:function(f,c,p){var v=s._containerGroup;return v?v.getBoundingRect().contain(c-v.x,p-v.y):!1}}})},e.prototype._clearController=function(){var r=this._controller;if(r)r.dispose(),r=null},e.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>EO||Math.abs(r.dy)>EO)){var s=this.seriesModel.getData().tree.root;if(!s)return;var l=s.getLayout();if(!l)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x+r.dx,y:l.y+r.dy,width:l.width,height:l.height}})}},e.prototype._onZoom=function(r){var{originX:s,originY:l,scale:u}=r,f=this.seriesModel;if(this._state!=="animating"){var c=f.getData().tree.root;if(!c)return;var p=c.getLayout();if(!p)return;var v=new De(p.x,p.y,p.width,p.height),h=f.layoutInfo,d=QD(h,p),m=d*u;m=JD(m,f);var g=m/d;s-=h.x,l-=h.y;var y=Ct();Zi(y,y,[-s,-l]),qv(y,y,[g,g]),Zi(y,y,[s,l]),v.applyTransform(y),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:v.x,y:v.y,width:v.width,height:v.height}})}},e.prototype._initEvents=function(r){var s=this;r.on("click",function(l){if(s._state!=="ready")return;var u=s.seriesModel.get("nodeClick",!0);if(!u)return;var f=s.findTarget(l.offsetX,l.offsetY);if(!f)return;var c=f.node;if(c.getLayout().isLeafRoot)s._rootToNode(f);else if(u==="zoomToNode")s._zoomToNode(f);else if(u==="link"){var p=c.hostTree.data.getItemModel(c.dataIndex),v=p.get("link",!0),h=p.get("target",!0)||"blank";v&&Ul(v,h)}},this)},e.prototype._renderBreadcrumb=function(r,s,l){var u=this;if(!l){if(l=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(s.getWidth()/2,s.getHeight()/2),!l)l={node:r.getData().tree.root}}(this._breadcrumb||(this._breadcrumb=new yO(this.group))).render(r,s,l.node,function(f){if(u._state!=="animating")Hf(r.getViewRoot(),f)?u._rootToNode({node:f}):u._zoomToNode({node:f})})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=sv(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},e.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},e.prototype.findTarget=function(r,s){var l,u=this.seriesModel.getViewRoot();return u.eachNode({attr:"viewChildren",order:"preorder"},function(f){var c=this._storage.background[f.getRawIndex()];if(c){var p=c.transformCoordToLocal(r,s),v=c.shape;if(v.x<=p[0]&&p[0]<=v.x+v.width&&v.y<=p[1]&&p[1]<=v.y+v.height)l={node:f,offsetX:p[0],offsetY:p[1]};else return!1}},this),l},e.type="treemap",e}(qe);function sv(){return{nodeGroup:[],background:[],content:[]}}function p9(n,e,r,s,l,u,f,c,p,v){if(!f)return;var h=f.getLayout(),d=n.getData(),m=f.getModel();if(d.setItemGraphicEl(f.dataIndex,null),!h||!h.isInView)return;var{width:g,height:y,borderWidth:x,invisible:S}=h,D=f.getRawIndex(),b=c&&c.getRawIndex(),C=f.viewChildren,A=h.upperHeight,T=C&&C.length,E=m.getModel("itemStyle"),w=m.getModel(["emphasis","itemStyle"]),L=m.getModel(["blur","itemStyle"]),M=m.getModel(["select","itemStyle"]),P=E.get("borderRadius")||0,R=de("nodeGroup",e1);if(!R)return;if(p.add(R),R.x=h.x||0,R.y=h.y||0,R.markRedraw(),Qg(R).nodeWidth=g,Qg(R).nodeHeight=y,h.isAboveViewRoot)return R;var N=de("background",TO,v,u9);N&&Q(R,N,T&&h.upperLabelHeight);var O=m.getModel("emphasis"),B=O.get("focus"),F=O.get("blurScope"),z=O.get("disabled"),H=B==="ancestor"?f.getAncestorsIndices():B==="descendant"?f.getDescendantIndices():B;if(T){if(ns(R))io(R,!1);if(N)io(N,!z),d.setItemGraphicEl(f.dataIndex,N),Jh(N,H,F)}else{var G=de("content",TO,v,f9);if(G&&q(R,G),N.disableMorphing=!0,N&&ns(N))io(N,!1);io(R,!z),d.setItemGraphicEl(f.dataIndex,R);var Z=m.getShallow("cursor");Z&&G.attr("cursor",Z),Jh(R,H,F)}return R;function Q(ke,me,Ge){var ge=ye(me);if(ge.dataIndex=f.dataIndex,ge.seriesIndex=n.seriesIndex,me.setShape({x:0,y:0,width:g,height:y,r:P}),S)ae(me);else{me.invisible=!1;var Ie=f.getVisual("style"),He=Ie.stroke,ot=MO(E);ot.fill=He;var je=nu(w);je.fill=w.get("borderColor");var ct=nu(L);ct.fill=L.get("borderColor");var Ot=nu(M);if(Ot.fill=M.get("borderColor"),Ge){var $t=g-2*x;ce(me,He,Ie.opacity,{x,y:0,width:$t,height:A})}else me.removeTextContent();me.setStyle(ot),me.ensureState("emphasis").style=je,me.ensureState("blur").style=ct,me.ensureState("select").style=Ot,Zu(me)}ke.add(me)}function q(ke,me){var Ge=ye(me);Ge.dataIndex=f.dataIndex,Ge.seriesIndex=n.seriesIndex;var ge=Math.max(g-2*x,0),Ie=Math.max(y-2*x,0);if(me.culling=!0,me.setShape({x,y:x,width:ge,height:Ie,r:P}),S)ae(me);else{me.invisible=!1;var He=f.getVisual("style"),ot=He.fill,je=MO(E);je.fill=ot,je.decal=He.decal;var ct=nu(w),Ot=nu(L),$t=nu(M);ce(me,ot,He.opacity,null),me.setStyle(je),me.ensureState("emphasis").style=ct,me.ensureState("blur").style=Ot,me.ensureState("select").style=$t,Zu(me)}ke.add(me)}function ae(ke){!ke.invisible&&u.push(ke)}function ce(ke,me,Ge,ge){var Ie=m.getModel(ge?IO:wO),He=tr(m.get("name"),null),ot=Ie.getShallow("show");Mt(ke,St(m,ge?IO:wO),{defaultText:ot?He:null,inheritColor:me,defaultOpacity:Ge,labelFetcher:n,labelDataIndex:f.dataIndex});var je=ke.getTextContent();if(!je)return;var ct=je.style,Ot=Bo(ct.padding||0);if(ge)ke.setTextConfig({layoutRect:ge}),je.disableLabelLayout=!0;je.beforeUpdate=function(){var Nt=Math.max((ge?ge.width:ke.shape.width)-Ot[1]-Ot[3],0),kt=Math.max((ge?ge.height:ke.shape.height)-Ot[0]-Ot[2],0);if(ct.width!==Nt||ct.height!==kt)je.setStyle({width:Nt,height:kt})},ct.truncateMinChar=2,ct.lineOverflow="truncate",ne(ct,ge,h);var $t=je.getState("emphasis");ne($t?$t.style:null,ge,h)}function ne(ke,me,Ge){var ge=ke?ke.text:null;if(!me&&Ge.isLeafRoot&&ge!=null){var Ie=n.get("drillDownIcon",!0);ke.text=Ie?Ie+" "+ge:ge}}function de(ke,me,Ge,ge){var Ie=b!=null&&r[ke][b],He=l[ke];if(Ie)r[ke][b]=null,ze(He,Ie);else if(!S){if(Ie=new me,Ie instanceof pi)Ie.z2=v9(Ge,ge);dt(He,Ie)}return e[ke][D]=Ie}function ze(ke,me){var Ge=ke[D]={};if(me instanceof e1)Ge.oldX=me.x,Ge.oldY=me.y;else Ge.oldShape=V({},me.shape)}function dt(ke,me){var Ge=ke[D]={},ge=f.parentNode,Ie=me instanceof ve;if(ge&&(!s||s.direction==="drillDown")){var He=0,ot=0,je=l.background[ge.getRawIndex()];if(!s&&je&&je.oldShape)He=je.oldShape.width,ot=je.oldShape.height;if(Ie)Ge.oldX=0,Ge.oldY=ot;else Ge.oldShape={x:He,y:ot,width:0,height:0}}Ge.fadein=!Ie}}function v9(n,e){return n*l9+e}var LO=c9;var fv=I,h9=ue,ty=-1,a1=function(){function n(e){var{mappingMethod:r,type:s}=e,l=this.option=le(e);this.type=s,this.mappingMethod=r,this._normalizeData=g9[r];var u=n.visualHandlers[s];if(this.applyVisual=u.applyVisual,this.getColorMapper=u.getColorMapper,this._normalizedToVisual=u._normalizedToVisual[r],r==="piecewise")t1(l),d9(l);else if(r==="category")l.categories?m9(l):t1(l,!0);else We(r!=="linear"||l.dataExtent),t1(l)}return n.prototype.mapValueToVisual=function(e){var r=this._normalizeData(e);return this._normalizedToVisual(r,e)},n.prototype.getNormalizer=function(){return se(this._normalizeData,this)},n.listVisualTypes=function(){return Me(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,r,s){if(ue(e))I(e,r,s);else r.call(s,e)},n.mapVisual=function(e,r,s){var l,u=U(e)?[]:ue(e)?{}:(l=!0,null);return n.eachVisual(e,function(f,c){var p=r.call(s,f,c);l?u=p:u[c]=p}),u},n.retrieveVisuals=function(e){var r={},s;return e&&fv(n.visualHandlers,function(l,u){if(e.hasOwnProperty(u))r[u]=e[u],s=!0}),s?r:null},n.prepareVisualTypes=function(e){if(U(e))e=e.slice();else if(h9(e)){var r=[];fv(e,function(s,l){r.push(l)}),e=r}else return[];return e.sort(function(s,l){return l==="color"&&s!=="color"&&s.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,r){return r==="color"?!!(e&&e.indexOf(r)===0):e===r},n.findPieceIndex=function(e,r,s){var l,u=1/0;for(var f=0,c=r.length;f<c;f++){var p=r[f].value;if(p!=null){if(p===e||K(p)&&p===e+"")return f;s&&m(p,f)}}for(var f=0,c=r.length;f<c;f++){var v=r[f],{interval:h,close:d}=v;if(h){if(h[0]===-1/0){if(ey(d[1],e,h[1]))return f}else if(h[1]===1/0){if(ey(d[0],h[0],e))return f}else if(ey(d[0],h[0],e)&&ey(d[1],e,h[1]))return f;s&&m(h[0],f),s&&m(h[1],f)}}if(s)return e===1/0?r.length-1:e===-1/0?0:l;function m(g,y){var x=Math.abs(g-e);if(x<u)u=x,l=y}},n.visualHandlers={color:{applyVisual:lv("color"),getColorMapper:function(){var e=this.option;return se(e.mappingMethod==="category"?function(r,s){return!s&&(r=this._normalizeData(r)),uv.call(this,r)}:function(r,s,l){var u=!!l;return!s&&(r=this._normalizeData(r)),l=ph(r,e.parsedVisual,l),u?l:ea(l,"rgba")},this)},_normalizedToVisual:{linear:function(e){return ea(ph(e,this.option.parsedVisual),"rgba")},category:uv,piecewise:function(e,r){var s=i1.call(this,r);if(s==null)s=ea(ph(e,this.option.parsedVisual),"rgba");return s},fixed:ou}},colorHue:Jg(function(e,r){return Ji(e,r)}),colorSaturation:Jg(function(e,r){return Ji(e,null,r)}),colorLightness:Jg(function(e,r){return Ji(e,null,null,r)}),colorAlpha:Jg(function(e,r){return fl(e,r)}),decal:{applyVisual:lv("decal"),_normalizedToVisual:{linear:null,category:uv,piecewise:null,fixed:null}},opacity:{applyVisual:lv("opacity"),_normalizedToVisual:r1([0,1])},liftZ:{applyVisual:lv("liftZ"),_normalizedToVisual:{linear:ou,category:ou,piecewise:ou,fixed:ou}},symbol:{applyVisual:function(e,r,s){var l=this.mapValueToVisual(e);s("symbol",l)},_normalizedToVisual:{linear:PO,category:uv,piecewise:function(e,r){var s=i1.call(this,r);if(s==null)s=PO.call(this,e);return s},fixed:ou}},symbolSize:{applyVisual:lv("symbolSize"),_normalizedToVisual:r1([0,1])}},n}();function d9(n){var e=n.pieceList;n.hasSpecialVisual=!1,I(e,function(r,s){if(r.originIndex=s,r.visual!=null)n.hasSpecialVisual=!0})}function m9(n){var e=n.categories,r=n.categoryMap={},s=n.visual;if(fv(e,function(f,c){r[f]=c}),!U(s)){var l=[];if(ue(s))fv(s,function(f,c){var p=r[c];l[p!=null?p:ty]=f});else l[ty]=s;s=RO(n,l)}for(var u=e.length-1;u>=0;u--)if(s[u]==null)delete r[e[u]],e.pop()}function t1(n,e){var r=n.visual,s=[];if(ue(r))fv(r,function(u){s.push(u)});else if(r!=null)s.push(r);var l={color:1,symbol:1};if(!e&&s.length===1&&!l.hasOwnProperty(n.type))s[1]=s[0];RO(n,s)}function Jg(n){return{applyVisual:function(e,r,s){var l=this.mapValueToVisual(e);s("color",n(r("color"),l))},_normalizedToVisual:r1([0,1])}}function PO(n){var e=this.option.visual;return e[Math.round(Ze(n,[0,1],[0,e.length-1],!0))]||{}}function lv(n){return function(e,r,s){s(n,this.mapValueToVisual(e))}}function uv(n){var e=this.option.visual;return e[this.option.loop&&n!==ty?n%e.length:n]}function ou(){return this.option.visual[0]}function r1(n){return{linear:function(e){return Ze(e,n,this.option.visual,!0)},category:uv,piecewise:function(e,r){var s=i1.call(this,r);if(s==null)s=Ze(e,n,this.option.visual,!0);return s},fixed:ou}}function i1(n){var e=this.option,r=e.pieceList;if(e.hasSpecialVisual){var s=a1.findPieceIndex(n,r),l=r[s];if(l&&l.visual)return l.visual[this.type]}}function RO(n,e){if(n.visual=e,n.type==="color")n.parsedVisual=W(e,function(r){var s=Ar(r);return s||[0,0,0,1]});return e}var g9={linear:function(n){return Ze(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,r=a1.findPieceIndex(n,e,!0);if(r!=null)return Ze(r,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e==null?ty:e},fixed:mt};function ey(n,e,r){return n?e<=r:e<r}var qt=a1;var y9="itemStyle",NO=he(),kO={seriesType:"treemap",reset:function(n){var e=n.getData().tree,r=e.root;if(r.isRemoved())return;BO(r,{},n.getViewRoot().getAncestors(),n)}};function BO(n,e,r,s){var l=n.getModel(),u=n.getLayout(),f=n.hostTree.data;if(!u||u.invisible||!u.isInView)return;var c=l.getModel(y9),p=x9(c,e,s),v=f.ensureUniqueItemVisual(n.dataIndex,"style"),h=c.get("borderColor"),d=c.get("borderColorSaturation"),m;if(d!=null)m=OO(p),h=_9(d,m);v.stroke=h;var g=n.viewChildren;if(!g||!g.length)m=OO(p),v.fill=m;else{var y=S9(n,l,u,c,p,g);I(g,function(x,S){if(x.depth>=r.length||x===r[x.depth]){var D=D9(l,p,x,S,y,s);BO(x,D,r,s)}})}}function x9(n,e,r){var s=V({},e),l=r.designatedVisualItemStyle;return I(["color","colorAlpha","colorSaturation"],function(u){l[u]=e[u];var f=n.get(u);l[u]=null,f!=null&&(s[u]=f)}),s}function OO(n){var e=n1(n,"color");if(e){var r=n1(n,"colorAlpha"),s=n1(n,"colorSaturation");if(s)e=Ji(e,null,null,s);if(r)e=fl(e,r);return e}}function _9(n,e){return e!=null?Ji(e,null,null,n):null}function n1(n,e){var r=n[e];if(r!=null&&r!=="none")return r}function S9(n,e,r,s,l,u){if(!u||!u.length)return;var f=o1(e,"color")||l.color!=null&&l.color!=="none"&&(o1(e,"colorAlpha")||o1(e,"colorSaturation"));if(!f)return;var c=e.get("visualMin"),p=e.get("visualMax"),v=r.dataExtent.slice();c!=null&&c<v[0]&&(v[0]=c),p!=null&&p>v[1]&&(v[1]=p);var h=e.get("colorMappingBy"),d={type:f.name,dataExtent:v,visual:f.range};if(d.type==="color"&&(h==="index"||h==="id"))d.mappingMethod="category",d.loop=!0;else d.mappingMethod="linear";var m=new qt(d);return NO(m).drColorMappingBy=h,m}function o1(n,e){var r=n.get(e);return U(r)&&r.length?{name:e,range:r}:null}function D9(n,e,r,s,l,u){var f=V({},e);if(l){var c=l.type,p=c==="color"&&NO(l).drColorMappingBy,v=p==="index"?s:p==="id"?u.mapIdToIndex(r.getId()):r.getValue(n.get("visualDimension"));f[c]=l.mapValueToVisual(v)}return f}function s1(n){n.registerSeriesModel(mO),n.registerChartView(LO),n.registerVisual(kO),n.registerLayout(DO),hO(n)}function Yf(n){return"_EC_"+n}var b9=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,r){e=e==null?""+r:""+e;var s=this._nodesMap;if(s[Yf(e)])return;var l=new su(e,r);return l.hostGraph=this,this.nodes.push(l),s[Yf(e)]=l,l},n.prototype.getNodeByIndex=function(e){var r=this.data.getRawIndex(e);return this.nodes[r]},n.prototype.getNodeById=function(e){return this._nodesMap[Yf(e)]},n.prototype.addEdge=function(e,r,s){var l=this._nodesMap,u=this._edgesMap;if(Te(e))e=this.nodes[e];if(Te(r))r=this.nodes[r];if(!(e instanceof su))e=l[Yf(e)];if(!(r instanceof su))r=l[Yf(r)];if(!e||!r)return;var f=e.id+"-"+r.id,c=new FO(e,r,s);if(c.hostGraph=this,this._directed)e.outEdges.push(c),r.inEdges.push(c);if(e.edges.push(c),e!==r)r.edges.push(c);return this.edges.push(c),u[f]=c,c},n.prototype.getEdgeByIndex=function(e){var r=this.edgeData.getRawIndex(e);return this.edges[r]},n.prototype.getEdge=function(e,r){if(e instanceof su)e=e.id;if(r instanceof su)r=r.id;var s=this._edgesMap;if(this._directed)return s[e+"-"+r];else return s[e+"-"+r]||s[r+"-"+e]},n.prototype.eachNode=function(e,r){var s=this.nodes,l=s.length;for(var u=0;u<l;u++)if(s[u].dataIndex>=0)e.call(r,s[u],u)},n.prototype.eachEdge=function(e,r){var s=this.edges,l=s.length;for(var u=0;u<l;u++)if(s[u].dataIndex>=0&&s[u].node1.dataIndex>=0&&s[u].node2.dataIndex>=0)e.call(r,s[u],u)},n.prototype.breadthFirstTraverse=function(e,r,s,l){if(!(r instanceof su))r=this._nodesMap[Yf(r)];if(!r)return;var u=s==="out"?"outEdges":s==="in"?"inEdges":"edges";for(var f=0;f<this.nodes.length;f++)this.nodes[f].__visited=!1;if(e.call(l,r,null))return;var c=[r];while(c.length){var p=c.shift(),v=p[u];for(var f=0;f<v.length;f++){var h=v[f],d=h.node1===p?h.node2:h.node1;if(!d.__visited){if(e.call(l,d,p))return;c.push(d),d.__visited=!0}}}},n.prototype.update=function(){var e=this.data,r=this.edgeData,s=this.nodes,l=this.edges;for(var u=0,f=s.length;u<f;u++)s[u].dataIndex=-1;for(var u=0,f=e.count();u<f;u++)s[e.getRawIndex(u)].dataIndex=u;r.filterSelf(function(c){var p=l[r.getRawIndex(c)];return p.node1.dataIndex>=0&&p.node2.dataIndex>=0});for(var u=0,f=l.length;u<f;u++)l[u].dataIndex=-1;for(var u=0,f=r.count();u<f;u++)l[r.getRawIndex(u)].dataIndex=u},n.prototype.clone=function(){var e=new n(this._directed),r=this.nodes,s=this.edges;for(var l=0;l<r.length;l++)e.addNode(r[l].id,r[l].dataIndex);for(var l=0;l<s.length;l++){var u=s[l];e.addEdge(u.node1.id,u.node2.id,u.dataIndex)}return e},n}(),su=function(){function n(e,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e==null?"":e,this.dataIndex=r==null?-1:r}return n.prototype.degree=function(){return this.edges.length},n.prototype.inDegree=function(){return this.inEdges.length},n.prototype.outDegree=function(){return this.outEdges.length},n.prototype.getModel=function(e){if(this.dataIndex<0)return;var r=this.hostGraph,s=r.data.getItemModel(this.dataIndex);return s.getModel(e)},n.prototype.getAdjacentDataIndices=function(){var e={edge:[],node:[]};for(var r=0;r<this.edges.length;r++){var s=this.edges[r];if(s.dataIndex<0)continue;e.edge.push(s.dataIndex),e.node.push(s.node1.dataIndex,s.node2.dataIndex)}return e},n.prototype.getTrajectoryDataIndices=function(){var e=re(),r=re();for(var s=0,l=this.edges.length;s<l;s++){var u=this.edges[s];if(u.dataIndex<0)continue;e.set(u.dataIndex,!0);var f=[u.node1],c=[u.node2],p=0;while(p<f.length){var v=f[p];p++,r.set(v.dataIndex,!0);var h=v.inEdges;for(var d=0,m=h.length,g=void 0,y=void 0;d<m;d++)if(g=h[d],y=g.dataIndex,y>=0&&!e.hasKey(y))e.set(y,!0),f.push(g.node1)}p=0;while(p<c.length){var x=c[p];p++,r.set(x.dataIndex,!0);var S=x.outEdges;for(var d=0,D=S.length,b=void 0,C=void 0;d<D;d++)if(b=S[d],C=b.dataIndex,C>=0&&!e.hasKey(C))e.set(C,!0),c.push(b.node2)}}return{edge:e.keys(),node:r.keys()}},n}(),FO=function(){function n(e,r,s){this.dataIndex=-1,this.node1=e,this.node2=r,this.dataIndex=s==null?-1:s}return n.prototype.getModel=function(e){if(this.dataIndex<0)return;var r=this.hostGraph,s=r.edgeData.getItemModel(this.dataIndex);return s.getModel(e)},n.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},n.prototype.getTrajectoryDataIndices=function(){var e=re(),r=re();e.set(this.dataIndex,!0);var s=[this.node1],l=[this.node2],u=0;while(u<s.length){var f=s[u];u++,r.set(f.dataIndex,!0);var c=f.inEdges;for(var p=0,v=c.length,h=void 0,d=void 0;p<v;p++)if(h=f.inEdges[p],d=h.dataIndex,d>=0&&!e.hasKey(d))e.set(d,!0),s.push(h.node1)}u=0;while(u<l.length){var m=l[u];u++,r.set(m.dataIndex,!0);var g=m.outEdges;for(var p=0,v=g.length,y=void 0,x=void 0;p<v;p++)if(y=m.outEdges[p],x=y.dataIndex,x>=0&&!e.hasKey(x))e.set(x,!0),l.push(y.node2)}return{edge:e.keys(),node:r.keys()}},n}();function zO(n,e){return{getValue:function(r){var s=this[n][e];return s.getStore().get(s.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,s){this.dataIndex>=0&&this[n][e].setItemVisual(this.dataIndex,r,s)},getVisual:function(r){return this[n][e].getItemVisual(this.dataIndex,r)},setLayout:function(r,s){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,r,s)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}xt(su,zO("hostGraph","data"));xt(FO,zO("hostGraph","edgeData"));var VO=b9;function cv(n,e,r,s,l){var u=new VO(s);for(var f=0;f<n.length;f++)u.addNode(Ut(n[f].id,n[f].name,f),f);var c=[],p=[],v=0;for(var f=0;f<e.length;f++){var h=e[f],{source:d,target:m}=h;if(u.addEdge(d,m,v))p.push(h),c.push(Ut(tr(h.id,null),d+" > "+m)),v++}var g=r.get("coordinateSystem"),y;if(g==="cartesian2d"||g==="polar"||g==="matrix")y=Vr(n,r);else{var x=co.get(g),S=x?x.dimensions||[]:[];if(be(S,"value")<0)S.concat(["value"]);var D=Ra(n,{coordDimensions:S,encodeDefine:r.getEncode()}).dimensions;y=new ir(D,r),y.initData(n)}var b=new ir(["value"],r);return b.initData(p,c),l&&l(y,b),jg({mainData:y,struct:u,structAttr:"graph",datas:{node:y,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),u.update(),u}var l1="-->",ry=function(n){return n.get("autoCurveness")||null},UO=function(n,e){var r=ry(n),s=20,l=[];if(Te(r))s=r;else if(U(r)){n.__curvenessList=r;return}if(e>s)s=e;var u=s%2?s+2:s+3;l=[];for(var f=0;f<u;f++)l.push((f%2?f+1:f)/10*(f%2?-1:1));n.__curvenessList=l},pv=function(n,e,r){var s=[n.id,n.dataIndex].join("."),l=[e.id,e.dataIndex].join(".");return[r.uid,s,l].join(l1)},GO=function(n){var e=n.split(l1);return[e[0],e[2],e[1]].join(l1)},C9=function(n,e){var r=pv(n.node1,n.node2,e);return e.__edgeMap[r]},A9=function(n,e){var r=u1(pv(n.node1,n.node2,e),e),s=u1(pv(n.node2,n.node1,e),e);return r+s},u1=function(n,e){var r=e.__edgeMap;return r[n]?r[n].length:0};function HO(n){if(!ry(n))return;n.__curvenessList=[],n.__edgeMap={},UO(n)}function WO(n,e,r,s){if(!ry(r))return;var l=pv(n,e,r),u=r.__edgeMap,f=u[GO(l)];if(u[l]&&!f)u[l].isForward=!0;else if(f&&u[l])f.isForward=!0,u[l].isForward=!1;u[l]=u[l]||[],u[l].push(s)}function Xf(n,e,r,s){var l=ry(e),u=U(l);if(!l)return null;var f=C9(n,e);if(!f)return null;var c=-1;for(var p=0;p<f.length;p++)if(f[p]===r){c=p;break}var v=A9(n,e);UO(e,v),n.lineStyle=n.lineStyle||{};var h=pv(n.node1,n.node2,e),d=e.__curvenessList,m=u?0:v%2?0:1;if(!f.isForward){var g=GO(h),y=u1(g,e),x=d[c+y+m];if(s)if(u)if(l&&l[0]===0)return(y+m)%2?x:-x;else return((y%2?0:1)+m)%2?x:-x;else return(y+m)%2?x:-x;else return d[c+y+m]}else return d[m+c]}var jt="graph",T9=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){n.prototype.init.apply(this,arguments);var s=this;function l(){return s._categoriesData}this.legendVisualProvider=new An(l,l),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},e.prototype.mergeOption=function(r){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(r){n.prototype.mergeDefaultAndTheme.apply(this,arguments),Ea(r,"edgeLabel",["show"])},e.prototype.getInitialData=function(r,s){var l=r.edges||r.links||[],u=r.data||r.nodes||[],f=this;if(u&&l){HO(this);var c=cv(u,l,this,!0,p);return I(c.edges,function(v){WO(v.node1,v.node2,this,v.dataIndex)},this),c.data}function p(v,h){v.wrapMethod("getItemModel",function(y){var x=f._categoriesModels,S=y.getShallow("category"),D=x[S];if(D)D.parentModel=y.parentModel,y.parentModel=D;return y});var d=Je.prototype.getModel;function m(y,x){var S=d.call(this,y,x);return S.resolveParentPath=g,S}h.wrapMethod("getItemModel",function(y){return y.resolveParentPath=g,y.getModel=m,y});function g(y){if(y&&(y[0]==="label"||y[1]==="label")){var x=y.slice();if(y[0]==="label")x[0]="edgeLabel";else if(y[1]==="label")x[1]="edgeLabel";return x}return y}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(r,s,l){if(l==="edge"){var u=this.getData(),f=this.getDataParams(r,l),c=u.graph.getEdgeByIndex(r),p=u.getName(c.node1.dataIndex),v=u.getName(c.node2.dataIndex),h=[];return p!=null&&h.push(p),v!=null&&h.push(v),Wt("nameValue",{name:h.join(" > "),value:f.value,noValue:f.value==null})}var d=vm({series:this,dataIndex:r,multipleSeries:s});return d},e.prototype._updateCategoriesData=function(){var r=W(this.option.categories||[],function(l){return l.value!=null?l:V({value:0},l)}),s=new ir(["value"],this);s.initData(r),this._categoriesData=s,this._categoriesModels=s.mapArray(function(l){return s.getItemModel(l)})},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.prototype.__ownRoamView=function(){var r=this.coordinateSystem;return Wg(r)&&r},e.type="series."+jt,e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:0.1,friction:0.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:0.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:X.color.neutral50,width:1,opacity:0.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:X.color.primary}}},e}(et),YO=T9;function iy(n){if(!(n instanceof Array))n=[n,n];return n}var XO=yt(jt,E9);function E9(n){n.eachSeriesByType(jt,function(e){var r=e.getGraph(),s=e.getEdgeData(),l=iy(e.get("edgeSymbol")),u=iy(e.get("edgeSymbolSize"));s.setVisual("fromSymbol",l&&l[0]),s.setVisual("toSymbol",l&&l[1]),s.setVisual("fromSymbolSize",u&&u[0]),s.setVisual("toSymbolSize",u&&u[1]),s.setVisual("style",e.getModel("lineStyle").getLineStyle()),s.each(function(f){var c=s.getItemModel(f),p=r.getEdgeByIndex(f),v=iy(c.getShallow("symbol",!0)),h=iy(c.getShallow("symbolSize",!0)),d=c.getModel("lineStyle").getLineStyle(),m=s.ensureUniqueItemVisual(f,"style");switch(V(m,d),m.stroke){case"source":{var g=p.node1.getVisual("style");m.stroke=g&&g.fill;break}case"target":{var g=p.node2.getVisual("style");m.stroke=g&&g.fill;break}}v[0]&&p.setVisual("fromSymbol",v[0]),v[1]&&p.setVisual("toSymbol",v[1]),h[0]&&p.setVisual("fromSymbolSize",h[0]),h[1]&&p.setVisual("toSymbolSize",h[1])})})}function ay(n){var e=n.coordinateSystem;if(e&&e.type!=="view")return;var r=n.getGraph();r.eachNode(function(s){var l=s.getModel();s.setLayout([+l.get("x"),+l.get("y")])}),vv(r,n)}function vv(n,e){n.eachEdge(function(r,s){var l=Jt(r.getModel().get(["lineStyle","curveness"]),-Xf(r,e,s,!0),0),u=ui(r.node1.getLayout()),f=ui(r.node2.getLayout()),c=[u,f];if(+l)c.push([(u[0]+f[0])/2-(u[1]-f[1])*l,(u[1]+f[1])/2-(f[0]-u[0])*l]);r.setLayout(c)})}var ZO=yt(jt,w9);function w9(n,e){n.eachSeriesByType(jt,function(r){var s=r.get("layout"),l=r.coordinateSystem;if(l&&l.type!=="view"){var u=r.getData(),f=[];I(l.dimensions,function(m){f=f.concat(u.mapDimensionsAll(m))});for(var c=0;c<u.count();c++){var p=[],v=!1;for(var h=0;h<f.length;h++){var d=u.get(f[h],c);if(!isNaN(d))v=!0;p.push(d)}if(v)u.setItemLayout(c,l.dataToPoint(p));else u.setItemLayout(c,[NaN,NaN])}vv(u.graph,r)}else if(!s||s==="none")ay(r)})}function lu(n){var e=n.coordinateSystem;return Wg(e)?Xg(e,n):1}function uu(n){var e=n.getVisual("symbolSize");if(e instanceof Array)e=(e[0]+e[1])/2;return+e}var KO=Math.PI,f1=[];function Zf(n,e,r,s){var l=n.coordinateSystem;if(l&&l.type!=="view")return;var u=l.getBoundingRect(),f=n.getData(),c=f.graph,p=u.width/2+u.x,v=u.height/2+u.y,h=Math.min(u.width,u.height)/2,d=f.count();if(f.setLayout({cx:p,cy:v}),!d)return;if(r){var m=l.pointToData(s),g=m[0],y=m[1],x=[g-p,y-v];Ki(x,x),Au(x,x,h),r.setLayout([p+x[0],v+x[1]],!0);var S=n.get(["circular","rotateLabel"]);c1(r,S,p,v)}I9[e](n,c,f,h,p,v,d),c.eachEdge(function(D,b){var C=Jt(D.getModel().get(["lineStyle","curveness"]),Xf(D,n,b),0),A=ui(D.node1.getLayout()),T=ui(D.node2.getLayout()),E,w=(A[0]+T[0])/2,L=(A[1]+T[1])/2;if(+C)C*=3,E=[p*C+w*(1-C),v*C+L*(1-C)];D.setLayout([A,T,E])})}var I9={value:function(n,e,r,s,l,u,f){var c=0,p=r.getSum("value"),v=Math.PI*2/(p||f);e.eachNode(function(h){var d=h.getValue("value"),m=v*(p?d:1)/2;c+=m,h.setLayout([s*Math.cos(c)+l,s*Math.sin(c)+u]),c+=m})},symbolSize:function(n,e,r,s,l,u,f){var c=0;f1.length=f;var p=lu(n);e.eachNode(function(d){var m=uu(d);isNaN(m)&&(m=2),m<0&&(m=0),m*=p;var g=Math.asin(m/2/s);isNaN(g)&&(g=KO/2),f1[d.dataIndex]=g,c+=g*2});var v=(2*KO-c)/f/2,h=0;e.eachNode(function(d){var m=v+f1[d.dataIndex];h+=m,(!d.getLayout()||!d.getLayout().fixed)&&d.setLayout([s*Math.cos(h)+l,s*Math.sin(h)+u]),h+=m})}};function c1(n,e,r,s){var l=n.getGraphicEl();if(!l)return;var u=n.getModel(),f=u.get(["label","rotate"])||0,c=l.getSymbolPath();if(e){var p=n.getLayout(),v=Math.atan2(p[1]-s,p[0]-r);if(v<0)v=Math.PI*2+v;var h=p[0]<r;if(h)v=v-Math.PI;var d=h?"left":"right";c.setTextConfig({rotation:-v,position:d,origin:"center"});var m=c.ensureState("emphasis");V(m.textConfig||(m.textConfig={}),{position:d})}else c.setTextConfig({rotation:f*=Math.PI/180})}var qO=yt(jt,M9);function M9(n){n.eachSeriesByType("graph",function(e){if(e.get("layout")==="circular")Zf(e,"symbolSize")})}var Kf=Sc;function jO(n,e,r){var s=n,l=e,u=r.rect,{width:f,height:c}=u,p=[u.x+f/2,u.y+c/2],v=r.gravity==null?0.1:r.gravity;for(var h=0;h<s.length;h++){var d=s[h];if(!d.p)d.p=tn(f*(Math.random()-0.5)+p[0],c*(Math.random()-0.5)+p[1]);d.pp=ui(d.p),d.edges=null}var m=r.friction==null?0.6:r.friction,g=m,y,x;return{warmUp:function(){g=m*0.8},setFixed:function(S){s[S].fixed=!0},setUnfixed:function(S){s[S].fixed=!1},beforeStep:function(S){y=S},afterStep:function(S){x=S},step:function(S){y&&y(s,l);var D=[],b=s.length;for(var C=0;C<l.length;C++){var A=l[C];if(A.ignoreForceLayout)continue;var{n1:T,n2:E}=A;Da(D,E.p,T.p);var w=jv(D)-A.d,L=E.w/(T.w+E.w);if(isNaN(L))L=0;Ki(D,D),!T.fixed&&Kf(T.p,T.p,D,L*w*g),!E.fixed&&Kf(E.p,E.p,D,-(1-L)*w*g)}for(var C=0;C<b;C++){var M=s[C];if(!M.fixed)Da(D,p,M.p),Kf(M.p,M.p,D,v*g)}for(var C=0;C<b;C++){var T=s[C];for(var P=C+1;P<b;P++){var E=s[P];Da(D,E.p,T.p);var w=jv(D);if(w===0)Wn(D,Math.random()-0.5,Math.random()-0.5),w=1;var R=(T.rep+E.rep)/w/w;!T.fixed&&Kf(T.pp,T.pp,D,R),!E.fixed&&Kf(E.pp,E.pp,D,-R)}}var N=[];for(var C=0;C<b;C++){var M=s[C];if(!M.fixed)Da(N,M.p,M.pp),Kf(M.p,M.p,N,g),pr(M.pp,M.p)}g=g*0.992;var O=g<0.01;x&&x(s,l,O),S&&S(O)}}}var $O=yt(jt,L9);function L9(n){n.eachSeriesByType(jt,function(e){var r=e.coordinateSystem;if(r&&r.type!=="view")return;if(e.get("layout")==="force"){var s=e.preservedPoints||{},l=e.getGraph(),{data:u,edgeData:f}=l,c=e.getModel("force"),p=c.get("initLayout");if(e.preservedPoints)u.each(function(C){var A=u.getId(C);u.setItemLayout(C,s[A]||[NaN,NaN])});else if(!p||p==="none")ay(e);else if(p==="circular")Zf(e,"value");var v=u.getDataExtent("value"),h=f.getDataExtent("value"),d=c.get("repulsion"),m=c.get("edgeLength"),g=U(d)?d:[d,d],y=U(m)?m:[m,m];y=[y[1],y[0]];var x=u.mapArray("value",function(C,A){var T=u.getItemLayout(A),E=Ze(C,v,g);if(isNaN(E))E=(g[0]+g[1])/2;return{w:E,rep:E,fixed:u.getItemModel(A).get("fixed"),p:!T||isNaN(T[0])||isNaN(T[1])?null:T}}),S=f.mapArray("value",function(C,A){var T=l.getEdgeByIndex(A),E=Ze(C,h,y);if(isNaN(E))E=(y[0]+y[1])/2;var w=T.getModel(),L=Jt(T.getModel().get(["lineStyle","curveness"]),-Xf(T,e,A,!0),0);return{n1:x[T.node1.dataIndex],n2:x[T.node2.dataIndex],d:E,curveness:L,ignoreForceLayout:w.get("ignoreForceLayout")}}),D=r.getBoundingRect(),b=jO(x,S,{rect:D,gravity:c.get("gravity"),friction:c.get("friction")});b.beforeStep(function(C,A){for(var T=0,E=C.length;T<E;T++)if(C[T].fixed)pr(C[T].p,l.getNodeByIndex(T).getLayout())}),b.afterStep(function(C,A,T){for(var E=0,w=C.length;E<w;E++){if(!C[E].fixed)l.getNodeByIndex(E).setLayout(C[E].p);s[u.getId(E)]=C[E].p}for(var E=0,w=A.length;E<w;E++){var L=A[E],M=l.getEdgeByIndex(E),P=L.n1.p,R=L.n2.p,N=M.getLayout();if(N=N?N.slice():[],N[0]=N[0]||[],N[1]=N[1]||[],pr(N[0],P),pr(N[1],R),+L.curveness)N[2]=[(P[0]+R[0])/2-(P[1]-R[1])*L.curveness,(P[1]+R[1])/2-(R[0]-P[0])*L.curveness];M.setLayout(N)}}),e.forceLayout=b,e.preservedPoints=s,b.step()}else e.forceLayout=null})}function P9(n,e,r){var s=Tt(n,e),l=V(n.getBoxLayoutParams(),{aspect:r}),u=ht(l,s.refContainer);return rI(n,u,r)}function p1(n,e){var r=[];return n.eachSeriesByType("graph",function(s){of({targetModel:s,coordSysType:"view",coordSysProvider:l,isDefaultDataCoordSys:!0});function l(){var u=s.getData(),f=u.mapArray(function(y){var x=u.getItemModel(y);return[+x.get("x"),+x.get("y")]}),c=[],p=[];if(hl(f,c,p),p[0]-c[0]===0)p[0]+=1,c[0]-=1;if(p[1]-c[1]===0)p[1]+=1,c[1]-=1;var v=(p[0]-c[0])/(p[1]-c[1]),h=P9(s,e,v);if(isNaN(v))c=[h.x,h.y],p=[h.x+h.width,h.y+h.height];var d=p[0]-c[0],m=p[1]-c[1],g=Uf(s,e,c[0],c[1],d,m,h);return r.push(g),g}}),r}var QO=Zt.prototype,v1=El.prototype,JO=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return n}(),a_e=function(n){k(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(JO);function h1(n){return isNaN(+n.cpx1)||isNaN(+n.cpy1)}var R9=function(n){k(e,n);function e(r){var s=n.call(this,r)||this;return s.type="ec-line",s}return e.prototype.getDefaultStyle=function(){return{stroke:X.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new JO},e.prototype.buildPath=function(r,s){if(h1(s))QO.buildPath.call(this,r,s);else v1.buildPath.call(this,r,s)},e.prototype.pointAt=function(r){if(h1(this.shape))return QO.pointAt.call(this,r);else return v1.pointAt.call(this,r)},e.prototype.tangentAt=function(r){var s=this.shape,l=h1(s)?[s.x2-s.x1,s.y2-s.y1]:v1.tangentAt.call(this,r);return Ki(l,l)},e}(xe),ny=R9;var d1=["fromSymbol","toSymbol"];function eN(n){return"_"+n+"Type"}function tN(n,e,r){var s=e.getItemVisual(r,n);if(!s||s==="none")return s;var l=e.getItemVisual(r,n+"Size"),u=e.getItemVisual(r,n+"Rotate"),f=e.getItemVisual(r,n+"Offset"),c=e.getItemVisual(r,n+"KeepAspect"),p=mo(l),v=ka(f||0,p);return s+p+v+(u||"")+(c||"")}function rN(n,e,r){var s=e.getItemVisual(r,n);if(!s||s==="none")return;var l=e.getItemVisual(r,n+"Size"),u=e.getItemVisual(r,n+"Rotate"),f=e.getItemVisual(r,n+"Offset"),c=e.getItemVisual(r,n+"KeepAspect"),p=mo(l),v=ka(f||0,p),h=Dt(s,-p[0]/2+v[0],-p[1]/2+v[1],p[0],p[1],null,c);return h.__specifiedRotation=u==null||isNaN(u)?void 0:+u*Math.PI/180||0,h.name=n,h}function O9(n){var e=new ny({name:"line",subPixelOptimize:!0});return m1(e.shape,n),e}function m1(n,e){n.x1=e[0][0],n.y1=e[0][1],n.x2=e[1][0],n.y2=e[1][1],n.percent=1;var r=e[2];if(r)n.cpx1=r[0],n.cpy1=r[1];else n.cpx1=NaN,n.cpy1=NaN}var N9=function(n){k(e,n);function e(r,s,l){var u=n.call(this)||this;return u._createLine(r,s,l),u}return e.prototype._createLine=function(r,s,l){var u=r.hostModel,f=r.getItemLayout(s),c=r.getItemVisual(s,"z2"),p=O9(f);p.shape.percent=0,$e(p,{z2:te(c,0),shape:{percent:1}},u,s),this.add(p),I(d1,function(v){var h=rN(v,r,s);this.add(h),this[eN(v)]=tN(v,r,s)},this),this._updateCommonStl(r,s,l)},e.prototype.updateData=function(r,s,l){var u=r.hostModel,f=this.childOfName("line"),c=r.getItemLayout(s),p={shape:{}};m1(p.shape,c),Oe(f,p,u,s),I(d1,function(v){var h=tN(v,r,s),d=eN(v);if(this[d]!==h){this.remove(this.childOfName(v));var m=rN(v,r,s);this.add(m)}this[d]=h},this),this._updateCommonStl(r,s,l)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(r,s,l){var u=r.hostModel,f=this.childOfName("line"),c=l&&l.emphasisLineStyle,p=l&&l.blurLineStyle,v=l&&l.selectLineStyle,h=l&&l.labelStatesModels,d=l&&l.emphasisDisabled,m=l&&l.focus,g=l&&l.blurScope;if(!l||r.hasItemOption){var y=r.getItemModel(s),x=y.getModel("emphasis");c=x.getModel("lineStyle").getLineStyle(),p=y.getModel(["blur","lineStyle"]).getLineStyle(),v=y.getModel(["select","lineStyle"]).getLineStyle(),d=x.get("disabled"),m=x.get("focus"),g=x.get("blurScope"),h=St(y)}var S=r.getItemVisual(s,"style"),D=S.stroke;f.useStyle(S),f.style.fill=null,f.style.strokeNoScale=!0,f.ensureState("emphasis").style=c,f.ensureState("blur").style=p,f.ensureState("select").style=v,I(d1,function(E){var w=this.childOfName(E);if(w){w.setColor(D),w.style.opacity=S.opacity;for(var L=0;L<hr.length;L++){var M=hr[L],P=f.getState(M);if(P){var R=P.style||{},N=w.ensureState(M),O=N.style||(N.style={});if(R.stroke!=null)O[w.__isEmptyBrush?"stroke":"fill"]=R.stroke;if(R.opacity!=null)O.opacity=R.opacity}}w.markRedraw()}},this);var b=u.getRawValue(s);Mt(this,h,{labelDataIndex:s,labelFetcher:{getFormattedLabel:function(E,w){return u.getFormattedLabel(E,w,r.dataType)}},inheritColor:D||X.color.neutral99,defaultOpacity:S.opacity,defaultText:(b==null?r.getName(s):isFinite(b)?Ye(b,10):b)+""});var C=this.getTextContent();if(C){var A=h.normal;C.__align=C.style.align,C.__verticalAlign=C.style.verticalAlign,C.__position=A.get("position")||"middle";var T=A.get("distance");if(!U(T))T=[T,T];C.__labelDistance=T}this.setTextConfig({position:null,local:!0,inside:!1}),it(this,m,g,d)},e.prototype.highlight=function(){Ni(this)},e.prototype.downplay=function(){ki(this)},e.prototype.updateLayout=function(r,s){this.childOfName("line").stopAnimation(),this.setLinePoints(r.getItemLayout(s))},e.prototype.setLinePoints=function(r){var s=this.childOfName("line");m1(s.shape,r),s.dirty()},e.prototype.beforeUpdate=function(){var r=this,s=r.childOfName("fromSymbol"),l=r.childOfName("toSymbol"),u=r.getTextContent();if(!s&&!l&&(!u||u.ignore))return;var f=1,c=this.parent;while(c){if(c.scaleX)f/=c.scaleX;c=c.parent}var p=r.childOfName("line");if(!this.__dirty&&!p.__dirty)return;var v=p.shape.percent,h=p.pointAt(0),d=p.pointAt(v),m=Da([],d,h);Ki(m,m);function g(P,R){var N=P.__specifiedRotation;if(N==null){var O=p.tangentAt(R);P.attr("rotation",(R===1?-1:1)*Math.PI/2-Math.atan2(O[1],O[0]))}else P.attr("rotation",N)}if(s)s.setPosition(h),g(s,0),s.scaleX=s.scaleY=f*v,s.markRedraw();if(l)l.setPosition(d),g(l,1),l.scaleX=l.scaleY=f*v,l.markRedraw();if(u&&!u.ignore){u.x=u.y=0,u.originX=u.originY=0;var y=void 0,x=void 0,S=u.__labelDistance,D=S[0]*f,b=S[1]*f,C=v/2,A=p.tangentAt(C),T=[A[1],-A[0]],E=p.pointAt(C);if(T[1]>0)T[0]=-T[0],T[1]=-T[1];var w=A[0]<0?-1:1;if(u.__position!=="start"&&u.__position!=="end"){var L=-Math.atan2(A[1],A[0]);if(d[0]<h[0])L=Math.PI+L;u.rotation=L}var M=void 0;switch(u.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":M=-b,x="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":M=b,x="top";break;default:M=0,x="middle"}switch(u.__position){case"end":u.x=m[0]*D+d[0],u.y=m[1]*b+d[1],y=m[0]>0.8?"left":m[0]<-0.8?"right":"center",x=m[1]>0.8?"top":m[1]<-0.8?"bottom":"middle";break;case"start":u.x=-m[0]*D+h[0],u.y=-m[1]*b+h[1],y=m[0]>0.8?"right":m[0]<-0.8?"left":"center",x=m[1]>0.8?"bottom":m[1]<-0.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":u.x=D*w+h[0],u.y=h[1]+M,y=A[0]<0?"right":"left",u.originX=-D*w,u.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":u.x=E[0],u.y=E[1]+M,y="center",u.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":u.x=-D*w+d[0],u.y=d[1]+M,y=A[0]>=0?"right":"left",u.originX=D*w,u.originY=-M;break}u.scaleX=u.scaleY=f,u.setStyle({verticalAlign:u.__verticalAlign||x,align:u.__align||y})}},e}(ve),iN=N9;var k9=function(){function n(e){this.group=new ve,this._LineCtor=e||iN}return n.prototype.updateData=function(e){var r=this;this._progressiveEls=null;var s=this,{group:l,_lineData:u}=s;if(s._lineData=e,!u)l.removeAll();var f=aN(e);e.diff(u).add(function(c){r._doAdd(e,c,f)}).update(function(c,p){r._doUpdate(u,e,p,c,f)}).remove(function(c){l.remove(u.getItemGraphicEl(c))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;if(!e)return;e.eachItemGraphicEl(function(r,s){r.updateLayout(e,s)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=aN(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,r,s){this._progressiveEls=[];function l(p){if(!p.isGroup&&!B9(p))p.incremental=s,p.ensureState("emphasis").hoverLayer=no}for(var u=e.start;u<e.end;u++){var f=r.getItemLayout(u);if(g1(f)){var c=new this._LineCtor(r,u,this._seriesScope);c.traverse(l),this.group.add(c),r.setItemGraphicEl(u,c),this._progressiveEls.push(c)}}},n.prototype.remove=function(){this.group.removeAll()},n.prototype.eachRendered=function(e){Bi(this._progressiveEls||this.group,e)},n.prototype._doAdd=function(e,r,s){var l=e.getItemLayout(r);if(!g1(l))return;var u=new this._LineCtor(e,r,s);e.setItemGraphicEl(r,u),this.group.add(u)},n.prototype._doUpdate=function(e,r,s,l,u){var f=e.getItemGraphicEl(s);if(!g1(r.getItemLayout(l))){this.group.remove(f);return}if(!f)f=new this._LineCtor(r,l,u);else f.updateData(r,l,u);r.setItemGraphicEl(l,f),this.group.add(f)},n}();function B9(n){return n.animators&&n.animators.length>0}function aN(n){var e=n.hostModel,r=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:St(e)}}function nN(n){return isNaN(n[0])||isNaN(n[1])}function g1(n){return n&&!nN(n[0])&&!nN(n[1])}var oy=k9;var y1=[],x1=[],_1=[],qf=lr,S1=Yn,oN=Math.abs;function sN(n,e,r){var s=n[0],l=n[1],u=n[2],f=1/0,c,p=r*r,v=0.1;for(var h=0.1;h<=0.9;h+=0.1){y1[0]=qf(s[0],l[0],u[0],h),y1[1]=qf(s[1],l[1],u[1],h);var d=oN(S1(y1,e)-p);if(d<f)f=d,c=h}for(var m=0;m<32;m++){var g=c+v;x1[0]=qf(s[0],l[0],u[0],c),x1[1]=qf(s[1],l[1],u[1],c),_1[0]=qf(s[0],l[0],u[0],g),_1[1]=qf(s[1],l[1],u[1],g);var d=S1(x1,e)-p;if(oN(d)<0.01)break;var y=S1(_1,e)-p;if(v/=2,d<0)if(y>=0)c=c+v;else c=c-v;else if(y>=0)c=c-v;else c=c+v}return c}function hv(n,e){var r=[],s=Yo,l=[[],[],[]],u=[[],[]],f=[];e/=2,n.eachEdge(function(c,p){var v=c.getLayout(),h=c.getVisual("fromSymbol"),d=c.getVisual("toSymbol");if(!v.__original){if(v.__original=[ui(v[0]),ui(v[1])],v[2])v.__original.push(ui(v[2]))}var m=v.__original;if(v[2]!=null){if(pr(l[0],m[0]),pr(l[1],m[2]),pr(l[2],m[1]),h&&h!=="none"){var g=uu(c.node1),y=sN(l,m[0],g*e);s(l[0][0],l[1][0],l[2][0],y,r),l[0][0]=r[3],l[1][0]=r[4],s(l[0][1],l[1][1],l[2][1],y,r),l[0][1]=r[3],l[1][1]=r[4]}if(d&&d!=="none"){var g=uu(c.node2),y=sN(l,m[1],g*e);s(l[0][0],l[1][0],l[2][0],y,r),l[1][0]=r[1],l[2][0]=r[2],s(l[0][1],l[1][1],l[2][1],y,r),l[1][1]=r[1],l[2][1]=r[2]}pr(v[0],l[0]),pr(v[1],l[2]),pr(v[2],l[1])}else{if(pr(u[0],m[0]),pr(u[1],m[1]),Da(f,u[1],u[0]),Ki(f,f),h&&h!=="none"){var g=uu(c.node1);Sc(u[0],u[0],f,g*e)}if(d&&d!=="none"){var g=uu(c.node2);Sc(u[1],u[1],f,-g*e)}pr(v[0],u[0]),pr(v[1],u[1])}})}var F9=he();function lN(n){if(n)return F9(n).bridge}var z9=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=jt,r}return e.prototype.init=function(r,s){var l=new gn,u=new oy,f=this.group,c=new ve;this._controller=new Ln(s.getZr()),c.add(l.group),c.add(u.group),f.add(c),this._symbolDraw=l,this._lineDraw=u,this._mainGroup=c,this._firstRender=!0},e.prototype.render=function(r,s,l){var u=this,f=Ff(r),c=!1;this._model=r,this._api=l,this._active=!0;var p=this._mainGroup,v=this._getThumbnailInfo();if(v)v.bridge.reset(l);var h=this._symbolDraw,d=this._lineDraw;if(f)Mo(p,Hi,f,this._firstRender?null:r);hv(r.getGraph(),lu(r));var m=r.getData();h.updateData(m);var g=r.getEdgeData();if(d.updateData(g),this._updateNodeAndLinkScale(),f)zf(r,l,this._controller,function(A,T,E){return r.coordinateSystem.containPoint([T,E])},null);clearTimeout(this._layoutTimeout);var y=r.forceLayout,x=r.get(["force","layoutAnimation"]);if(y)c=!0,this._startForceLayoutIteration(y,l,x);var S=r.get("layout");m.graph.eachNode(function(A){var T=A.dataIndex,E=A.getGraphicEl(),w=A.getModel();if(!E)return;E.off("drag").off("dragend");var L=w.get("draggable");if(L)E.on("drag",function(P){switch(S){case"force":y.warmUp(),!u._layouting&&u._startForceLayoutIteration(y,l,x),y.setFixed(T),m.setItemLayout(T,[E.x,E.y]);break;case"circular":m.setItemLayout(T,[E.x,E.y]),A.setLayout({fixed:!0},!0),Zf(r,"symbolSize",A,[P.offsetX,P.offsetY]),u.updateLayout(r);break;case"none":default:m.setItemLayout(T,[E.x,E.y]),vv(r.getGraph(),r),u.updateLayout(r);break}}).on("dragend",function(){if(y)y.setUnfixed(T)});E.setDraggable(L,!!w.get("cursor"));var M=w.get(["emphasis","focus"]);if(M==="adjacency")ye(E).focus=A.getAdjacentDataIndices()}),m.graph.eachEdge(function(A){var T=A.getGraphicEl(),E=A.getModel().get(["emphasis","focus"]);if(!T)return;if(E==="adjacency")ye(T).focus={edge:[A.dataIndex],node:[A.node1.dataIndex,A.node2.dataIndex]}});var D=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),b=m.getLayout("cx"),C=m.getLayout("cy");if(m.graph.eachNode(function(A){c1(A,D,b,C)}),this._firstRender=!1,!c)this._renderThumbnail(r,l,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},e.prototype._startForceLayoutIteration=function(r,s,l){var u=this,f=!1;(function c(){r.step(function(p){if(u.updateLayout(u._model),p||!f)f=!0,u._renderThumbnail(u._model,s,u._symbolDraw,u._lineDraw);(u._layouting=!p)&&(l?u._layoutTimeout=setTimeout(c,16):c())})})()},e.prototype.__updateOnOwnRoam=function(r,s,l){var u=Ff(s);if(!this._active||!u)return;if(Mo(this._mainGroup,Hi,u,null),qg(r))this._updateNodeAndLinkScale(),hv(s.getGraph(),lu(s)),this._lineDraw.updateLayout(),l.updateLabelLayout();this._updateThumbnailWindow()},e.prototype._updateNodeAndLinkScale=function(){var r=this._model,s=r.getData(),l=lu(r);s.eachItemGraphicEl(function(u,f){u&&u.setSymbolScale(l)})},e.prototype.updateLayout=function(r){if(!this._active)return;hv(r.getGraph(),lu(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},e.prototype._getThumbnailInfo=function(){var r=this._model,s=r.coordinateSystem;if(s.type!=="view")return;var l=lN(r);if(!l)return;return{bridge:l,coordSys:s}},e.prototype._updateThumbnailWindow=function(){var r=this._getThumbnailInfo();if(r)r.bridge.updateWindow(ND(null,r.coordSys),this._api)},e.prototype._renderThumbnail=function(r,s,l,u){var f=this._getThumbnailInfo();if(!f)return;var c=new ve,p=l.group.children(),v=u.group.children(),h=new ve,d=new ve;c.add(d),c.add(h);for(var m=0;m<p.length;m++){var g=p[m],y=g.children()[0],{x,y:S}=g,D=le(y.shape),b=V(D,{width:y.scaleX,height:y.scaleY,x:x-y.scaleX/2,y:S-y.scaleY/2}),C=le(y.style),A=new y.constructor({shape:b,style:C,z2:151});d.add(A)}for(var m=0;m<v.length;m++){var g=v[m],T=g.children()[0],C=le(T.style),b=le(T.shape),E=new ny({style:C,shape:b,z2:151});h.add(E)}f.bridge.renderContent({api:s,roamType:r.get("roam"),viewportRect:null,group:c,targetTrans:ND(null,f.coordSys)})},e.type=jt,e}(qe),uN=z9;var fN=yt(jt,V9);function V9(n){var e=n.findComponents({mainType:"legend"});if(!e||!e.length)return;n.eachSeriesByType(jt,function(r){var s=r.getCategoriesData(),l=r.getGraph(),u=l.data,f=s.mapArray(s.getName);u.filterSelf(function(c){var p=u.getItemModel(c),v=p.getShallow("category");if(v!=null){if(Te(v))v=f[v];for(var h=0;h<e.length;h++)if(!e[h].isSelected(v))return!1}return!0})})}var cN=yt(jt,U9);function U9(n){var e={};n.eachSeriesByType(jt,function(r){var s=r.getCategoriesData(),l=r.getData(),u={};if(s.each(function(f){var c=s.getName(f);u["ec-"+c]=f;var p=s.getItemModel(f),v=p.getModel("itemStyle").getItemStyle();if(!v.fill)v.fill=r.getColorFromPalette(c,e);s.setItemVisual(f,"style",v);var h=["symbol","symbolSize","symbolKeepAspect"];for(var d=0;d<h.length;d++){var m=p.getShallow(h[d],!0);if(m!=null)s.setItemVisual(f,h[d],m)}}),s.count())l.each(function(f){var c=l.getItemModel(f),p=c.getShallow("category");if(p!=null){if(K(p))p=u["ec-"+p];var v=s.getItemVisual(p,"style"),h=l.ensureUniqueItemVisual(f,"style");V(h,v);var d=["symbol","symbolSize","symbolKeepAspect"];for(var m=0;m<d.length;m++)l.setItemVisual(f,d[m],s.getItemVisual(p,d[m]))}})})}function D1(n){n.registerChartView(uN),n.registerSeriesModel(YO),n.registerProcessor(fN),n.registerVisual(cN),n.registerVisual(XO),n.registerLayout(ZO),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,qO),n.registerLayout($O),n.registerCoordinateSystem("graphView",{dimensions:Zg.dimensions,create:p1}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},mt),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},mt),Vf(n,di,jt)}var G9=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),H9=function(n){k(e,n);function e(r){var s=n.call(this,r)||this;return s.type="pointer",s}return e.prototype.getDefaultShape=function(){return new G9},e.prototype.buildPath=function(r,s){var{cos:l,sin:u}=Math,{r:f,width:c,angle:p}=s,v=s.x-l(p)*c*(c>=f/3?1:2),h=s.y-u(p)*c*(c>=f/3?1:2);p=s.angle-Math.PI/2,r.moveTo(v,h),r.lineTo(s.x+l(p)*c,s.y+u(p)*c),r.lineTo(s.x+l(s.angle)*f,s.y+u(s.angle)*f),r.lineTo(s.x-l(p)*c,s.y-u(p)*c),r.lineTo(v,h)},e}(xe),pN=H9;function W9(n,e){var r=n.get("center"),s=e.getWidth(),l=e.getHeight(),u=Math.min(s,l),f=ee(r[0],e.getWidth()),c=ee(r[1],e.getHeight()),p=ee(n.get("radius"),u/2);return{cx:f,cy:c,r:p}}function sy(n,e){var r=n==null?"":n+"";if(e){if(K(e))r=e.replace("{value}",r);else if(ie(e))r=e(n)}return r}var Y9=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,s,l){this.group.removeAll();var u=r.get(["axisLine","lineStyle","color"]),f=W9(r,l);this._renderMain(r,s,l,u,f),this._data=r.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(r,s,l,u,f){var c=this.group,p=r.get("clockwise"),v=-r.get("startAngle")/180*Math.PI,h=-r.get("endAngle")/180*Math.PI,d=r.getModel("axisLine"),m=d.get("roundCap"),g=m?Tf:Xt,y=d.get("show"),x=d.getModel("lineStyle"),S=x.get("width"),D=[v,h];Fc(D,!p),v=D[0],h=D[1];var b=h-v,C=v,A=[];for(var T=0;y&&T<u.length;T++){var E=Math.min(Math.max(u[T][0],0),1);h=v+b*E;var w=new g({shape:{startAngle:C,endAngle:h,cx:f.cx,cy:f.cy,clockwise:p,r0:f.r-S,r:f.r},silent:!0});w.setStyle({fill:u[T][1]}),w.setStyle(x.getLineStyle(["color","width"])),A.push(w),C=h}A.reverse(),I(A,function(M){return c.add(M)});var L=function(M){if(M<=0)return u[0][1];var P;for(P=0;P<u.length;P++)if(u[P][0]>=M&&(P===0?0:u[P-1][0])<M)return u[P][1];return u[P-1][1]};this._renderTicks(r,s,l,L,f,v,h,p,S),this._renderTitleAndDetail(r,s,l,L,f),this._renderAnchor(r,f),this._renderPointer(r,s,l,L,f,v,h,p,S)},e.prototype._renderTicks=function(r,s,l,u,f,c,p,v,h){var d=this.group,{cx:m,cy:g,r:y}=f,x=+r.get("min"),S=+r.get("max"),D=r.getModel("splitLine"),b=r.getModel("axisTick"),C=r.getModel("axisLabel"),A=r.get("splitNumber"),T=b.get("splitNumber"),E=ee(D.get("length"),y),w=ee(b.get("length"),y),L=c,M=(p-c)/A,P=M/T,R=D.getModel("lineStyle").getLineStyle(),N=b.getModel("lineStyle").getLineStyle(),O=D.get("distance"),B,F;for(var z=0;z<=A;z++){if(B=Math.cos(L),F=Math.sin(L),D.get("show")){var H=O?O+h:h,G=new Zt({shape:{x1:B*(y-H)+m,y1:F*(y-H)+g,x2:B*(y-E-H)+m,y2:F*(y-E-H)+g},style:R,silent:!0});if(R.stroke==="auto")G.setStyle({stroke:u(z/A)});d.add(G)}if(C.get("show")){var H=C.get("distance")+O,Z=sy(Ye(z*(S-x)/A+x,PT),C.get("formatter")),Q=u(z/A),q=B*(y-E-H)+m,ae=F*(y-E-H)+g,ce=C.get("rotate"),ne=0;if(ce==="radial"){if(ne=-L+2*Math.PI,ne>Math.PI/2)ne+=Math.PI}else if(ce==="tangential")ne=-L-Math.PI/2;else if(Te(ce))ne=ce*Math.PI/180;if(ne===0)d.add(new Ve({style:ut(C,{text:Z,x:q,y:ae,verticalAlign:F<-0.8?"top":F>0.8?"bottom":"middle",align:B<-0.4?"left":B>0.4?"right":"center"},{inheritColor:Q}),silent:!0}));else d.add(new Ve({style:ut(C,{text:Z,x:q,y:ae,verticalAlign:"middle",align:"center"},{inheritColor:Q}),silent:!0,originX:q,originY:ae,rotation:ne}))}if(b.get("show")&&z!==A){var H=b.get("distance");H=H?H+h:h;for(var de=0;de<=T;de++){B=Math.cos(L),F=Math.sin(L);var ze=new Zt({shape:{x1:B*(y-H)+m,y1:F*(y-H)+g,x2:B*(y-w-H)+m,y2:F*(y-w-H)+g},silent:!0,style:N});if(N.stroke==="auto")ze.setStyle({stroke:u((z+de/T)/A)});d.add(ze),L+=P}L-=P}else L+=M}},e.prototype._renderPointer=function(r,s,l,u,f,c,p,v,h){var d=this.group,m=this._data,g=this._progressEls,y=[],x=r.get(["pointer","show"]),S=r.getModel("progress"),D=S.get("show"),b=r.getData(),C=b.mapDimension("value"),A=+r.get("min"),T=+r.get("max"),E=[A,T],w=[c,p];function L(P,R){var N=b.getItemModel(P),O=N.getModel("pointer"),B=ee(O.get("width"),f.r),F=ee(O.get("length"),f.r),z=r.get(["pointer","icon"]),H=O.get("offsetCenter"),G=ee(H[0],f.r),Z=ee(H[1],f.r),Q=O.get("keepAspect"),q;if(z)q=Dt(z,G-B/2,Z-F,B,F,null,Q);else q=new pN({shape:{angle:-Math.PI/2,width:B,r:F,x:G,y:Z}});return q.rotation=-(R+Math.PI/2),q.x=f.cx,q.y=f.cy,q}function M(P,R){var N=S.get("roundCap"),O=N?Tf:Xt,B=S.get("overlap"),F=B?S.get("width"):h/b.count(),z=B?f.r-F:f.r-(P+1)*F,H=B?f.r:f.r-P*F,G=new O({shape:{startAngle:c,endAngle:R,cx:f.cx,cy:f.cy,clockwise:v,r0:z,r:H}});return B&&(G.z2=Ze(b.get(C,P),[A,T],[100,0],!0)),G}if(D||x)b.diff(m).add(function(P){var R=b.get(C,P);if(x){var N=L(P,c);$e(N,{rotation:-((isNaN(+R)?w[0]:Ze(R,E,w,!0))+Math.PI/2)},r),d.add(N),b.setItemGraphicEl(P,N)}if(D){var O=M(P,c),B=S.get("clip");$e(O,{shape:{endAngle:Ze(R,E,w,B)}},r),d.add(O),Xc(r.seriesIndex,b.dataType,P,O),y[P]=O}}).update(function(P,R){var N=b.get(C,P);if(x){var O=m.getItemGraphicEl(R),B=O?O.rotation:c,F=L(P,B);F.rotation=B,Oe(F,{rotation:-((isNaN(+N)?w[0]:Ze(N,E,w,!0))+Math.PI/2)},r),d.add(F),b.setItemGraphicEl(P,F)}if(D){var z=g[R],H=z?z.shape.endAngle:c,G=M(P,H),Z=S.get("clip");Oe(G,{shape:{endAngle:Ze(N,E,w,Z)}},r),d.add(G),Xc(r.seriesIndex,b.dataType,P,G),y[P]=G}}).execute(),b.each(function(P){var R=b.getItemModel(P),N=R.getModel("emphasis"),O=N.get("focus"),B=N.get("blurScope"),F=N.get("disabled"),z=u(Ze(b.get(C,P),E,[0,1],!0));if(x){var H=b.getItemGraphicEl(P),G=b.getItemVisual(P,"style"),Z=G.fill;if(H instanceof Bt){var Q=H.style;H.useStyle(V({image:Q.image,x:Q.x,y:Q.y,width:Q.width,height:Q.height},G))}else H.useStyle(G),H.type!=="pointer"&&H.setColor(Z);if(H.setStyle(R.getModel(["pointer","itemStyle"]).getItemStyle()),H.style.fill==="auto")H.setStyle("fill",z);H.z2EmphasisLift=0,wt(H,R),it(H,O,B,F)}if(D){var q=y[P];if(q.useStyle(b.getItemVisual(P,"style")),q.setStyle(R.getModel(["progress","itemStyle"]).getItemStyle()),q.style.fill==="auto")q.setStyle("fill",z);q.z2EmphasisLift=0,wt(q,R),it(q,O,B,F)}}),this._progressEls=y},e.prototype._renderAnchor=function(r,s){var l=r.getModel("anchor"),u=l.get("show");if(u){var f=l.get("size"),c=l.get("icon"),p=l.get("offsetCenter"),v=l.get("keepAspect"),h=Dt(c,s.cx-f/2+ee(p[0],s.r),s.cy-f/2+ee(p[1],s.r),f,f,null,v);h.z2=l.get("showAbove")?1:0,h.setStyle(l.getModel("itemStyle").getItemStyle()),this.group.add(h)}},e.prototype._renderTitleAndDetail=function(r,s,l,u,f){var c=this,p=r.getData(),v=p.mapDimension("value"),h=+r.get("min"),d=+r.get("max"),m=new ve,g=[],y=[],x=r.isAnimationEnabled(),S=r.get(["pointer","showAbove"]);p.diff(this._data).add(function(D){g[D]=new Ve({silent:!0}),y[D]=new Ve({silent:!0})}).update(function(D,b){g[D]=c._titleEls[b],y[D]=c._detailEls[b]}).execute(),p.each(function(D){var b=p.getItemModel(D),C=p.get(v,D),A=new ve,T=u(Ze(C,[h,d],[0,1],!0)),E=b.getModel("title");if(E.get("show")){var w=E.get("offsetCenter"),L=f.cx+ee(w[0],f.r),M=f.cy+ee(w[1],f.r),P=g[D];P.attr({z2:S?0:2,style:ut(E,{x:L,y:M,text:p.getName(D),align:"center",verticalAlign:"middle"},{inheritColor:T})}),A.add(P)}var R=b.getModel("detail");if(R.get("show")){var N=R.get("offsetCenter"),O=f.cx+ee(N[0],f.r),B=f.cy+ee(N[1],f.r),F=ee(R.get("width"),f.r),z=ee(R.get("height"),f.r),H=r.get(["progress","show"])?p.getItemVisual(D,"style").fill:T,P=y[D],G=R.get("formatter");P.attr({z2:S?0:2,style:ut(R,{x:O,y:B,text:sy(C,G),width:isNaN(F)?null:F,height:isNaN(z)?null:z,align:"center",verticalAlign:"middle"},{inheritColor:H})}),gd(P,{normal:R},C,function(Q){return sy(Q,G)}),x&&yd(P,D,p,r,{getFormattedLabel:function(Q,q,ae,ce,ne,de){return sy(de?de.interpolatedValue:C,G)}}),A.add(P)}m.add(A)}),this.group.add(m),this._titleEls=g,this._detailEls=y},e.type="gauge",e}(qe),vN=Y9;var X9=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="itemStyle",r}return e.prototype.getInitialData=function(r,s){return Ha(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,X.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:X.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:X.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:X.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:X.color.neutral00,borderWidth:0,borderColor:X.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:X.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:X.color.transparent,borderWidth:0,borderColor:X.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:X.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(et),hN=X9;function b1(n){n.registerChartView(vN),n.registerSeriesModel(hN)}var Po="funnel",Z9=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new An(se(this.getData,this),se(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.getInitialData=function(r,s){return Ha(this,{coordDimensions:["value"],encodeDefaulter:Ae(_d,this)})},e.prototype._defaultLabelLine=function(r){Ea(r,"labelLine",["show"]);var s=r.labelLine,l=r.emphasis.labelLine;s.show=s.show&&r.label.show,l.show=l.show&&r.emphasis.label.show},e.prototype.getDataParams=function(r){var s=this.getData(),l=n.prototype.getDataParams.call(this,r),u=s.mapDimension("value"),f=s.getSum(u);return l.percent=!f?0:+(s.get(u,r)/f*100).toFixed(2),l.$vars.push("percent"),l},e.type="series."+Po,e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:X.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:X.color.primary}}},e}(et),dN=Z9;var K9=["itemStyle","opacity"],q9=function(n){k(e,n);function e(r,s){var l=n.call(this)||this,u=l,f=new ur,c=new Ve;return u.setTextContent(c),l.setTextGuideLine(f),l.updateData(r,s,!0),l}return e.prototype.updateData=function(r,s,l){var u=this,f=r.hostModel,c=r.getItemModel(s),p=r.getItemLayout(s),v=c.getModel("emphasis"),h=c.get(K9);if(h=h==null?1:h,!l)fr(u);if(u.useStyle(r.getItemVisual(s,"style")),u.style.lineJoin="round",l)u.setShape({points:p.points}),u.style.opacity=0,$e(u,{style:{opacity:h}},f,s);else Oe(u,{style:{opacity:h},shape:{points:p.points}},f,s);wt(u,c),this._updateLabel(r,s),it(this,v.get("focus"),v.get("blurScope"),v.get("disabled"))},e.prototype._updateLabel=function(r,s){var l=this,u=this.getTextGuideLine(),f=l.getTextContent(),c=r.hostModel,p=r.getItemModel(s),v=r.getItemLayout(s),h=v.label,d=r.getItemVisual(s,"style"),m=d.fill;Mt(f,St(p),{labelFetcher:r.hostModel,labelDataIndex:s,defaultOpacity:d.opacity,defaultText:r.getName(s)},{normal:{align:h.textAlign,verticalAlign:h.verticalAlign}});var g=p.getModel("label"),y=g.get("color"),x=y==="inherit"?m:null;l.setTextConfig({local:!0,inside:!!h.inside,insideStroke:x,outsideFill:x});var S=h.linePoints;u.setShape({points:S}),l.textGuideLineConfig={anchor:S?new Le(S[0][0],S[0][1]):null},Oe(f,{style:{x:h.x,y:h.y}},c,s),f.attr({rotation:h.rotation,originX:h.x,originY:h.y,z2:10}),wf(l,If(p),{stroke:m})},e}(rr),j9=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=Po,r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,s,l){var u=r.getData(),f=this._data,c=this.group;u.diff(f).add(function(p){var v=new q9(u,p);u.setItemGraphicEl(p,v),c.add(v)}).update(function(p,v){var h=f.getItemGraphicEl(v);h.updateData(u,p),c.add(h),u.setItemGraphicEl(p,h)}).remove(function(p){var v=f.getItemGraphicEl(p);vn(v,r,p)}).execute(),this._data=u},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=Po,e}(qe),mN=j9;function $9(n,e){var r=n.mapDimension("value"),s=n.mapArray(r,function(p){return p}),l=[],u=e==="ascending";for(var f=0,c=n.count();f<c;f++)l[f]=f;if(ie(e))l.sort(e);else if(e!=="none")l.sort(function(p,v){return u?s[p]-s[v]:s[v]-s[p]});return l}function Q9(n){var e=n.hostModel,r=yN(e);n.each(function(s){var l=n.getItemModel(s),u=l.getModel("label"),f=u.get("position"),c=l.getModel("labelLine"),p=n.getItemLayout(s),v=p.points,h=f==="inner"||f==="inside"||f==="center"||f==="insideLeft"||f==="insideRight",d,m,g,y;if(h){if(f==="insideLeft")m=(v[0][0]+v[3][0])/2+5,g=(v[0][1]+v[3][1])/2,d="left";else if(f==="insideRight")m=(v[1][0]+v[2][0])/2-5,g=(v[1][1]+v[2][1])/2,d="right";else m=(v[0][0]+v[1][0]+v[2][0]+v[3][0])/4,g=(v[0][1]+v[1][1]+v[2][1]+v[3][1])/4,d="center";y=[[m,g],[m,g]]}else{var x=void 0,S=void 0,D=void 0,b=void 0,C=c.get("length");if(K(f)){if(!r&&be(["top","bottom"],f)>-1)f="left";if(r&&be(["left","right"],f)>-1)f="bottom"}if(f==="left")x=(v[3][0]+v[0][0])/2,S=(v[3][1]+v[0][1])/2,D=x-C,m=D-5,d="right";else if(f==="right")x=(v[1][0]+v[2][0])/2,S=(v[1][1]+v[2][1])/2,D=x+C,m=D+5,d="left";else if(f==="top")x=(v[3][0]+v[0][0])/2,S=(v[3][1]+v[0][1])/2,b=S-C,g=b-5,d="center";else if(f==="bottom")x=(v[1][0]+v[2][0])/2,S=(v[1][1]+v[2][1])/2,b=S+C,g=b+5,d="center";else if(f==="rightTop")if(x=r?v[3][0]:v[1][0],S=r?v[3][1]:v[1][1],r)b=S-C,g=b-5,d="center";else D=x+C,m=D+5,d="top";else if(f==="rightBottom")if(x=v[2][0],S=v[2][1],r)b=S+C,g=b+5,d="center";else D=x+C,m=D+5,d="bottom";else if(f==="leftTop")if(x=v[0][0],S=r?v[0][1]:v[1][1],r)b=S-C,g=b-5,d="center";else D=x-C,m=D-5,d="right";else if(f==="leftBottom")if(x=r?v[1][0]:v[3][0],S=r?v[1][1]:v[2][1],r)b=S+C,g=b+5,d="center";else D=x-C,m=D-5,d="right";else if(x=(v[1][0]+v[2][0])/2,S=(v[1][1]+v[2][1])/2,r)b=S+C,g=b+5,d="center";else D=x+C,m=D+5,d="left";if(r)D=x,m=D;else b=S,g=b;y=[[x,S],[D,b]]}p.label={linePoints:y,x:m,y:g,verticalAlign:"middle",textAlign:d,inside:h}})}var gN=yt(Po,J9);function J9(n,e){n.eachSeriesByType(Po,function(r){var s=r.getData(),l=s.mapDimension("value"),u=r.get("sort"),f=Tt(r,e),c=ht(r.getBoxLayoutParams(),f.refContainer),p=yN(r),{width:v,height:h}=c,d=$9(s,u),{x:m,y:g}=c,y=p?[ee(r.get("minSize"),h),ee(r.get("maxSize"),h)]:[ee(r.get("minSize"),v),ee(r.get("maxSize"),v)],x=s.getDataExtent(l),S=r.get("min"),D=r.get("max");if(S==null)S=Math.min(x[0],0);if(D==null)D=x[1];var b=r.get("funnelAlign"),C=r.get("gap"),A=p?v:h,T=(A-C*(s.count()-1))/s.count(),E=function(F,z){if(p){var H=s.get(l,F)||0,G=Ze(H,[S,D],y,!0),Z=void 0;switch(b){case"top":Z=g;break;case"center":Z=g+(h-G)/2;break;case"bottom":Z=g+(h-G);break}return[[z,Z],[z,Z+G]]}var Q=s.get(l,F)||0,q=Ze(Q,[S,D],y,!0),ae;switch(b){case"left":ae=m;break;case"center":ae=m+(v-q)/2;break;case"right":ae=m+v-q;break}return[[ae,z],[ae+q,z]]};if(u==="ascending"){if(T=-T,C=-C,p)m+=v;else g+=h;d=d.reverse()}for(var w=0;w<d.length;w++){var L=d[w],M=d[w+1],P=s.getItemModel(L);if(p){var R=P.get(["itemStyle","width"]);if(R==null)R=T;else if(R=ee(R,v),u==="ascending")R=-R;var N=E(L,m),O=E(M,m+R);m+=R+C,s.setItemLayout(L,{points:N.concat(O.slice().reverse())})}else{var B=P.get(["itemStyle","height"]);if(B==null)B=T;else if(B=ee(B,h),u==="ascending")B=-B;var N=E(L,g),O=E(M,g+B);g+=B+C,s.setItemLayout(L,{points:N.concat(O.slice().reverse())})}}Q9(s)})}function yN(n){return n.get("orient")==="horizontal"}function C1(n){n.registerChartView(mN),n.registerSeriesModel(dN),n.registerLayout(gN),n.registerProcessor(Ao(Po))}var e7=0.3,t7=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r._dataGroup=new ve,r._initialized=!1,r}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(r,s,l,u){var f=this._dataGroup;this._progressiveEls=[],f.removeAll();var c=r.getData(),p=this._data,v=r.coordinateSystem,h=v.dimensions,d=_N(r);c.diff(p).add(m).update(g).remove(y).execute();function m(S){var D=xN(c,f,S,h,v);A1(D,c,S,d)}function g(S,D){var b=p.getItemGraphicEl(D);f.add(b);var C=SN(c,S,h,v);c.setItemGraphicEl(S,b),Oe(b,{shape:{points:C}},r,S),fr(b),A1(b,c,S,d)}function y(S){var D=p.getItemGraphicEl(S);f.remove(D)}if(!this._initialized){this._initialized=!0;var x=r7(v,r,function(){setTimeout(function(){f.removeClipPath()})});f.setClipPath(x)}this._data=c},e.prototype.incrementalPrepareRender=function(r,s,l){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(r,s,l){var u=s.getData(),f=s.coordinateSystem,c=this._progressiveEls=[];for(var p=r.start;p<r.end;p++){var v=xN(u,this._dataGroup,p,f.dimensions,f);v.incremental=Ri(s),A1(v,u,p,_N(s)),c.push(v)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(qe);function r7(n,e,r){var s=n.model,l=n.getRect(),u=new Ee({shape:{x:l.x,y:l.y,width:l.width,height:l.height}}),f=s.get("layout")==="horizontal"?"width":"height";return u.setShape(f,0),$e(u,{shape:{width:l.width,height:l.height}},e,r),u}function SN(n,e,r,s){var l=[];for(var u=0;u<r.length;u++){var f=r[u],c=n.get(n.mapDimension(f),e);if(!i7(c,s.getAxis(f).type))l.push(s.dataToPoint(c,f))}return l}function xN(n,e,r,s,l){var u=SN(n,r,s,l),f=new ur({shape:{points:u},z2:10});return e.add(f),n.setItemGraphicEl(r,f),f}function _N(n){var e=n.get("smooth",!0);return e===!0&&(e=e7),e=aa(e),oi(e)&&(e=0),{smooth:e}}function A1(n,e,r,s){n.useStyle(e.getItemVisual(r,"style")),n.style.fill=null,n.setShape("smooth",s.smooth);var l=e.getItemModel(r),u=l.getModel("emphasis");wt(n,l,"lineStyle"),it(n,u.get("focus"),u.get("blurScope"),u.get("disabled"))}function i7(n,e){return e==="category"?n==null:n==null||isNaN(n)}var DN=t7;var a7=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return e.prototype.getInitialData=function(r,s){return Vr(null,this,{useEncodeDefaulter:se(n7,null,this)})},e.prototype.getRawIndicesByActiveState=function(r){var s=this.coordinateSystem,l=this.getData(),u=[];return s.eachActiveState(l,function(f,c){if(r===f)u.push(l.getRawIndex(c))}),u},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:0.05,activeOpacity:1,lineStyle:{width:1,opacity:0.45,type:"solid"},emphasis:{label:{show:!1}},progressive:300,smooth:!1,animationEasing:"linear"},e}(et);function n7(n){var e=n.ecModel.getComponent("parallel",n.get("parallelIndex"));if(!e)return;var r={};return I(e.dimensions,function(s){var l=o7(s);r[s]=l}),r}function o7(n){return+n.replace("dim","")}var bN=a7;var s7=["lineStyle","opacity"],l7={seriesType:"parallel",reset:function(n,e){var r=n.coordinateSystem,s={normal:n.get(["lineStyle","opacity"]),active:n.get("activeOpacity"),inactive:n.get("inactiveOpacity")};return{progress:function(l,u){r.eachActiveState(u,function(f,c){var p=s[f];if(f==="normal"&&u.hasItemOption){var v=u.getItemModel(c).get(s7,!0);v!=null&&(p=v)}var h=u.ensureUniqueItemVisual(c,"style");h.opacity=p},l.start,l.end)}}}},CN=l7;function T1(n){u7(n),f7(n)}function u7(n){if(n.parallel)return;var e=!1;if(I(n.series,function(r){if(r&&r.type==="parallel")e=!0}),e)n.parallel=[{}]}function f7(n){var e=nt(n.parallelAxis);I(e,function(r){if(!ue(r))return;var s=r.parallelIndex||0,l=nt(n.parallel)[s];if(l&&l.parallelAxisDefault)Re(r,l.parallelAxisDefault,!1)})}var c7=5,p7=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,s,l){if(this._model=r,this._api=l,!this._handlers)this._handlers={},I(v7,function(u,f){l.getZr().on(f,this._handlers[f]=se(u,this))},this);bn(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(r,s){Co(this,"_throttledDispatchExpand"),I(this._handlers,function(l,u){s.getZr().off(u,l)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},e.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(V({type:"parallelAxisExpand"},r))},e.type="parallel",e}(ft),v7={mousedown:function(n){if(E1(this,"click"))this._mouseDownPoint=[n.offsetX,n.offsetY]},mouseup:function(n){var e=this._mouseDownPoint;if(E1(this,"click")&&e){var r=[n.offsetX,n.offsetY],s=Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2);if(s>c7)return;var l=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);l.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:l.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(this._mouseDownPoint||!E1(this,"mousemove"))return;var e=this._model,r=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),s=r.behavior;s==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(s==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:s==="jump"?null:{duration:0}})}};function E1(n,e){var r=n._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===e}var AN=p7;var jf="parallel",ly=jf,h7=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(r){var s=this.option;r&&Re(s,r,!0),this._initDimensions()},e.prototype.contains=function(r,s){var l=r.get("parallelIndex");return l!=null&&s.getComponent("parallel",l)===this},e.prototype.setAxisExpand=function(r){I(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(s){if(r.hasOwnProperty(s))this.option[s]=r[s]},this)},e.prototype._initDimensions=function(){var r=this.dimensions=[],s=this.parallelAxisIndex=[],l=Ke(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(u){return(u.get("parallelIndex")||0)===this.componentIndex},this);I(l,function(u){r.push("dim"+u.get("dim")),s.push(u.componentIndex)})},e.type=ly,e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-0.15,0.05,0.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Fe),TN=h7;var d7=function(n){k(e,n);function e(r,s,l,u,f){var c=n.call(this,r,s,l)||this;return c.type=u||"value",c.axisIndex=f,c}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Ur),EN=d7;function Wi(n,e,r,s,l,u){n=n||0;var f=Jn(r[1],-r[0]);if(l!=null)l=$f(l,[0,f]);if(u!=null)u=Math.max(u,l!=null?l:0);if(s==="all"){var c=Math.abs(Jn(e[1],-e[0]));c=$f(c,[0,f]),l=u=$f(c,[l,u]),s=0}e[0]=$f(e[0],r),e[1]=$f(e[1],r);var p=w1(e,s);e[s]+=n;var v=l||0,h=r.slice();p.sign<0?h[0]=Jn(h[0],v):h[1]=Jn(h[1],-v),e[s]=$f(e[s],h);var d=w1(e,s);if(l!=null&&(d.sign!==p.sign||d.span<l))e[1-s]=Jn(e[s],p.sign*l);if(d=w1(e,s),u!=null&&d.span>u)e[1-s]=Jn(e[s],d.sign*u);return e}function w1(n,e){var r=n[e]-n[1-e];return{span:Math.abs(r),sign:r>0?-1:r<0?1:e?-1:1}}function $f(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var m7=function(){function n(e,r,s){this.type=jf,this._axesMap=re(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,r,s)}return n.prototype._init=function(e,r,s){var{dimensions:l,parallelAxisIndex:u}=e;I(l,function(f,c){var p=u[c],v=r.getComponent("parallelAxis",p),h=Ss(v),d=this._axesMap.set(f,new EN(f,Ds(v,h,!1),[0,0],h,p));d.onBand=Sn(d.scale,v),d.inverse=v.get("inverse"),v.axis=d,d.model=v,d.coordinateSystem=v.coordinateSystem=this},this)},n.prototype.update=function(e,r){I(this.dimensions,function(s){var l=this._axesMap.get(s);Ui(l,Ga),Mn(l)},this)},n.prototype.containPoint=function(e){var r=this._makeLayoutInfo(),{axisBase:s,layoutBase:l,pixelDimIndex:u}=r,f=e[1-u],c=e[u];return f>=s&&f<=s+r.axisLength&&c>=l&&c<=l+r.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype.resize=function(e,r){var s=Tt(e,r).refContainer;this._rect=ht(e.getBoxLayoutParams(),s),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,r=this._rect,s=["x","y"],l=["width","height"],u=e.get("layout"),f=u==="horizontal"?0:1,c=r[l[f]],p=[0,c],v=this.dimensions.length,h=uy(e.get("axisExpandWidth"),p),d=uy(e.get("axisExpandCount")||0,[0,v]),m=e.get("axisExpandable")&&v>3&&v>d&&d>1&&h>0&&c>0,g=e.get("axisExpandWindow"),y;if(!g){y=uy(h*(d-1),p);var x=e.get("axisExpandCenter")||kr(v/2);g=[h*x-y/2],g[1]=g[0]+y}else y=uy(g[1]-g[0],p),g[1]=g[0]+y;var S=(c-y)/(v-d);S<3&&(S=0);var D=[kr(Ye(g[0]/h,1))+1,ra(Ye(g[1]/h,1))-1],b=S/h*g[0];return{layout:u,pixelDimIndex:f,layoutBase:r[s[f]],layoutLength:c,axisBase:r[s[1-f]],axisLength:r[l[1-f]],axisExpandable:m,axisExpandWidth:h,axisCollapseWidth:S,axisExpandWindow:g,axisCount:v,winInnerIndices:D,axisExpandWindow0Pos:b}},n.prototype._layoutAxes=function(){var e=this._rect,r=this._axesMap,s=this.dimensions,l=this._makeLayoutInfo(),u=l.layout;r.each(function(f){var c=[0,l.axisLength],p=f.inverse?1:0;f.setExtent(c[p],c[1-p])}),I(s,function(f,c){var p=(l.axisExpandable?y7:g7)(c,l),v={horizontal:{x:p.position,y:l.axisLength},vertical:{x:0,y:p.position}},h={horizontal:Vu/2,vertical:0},d=[v[u].x+e.x,v[u].y+e.y],m=h[u],g=Ct();en(g,g,m),Zi(g,g,d),this._axesLayout[f]={position:d,rotation:m,transform:g,axisNameAvailableWidth:p.axisNameAvailableWidth,axisLabelShow:p.axisLabelShow,nameTruncateMaxWidth:p.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(e),r)},n.prototype.eachActiveState=function(e,r,s,l){s==null&&(s=0),l==null&&(l=e.count());var u=this._axesMap,f=this.dimensions,c=[],p=[];I(f,function(S){c.push(e.mapDimension(S)),p.push(u.get(S).model)});var v=this.hasAxisBrushed();for(var h=s;h<l;h++){var d=void 0;if(!v)d="normal";else{d="active";var m=e.getValues(c,h);for(var g=0,y=f.length;g<y;g++){var x=p[g].getActiveState(m[g]);if(x==="inactive"){d="inactive";break}}}r(d,h)}},n.prototype.hasAxisBrushed=function(){var e=this.dimensions,r=this._axesMap,s=!1;for(var l=0,u=e.length;l<u;l++)if(r.get(e[l]).model.getActiveState()!=="normal")s=!0;return s},n.prototype.axisCoordToPoint=function(e,r){var s=this._axesLayout[r];return $r([e,0],s.transform)},n.prototype.getAxisLayout=function(e){return le(this._axesLayout[e])},n.prototype.getSlidedAxisExpandWindow=function(e){var r=this._makeLayoutInfo(),s=r.pixelDimIndex,l=r.axisExpandWindow.slice(),u=l[1]-l[0],f=[0,r.axisExpandWidth*(r.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:l};var c=e[s]-r.layoutBase-r.axisExpandWindow0Pos,p,v="slide",h=r.axisCollapseWidth,d=this._model.get("axisExpandSlideTriggerArea"),m=d[0]!=null;if(h){if(m&&h&&c<u*d[0])v="jump",p=c-u*d[2];else if(m&&h&&c>u*(1-d[0]))v="jump",p=c-u*(1-d[2]);else(p=c-u*d[1])>=0&&(p=c-u*(1-d[1]))<=0&&(p=0);p*=r.axisExpandWidth/h,p?Wi(p,l,f,"all"):v="none"}else{var g=l[1]-l[0],y=f[1]*c/g;l=[Be(0,y-g/2)],l[1]=lt(f[1],l[0]+g),l[0]=l[1]-g}return{axisExpandWindow:l,behavior:v}},n}();function uy(n,e){return lt(Be(n,e[0]),e[1])}function g7(n,e){var r=e.layoutLength/(e.axisCount-1);return{position:r*n,axisNameAvailableWidth:r,axisLabelShow:!0}}function y7(n,e){var{layoutLength:r,axisExpandWidth:s,axisCount:l,axisCollapseWidth:u,winInnerIndices:f}=e,c,p=u,v=!1,h;if(n<f[0])c=n*u,h=u;else if(n<=f[1])c=e.axisExpandWindow0Pos+n*s-e.axisExpandWindow[0],p=s,v=!0;else c=r-(l-1-n)*u,h=u;return{position:c,axisNameAvailableWidth:p,axisLabelShow:v,nameTruncateMaxWidth:h}}var wN=m7;function x7(n,e){var r=[];return n.eachComponent(ly,function(s,l){var u=new wN(s,n,e);u.name="parallel_"+l,u.resize(s,e),s.coordinateSystem=u,u.model=s,r.push(u)}),n.eachSeries(function(s){if(s.get("coordinateSystem")===jf){var l=s.getReferringComponents(ly,gt).models[0],u=s.coordinateSystem=l.coordinateSystem;if(u)I(u.dimensions,function(f){ca(u.getAxis(f),s,jf)})}}),r}var _7={create:x7},IN=_7;var MN=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.activeIntervals=[],r}return e.prototype.getAreaSelectStyle=function(){return li([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(r){var s=this.activeIntervals=le(r);if(s)for(var l=s.length-1;l>=0;l--)Rt(s[l])},e.prototype.getActiveState=function(r){var s=this.activeIntervals;if(!s.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(s.length===1){var l=s[0];if(l[0]<=r&&r<=l[1])return"active"}else for(var u=0,f=s.length;u<f;u++)if(s[u][0]<=r&&r<=s[u][1])return"active";return"inactive"},e}(Fe);xt(MN,In);var I1=MN;var fu=!0,{min:dv,max:Qf,pow:S7}=Math,D7=1e4,b7=6,C7=6,LN="globalPan",A7={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},T7={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},PN={brushStyle:{lineWidth:2,stroke:X.color.backgroundTint,fill:X.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},E7=0,w7=function(n){k(e,n);function e(r){var s=n.call(this)||this;return s._track=[],s._covers=[],s._handlers={},s._zr=r,s.group=new ve,s._uid="brushController_"+E7++,I(N7,function(l,u){this._handlers[u]=se(l,this)},s),s}return e.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},e.prototype._doEnableBrush=function(r){var s=this._zr;if(!this._enableGlobalPan)RR(s,LN,this._uid);I(this._handlers,function(l,u){s.on(u,l)}),this._brushType=r.brushType,this._brushOption=Re(le(PN),r,!0)},e.prototype._doDisableBrush=function(){var r=this._zr;OR(r,LN,this._uid),I(this._handlers,function(s,l){r.off(l,s)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(r){if(r&&r.length){var s=this._panels={};I(r,function(l){s[l.panelId]=le(l)})}else this._panels=null;return this},e.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var s=this.group;return this._zr.add(s),s.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=s.getLocalTransform(),this},e.prototype.updateCovers=function(r){r=W(r,function(m){return Re(le(PN),m,!0)});var s="\x00-brush-index-",l=this._covers,u=this._covers=[],f=this,c=this._creatingCover;return new Fi(l,r,v,p).add(h).update(h).remove(d).execute(),this;function p(m,g){return(m.id!=null?m.id:s+g)+"-"+m.brushType}function v(m,g){return p(m.__brushOption,g)}function h(m,g){var y=r[m];if(g!=null&&l[g]===c)u[m]=l[g];else{var x=u[m]=g!=null?(l[g].__brushOption=y,l[g]):FN(f,BN(f,y));N1(f,x)}}function d(m){if(l[m]!==c)f.group.remove(l[m])}},e.prototype.unmount=function(){return this.enableBrush(!1),M1(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(_r);function BN(n,e){var r=fy[e.brushType].createCover(n,e);return r.__brushOption=e,VN(r,e),n.group.add(r),r}function FN(n,e){var r=k1(e);if(r.endCreating)r.endCreating(n,e),VN(e,e.__brushOption);return e}function zN(n,e){var r=e.__brushOption;k1(e).updateCoverShape(n,e,r.range,r)}function VN(n,e){var r=e.z;r==null&&(r=D7),n.traverse(function(s){s.z=r,s.z2=r})}function N1(n,e){k1(e).updateCommon(n,e),zN(n,e)}function k1(n){return fy[n.__brushOption.brushType]}function B1(n,e,r){var s=n._panels;if(!s)return fu;var l,u=n._transform;return I(s,function(f){f.isTargetByCursor(e,r,u)&&(l=f)}),l}function UN(n,e){var r=n._panels;if(!r)return fu;var s=e.__brushOption.panelId;return s!=null?r[s]:fu}function M1(n){var e=n._covers,r=e.length;return I(e,function(s){n.group.remove(s)},n),e.length=0,!!r}function cu(n,e){var r=W(n._covers,function(s){var l=s.__brushOption,u=le(l.range);return{brushType:l.brushType,panelId:l.panelId,range:u}});n.trigger("brush",{areas:r,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function I7(n){var e=n._track;if(!e.length)return!1;var r=e[e.length-1],s=e[0],l=r[0]-s[0],u=r[1]-s[1],f=S7(l*l+u*u,0.5);return f>b7}function GN(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function HN(n,e,r,s){var l=new ve;return l.add(new Ee({name:"main",style:F1(r),silent:!0,draggable:!0,cursor:"move",drift:Ae(RN,n,e,l,["n","s","w","e"]),ondragend:Ae(cu,e,{isEnd:!0})})),I(s,function(u){l.add(new Ee({name:u.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ae(RN,n,e,l,u),ondragend:Ae(cu,e,{isEnd:!0})}))}),l}function WN(n,e,r,s){var l=s.brushStyle.lineWidth||0,u=Qf(l,C7),f=r[0][0],c=r[1][0],p=f-l/2,v=c-l/2,h=r[0][1],d=r[1][1],m=h-u+l/2,g=d-u+l/2,y=h-f,x=d-c,S=y+l,D=x+l;if(Ro(n,e,"main",f,c,y,x),s.transformable)Ro(n,e,"w",p,v,u,D),Ro(n,e,"e",m,v,u,D),Ro(n,e,"n",p,v,S,u),Ro(n,e,"s",p,g,S,u),Ro(n,e,"nw",p,v,u,u),Ro(n,e,"ne",m,v,u,u),Ro(n,e,"sw",p,g,u,u),Ro(n,e,"se",m,g,u,u)}function L1(n,e){var r=e.__brushOption,s=r.transformable,l=e.childAt(0);l.useStyle(F1(r)),l.attr({silent:!s,cursor:s?"move":"default"}),I([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(u){var f=e.childOfName(u.join("")),c=u.length===1?P1(n,u[0]):L7(n,u);f&&f.attr({silent:!s,invisible:!s,cursor:s?T7[c]+"-resize":null})})}function Ro(n,e,r,s,l,u,f){var c=e.childOfName(r);c&&c.setShape(R7(z1(n,e,[[s,l],[s+u,l+f]])))}function F1(n){return pe({strokeNoScale:!0},n.brushStyle)}function YN(n,e,r,s){var l=[dv(n,r),dv(e,s)],u=[Qf(n,r),Qf(e,s)];return[[l[0],u[0]],[l[1],u[1]]]}function M7(n){return so(n.group)}function P1(n,e){var r={w:"left",e:"right",n:"top",s:"bottom"},s={left:"w",right:"e",top:"n",bottom:"s"},l=Ml(r[e],M7(n));return s[l]}function L7(n,e){var r=[P1(n,e[0]),P1(n,e[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function RN(n,e,r,s,l,u){var f=r.__brushOption,c=n.toRectRange(f.range),p=XN(e,l,u);I(s,function(v){var h=A7[v];c[h[0]][h[1]]+=p[h[0]]}),f.range=n.fromRectRange(YN(c[0][0],c[1][0],c[0][1],c[1][1])),N1(e,r),cu(e,{isEnd:!1})}function P7(n,e,r,s){var l=e.__brushOption.range,u=XN(n,r,s);I(l,function(f){f[0]+=u[0],f[1]+=u[1]}),N1(n,e),cu(n,{isEnd:!1})}function XN(n,e,r){var s=n.group,l=s.transformCoordToLocal(e,r),u=s.transformCoordToLocal(0,0);return[l[0]-u[0],l[1]-u[1]]}function z1(n,e,r){var s=UN(n,e);return s&&s!==fu?s.clipPath(r,n._transform):le(r)}function R7(n){var e=dv(n[0][0],n[1][0]),r=dv(n[0][1],n[1][1]),s=Qf(n[0][0],n[1][0]),l=Qf(n[0][1],n[1][1]);return{x:e,y:r,width:s-e,height:l-r}}function O7(n,e,r){if(!n._brushType||k7(n,e.offsetX,e.offsetY))return;var{_zr:s,_covers:l}=n,u=B1(n,e,r);if(!n._dragging)for(var f=0;f<l.length;f++){var c=l[f].__brushOption;if(u&&(u===fu||c.panelId===u.panelId)&&fy[c.brushType].contain(l[f],r[0],r[1]))return}u&&s.setCursorStyle("crosshair")}function R1(n){var e=n.event;e.preventDefault&&e.preventDefault()}function O1(n,e,r){return n.childOfName("main").contain(e,r)}function ZN(n,e,r,s){var{_creatingCover:l,_creatingPanel:u,_brushOption:f}=n,c;if(n._track.push(r.slice()),I7(n)||l){if(u&&!l){f.brushMode==="single"&&M1(n);var p=le(f);p.brushType=ON(p.brushType,u),p.panelId=u===fu?null:u.panelId,l=n._creatingCover=BN(n,p),n._covers.push(l)}if(l){var v=fy[ON(n._brushType,u)],h=l.__brushOption;if(h.range=v.getCreatingRange(z1(n,l,n._track)),s)FN(n,l),v.updateCommon(n,l);zN(n,l),c={isEnd:s}}}else if(s&&f.brushMode==="single"&&f.removeOnClick){if(B1(n,e,r)&&M1(n))c={isEnd:s,removeOnClick:!0}}return c}function ON(n,e){if(n==="auto")return e.defaultBrushType;return n}var N7={mousedown:function(n){if(this._dragging)NN(this,n);else if(!n.target||!n.target.draggable){R1(n);var e=this.group.transformCoordToLocal(n.offsetX,n.offsetY);this._creatingCover=null;var r=this._creatingPanel=B1(this,n,e);if(r)this._dragging=!0,this._track=[e.slice()]}},mousemove:function(n){var{offsetX:e,offsetY:r}=n,s=this.group.transformCoordToLocal(e,r);if(O7(this,n,s),this._dragging){R1(n);var l=ZN(this,n,s,!1);l&&cu(this,l)}},mouseup:function(n){NN(this,n)}};function NN(n,e){if(n._dragging){R1(e);var{offsetX:r,offsetY:s}=e,l=n.group.transformCoordToLocal(r,s),u=ZN(n,e,l,!0);n._dragging=!1,n._track=[],n._creatingCover=null,u&&cu(n,u)}}function k7(n,e,r){var s=n._zr;return e<0||e>s.getWidth()||r<0||r>s.getHeight()}var fy={lineX:kN(0),lineY:kN(1),rect:{createCover:function(n,e){function r(s){return s}return HN({toRectRange:r,fromRectRange:r},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=GN(n);return YN(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,r,s){WN(n,e,r,s)},updateCommon:L1,contain:O1},polygon:{createCover:function(n,e){var r=new ve;return r.add(new ur({name:"main",style:F1(e),silent:!0})),r},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new rr({name:"main",draggable:!0,drift:Ae(P7,n,e),ondragend:Ae(cu,n,{isEnd:!0})}))},updateCoverShape:function(n,e,r,s){e.childAt(0).setShape({points:z1(n,e,r)})},updateCommon:L1,contain:O1}};function kN(n){return{createCover:function(e,r){return HN({toRectRange:function(s){var l=[s,[0,100]];return n&&l.reverse(),l},fromRectRange:function(s){return s[n]}},e,r,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var r=GN(e),s=dv(r[0][n],r[1][n]),l=Qf(r[0][n],r[1][n]);return[s,l]},updateCoverShape:function(e,r,s,l){var u,f=UN(e,r);if(f!==fu&&f.getLinearBrushOtherExtent)u=f.getLinearBrushOtherExtent(n);else{var c=e._zr;u=[0,[c.getWidth(),c.getHeight()][1-n]]}var p=[s,u];n&&p.reverse(),WN(e,r,p,l)},updateCommon:L1,contain:O1}}var KN=w7;function qN(n){return n=V1(n),function(e){return qx(e,n)}}function jN(n,e){return n=V1(n),function(r){var s=e!=null?e:r,l=s?n.width:n.height,u=s?n.x:n.y;return[u,u+(l||0)]}}function $N(n,e,r){var s=V1(n);return function(l,u){return s.contain(u[0],u[1])&&!Bg(l,e,r)}}function V1(n){return De.create(n)}var F7=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,s){n.prototype.init.apply(this,arguments),(this._brushController=new KN(s.getZr())).on("brush",se(this._onBrush,this))},e.prototype.render=function(r,s,l,u){if(z7(r,s,u))return;this.axisModel=r,this.api=l,this.group.removeAll();var f=this._axisGroup;if(this._axisGroup=new ve,this.group.add(this._axisGroup),!r.get("show"))return;var c=U7(r,s),p=c.coordinateSystem,v=r.getAreaSelectStyle(),h=v.width,d=r.axis.dim,m=p.getAxisLayout(d),g=V({strokeContainThreshold:h},m),y=new Pr(r,l,g);y.build(),this._axisGroup.add(y.group),this._refreshBrushController(g,v,r,c,h,l),lo(f,this._axisGroup,r)},e.prototype._refreshBrushController=function(r,s,l,u,f,c){var p=l.axis.getExtent(),v=p[1]-p[0],h=Math.min(30,Math.abs(v)*0.1),d=De.create({x:p[0],y:-f/2,width:v,height:f});d.x-=h,d.width+=2*h,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:qN(d),isTargetByCursor:$N(d,c,u),getLinearBrushOtherExtent:jN(d,0)}]).enableBrush({brushType:"lineX",brushStyle:s,removeOnClick:!0}).updateCovers(V7(l))},e.prototype._onBrush=function(r){var s=r.areas,l=this.axisModel,u=l.axis,f=W(s,function(c){return[u.coordToData(c.range[0],!0),u.coordToData(c.range[1],!0)]});if(!l.option.realtime===r.isEnd||r.removeOnClick)this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:l.id,intervals:f})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(ft);function z7(n,e,r){return r&&r.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:r})[0]===n}function V7(n){var e=n.axis;return W(n.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(r[0],!0),e.dataToCoord(r[1],!0)]}})}function U7(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}var QN=F7;var G7={type:"axisAreaSelect",event:"axisAreaSelected"};function JN(n){n.registerAction(G7,function(e,r){r.eachComponent({mainType:"parallelAxis",query:e},function(s){s.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,r){r.eachComponent({mainType:"parallel",query:e},function(s){s.setAxisExpand(e)})})}var H7={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:0.3},realtime:!0,z:10};function mv(n){n.registerComponentView(AN),n.registerComponentModel(TN),n.registerCoordinateSystem("parallel",IN),n.registerPreprocessor(T1),n.registerComponentModel(I1),n.registerComponentView(QN),qa(n,"parallel",I1,H7),JN(n)}function U1(n){It(mv),n.registerChartView(DN),n.registerSeriesModel(bN),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,CN)}var Yi="sankey",W7=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,s){var l=r.edges||r.links||[],u=r.data||r.nodes||[],f=r.levels||[];this.levelModels=[];var c=this.levelModels;for(var p=0;p<f.length;p++)if(f[p].depth!=null&&f[p].depth>=0)c[f[p].depth]=new Je(f[p],this,s);var v=cv(u,l,this,!0,h);return v.data;function h(d,m){d.wrapMethod("getItemModel",function(g,y){var x=g.parentModel,S=x.getData().getItemLayout(y);if(S){var D=S.depth,b=x.levelModels[D];if(b)g.parentModel=b}return g}),m.wrapMethod("getItemModel",function(g,y){var x=g.parentModel,S=x.getGraph().getEdgeByIndex(y),D=S.node1.getLayout();if(D){var b=D.depth,C=x.levelModels[b];if(C)g.parentModel=C}return g})}},e.prototype.setNodePosition=function(r,s){var l=this.option.data||this.option.nodes,u=l[r];u.localX=s[0],u.localY=s[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(r,s,l){function u(g){return isNaN(g)||g==null}if(l==="edge"){var f=this.getDataParams(r,l),{data:c,value:p}=f,v=c.source+" -- "+c.target;return Wt("nameValue",{name:v,value:p,noValue:u(p)})}else{var h=this.getGraph().getNodeByIndex(r),d=h.getLayout().value,m=this.getDataParams(r,l).data.name;return Wt("nameValue",{name:m!=null?m+"":null,value:d,noValue:u(d)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(r,s){var l=n.prototype.getDataParams.call(this,r,s);if(l.value==null&&s==="node"){var u=this.getGraph().getNodeByIndex(r),f=u.getLayout().value;l.value=f}return l},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+Yi,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:X.color.neutral50,opacity:0.2,curveness:0.5},emphasis:{label:{show:!0},lineStyle:{opacity:0.5}},select:{itemStyle:{borderColor:X.color.primary}},animationEasing:"linear",animationDuration:1000},e}(et),ek=W7;var Y7=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),X7=function(n){k(e,n);function e(r){return n.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new Y7},e.prototype.buildPath=function(r,s){var l=s.extent;if(r.moveTo(s.x1,s.y1),r.bezierCurveTo(s.cpx1,s.cpy1,s.cpx2,s.cpy2,s.x2,s.y2),s.orient==="vertical")r.lineTo(s.x2+l,s.y2),r.bezierCurveTo(s.cpx2+l,s.cpy2,s.cpx1+l,s.cpy1,s.x1+l,s.y1);else r.lineTo(s.x2,s.y2+l),r.bezierCurveTo(s.cpx2,s.cpy2+l,s.cpx1,s.cpy1+l,s.x1,s.y1+l);r.closePath()},e.prototype.highlight=function(){Ni(this)},e.prototype.downplay=function(){ki(this)},e}(xe),Z7=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=Yi,r._mainGroup=new ve,r}return e.prototype.init=function(r,s){this._controller=new Ln(s.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(r,s,l){var u=r.getGraph(),f=this._mainGroup,c=r.layoutInfo,{width:p,height:v}=c,h=r.getData(),d=r.getData("edge"),m=r.get("orient");if(f.removeAll(),f.x=c.x,f.y=c.y,this._updateViewCoordSys(r,l),zf(r,l,this._controller,Kg(f),null),u.eachEdge(function(g){var y=new X7,x=ye(y);x.dataIndex=g.dataIndex,x.seriesIndex=r.seriesIndex,x.dataType="edge";var S=g.getModel(),D=S.getModel("lineStyle"),b=D.get("curveness"),C=g.node1.getLayout(),A=g.node1.getModel(),T=A.get("localX"),E=A.get("localY"),w=g.node2.getLayout(),L=g.node2.getModel(),M=L.get("localX"),P=L.get("localY"),R=g.getLayout(),N,O,B,F,z,H,G,Z;if(y.shape.extent=Math.max(1,R.dy),y.shape.orient=m,m==="vertical")N=(T!=null?T*p:C.x)+R.sy,O=(E!=null?E*v:C.y)+C.dy,B=(M!=null?M*p:w.x)+R.ty,F=P!=null?P*v:w.y,z=N,H=O*(1-b)+F*b,G=B,Z=O*b+F*(1-b);else N=(T!=null?T*p:C.x)+C.dx,O=(E!=null?E*v:C.y)+R.sy,B=M!=null?M*p:w.x,F=(P!=null?P*v:w.y)+R.ty,z=N*(1-b)+B*b,H=O,G=N*b+B*(1-b),Z=F;y.setShape({x1:N,y1:O,x2:B,y2:F,cpx1:z,cpy1:H,cpx2:G,cpy2:Z}),y.useStyle(D.getItemStyle()),tk(y.style,m,g);var Q=""+S.get("value"),q=St(S,"edgeLabel");Mt(y,q,{labelFetcher:{getFormattedLabel:function(ne,de,ze,dt,ke,me){return r.getFormattedLabel(ne,de,"edge",dt,Jt(ke,q.normal&&q.normal.get("formatter"),Q),me)}},labelDataIndex:g.dataIndex,defaultText:Q}),y.setTextConfig({position:"inside"});var ae=S.getModel("emphasis");wt(y,S,"lineStyle",function(ne){var de=ne.getItemStyle();return tk(de,m,g),de}),f.add(y),d.setItemGraphicEl(g.dataIndex,y);var ce=ae.get("focus");it(y,ce==="adjacency"?g.getAdjacentDataIndices():ce==="trajectory"?g.getTrajectoryDataIndices():ce,ae.get("blurScope"),ae.get("disabled"))}),u.eachNode(function(g){var y=g.getLayout(),x=g.getModel(),S=x.get("localX"),D=x.get("localY"),b=x.getModel("emphasis"),C=x.get(["itemStyle","borderRadius"])||0,A=new Ee({shape:{x:S!=null?S*p:y.x,y:D!=null?D*v:y.y,width:y.dx,height:y.dy,r:C},style:x.getModel("itemStyle").getItemStyle(),z2:10});Mt(A,St(x),{labelFetcher:{getFormattedLabel:function(E,w){return r.getFormattedLabel(E,w,"node")}},labelDataIndex:g.dataIndex,defaultText:g.id}),A.disableLabelAnimation=!0,A.setStyle("fill",g.getVisual("color")),A.setStyle("decal",g.getVisual("style").decal),wt(A,x),f.add(A),h.setItemGraphicEl(g.dataIndex,A),ye(A).dataType="node";var T=b.get("focus");it(A,T==="adjacency"?g.getAdjacentDataIndices():T==="trajectory"?g.getTrajectoryDataIndices():T,b.get("blurScope"),b.get("disabled"))}),h.eachItemGraphicEl(function(g,y){var x=h.getItemModel(y);if(x.get("draggable"))g.drift=function(S,D){this.shape.x+=S,this.shape.y+=D,this.dirty(),l.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:h.getRawIndex(y),localX:this.shape.x/p,localY:this.shape.y/v})},g.draggable=!0,g.cursor="move"}),!this._data&&r.isAnimationEnabled())f.setClipPath(K7(f.getBoundingRect(),r,function(){f.removeClipPath()}));this._data=r.getData(),this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(r,s,l){Mo(this.group,Hi,s.coordinateSystem,null)},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype._updateViewCoordSys=function(r,s){var l=r.layoutInfo,u=r.coordinateSystem=Uf(r,s,l.x,l.y,l.width,l.height);Mo(this.group,Hi,u,this._firstRender?null:r)},e.type=Yi,e}(qe);function tk(n,e,r){switch(n.fill){case"source":n.fill=r.node1.getVisual("color"),n.decal=r.node1.getVisual("style").decal;break;case"target":n.fill=r.node2.getVisual("color"),n.decal=r.node2.getVisual("style").decal;break;case"gradient":var s=r.node1.getVisual("color"),l=r.node2.getVisual("color");if(K(s)&&K(l))n.fill=new os(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:s,offset:0},{color:l,offset:1}])}}function K7(n,e,r){var s=new Ee({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return $e(s,{shape:{width:n.width+20}},e,r),s}var rk=Z7;var ik=yt(Yi,q7);function q7(n,e){n.eachSeriesByType(Yi,function(r){var s=r.get("nodeWidth"),l=r.get("nodeGap"),u=Tt(r,e).refContainer,f=ht(r.getBoxLayoutParams(),u);r.layoutInfo=f;var{width:c,height:p}=f,v=r.getGraph(),{nodes:h,edges:d}=v;$7(h);var m=Ke(h,function(S){return S.getLayout().value===0}),g=m.length!==0?0:r.get("layoutIterations"),y=r.get("orient"),x=r.get("nodeAlign");j7(h,d,s,l,c,p,g,y,x)})}function j7(n,e,r,s,l,u,f,c,p){Q7(n,e,r,l,u,c,p),rX(n,e,u,l,s,f,c),cX(n,c)}function $7(n){I(n,function(e){var r=Rs(e.outEdges,cy),s=Rs(e.inEdges,cy),l=e.getValue()||0,u=Math.max(r,s,l);e.setLayout({value:u},!0)})}function Q7(n,e,r,s,l,u,f){var c=[],p=[],v=[],h=[],d=0;for(var m=0;m<e.length;m++)c[m]=1;for(var m=0;m<n.length;m++)if(p[m]=n[m].inEdges.length,p[m]===0)v.push(n[m]);var g=-1;while(v.length){for(var y=0;y<v.length;y++){var x=v[y],S=x.hostGraph.data.getRawDataItem(x.dataIndex),D=S.depth!=null&&S.depth>=0;if(D&&S.depth>g)g=S.depth;x.setLayout({depth:D?S.depth:d},!0),u==="vertical"?x.setLayout({dy:r},!0):x.setLayout({dx:r},!0);for(var b=0;b<x.outEdges.length;b++){var C=x.outEdges[b],A=be(e,C);c[A]=0;var T=C.node2,E=be(n,T);if(--p[E]===0&&be(h,T)<0)h.push(T)}}++d,v=h,h=[]}for(var m=0;m<c.length;m++)if(c[m]===1)throw Error("Sankey is a DAG, the original data has cycle!");var w=g>d-1?g:d-1;if(f&&f!=="left")J7(n,f,u,w);var L=u==="vertical"?(l-r)/w:(s-r)/w;tX(n,L,u)}function ak(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function J7(n,e,r,s){if(e==="right"){var l=[],u=n,f=0;while(u.length){for(var c=0;c<u.length;c++){var p=u[c];p.setLayout({skNodeHeight:f},!0);for(var v=0;v<p.inEdges.length;v++){var h=p.inEdges[v];if(be(l,h.node1)<0)l.push(h.node1)}}u=l,l=[],++f}I(n,function(d){if(!ak(d))d.setLayout({depth:Math.max(0,s-d.getLayout().skNodeHeight)},!0)})}else if(e==="justify")eX(n,s)}function eX(n,e){I(n,function(r){if(!ak(r)&&!r.outEdges.length)r.setLayout({depth:e},!0)})}function tX(n,e,r){I(n,function(s){var l=s.getLayout().depth*e;r==="vertical"?s.setLayout({y:l},!0):s.setLayout({x:l},!0)})}function rX(n,e,r,s,l,u,f){var c=iX(n,f);aX(c,e,r,s,l,f),G1(c,l,r,s,f);for(var p=1;u>0;u--)p*=0.99,nX(c,p,f),G1(c,l,r,s,f),fX(c,p,f),G1(c,l,r,s,f)}function iX(n,e){var r=[],s=e==="vertical"?"y":"x",l=Wc(n,function(u){return u.getLayout()[s]});return Rt(l.keys),I(l.keys,function(u){r.push(l.buckets.get(u))}),r}function aX(n,e,r,s,l,u){var f=1/0;I(n,function(c){var p=c.length,v=0;I(c,function(d){v+=d.getLayout().value});var h=u==="vertical"?(s-(p-1)*l)/v:(r-(p-1)*l)/v;if(h<f)f=h}),I(n,function(c){I(c,function(p,v){var h=p.getLayout().value*f;if(u==="vertical")p.setLayout({x:v},!0),p.setLayout({dx:h},!0);else p.setLayout({y:v},!0),p.setLayout({dy:h},!0)})}),I(e,function(c){var p=+c.getValue()*f;c.setLayout({dy:p},!0)})}function G1(n,e,r,s,l){var u=l==="vertical"?"x":"y";I(n,function(f){f.sort(function(x,S){return x.getLayout()[u]-S.getLayout()[u]});var c,p,v,h=0,d=f.length,m=l==="vertical"?"dx":"dy";for(var g=0;g<d;g++){if(p=f[g],v=h-p.getLayout()[u],v>0)c=p.getLayout()[u]+v,l==="vertical"?p.setLayout({x:c},!0):p.setLayout({y:c},!0);h=p.getLayout()[u]+p.getLayout()[m]+e}var y=l==="vertical"?s:r;if(v=h-e-y,v>0){c=p.getLayout()[u]-v,l==="vertical"?p.setLayout({x:c},!0):p.setLayout({y:c},!0),h=c;for(var g=d-2;g>=0;--g){if(p=f[g],v=p.getLayout()[u]+p.getLayout()[m]+e-h,v>0)c=p.getLayout()[u]-v,l==="vertical"?p.setLayout({x:c},!0):p.setLayout({y:c},!0);h=p.getLayout()[u]}}})}function nX(n,e,r){I(n.slice().reverse(),function(s){I(s,function(l){if(l.outEdges.length){var u=Rs(l.outEdges,oX,r)/Rs(l.outEdges,cy);if(isNaN(u)){var f=l.outEdges.length;u=f?Rs(l.outEdges,sX,r)/f:0}if(r==="vertical"){var c=l.getLayout().x+(u-Os(l,r))*e;l.setLayout({x:c},!0)}else{var p=l.getLayout().y+(u-Os(l,r))*e;l.setLayout({y:p},!0)}}})})}function oX(n,e){return Os(n.node2,e)*n.getValue()}function sX(n,e){return Os(n.node2,e)}function lX(n,e){return Os(n.node1,e)*n.getValue()}function uX(n,e){return Os(n.node1,e)}function Os(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function cy(n){return n.getValue()}function Rs(n,e,r){var s=0,l=n.length,u=-1;while(++u<l){var f=+e(n[u],r);if(!isNaN(f))s+=f}return s}function fX(n,e,r){I(n,function(s){I(s,function(l){if(l.inEdges.length){var u=Rs(l.inEdges,lX,r)/Rs(l.inEdges,cy);if(isNaN(u)){var f=l.inEdges.length;u=f?Rs(l.inEdges,uX,r)/f:0}if(r==="vertical"){var c=l.getLayout().x+(u-Os(l,r))*e;l.setLayout({x:c},!0)}else{var p=l.getLayout().y+(u-Os(l,r))*e;l.setLayout({y:p},!0)}}})})}function cX(n,e){var r=e==="vertical"?"x":"y";I(n,function(s){s.outEdges.sort(function(l,u){return l.node2.getLayout()[r]-u.node2.getLayout()[r]}),s.inEdges.sort(function(l,u){return l.node1.getLayout()[r]-u.node1.getLayout()[r]})}),I(n,function(s){var l=0,u=0;I(s.outEdges,function(f){f.setLayout({sy:l},!0),l+=f.getLayout().dy}),I(s.inEdges,function(f){f.setLayout({ty:u},!0),u+=f.getLayout().dy})})}var nk=yt(Yi,pX);function pX(n){n.eachSeriesByType(Yi,function(e){var r=e.getGraph(),{nodes:s,edges:l}=r;if(s.length){var u=1/0,f=-1/0;I(s,function(c){var p=c.getLayout().value;if(p<u)u=p;if(p>f)f=p}),I(s,function(c){var p=new qt({type:"color",mappingMethod:"linear",dataExtent:[u,f],visual:e.get("color")}),v=p.mapValueToVisual(c.getLayout().value),h=c.getModel().get(["itemStyle","color"]);if(h!=null)c.setVisual("color",h),c.setVisual("style",{fill:h});else c.setVisual("color",v),c.setVisual("style",{fill:v})})}if(l.length)I(l,function(c){var p=c.getModel().get("lineStyle");c.setVisual("style",p)})})}function H1(n){n.registerChartView(rk),n.registerSeriesModel(ek),n.registerLayout(ik),n.registerVisual(nk),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,r){r.eachComponent({mainType:di,subType:Yi,query:e},function(s){s.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),Vf(n,di,Yi)}var py=function(){function n(){}return n.prototype._hasEncodeRule=function(e){var r=this.getEncode();return r&&r.get(e)!=null},n.prototype.getInitialData=function(e,r){var s,l=r.getComponent("xAxis",this.get("xAxisIndex")),u=r.getComponent("yAxis",this.get("yAxisIndex")),f=l.get("type"),c=u.get("type"),p,v=e.layout;if(f==="category")v="horizontal",s=l.getOrdinalMeta(),p=!this._hasEncodeRule("x");else if(c==="category")v="vertical",s=u.getOrdinalMeta(),p=!this._hasEncodeRule("y");if(!v)v=c==="time"?"vertical":"horizontal";this._layout=v;var h=["x","y"],d=v==="horizontal"?0:1,m=this._baseAxisDim=h[d],g=h[1-d],y=[l,u],x=y[d].get("type"),S=y[1-d].get("type"),D=e.data;if(D&&p){var b=[];I(D,function(T,E){var w;if(U(T))w=T.slice(),T.unshift(E);else if(U(T.value))w=V({},T),w.value=w.value.slice(),T.value.unshift(E);else w=T;b.push(w)}),e.data=b}var C=this.defaultValueDimensions,A=[{name:m,type:Bl(x),ordinalMeta:s,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:Bl(S),dimsDef:C.slice()}];return Ha(this,{coordDimensions:A,dimensionsCount:C.length+1,encodeDefaulter:Ae(xd,A,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n.prototype.getWhiskerBoxesLayout=function(){return this._layout},n}();function Jf(n,e){var r=e.ends.length,s=0;for(var l=0;l<r;l++)if(n.contain(e.ends[l][0],e.ends[l][1]))s++;return!s?xs:s<r?ys:gs}var ma="boxplot",ok=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return e.type="series."+ma,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:X.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:X.color.shadow}},animationDuration:800},e}(et);xt(ok,py,!0);var sk=ok;var vX=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=ma,r}return e.prototype.render=function(r,s,l){var u=r.getData(),f=this.group,c=this._data;if(!this._data)f.removeAll();var p=r.getWhiskerBoxesLayout()==="horizontal"?1:0,v=r.get("clip",!0),h=r.coordinateSystem,d=h.getArea&&h.getArea(),m=v&&yo(h,!1,r);u.diff(c).add(function(g){if(u.hasValue(g)){var y=u.getItemLayout(g),x=v?Jf(d,y):gs;if(x===xs)return;var S=lk(y,u,g,p,!0);_s(x===ys,S,m),u.setItemGraphicEl(g,S),f.add(S)}}).update(function(g,y){var x=c.getItemGraphicEl(y);if(!u.hasValue(g)){f.remove(x);return}var S=u.getItemLayout(g),D=v?Jf(d,S):gs;if(D===xs){f.remove(x);return}if(!x)x=lk(S,u,g,p);else fr(x),uk(S,x,u,g);_s(D===ys,x,m),f.add(x),u.setItemGraphicEl(g,x)}).remove(function(g){var y=c.getItemGraphicEl(g);y&&f.remove(y)}).execute(),this._data=u},e.prototype.remove=function(r){var s=this.group,l=this._data;this._data=null,l&&l.eachItemGraphicEl(function(u){u&&s.remove(u)})},e.type=ma,e}(qe),hX=function(){function n(){}return n}(),dX=function(n){k(e,n);function e(r){var s=n.call(this,r)||this;return s.type="boxplotBoxPath",s}return e.prototype.getDefaultShape=function(){return new hX},e.prototype.buildPath=function(r,s){var l=s.points,u=0;r.moveTo(l[u][0],l[u][1]),u++;for(;u<4;u++)r.lineTo(l[u][0],l[u][1]);r.closePath();for(;u<l.length;u++)r.moveTo(l[u][0],l[u][1]),u++,r.lineTo(l[u][0],l[u][1])},e}(xe);function lk(n,e,r,s,l){var u=n.ends,f=new dX({shape:{points:l?mX(u,s,n):u}});return uk(n,f,e,r,l),f}function uk(n,e,r,s,l){var u=r.hostModel,f=Ne[l?"initProps":"updateProps"];f(e,{shape:{points:n.ends}},u,s),e.useStyle(r.getItemVisual(s,"style")),e.style.strokeNoScale=!0,e.z2=100;var c=r.getItemModel(s),p=c.getModel("emphasis");wt(e,c),it(e,p.get("focus"),p.get("blurScope"),p.get("disabled"))}function mX(n,e,r){return W(n,function(s){return s=s.slice(),s[e]=r.initBaseline,s})}var fk=vX;var gX=oa(),ck=yt(ma,yX);function yX(n){var e=Do(ma);Sf(n,e,function(r){var s=CM(r,e);if(!s)return;var l=xX(r,s);Dn(r,e,function(u){var f=u.seriesIndex;_X(u,l.boxOffsetList[f],l.boxWidthList[f])})})}function xX(n,e){var r=[],s=[],l=[],u=mr(n,{fromStat:{key:Do(ma)},min:1}).w;Dn(n,Do(ma),function(h){var d=h.get("boxWidth");if(!U(d))d=[d,d];l[h.seriesIndex]=[ee(d[0],u)||0,ee(d[1],u)||0]});var f=u*0.8-2,c=f/e*0.3,p=(f-c*(e-1))/e,v=p/2-f/2;return Dn(n,Do(ma),function(h){var d=h.seriesIndex;s[d]=v,v+=c+p,r[d]=lt(Be(p,l[d][0]),l[d][1])}),{boxOffsetList:s,boxWidthList:r}}function _X(n,e,r){var s=n.coordinateSystem,l=n.getData(),u=r/2,f=n.getWhiskerBoxesLayout()==="horizontal"?0:1,c=1-f,p=["x","y"],v=l.mapDimension(p[f]),h=l.mapDimensionsAll(p[c]);if(v==null||h.length<5)return;for(var d=0;d<l.count();d++){var m=l.get(v,d),g=C(m,h[2],d),y=C(m,h[0],d),x=C(m,h[1],d),S=C(m,h[3],d),D=C(m,h[4],d),b=[];A(b,x,!1),A(b,S,!0),b.push(y,x,D,S),T(b,y),T(b,D),T(b,g),l.setItemLayout(d,{initBaseline:g[c],ends:b})}function C(E,w,L){var M=l.get(w,L),P=[];P[f]=E,P[c]=M;var R;if(isNaN(E)||isNaN(M))R=[NaN,NaN];else R=s.dataToPoint(P),R[f]+=e;return R}function A(E,w,L){var M=w.slice(),P=w.slice();M[f]+=u,P[f]-=u,L?E.push(M,P):E.push(P,M)}function T(E,w){var L=w.slice(),M=w.slice();L[f]-=u,M[f]+=u,E.push(L,M)}}function pk(n){gX(n,function(){var e=Do(ma);Df(n,{key:e,seriesType:ma,getMetrics:Cf}),Es(e,ws(e))})}function W1(n,e){e=e||{};var r=[],s=[],l=e.boundIQR,u=l==="none"||l===0;for(var f=0;f<n.length;f++){var c=Rt(n[f].slice()),p=Fh(c,0.25),v=Fh(c,0.5),h=Fh(c,0.75),d=c[0],m=c[c.length-1],g=(l==null?1.5:l)*(h-p),y=u?d:Math.max(d,p-g),x=u?m:Math.min(m,h+g),S=e.itemNameFormatter,D=ie(S)?S({value:f}):K(S)?S.replace("{value}",f+""):f+"";r.push([D,y,p,v,h,x]);for(var b=0;b<c.length;b++){var C=c[b];if(C<y||C>x){var A=[D,C];s.push(A)}}}return{boxData:r,outliers:s}}var vk={type:"echarts:boxplot",transform:function(e){var r=e.upstream;if(r.sourceFormat!==Ht){var s="";rt(s)}var l=W1(r.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:l.boxData},{data:l.outliers}]}};function Y1(n){n.registerSeriesModel(sk),n.registerChartView(fk),n.registerLayout(ck),n.registerTransform(vk),pk(n)}var ga="candlestick",hk=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(r,s,l){var u=s.getItemLayout(r);return u&&l.rect(u.brushRect)},e.type="series."+ga,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3000,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(et);xt(hk,py,!0);var dk=hk;var SX=["itemStyle","borderColor"],DX=["itemStyle","borderColor0"],bX=["itemStyle","borderColorDoji"],CX=["itemStyle","color"],AX=["itemStyle","color0"];function vy(n,e){return e.get(n>0?CX:AX)}function hy(n,e){return e.get(n===0?bX:n>0?SX:DX)}var TX={seriesType:ga,plan:Ba(),performRawSeries:!0,reset:function(n,e){if(e.isSeriesFiltered(n))return;var r=n.pipelineContext.large;return!r&&{progress:function(s,l){var u;while((u=s.next())!=null){var f=l.getItemModel(u),c=l.getItemLayout(u).sign,p=f.getItemStyle();p.fill=vy(c,f),p.stroke=hy(c,f)||p.fill;var v=l.ensureUniqueItemVisual(u,"style");V(v,p)}}}}},mk=TX;var EX=["color","borderColor"],wX=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,s,l){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},e.prototype.incrementalPrepareRender=function(r,s,l){this._clear(),this._updateDrawMode(r)},e.prototype.incrementalRender=function(r,s,l,u){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,s):this._incrementalRenderNormal(r,s)},e.prototype.eachRendered=function(r){Bi(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var s=r.pipelineContext.large;if(this._isLargeDraw==null||s!==this._isLargeDraw)this._isLargeDraw=s,this._clear()},e.prototype._renderNormal=function(r){var s=r.getData(),l=this._data,u=this.group,f=s.getLayout("isSimpleBox"),c=r.get("clip",!0),p=r.coordinateSystem,v=p.getArea&&p.getArea(),h=c&&yo(p,!1,r);if(!this._data)u.removeAll();var d=gk(r);s.diff(l).add(function(m){if(s.hasValue(m)){var g=s.getItemLayout(m),y=c?Jf(v,g):gs;if(y===xs)return;var x=X1(g,m,d,!0);$e(x,{shape:{points:g.ends}},r,m),_s(y===ys,x,h),Z1(x,s,m,f),u.add(x),s.setItemGraphicEl(m,x)}}).update(function(m,g){var y=l.getItemGraphicEl(g);if(!s.hasValue(m)){u.remove(y);return}var x=s.getItemLayout(m),S=c?Jf(v,x):gs;if(S===xs){u.remove(y);return}if(!y)y=X1(x,m,d);else Oe(y,{shape:{points:x.ends}},r,m),fr(y);Z1(y,s,m,f),_s(S===ys,y,h),u.add(y),s.setItemGraphicEl(m,y)}).remove(function(m){var g=l.getItemGraphicEl(m);g&&u.remove(g)}).execute(),this._data=s},e.prototype._renderLarge=function(r){this._clear(),yk(r,this.group);var s=r.get("clip",!0)?yo(r.coordinateSystem,!1,r):null;_s(!!s,this.group,s)},e.prototype._incrementalRenderNormal=function(r,s){var l=s.getData(),u=l.getLayout("isSimpleBox"),f=gk(s),c;while((c=r.next())!=null){var p=l.getItemLayout(c),v=X1(p,c,f);Z1(v,l,c,u),v.incremental=Ri(s),this.group.add(v),this._progressiveEls.push(v)}},e.prototype._incrementalRenderLarge=function(r,s){yk(s,this.group,this._progressiveEls,!0)},e.prototype.remove=function(r){this._clear()},e.prototype._clear=function(){this.group.removeAll(),_s(!1,this.group,null),this._data=null},e.type=ga,e}(qe),IX=function(){function n(){}return n}(),MX=function(n){k(e,n);function e(r){var s=n.call(this,r)||this;return s.type="normalCandlestickBox",s}return e.prototype.getDefaultShape=function(){return new IX},e.prototype.buildPath=function(r,s){var l=s.points;if(this.__simpleBox)r.moveTo(l[4][0],l[4][1]),r.lineTo(l[6][0],l[6][1]);else r.moveTo(l[0][0],l[0][1]),r.lineTo(l[1][0],l[1][1]),r.lineTo(l[2][0],l[2][1]),r.lineTo(l[3][0],l[3][1]),r.closePath(),r.moveTo(l[4][0],l[4][1]),r.lineTo(l[5][0],l[5][1]),r.moveTo(l[6][0],l[6][1]),r.lineTo(l[7][0],l[7][1])},e}(xe);function X1(n,e,r,s){var l=n.ends;return new MX({shape:{points:s?LX(l,r,n):l},z2:100})}function Z1(n,e,r,s){var l=e.getItemModel(r);n.useStyle(e.getItemVisual(r,"style")),n.style.strokeNoScale=!0;var u=l.getShallow("cursor");u&&n.attr("cursor",u),n.__simpleBox=s,wt(n,l);var f=e.getItemLayout(r).sign;I(n.states,function(p,v){var h=l.getModel(v),d=vy(f,h),m=hy(f,h)||d,g=p.style||(p.style={});d&&(g.fill=d),m&&(g.stroke=m)});var c=l.getModel("emphasis");it(n,c.get("focus"),c.get("blurScope"),c.get("disabled"))}function LX(n,e,r){return W(n,function(s){return s=s.slice(),s[e]=r.initBaseline,s})}function gk(n){return n.getWhiskerBoxesLayout()==="horizontal"?1:0}var PX=function(){function n(){}return n}(),K1=function(n){k(e,n);function e(r){var s=n.call(this,r)||this;return s.type="largeCandlestickBox",s}return e.prototype.getDefaultShape=function(){return new PX},e.prototype.buildPath=function(r,s){var l=s.points;for(var u=0;u<l.length;)if(this.__sign===l[u++]){var f=l[u++];r.moveTo(f,l[u++]),r.lineTo(f,l[u++])}else u+=3},e}(xe);function yk(n,e,r,s){var l=n.getData(),u=l.getLayout("largePoints"),f=new K1({shape:{points:u},__sign:1,ignoreCoarsePointer:!0});e.add(f);var c=new K1({shape:{points:u},__sign:-1,ignoreCoarsePointer:!0});e.add(c);var p=new K1({shape:{points:u},__sign:0,ignoreCoarsePointer:!0});if(e.add(p),q1(1,f,n,l),q1(-1,c,n,l),q1(0,p,n,l),s)f.incremental=Ri(n),c.incremental=Ri(n),p.incremental=Ri(n);if(r)r.push(f,c,p)}function q1(n,e,r,s){var l=hy(n,r)||vy(n,r),u=r.getModel("itemStyle").getItemStyle(EX);e.useStyle(u),e.style.fill=null,e.style.stroke=l;var f=r.get("cursor");f&&e.attr("cursor",f)}var xk=wX;function j1(n){if(!n||!U(n.series))return;I(n.series,function(e){if(ue(e)&&e.type==="k")e.type=ga})}var RX=oa(),Sk={seriesType:ga,plan:Ba(),reset:function(n){var e=n.coordinateSystem,r=n.getData(),s=OX(n,r),l=n.getWhiskerBoxesLayout()==="horizontal"?0:1,u=1-l,f=["x","y"],c=r.getDimensionIndex(r.mapDimension(f[l])),p=W(r.mapDimensionsAll(f[u]),r.getDimensionIndex,r),v=p[0],h=p[1],d=p[2],m=p[3];if(r.setLayout({candleWidth:s,isSimpleBox:s<=1.3}),c<0||p.length<4)return;return{progress:n.pipelineContext.large?y:g};function g(x,S){var D,b=S.getStore();while((D=x.next())!=null){var C=b.get(c,D),A=b.get(v,D),T=b.get(h,D),E=b.get(d,D),w=b.get(m,D),L=lt(A,T),M=Be(A,T),P=H(L,C),R=H(M,C),N=H(E,C),O=H(w,C),B=[];G(B,R,0),G(B,P,1),B.push(Q(O),Q(R),Q(N),Q(P));var F=S.getItemModel(D),z=!!F.get(["itemStyle","borderColorDoji"]);S.setItemLayout(D,{sign:_k(b,D,A,T,h,z),initBaseline:A>T?R[u]:P[u],ends:B,brushRect:Z(E,w,C)})}function H(q,ae){var ce=[];return ce[l]=ae,ce[u]=q,isNaN(ae)||isNaN(q)?[NaN,NaN]:e.dataToPoint(ce)}function G(q,ae,ce){var ne=ae.slice(),de=ae.slice();ne[l]=ap(ne[l]+s/2,1,!1),de[l]=ap(de[l]-s/2,1,!0),ce?q.push(ne,de):q.push(de,ne)}function Z(q,ae,ce){var ne=H(q,ce),de=H(ae,ce);return ne[l]-=s/2,de[l]-=s/2,{x:ne[0],y:ne[1],width:u?s:de[0]-ne[0],height:u?de[1]-ne[1]:s}}function Q(q){return q[l]=ap(q[l],1),q}}function y(x,S){var D=Jr(x.count*4),b=0,C,A=[],T=[],E,w=S.getStore(),L=!!n.get(["itemStyle","borderColorDoji"]);while((E=x.next())!=null){var M=w.get(c,E),P=w.get(v,E),R=w.get(h,E),N=w.get(d,E),O=w.get(m,E);if(isNaN(M)||isNaN(N)||isNaN(O)){D[b++]=NaN,b+=3;continue}D[b++]=_k(w,E,P,R,h,L),A[l]=M,A[u]=N,C=e.dataToPoint(A,null,T),D[b++]=C?C[0]:NaN,D[b++]=C?C[1]:NaN,A[u]=O,C=e.dataToPoint(A,null,T),D[b++]=C?C[1]:NaN}S.setLayout("largePoints",D)}}};function _k(n,e,r,s,l,u){var f;if(r>s)f=-1;else if(r<s)f=1;else f=u?0:e>0?n.get(l,e-1)<=s?1:-1:1;return f}function OX(n,e){var r=n.getBaseAxis(),s=mr(r,{fromStat:{key:Do(ga)},min:1}).w,l=ee(te(n.get("barMaxWidth"),s),s),u=ee(te(n.get("barMinWidth"),1),s),f=n.get("barWidth");return f!=null?ee(f,s):Be(lt(s/2,l),u)}function Dk(n){RX(n,function(){var e=Do(ga);Df(n,{key:e,seriesType:ga,getMetrics:Cf}),Es(e,ws(e))})}function $1(n){n.registerChartView(xk),n.registerSeriesModel(dk),n.registerPreprocessor(j1),n.registerVisual(mk),n.registerLayout(Sk),Dk(n)}function bk(n,e){var r=e.rippleEffectColor||e.color;n.eachChild(function(s){s.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?r:null,fill:e.brushType==="fill"?r:null}})})}var NX=function(n){k(e,n);function e(r,s){var l=n.call(this)||this,u=new go(r,s),f=new ve;return l.add(u),l.add(f),l.updateData(r,s),l}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(r){var{symbolType:s,color:l,rippleNumber:u}=r,f=this.childAt(1);for(var c=0;c<u;c++){var p=Dt(s,-1,-1,2,2,l);p.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:0.5,scaleY:0.5});var v=-c/u*r.period+r.effectOffset;p.animate("",!0).when(r.period,{scaleX:r.rippleScale/2,scaleY:r.rippleScale/2}).delay(v).start(),p.animateStyle(!0).when(r.period,{opacity:0}).delay(v).start(),f.add(p)}bk(f,r)},e.prototype.updateEffectAnimation=function(r){var s=this._effectCfg,l=this.childAt(1),u=["symbolType","period","rippleScale","rippleNumber"];for(var f=0;f<u.length;f++){var c=u[f];if(s[c]!==r[c]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}bk(l,r)},e.prototype.highlight=function(){Ni(this)},e.prototype.downplay=function(){ki(this)},e.prototype.getSymbolType=function(){var r=this.childAt(0);return r&&r.getSymbolType()},e.prototype.updateData=function(r,s){var l=this,u=r.hostModel;this.childAt(0).updateData(r,s);var f=this.childAt(1),c=r.getItemModel(s),p=r.getItemVisual(s,"symbol"),v=mo(r.getItemVisual(s,"symbolSize")),h=r.getItemVisual(s,"style"),d=h&&h.fill,m=c.getModel("emphasis");f.setScale(v),f.traverse(function(S){S.setStyle("fill",d)});var g=ka(r.getItemVisual(s,"symbolOffset"),v);if(g)f.x=g[0],f.y=g[1];var y=r.getItemVisual(s,"symbolRotate");f.rotation=(y||0)*Math.PI/180||0;var x={};if(x.showEffectOn=u.get("showEffectOn"),x.rippleScale=c.get(["rippleEffect","scale"]),x.brushType=c.get(["rippleEffect","brushType"]),x.period=c.get(["rippleEffect","period"])*1000,x.effectOffset=s/r.count(),x.z=u.getShallow("z")||0,x.zlevel=u.getShallow("zlevel")||0,x.symbolType=p,x.color=d,x.rippleEffectColor=c.get(["rippleEffect","color"]),x.rippleNumber=c.get(["rippleEffect","number"]),x.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(x):this.startEffectAnimation(x),this._effectCfg=x;else this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(S){if(S==="emphasis"){if(x.showEffectOn!=="render")l.startEffectAnimation(x)}else if(S==="normal"){if(x.showEffectOn!=="render")l.stopEffectAnimation()}};this._effectCfg=x,it(this,m.get("focus"),m.get("blurScope"),m.get("disabled"))},e.prototype.fadeOut=function(r){r&&r()},e}(ve),Ck=NX;var kX=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this._symbolDraw=new gn(Ck)},e.prototype.render=function(r,s,l){var u=r.getData(),f=this._symbolDraw;f.updateData(u,Ak(r)),this.group.add(f.group)},e.prototype.updateTransform=function(r,s,l){var u=r.getData();this.group.dirty();var f=Va("").reset(r,s,l);if(f.progress)f.progress({start:0,end:u.count(),count:u.count()},u);this._symbolDraw.updateLayout(Ak(r))},e.prototype._updateGroupTransform=function(r){var s=r.coordinateSystem;if(s&&s.getRoamTransform)this.group.transform=fA(s.getRoamTransform()),this.group.decomposeTransform()},e.prototype.remove=function(r,s){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(qe);function Ak(n){return{clipShape:Dm(n)}}var Tk=kX;var BX=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r,s){return Vr(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(r,s,l){return l.point(s.getItemLayout(r))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(et),Ek=BX;function Q1(n){n.registerChartView(Tk),n.registerSeriesModel(Ek),n.registerLayout(Va("effectScatter"))}var FX=256,zX=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=xr.createCanvas();this.canvas=e}return n.prototype.update=function(e,r,s,l,u,f){var c=this._getBrush(),p=this._getGradient(u,"inRange"),v=this._getGradient(u,"outOfRange"),h=this.pointSize+this.blurSize,d=this.canvas,m=d.getContext("2d"),g=e.length;d.width=r,d.height=s;for(var y=0;y<g;++y){var x=e[y],S=x[0],D=x[1],b=x[2],C=l(b);m.globalAlpha=C,m.drawImage(c,S-h,D-h)}if(!d.width||!d.height)return d;var A=m.getImageData(0,0,d.width,d.height),T=A.data,E=0,w=T.length,L=this.minOpacity,M=this.maxOpacity,P=M-L;while(E<w){var C=T[E+3]/256,R=Math.floor(C*(FX-1))*4;if(C>0){var N=f(C)?p:v;C>0&&(C=C*P+L),T[E++]=N[R],T[E++]=N[R+1],T[E++]=N[R+2],T[E++]=N[R+3]*C*256}else E+=4}return m.putImageData(A,0,0),d},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=xr.createCanvas()),r=this.pointSize+this.blurSize,s=r*2;e.width=s,e.height=s;var l=e.getContext("2d");return l.clearRect(0,0,s,s),l.shadowOffsetX=s,l.shadowBlur=this.blurSize,l.shadowColor=X.color.neutral99,l.beginPath(),l.arc(-r,r,this.pointSize,0,Math.PI*2,!0),l.closePath(),l.fill(),e},n.prototype._getGradient=function(e,r){var s=this._gradientPixels,l=s[r]||(s[r]=new Uint8ClampedArray(1024)),u=[0,0,0,0],f=0;for(var c=0;c<256;c++)e[r](c/255,!0,u),l[f++]=u[0],l[f++]=u[1],l[f++]=u[2],l[f++]=u[3];return l},n}(),wk=zX;function VX(n,e,r){var s=n[1]-n[0];e=W(e,function(f){return{interval:[(f.interval[0]-n[0])/s,(f.interval[1]-n[0])/s]}});var l=e.length,u=0;return function(f){var c;for(c=u;c<l;c++){var p=e[c].interval;if(p[0]<=f&&f<=p[1]){u=c;break}}if(c===l)for(c=u-1;c>=0;c--){var p=e[c].interval;if(p[0]<=f&&f<=p[1]){u=c;break}}return c>=0&&c<l&&r[c]}}function UX(n,e){var r=n[1]-n[0];return e=[(e[0]-n[0])/r,(e[1]-n[0])/r],function(s){return s>=e[0]&&s<=e[1]}}var GX=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,s,l){var u;s.eachComponent("visualMap",function(c){c.eachTargetSeries(function(p){if(p===r)u=c})}),this._progressiveEls=null,this.group.removeAll();var f=r.coordinateSystem;if(f.type==="cartesian2d"||f.type==="calendar"||f.type==="matrix")this._renderOnGridLike(r,l,0,r.getData().count());else if(K_(f))this._renderOnGeo(f,r,u,l)},e.prototype.incrementalPrepareRender=function(r,s,l){this.group.removeAll()},e.prototype.incrementalRender=function(r,s,l,u){var f=s.coordinateSystem;if(f)if(K_(f))this.render(s,l,u);else this._progressiveEls=[],this._renderOnGridLike(s,u,r.start,r.end,!0)},e.prototype.eachRendered=function(r){Bi(this._progressiveEls||this.group,r)},e.prototype._renderOnGridLike=function(r,s,l,u,f){var c=r.coordinateSystem,p=fa(c,"cartesian2d"),v=fa(c,"matrix"),h,d,m,g;if(p){var y=c.getAxis("x"),x=c.getAxis("y");h=mr(y).w+0.5,d=mr(x).w+0.5,m=y.scale.getExtent(),g=x.scale.getExtent()}var S=this.group,D=r.getData(),b=r.getModel(["emphasis","itemStyle"]).getItemStyle(),C=r.getModel(["blur","itemStyle"]).getItemStyle(),A=r.getModel(["select","itemStyle"]).getItemStyle(),T=r.get(["itemStyle","borderRadius"]),E=St(r),w=r.getModel("emphasis"),L=w.get("focus"),M=w.get("blurScope"),P=w.get("disabled"),R=p||v?[D.mapDimension("x"),D.mapDimension("y"),D.mapDimension("value")]:[D.mapDimension("time"),D.mapDimension("value")];for(var N=l;N<u;N++){var O=void 0,B=D.getItemVisual(N,"style");if(p){var F=D.get(R[0],N),z=D.get(R[1],N);if(isNaN(D.get(R[2],N))||isNaN(F)||isNaN(z)||F<m[0]||F>m[1]||z<g[0]||z>g[1])continue;var H=c.dataToPoint([F,z]);O=new Ee({shape:{x:H[0]-h/2,y:H[1]-d/2,width:h,height:d},style:B})}else if(v){var G=c.dataToLayout([D.get(R[0],N),D.get(R[1],N)]).rect;if(oi(G.x))continue;O=new Ee({z2:1,shape:G,style:B})}else{if(isNaN(D.get(R[1],N)))continue;var Z=c.dataToLayout([D.get(R[0],N)]),G=Z.contentRect||Z.rect;if(oi(G.x)||oi(G.y))continue;O=new Ee({z2:1,shape:G,style:B})}if(D.hasItemOption){var Q=D.getItemModel(N),q=Q.getModel("emphasis");b=q.getModel("itemStyle").getItemStyle(),C=Q.getModel(["blur","itemStyle"]).getItemStyle(),A=Q.getModel(["select","itemStyle"]).getItemStyle(),T=Q.get(["itemStyle","borderRadius"]),L=q.get("focus"),M=q.get("blurScope"),P=q.get("disabled"),E=St(Q)}O.shape.r=T;var ae=r.getRawValue(N),ce="-";if(ae&&ae[2]!=null)ce=ae[2]+"";if(Mt(O,E,{labelFetcher:r,labelDataIndex:N,defaultOpacity:B.opacity,defaultText:ce}),O.ensureState("emphasis").style=b,O.ensureState("blur").style=C,O.ensureState("select").style=A,it(O,L,M,P),O.incremental=Ri(r,f),f)O.states.emphasis.hoverLayer=no;if(S.add(O),D.setItemGraphicEl(N,O),this._progressiveEls)this._progressiveEls.push(O)}},e.prototype._renderOnGeo=function(r,s,l,u){var f=l.targetVisuals.inRange,c=l.targetVisuals.outOfRange,p=s.getData(),v=this._hmLayer||this._hmLayer||new wk;v.blurSize=s.get("blurSize"),v.pointSize=s.get("pointSize"),v.minOpacity=s.get("minOpacity"),v.maxOpacity=s.get("maxOpacity");var h=r.getViewRect().clone(),d=r.getRoamTransform();h.applyTransform(d);var m=Math.max(h.x,0),g=Math.max(h.y,0),y=Math.min(h.width+h.x,u.getWidth()),x=Math.min(h.height+h.y,u.getHeight()),S=y-m,D=x-g,b=[p.mapDimension("lng"),p.mapDimension("lat"),p.mapDimension("value")],C=p.mapArray(b,function(w,L,M){var P=r.dataToPoint([w,L]);return P[0]-=m,P[1]-=g,P.push(M),P}),A=l.getExtent(),T=l.type==="visualMap.continuous"?UX(A,l.option.range):VX(A,l.getPieceList(),l.option.selected);v.update(C,S,D,f.color.getNormalizer(),{inRange:f.color.getColorMapper(),outOfRange:c.color.getColorMapper()},T);var E=new Bt({style:{width:S,height:D,x:m,y:g,image:v.canvas},silent:!0});this.group.add(E)},e.type="heatmap",e}(qe),Ik=GX;var HX=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,s){return Vr(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var r=co.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:X.color.primary}}},e}(et),Mk=HX;function J1(n){n.registerChartView(Ik),n.registerSeriesModel(Mk)}var WX=["itemStyle","borderWidth"],Lk=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],eb=new Ia,YX=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=Is,r}return e.prototype.render=function(r,s,l){var u=this.group,f=r.getData(),c=this._data,p=r.coordinateSystem,v=p.getBaseAxis(),h=v.isHorizontal(),d=p.master.getRect(),m={ecSize:{width:l.getWidth(),height:l.getHeight()},seriesModel:r,coordSys:p,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:h,valueDim:Lk[+h],categoryDim:Lk[1-+h]};f.diff(c).add(function(y){if(!f.hasValue(y))return;var x=Rk(f,y),S=Pk(f,y,x,m),D=Ok(f,m,S);f.setItemGraphicEl(y,D),u.add(D),kk(D,m,S)}).update(function(y,x){var S=c.getItemGraphicEl(x);if(!f.hasValue(y)){u.remove(S);return}var D=Rk(f,y),b=Pk(f,y,D,m),C=Hk(f,b);if(S&&C!==S.__pictorialShapeStr)u.remove(S),f.setItemGraphicEl(y,null),S=null;if(S)QX(S,m,b);else S=Ok(f,m,b,!0);f.setItemGraphicEl(y,S),S.__pictorialSymbolMeta=b,u.add(S),kk(S,m,b)}).remove(function(y){var x=c.getItemGraphicEl(y);x&&Nk(c,y,x.__pictorialSymbolMeta.animationModel,x)}).execute();var g=r.get("clip",!0)?yo(r.coordinateSystem,!1,r):null;if(g)u.setClipPath(g);else u.removeClipPath();return this._data=f,this.group},e.prototype.remove=function(r,s){var l=this.group,u=this._data;if(r.get("animation")){if(u)u.eachItemGraphicEl(function(f){Nk(u,ye(f).dataIndex,r,f)})}else l.removeAll()},e.type=Is,e}(qe);function Pk(n,e,r,s){var l=n.getItemLayout(e),u=r.get("symbolRepeat"),f=r.get("symbolClip"),c=r.get("symbolPosition")||"start",p=r.get("symbolRotate"),v=(p||0)*Math.PI/180||0,h=r.get("symbolPatternSize")||2,d=r.isAnimationEnabled(),m={dataIndex:e,layout:l,itemModel:r,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:f,symbolRepeat:u,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:h,rotation:v,animationModel:d?r:null,hoverScale:d&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};XX(r,u,l,s,m),ZX(n,e,l,u,f,m.boundingLength,m.pxSign,h,s,m),KX(r,m.symbolScale,v,s,m);var g=m.symbolSize,y=ka(r.get("symbolOffset"),g);return qX(r,g,l,u,f,y,c,m.valueLineWidth,m.boundingLength,m.repeatCutLength,s,m),m}function XX(n,e,r,s,l){var u=s.valueDim,f=n.get("symbolBoundingData"),c=s.coordSys.getOtherAxis(s.coordSys.getBaseAxis()),p=c.toGlobalCoord(c.dataToCoord(0)),v=1-+(r[u.wh]<=0),h;if(U(f)){var d=[tb(c,f[0])-p,tb(c,f[1])-p];d[1]<d[0]&&d.reverse(),h=d[v]}else if(f!=null)h=tb(c,f)-p;else if(e)h=s.coordSysExtent[u.index][v]-p;else h=r[u.wh];if(l.boundingLength=h,e)l.repeatCutLength=r[u.wh];var m=u.xy==="x",g=c.inverse;l.pxSign=m&&!g||!m&&g?h>=0?1:-1:h>0?1:-1}function tb(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function ZX(n,e,r,s,l,u,f,c,p,v){var{valueDim:h,categoryDim:d}=p,m=Math.abs(r[d.wh]),g=n.getItemVisual(e,"symbolSize"),y;if(U(g))y=g.slice();else if(g==null)y=["100%","100%"];else y=[g,g];y[d.index]=ee(y[d.index],m),y[h.index]=ee(y[h.index],s?m:Math.abs(u)),v.symbolSize=y;var x=v.symbolScale=[y[0]/c,y[1]/c];x[h.index]*=(p.isHorizontal?-1:1)*f}function KX(n,e,r,s,l){var u=n.get(WX)||0;if(u)eb.attr({scaleX:e[0],scaleY:e[1],rotation:r}),eb.updateTransform(),u/=eb.getLineScale(),u*=e[s.valueDim.index];l.valueLineWidth=u||0}function qX(n,e,r,s,l,u,f,c,p,v,h,d){var{categoryDim:m,valueDim:g}=h,y=d.pxSign,x=Math.max(e[g.index]+c,0),S=x;if(s){var D=Math.abs(p),b=Ut(n.get("symbolMargin"),"15%")+"",C=!1;if(b.lastIndexOf("!")===b.length-1)C=!0,b=b.slice(0,b.length-1);var A=ee(b,e[g.index]),T=Math.max(x+A*2,0),E=C?0:A*2,w=Vc(s),L=w?s:Bk((D+E)/T),M=D-L*x;if(A=M/2/(C?L:Math.max(L-1,1)),T=x+A*2,E=C?0:A*2,!w&&s!=="fixed")L=v?Bk((Math.abs(v)+E)/T):0;S=L*T-E,d.repeatTimes=L,d.symbolMargin=A}var P=y*(S/2),R=d.pathPosition=[];if(R[m.index]=r[m.wh]/2,R[g.index]=f==="start"?P:f==="end"?p-P:p/2,u)R[0]+=u[0],R[1]+=u[1];var N=d.bundlePosition=[];N[m.index]=r[m.xy],N[g.index]=r[g.xy];var O=d.barRectShape=V({},r);O[g.wh]=y*Math.max(Math.abs(r[g.wh]),Math.abs(R[g.index]+P)),O[m.wh]=r[m.wh];var B=d.clipShape={};B[m.xy]=-r[m.xy],B[m.wh]=h.ecSize[m.wh],B[g.xy]=0,B[g.wh]=r[g.wh]}function Fk(n){var e=n.symbolPatternSize,r=Dt(n.symbolType,-e/2,-e/2,e,e);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function zk(n,e,r,s){var l=n.__pictorialBundle,{symbolSize:u,valueLineWidth:f,pathPosition:c}=r,p=e.valueDim,v=r.repeatTimes||0,h=0,d=u[e.valueDim.index]+f+r.symbolMargin*2;rb(n,function(x){if(x.__pictorialAnimationIndex=h,x.__pictorialRepeatTimes=v,h<v)ec(x,null,y(h),r,s);else ec(x,null,{scaleX:0,scaleY:0},r,s,function(){l.remove(x)});h++});for(;h<v;h++){var m=Fk(r);m.__pictorialAnimationIndex=h,m.__pictorialRepeatTimes=v,l.add(m);var g=y(h);ec(m,{x:g.x,y:g.y,scaleX:0,scaleY:0},{scaleX:g.scaleX,scaleY:g.scaleY,rotation:g.rotation},r,s)}function y(x){var S=c.slice(),D=r.pxSign,b=x;if(r.symbolRepeatDirection==="start"?D>0:D<0)b=v-1-x;return S[p.index]=d*(b-v/2+0.5)+c[p.index],{x:S[0],y:S[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function Vk(n,e,r,s){var{__pictorialBundle:l,__pictorialMainPath:u}=n;if(!u)u=n.__pictorialMainPath=Fk(r),l.add(u),ec(u,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,s);else ec(u,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,s)}function Uk(n,e,r){var s=V({},e.barRectShape),l=n.__pictorialBarRect;if(!l)l=n.__pictorialBarRect=new Ee({z2:2,shape:s,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),l.disableMorphing=!0,n.add(l);else ec(l,null,{shape:s},e,r)}function Gk(n,e,r,s){if(r.symbolClip){var l=n.__pictorialClipPath,u=V({},r.clipShape),f=e.valueDim,{animationModel:c,dataIndex:p}=r;if(l)Oe(l,{shape:u},c,p);else{u[f.wh]=0,l=new Ee({shape:u}),n.__pictorialBundle.setClipPath(l),n.__pictorialClipPath=l;var v={};v[f.wh]=r.clipShape[f.wh],Ne[s?"updateProps":"initProps"](l,{shape:v},c,p)}}}function Rk(n,e){var r=n.getItemModel(e);return r.getAnimationDelayParams=jX,r.isAnimationEnabled=$X,r}function jX(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function $X(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Ok(n,e,r,s){var l=new ve,u=new ve;if(l.add(u),l.__pictorialBundle=u,u.x=r.bundlePosition[0],u.y=r.bundlePosition[1],r.symbolRepeat)zk(l,e,r);else Vk(l,e,r);return Uk(l,r,s),Gk(l,e,r,s),l.__pictorialShapeStr=Hk(n,r),l.__pictorialSymbolMeta=r,l}function QX(n,e,r){var{animationModel:s,dataIndex:l}=r,u=n.__pictorialBundle;if(Oe(u,{x:r.bundlePosition[0],y:r.bundlePosition[1]},s,l),r.symbolRepeat)zk(n,e,r,!0);else Vk(n,e,r,!0);Uk(n,r,!0),Gk(n,e,r,!0)}function Nk(n,e,r,s){var l=s.__pictorialBarRect;l&&l.removeTextContent();var u=[];rb(s,function(f){u.push(f)}),s.__pictorialMainPath&&u.push(s.__pictorialMainPath),s.__pictorialClipPath&&(r=null),I(u,function(f){sa(f,{scaleX:0,scaleY:0},r,e,function(){s.parent&&s.parent.remove(s)})}),n.setItemGraphicEl(e,null)}function Hk(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function rb(n,e,r){I(n.__pictorialBundle.children(),function(s){s!==n.__pictorialBarRect&&e.call(r,s)})}function ec(n,e,r,s,l,u){if(e&&n.attr(e),s.symbolClip&&!l)r&&n.attr(r);else r&&Ne[l?"updateProps":"initProps"](n,r,s.animationModel,s.dataIndex,u)}function kk(n,e,r){var{dataIndex:s,itemModel:l}=r,u=l.getModel("emphasis"),f=u.getModel("itemStyle").getItemStyle(),c=l.getModel(["blur","itemStyle"]).getItemStyle(),p=l.getModel(["select","itemStyle"]).getItemStyle(),v=l.getShallow("cursor"),h=u.get("focus"),d=u.get("blurScope"),m=u.get("scale");rb(n,function(x){if(x instanceof Bt){var S=x.style;x.useStyle(V({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},r.style))}else x.useStyle(r.style);var D=x.ensureState("emphasis");if(D.style=f,m)D.scaleX=x.scaleX*1.1,D.scaleY=x.scaleY*1.1;x.ensureState("blur").style=c,x.ensureState("select").style=p,v&&(x.cursor=v),x.z2=r.z2});var g=e.valueDim.posDesc[+(r.boundingLength>0)],y=n.__pictorialBarRect;y.ignoreClip=!0,Mt(y,St(l),{labelFetcher:e.seriesModel,labelDataIndex:s,defaultText:hs(e.seriesModel.getData(),s),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:g}),it(n,h,d,u.get("disabled"))}function Bk(n){var e=Math.round(n);return Math.abs(n-e)<0.0001?e:Math.ceil(n)}var Wk=YX;var JX=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return e.prototype.getInitialData=function(r){return r.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series."+Is,e.dependencies=["grid"],e.defaultOption=yi(Af.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:X.color.primary}}}),e}(Af),Yk=JX;function ib(n){n.registerChartView(Wk),n.registerSeriesModel(Yk),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Km(Is)),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,qm(Is)),jm(n)}var ab=2,Oo="themeRiver",eZ=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new An(se(this.getData,this),se(this.getRawData,this))},e.prototype.fixData=function(r){var s=r.length,l={},u=Wc(r,function(m){if(!l.hasOwnProperty(m[0]+""))l[m[0]+""]=-1;return m[2]}),f=[];u.buckets.each(function(m,g){f.push({name:g,dataList:m})});var c=f.length;for(var p=0;p<c;++p){var v=f[p].name;for(var h=0;h<f[p].dataList.length;++h){var d=f[p].dataList[h][0]+"";l[d]=p}for(var d in l)if(l.hasOwnProperty(d)&&l[d]!==p)l[d]=p,r[s]=[d,0,v],s++}return r},e.prototype.getInitialData=function(r,s){var l=this.getReferringComponents("singleAxis",gt).models[0],u=l.get("type"),f=Ke(r.data,function(y){return y[2]!==void 0}),c=this.fixData(f||[]),p=[],v=this.nameMap=re(),h=0;for(var d=0;d<c.length;++d)if(p.push(c[d][ab]),!v.get(c[d][ab]))v.set(c[d][ab],h),h++;var m=Ra(c,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Bl(u)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,g=new ir(m,this);return g.initData(c),g},e.prototype.getLayerSeries=function(){var r=this.getData(),s=r.count(),l=[];for(var u=0;u<s;++u)l[u]=u;var f=r.mapDimension("single"),c=Wc(l,function(v){return r.get("name",v)}),p=[];return c.buckets.each(function(v,h){v.sort(function(d,m){return r.get(f,d)-r.get(f,m)}),p.push({name:h,indices:v})}),p},e.prototype.getAxisTooltipData=function(r,s,l){if(!U(r))r=r?[r]:[];var u=this.getData(),f=this.getLayerSeries(),c=[],p=f.length,v;for(var h=0;h<p;++h){var d=Number.MAX_VALUE,m=-1,g=f[h].indices.length;for(var y=0;y<g;++y){var x=u.get(r[0],f[h].indices[y]),S=Math.abs(x-s);if(S<=d)v=x,d=S,m=f[h].indices[y]}c.push(m)}return{dataIndices:c,nestestValue:v}},e.prototype.formatTooltip=function(r,s,l){var u=this.getData(),f=u.getName(r),c=u.get(u.mapDimension("value"),r);return Wt("nameValue",{name:f,value:c})},e.type="series."+Oo,e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(et),Xk=eZ;var tZ=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=Oo,r._layers=[],r}return e.prototype.render=function(r,s,l){var u=r.getData(),f=this,c=this.group,p=r.getLayerSeries(),v=u.getLayout("layoutInfo"),{rect:h,boundaryGap:d}=v;c.x=0,c.y=h.y+d[0];function m(S){return S.name}var g=new Fi(this._layersSeries||[],p,m,m),y=[];g.add(se(x,this,"add")).update(se(x,this,"update")).remove(se(x,this,"remove")).execute();function x(S,D,b){var C=f._layers;if(S==="remove"){c.remove(C[D]);return}var A=[],T=[],E,w=p[D].indices,L=0;for(;L<w.length;L++){var M=u.getItemLayout(w[L]),{x:P,y0:R,y:N}=M;A.push(P,R),T.push(P,R+N),E=u.getItemVisual(w[L],"style")}var O,B=u.getItemLayout(w[0]),F=r.getModel("label"),z=F.get("margin"),H=r.getModel("emphasis");if(S==="add"){var G=y[D]=new ve;if(O=new Sm({shape:{points:A,stackedOnPoints:T,smooth:0.4,stackedOnSmooth:0.4,smoothConstraint:!1},z2:0}),G.add(O),c.add(G),r.isAnimationEnabled())O.setClipPath(rZ(O.getBoundingRect(),r,function(){O.removeClipPath()}))}else{var G=C[b];O=G.childAt(0),c.add(G),y[D]=G,Oe(O,{shape:{points:A,stackedOnPoints:T}},r),fr(O)}Mt(O,St(r),{labelDataIndex:w[L-1],defaultText:u.getName(w[L-1]),inheritColor:E.fill},{normal:{verticalAlign:"middle"}}),O.setTextConfig({position:null,local:!0});var Z=O.getTextContent();if(Z)Z.x=B.x-z,Z.y=B.y0+B.y/2;O.useStyle(E),u.setItemGraphicEl(D,O),wt(O,r),it(O,H.get("focus"),H.get("blurScope"),H.get("disabled"))}this._layersSeries=p,this._layers=y},e.type=Oo,e}(qe);function rZ(n,e,r){var s=new Ee({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return $e(s,{shape:{x:n.x-50,width:n.width+100,height:n.height+20}},e,r),s}var Zk=tZ;var qk=yt(Oo,iZ);function iZ(n,e){n.eachSeriesByType(Oo,function(r){var s=r.getData(),l=r.coordinateSystem,u={},f=l.getRect();u.rect=f;var c=r.get("boundaryGap"),p=l.getAxis();if(u.boundaryGap=c,p.orient==="horizontal"){c[0]=ee(c[0],f.height),c[1]=ee(c[1],f.height);var v=f.height-c[0]-c[1];Kk(s,r,v)}else{c[0]=ee(c[0],f.width),c[1]=ee(c[1],f.width);var h=f.width-c[0]-c[1];Kk(s,r,h)}s.setLayout("layoutInfo",u)})}function Kk(n,e,r){if(!n.count())return;var s=e.coordinateSystem,l=e.getLayerSeries(),u=n.mapDimension("single"),f=n.mapDimension("value"),c=W(l,function(S){return W(S.indices,function(D){var b=s.dataToPoint(n.get(u,D));return b[1]=n.get(f,D),b})}),p=aZ(c),v=p.y0,h=r/p.max,d=l.length,m=l[0].indices.length,g;for(var y=0;y<m;++y){g=v[y]*h,n.setItemLayout(l[0].indices[y],{layerIndex:0,x:c[0][y][0],y0:g,y:c[0][y][1]*h});for(var x=1;x<d;++x)g+=c[x-1][y][1]*h,n.setItemLayout(l[x].indices[y],{layerIndex:x,x:c[x][y][0],y0:g,y:c[x][y][1]*h})}}function aZ(n){var e=n.length,r=n[0].length,s=[],l=[],u=0;for(var f=0;f<r;++f){var c=0;for(var p=0;p<e;++p)c+=n[p][f][1];if(c>u)u=c;s.push(c)}for(var v=0;v<r;++v)l[v]=(u-s[v])/2;u=0;for(var h=0;h<r;++h){var d=s[h]+l[h];if(d>u)u=d}return{y0:l,max:u}}function nb(n){n.registerChartView(Zk),n.registerSeriesModel(Xk),n.registerLayout(qk),n.registerProcessor(Ao(Oo))}var nZ=2,oZ=4,sZ=function(n){k(e,n);function e(r,s,l,u){var f=n.call(this)||this;f.z2=nZ,f.textConfig={inside:!0},ye(f).seriesIndex=s.seriesIndex;var c=new Ve({z2:oZ,silent:r.getModel().get(["label","silent"])});return f.setTextContent(c),f.updateData(!0,r,s,l,u),f}return e.prototype.updateData=function(r,s,l,u,f){this.node=s,s.piece=this,l=l||this._seriesModel,u=u||this._ecModel;var c=this;ye(c).dataIndex=s.dataIndex;var p=s.getModel(),v=p.getModel("emphasis"),h=s.getLayout(),d=V({},h);d.label=null;var m=s.getVisual("style");m.lineJoin="bevel";var g=s.getVisual("decal");if(g)m.decal=eu(g,f);var y=Cn(p.getModel("itemStyle"),d,!0);if(V(d,y),I(hr,function(b){var C=c.ensureState(b),A=p.getModel([b,"itemStyle"]);C.style=A.getItemStyle();var T=Cn(A,d);if(T)C.shape=T}),r)c.setShape(d),c.shape.r=h.r0,$e(c,{shape:{r:h.r}},l,s.dataIndex);else Oe(c,{shape:d},l),fr(c);c.useStyle(m),this._updateLabel(l);var x=p.getShallow("cursor");x&&c.attr("cursor",x),this._seriesModel=l||this._seriesModel,this._ecModel=u||this._ecModel;var S=v.get("focus"),D=S==="relative"?Su(s.getAncestorsIndices(),s.getDescendantIndices()):S==="ancestor"?s.getAncestorsIndices():S==="descendant"?s.getDescendantIndices():S;it(this,D,v.get("blurScope"),v.get("disabled"))},e.prototype._updateLabel=function(r){var s=this,l=this.node.getModel(),u=l.getModel("label"),f=this.node.getLayout(),c=f.endAngle-f.startAngle,p=(f.startAngle+f.endAngle)/2,v=Math.cos(p),h=Math.sin(p),d=this,m=d.getTextContent(),g=this.node.dataIndex,y=u.get("minAngle")/180*Math.PI,x=u.get("show")&&!(y!=null&&Math.abs(c)<y);m.ignore=!x,I(is,function(D){var b=D==="normal"?l.getModel("label"):l.getModel([D,"label"]),C=D==="normal",A=C?m:m.ensureState(D),T=r.getFormattedLabel(g,D);if(C)T=T||s.node.name;if(A.style=ut(b,{},null,D!=="normal",!0),T)A.style.text=T;var E=b.get("show");if(E!=null&&!C)A.ignore=!E;var w=S(b,"position"),L=C?d:d.states[D],M=L.style.fill;L.textConfig={outsideFill:b.get("color")==="inherit"?M:null,inside:w!=="outside"};var P,R=S(b,"distance")||0,N=S(b,"align"),O=S(b,"rotate"),B=Math.PI*0.5,F=Math.PI*1.5,z=Lr(O==="tangential"?Math.PI/2-p:p),H=z>B&&!es(z-B)&&z<F;if(w==="outside")P=f.r+R,N=H?"right":"left";else if(!N||N==="center"){if(f.r0===0&&es(c-2*Math.PI))P=0;else P=(f.r+f.r0)/2;N="center"}else if(N==="left")P=f.r0+R,N=H?"right":"left";else if(N==="right")P=f.r-R,N=H?"left":"right";A.style.align=N,A.style.verticalAlign=S(b,"verticalAlign")||"middle",A.x=P*v+f.cx,A.y=P*h+f.cy;var G=0;if(O==="radial")G=Lr(-p)+(H?Math.PI:0);else if(O==="tangential")G=Lr(Math.PI/2-p)+(H?Math.PI:0);else if(Te(O))G=O*Math.PI/180;A.rotation=Lr(G)});function S(D,b){var C=D.get(b);if(C==null)return u.get(b);return C}m.dirtyStyle()},e}(Xt),ob=sZ;var Rn="sunburst",lZ=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.ignoreStyleOnData=!0,r}return e.prototype.getInitialData=function(r,s){var l={name:r.name,children:r.data};jk(l);var u=this._levelModels=W(r.levels||[],function(p){return new Je(p,this,s)},this),f=Gf.createTree(l,this,c);function c(p){p.wrapMethod("getItemModel",function(v,h){var d=f.getNodeByDataIndex(h),m=u[d.depth];return m&&(v.parentModel=m),v})}return f.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(r){var s=n.prototype.getDataParams.apply(this,arguments),l=this.getData().tree.getNodeByDataIndex(r);return s.treePathInfo=Ps(l,this),s},e.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var s=this.getRawData().tree.root;if(!r||r!==s&&!s.contains(r))this._viewRoot=s},e.prototype.enableAriaDecal=function(){nv(this)},e.type="series."+Rn,e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:0.2},label:{opacity:0.1}},animationType:"expansion",animationDuration:1000,animationDurationUpdate:500,data:[],sort:"desc"},e}(et);function jk(n){var e=0;I(n.children,function(s){jk(s);var l=s.value;U(l)&&(l=l[0]),e+=l});var r=n.value;if(U(r))r=r[0];if(r==null||isNaN(r))r=e;if(r<0)r=0;U(n.value)?n.value[0]=r:n.value=r}var $k=lZ;var dy="sunburstRootToNode",Qk="sunburstHighlight",uZ="sunburstUnhighlight";function Jk(n){n.registerAction({type:dy,update:"updateView"},function(e,r){r.eachComponent({mainType:"series",subType:"sunburst",query:e},s);function s(l,u){var f=Lo(e,[dy],l);if(f){var c=l.getViewRoot();if(c)e.direction=Hf(c,f.node)?"rollUp":"drillDown";l.resetViewRoot(f.node)}}}),n.registerAction({type:Qk,update:"none"},function(e,r,s){e=V({},e),r.eachComponent({mainType:"series",subType:"sunburst",query:e},l);function l(u){var f=Lo(e,[Qk],u);if(f)e.dataIndex=f.node.dataIndex}s.dispatchAction(V(e,{type:"highlight"}))}),n.registerAction({type:uZ,update:"updateView"},function(e,r,s){e=V({},e),s.dispatchAction(V(e,{type:"downplay"}))})}var fZ=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=Rn,r}return e.prototype.render=function(r,s,l,u){var f=this;this.seriesModel=r,this.api=l,this.ecModel=s;var c=r.getData(),p=c.tree.root,v=r.getViewRoot(),h=this.group,d=r.get("renderLabelForZeroData"),m=[];v.eachNode(function(b){m.push(b)});var g=this._oldChildren||[];y(m,g),D(p,v),this._initEvents(),this._oldChildren=m;function y(b,C){if(b.length===0&&C.length===0)return;new Fi(C,b,A,A).add(T).update(T).remove(Ae(T,null)).execute();function A(E){return E.getId()}function T(E,w){var L=E==null?null:b[E],M=w==null?null:C[w];x(L,M)}}function x(b,C){if(!d&&b&&!b.getValue())b=null;if(b!==p&&C!==p){if(C&&C.piece)if(b)C.piece.updateData(!1,b,r,s,l),c.setItemGraphicEl(b.dataIndex,C.piece);else S(C);else if(b){var A=new ob(b,r,s,l);h.add(A),c.setItemGraphicEl(b.dataIndex,A)}}}function S(b){if(!b)return;if(b.piece)h.remove(b.piece),b.piece=null}function D(b,C){if(C.depth>0){if(f.virtualPiece)f.virtualPiece.updateData(!1,b,r,s,l);else f.virtualPiece=new ob(b,r,s,l),h.add(f.virtualPiece);C.piece.off("click"),f.virtualPiece.on("click",function(A){f._rootToNode(C.parentNode)})}else if(f.virtualPiece)h.remove(f.virtualPiece),f.virtualPiece=null}},e.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(s){var l=!1,u=r.seriesModel.getViewRoot();u.eachNode(function(f){if(!l&&f.piece&&f.piece===s.target){var c=f.getModel().get("nodeClick");if(c==="rootToNode")r._rootToNode(f);else if(c==="link"){var p=f.getModel(),v=p.get("link");if(v){var h=p.get("target",!0)||"_blank";Ul(v,h)}}l=!0}})})},e.prototype._rootToNode=function(r){if(r!==this.seriesModel.getViewRoot())this.api.dispatchAction({type:dy,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},e.prototype.containPoint=function(r,s){var l=s.getData(),u=l.getItemLayout(0);if(u){var f=r[0]-u.cx,c=r[1]-u.cy,p=Math.sqrt(f*f+c*c);return p<=u.r&&p>=u.r0}},e.type=Rn,e}(qe),eB=fZ;var tB=yt(Rn,cZ);function cZ(n){var e={};function r(s,l,u){if(s.depth===0)return X.color.neutral50;var f=s;while(f&&f.depth>1)f=f.parentNode;var c=l.getColorFromPalette(f.name||f.dataIndex+"",e);if(s.depth>1&&K(c))c=ch(c,(s.depth-1)/(u-1)*0.5);return c}n.eachSeriesByType(Rn,function(s){var l=s.getData(),u=l.tree;u.eachNode(function(f){var c=f.getModel(),p=c.getModel("itemStyle").getItemStyle();if(!p.fill)p.fill=r(f,s,u.root.height);var v=l.ensureUniqueItemVisual(f.dataIndex,"style");V(v,p)})})}var rB=Math.PI/180,iB=yt(Rn,pZ);function pZ(n,e){n.eachSeriesByType(Rn,function(r){var s=r.get("center"),l=r.get("radius");if(!U(l))l=[0,l];if(!U(s))s=[s,s];var u=e.getWidth(),f=e.getHeight(),c=Math.min(u,f),p=ee(s[0],u),v=ee(s[1],f),h=ee(l[0],c/2),d=ee(l[1],c/2),m=-r.get("startAngle")*rB,g=r.get("minAngle")*rB,y=r.getData().tree.root,x=r.getViewRoot(),S=x.depth,D=r.get("sort");if(D!=null)aB(x,D);var b=0;I(x.children,function(F){!isNaN(F.getValue())&&b++});var C=x.getValue(),A=Math.PI/(C||b)*2,T=x.depth>0,E=x.height-(T?-1:1),w=(d-h)/(E||1),L=r.get("clockwise"),M=r.get("stillShowZeroSum"),P=L?1:-1,R=function(F,z){if(!F)return;var H=z;if(F!==y){var G=F.getValue(),Z=C===0&&M?A:G*A;if(Z<g)Z=g;H=z+P*Z;var Q=F.depth-S-(T?-1:1),q=h+w*Q,ae=h+w*(Q+1),ce=r.getLevelModel(F);if(ce){var ne=ce.get("r0",!0),de=ce.get("r",!0),ze=ce.get("radius",!0);if(ze!=null)ne=ze[0],de=ze[1];ne!=null&&(q=ee(ne,c/2)),de!=null&&(ae=ee(de,c/2))}F.setLayout({angle:Z,startAngle:z,endAngle:H,clockwise:L,cx:p,cy:v,r0:q,r:ae})}if(F.children&&F.children.length){var dt=0;I(F.children,function(ke){dt+=R(ke,z+dt)})}return H-z};if(T){var N=h,O=h+w,B=Math.PI*2;y.setLayout({angle:B,startAngle:m,endAngle:m+B,clockwise:L,cx:p,cy:v,r0:N,r:O})}R(x,m)})}function aB(n,e){var r=n.children||[];if(n.children=vZ(r,e),r.length)I(n.children,function(s){aB(s,e)})}function vZ(n,e){if(ie(e)){var r=W(n,function(l,u){var f=l.getValue();return{params:{depth:l.depth,height:l.height,dataIndex:l.dataIndex,getValue:function(){return f}},index:u}});return r.sort(function(l,u){return e(l.params,u.params)}),W(r,function(l){return n[l.index]})}else{var s=e==="asc";return n.sort(function(l,u){var f=(l.getValue()-u.getValue())*(s?1:-1);return f===0?(l.dataIndex-u.dataIndex)*(s?-1:1):f})}}function sb(n){n.registerChartView(eB),n.registerSeriesModel($k),n.registerLayout(iB),n.registerVisual(tB),Jk(n)}var pu=he(),nB=le,lb=se,hZ=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,r,s,l){var u=r.get("value"),f=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=s,!l&&this._lastValue===u&&this._lastStatus===f)return;this._lastValue=u,this._lastStatus=f;var c=this._group,p=this._handle;if(!f||f==="hide"){c&&c.hide(),p&&p.hide();return}c&&c.show(),p&&p.show();var v={};this.makeElOption(v,u,e,r,s);var h=v.graphicKey;if(h!==this._lastGraphicKey)this.clear(s);this._lastGraphicKey=h;var d=this._moveAnimation=this.determineAnimation(e,r);if(!c)c=this._group=new ve,this.createPointerEl(c,v,e,r),this.createLabelEl(c,v,e,r),s.getZr().add(c);else{var m=Ae(oB,r,d);this.updatePointerEl(c,v,m),this.updateLabelEl(c,v,m,r)}lB(c,r,!0),this._renderHandle(u)},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,r){var s=r.get("animation"),l=e.axis,u=l.type==="category",f=r.get("snap");if(!f&&!u)return!1;if(s==="auto"||s==null){var c=this.animationThreshold;if(u&&mr(l).w>c)return!0;if(f){var p=Ig(e).seriesDataCount,v=l.getExtent();return Math.abs(v[0]-v[1])/p>c}return!1}return s===!0},n.prototype.makeElOption=function(e,r,s,l,u){},n.prototype.createPointerEl=function(e,r,s,l){var u=r.pointer;if(u){var f=pu(e).pointerEl=new Ne[u.type](nB(r.pointer));e.add(f)}},n.prototype.createLabelEl=function(e,r,s,l){if(r.label){var u=pu(e).labelEl=new Ve(nB(r.label));e.add(u),sB(u,l)}},n.prototype.updatePointerEl=function(e,r,s){var l=pu(e).pointerEl;if(l&&r.pointer)l.setStyle(r.pointer.style),s(l,{shape:r.pointer.shape})},n.prototype.updateLabelEl=function(e,r,s,l){var u=pu(e).labelEl;if(u)u.setStyle(r.label.style),s(u,{x:r.label.x,y:r.label.y}),sB(u,l)},n.prototype._renderHandle=function(e){if(this._dragging||!this.updateHandleTransform)return;var r=this._axisPointerModel,s=this._api.getZr(),l=this._handle,u=r.getModel("handle"),f=r.get("status");if(!u.get("show")||!f||f==="hide"){l&&s.remove(l),this._handle=null;return}var c;if(!this._handle)c=!0,l=this._handle=np(u.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(v){Ai(v.event)},onmousedown:lb(this._onHandleDragMove,this,0,0),drift:lb(this._onHandleDragMove,this),ondragend:lb(this._onHandleDragEnd,this)}),s.add(l);lB(l,r,!1),l.setStyle(u.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var p=u.get("size");if(!U(p))p=[p,p];l.scaleX=p[0]/2,l.scaleY=p[1]/2,bn(this,"_doDispatchAxisPointer",u.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,c)},n.prototype._moveHandleToValue=function(e,r){oB(this._axisPointerModel,!r&&this._moveAnimation,this._handle,ub(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,r){var s=this._handle;if(!s)return;this._dragging=!0;var l=this.updateHandleTransform(ub(s),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=l,s.stopAnimation(),s.attr(ub(l)),pu(s).lastProp=null,this._doDispatchAxisPointer()},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(!e)return;var r=this._payloadInfo,s=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:s.axis.dim,axisIndex:s.componentIndex}]})},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(!e)return;var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),s=this._group,l=this._handle;if(r&&s)this._lastGraphicKey=null,s&&r.remove(s),l&&r.remove(l),this._group=null,this._handle=null,this._payloadInfo=null;Co(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,r,s){return s=s||0,{x:e[s],y:e[1-s],width:r[s],height:r[1-s]}},n}();function oB(n,e,r,s){if(!uB(pu(r).lastProp,s))pu(r).lastProp=s,e?Oe(r,s,n):(r.stopAnimation(),r.attr(s))}function uB(n,e){if(ue(n)&&ue(e)){var r=!0;return I(e,function(s,l){r=r&&uB(n[l],s)}),!!r}else return n===e}function sB(n,e){n[e.get(["label","show"])?"show":"hide"]()}function ub(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function lB(n,e,r){var s=e.get("z"),l=e.get("zlevel");n&&n.traverse(function(u){if(u.type!=="group")s!=null&&(u.z=s),l!=null&&(u.zlevel=l),u.silent=r})}var tc=hZ;function rc(n){var e=n.get("type"),r=n.getModel(e+"Style"),s;if(e==="line")s=r.getLineStyle(),s.fill=null;else if(e==="shadow")s=r.getAreaStyle(),s.stroke=null;return s}function fb(n,e,r,s,l){var u=r.get("value"),f=cb(u,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),c=r.getModel("label"),p=mn(c.get("padding")||0),v=c.getFont(),h=wu(f,v),d=l.position,m=h.width+p[1]+p[3],g=h.height+p[0]+p[2],y=l.align;y==="right"&&(d[0]-=m),y==="center"&&(d[0]-=m/2);var x=l.verticalAlign;x==="bottom"&&(d[1]-=g),x==="middle"&&(d[1]-=g/2),dZ(d,m,g,s);var S=c.get("backgroundColor");if(!S||S==="auto")S=e.get(["axisLine","lineStyle","color"]);n.label={x:d[0],y:d[1],style:ut(c,{text:f,font:v,fill:c.getTextColor(),padding:p,backgroundColor:S}),z2:10}}function dZ(n,e,r,s){var l=s.getWidth(),u=s.getHeight();n[0]=Math.min(n[0]+e,l)-e,n[1]=Math.min(n[1]+r,u)-r,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function cb(n,e,r,s,l){n=e.scale.parse(n);var u=e.scale.getLabel({value:n},{precision:l.precision}),f=l.formatter;if(f){var c={value:yf(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};if(I(s,function(p){var v=r.getSeriesByIndex(p.seriesIndex),h=p.dataIndexInside,d=v&&v.getDataParams(h);d&&c.seriesData.push(d)}),K(f))u=f.replace("{value}",u);else if(ie(f))u=f(c)}return u}function gv(n,e,r){var s=Ct();return en(s,s,r.rotation),Zi(s,s,r.position),$r([n.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],s)}function my(n,e,r,s,l,u){var f=Pr.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=l.get(["label","margin"]),fb(e,s,l,u,{position:gv(s.axis,n,r),align:f.textAlign,verticalAlign:f.textVerticalAlign})}function ic(n,e,r){return r=r||0,{x1:n[r],y1:n[1-r],x2:e[r],y2:e[1-r]}}function gy(n,e,r){return r=r||0,{x:n[r],y:n[1-r],width:e[r],height:e[1-r]}}function pb(n,e,r,s,l,u){return{cx:n,cy:e,r0:r,r:s,startAngle:l,endAngle:u,clockwise:!0}}function ac(n,e,r){return mr(n,{fromStat:{sers:W(e,function(s){return r.getSeriesByIndex(s.seriesIndex)})},min:1}).w}function nc(n,e,r){return[Be(lt(e[0],e[1]),n-r/2),lt(n+r/2,Be(e[0],e[1]))]}var mZ=function(n){k(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,s,l,u,f){var c=l.axis,p=c.grid,v=u.get("type"),h=c.getGlobalExtent(),d=fB(p,c).getOtherAxis(c).getGlobalExtent(),m=c.toGlobalCoord(c.dataToCoord(s,!0));if(v&&v!=="none"){var g=rc(u),y=gZ[v](c,m,h,d,u.get("seriesDataIndices"),u.ecModel);y.style=g,r.graphicKey=y.type,r.pointer=y}var x=Np(p.getRect(),l);my(s,r,x,l,u,f)},e.prototype.getHandleTransform=function(r,s,l){var u=Np(s.axis.grid.getRect(),s,{labelInside:!1});u.labelMargin=l.get(["handle","margin"]);var f=gv(s.axis,r,u);return{x:f[0],y:f[1],rotation:u.rotation+(u.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,s,l,u){var f=l.axis,c=f.grid,p=f.getGlobalExtent(!0),v=fB(c,f).getOtherAxis(f).getGlobalExtent(),h=f.dim==="x"?0:1,d=[r.x,r.y];d[h]+=s[h],d[h]=lt(p[1],d[h]),d[h]=Be(p[0],d[h]);var m=(v[1]+v[0])/2,g=[m,m];g[h]=d[h];var y=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:r.rotation,cursorPoint:g,tooltipOption:y[h]}},e}(tc);function fB(n,e){var r={};return r[e.dim+"AxisIndex"]=e.index,n.getCartesian(r)}var gZ={line:function(n,e,r,s){var l=ic([e,s[0]],[e,s[1]],cB(n));return{type:"Line",subPixelOptimize:!0,shape:l}},shadow:function(n,e,r,s,l,u){var f=ac(n,l,u),c=s[1]-s[0],p=nc(e,r,f),v=p[0],h=p[1];return{type:"Rect",shape:gy([v,s[0]],[h-v,c],cB(n))}}};function cB(n){return n.dim==="x"?0:1}var pB=mZ;var yZ=function(n){k(e,n);function e(){var r=n!==null&&n.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:X.color.border,width:1,type:"dashed"},shadowStyle:{color:X.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:X.color.neutral00,padding:[5,7,5,7],backgroundColor:X.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:X.color.accent40,throttle:40}},e}(Fe),vB=yZ;var No=he(),xZ=I;function xy(n,e,r){if(Ue.node)return;var s=e.getZr();No(s).records||(No(s).records={}),_Z(s,e);var l=No(s).records[n]||(No(s).records[n]={});l.handler=r}function _Z(n,e){if(No(n).initialized)return;No(n).initialized=!0,r("click",Ae(vb,"click")),r("mousemove",Ae(vb,"mousemove")),r("mousewheel",Ae(vb,"mousewheel")),r("globalout",DZ);function r(s,l){n.on(s,function(u){var f=bZ(e);xZ(No(n).records,function(c){c&&l(c,u,f.dispatchAction)}),SZ(f.pendings,e)})}}function SZ(n,e){var r=n.showTip.length,s=n.hideTip.length,l;if(r)l=n.showTip[r-1];else if(s)l=n.hideTip[s-1];if(l)l.dispatchAction=null,e.dispatchAction(l)}function DZ(n,e,r){n.handler("leave",null,r)}function vb(n,e,r,s){e.handler(n,r,s)}function bZ(n){var e={showTip:[],hideTip:[]},r=function(s){var l=e[s.type];if(l)l.push(s);else s.dispatchAction=r,n.dispatchAction(s)};return{dispatchAction:r,pendings:e}}function yv(n,e){if(Ue.node)return;var r=e.getZr(),s=(No(r).records||{})[n];if(s)No(r).records[n]=null}var CZ=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,s,l){var u=s.getComponent("tooltip"),f=r.get("triggerOn")||u&&u.get("triggerOn")||"mousemove|click|mousewheel";xy("axisPointer",l,function(c,p,v){if(f!=="none"&&(c==="leave"||f.indexOf(c)>=0))v({type:"updateAxisPointer",currTrigger:c,x:p&&p.offsetX,y:p&&p.offsetY})})},e.prototype.remove=function(r,s){yv("axisPointer",s)},e.prototype.dispose=function(r,s){yv("axisPointer",s)},e.type="axisPointer",e}(ft),dB=CZ;function xv(n,e){var r=[],s=n.seriesIndex,l;if(s==null||!(l=e.getSeriesByIndex(s)))return{point:[]};var u=l.getData(),f=na(u,n);if(f==null||f<0||U(f))return{point:[]};var c=u.getItemGraphicEl(f),p=l.coordinateSystem;if(l.getTooltipPosition)r=l.getTooltipPosition(f)||[];else if(p&&p.dataToPoint)if(n.isStacked){var v=p.getBaseAxis(),h=p.getOtherAxis(v),d=h.dim,m=v.dim,g=d==="x"||d==="radius"?1:0,y=u.mapDimension(m),x=[];x[g]=u.get(y,f),x[1-g]=u.get(u.getCalculationInfo("stackResultDimension"),f),r=p.dataToPoint(x)||[]}else r=p.dataToPoint(u.getValues(W(p.dimensions,function(D){return u.mapDimension(D)}),f))||[];else if(c){var S=c.getBoundingRect().clone();S.applyTransform(c.transform),r=[S.x+S.width/2,S.y+S.height/2]}return{point:r,el:c}}var mB=he();function hb(n,e,r){var s=n.currTrigger,l=[n.x,n.y],u=n,f=n.dispatchAction||se(r.dispatchAction,r),c=e.getComponent("axisPointer").coordSysAxesInfo;if(!c)return;if(_y(l))l=xv({seriesIndex:u.seriesIndex,dataIndex:u.dataIndex},e).point;var p=_y(l),v=u.axesInfo,h=c.axesInfo,d=s==="leave"||_y(l),m={},g={},y={list:[],map:{}},x={showPointer:Ae(TZ,g),showTooltip:Ae(EZ,y)};I(c.coordSysMap,function(D,b){var C=p||D.containPoint(l);I(c.coordSysAxesInfo[b],function(A,T){var E=A.axis,w=LZ(v,A);if(!d&&C&&(!v||w)){var L=w&&w.value;if(L==null&&!p)L=E.pointToData(l);L!=null&&gB(A,L,x,!1,m)}})});var S={};return I(h,function(D,b){var C=D.linkGroup;if(C&&!g[b])I(C.axesInfo,function(A,T){var E=g[T];if(A!==D&&E){var w=E.value;C.mapper&&(w=D.axis.scale.parse(C.mapper(w,yB(A),yB(D)))),S[D.key]=w}})}),I(S,function(D,b){gB(h[b],D,x,!0,m)}),wZ(g,h,m),IZ(y,l,n,f),MZ(h,f,r),m}function gB(n,e,r,s,l){var u=n.axis;if(u.scale.isBlank()||!u.containData(e))return;if(!n.involveSeries){r.showPointer(n,e);return}var f=AZ(e,n),{payloadBatch:c,snapToValue:p}=f;if(c[0]&&l.seriesIndex==null)V(l,c[0]);if(!s&&n.snap){if(u.containData(p)&&p!=null)e=p}r.showPointer(n,e,c),r.showTooltip(n,f,p)}function AZ(n,e){var r=e.axis,s=r.dim,l=n,u=[],f=Number.MAX_VALUE,c=-1;return I(e.seriesModels,function(p,v){var h=p.getData().mapDimensionsAll(s),d,m;if(p.getAxisTooltipData){var g=p.getAxisTooltipData(h,n,r);m=g.dataIndices,d=g.nestestValue}else{if(m=p.indicesOfNearest(s,h[0],n,r.type==="category"?0.5:null),!m.length)return;d=p.getData().get(h[0],m[0])}if(!vr(d))return;var y=n-d,x=Math.abs(y);if(x<=f){if(x<f||y>=0&&c<0)f=x,c=y,l=d,u.length=0;I(m,function(S){u.push({seriesIndex:p.seriesIndex,dataIndexInside:S,dataIndex:p.getData().getRawIndex(S)})})}}),{payloadBatch:u,snapToValue:l}}function TZ(n,e,r,s){n[e.key]={value:r,payloadBatch:s}}function EZ(n,e,r,s){var l=r.payloadBatch,u=e.axis,f=u.model,c=e.axisPointerModel;if(!e.triggerTooltip||!l.length)return;var p=e.coordSys.model,v=kf(p),h=n.map[v];if(!h)h=n.map[v]={coordSysId:p.id,coordSysIndex:p.componentIndex,coordSysType:p.type,coordSysMainType:p.mainType,dataByAxis:[]},n.list.push(h);h.dataByAxis.push({axisDim:u.dim,axisIndex:f.componentIndex,axisType:f.type,axisId:f.id,value:s,valueLabelOpt:{precision:c.get(["label","precision"]),formatter:c.get(["label","formatter"])},seriesDataIndices:l.slice()})}function wZ(n,e,r){var s=r.axesInfo=[];I(e,function(l,u){var f=l.axisPointerModel.option,c=n[u];if(c)!l.useHandle&&(f.status="show"),f.value=c.value,f.seriesDataIndices=(c.payloadBatch||[]).slice();else!l.useHandle&&(f.status="hide");f.status==="show"&&s.push({axisDim:l.axis.dim,axisIndex:l.axis.model.componentIndex,value:f.value})})}function IZ(n,e,r,s){if(_y(e)||!n.list.length){s({type:"hideTip"});return}var l=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};s({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:l.dataIndexInside,dataIndex:l.dataIndex,seriesIndex:l.seriesIndex,dataByCoordSys:n.list})}function MZ(n,e,r){var s=r.getZr(),l="axisPointerLastHighlights",u=mB(s)[l]||{},f=mB(s)[l]={};I(n,function(h,d){var m=h.axisPointerModel.option;m.status==="show"&&h.triggerEmphasis&&I(m.seriesDataIndices,function(g){f[g.seriesIndex+"|"+g.dataIndex]=g})});var c=[],p=[];function v(h){return{seriesIndex:h.seriesIndex,dataIndex:h.dataIndex}}I(u,function(h,d){!f[d]&&p.push(v(h))}),I(f,function(h,d){!u[d]&&c.push(v(h))}),p.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:p}),c.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:c})}function LZ(n,e){for(var r=0;r<(n||[]).length;r++){var s=n[r];if(e.axis.dim===s.axisDim&&e.axis.model.componentIndex===s.axisIndex)return s}}function yB(n){var e=n.axis.model,r={},s=r.axisDim=n.axis.dim;return r.axisIndex=r[s+"AxisIndex"]=e.componentIndex,r.axisName=r[s+"AxisName"]=e.name,r.axisId=r[s+"AxisId"]=e.id,r}function _y(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function Ns(n){Ei.registerAxisPointerClass("CartesianAxisPointer",pB),n.registerComponentModel(vB),n.registerComponentView(dB),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;if(r&&!U(r))e.axisPointer.link=[r]}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=hR(e,r)}}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},hb)}function db(n){It(Pg),It(Ns)}var PZ=function(n){k(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,s,l,u,f){var c=l.axis;if(c.dim==="angle")this.animationThreshold=Math.PI/18;var p=c.polar,v=c.getExtent(),h=p.getOtherAxis(c).getExtent(),d=c.dataToCoord(s),m=u.get("type");if(m&&m!=="none"){var g=rc(u),y=OZ[m](c,p,d,v,h,u.get("seriesDataIndices"),u.ecModel);y.style=g,r.graphicKey=y.type,r.pointer=y}var x=u.get(["label","margin"]),S=RZ(s,l,u,p,x);fb(r,l,u,f,S)},e}(tc);function RZ(n,e,r,s,l){var u=e.axis,f=u.dataToCoord(n),c=s.getAngleAxis().getExtent()[0];c=c/180*Math.PI;var p=s.getRadiusAxis().getExtent(),v,h,d;if(u.dim==="radius"){var m=Ct();en(m,m,c),Zi(m,m,[s.cx,s.cy]),v=$r([f,-l],m);var g=e.getModel("axisLabel").get("rotate")||0,y=Pr.innerTextLayout(c,g*Math.PI/180,-1);h=y.textAlign,d=y.textVerticalAlign}else{var x=p[1];v=s.coordToPoint([x+l,f]);var{cx:S,cy:D}=s;h=Math.abs(v[0]-S)/x<0.3?"center":v[0]>S?"left":"right",d=Math.abs(v[1]-D)/x<0.3?"middle":v[1]>D?"top":"bottom"}return{position:v,align:h,verticalAlign:d}}var OZ={line:function(n,e,r,s,l){return n.dim==="angle"?{type:"Line",shape:ic(e.coordToPoint([l[0],r]),e.coordToPoint([l[1],r]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r}}},shadow:function(n,e,r,s,l,u,f){var c=Math.PI/180,p=ac(n,u,f),v;if(n.dim==="angle")v=pb(e.cx,e.cy,l[0],l[1],(-r-p/2)*c,(-r+p/2)*c);else{var h=nc(r,s,p),d=h[0],m=h[1];v=pb(e.cx,e.cy,d,m,0,Math.PI*2)}return{type:"Sector",shape:v}}},xB=PZ;var Xi="polar",mb=Xi,NZ=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.findAxisModel=function(r){var s,l=this.ecModel;return l.eachComponent(r,function(u){if(u.getCoordSysModel()===this)s=u},this),s},e.type=Xi,e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Fe),_B=NZ;var gb=function(n){k(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",gt).models[0]},e.type="polarAxis",e}(Fe);xt(gb,In);var SB=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.type="angleAxis",e}(gb);var DB=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.type="radiusAxis",e}(gb);var yb=function(n){k(e,n);function e(r,s){return n.call(this,"radius",r,s)||this}return e.prototype.pointToData=function(r,s){return this.polar.pointToData(r,s)[this.dim==="radius"?0:1]},e}(Ur);yb.prototype.dataToRadius=Ur.prototype.dataToCoord;yb.prototype.radiusToData=Ur.prototype.coordToData;var bB=yb;var kZ=he(),xb=function(n){k(e,n);function e(r,s){return n.call(this,"angle",r,s||[0,360])||this}return e.prototype.pointToData=function(r,s){return this.polar.pointToData(r,s)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var r=this,s=r.getLabelModel(),l=r.scale,u=l.getExtent(),f=l.count();if(u[1]-u[0]<1)return 0;var c=u[0],p=r.dataToCoord(c+1)-r.dataToCoord(c),v=Math.abs(p),h=wu(c==null?"":c+"",s.getFont(),"center","top"),d=Math.max(h.height,7),m=d/v;isNaN(m)&&(m=1/0);var g=Math.max(0,Math.floor(m)),y=kZ(r.model),{lastAutoInterval:x,lastTickCount:S}=y;if(x!=null&&S!=null&&Math.abs(x-g)<=1&&Math.abs(S-f)<=1&&x>g)g=x;else y.lastTickCount=f,y.lastAutoInterval=g;return g},e}(Ur);xb.prototype.dataToAngle=Ur.prototype.dataToCoord;xb.prototype.angleToData=Ur.prototype.coordToData;var CB=xb;var _b=["radius","angle"],BZ=function(){function n(e){this.dimensions=_b,this.type=Xi,this.cx=0,this.cy=0,this._radiusAxis=new bB,this._angleAxis=new CB,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var r=this.pointToCoord(e);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var r="_"+e+"Axis";return this[r]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var r=[],s=this._angleAxis,l=this._radiusAxis;return s.scale.type===e&&r.push(s),l.scale.type===e&&r.push(l),r},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var r=this._angleAxis;return e===r?this._radiusAxis:r},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var r=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},n.prototype.dataToPoint=function(e,r,s){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],r),this._angleAxis.dataToAngle(e[1],r)],s)},n.prototype.pointToData=function(e,r,s){s=s||[];var l=this.pointToCoord(e);return s[0]=this._radiusAxis.radiusToData(l[0],r),s[1]=this._angleAxis.angleToData(l[1],r),s},n.prototype.pointToCoord=function(e){var r=e[0]-this.cx,s=e[1]-this.cy,l=this.getAngleAxis(),u=l.getExtent(),f=Math.min(u[0],u[1]),c=Math.max(u[0],u[1]);l.inverse?f=c-360:c=f+360;var p=Math.sqrt(r*r+s*s);r/=p,s/=p;var v=Math.atan2(-s,r)/Math.PI*180,h=v<f?1:-1;while(v<f||v>c)v+=h*360;return[p,v]},n.prototype.coordToPoint=function(e,r){r=r||[];var s=e[0],l=e[1]/180*Math.PI;return r[0]=Math.cos(l)*s+this.cx,r[1]=-Math.sin(l)*s+this.cy,r},n.prototype.getArea=function(){var e=this.getAngleAxis(),r=this.getRadiusAxis(),s=r.getExtent().slice();s[0]>s[1]&&s.reverse();var l=e.getExtent(),u=Math.PI/180,f=0.0001;return{cx:this.cx,cy:this.cy,r0:s[0],r:s[1],startAngle:-l[0]*u,endAngle:-l[1]*u,clockwise:e.inverse,contain:function(c,p){var v=c-this.cx,h=p-this.cy,d=v*v+h*h,m=this.r,g=this.r0;return m!==g&&d-f<=m*m&&d+f>=g*g},x:this.cx-s[1],y:this.cy-s[1],width:s[1]*2,height:s[1]*2}},n.prototype.convertToPixel=function(e,r,s){var l=AB(r);return l===this?this.dataToPoint(s):null},n.prototype.convertFromPixel=function(e,r,s){var l=AB(r);return l===this?this.pointToData(s):null},n}();function AB(n){var{seriesModel:e,polarModel:r}=n;return r&&r.coordinateSystem||e&&e.coordinateSystem}var TB=BZ;function FZ(n,e,r){var s=e.get("center"),l=Tt(e,r).refContainer;n.cx=ee(s[0],l.width)+l.x,n.cy=ee(s[1],l.height)+l.y;var u=n.getRadiusAxis(),f=Math.min(l.width,l.height)/2,c=e.get("radius");if(c==null)c=[0,"100%"];else if(!U(c))c=[0,c];var p=[ee(c[0],f),ee(c[1],f)];u.inverse?u.setExtent(p[1],p[0]):u.setExtent(p[0],p[1])}function zZ(n,e){var r=this,s=r.getAngleAxis(),l=r.getRadiusAxis();if(Ui(s,Ga),Ui(l,Ga),Mn(s),Mn(l),s.type==="category"&&!s.onBand){var u=s.getExtent(),f=360/s.scale.count();s.inverse?u[1]+=f:u[1]-=f,s.setExtent(u[0],u[1])}}function VZ(n){return n.mainType==="angleAxis"}function EB(n,e){var r;if(n.type=Ss(e),n.scale=Ds(e,n.type,!1),n.onBand=Sn(n.scale,e),n.inverse=e.get("inverse"),VZ(e)){n.inverse=n.inverse!==e.get("clockwise");var s=e.get("startAngle"),l=(r=e.get("endAngle"))!==null&&r!==void 0?r:s+(n.inverse?-360:360);n.setExtent(s,l)}e.axis=n,n.model=e}var UZ={dimensions:_b,create:function(n,e){var r=[];return n.eachComponent(mb,function(s,l){var u=new TB(l+"");u.update=zZ;var f=u.getRadiusAxis(),c=u.getAngleAxis(),p=s.findAxisModel("radiusAxis"),v=s.findAxisModel("angleAxis");EB(f,p),EB(c,v),FZ(u,s,e),r.push(u),s.coordinateSystem=u,u.model=s}),n.eachSeries(function(s){if(s.get("coordinateSystem")===Xi){var l=s.getReferringComponents(mb,gt).models[0],u=s.coordinateSystem=l.coordinateSystem;if(u)ca(u.getRadiusAxis(),s,Xi),ca(u.getAngleAxis(),s,Xi)}}),r}},wB=UZ;var GZ=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Sy(n,e,r){e[1]>e[0]&&(e=e.slice().reverse());var s=n.coordToPoint([e[0],r]),l=n.coordToPoint([e[1],r]);return{x1:s[0],y1:s[1],x2:l[0],y2:l[1]}}function Dy(n){var e=n.getRadiusAxis();return e.inverse?0:1}function IB(n){var e=n[0],r=n[n.length-1];if(e&&r&&Math.abs(Math.abs(e.coord-r.coord)-360)<0.0001)n.pop()}var HZ=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="PolarAxisPointer",r}return e.prototype.render=function(r,s){if(this.group.removeAll(),!r.get("show"))return;var l=r.axis,u=l.polar,f=u.getRadiusAxis().getExtent(),c=l.getTicksCoords({breakTicks:"none"}),p=l.getMinorTicksCoords(),v=[];I(l.getViewLabels(),function(h){if(h.tick.offInterval)return;h=le(h);var d=l.scale;h.coord=l.dataToCoord(za(d,h.tick)),v.push(h)}),IB(v),IB(c),I(GZ,function(h){if(r.get([h,"show"])&&(!l.scale.isBlank()||h==="axisLine"))WZ[h](this.group,r,u,c,p,f,v)},this)},e.type="angleAxis",e}(Ei),WZ={axisLine:function(n,e,r,s,l,u){var f=e.getModel(["axisLine","lineStyle"]),c=r.getAngleAxis(),p=Math.PI/180,v=c.getExtent(),h=Dy(r),d=h?0:1,m,g=Math.abs(v[1]-v[0])===360?"Circle":"Arc";if(u[d]===0)m=new Ne[g]({shape:{cx:r.cx,cy:r.cy,r:u[h],startAngle:-v[0]*p,endAngle:-v[1]*p,clockwise:c.inverse},style:f.getLineStyle(),z2:1,silent:!0});else m=new Tl({shape:{cx:r.cx,cy:r.cy,r:u[h],r0:u[d]},style:f.getLineStyle(),z2:1,silent:!0});m.style.fill=null,n.add(m)},axisTick:function(n,e,r,s,l,u){var f=e.getModel("axisTick"),c=(f.get("inside")?-1:1)*f.get("length"),p=u[Dy(r)],v=W(s,function(h){return new Zt({shape:Sy(r,[p,p+c],h.coord)})});n.add(zr(v,{style:pe(f.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,r,s,l,u){if(!l.length)return;var f=e.getModel("axisTick"),c=e.getModel("minorTick"),p=(f.get("inside")?-1:1)*c.get("length"),v=u[Dy(r)],h=[];for(var d=0;d<l.length;d++)for(var m=0;m<l[d].length;m++)h.push(new Zt({shape:Sy(r,[v,v+p],l[d][m].coord)}));n.add(zr(h,{style:pe(c.getModel("lineStyle").getLineStyle(),pe(f.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))},axisLabel:function(n,e,r,s,l,u,f){var c=e.getCategories(!0),p=e.getModel("axisLabel"),v=p.get("margin"),h=e.get("triggerEvent");I(f,function(d,m){var g=p,y=d.tick.value,x=u[Dy(r)],S=r.coordToPoint([x+v,d.coord]),{cx:D,cy:b}=r,C=Math.abs(S[0]-D)/x<0.3?"center":S[0]>D?"left":"right",A=Math.abs(S[1]-b)/x<0.3?"middle":S[1]>b?"top":"bottom";if(c&&c[y]){var T=c[y];if(ue(T)&&T.textStyle)g=new Je(T.textStyle,p,p.ecModel)}var E=new Ve({silent:Pr.isLabelSilent(e),style:ut(g,{x:S[0],y:S[1],fill:g.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:C,verticalAlign:A})});if(n.add(E),ls({el:E,componentModel:e,itemName:d.formattedLabel,formatterParamsExtra:{isTruncated:function(){return E.isTruncated},value:d.rawLabel,tickIndex:m}}),h){var w=Pr.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=d.rawLabel,ye(E).eventData=w}},this)},splitLine:function(n,e,r,s,l,u){var f=e.getModel("splitLine"),c=f.getModel("lineStyle"),p=c.get("color"),v=0;p=p instanceof Array?p:[p];var h=[];for(var d=0;d<s.length;d++){var m=v++%p.length;h[m]=h[m]||[],h[m].push(new Zt({shape:Sy(r,u,s[d].coord)}))}for(var d=0;d<h.length;d++)n.add(zr(h[d],{style:pe({stroke:p[d%p.length]},c.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(n,e,r,s,l,u){if(!l.length)return;var f=e.getModel("minorSplitLine"),c=f.getModel("lineStyle"),p=[];for(var v=0;v<l.length;v++)for(var h=0;h<l[v].length;h++)p.push(new Zt({shape:Sy(r,u,l[v][h].coord)}));n.add(zr(p,{style:c.getLineStyle(),silent:!0,z:e.get("z")}))},splitArea:function(n,e,r,s,l,u){if(!s.length)return;var f=e.getModel("splitArea"),c=f.getModel("areaStyle"),p=c.get("color"),v=0;p=p instanceof Array?p:[p];var h=[],d=Math.PI/180,m=-s[0].coord*d,g=Math.min(u[0],u[1]),y=Math.max(u[0],u[1]),x=e.get("clockwise");for(var S=1,D=s.length;S<=D;S++){var b=S===D?s[0].coord:s[S].coord,C=v++%p.length;h[C]=h[C]||[],h[C].push(new Xt({shape:{cx:r.cx,cy:r.cy,r0:g,r:y,startAngle:m,endAngle:-b*d,clockwise:x},silent:!0})),m=-b*d}for(var S=0;S<h.length;S++)n.add(zr(h[S],{style:pe({fill:p[S%p.length]},c.getAreaStyle()),silent:!0}))}},MB=HZ;var YZ=["splitLine","splitArea","minorSplitLine"],XZ=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="PolarAxisPointer",r}return e.prototype.render=function(r,s,l){if(this.group.removeAll(),!r.get("show"))return;var u=this._axisGroup,f=this._axisGroup=new ve;this.group.add(f);var c=r.axis,p=c.polar,v=p.getAngleAxis(),h=c.getTicksCoords(),d=c.getMinorTicksCoords(),m=v.getExtent()[0],g=c.getExtent(),y=KZ(p,r,m),x=new Pr(r,l,y);x.build(),f.add(x.group),lo(u,f,r),I(YZ,function(S){if(r.get([S,"show"])&&!c.scale.isBlank())ZZ[S](this.group,r,p,m,g,h,d)},this)},e.type="radiusAxis",e}(Ei),ZZ={splitLine:function(n,e,r,s,l,u){var f=e.getModel("splitLine"),c=f.getModel("lineStyle"),p=c.get("color"),v=0,h=r.getAngleAxis(),d=Math.PI/180,m=h.getExtent(),g=Math.abs(m[1]-m[0])===360?"Circle":"Arc";p=p instanceof Array?p:[p];var y=[];for(var x=0;x<u.length;x++){var S=v++%p.length;y[S]=y[S]||[],y[S].push(new Ne[g]({shape:{cx:r.cx,cy:r.cy,r:Math.max(u[x].coord,0),startAngle:-m[0]*d,endAngle:-m[1]*d,clockwise:h.inverse}}))}for(var x=0;x<y.length;x++)n.add(zr(y[x],{style:pe({stroke:p[x%p.length],fill:null},c.getLineStyle()),silent:!0}))},minorSplitLine:function(n,e,r,s,l,u,f){if(!f.length)return;var c=e.getModel("minorSplitLine"),p=c.getModel("lineStyle"),v=[];for(var h=0;h<f.length;h++)for(var d=0;d<f[h].length;d++)v.push(new Ia({shape:{cx:r.cx,cy:r.cy,r:f[h][d].coord}}));n.add(zr(v,{style:pe({fill:null},p.getLineStyle()),silent:!0}))},splitArea:function(n,e,r,s,l,u){if(!u.length)return;var f=e.getModel("splitArea"),c=f.getModel("areaStyle"),p=c.get("color"),v=0;p=p instanceof Array?p:[p];var h=[],d=u[0].coord;for(var m=1;m<u.length;m++){var g=v++%p.length;h[g]=h[g]||[],h[g].push(new Xt({shape:{cx:r.cx,cy:r.cy,r0:d,r:u[m].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),d=u[m].coord}for(var m=0;m<h.length;m++)n.add(zr(h[m],{style:pe({fill:p[m%p.length]},c.getAreaStyle()),silent:!0}))}};function KZ(n,e,r){return{position:[n.cx,n.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var LB=XZ;var qZ=oa();function PB(n){return n.get("stack")||"__ec_stack_"+n.seriesIndex}var RB=yt(ti,jZ);function jZ(n){var e=bo(ti,Xi);Sf(n,e,function(r){var s=QZ(r,ti),l={};Dn(r,e,function(u){$Z(r,u,s,l)})})}function $Z(n,e,r,s){var l=e.getData(),u=PB(e),f=r[u],{offset:c,width:p}=f,v=e.coordinateSystem,h=v.getOtherAxis(n),{cx:d,cy:m}=v,g=e.get("barMinHeight")||0,y=e.get("barMinAngle")||0;s[u]=s[u]||[];var x=l.mapDimension(h.dim),S=l.mapDimension(n.dim),D=zi(l,x),b=n.dim!=="radius"||!e.get("roundCap",!0),C=h.dataToCoord(Zm(h));for(var A=0,T=l.count();A<T;A++){var E=l.get(x,A),w=l.get(S,A),L=E>=0?"p":"n",M=C;if(D){if(!s[u][w])s[u][w]={p:C,n:C};M=s[u][w][L]}var P=void 0,R=void 0,N=void 0,O=void 0;if(h.dim==="radius"){var B=h.dataToCoord(E)-C,F=n.dataToCoord(w);if(_t(B)<g)B=(B<0?-1:1)*g;P=M,R=M+B,N=F-c,O=N-p,D&&(s[u][w][L]=R)}else{var z=h.dataToCoord(E,b)-C,H=n.dataToCoord(w);if(_t(z)<y)z=(z<0?-1:1)*y;P=H+c,R=P+p,N=M,O=M+z,D&&(s[u][w][L]=O)}l.setItemLayout(A,{cx:d,cy:m,r0:P,r:R,startAngle:-N*Vu/180,endAngle:-O*Vu/180,clockwise:N>=O})}}function QZ(n,e){var r=bo(e,Xi),s=mr(n,{fromStat:{key:r},min:1}).w,l=s,u=0,f="20%",c="30%",p={};Dn(n,r,function(S){var D=PB(S);if(!p[D])u++;p[D]=p[D]||{width:0,maxWidth:0};var b=ee(S.get("barWidth"),s),C=ee(S.get("barMaxWidth"),s),A=S.get("barGap"),T=S.get("barCategoryGap");if(b&&!p[D].width)b=lt(l,b),p[D].width=b,l-=b;C&&(p[D].maxWidth=C),A!=null&&(c=A),T!=null&&(f=T)});var v={},h=ee(f,s),d=ee(c,1),m=(l-h)/(u+(u-1)*d);m=Be(m,0),I(p,function(S,D){var b=S.maxWidth;if(b&&b<m){if(b=lt(b,l),S.width)b=lt(b,S.width);l-=b,S.width=b,u--}}),m=(l-h)/(u+(u-1)*d),m=Be(m,0);var g=0,y;if(I(p,function(S,D){if(!S.width)S.width=m;y=S,g+=S.width*(1+d)}),y)g-=y.width*d;var x=-g/2;return I(p,function(S,D){v[D]=v[D]||{offset:x,width:S.width},x+=S.width*(1+d)}),v}function OB(n,e){qZ(n,function(){var r=bo(e,Xi);Xm(n,r,e,Xi),Es(r,ws(r))})}var JZ={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},eK={splitNumber:5},tK=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.type="polar",e}(ft);function Sb(n){It(Ns),Ei.registerAxisPointerClass("PolarAxisPointer",xB),n.registerCoordinateSystem("polar",wB),n.registerComponentModel(_B),n.registerComponentView(tK),qa(n,"angle",SB,JZ),qa(n,"radius",DB,eK),n.registerComponentView(MB),n.registerComponentView(LB),n.registerLayout(RB),OB(n,ti)}function _v(n,e){e=e||{};var{coordinateSystem:r,axis:s}=n,l={},{position:u,orient:f}=s,c=r.getRect(),p=[c.x,c.x+c.width,c.y,c.y+c.height],v={horizontal:{top:p[2],bottom:p[3]},vertical:{left:p[0],right:p[1]}};l.position=[f==="vertical"?v.vertical[u]:p[0],f==="horizontal"?v.horizontal[u]:p[3]];var h={horizontal:0,vertical:1};l.rotation=Math.PI/2*h[f];var d={top:-1,bottom:1,right:1,left:-1};if(l.labelDirection=l.tickDirection=l.nameDirection=d[u],n.get(["axisTick","inside"]))l.tickDirection=-l.tickDirection;if(Ut(e.labelInside,n.get(["axisLabel","inside"])))l.labelDirection=-l.labelDirection;var m=n.get(["axisLabel","rotate"]);return l.labelRotate=u==="top"?-m:m,l.z2=1,l}var rK=["splitArea","splitLine","breakArea"],iK=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="SingleAxisPointer",r}return e.prototype.render=function(r,s,l,u){var f=this.group;f.removeAll();var c=this._axisGroup;this._axisGroup=new ve;var p=_v(r),v=new Pr(r,l,p);v.build(),f.add(this._axisGroup),f.add(v.group),I(rK,function(h){if(r.get([h,"show"]))aK[h](this,this.group,this._axisGroup,r,l)},this),lo(c,this._axisGroup,r),n.prototype.render.call(this,r,s,l,u)},e.prototype.remove=function(){Lg(this)},e.type="singleAxis",e}(Ei),aK={splitLine:function(n,e,r,s,l){var u=s.axis;if(u.scale.isBlank())return;var f=s.getModel("splitLine"),c=f.getModel("lineStyle"),p=c.get("color");p=p instanceof Array?p:[p];var v=c.get("width"),h=s.coordinateSystem.getRect(),d=u.isHorizontal(),m=[],g=0,y=u.getTicksCoords({tickModel:f,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),x=[],S=[];for(var D=0;D<y.length;++D){var b=u.toGlobalCoord(y[D].coord);if(d)x[0]=b,x[1]=h.y,S[0]=b,S[1]=h.y+h.height;else x[0]=h.x,x[1]=b,S[0]=h.x+h.width,S[1]=b;var C=new Zt({shape:{x1:x[0],y1:x[1],x2:S[0],y2:S[1]},silent:!0});oo(C.shape,v);var A=g++%p.length;m[A]=m[A]||[],m[A].push(C)}var T=c.getLineStyle(["color"]);for(var D=0;D<m.length;++D)e.add(zr(m[D],{style:pe({stroke:p[D%p.length]},T),silent:!0}))},splitArea:function(n,e,r,s,l){Mg(n,r,s,s)},breakArea:function(n,e,r,s,l){var u=_o(),f=s.axis.scale;if(u&&f.type!=="ordinal")u.rectCoordBuildBreakAxis(e,n,s,s.coordinateSystem.getRect(),l)}},kB=iK;var nK=function(n){k(e,n);function e(r,s,l,u,f){var c=n.call(this,r,s,l)||this;return c.type=u||"value",c.position=f||"bottom",c}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.pointToData=function(r,s){return this.coordinateSystem.pointToData(r)[0]},e}(Ur),BB=nK;var Db=["single"],oK=function(){function n(e,r,s){this.type=Rg,this.dimension="single",this.dimensions=Db,this.axisPointerEnabled=!0,this.model=e,this._init(e,r,s)}return n.prototype._init=function(e,r,s){var l=this.dimension,u=Ss(e),f=new BB(l,Ds(e,u,!0),[0,0],u,e.get("position"));f.onBand=Sn(f.scale,e),f.inverse=e.get("inverse"),f.orient=e.get("orient"),e.axis=f,f.model=e,f.coordinateSystem=this,this._axis=f},n.prototype.update=function(e,r){var s=this._axis;Ui(s,Ga),Mn(s)},n.prototype.resize=function(e,r){var s=Tt(e,r).refContainer;this._rect=ht(e.getBoxLayoutParams(),s),this._adjustAxis()},n.prototype.getRect=function(){return this._rect},n.prototype._adjustAxis=function(){var e=this._rect,r=this._axis,s=r.isHorizontal(),l=s?[0,e.width]:[0,e.height],u=r.inverse?1:0;r.setExtent(l[u],l[1-u]),this._updateAxisTransform(r,s?e.x:e.y)},n.prototype._updateAxisTransform=function(e,r){var s=e.getExtent(),l=s[0]+s[1],u=e.isHorizontal();e.toGlobalCoord=u?function(f){return f+r}:function(f){return l-f+r},e.toLocalCoord=u?function(f){return f-r}:function(f){return l-f+r}},n.prototype.getAxis=function(){return this._axis},n.prototype.getBaseAxis=function(){return this._axis},n.prototype.getAxes=function(){return[this._axis]},n.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},n.prototype.containPoint=function(e){var r=this.getRect(),s=this.getAxis(),l=s.orient;if(l==="horizontal")return s.contain(s.toLocalCoord(e[0]))&&e[1]>=r.y&&e[1]<=r.y+r.height;else return s.contain(s.toLocalCoord(e[1]))&&e[0]>=r.y&&e[0]<=r.y+r.height},n.prototype.pointToData=function(e,r,s){s=s||[];var l=this.getAxis();return s[0]=l.coordToData(l.toLocalCoord(e[l.orient==="horizontal"?0:1])),s},n.prototype.dataToPoint=function(e,r,s){var l=this.getAxis(),u=this.getRect();s=s||[];var f=l.orient==="horizontal"?0:1;if(e instanceof Array)e=e[0];return s[f]=l.toGlobalCoord(l.dataToCoord(+e)),s[1-f]=f===0?u.y+u.height/2:u.x+u.width/2,s},n.prototype.convertToPixel=function(e,r,s){var l=FB(r);return l===this?this.dataToPoint(s):null},n.prototype.convertFromPixel=function(e,r,s){var l=FB(r);return l===this?this.pointToData(s):null},n}();function FB(n){var{seriesModel:e,singleAxisModel:r}=n;return r&&r.coordinateSystem||e&&e.coordinateSystem}var zB=oK;function sK(n,e){var r=[];return n.eachComponent(Og,function(s,l){var u=new zB(s,n,e);u.name="single_"+l,u.resize(s,e),s.coordinateSystem=u,r.push(u)}),n.eachSeries(function(s){if(s.get("coordinateSystem")===SR){var l=s.getReferringComponents(Og,gt).models[0],u=s.coordinateSystem=l&&l.coordinateSystem;if(u)ca(u.getAxis(),s,Rg)}}),r}var lK={create:sK,dimensions:Db},VB=lK;var UB=["x","y"],uK=["width","height"],fK=function(n){k(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,s,l,u,f){var c=l.axis,p=c.coordinateSystem,v=Cy(c),h=by(p,v),d=by(p,1-v),m=p.dataToPoint(s)[0],g=u.get("type");if(g&&g!=="none"){var y=rc(u),x=cK[g](c,m,h,d,u.get("seriesDataIndices"),u.ecModel);x.style=y,r.graphicKey=x.type,r.pointer=x}var S=_v(l);my(s,r,S,l,u,f)},e.prototype.getHandleTransform=function(r,s,l){var u=_v(s,{labelInside:!1});u.labelMargin=l.get(["handle","margin"]);var f=gv(s.axis,r,u);return{x:f[0],y:f[1],rotation:u.rotation+(u.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,s,l,u){var f=l.axis,c=f.coordinateSystem,p=Cy(f),v=by(c,p),h=[r.x,r.y];h[p]+=s[p],h[p]=Math.min(v[1],h[p]),h[p]=Math.max(v[0],h[p]);var d=by(c,1-p),m=(d[1]+d[0])/2,g=[m,m];return g[p]=h[p],{x:h[0],y:h[1],rotation:r.rotation,cursorPoint:g,tooltipOption:{verticalAlign:"middle"}}},e}(tc),cK={line:function(n,e,r,s){var l=ic([e,s[0]],[e,s[1]],Cy(n));return{type:"Line",subPixelOptimize:!0,shape:l}},shadow:function(n,e,r,s,l,u){var f=ac(n,l,u),c=s[1]-s[0],p=nc(e,r,f),v=p[0],h=p[1];return{type:"Rect",shape:gy([v,s[0]],[h-v,c],Cy(n))}}};function Cy(n){return n.isHorizontal()?0:1}function by(n,e){var r=n.getRect();return[r[UB[e]],r[UB[e]]+r[uK[e]]]}var GB=fK;var pK=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.type="single",e}(ft);function bb(n){It(Ns),Ei.registerAxisPointerClass("SingleAxisPointer",GB),n.registerComponentView(pK),n.registerComponentView(kB),n.registerComponentModel(Ng),qa(n,"single",Ng,Ng.defaultOption),n.registerCoordinateSystem("single",VB)}var vK=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,s,l){var u=_i(r);n.prototype.init.apply(this,arguments),HB(r,u)},e.prototype.mergeOption=function(r){n.prototype.mergeOption.apply(this,arguments),HB(this.option,r)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:X.color.axisLine,width:1,type:"solid"}},itemStyle:{color:X.color.neutral00,borderWidth:1,borderColor:X.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:X.size.s,color:X.color.secondary},monthLabel:{show:!0,position:"start",margin:X.size.s,align:"center",formatter:null,color:X.color.secondary},yearLabel:{show:!0,position:null,margin:X.size.xl,formatter:null,color:X.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Fe);function HB(n,e){var r=n.cellSize,s;if(!U(r))s=n.cellSize=[r,r];else s=r;if(s.length===1)s[1]=s[0];var l=W([0,1],function(u){if(iI(e,u))s[u]="auto";return s[u]!=null&&s[u]!=="auto"});Qr(n,e,{type:"box",ignoreSize:l})}var WB=vK;var hK=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,s,l){var u=this.group;u.removeAll();var f=r.coordinateSystem,c=f.getRangeInfo(),p=f.getOrient(),v=s.getLocaleModel();this._renderDayRect(r,c,u),this._renderLines(r,c,p,u),this._renderYearText(r,c,p,u),this._renderMonthText(r,v,p,u),this._renderWeekText(r,v,c,p,u)},e.prototype._renderDayRect=function(r,s,l){var u=r.coordinateSystem,f=r.getModel("itemStyle").getItemStyle(),c=u.getCellWidth(),p=u.getCellHeight();for(var v=s.start.time;v<=s.end.time;v=u.getNextNDay(v,1).time){var h=u.dataToCalendarLayout([v],!1).tl,d=new Ee({shape:{x:h[0],y:h[1],width:c,height:p},cursor:"default",style:f});l.add(d)}},e.prototype._renderLines=function(r,s,l,u){var f=this,c=r.coordinateSystem,p=r.getModel(["splitLine","lineStyle"]).getLineStyle(),v=r.get(["splitLine","show"]),h=p.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];var d=s.start;for(var m=0;d.time<=s.end.time;m++){if(y(d.formatedDate),m===0)d=c.getDateInfo(s.start.y+"-"+s.start.m);var g=d.date;g.setMonth(g.getMonth()+1),d=c.getDateInfo(g)}y(c.getNextNDay(s.end.time,1).formatedDate);function y(x){f._firstDayOfMonth.push(c.getDateInfo(x)),f._firstDayPoints.push(c.dataToCalendarLayout([x],!1).tl);var S=f._getLinePointsOfOneWeek(r,x,l);f._tlpoints.push(S[0]),f._blpoints.push(S[S.length-1]),v&&f._drawSplitline(S,p,u)}v&&this._drawSplitline(f._getEdgesPoints(f._tlpoints,h,l),p,u),v&&this._drawSplitline(f._getEdgesPoints(f._blpoints,h,l),p,u)},e.prototype._getEdgesPoints=function(r,s,l){var u=[r[0].slice(),r[r.length-1].slice()],f=l==="horizontal"?0:1;return u[0][f]=u[0][f]-s/2,u[1][f]=u[1][f]+s/2,u},e.prototype._drawSplitline=function(r,s,l){var u=new ur({z2:20,shape:{points:r},style:s});l.add(u)},e.prototype._getLinePointsOfOneWeek=function(r,s,l){var u=r.coordinateSystem,f=u.getDateInfo(s),c=[];for(var p=0;p<7;p++){var v=u.getNextNDay(f.time,p),h=u.dataToCalendarLayout([v.time],!1);c[2*v.day]=h.tl,c[2*v.day+1]=h[l==="horizontal"?"bl":"tr"]}return c},e.prototype._formatterLabel=function(r,s){if(K(r)&&r)return Qw(r,s);if(ie(r))return r(s);return s.nameMap},e.prototype._yearTextPositionControl=function(r,s,l,u,f){var c=s[0],p=s[1],v=["center","bottom"];if(u==="bottom")p+=f,v=["center","top"];else if(u==="left")c-=f;else if(u==="right")c+=f,v=["center","top"];else p-=f;var h=0;if(u==="left"||u==="right")h=Math.PI/2;return{rotation:h,x:c,y:p,style:{align:v[0],verticalAlign:v[1]}}},e.prototype._renderYearText=function(r,s,l,u){var f=r.getModel("yearLabel");if(!f.get("show"))return;var c=f.get("margin"),p=f.get("position");if(!p)p=l!=="horizontal"?"top":"left";var v=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],h=(v[0][0]+v[1][0])/2,d=(v[0][1]+v[1][1])/2,m=l==="horizontal"?0:1,g={top:[h,v[m][1]],bottom:[h,v[1-m][1]],left:[v[1-m][0],d],right:[v[m][0],d]},y=s.start.y;if(+s.end.y>+s.start.y)y=y+"-"+s.end.y;var x=f.get("formatter"),S={start:s.start.y,end:s.end.y,nameMap:y},D=this._formatterLabel(x,S),b=new Ve({z2:30,style:ut(f,{text:D}),silent:f.get("silent")});b.attr(this._yearTextPositionControl(b,g[p],l,p,c)),u.add(b)},e.prototype._monthTextPositionControl=function(r,s,l,u,f){var c="left",p="top",v=r[0],h=r[1];if(l==="horizontal"){if(h=h+f,s)c="center";if(u==="start")p="bottom"}else{if(v=v+f,s)p="middle";if(u==="start")c="right"}return{x:v,y:h,align:c,verticalAlign:p}},e.prototype._renderMonthText=function(r,s,l,u){var f=r.getModel("monthLabel");if(!f.get("show"))return;var c=f.get("nameMap"),p=f.get("margin"),v=f.get("position"),h=f.get("align"),d=[this._tlpoints,this._blpoints];if(!c||K(c)){if(c)s=gp(c)||s;c=s.get(["time","monthAbbr"])||[]}var m=v==="start"?0:1,g=l==="horizontal"?0:1;p=v==="start"?-p:p;var y=h==="center",x=f.get("silent");for(var S=0;S<d[m].length-1;S++){var D=d[m][S].slice(),b=this._firstDayOfMonth[S];if(y){var C=this._firstDayPoints[S];D[g]=(C[g]+d[0][S+1][g])/2}var A=f.get("formatter"),T=c[+b.m-1],E={yyyy:b.y,yy:(b.y+"").slice(2),MM:b.m,M:+b.m,nameMap:T},w=this._formatterLabel(A,E),L=new Ve({z2:30,style:V(ut(f,{text:w}),this._monthTextPositionControl(D,y,l,v,p)),silent:x});u.add(L)}},e.prototype._weekTextPositionControl=function(r,s,l,u,f){var c="center",p="middle",v=r[0],h=r[1],d=l==="start";if(s==="horizontal")v=v+u+(d?1:-1)*f[0]/2,c=d?"right":"left";else h=h+u+(d?1:-1)*f[1]/2,p=d?"bottom":"top";return{x:v,y:h,align:c,verticalAlign:p}},e.prototype._renderWeekText=function(r,s,l,u,f){var c=r.getModel("dayLabel");if(!c.get("show"))return;var p=r.coordinateSystem,v=c.get("position"),h=c.get("nameMap"),d=c.get("margin"),m=p.getFirstDayOfWeek();if(!h||K(h)){if(h)s=gp(h)||s;var g=s.get(["time","dayOfWeekShort"]);h=g||W(s.get(["time","dayOfWeekAbbr"]),function(E){return E[0]})}var y=p.getNextNDay(l.end.time,7-l.lweek).time,x=[p.getCellWidth(),p.getCellHeight()];if(d=ee(d,Math.min(x[1],x[0])),v==="start")y=p.getNextNDay(l.start.time,-(7+l.fweek)).time,d=-d;var S=c.get("silent");for(var D=0;D<7;D++){var b=p.getNextNDay(y,D),C=p.dataToCalendarLayout([b.time],!1).center,A=D;A=Math.abs((D+m)%7);var T=new Ve({z2:30,style:V(ut(c,{text:h[A]}),this._weekTextPositionControl(C,u,v,d,x)),silent:S});f.add(T)}},e.type="calendar",e}(ft),YB=hK;var Cb=86400000,dK=function(){function n(e,r,s){this.type="calendar",this.dimensions=n.dimensions,this.getDimensionsInfo=n.getDimensionsInfo,this._model=e,this._update(r,s)}return n.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},n.prototype.getRangeInfo=function(){return this._rangeInfo},n.prototype.getModel=function(){return this._model},n.prototype.getRect=function(){return this._rect},n.prototype.getCellWidth=function(){return this._sw},n.prototype.getCellHeight=function(){return this._sh},n.prototype.getOrient=function(){return this._orient},n.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},n.prototype.getDateInfo=function(e){e=ia(e);var r=e.getFullYear(),s=e.getMonth()+1,l=s<10?"0"+s:""+s,u=e.getDate(),f=u<10?"0"+u:""+u,c=e.getDay();return c=Math.abs((c+7-this.getFirstDayOfWeek())%7),{y:r+"",m:l,d:f,day:c,time:e.getTime(),formatedDate:r+"-"+l+"-"+f,date:e}},n.prototype.getNextNDay=function(e,r){if(r=r||0,r===0)return this.getDateInfo(e);return e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+r),this.getDateInfo(e)},n.prototype._update=function(e,r){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var s=this._rangeInfo.weeks||1,l=["width","height"],u=this._model.getCellSize().slice(),f=this._model.getBoxLayoutParams(),c=this._orient==="horizontal"?[s,7]:[7,s];I([0,1],function(d){if(h(u,d))f[l[d]]=u[d]*c[d]});var p={width:r.getWidth(),height:r.getHeight()},v=this._rect=ht(f,p);I([0,1],function(d){if(!h(u,d))u[d]=v[l[d]]/c[d]});function h(d,m){return d[m]!=null&&d[m]!=="auto"}this._sw=u[0],this._sh=u[1]},n.prototype.dataToPoint=function(e,r,s){s=s||[],U(e)&&(e=e[0]),r==null&&(r=!0);var l=this.getDateInfo(e),u=this._rangeInfo,f=l.formatedDate;if(r&&!(l.time>=u.start.time&&l.time<u.end.time+Cb))return s[0]=s[1]=NaN,s;var c=l.day,p=this._getRangeInfo([u.start.time,f]).nthWeek;if(this._orient==="vertical")s[0]=this._rect.x+c*this._sw+this._sw/2,s[1]=this._rect.y+p*this._sh+this._sh/2;else s[0]=this._rect.x+p*this._sw+this._sw/2,s[1]=this._rect.y+c*this._sh+this._sh/2;return s},n.prototype.pointToData=function(e){var r=this.pointToDate(e);return r&&r.time},n.prototype.dataToLayout=function(e,r,s){s=s||{};var l=s.rect=s.rect||{},u=s.contentRect=s.contentRect||{},f=this.dataToPoint(e,r);return l.x=f[0]-this._sw/2,l.y=f[1]-this._sh/2,l.width=this._sw,l.height=this._sh,De.copy(u,l),ss(u,this._lineWidth/2,!0,!0),s},n.prototype.dataToCalendarLayout=function(e,r){var s=this.dataToPoint(e,r);return{center:s,tl:[s[0]-this._sw/2,s[1]-this._sh/2],tr:[s[0]+this._sw/2,s[1]-this._sh/2],br:[s[0]+this._sw/2,s[1]+this._sh/2],bl:[s[0]-this._sw/2,s[1]+this._sh/2]}},n.prototype.pointToDate=function(e){var r=Math.floor((e[0]-this._rect.x)/this._sw)+1,s=Math.floor((e[1]-this._rect.y)/this._sh)+1,l=this._rangeInfo.range;if(this._orient==="vertical")return this._getDateByWeeksAndDay(s,r-1,l);return this._getDateByWeeksAndDay(r,s-1,l)},n.prototype.convertToPixel=function(e,r,s){var l=Ab(r);return l===this?l.dataToPoint(s):null},n.prototype.convertToLayout=function(e,r,s){var l=Ab(r);return l===this?l.dataToLayout(s):null},n.prototype.convertFromPixel=function(e,r,s){var l=Ab(r);return l===this?l.pointToData(s):null},n.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},n.prototype._initRangeOption=function(){var e=this._model.get("range"),r;if(U(e)&&e.length===1)e=e[0];if(!U(e)){var s=e.toString();if(/^\d{4}$/.test(s))r=[s+"-01-01",s+"-12-31"];if(/^\d{4}[\/|-]\d{1,2}$/.test(s)){var l=this.getDateInfo(s),u=l.date;u.setMonth(u.getMonth()+1);var f=this.getNextNDay(u,-1);r=[l.formatedDate,f.formatedDate]}if(/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(s))r=[s,s]}else r=e;if(!r)return e;var c=this._getRangeInfo(r);if(c.start.time>c.end.time)r.reverse();return r},n.prototype._getRangeInfo=function(e){var r=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],s;if(r[0].time>r[1].time)s=!0,r.reverse();var l=Math.floor(r[1].time/Cb)-Math.floor(r[0].time/Cb)+1,u=new Date(r[0].time),f=u.getDate(),c=r[1].date.getDate();u.setDate(f+l-1);var p=u.getDate();if(p!==c){var v=u.getTime()-r[1].time>0?1:-1;while((p=u.getDate())!==c&&(u.getTime()-r[1].time)*v>0)l-=v,u.setDate(p-v)}var h=Math.floor((l+r[0].day+6)/7),d=s?-h+1:h-1;return s&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:l,weeks:h,nthWeek:d,fweek:r[0].day,lweek:r[1].day}},n.prototype._getDateByWeeksAndDay=function(e,r,s){var l=this._getRangeInfo(s);if(e>l.weeks||e===0&&r<l.fweek||e===l.weeks&&r>l.lweek)return null;var u=(e-1)*7-l.fweek+r,f=new Date(l.start.time);return f.setDate(+l.start.d+u),this.getDateInfo(f)},n.create=function(e,r){var s=[];return e.eachComponent("calendar",function(l){var u=new n(l,e,r);s.push(u),l.coordinateSystem=u}),e.eachComponent(function(l,u){of({targetModel:u,coordSysType:"calendar",coordSysProvider:Rw})}),s},n.dimensions=["time","value"],n}();function Ab(n){var{calendarModel:e,seriesModel:r}=n,s=e?e.coordinateSystem:r?r.coordinateSystem:null;return s}var XB=dK;function Tb(n){n.registerComponentModel(WB),n.registerComponentView(YB),n.registerCoordinateSystem("calendar",XB)}var Eb=["x","y","radius","angle","single"],mK=he(),gK=["cartesian2d","polar","singleAxis"];function ZB(n){var e=n.get("coordinateSystem");return be(gK,e)>=0}function ya(n){return n+"Axis"}function KB(n,e){var r=re(),s=[],l=re();n.eachComponent({mainType:"dataZoom",query:e},function(h){if(!l.get(h.uid))c(h)});var u;do u=!1,n.eachComponent("dataZoom",f);while(u);function f(h){if(!l.get(h.uid)&&p(h))c(h),u=!0}function c(h){l.set(h.uid,!0),s.push(h),v(h)}function p(h){var d=!1;return h.eachTargetAxis(function(m,g){var y=r.get(m);if(y&&y[g])d=!0}),d}function v(h){h.eachTargetAxis(function(d,m){(r.get(d)||r.set(d,[]))[m]=!0})}return s}function Ay(n){var e=n.ecModel,r={infoList:[],infoMap:re()};return n.eachTargetAxis(function(s,l){var u=e.getComponent(ya(s),l);if(!u)return;var f=u.getCoordSysModel();if(!f)return;var c=f.uid,p=r.infoMap.get(c);if(!p)p={model:f,axisModels:[]},r.infoList.push(p),r.infoMap.set(c,p);p.axisModels.push(u)}),r}function qB(n){var e=mK(zm(n));return e.axisProxyMap||(e.axisProxyMap=re())}function oc(n){if(!n)return;return qB(n.ecModel).get(n.uid)}function jB(n,e){qB(n.ecModel).set(n.uid,e)}function Ty(n,e){var r=e.getAxisModel().axis.__alignTo;return r&&n.getAxisProxy(r.dim,r.model.componentIndex)?oc(r.model):null}var wb=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){if(!this.indexMap[e])this.indexList.push(e),this.indexMap[e]=!0},n}(),yK=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return e.prototype.init=function(r,s,l){var u=$B(r);this.settledOption=u,this.mergeDefaultAndTheme(r,l),this._doInit(u)},e.prototype.mergeOption=function(r){var s=$B(r);Re(this.option,r,!0),Re(this.settledOption,s,!0),this._doInit(s)},e.prototype._doInit=function(r){var s=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var l=this.settledOption;I([["start","startValue"],["end","endValue"]],function(u,f){if(this._rangePropMode[f]==="value")s[u[0]]=l[u[0]]=null},this),this._resetTarget()},e.prototype._resetTarget=function(){var r=this.get("orient",!0),s=this._targetAxisInfoMap=re(),l=this._fillSpecifiedTargetAxis(s);if(l)this._orient=r||this._makeAutoOrientByTargetAxis();else this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(s,this._orient);this._noTarget=!0,s.each(function(u){if(u.indexList.length)this._noTarget=!1},this)},e.prototype._fillSpecifiedTargetAxis=function(r){var s=!1;return I(Eb,function(l){var u=this.getReferringComponents(ya(l),ZT);if(!u.specified)return;s=!0;var f=new wb;I(u.models,function(c){f.add(c.componentIndex)}),r.set(l,f)},this),s},e.prototype._fillAutoTargetAxisByOrient=function(r,s){var l=this.ecModel,u=!0;if(u){var f=s==="vertical"?"y":"x",c=l.findComponents({mainType:f+"Axis"});p(c,f)}if(u){var c=l.findComponents({mainType:"singleAxis",filter:function(h){return h.get("orient",!0)===s}});p(c,"single")}function p(v,h){var d=v[0];if(!d)return;var m=new wb;if(m.add(d.componentIndex),r.set(h,m),u=!1,h==="x"||h==="y"){var g=d.getReferringComponents("grid",gt).models[0];g&&I(v,function(y){if(d.componentIndex!==y.componentIndex&&g===y.getReferringComponents("grid",gt).models[0])m.add(y.componentIndex)})}}if(u)I(Eb,function(v){if(!u)return;var h=l.findComponents({mainType:ya(v),filter:function(m){return m.get("type",!0)==="category"}});if(h[0]){var d=new wb;d.add(h[0].componentIndex),r.set(v,d),u=!1}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(s){!r&&(r=s)},this),r==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle"))this._autoThrottle=!1;if(this._autoThrottle){var s=this.ecModel.option;this.option.throttle=s.animation&&s.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(r){var s=this._rangePropMode,l=this.get("rangeMode");I([["start","startValue"],["end","endValue"]],function(u,f){var c=r[u[0]]!=null,p=r[u[1]]!=null;if(c&&!p)s[f]="percent";else if(!c&&p)s[f]="value";else if(l)s[f]=l[f];else if(c)s[f]="percent"})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(s,l){if(r==null)r=this.ecModel.getComponent(ya(s),l)},this),r},e.prototype.eachTargetAxis=function(r,s){this._targetAxisInfoMap.each(function(l,u){I(l.indexList,function(f){r.call(s,u,f)})})},e.prototype.getAxisProxy=function(r,s){return oc(this.getAxisModel(r,s))},e.prototype.getAxisModel=function(r,s){var l=this._targetAxisInfoMap.get(r);if(l&&l.indexMap[s])return this.ecModel.getComponent(ya(r),s)},e.prototype.setRawRange=function(r){var s=this.option,l=this.settledOption;I([["start","startValue"],["end","endValue"]],function(u){if(r[u[0]]!=null||r[u[1]]!=null)s[u[0]]=l[u[0]]=r[u[0]],s[u[1]]=l[u[1]]=r[u[1]]},this),this._updateRangeUse(r)},e.prototype.setCalculatedRange=function(r){var s=this.option;I(["start","startValue","end","endValue"],function(l){s[l]=r[l]})},e.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getWindow().percent},e.prototype.getValueRange=function(r,s){if(r==null&&s==null){var l=this.findRepresentativeAxisProxy();if(l)return l.getWindow().value}else return this.getAxisProxy(r,s).getWindow().value},e.prototype.findRepresentativeAxisProxy=function(r){if(r)return oc(r);var s,l=this._targetAxisInfoMap.keys();for(var u=0;u<l.length;u++){var f=l[u],c=this._targetAxisInfoMap.get(f);for(var p=0;p<c.indexList.length;p++){var v=this.getAxisProxy(f,c.indexList[p]);if(v.hostedBy(this))return v;if(!s)s=v}}return s},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(Fe);function $B(n){var e={};return I(["start","end","startValue","endValue","throttle"],function(r){n.hasOwnProperty(r)&&(e[r]=n[r])}),e}var sc=yK;var xK=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,s,l,u){this.dataZoomModel=r,this.ecModel=s,this.api=l},e.type="dataZoom",e}(ft),Ey=xK;var _K=function(){function n(e,r,s,l){this._dimName=e,this._axisIndex=r,this.ecModel=l,this._dataZoomModel=s}return n.prototype.hostedBy=function(e){return this._dataZoomModel===e},n.prototype.getWindow=function(){return le(this._window)},n.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(r){if(ZB(r)){var s=ya(this._dimName),l=r.getReferringComponents(s,gt).models[0];if(l&&this._axisIndex===l.componentIndex)e.push(r)}},this),e},n.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},n.prototype.getMinMaxSpan=function(){return le(this._minMaxSpan)},n.prototype.calculateDataWindow=function(e){var r=this._extent,s=this.getAxisModel().axis,l=s.scale,u=this._dataZoomModel,f=u.getRangePropMode(),c=[0,100],p=[],v=[],h,d=[!1,!1];I(["start","end"],function(C,A){var T=e[C],E=e[C+"Value"];if(f[A]==="percent")T==null&&(T=c[A]),E=Ze(T,c,r),d[A]=!0;else{if(h=!0,E==null)E=r[A];else if(E=l.parse(E),l.sanitize)E=l.sanitize(E,r);T=Ze(E,r,c)}v[A]=E==null||isNaN(E)?r[A]:E,p[A]=T==null||isNaN(T)?c[A]:T}),Rt(v),Rt(p);var m=this._minMaxSpan;h?g(v,p,r,c,!1):g(p,v,c,r,!0);function g(C,A,T,E,w){var L=w?"Span":"ValueSpan";Wi(0,C,T,"all",m["min"+L],m["max"+L]);for(var M=0;M<2;M++)if(A[M]=Ze(C[M],T,E,!0),w)A[M]=A[M],d[M]=!0;Wu(A)}var y=nr(l)||yn(l),x=s.getExtent(),S=_t(x[1]-x[0]),D=y?0:Nh(v,S,0.5);I([[0,ra],[1,kr]],function(C){var A=C[0],T=C[1];if(!d[A]||!isFinite(D))return;if(v[A]=Ye(v[A],D),v[A]=lt(r[1],Be(r[0],v[A])),p[A]===c[A]){if(v[A]=r[A],y)v[A]=T(v[A])}}),Wu(v);var b=[Ze(v[0],r,c,!0),Ze(v[1],r,c,!0)];return Wu(b),{value:v,percent:p,percentInverted:b,valuePrecision:D}},n.prototype.reset=function(e,r){if(!this.hostedBy(e))return;var s=this.getAxisModel().axis;Ui(s,jM);var l=s.scale.rawExtentInfo;this._extent=l.makeNoZoom(),this._updateMinMaxSpan();var u=e.settledOption;if(r)u=pe({start:r[0],end:r[1]},u);var f=this._window=this.calculateDataWindow(u),{percent:c,value:p}=f;if(c[0]!==0)l.setZoomMM(0,p[0]);if(c[1]!==100)l.setZoomMM(1,p[1])},n.prototype.filterData=function(e,r){if(!this.hostedBy(e))return;var s=this._dimName,l=this.getTargetSeriesModels(),u=e.get("filterMode"),f=this._window.value;if(u==="none")return;I(l,function(p){var v=p.getData(),h=v.mapDimensionsAll(s);if(!h.length)return;if(u==="weakFilter"){var d=v.getStore(),m=W(h,function(g){return v.getDimensionIndex(g)},v);v.filterSelf(function(g){var y,x,S;for(var D=0;D<h.length;D++){var b=d.get(m[D],g),C=!isNaN(b),A=b<f[0],T=b>f[1];if(C&&!A&&!T)return!0;C&&(S=!0),A&&(y=!0),T&&(x=!0)}return S&&y&&x})}else I(h,function(g){if(u==="empty")p.setData(v=v.map(g,function(x){return!c(x)?NaN:x}));else{var y={};y[g]=f,v.selectRange(y)}});I(h,function(g){v.setApproximateExtent(f,g)})});function c(p){return p>=f[0]&&p<=f[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},r=this._dataZoomModel,s=this._extent;I(["min","max"],function(l){var u=r.get(l+"Span"),f=r.get(l+"ValueSpan");if(f!=null&&(f=this.getAxisModel().axis.scale.parse(f)),f!=null)u=Ze(s[0]+f,s,[0,100],!0);else if(u!=null)f=Ze(u,[0,100],s,!0)-s[0];e[l+"Span"]=u,e[l+"ValueSpan"]=f},this)},n}(),QB=_K;var SK={dirtyOnOverallProgress:!0,getTargetSeries:function(n){function e(l){n.eachComponent("dataZoom",function(u){u.eachTargetAxis(function(f,c){var p=n.getComponent(ya(f),c);l(f,c,p,u)})})}var r=[];e(function(l,u,f,c){if(!oc(f)){var p=new QB(l,u,c,n);r.push(p),jB(f,p)}});var s=re();return I(r,function(l){I(l.getTargetSeriesModels(),function(u){s.set(u.uid,u)})}),s},overallReset:function(n,e){n.eachComponent("dataZoom",function(r){var s=[];r.eachTargetAxis(function(l,u){var f=r.getAxisProxy(l,u),c=Ty(r,f);if(c)s.push([f,c]);else f.reset(r,null)}),I(s,function(l){l[0].reset(r,l[1].getWindow().percentInverted)}),r.eachTargetAxis(function(l,u){r.getAxisProxy(l,u).filterData(r,e)})}),n.eachComponent("dataZoom",function(r){var s=r.findRepresentativeAxisProxy();if(s){var l=s.getWindow(),{percent:u,value:f}=l;r.setCalculatedRange({start:u[0],end:u[1],startValue:f[0],endValue:f[1]})}})}},JB=SK;function Ib(n){n.registerAction("dataZoom",function(e,r){var s=KB(r,e);I(s,function(l){l.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var DK=oa();function Sv(n){DK(n,function(){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,JB),Ib(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function eF(n,e){var r=mn(e.get("padding")),s=e.getItemStyle(["color","opacity"]);s.fill=e.get("backgroundColor");var l=new Ee({shape:{x:n.x-r[3],y:n.y-r[0],width:n.width+r[1]+r[3],height:n.height+r[0]+r[2],r:e.get("borderRadius")},style:s,silent:!0,z2:-1});return l}var bK=function(n){k(e,n);function e(){var r=n!==null&&n.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:0.4,displayTransition:!0,enterable:!1,backgroundColor:X.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:X.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:X.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:X.color.tertiary,fontSize:14}},e}(Fe),tF=bK;function wy(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function rF(n){if(!Ue.domSupported)return;var e=document.documentElement.style;for(var r=0,s=n.length;r<s;r++)if(n[r]in e)return n[r]}var Mb=rF(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),iF=rF(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Lb(n,e){if(!n)return e;e=em(e,!0);var r=n.indexOf(e);return n=r===-1?e:"-"+n.slice(0,r)+"-"+e,n.toLowerCase()}function aF(n,e){var r=n.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(n);return r?e?r[e]:r:null}var CK=Lb(iF,"transition"),Pb=Lb(Mb,"transform"),AK="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ue.transform3dSupported?"will-change:transform;":"");function TK(n){return n=n==="left"?"right":n==="right"?"left":n==="top"?"bottom":"top",n}function EK(n,e,r){if(!K(r)||r==="inside")return"";var s=n.get("backgroundColor"),l=n.get("borderWidth");e=Oa(e);var u=TK(r),f=Math.max(Math.round(l)*1.5,6),c="",p=Pb+":",v;if(be(["left","right"],u)>-1)c+="top:50%",p+="translateY(-50%) rotate("+(v=u==="left"?-225:-45)+"deg)";else c+="left:50%",p+="translateX(-50%) rotate("+(v=u==="top"?225:45)+"deg)";var h=v*Math.PI/180,d=f+l,m=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),g=Math.round(((m-Math.SQRT2*l)/2+Math.SQRT2*l-(m-d)/2)*100)/100;c+=";"+u+":-"+g+"px";var y=e+" solid "+l+"px;",x=["position:absolute;width:"+f+"px;height:"+f+"px;z-index:-1;",c+";"+p+";","border-bottom:"+y,"border-right:"+y,"background-color:"+s+";"];return'<div style="'+x.join("")+'"></div>'}function wK(n,e,r){var s="cubic-bezier(0.23,1,0.32,1)",l="",u="";if(r)l=" "+n/2+"s "+s,u="opacity"+l+",visibility"+l;if(!e)l=" "+n+"s "+s,u+=(u.length?",":"")+(Ue.transformSupported?""+Pb+l:",left"+l+",top"+l);return CK+":"+u}function nF(n,e,r){var s=n.toFixed(0)+"px",l=e.toFixed(0)+"px";if(!Ue.transformSupported)return r?"top:"+l+";left:"+s+";":[["top",l],["left",s]];var u=Ue.transform3dSupported,f="translate"+(u?"3d":"")+"("+s+","+l+(u?",0":"")+")";return r?"top:0;left:0;"+Pb+":"+f+";":[["top",0],["left",0],[Mb,f]]}function IK(n){var e=[],r=n.get("fontSize"),s=n.getTextColor();s&&e.push("color:"+s),e.push("font:"+n.getFont());var l=te(n.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+l+"px");var u=n.get("textShadowColor"),f=n.get("textShadowBlur")||0,c=n.get("textShadowOffsetX")||0,p=n.get("textShadowOffsetY")||0;return u&&f&&e.push("text-shadow:"+c+"px "+p+"px "+f+"px "+u),I(["decoration","align"],function(v){var h=n.get(v);h&&e.push("text-"+v+":"+h)}),e.join(";")}function MK(n,e,r,s){var l=[],u=n.get("transitionDuration"),f=n.get("backgroundColor"),c=n.get("shadowBlur"),p=n.get("shadowColor"),v=n.get("shadowOffsetX"),h=n.get("shadowOffsetY"),d=n.getModel("textStyle"),m=cm(n,"html"),g=v+"px "+h+"px "+c+"px "+p;if(l.push("box-shadow:"+g),e&&u>0&&l.push(wK(u,r,s)),f)l.push("background-color:"+f);if(I(["width","color","radius"],function(y){var x="border-"+y,S=em(x),D=n.get(S);D!=null&&l.push(x+":"+D+(y==="color"?"":"px"))}),l.push(IK(d)),m!=null)l.push("padding:"+mn(m).join("px ")+"px");return l.join(";")+";"}function oF(n,e,r,s,l){var u=e&&e.painter;if(r){var f=u&&u.getViewportRoot();if(f)Fw(n,f,r,s,l)}else{n[0]=s,n[1]=l;var c=u&&u.getViewportRootOffset();if(c)n[0]+=c.offsetLeft,n[1]+=c.offsetTop}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var LK=function(){function n(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ue.wxa)return null;var s=document.createElement("div");s.domBelongToZr=!0,this.el=s;var l=this._zr=e.getZr(),u=r.appendTo,f=u&&(K(u)?document.querySelector(u):Ks(u)?u:ie(u)&&u(e.getDom()));oF(this._styleCoord,l,f,e.getWidth()/2,e.getHeight()/2),(f||e.getDom()).appendChild(s),this._api=e,this._container=f;var c=this;s.onmouseenter=function(){if(c._enterable)clearTimeout(c._hideTimeout),c._show=!0;c._inContent=!0},s.onmousemove=function(p){if(p=p||window.event,!c._enterable){var v=l.handler,h=l.painter.getViewportRoot();Ci(h,p,!0),v.dispatch("mousemove",p)}},s.onmouseleave=function(){if(c._inContent=!1,c._enterable){if(c._show)c.hideLater(c._hideDelay)}}}return n.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),s=aF(r,"position"),l=r.style;if(l.position!=="absolute"&&s!=="absolute")l.position="relative"}var u=e.get("alwaysShowContent");u&&this._moveIfResized(),this._alwaysShowContent=u,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},n.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var s=this.el,l=s.style,u=this._styleCoord;if(!s.innerHTML)l.display="none";else l.cssText=AK+MK(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+nF(u[0],u[1],!0)+("border-color:"+Oa(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none"));this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,r,s,l,u){var f=this.el;if(e==null){f.innerHTML="";return}var c="";if(K(u)&&s.get("trigger")==="item"&&!wy(s))c=EK(s,l,u);if(K(e))f.innerHTML=e+c;else if(e){if(f.innerHTML="",!U(e))e=[e];for(var p=0;p<e.length;p++)if(Ks(e[p])&&e[p].parentNode!==f)f.appendChild(e[p]);if(c&&f.childNodes.length){var v=document.createElement("div");v.innerHTML=c,f.appendChild(v)}}},n.prototype.setEnterable=function(e){this._enterable=e},n.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},n.prototype.moveTo=function(e,r){if(!this.el)return;var s=this._styleCoord;if(oF(s,this._zr,this._container,e,r),s[0]!=null&&s[1]!=null){var l=this.el.style,u=nF(s[0],s[1]);I(u,function(f){l[f[0]]=f[1]})}},n.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},n.prototype.hide=function(){var e=this,r=this.el.style;if(this._enableDisplayTransition)r.visibility="hidden",r.opacity="0";else r.display="none";Ue.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},n.prototype.hideLater=function(e){if(this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent)if(e)this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(se(this.hide,this),e);else this.hide()},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;zw(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var s=r.parentNode;s&&s.removeChild(r)}this.el=this._container=null},n}(),sF=LK;var PK=function(){function n(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),uF(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return n.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},n.prototype.show=function(){if(this._hideTimeout)clearTimeout(this._hideTimeout);this.el.show(),this._show=!0},n.prototype.setContent=function(e,r,s,l,u){var f=this;if(ue(e))rt("");if(this.el)this._zr.remove(this.el);var c=s.getModel("textStyle");this.el=new Ve({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:l,textShadowColor:c.get("textShadowColor"),fill:s.get(["textStyle","color"]),padding:cm(s,"richText"),verticalAlign:"top",align:"left"},z:s.get("z")}),I(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(v){f.el.style[v]=s.get(v)}),I(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(v){f.el.style[v]=c.get(v)||0}),this._zr.add(this.el);var p=this;this.el.on("mouseover",function(){if(p._enterable)clearTimeout(p._hideTimeout),p._show=!0;p._inContent=!0}),this.el.on("mouseout",function(){if(p._enterable){if(p._show)p.hideLater(p._hideDelay)}p._inContent=!1})},n.prototype.setEnterable=function(e){this._enterable=e},n.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),s=lF(e.style);return[r.width+s.left+s.right,r.height+s.top+s.bottom]},n.prototype.moveTo=function(e,r){var s=this.el;if(s){var l=this._styleCoord;uF(l,this._zr,e,r),e=l[0],r=l[1];var u=s.style,f=ks(u.borderWidth||0),c=lF(u);s.x=e+f+c.left,s.y=r+f+c.top,s.markRedraw()}},n.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},n.prototype.hide=function(){if(this.el)this.el.hide();this._show=!1},n.prototype.hideLater=function(e){if(this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent)if(e)this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(se(this.hide,this),e);else this.hide()},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){this._zr.remove(this.el)},n}();function ks(n){return Math.max(0,n)}function lF(n){var e=ks(n.shadowBlur||0),r=ks(n.shadowOffsetX||0),s=ks(n.shadowOffsetY||0);return{left:ks(e-r),right:ks(e+r),top:ks(e-s),bottom:ks(e+s)}}function uF(n,e,r,s){n[0]=r,n[1]=s,n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var fF=PK;var RK=new Ee({shape:{x:-1,y:-1,width:2,height:2}}),OK=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,s){if(Ue.node||!s.getDom())return;var l=r.getComponent("tooltip"),u=this._renderMode=qT(l.get("renderMode"));this._tooltipContent=u==="richText"?new fF(s):new sF(s,{appendTo:l.get("appendToBody",!0)?"body":l.get("appendTo",!0)})},e.prototype.render=function(r,s,l){if(Ue.node||!l.getDom())return;this.group.removeAll(),this._tooltipModel=r,this._ecModel=s,this._api=l;var u=this._tooltipContent;if(u.update(r),u.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration"))bn(this,"_updatePosition",50,"fixRate");else Co(this,"_updatePosition")},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,s=r.get("triggerOn");xy("itemTooltip",this._api,se(function(l,u,f){if(s!=="none"){if(s.indexOf(l)>=0)this._tryShow(u,f);else if(l==="leave")this._hide(f)}},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,s=this._ecModel,l=this._api,u=r.get("triggerOn");if(r.get("trigger")!=="axis")this._lastDataByCoordSys=null,this._cbParamsList=null;if(this._lastX!=null&&this._lastY!=null&&u!=="none"&&u!=="click"){var f=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!l.isDisposed()&&f.manuallyShowTip(r,s,l,{x:f._lastX,y:f._lastY,dataByCoordSys:f._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,s,l,u){if(u.from===this.uid||Ue.node||!l.getDom())return;var f=cF(u,l);this._ticket="";var c=u.dataByCoordSys,p=FK(u,s,l);if(p){var v=p.el.getBoundingRect().clone();v.applyTransform(p.el.transform),this._tryShow({offsetX:v.x+v.width/2,offsetY:v.y+v.height/2,target:p.el,position:u.position,positionDefault:"bottom"},f)}else if(u.tooltip&&u.x!=null&&u.y!=null){var h=RK;h.x=u.x,h.y=u.y,h.update(),ye(h).tooltipConfig={name:null,option:u.tooltip},this._tryShow({offsetX:u.x,offsetY:u.y,target:h},f)}else if(c)this._tryShow({offsetX:u.x,offsetY:u.y,position:u.position,dataByCoordSys:c,tooltipOption:u.tooltipOption},f);else if(u.seriesIndex!=null){if(this._manuallyAxisShowTip(r,s,l,u))return;var d=xv(u,s),m=d.point[0],g=d.point[1];if(m!=null&&g!=null)this._tryShow({offsetX:m,offsetY:g,target:d.el,position:u.position,positionDefault:"bottom"},f)}else if(u.x!=null&&u.y!=null)l.dispatchAction({type:"updateAxisPointer",x:u.x,y:u.y}),this._tryShow({offsetX:u.x,offsetY:u.y,position:u.position,target:l.getZr().findHover(u.x,u.y).target},f)},e.prototype.manuallyHideTip=function(r,s,l,u){var f=this._tooltipContent;if(this._tooltipModel)f.hideLater(this._tooltipModel.get("hideDelay"));if(this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,u.from!==this.uid)this._hide(cF(u,l))},e.prototype._manuallyAxisShowTip=function(r,s,l,u){var{seriesIndex:f,dataIndex:c}=u,p=s.getComponent("axisPointer").coordSysAxesInfo;if(f==null||c==null||p==null)return;var v=s.getSeriesByIndex(f);if(!v)return;var h=v.getData(),d=Dv([h.getItemModel(c),v,(v.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")!=="axis")return;return l.dispatchAction({type:"updateAxisPointer",seriesIndex:f,dataIndex:c,position:u.position}),!0},e.prototype._tryShow=function(r,s){var l=r.target,u=this._tooltipModel;if(!u)return;this._lastX=r.offsetX,this._lastY=r.offsetY;var f=r.dataByCoordSys;if(f&&f.length)this._showAxisTooltip(f,r);else if(l){var c=ye(l);if(c.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var p,v;if(Eo(l,function(h){if(h.tooltipDisabled)return p=v=null,!0;if(p||v)return;if(ye(h).dataIndex!=null)p=h;else if(ye(h).tooltipConfig!=null)v=h},!0),p)this._showSeriesItemTooltip(r,p,s);else if(v)this._showComponentItemTooltip(r,v,s);else this._hide(s)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(s)},e.prototype._showOrMove=function(r,s){var l=r.get("showDelay");s=se(s,this),clearTimeout(this._showTimout),l>0?this._showTimout=setTimeout(s,l):s()},e.prototype._showAxisTooltip=function(r,s){var l=this._ecModel,u=this._tooltipModel,f=[s.offsetX,s.offsetY],c=Dv([s.tooltipOption],u),p=this._renderMode,v=[],h=Wt("section",{blocks:[],noHeader:!0}),d=[],m=new pm;I(r,function(b){I(b.dataByAxis,function(C){var A=l.getComponent(C.axisDim+"Axis",C.axisIndex),T=C.value,E=A.axis,w=E.scale.parse(T);if(!A||T==null)return;var L=cb(T,E,l,C.seriesDataIndices,C.valueLabelOpt),M=Wt("section",{header:L,noHeader:!Mr(L),sortBlocks:!0,blocks:[]});h.blocks.push(M),I(C.seriesDataIndices,function(P){var R=l.getSeriesByIndex(P.seriesIndex),N=P.dataIndexInside,O=R.getDataParams(N);if(O.dataIndex<0)return;O.axisDim=C.axisDim,O.axisIndex=C.axisIndex,O.axisType=C.axisType,O.axisId=C.axisId,O.axisValue=yf(A.axis,{value:w}),O.axisValueLabel=L,O.marker=m.makeTooltipMarker("item",Oa(O.color),p);var B=k_(R.formatTooltip(N,!0,null)),F=B.frag;if(F){var z=Dv([R],u).get("valueFormatter");M.blocks.push(z?V({valueFormatter:z},F):F)}if(B.text)d.push(B.text);v.push(O)})})}),h.blocks.reverse(),d.reverse();var g=s.position,y=c.get("order"),x=U_(h,m,p,y,l.get("useUTC"),c.get("textStyle"));x&&d.unshift(x);var S=p==="richText"?`
|
|
49
|
+
|
|
50
|
+
`:"<br/>",D=d.join(S);this._showOrMove(c,function(){if(this._updateContentNotChangedOnAxis(r,v))this._updatePosition(c,g,f[0],f[1],this._tooltipContent,v);else this._showTooltipContent(c,D,v,Math.random()+"",f[0],f[1],g,null,m)})},e.prototype._showSeriesItemTooltip=function(r,s,l){var u=this._ecModel,f=ye(s),c=f.seriesIndex,p=u.getSeriesByIndex(c),v=f.dataModel||p,{dataIndex:h,dataType:d}=f,m=v.getData(d),g=this._renderMode,y=r.positionDefault,x=Dv([m.getItemModel(h),v,p&&(p.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),S=x.get("trigger");if(S!=null&&S!=="item")return;var D=v.getDataParams(h,d),b=new pm;D.marker=b.makeTooltipMarker("item",Oa(D.color),g);var C=k_(v.formatTooltip(h,!1,d)),A=x.get("order"),T=x.get("valueFormatter"),E=C.frag,w=E?U_(T?V({valueFormatter:T},E):E,b,g,A,u.get("useUTC"),x.get("textStyle")):C.text,L="item_"+v.name+"_"+h;this._showOrMove(x,function(){this._showTooltipContent(x,w,D,L,r.offsetX,r.offsetY,r.position,r.target,b)}),l({type:"showTip",dataIndexInside:h,dataIndex:m.getRawIndex(h),seriesIndex:c,from:this.uid})},e.prototype._showComponentItemTooltip=function(r,s,l){var u=this._renderMode==="html",f=ye(s),c=f.tooltipConfig,p=c.option||{},v=p.encodeHTMLContent;if(K(p)){var h=p;p={content:h,formatter:h},v=!0}if(v&&u&&p.content)p=le(p),p.content=dr(p.content);var d=[p],m=this._ecModel.getComponent(f.componentMainType,f.componentIndex);if(m)d.push(m);d.push({formatter:p.content});var g=r.positionDefault,y=Dv(d,this._tooltipModel,g?{position:g}:null),x=y.get("content"),S=Math.random()+"",D=new pm;this._showOrMove(y,function(){var b=le(y.get("formatterParams")||{});this._showTooltipContent(y,x,b,S,r.offsetX,r.offsetY,r.position,s,D)}),l({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,s,l,u,f,c,p,v,h){if(this._ticket="",!r.get("showContent")||!r.get("show"))return;var d=this._tooltipContent;d.setEnterable(r.get("enterable"));var m=r.get("formatter");p=p||r.get("position");var g=s,y=this._getNearestPoint([f,c],l,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),x=y.color;if(m)if(K(m)){var S=r.ecModel.get("useUTC"),D=U(l)?l[0]:l,b=D&&D.axisType&&D.axisType.indexOf("time")>=0;if(g=m,b)g=zl(D.axisValue,g,S);g=rm(g,l,!0)}else if(ie(m)){var C=se(function(A,T){if(A===this._ticket)d.setContent(T,h,r,x,p),this._updatePosition(r,p,f,c,d,l,v)},this);this._ticket=u,g=m(l,u,C)}else g=m;d.setContent(g,h,r,x,p),d.show(r,x),this._updatePosition(r,p,f,c,d,l,v)},e.prototype._getNearestPoint=function(r,s,l,u,f){if(l==="axis"||U(s))return{color:u||f};if(!U(s))return{color:u||s.color||s.borderColor}},e.prototype._updatePosition=function(r,s,l,u,f,c,p){var v=this._api.getWidth(),h=this._api.getHeight();s=s||r.get("position");var d=f.getSize(),m=r.get("align"),g=r.get("verticalAlign"),y=p&&p.getBoundingRect().clone();if(p&&y.applyTransform(p.transform),ie(s))s=s([l,u],c,f.el,y,{viewSize:[v,h],contentSize:d.slice()});if(U(s))l=ee(s[0],v),u=ee(s[1],h);else if(ue(s)){var x=s;x.width=d[0],x.height=d[1];var S=ht(x,{width:v,height:h});l=S.x,u=S.y,m=null,g=null}else if(K(s)&&p){var D=BK(s,y,d,r.get("borderWidth"));l=D[0],u=D[1]}else{var D=NK(l,u,f,v,h,m?null:20,g?null:20);l=D[0],u=D[1]}if(m&&(l-=pF(m)?d[0]/2:m==="right"?d[0]:0),g&&(u-=pF(g)?d[1]/2:g==="bottom"?d[1]:0),wy(r)){var D=kK(l,u,f,v,h);l=D[0],u=D[1]}f.moveTo(l,u)},e.prototype._updateContentNotChangedOnAxis=function(r,s){var l=this._lastDataByCoordSys,u=this._cbParamsList,f=!!l&&l.length===r.length;return f&&I(l,function(c,p){var v=c.dataByAxis||[],h=r[p]||{},d=h.dataByAxis||[];f=f&&v.length===d.length,f&&I(v,function(m,g){var y=d[g]||{},x=m.seriesDataIndices||[],S=y.seriesDataIndices||[];f=f&&m.value===y.value&&m.axisType===y.axisType&&m.axisId===y.axisId&&x.length===S.length,f&&I(x,function(D,b){var C=S[b];f=f&&D.seriesIndex===C.seriesIndex&&D.dataIndex===C.dataIndex}),u&&I(m.seriesDataIndices,function(D){var b=D.seriesIndex,C=s[b],A=u[b];if(C&&A&&A.data!==C.data)f=!1})})}),this._lastDataByCoordSys=r,this._cbParamsList=s,!!f},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,s){if(Ue.node||!s.getDom())return;Co(this,"_updatePosition"),this._tooltipContent.dispose(),yv("itemTooltip",s),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null},e.type="tooltip",e}(ft);function Dv(n,e,r){var s=e.ecModel,l;if(r)l=new Je(r,s,s),l=new Je(e.option,l,s);else l=e;for(var u=n.length-1;u>=0;u--){var f=n[u];if(f){if(f instanceof Je)f=f.get("tooltip",!0);if(K(f))f={formatter:f};if(f)l=new Je(f,l,s)}}return l}function cF(n,e){return n.dispatchAction||se(e.dispatchAction,e)}function NK(n,e,r,s,l,u,f){var c=r.getSize(),p=c[0],v=c[1];if(u!=null)if(n+p+u+2>s)n-=p+u;else n+=u;if(f!=null)if(e+v+f>l)e-=v+f;else e+=f;return[n,e]}function kK(n,e,r,s,l){var u=r.getSize(),f=u[0],c=u[1];return n=Math.min(n+f,s)-f,e=Math.min(e+c,l)-c,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function BK(n,e,r,s){var l=r[0],u=r[1],f=Math.ceil(Math.SQRT2*s)+8,c=0,p=0,{width:v,height:h}=e;switch(n){case"inside":c=e.x+v/2-l/2,p=e.y+h/2-u/2;break;case"top":c=e.x+v/2-l/2,p=e.y-u-f;break;case"bottom":c=e.x+v/2-l/2,p=e.y+h+f;break;case"left":c=e.x-l-f,p=e.y+h/2-u/2;break;case"right":c=e.x+v+f,p=e.y+h/2-u/2}return[c,p]}function pF(n){return n==="center"||n==="middle"}function FK(n,e,r){var s=Hc(n).queryOptionMap,l=s.keys()[0];if(!l||l==="series")return;var u=fn(e,l,s.get(l),{useDefault:!1,enableAll:!1,enableNone:!1}),f=u.models[0];if(!f)return;var c=r.getViewOfComponentModel(f),p;if(c.group.traverse(function(v){var h=ye(v).tooltipConfig;if(h&&h.name===n.name)return p=v,!0}),p)return{componentMainType:l,componentIndex:f.componentIndex,el:p}}var vF=OK;function Rb(n){It(Ns),n.registerComponentModel(tF),n.registerComponentView(vF),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},mt),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},mt)}var hF=I;function dF(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function Ob(n,e,r){var s={};return hF(e,function(u){var f=s[u]=l();hF(n[u],function(c,p){if(!qt.isValidType(p))return;var v={type:p,visual:c};if(r&&r(v,u),f[p]=new qt(v),p==="opacity")v=le(v),v.type="colorAlpha",f.__hidden.__alphaForOpacity=new qt(v)})}),s;function l(){var u=function(){};u.prototype.__hidden=u.prototype;var f=new u;return f}}function mF(n,e,r){var s;I(r,function(l){if(e.hasOwnProperty(l)&&dF(e[l]))s=!0}),s&&I(r,function(l){if(e.hasOwnProperty(l)&&dF(e[l]))n[l]=le(e[l]);else delete n[l]})}function gF(n,e,r,s){var l={};return I(n,function(u){var f=qt.prepareVisualTypes(e[u]);l[u]=f}),{progress:function(f,c){var p;if(s!=null)p=c.getDimensionIndex(s);function v(T){return hg(c,d,T)}function h(T,E){XP(c,d,T,E)}var d,m=c.getStore();while((d=f.next())!=null){var g=c.getRawDataItem(d);if(g&&g.visualMap===!1)continue;var y=s!=null?m.get(p,d):d,x=r(y),S=e[x],D=l[x];for(var b=0,C=D.length;b<C;b++){var A=D[b];S[A]&&S[A].applyVisual(y,v,h)}}}}}var zK=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:X.size.m,backgroundColor:X.color.transparent,borderColor:X.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:X.color.primary},subtextStyle:{fontSize:12,color:X.color.quaternary}},e}(Fe),VK=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,s,l){if(this.group.removeAll(),!r.get("show"))return;var u=this.group,f=r.getModel("textStyle"),c=r.getModel("subtextStyle"),p=r.get("textAlign"),v=te(r.get("textBaseline"),r.get("textVerticalAlign")),h=new Ve({style:ut(f,{text:r.get("text"),fill:f.getTextColor()},{disableBox:!0}),z2:10}),d=h.getBoundingRect(),m=r.get("subtext"),g=new Ve({style:ut(c,{text:m,fill:c.getTextColor(),y:d.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),y=r.get("link"),x=r.get("sublink"),S=r.get("triggerEvent",!0);if(h.silent=!y&&!S,g.silent=!x&&!S,y)h.on("click",function(){Ul(y,"_"+r.get("target"))});if(x)g.on("click",function(){Ul(x,"_"+r.get("subtarget"))});ye(h).eventData=ye(g).eventData=S?{componentType:"title",componentIndex:r.componentIndex}:null,u.add(h),m&&u.add(g);var D=u.getBoundingRect(),b=r.getBoxLayoutParams();b.width=D.width,b.height=D.height;var C=Tt(r,l),A=ht(b,C.refContainer,r.get("padding"));if(!p){if(p=r.get("left")||r.get("right"),p==="middle")p="center";if(p==="right")A.x+=A.width;else if(p==="center")A.x+=A.width/2}if(!v){if(v=r.get("top")||r.get("bottom"),v==="center")v="middle";if(v==="bottom")A.y+=A.height;else if(v==="middle")A.y+=A.height/2;v=v||"top"}u.x=A.x,u.y=A.y,u.markRedraw();var T={align:p,verticalAlign:v};h.setStyle(T),g.setStyle(T),D=u.getBoundingRect();var E=A.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var L=new Ee({shape:{x:D.x-E[3],y:D.y-E[0],width:D.width+E[1]+E[3],height:D.height+E[0]+E[2],r:r.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});u.add(L)},e.type="title",e}(ft);function Nb(n){n.registerComponentModel(zK),n.registerComponentView(VK)}function vu(n,e){if(!n)return!1;var r=U(n)?n:[n];for(var s=0;s<r.length;s++)if(r[s]&&r[s][e])return!0;return!1}function Iy(n){Ea(n,"label",["show"])}var My=he(),xF=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.createdBySelf=!1,r.preventAutoZ=!0,r}return e.prototype.init=function(r,s,l){this.mergeDefaultAndTheme(r,l),this._mergeOption(r,l,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Ue.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},e.prototype.mergeOption=function(r,s){this._mergeOption(r,s,!1,!1)},e.prototype._mergeOption=function(r,s,l,u){var f=this.mainType;if(!l)s.eachSeries(function(c){var p=c.get(this.mainType,!0),v=My(c)[f];if(!p||!p.data){My(c)[f]=null;return}if(!v){if(u)Iy(p);I(p.data,function(h){if(h instanceof Array)Iy(h[0]),Iy(h[1]);else Iy(h)}),v=this.createMarkerModelFromSeries(p,this,s),V(v,{mainType:this.mainType,seriesIndex:c.seriesIndex,name:c.name,createdBySelf:!0}),v.__hostSeries=c}else v._mergeOption(p,s,!0);My(c)[f]=v},this)},e.prototype.formatTooltip=function(r,s,l){var u=this.getData(),f=this.getRawValue(r),c=u.getName(r);return Wt("section",{header:this.name,blocks:[Wt("nameValue",{name:c,value:f,noName:!c,noValue:f==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(r){this._data=r},e.prototype.getDataParams=function(r,s){var l=Sp.prototype.getDataParams.call(this,r,s),u=this.__hostSeries;if(u)l.seriesId=u.id,l.seriesName=u.name,l.seriesType=u.subType;return l},e.getMarkerModelFromSeries=function(r,s){return My(r)[s]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Fe);xt(xF,Sp.prototype);var Wr=xF;var UK=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,s,l){return new e(r,s,l)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(Wr),_F=UK;function kb(n){return!(isNaN(parseFloat(n.x))&&isNaN(parseFloat(n.y)))}function GK(n){return!isNaN(parseFloat(n.x))&&!isNaN(parseFloat(n.y))}function Ly(n,e,r,s,l,u,f){var c=[],p=zi(e,l),v=p?e.getCalculationInfo("stackResultDimension"):l,h=bv(e,v,n),d=e.hostModel,m=d.indicesOfNearest(r,v,h)[0];c[u]=e.get(s,m),c[f]=e.get(v,m);var g=e.get(l,m),y=Mi(e.get(l,m));if(y=Math.min(y,20),y>=0)c[f]=+c[f].toFixed(y);return[c,g]}var Py={min:Ae(Ly,"min"),max:Ae(Ly,"max"),average:Ae(Ly,"average"),median:Ae(Ly,"median")};function Bs(n,e){if(!e)return;var r=n.getData(),s=n.coordinateSystem,l=s&&s.dimensions;if(!GK(e)&&!U(e.coord)&&U(l)){var u=Bb(e,r,s,n);if(e=le(e),e.type&&Py[e.type]&&u.baseAxis&&u.valueAxis){var f=be(l,u.baseAxis.dim),c=be(l,u.valueAxis.dim),p=Py[e.type](r,u.valueAxis.dim,u.baseDataDim,u.valueDataDim,f,c);e.coord=p[0],e.value=p[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!U(l)){e.coord=[];var v=n.getBaseAxis();if(v&&e.type&&Py[e.type]){var h=s.getOtherAxis(v);if(h)e.value=bv(r,r.mapDimension(h.dim),e.type)}}else{var d=e.coord;for(var m=0;m<2;m++)if(Py[d[m]])d[m]=bv(r,r.mapDimension(l[m]),d[m])}return e}function Bb(n,e,r,s){var l={};if(n.valueIndex!=null||n.valueDim!=null)l.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,l.valueAxis=r.getAxis(HK(s,l.valueDataDim)),l.baseAxis=r.getOtherAxis(l.valueAxis),l.baseDataDim=e.mapDimension(l.baseAxis.dim);else l.baseAxis=s.getBaseAxis(),l.valueAxis=r.getOtherAxis(l.baseAxis),l.baseDataDim=e.mapDimension(l.baseAxis.dim),l.valueDataDim=e.mapDimension(l.valueAxis.dim);return l}function HK(n,e){var r=n.getData().getDimensionInfo(e);return r&&r.coordDim}function Fs(n,e){return n&&n.containData&&e.coord&&!kb(e)?n.containData(e.coord):!0}function SF(n,e,r){return n&&n.containZone&&e.coord&&r.coord&&!kb(e)&&!kb(r)?n.containZone(e.coord,r.coord):!0}function Ry(n,e){return n?function(r,s,l,u){var f=u<2?r.coord&&r.coord[u]:r.value;return ua(f,e[u])}:function(r,s,l,u){return ua(r.value,e[u])}}function bv(n,e,r){if(r==="average"){var s=0,l=0;return n.each(e,function(u,f){if(!isNaN(u))s+=u,l++}),s/l}else if(r==="median")return n.getMedian(e);else return n.getDataExtent(e)[r==="max"?1:0]}var zb=he(),WK=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(){this.markerGroupMap=re()},e.prototype.render=function(r,s,l){var u=this,f=this.markerGroupMap;f.each(function(c){zb(c).keep=!1}),s.eachSeries(function(c){var p=Wr.getMarkerModelFromSeries(c,u.type);p&&u.renderSeries(c,p,s,l)}),f.each(function(c){!zb(c).keep&&u.group.remove(c.group)}),YK(s,f,this.type)},e.prototype.markKeep=function(r){zb(r).keep=!0},e.prototype.toggleBlurSeries=function(r,s){var l=this;I(r,function(u){var f=Wr.getMarkerModelFromSeries(u,l.type);if(f){var c=f.getData();c.eachItemGraphicEl(function(p){if(p)s?$h(p):Qc(p)})}})},e.type="marker",e}(ft);function YK(n,e,r){n.eachSeries(function(s){var l=Wr.getMarkerModelFromSeries(s,r),u=e.get(s.id);if(l&&u&&u.group){var f=hn(l),{z:c,zlevel:p}=f;op(u.group,c,p)}})}var lc=WK;function DF(n,e,r){var s=e.coordinateSystem,l=r.getWidth(),u=r.getHeight(),f=s&&s.getArea&&s.getArea();n.each(function(c){var p=n.getItemModel(c),v=p.get("relativeTo")==="coordinate",h=v?f?f.width:0:l,d=v?f?f.height:0:u,m=v&&f?f.x:0,g=v&&f?f.y:0,y,x=ee(p.get("x"),h)+m,S=ee(p.get("y"),d)+g;if(!isNaN(x)&&!isNaN(S))y=[x,S];else if(e.getMarkerPosition)y=e.getMarkerPosition(n.getValues(n.dimensions,c));else if(s){var D=n.get(s.dimensions[0],c),b=n.get(s.dimensions[1],c);y=s.dataToPoint([D,b])}if(!isNaN(x))y[0]=x;if(!isNaN(S))y[1]=S;n.setItemLayout(c,y)})}var XK=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,s,l){s.eachSeries(function(u){var f=Wr.getMarkerModelFromSeries(u,"markPoint");if(f)DF(f.getData(),u,l),this.markerGroupMap.get(u.id).updateLayout()},this)},e.prototype.renderSeries=function(r,s,l,u){var{coordinateSystem:f,id:c}=r,p=r.getData(),v=this.markerGroupMap,h=v.get(c)||v.set(c,new gn),d=ZK(f,r,s);s.setData(d),DF(s.getData(),r,u),d.each(function(m){var g=d.getItemModel(m),y=g.getShallow("symbol"),x=g.getShallow("symbolSize"),S=g.getShallow("symbolRotate"),D=g.getShallow("symbolOffset"),b=g.getShallow("symbolKeepAspect");if(ie(y)||ie(x)||ie(S)||ie(D)){var C=s.getRawValue(m),A=s.getDataParams(m);if(ie(y))y=y(C,A);if(ie(x))x=x(C,A);if(ie(S))S=S(C,A);if(ie(D))D=D(C,A)}var T=g.getModel("itemStyle").getItemStyle(),E=g.get("z2"),w=wn(p,"color");if(!T.fill)T.fill=w;d.setItemVisual(m,{z2:te(E,0),symbol:y,symbolSize:x,symbolRotate:S,symbolOffset:D,symbolKeepAspect:b,style:T})}),h.updateData(d),this.group.add(h.group),d.eachItemGraphicEl(function(m){m.traverse(function(g){ye(g).dataModel=s})}),this.markKeep(h),h.group.silent=s.get("silent")||r.get("silent")},e.type="markPoint",e}(lc);function ZK(n,e,r){var s;if(n)s=W(n&&n.dimensions,function(c){var p=e.getData(),v=p.getDimensionInfo(p.mapDimension(c))||{};return V(V({},v),{name:c,ordinalMeta:null})});else s=[{name:"value",type:"float"}];var l=new ir(s,r),u=W(r.get("data"),Ae(Bs,e));if(n)u=Ke(u,Ae(Fs,n));var f=Ry(!!n,s);return l.initData(u,null,f),l}var bF=XK;function Vb(n){n.registerComponentModel(_F),n.registerComponentView(bF),n.registerPreprocessor(function(e){if(vu(e.series,"markPoint"))e.markPoint=e.markPoint||{}})}var KK=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,s,l){return new e(r,s,l)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(Wr),CF=KK;var Oy=he(),qK=function(n,e,r,s){var l=n.getData(),u;if(!U(s)){var f=s.type;if(f==="min"||f==="max"||f==="average"||f==="median"||s.xAxis!=null||s.yAxis!=null){var c=void 0,p=void 0;if(s.yAxis!=null||s.xAxis!=null)c=e.getAxis(s.yAxis!=null?"y":"x"),p=Ut(s.yAxis,s.xAxis);else{var v=Bb(s,l,e,n);c=v.valueAxis;var h=kd(l,v.valueDataDim);p=bv(l,h,f)}var d=c.dim==="x"?0:1,m=1-d,g=le(s),y={coord:[]};g.type=null,g.coord=[],g.coord[m]=-1/0,y.coord[m]=1/0;var x=r.get("precision");if(x>=0&&Te(p))p=+p.toFixed(Math.min(x,20));g.coord[d]=y.coord[d]=p,u=[g,y,{type:f,valueIndex:s.valueIndex,value:p}]}else u=[]}else u=s;var S=[Bs(n,u[0]),Bs(n,u[1]),V({},u[2])];return S[2].type=S[2].type||null,Re(S[2],S[0]),Re(S[2],S[1]),S};function Ny(n){return!isNaN(n)&&!isFinite(n)}function AF(n,e,r,s){var l=1-n,u=s.dimensions[n];return Ny(e[l])&&Ny(r[l])&&e[n]===r[n]&&s.getAxis(u).containData(e[n])}function jK(n,e){if(n.type==="cartesian2d"){var r=e[0].coord,s=e[1].coord;if(r&&s&&(AF(1,r,s,n)||AF(0,r,s,n)))return!0}return Fs(n,e[0])&&Fs(n,e[1])}function Ub(n,e,r,s,l){var u=s.coordinateSystem,f=n.getItemModel(e),c,p=ee(f.get("x"),l.getWidth()),v=ee(f.get("y"),l.getHeight());if(!isNaN(p)&&!isNaN(v))c=[p,v];else{if(s.getMarkerPosition)c=s.getMarkerPosition(n.getValues(n.dimensions,e));else{var h=u.dimensions,d=n.get(h[0],e),m=n.get(h[1],e);c=u.dataToPoint([d,m])}if(fa(u,"cartesian2d")){var g=u.getAxis("x"),y=u.getAxis("y"),h=u.dimensions;if(Ny(n.get(h[0],e)))c[0]=g.toGlobalCoord(g.getExtent()[r?0:1]);else if(Ny(n.get(h[1],e)))c[1]=y.toGlobalCoord(y.getExtent()[r?0:1])}if(!isNaN(p))c[0]=p;if(!isNaN(v))c[1]=v}n.setItemLayout(e,c)}var $K=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,s,l){s.eachSeries(function(u){var f=Wr.getMarkerModelFromSeries(u,"markLine");if(f){var c=f.getData(),p=Oy(f).from,v=Oy(f).to;p.each(function(h){Ub(p,h,!0,u,l),Ub(v,h,!1,u,l)}),c.each(function(h){c.setItemLayout(h,[p.getItemLayout(h),v.getItemLayout(h)])}),this.markerGroupMap.get(u.id).updateLayout()}},this)},e.prototype.renderSeries=function(r,s,l,u){var{coordinateSystem:f,id:c}=r,p=r.getData(),v=this.markerGroupMap,h=v.get(c)||v.set(c,new oy);this.group.add(h.group);var d=QK(f,r,s),{from:m,to:g,line:y}=d;Oy(s).from=m,Oy(s).to=g,s.setData(y);var x=s.get("symbol"),S=s.get("symbolSize"),D=s.get("symbolRotate"),b=s.get("symbolOffset");if(!U(x))x=[x,x];if(!U(S))S=[S,S];if(!U(D))D=[D,D];if(!U(b))b=[b,b];d.from.each(function(A){C(m,A,!0),C(g,A,!1)}),y.each(function(A){var T=y.getItemModel(A),E=T.getModel("lineStyle").getLineStyle();y.setItemLayout(A,[m.getItemLayout(A),g.getItemLayout(A)]);var w=T.get("z2");if(E.stroke==null)E.stroke=m.getItemVisual(A,"style").fill;y.setItemVisual(A,{z2:te(w,0),fromSymbolKeepAspect:m.getItemVisual(A,"symbolKeepAspect"),fromSymbolOffset:m.getItemVisual(A,"symbolOffset"),fromSymbolRotate:m.getItemVisual(A,"symbolRotate"),fromSymbolSize:m.getItemVisual(A,"symbolSize"),fromSymbol:m.getItemVisual(A,"symbol"),toSymbolKeepAspect:g.getItemVisual(A,"symbolKeepAspect"),toSymbolOffset:g.getItemVisual(A,"symbolOffset"),toSymbolRotate:g.getItemVisual(A,"symbolRotate"),toSymbolSize:g.getItemVisual(A,"symbolSize"),toSymbol:g.getItemVisual(A,"symbol"),style:E})}),h.updateData(y),d.line.eachItemGraphicEl(function(A){ye(A).dataModel=s,A.traverse(function(T){ye(T).dataModel=s})});function C(A,T,E){var w=A.getItemModel(T);Ub(A,T,E,r,u);var L=w.getModel("itemStyle").getItemStyle();if(L.fill==null)L.fill=wn(p,"color");A.setItemVisual(T,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:te(w.get("symbolOffset",!0),b[E?0:1]),symbolRotate:te(w.get("symbolRotate",!0),D[E?0:1]),symbolSize:te(w.get("symbolSize"),S[E?0:1]),symbol:te(w.get("symbol",!0),x[E?0:1]),style:L})}this.markKeep(h),h.group.silent=s.get("silent")||r.get("silent")},e.type="markLine",e}(lc);function QK(n,e,r){var s;if(n)s=W(n&&n.dimensions,function(v){var h=e.getData(),d=h.getDimensionInfo(h.mapDimension(v))||{};return V(V({},d),{name:v,ordinalMeta:null})});else s=[{name:"value",type:"float"}];var l=new ir(s,r),u=new ir(s,r),f=new ir([],r),c=W(r.get("data"),Ae(qK,e,n,r));if(n)c=Ke(c,Ae(jK,n));var p=Ry(!!n,s);return l.initData(W(c,function(v){return v[0]}),null,p),u.initData(W(c,function(v){return v[1]}),null,p),f.initData(W(c,function(v){return v[2]})),f.hasItemOption=!0,{from:l,to:u,line:f}}var TF=$K;function Gb(n){n.registerComponentModel(CF),n.registerComponentView(TF),n.registerPreprocessor(function(e){if(vu(e.series,"markLine"))e.markLine=e.markLine||{}})}var JK=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.createMarkerModelFromSeries=function(r,s,l){return new e(r,s,l)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Wr),EF=JK;var ky=he(),eq=function(n,e,r,s){var l=s[0],u=s[1];if(!l||!u)return;var f=Bs(n,l),c=Bs(n,u),p=f.coord,v=c.coord;p[0]=Ut(p[0],-1/0),p[1]=Ut(p[1],-1/0),v[0]=Ut(v[0],1/0),v[1]=Ut(v[1],1/0);var h=$C([{},f,c]);return h.coord=[f.coord,c.coord],h.x0=f.x,h.y0=f.y,h.x1=c.x,h.y1=c.y,h};function By(n){return!isNaN(n)&&!isFinite(n)}function wF(n,e,r,s){var l=1-n;return By(e[l])&&By(r[l])}function tq(n,e){var r=e.coord[0],s=e.coord[1],l={coord:r,x:e.x0,y:e.y0},u={coord:s,x:e.x1,y:e.y1};if(fa(n,"cartesian2d")){if(r&&s&&(wF(1,r,s,n)||wF(0,r,s,n)))return!0;return SF(n,l,u)}return Fs(n,l)||Fs(n,u)}function IF(n,e,r,s,l){var u=s.coordinateSystem,f=n.getItemModel(e),c,p=ee(f.get(r[0]),l.getWidth()),v=ee(f.get(r[1]),l.getHeight());if(!isNaN(p)&&!isNaN(v))c=[p,v];else{if(s.getMarkerPosition){var h=n.getValues(["x0","y0"],e),d=n.getValues(["x1","y1"],e),m=u.clampData(h),g=u.clampData(d),y=[];if(r[0]==="x0")y[0]=m[0]>g[0]?d[0]:h[0];else y[0]=m[0]>g[0]?h[0]:d[0];if(r[1]==="y0")y[1]=m[1]>g[1]?d[1]:h[1];else y[1]=m[1]>g[1]?h[1]:d[1];c=s.getMarkerPosition(y,r,!0)}else{var x=n.get(r[0],e),S=n.get(r[1],e),D=[x,S];u.clampData&&u.clampData(D,D),c=u.dataToPoint(D,!0)}if(fa(u,"cartesian2d")){var b=u.getAxis("x"),C=u.getAxis("y"),x=n.get(r[0],e),S=n.get(r[1],e);if(By(x))c[0]=b.toGlobalCoord(b.getExtent()[r[0]==="x0"?0:1]);else if(By(S))c[1]=C.toGlobalCoord(C.getExtent()[r[1]==="y0"?0:1])}if(!isNaN(p))c[0]=p;if(!isNaN(v))c[1]=v}return c}var MF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],rq=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.updateTransform=function(r,s,l){s.eachSeries(function(u){var f=Wr.getMarkerModelFromSeries(u,"markArea");if(f){var c=f.getData();c.each(function(p){var v=W(MF,function(d){return IF(c,p,d,u,l)});c.setItemLayout(p,v);var h=c.getItemGraphicEl(p);h.setShape("points",v)})}},this)},e.prototype.renderSeries=function(r,s,l,u){var{coordinateSystem:f,id:c}=r,p=r.getData(),v=this.markerGroupMap,h=v.get(c)||v.set(c,{group:new ve});this.group.add(h.group),this.markKeep(h);var d=iq(f,r,s);s.setData(d),d.each(function(m){var g=W(MF,function(P){return IF(d,m,P,r,u)}),y=f.getAxis("x").scale,x=f.getAxis("y").scale,S=y.getExtent(),D=x.getExtent(),b=[y.parse(d.get("x0",m)),y.parse(d.get("x1",m))],C=[x.parse(d.get("y0",m)),x.parse(d.get("y1",m))];Rt(b),Rt(C);var A=!(S[0]>b[1]||S[1]<b[0]||D[0]>C[1]||D[1]<C[0]),T=!A;d.setItemLayout(m,{points:g,allClipped:T});var E=d.getItemModel(m),w=E.getModel("itemStyle").getItemStyle(),L=E.get("z2"),M=wn(p,"color");if(!w.fill){if(w.fill=M,K(w.fill))w.fill=fl(w.fill,0.4)}if(!w.stroke)w.stroke=M;d.setItemVisual(m,"style",w),d.setItemVisual(m,"z2",te(L,0))}),d.diff(ky(h).data).add(function(m){var g=d.getItemLayout(m),y=d.getItemVisual(m,"z2");if(!g.allClipped){var x=new rr({z2:te(y,0),shape:{points:g.points}});d.setItemGraphicEl(m,x),h.group.add(x)}}).update(function(m,g){var y=ky(h).data.getItemGraphicEl(g),x=d.getItemLayout(m),S=d.getItemVisual(m,"z2");if(!x.allClipped){if(y)Oe(y,{z2:te(S,0),shape:{points:x.points}},s,m);else y=new rr({shape:{points:x.points}});d.setItemGraphicEl(m,y),h.group.add(y)}else if(y)h.group.remove(y)}).remove(function(m){var g=ky(h).data.getItemGraphicEl(m);h.group.remove(g)}).execute(),d.eachItemGraphicEl(function(m,g){var y=d.getItemModel(g),x=d.getItemVisual(g,"style");m.useStyle(d.getItemVisual(g,"style")),Mt(m,St(y),{labelFetcher:s,labelDataIndex:g,defaultText:d.getName(g)||"",inheritColor:K(x.fill)?fl(x.fill,1):X.color.neutral99}),wt(m,y),it(m,null,null,y.get(["emphasis","disabled"])),ye(m).dataModel=s}),ky(h).data=d,h.group.silent=s.get("silent")||r.get("silent")},e.type="markArea",e}(lc);function iq(n,e,r){var s,l,u=["x0","y0","x1","y1"];if(n){var f=W(n&&n.dimensions,function(v){var h=e.getData(),d=h.getDimensionInfo(h.mapDimension(v))||{};return V(V({},d),{name:v,ordinalMeta:null})});l=W(u,function(v,h){return{name:v,type:f[h%2].type}}),s=new ir(l,r)}else l=[{name:"value",type:"float"}],s=new ir(l,r);var c=W(r.get("data"),Ae(eq,e,n,r));if(n)c=Ke(c,Ae(tq,n));var p=n?function(v,h,d,m){var g=v.coord[Math.floor(m/2)][m%2];return ua(g,l[m])}:function(v,h,d,m){return ua(v.value,l[m])};return s.initData(c,null,p),s.hasItemOption=!0,s}var LF=rq;function Hb(n){n.registerComponentModel(EF),n.registerComponentView(LF),n.registerPreprocessor(function(e){if(vu(e.series,"markArea"))e.markArea=e.markArea||{}})}var aq=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};else if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},nq=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,s,l){this.mergeDefaultAndTheme(r,l),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,s){n.prototype.mergeOption.call(this,r,s),this._updateSelector(r)},e.prototype._updateSelector=function(r){var s=r.selector,l=this.ecModel;if(s===!0)s=r.selector=["all","inverse"];if(U(s))I(s,function(u,f){K(u)&&(u={type:u}),s[f]=Re(u,aq(l,u.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){var s=!1;for(var l=0;l<r.length;l++){var u=r[l].get("name");if(this.isSelected(u)){this.select(u),s=!0;break}}!s&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var s=[],l=[];r.eachRawSeries(function(p){var v=p.name;l.push(v);var h;if(p.legendVisualProvider){var d=p.legendVisualProvider,m=d.getAllNames();if(!r.isSeriesFiltered(p))l=l.concat(m);if(m.length)s=s.concat(m);else h=!0}else h=!0;if(h&&Hu(p))s.push(p.name)}),this._availableNames=l;var u=this.get("data")||s,f=re(),c=W(u,function(p){if(K(p)||Te(p))p={name:p};if(f.get(p.name))return null;return f.set(p.name,!0),new Je(p,this,this.ecModel)},this);this._data=Ke(c,function(p){return!!p})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var s=this.option.selected,l=this.get("selectedMode");if(l==="single"){var u=this._data;I(u,function(f){s[f.get("name")]=!1})}s[r]=!0},e.prototype.unSelect=function(r){if(this.get("selectedMode")!=="single")this.option.selected[r]=!1},e.prototype.toggleSelected=function(r){var s=this.option.selected;if(!s.hasOwnProperty(r))s[r]=!0;this[s[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,s=this.option.selected;I(r,function(l){s[l.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,s=this.option.selected;I(r,function(l){var u=l.get("name",!0);if(!s.hasOwnProperty(u))s[u]=!0;s[u]=!s[u]})},e.prototype.isSelected=function(r){var s=this.option.selected;return!(s.hasOwnProperty(r)&&!s[r])&&be(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:X.size.m,align:"auto",backgroundColor:X.color.transparent,borderColor:X.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:X.color.disabled,inactiveBorderColor:X.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:X.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:X.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:X.color.tertiary,borderWidth:1,borderColor:X.color.border},emphasis:{selectorLabel:{show:!0,color:X.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(Fe),Cv=nq;var uc=Ae,Wb=I,Fy=ve,oq=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new Fy),this.group.add(this._selectorGroup=new Fy),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,s,l){var u=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!r.get("show",!0))return;var f=r.get("align"),c=r.get("orient");if(!f||f==="auto")f=r.get("left")==="right"&&c==="vertical"?"right":"left";var p=r.get("selector",!0),v=r.get("selectorPosition",!0);if(p&&(!v||v==="auto"))v=c==="horizontal"?"end":"start";this.renderInner(f,r,s,l,p,c,v);var h=Tt(r,l).refContainer,d=r.getBoxLayoutParams(),m=r.get("padding"),g=ht(d,h,m),y=this.layoutInner(r,f,g,u,p,v),x=ht(pe({width:y.width,height:y.height},d),h,m);this.group.x=x.x-y.x,this.group.y=x.y-y.y,this.group.markRedraw(),this.group.add(this._backgroundEl=eF(y,r))},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,s,l,u,f,c,p){var v=this.getContentGroup(),h=re(),d=s.get("selectedMode"),m=s.get("triggerEvent"),g=[];if(l.eachRawSeries(function(y){!y.get("legendHoverLink")&&g.push(y.id)}),Wb(s.getData(),function(y,x){var S=this,D=y.get("name");if(!this.newlineDisabled&&(D===""||D===`
|
|
51
|
+
`)){var b=new Fy;b.newline=!0,v.add(b);return}var C=l.getSeriesByName(D)[0];if(h.get(D))return;if(C){var A=C.getData(),T=A.getVisual("legendLineStyle")||{},E=A.getVisual("legendIcon"),w=A.getVisual("style"),L=this._createItem(C,D,x,y,s,r,T,w,E,d,u);if(L.on("click",uc(PF,D,null,u,g)).on("mouseover",uc(Yb,C.name,null,u,g)).on("mouseout",uc(Xb,C.name,null,u,g)),l.ssr)L.eachChild(function(M){var P=ye(M);P.seriesIndex=C.seriesIndex,P.dataIndex=x,P.ssrType="legend"});if(m)L.eachChild(function(M){S.packEventData(M,s,C,x,D)});h.set(D,!0)}else l.eachRawSeries(function(M){var P=this;if(h.get(D))return;if(M.legendVisualProvider){var R=M.legendVisualProvider;if(!R.containName(D))return;var N=R.indexOfName(D),O=R.getItemVisual(N,"style"),B=R.getItemVisual(N,"legendIcon"),F=Ar(O.fill);if(F&&F[3]===0)F[3]=0.2,O=V(V({},O),{fill:ea(F,"rgba")});var z=this._createItem(M,D,x,y,s,r,{},O,B,d,u);if(z.on("click",uc(PF,null,D,u,g)).on("mouseover",uc(Yb,null,D,u,g)).on("mouseout",uc(Xb,null,D,u,g)),l.ssr)z.eachChild(function(H){var G=ye(H);G.seriesIndex=M.seriesIndex,G.dataIndex=x,G.ssrType="legend"});if(m)z.eachChild(function(H){P.packEventData(H,s,M,x,D)});h.set(D,!0)}},this)},this),f)this._createSelector(f,s,u,c,p)},e.prototype.packEventData=function(r,s,l,u,f){var c={componentType:"legend",componentIndex:s.componentIndex,dataIndex:u,value:f,seriesIndex:l.seriesIndex};ye(r).eventData=c},e.prototype._createSelector=function(r,s,l,u,f){var c=this.getSelectorGroup();Wb(r,function(v){var h=v.type,d=new Ve({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){l.dispatchAction({type:h==="all"?"legendAllSelect":"legendInverseSelect",legendId:s.id})}});c.add(d);var m=s.getModel("selectorLabel"),g=s.getModel(["emphasis","selectorLabel"]);Mt(d,{normal:m,emphasis:g},{defaultText:v.title}),Ku(d)})},e.prototype._createItem=function(r,s,l,u,f,c,p,v,h,d,m){var g=r.visualDrawType,y=f.get("itemWidth"),x=f.get("itemHeight"),S=f.isSelected(s),D=u.get("symbolRotate"),b=u.get("symbolKeepAspect"),C=u.get("icon");h=C||h||"roundRect";var A=sq(h,u,p,v,g,S,m),T=new Fy,E=u.getModel("textStyle");if(ie(r.getLegendIcon)&&(!C||C==="inherit"))T.add(r.getLegendIcon({itemWidth:y,itemHeight:x,icon:h,iconRotate:D,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:b}));else{var w=C==="inherit"&&r.getData().getVisual("symbol")?D==="inherit"?r.getData().getVisual("symbolRotate"):D:0;T.add(lq({itemWidth:y,itemHeight:x,icon:h,iconRotate:w,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:b}))}var L=c==="left"?y+5:-5,M=c,P=f.get("formatter"),R=s;if(K(P)&&P)R=P.replace("{name}",s!=null?s:"");else if(ie(P))R=P(s);var N=S?E.getTextColor():u.get("inactiveColor");T.add(new Ve({style:ut(E,{text:R,x:L,y:x/2,fill:N,align:M,verticalAlign:"middle"},{inheritColor:N})}));var O=new Ee({shape:T.getBoundingRect(),style:{fill:"transparent"}}),B=u.getModel("tooltip");if(B.get("show"))ls({el:O,componentModel:f,itemName:s,itemTooltipOption:B.option});return T.add(O),T.eachChild(function(F){F.silent=!0}),O.silent=!d,this.getContentGroup().add(T),Ku(T),T.__legendDataIndex=l,T},e.prototype.layoutInner=function(r,s,l,u,f,c){var p=this.getContentGroup(),v=this.getSelectorGroup();vo(r.get("orient"),p,r.get("itemGap"),l.width,l.height);var h=p.getBoundingRect(),d=[-h.x,-h.y];if(v.markRedraw(),p.markRedraw(),f){vo("horizontal",v,r.get("selectorItemGap",!0));var m=v.getBoundingRect(),g=[-m.x,-m.y],y=r.get("selectorButtonGap",!0),x=r.getOrient().index,S=x===0?"width":"height",D=x===0?"height":"width",b=x===0?"y":"x";if(c==="end")g[x]+=h[S]+y;else d[x]+=m[S]+y;g[1-x]+=h[D]/2-m[D]/2,v.x=g[0],v.y=g[1],p.x=d[0],p.y=d[1];var C={x:0,y:0};return C[S]=h[S]+y+m[S],C[D]=Math.max(h[D],m[D]),C[b]=Math.min(0,m[b]+g[1-x]),C}else return p.x=d[0],p.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(ft);function sq(n,e,r,s,l,u,f){function c(S,D){if(S.lineWidth==="auto")S.lineWidth=D.lineWidth>0?2:0;Wb(S,function(b,C){S[C]==="inherit"&&(S[C]=D[C])})}var p=e.getModel("itemStyle"),v=p.getItemStyle(),h=n.lastIndexOf("empty",0)===0?"fill":"stroke",d=p.getShallow("decal");if(v.decal=!d||d==="inherit"?s.decal:eu(d,f),v.fill==="inherit")v.fill=s[l];if(v.stroke==="inherit")v.stroke=s[h];if(v.opacity==="inherit")v.opacity=(l==="fill"?s:r).opacity;c(v,s);var m=e.getModel("lineStyle"),g=m.getLineStyle();if(c(g,r),v.fill==="auto"&&(v.fill=s.fill),v.stroke==="auto"&&(v.stroke=s.fill),g.stroke==="auto"&&(g.stroke=s.fill),!u){var y=e.get("inactiveBorderWidth"),x=v[h];v.lineWidth=y==="auto"?s.lineWidth>0&&x?2:0:v.lineWidth,v.fill=e.get("inactiveColor"),v.stroke=e.get("inactiveBorderColor"),g.stroke=m.get("inactiveColor"),g.lineWidth=m.get("inactiveWidth")}return{itemStyle:v,lineStyle:g}}function lq(n){var e=n.icon||"roundRect",r=Dt(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);if(r.setStyle(n.itemStyle),r.rotation=(n.iconRotate||0)*Math.PI/180,r.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1)r.style.stroke=r.style.fill,r.style.fill=X.color.neutral00,r.style.lineWidth=2;return r}function PF(n,e,r,s){Xb(n,e,r,s),r.dispatchAction({type:"legendToggleSelect",name:n!=null?n:e}),Yb(n,e,r,s)}function Yb(n,e,r,s){if(!r.usingTHL())r.dispatchAction({type:"highlight",seriesName:n,name:e,excludeSeriesId:s})}function Xb(n,e,r,s){if(!r.usingTHL())r.dispatchAction({type:"downplay",seriesName:n,name:e,excludeSeriesId:s})}var zy=oq;function Av(n,e,r){var s=n==="allSelect"||n==="inverseSelect",l={},u=[];r.eachComponent({mainType:"legend",query:e},function(c){if(s)c[n]();else c[n](e.name);RF(c,l),u.push(c.componentIndex)});var f={};return r.eachComponent("legend",function(c){I(l,function(p,v){c[p?"select":"unSelect"](v)}),RF(c,f)}),s?{selected:f,legendIndex:u}:{name:e.name,selected:f}}function RF(n,e){var r=e||{};return I(n.getData(),function(s){var l=s.get("name");if(l===`
|
|
52
|
+
`||l==="")return;var u=n.isSelected(l);if(bt(r,l))r[l]=r[l]&&u;else r[l]=u}),r}function OF(n){n.registerAction("legendToggleSelect","legendselectchanged",Ae(Av,"toggleSelected")),n.registerAction("legendAllSelect","legendselectall",Ae(Av,"allSelect")),n.registerAction("legendInverseSelect","legendinverseselect",Ae(Av,"inverseSelect")),n.registerAction("legendSelect","legendselected",Ae(Av,"select")),n.registerAction("legendUnSelect","legendunselected",Ae(Av,"unSelect"))}var NF=ts(uq);function uq(n){var e=n.findComponents({mainType:"legend"});if(e&&e.length)n.filterSeries(function(r){for(var s=0;s<e.length;s++)if(!e[s].isSelected(r.name))return!1;return!0})}function Vy(n){n.registerComponentModel(Cv),n.registerComponentView(zy),n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,NF),n.registerSubTypeDefaulter("legend",function(){return"plain"}),OF(n)}var fq=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,s,l){var u=_i(r);n.prototype.init.call(this,r,s,l),kF(this,r,u)},e.prototype.mergeOption=function(r,s){n.prototype.mergeOption.call(this,r,s),kF(this,this.option,r)},e.type="legend.scroll",e.defaultOption=yi(Cv.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:X.color.accent50,pageIconInactiveColor:X.color.accent10,pageIconSize:15,pageTextStyle:{color:X.color.tertiary},animationDurationUpdate:800}),e}(Cv);function kF(n,e,r){var s=n.getOrient(),l=[1,1];l[s.index]=0,Qr(e,r,{type:"box",ignoreSize:!!l})}var BF=fq;var FF=ve,Zb=["width","height"],Kb=["x","y"],cq=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){n.prototype.init.call(this),this.group.add(this._containerGroup=new FF),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new FF)},e.prototype.resetInner=function(){n.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,s,l,u,f,c,p){var v=this;n.prototype.renderInner.call(this,r,s,l,u,f,c,p);var h=this._controllerGroup,d=s.get("pageIconSize",!0),m=U(d)?d:[d,d];y("pagePrev",0);var g=s.getModel("pageTextStyle");h.add(new Ve({name:"pageText",style:{text:"xx/xx",fill:g.getTextColor(),font:g.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),y("pageNext",1);function y(x,S){var D=x+"DataIndex",b=np(s.get("pageIcons",!0)[s.getOrient().name][S],{onclick:se(v._pageGo,v,D,s,u)},{x:-m[0]/2,y:-m[1]/2,width:m[0],height:m[1]});b.name=x,h.add(b)}},e.prototype.layoutInner=function(r,s,l,u,f,c){var p=this.getSelectorGroup(),v=r.getOrient().index,h=Zb[v],d=Kb[v],m=Zb[1-v],g=Kb[1-v];f&&vo("horizontal",p,r.get("selectorItemGap",!0));var y=r.get("selectorButtonGap",!0),x=p.getBoundingRect(),S=[-x.x,-x.y],D=le(l);f&&(D[h]=l[h]-x[h]-y);var b=this._layoutContentAndController(r,u,D,v,h,m,g,d);if(f){if(c==="end")S[v]+=b[h]+y;else{var C=x[h]+y;S[v]-=C,b[d]-=C}b[h]+=x[h]+y,S[1-v]+=b[g]+b[m]/2-x[m]/2,b[m]=Math.max(b[m],x[m]),b[g]=Math.min(b[g],x[g]+S[1-v]),p.x=S[0],p.y=S[1],p.markRedraw()}return b},e.prototype._layoutContentAndController=function(r,s,l,u,f,c,p,v){var h=this.getContentGroup(),d=this._containerGroup,m=this._controllerGroup;vo(r.get("orient"),h,r.get("itemGap"),!u?null:l.width,u?null:l.height),vo("horizontal",m,r.get("pageButtonItemGap",!0));var g=h.getBoundingRect(),y=m.getBoundingRect(),x=this._showController=g[f]>l[f],S=[-g.x,-g.y];if(!s)S[u]=h[v];var D=[0,0],b=[-y.x,-y.y],C=te(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(x){var A=r.get("pageButtonPosition",!0);if(A==="end")b[u]+=l[f]-y[f];else D[u]+=y[f]+C}b[1-u]+=g[c]/2-y[c]/2,h.setPosition(S),d.setPosition(D),m.setPosition(b);var T={x:0,y:0};if(T[f]=x?l[f]:g[f],T[c]=Math.max(g[c],y[c]),T[p]=Math.min(0,y[p]+b[1-u]),d.__rectSize=l[f],x){var E={x:0,y:0};E[f]=Math.max(l[f]-y[f]-C,0),E[c]=T[c],d.setClipPath(new Ee({shape:E})),d.__rectSize=E[f]}else m.eachChild(function(L){L.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&Oe(h,{x:w.contentPosition[0],y:w.contentPosition[1]},x?r:null),this._updatePageInfoView(r,w),T},e.prototype._pageGo=function(r,s,l){var u=this._getPageInfo(s)[r];u!=null&&l.dispatchAction({type:"legendScroll",scrollDataIndex:u,legendId:s.id})},e.prototype._updatePageInfoView=function(r,s){var l=this._controllerGroup;I(["pagePrev","pageNext"],function(h){var d=h+"DataIndex",m=s[d]!=null,g=l.childOfName(h);if(g)g.setStyle("fill",m?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),g.cursor=m?"pointer":"default"});var u=l.childOfName("pageText"),f=r.get("pageFormatter"),c=s.pageIndex,p=c!=null?c+1:0,v=s.pageCount;u&&f&&u.setStyle("text",K(f)?f.replace("{current}",p==null?"":p+"").replace("{total}",v==null?"":v+""):f({current:p,total:v}))},e.prototype._getPageInfo=function(r){var s=r.get("scrollDataIndex",!0),l=this.getContentGroup(),u=this._containerGroup.__rectSize,f=r.getOrient().index,c=Zb[f],p=Kb[f],v=this._findTargetItemIndex(s),h=l.children(),d=h[v],m=h.length,g=!m?0:1,y={contentPosition:[l.x,l.y],pageCount:g,pageIndex:g-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return y;var x=A(d);y.contentPosition[f]=-x.s;for(var S=v+1,D=x,b=x,C=null;S<=m;++S){if(C=A(h[S]),!C&&b.e>D.s+u||C&&!T(C,D.s)){if(b.i>D.i)D=b;else D=C;if(D){if(y.pageNextDataIndex==null)y.pageNextDataIndex=D.i;++y.pageCount}}b=C}for(var S=v-1,D=x,b=x,C=null;S>=-1;--S){if(C=A(h[S]),(!C||!T(b,C.s))&&D.i<b.i){if(b=D,y.pagePrevDataIndex==null)y.pagePrevDataIndex=D.i;++y.pageCount,++y.pageIndex}D=C}return y;function A(E){if(E){var w=E.getBoundingRect(),L=w[p]+E[p];return{s:L,e:L+w[c],i:E.__legendDataIndex}}}function T(E,w){return E.e>=w&&E.s<=w+u}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var s,l=this.getContentGroup(),u;return l.eachChild(function(f,c){var p=f.__legendDataIndex;if(u==null&&p!=null)u=c;if(p===r)s=c}),s!=null?s:u},e.type="legend.scroll",e}(zy),zF=cq;function qb(n){n.registerAction("legendScroll","legendscroll",function(e,r){var s=e.scrollDataIndex;s!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(l){l.setScrollDataIndex(s)})})}function VF(n){It(Vy),n.registerComponentModel(BF),n.registerComponentView(zF),qb(n)}function jb(n){It(Vy),It(VF)}var pq=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.inside",e.defaultOption=yi(sc.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(sc),UF=pq;var $b=he();function GF(n,e,r){$b(n).coordSysRecordMap.each(function(s){var l=s.dataZoomInfoMap.get(e.uid);if(l)l.getRange=r})}function HF(n,e){var r=$b(n).coordSysRecordMap,s=r.keys();for(var l=0;l<s.length;l++){var u=s[l],f=r.get(u),c=f.dataZoomInfoMap;if(c){var p=e.uid,v=c.get(p);if(v){if(c.removeKey(p),!c.keys().length)WF(r,f)}}}}function WF(n,e){if(e){n.removeKey(e.model.uid);var r=e.controller;r&&r.dispose()}}function vq(n,e){var r={model:e,containsPoint:Ae(dq,e),dispatchAction:Ae(hq,n),dataZoomInfoMap:null,controller:null},s=r.controller=new Ln(n.getZr());return I(["pan","zoom","scrollMove"],function(l){s.on(l,function(u){var f=[];r.dataZoomInfoMap.each(function(c){if(!u.isAvailableBehavior(c.model.option))return;var p=(c.getRange||{})[l],v=p&&p(c.dzReferCoordSysInfo,r.model.mainType,r.controller,u);!c.model.get("disabled",!0)&&v&&f.push({dataZoomId:c.model.id,start:v[0],end:v[1]})}),f.length&&r.dispatchAction(f)})}),r}function hq(n,e){if(!n.isDisposed())n.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function dq(n,e,r,s){return n.coordinateSystem.containPoint([r,s])}function mq(n,e,r){var s,l="type_",u={type_true:2,type_move:1,type_false:0,type_undefined:-1},f=!0,c,p;return n.each(function(v){var h=v.model,d=h.get("disabled",!0)?!1:h.get("zoomLock",!0)?"move":!0;if(u[l+d]>u[l+s])s=d;f=f&&h.get("preventDefaultMouseMove",!0),c=te(h.get("cursorGrab",!0),c),p=te(h.get("cursorGrabbing",!0),p)}),{controlType:s,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!f,api:r,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint},cursorGrab:c,cursorGrabbing:p}}}function YF(n){n.registerUpdateLifecycle("coordsys:aftercreate",function(e,r){var s=$b(r),l=s.coordSysRecordMap||(s.coordSysRecordMap=re());l.each(function(u){u.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(u){var f=Ay(u);I(f.infoList,function(c){var p=c.model.uid,v=l.get(p)||l.set(p,vq(r,c.model)),h=v.dataZoomInfoMap||(v.dataZoomInfoMap=re());h.set(u.uid,{dzReferCoordSysInfo:c,model:u,getRange:null})})}),l.each(function(u){var f=u.controller,c,p=u.dataZoomInfoMap;if(p){var v=p.keys()[0];if(v!=null)c=p.get(v)}if(!c){WF(l,u);return}var h=mq(p,u,r);f.enable(h.controlType,h.opt),bn(u,"dispatchAction",c.model.get("throttle",!0),"fixRate")})})}var yq=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return e.prototype.render=function(r,s,l){if(n.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),GF(l,r,{pan:se(Qb.pan,this),zoom:se(Qb.zoom,this),scrollMove:se(Qb.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){HF(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Ey),Qb={zoom:function(n,e,r,s){var l=this.range,u=l.slice(),f=n.axisModels[0];if(!f)return;var c=Jb[e](null,[s.originX,s.originY],f,r,n),p=(c.signal>0?c.pixelStart+c.pixelLength-c.pixel:c.pixel-c.pixelStart)/c.pixelLength*(u[1]-u[0])+u[0],v=Math.max(1/s.scale,0);u[0]=(u[0]-p)*v+p,u[1]=(u[1]-p)*v+p;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Wi(0,u,[0,100],0,h.minSpan,h.maxSpan),this.range=u,l[0]!==u[0]||l[1]!==u[1])return u},pan:XF(function(n,e,r,s,l,u){var f=Jb[s]([u.oldX,u.oldY],[u.newX,u.newY],e,l,r);return f.signal*(n[1]-n[0])*f.pixel/f.pixelLength}),scrollMove:XF(function(n,e,r,s,l,u){var f=Jb[s]([0,0],[u.scrollDelta,u.scrollDelta],e,l,r);return f.signal*(n[1]-n[0])*u.scrollDelta})};function XF(n){return function(e,r,s,l){var u=this.range,f=u.slice(),c=e.axisModels[0];if(!c)return;var p=n(f,c,e,r,s,l);if(Wi(p,f,[0,100],"all"),this.range=f,u[0]!==f[0]||u[1]!==f[1])return f}}var Jb={grid:function(n,e,r,s,l){var u=r.axis,f={},c=l.model.coordinateSystem.getRect();if(n=n||[0,0],u.dim==="x")f.pixel=e[0]-n[0],f.pixelLength=c.width,f.pixelStart=c.x,f.signal=u.inverse?1:-1;else f.pixel=e[1]-n[1],f.pixelLength=c.height,f.pixelStart=c.y,f.signal=u.inverse?-1:1;return f},polar:function(n,e,r,s,l){var u=r.axis,f={},c=l.model.coordinateSystem,p=c.getRadiusAxis().getExtent(),v=c.getAngleAxis().getExtent();if(n=n?c.pointToCoord(n):[0,0],e=c.pointToCoord(e),r.mainType==="radiusAxis")f.pixel=e[0]-n[0],f.pixelLength=p[1]-p[0],f.pixelStart=p[0],f.signal=u.inverse?1:-1;else f.pixel=e[1]-n[1],f.pixelLength=v[1]-v[0],f.pixelStart=v[0],f.signal=u.inverse?-1:1;return f},singleAxis:function(n,e,r,s,l){var u=r.axis,f=l.model.coordinateSystem.getRect(),c={};if(n=n||[0,0],u.orient==="horizontal")c.pixel=e[0]-n[0],c.pixelLength=f.width,c.pixelStart=f.x,c.signal=u.inverse?1:-1;else c.pixel=e[1]-n[1],c.pixelLength=f.height,c.pixelStart=f.y,c.signal=u.inverse?-1:1;return c}},ZF=yq;function KF(n){Sv(n),n.registerComponentModel(UF),n.registerComponentView(ZF),YF(n)}var xq=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=yi(sc.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:X.color.accent10,borderRadius:0,backgroundColor:X.color.transparent,dataBackground:{lineStyle:{color:X.color.accent30,width:0.5},areaStyle:{color:X.color.accent20,opacity:0.2}},selectedDataBackground:{lineStyle:{color:X.color.accent40,width:0.5},areaStyle:{color:X.color.accent20,opacity:0.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:X.color.neutral00,borderColor:X.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:X.color.accent40,opacity:0.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:X.color.tertiary},brushSelect:!0,brushStyle:{color:X.color.accent30,opacity:0.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:X.color.accent40},moveHandleStyle:{opacity:0.8}},defaultLocationEdgeGap:15}),e}(sc),qF=xq;var Tv=Ee,_q=1,eC=30,Sq=7,Ev="horizontal",jF="vertical",Dq=5,bq=["line","bar","candlestick","scatter"],Cq={easing:"cubicOut",duration:100,delay:0},Aq=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r._displayables={},r}return e.prototype.init=function(r,s){this.api=s,this._onBrush=se(this._onBrush,this),this._onBrushEnd=se(this._onBrushEnd,this)},e.prototype.render=function(r,s,l,u){if(n.prototype.render.apply(this,arguments),bn(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}if(!u||u.type!=="dataZoom"||u.from!==this.uid)this._buildView();this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Co(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var s=this._displayables.sliderGroup=new ve;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(s),this._positionGroup()},e.prototype._resetLocation=function(){var r=this.dataZoomModel,s=this.api,l=r.get("brushSelect"),u=l?Sq:0,f=Tt(r,s).refContainer,c=this._findCoordRect(),p=r.get("defaultLocationEdgeGap",!0)||0,v=this._orient===Ev?{right:f.width-c.x-c.width,top:f.height-eC-p-u,width:c.width,height:eC}:{right:p,top:c.y,width:eC,height:c.height},h=_i(r.option);I(["right","top","width","height"],function(m){if(h[m]==="ph")h[m]=v[m]});var d=ht(h,f);this._location={x:d.x,y:d.y},this._size=[d.width,d.height],this._orient===jF&&this._size.reverse()},e.prototype._positionGroup=function(){var r=this.group,s=this._location,l=this._orient,u=this.dataZoomModel.getFirstTargetAxisModel(),f=u&&u.get("inverse"),c=this._displayables.sliderGroup,p=(this._dataShadowInfo||{}).otherAxisInverse;c.attr(l===Ev&&!f?{scaleY:p?1:-1,scaleX:1}:l===Ev&&f?{scaleY:p?1:-1,scaleX:-1}:l===jF&&!f?{scaleY:p?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:p?-1:1,scaleX:-1,rotation:Math.PI/2});var v=r.getBoundingRect([c]),h=isNaN(v.x)?0:v.x,d=isNaN(v.y)?0:v.y;r.x=s.x-h,r.y=s.y-d,r.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var r=this.dataZoomModel,s=this._size,l=this._displayables.sliderGroup,u=r.get("brushSelect");l.add(new Tv({silent:!0,shape:{x:0,y:0,width:s[0],height:s[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var f=new Tv({shape:{x:0,y:0,width:s[0],height:s[1]},style:{fill:"transparent"},z2:0,onclick:se(this._onClickPanel,this)}),c=this.api.getZr();if(u)f.on("mousedown",this._onBrushStart,this),f.cursor="crosshair",c.on("mousemove",this._onBrush),c.on("mouseup",this._onBrushEnd);else c.off("mousemove",this._onBrush),c.off("mouseup",this._onBrushEnd);l.add(f)},e.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var s=this._size,l=this._shadowSize||[],u=r.series,f=u.getRawData(),c=u.getShadowDim&&u.getShadowDim(),p=c&&f.getDimensionInfo(c)?u.getShadowDim():r.otherDim;if(p==null)return;var v=this._shadowPolygonPts,h=this._shadowPolylinePts;if(f!==this._shadowData||p!==this._shadowDim||s[0]!==l[0]||s[1]!==l[1]){var d=f.getDataExtent(r.thisDim),m=f.getDataExtent(p),g=(m[1]-m[0])*0.3;m=[m[0]-g,m[1]+g];var y=[0,s[1]],x=[0,s[0]],S=[[s[0],0],[0,0]],D=[],b=x[1]/Math.max(1,f.count()-1),C=s[0]/(d[1]-d[0]),A=r.thisAxis.type==="time",T=-b,E=Math.round(f.count()/s[0]),w;f.each([r.thisDim,p],function(N,O,B){if(E>0&&B%E){if(!A)T+=b;return}T=A?(+N-d[0])*C:T+b;var F=O==null||isNaN(O)||O==="",z=F?0:Ze(O,m,y,!0);if(F&&!w&&B)S.push([S[S.length-1][0],0]),D.push([D[D.length-1][0],0]);else if(!F&&w)S.push([T,0]),D.push([T,0]);if(!F)S.push([T,z]),D.push([T,z]);w=F}),v=this._shadowPolygonPts=S,h=this._shadowPolylinePts=D}this._shadowData=f,this._shadowDim=p,this._shadowSize=[s[0],s[1]];var L=this.dataZoomModel;function M(N){var O=L.getModel(N?"selectedDataBackground":"dataBackground"),B=new ve,F=new rr({shape:{points:v},segmentIgnoreThreshold:1,style:O.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),z=new ur({shape:{points:h},segmentIgnoreThreshold:1,style:O.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return B.add(F),B.add(z),B}for(var P=0;P<3;P++){var R=M(P===1);this._displayables.sliderGroup.add(R),this._displayables.dataShadowSegs.push(R)}},e.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,s=r.get("showDataShadow");if(s===!1)return;var l,u=this.ecModel;return r.eachTargetAxis(function(f,c){var p=r.getAxisProxy(f,c).getTargetSeriesModels();I(p,function(v){if(l)return;if(s!==!0&&be(bq,v.get("type"))<0)return;var h=u.getComponent(ya(f),c).axis,d=Tq(f),m,g=v.coordinateSystem;if(d!=null&&g.getOtherAxis)m=g.getOtherAxis(h).inverse;d=v.getData().mapDimension(d);var y=v.getData().mapDimension(f);l={thisAxis:h,series:v,thisDim:y,otherDim:d,otherAxisInverse:m}},this)},this),l},e.prototype._renderHandle=function(){var r=this.group,s=this._displayables,l=s.handles=[null,null],u=s.handleLabels=[null,null],f=this._displayables.sliderGroup,c=this._size,p=this.dataZoomModel,v=this.api,h=p.get("borderRadius")||0,d=p.get("brushSelect"),m=s.filler=new Tv({silent:d,style:{fill:p.get("fillerColor")},textConfig:{position:"inside"}});f.add(m),f.add(new Tv({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:c[0],height:c[1],r:h},style:{stroke:p.get("dataBackgroundColor")||p.get("borderColor"),lineWidth:_q,fill:X.color.transparent}})),I([0,1],function(C){var A=p.get("handleIcon");if(!bp[A]&&A.indexOf("path://")<0&&A.indexOf("image://")<0)A="path://"+A;var T=Dt(A,-1,0,2,2,null,!0);T.attr({cursor:Eq(this._orient),draggable:!0,drift:se(this._onDragMove,this,C),ondragend:se(this._onDragEnd,this),onmouseover:se(this._onOverDataInfoTriggerArea,this,!0),onmouseout:se(this._onOverDataInfoTriggerArea,this,!1),z2:5});var E=T.getBoundingRect(),w=p.get("handleSize");this._handleHeight=ee(w,this._size[1]),this._handleWidth=E.width/E.height*this._handleHeight,T.setStyle(p.getModel("handleStyle").getItemStyle()),T.style.strokeNoScale=!0,T.rectHover=!0,T.ensureState("emphasis").style=p.getModel(["emphasis","handleStyle"]).getItemStyle(),Ku(T);var L=p.get("handleColor");if(L!=null)T.style.fill=L;f.add(l[C]=T);var M=p.getModel("textStyle"),P=p.get("handleLabel")||{},R=P.show||!1;r.add(u[C]=new Ve({silent:!0,invisible:!R,style:ut(M,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:M.getTextColor(),font:M.getFont()}),z2:10}))},this);var g=m;if(d){var y=ee(p.get("moveHandleSize"),c[1]),x=s.moveHandle=new Ee({style:p.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:c[1]-0.5,height:y}}),S=y*0.8,D=s.moveHandleIcon=Dt(p.get("moveHandleIcon"),-S/2,-S/2,S,S,X.color.neutral00,!0);D.silent=!0,D.y=c[1]+y/2-0.5,x.ensureState("emphasis").style=p.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(c[1]/2,Math.max(y,10));g=s.moveZone=new Ee({invisible:!0,shape:{y:c[1]-b,height:y+b}}),g.on("mouseover",function(){v.enterEmphasis(x)}).on("mouseout",function(){v.leaveEmphasis(x)}),f.add(x),f.add(D),f.add(g)}g.attr({draggable:!0,cursor:"grab",drift:se(this._onActualMoveZoneDrift,this),ondragstart:se(this._onActualMoveZoneDragStart,this),ondragend:se(this._onActualMoveZoneDragEnd,this),onmouseover:se(this._onOverDataInfoTriggerArea,this,!0),onmouseout:se(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),s=this._getViewExtent();this._handleEnds=[Ze(r[0],[0,100],s,!0),Ze(r[1],[0,100],s,!0)]},e.prototype._updateInterval=function(r,s){var l=this.dataZoomModel,u=this._handleEnds,f=this._getViewExtent(),c=l.findRepresentativeAxisProxy().getMinMaxSpan(),p=[0,100];Wi(s,u,f,l.get("zoomLock")?"all":r,c.minSpan!=null?Ze(c.minSpan,p,f,!0):null,c.maxSpan!=null?Ze(c.maxSpan,p,f,!0):null);var v=this._range,h=this._range=Rt([Ze(u[0],f,p,!0),Ze(u[1],f,p,!0)]);return!v||v[0]!==h[0]||v[1]!==h[1]},e.prototype._updateView=function(r){var s=this._displayables,l=this._handleEnds,u=Rt(l.slice()),f=this._size;I([0,1],function(g){var y=s.handles[g],x=this._handleHeight;y.attr({scaleX:x/2,scaleY:x/2,x:l[g]+(g?-1:1),y:f[1]/2-x/2})},this),s.filler.setShape({x:u[0],y:0,width:u[1]-u[0],height:f[1]});var c={x:u[0],width:u[1]-u[0]};if(s.moveHandle)s.moveHandle.setShape(c),s.moveZone.setShape(c),s.moveZone.getBoundingRect(),s.moveHandleIcon&&s.moveHandleIcon.attr("x",c.x+c.width/2);var p=s.dataShadowSegs,v=[0,u[0],u[1],f[0]];for(var h=0;h<p.length;h++){var d=p[h],m=d.getClipPath();if(!m)m=new Ee,d.setClipPath(m);m.setShape({x:v[h],y:0,width:v[h+1]-v[h],height:f[1]})}this._updateDataInfo(r)},e.prototype._updateDataInfo=function(r){var s=this.dataZoomModel,l=this._displayables,u=l.handleLabels,f=this._orient,c=["",""];if(s.get("showDetail")){var p=s.findRepresentativeAxisProxy(),v=p.getAxisModel().axis.scale;if(p){var h=this._range,d;if(r){var m={start:h[0],end:h[1]},g=Ty(s,p);if(g){var y=g.calculateDataWindow(m).percentInverted;m={start:y[0],end:y[1]}}d=p.calculateDataWindow(m)}else d=p.getWindow();c=[$F(s,0,d,v),$F(s,1,d,v)]}}var x=Rt(this._handleEnds.slice());S.call(this,0),S.call(this,1);function S(D){var b=so(l.handles[D].parent,this.group),C=Ml(D===0?"right":"left",b),A=this._handleWidth/2+Dq,T=$r([x[D]+(D===0?-A:A),this._size[1]/2],b);u[D].setStyle({x:T[0],y:T[1],verticalAlign:f===Ev?"middle":C,align:f===Ev?C:"center",text:c[D]})}},e.prototype._onOverDataInfoTriggerArea=function(r){this._isOverDataInfoTriggerArea=r,this._showDataInfo(r)},e.prototype._showDataInfo=function(r){var s=this.dataZoomModel.get("handleLabel")||{},l=s.show||!1,u=this.dataZoomModel.getModel(["emphasis","handleLabel"]),f=u.get("show")||!1,c=r||this._dragging?f:l,p=this._displayables,v=p.handleLabels;v[0].attr("invisible",!c),v[1].attr("invisible",!c),p.moveHandle&&this.api[c?"enterEmphasis":"leaveEmphasis"](p.moveHandle,1)},e.prototype._onActualMoveZoneDrift=function(r,s,l){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",r,s,l)},e.prototype._onActualMoveZoneDragStart=function(r){r.target.attr("cursor","grabbing"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(r){r.target.attr("cursor","grab"),this._onDragEnd()},e.prototype._onDragMove=function(r,s,l,u){this._dragging=!0,Ai(u.event);var f=this._displayables.sliderGroup.getLocalTransform(),c=$r([s,l],f,!0),p=this._updateInterval(r,c[0]),v=this.dataZoomModel.get("realtime");this._updateView(!v),p&&v&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){if(this._dragging=!1,!this._isOverDataInfoTriggerArea)this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(r){var s=this._size,l=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(l[0]<0||l[0]>s[0]||l[1]<0||l[1]>s[1])return;var u=this._handleEnds,f=(u[0]+u[1])/2,c=this._updateInterval("all",l[0]-f);this._updateView(),c&&this._dispatchZoomAction(!1)},e.prototype._onBrushStart=function(r){var{offsetX:s,offsetY:l}=r;this._brushStart=new Le(s,l),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(r){if(!this._brushing)return;var s=this._displayables.brushRect;if(this._brushing=!1,!s)return;s.attr("ignore",!0);var l=s.shape,u=+new Date;if(u-this._brushStartTime<200&&Math.abs(l.width)<5)return;var f=this._getViewExtent(),c=[0,100],p=this._handleEnds=[l.x,l.x+l.width],v=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();Wi(0,p,f,0,v.minSpan!=null?Ze(v.minSpan,c,f,!0):null,v.maxSpan!=null?Ze(v.maxSpan,c,f,!0):null),this._range=Rt([Ze(p[0],f,c,!0),Ze(p[1],f,c,!0)]),this._updateView(),this._dispatchZoomAction(!1)},e.prototype._onBrush=function(r){if(this._brushing)Ai(r.event),this._updateBrushRect(r.offsetX,r.offsetY)},e.prototype._updateBrushRect=function(r,s){var l=this._displayables,u=this.dataZoomModel,f=l.brushRect;if(!f)f=l.brushRect=new Tv({silent:!0,style:u.getModel("brushStyle").getItemStyle()}),l.sliderGroup.add(f);f.attr("ignore",!1);var c=this._brushStart,p=this._displayables.sliderGroup,v=p.transformCoordToLocal(r,s),h=p.transformCoordToLocal(c.x,c.y),d=this._size;v[0]=Math.max(Math.min(d[0],v[0]),0),f.setShape({x:h[0],y:0,width:v[0]-h[0],height:d[1]})},e.prototype._dispatchZoomAction=function(r){var s=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?Cq:null,start:s[0],end:s[1]})},e.prototype._findCoordRect=function(){var r,s=Ay(this.dataZoomModel).infoList;if(!r&&s.length){var l=s[0].model.coordinateSystem;r=l.getRect&&l.getRect()}if(!r){var u=this.api.getWidth(),f=this.api.getHeight();r={x:u*0.2,y:f*0.2,width:u*0.6,height:f*0.6}}return r},e.type="dataZoom.slider",e}(Ey);function $F(n,e,r,s){var l=n.get("labelFormatter"),u=n.get("labelPrecision");if(u==null||u==="auto")u=r.valuePrecision;var f=r.value[e],c=f==null||isNaN(f)?"":nr(s)||yn(s)?s.getLabel({value:Math.round(f)}):isFinite(u)?Ye(f,u,!0):f+"";return ie(l)?l(f,c):K(l)?l.replace("{value}",c):c}function Tq(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function Eq(n){return n==="vertical"?"ns-resize":"ew-resize"}var QF=Aq;function JF(n){n.registerComponentModel(qF),n.registerComponentView(QF),Sv(n)}function tC(n){It(KF),It(JF)}var wq={get:function(n,e,r){var s=le((Iq[n]||{})[e]);return r?U(s)?s[s.length-1]:s:s}},Iq={color:{active:["#006edd","#e0ffff"],inactive:[X.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[0.3,1],inactive:[0,0]},colorLightness:{active:[0.9,0.5],inactive:[0,0]},colorAlpha:{active:[0.3,1],inactive:[0,0]},opacity:{active:[0.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Uy=wq;var ez=qt.mapVisual,Mq=qt.eachVisual,Lq=U,rC=I,Pq=Rt,Rq=Ze,Oq=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return e.prototype.init=function(r,s,l){this.mergeDefaultAndTheme(r,l)},e.prototype.optionUpdated=function(r,s){var l=this.option;!s&&mF(l,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(r){var s=this.stateList;r=se(r,this),this.controllerVisuals=Ob(this.option.controller,s,r),this.targetVisuals=Ob(this.option.target,s,r)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var r=this,s=this.option.seriesTargets;if(s){var l=[];return rC(s,function(p){if(p.seriesIndex!=null)l.push(p.seriesIndex);else if(p.seriesId!=null){var v;if(r.ecModel.eachSeries(function(h){if(h.id===p.seriesId)v=h}),v)l.push(v.componentIndex)}}),l}var u=this.option.seriesId,f=this.option.seriesIndex;if(f==null&&u==null)f="all";var c=fn(this.ecModel,"series",{index:f,id:u},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return W(c,function(p){return p.componentIndex})},e.prototype.eachTargetSeries=function(r,s){I(this.getTargetSeriesIndices(),function(l){var u=this.ecModel.getSeriesByIndex(l);if(u)r.call(s,u)},this)},e.prototype.isTargetSeries=function(r){var s=!1;return this.eachTargetSeries(function(l){l===r&&(s=!0)}),s},e.prototype.formatValueText=function(r,s,l){var u=this.option,f=u.precision,c=this.dataBound,p=u.formatter,v;if(l=l||["<",">"],U(r))r=r.slice(),v=!0;var h=s?r:v?[d(r[0]),d(r[1])]:d(r);if(K(p))return p.replace("{value}",v?h[0]:h).replace("{value2}",v?h[1]:h);else if(ie(p))return v?p(r[0],r[1]):p(r);if(v)if(r[0]===c[0])return l[0]+" "+h[1];else if(r[1]===c[1])return l[1]+" "+h[0];else return h[0]+" - "+h[1];else return h;function d(m){return m===c[0]?"min":m===c[1]?"max":(+m).toFixed(Math.min(f,20))}},e.prototype.resetExtent=function(){var r=this.option,s=Pq([r.min,r.max]);this._dataExtent=s},e.prototype.getDimension=function(r){var s=this,l=this.option.seriesTargets;if(l){var u=xu(l,function(f){return f.seriesIndex!=null&&f.seriesIndex===r||f.seriesId!=null&&f.seriesId===s.ecModel.getSeriesByIndex(r).id});if(u)return u.dimension}return this.option.dimension},e.prototype.getDataDimensionIndex=function(r){var s=r.hostModel.seriesIndex,l=this.getDimension(s);if(l!=null)return r.getDimensionIndex(l);var u=r.dimensions;for(var f=u.length-1;f>=0;f--){var c=u[f],p=r.getDimensionInfo(c);if(!p.isCalculationCoord)return p.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var r=this.ecModel,s=this.option,l={inRange:s.inRange,outOfRange:s.outOfRange},u=s.target||(s.target={}),f=s.controller||(s.controller={});Re(u,l),Re(f,l);var c=this.isCategory();p.call(this,u),p.call(this,f),v.call(this,u,"inRange","outOfRange"),h.call(this,f);function p(d){if(Lq(s.color)&&!d.inRange)d.inRange={color:s.color.slice().reverse()};d.inRange=d.inRange||{color:r.get("gradientColor")}}function v(d,m,g){var y=d[m],x=d[g];if(y&&!x)x=d[g]={},rC(y,function(S,D){if(!qt.isValidType(D))return;var b=Uy.get(D,"inactive",c);if(b!=null){if(x[D]=b,D==="color"&&!x.hasOwnProperty("opacity")&&!x.hasOwnProperty("colorAlpha"))x.opacity=[0,0]}})}function h(d){var m=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,g=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,y=this.get("inactiveColor"),x=this.getItemSymbol(),S=x||"roundRect";rC(this.stateList,function(D){var b=this.itemSize,C=d[D];if(!C)C=d[D]={color:c?y:[y]};if(C.symbol==null)C.symbol=m&&le(m)||(c?S:[S]);if(C.symbolSize==null)C.symbolSize=g&&le(g)||(c?b[0]:[b[0],b[0]]);C.symbol=ez(C.symbol,function(E){return E==="none"?S:E});var A=C.symbolSize;if(A!=null){var T=-1/0;Mq(A,function(E){E>T&&(T=E)}),C.symbolSize=ez(A,function(E){return Rq(E,[0,T],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(r){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(r){return null},e.prototype.getVisualMeta=function(r){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:X.color.transparent,borderColor:X.color.borderTint,contentColor:X.color.theme[0],inactiveColor:X.color.disabled,borderWidth:0,padding:X.size.m,textGap:10,precision:0,textStyle:{color:X.color.secondary}},e}(Fe),fc=Oq;var tz=[20,140],Nq=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.optionUpdated=function(r,s){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(l){l.mappingMethod="linear",l.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=tz[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=tz[1])},e.prototype._resetRange=function(){var r=this.getExtent(),s=this.option.range;if(!s||s.auto)r.auto=1,this.option.range=r;else if(U(s)){if(s[0]>s[1])s.reverse();s[0]=Math.max(s[0],r[0]),s[1]=Math.min(s[1],r[1])}},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),I(this.stateList,function(r){var s=this.option.controller[r].symbolSize;if(s&&s[0]!==s[1])s[0]=s[1]/3},this)},e.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},e.prototype.getSelected=function(){var r=this.getExtent(),s=Rt((this.get("range")||[]).slice());return s[0]>r[1]&&(s[0]=r[1]),s[1]>r[1]&&(s[1]=r[1]),s[0]<r[0]&&(s[0]=r[0]),s[1]<r[0]&&(s[1]=r[0]),s},e.prototype.getValueState=function(r){var s=this.option.range,l=this.getExtent(),u=te(this.option.unboundedRange,!0);return(u&&s[0]<=l[0]||s[0]<=r)&&(u&&s[1]>=l[1]||r<=s[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(r){var s=[];return this.eachTargetSeries(function(l){var u=[],f=l.getData();f.each(this.getDataDimensionIndex(f),function(c,p){r[0]<=c&&c<=r[1]&&u.push(p)},this),s.push({seriesId:l.id,dataIndex:u})},this),s},e.prototype.getVisualMeta=function(r){var s=rz(this,"outOfRange",this.getExtent()),l=rz(this,"inRange",this.option.range.slice()),u=[];function f(g,y){u.push({value:g,color:r(g,y)})}var c=0,p=0,v=l.length,h=s.length;for(;p<h&&(!l.length||s[p]<=l[0]);p++)if(s[p]<l[c])f(s[p],"outOfRange");for(var d=1;c<v;c++,d=0)d&&u.length&&f(l[c],"outOfRange"),f(l[c],"inRange");for(var d=1;p<h;p++)if(!l.length||l[l.length-1]<s[p]){if(d)u.length&&f(u[u.length-1].value,"outOfRange"),d=0;f(s[p],"outOfRange")}var m=u.length;return{stops:u,outerColors:[m?u[0].color:"transparent",m?u[m-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=yi(fc.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:X.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:X.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:X.color.shadow}}),e}(fc);function rz(n,e,r){if(r[0]===r[1])return r.slice();var s=200,l=(r[1]-r[0])/s,u=r[0],f=[];for(var c=0;c<=s&&u<r[1];c++)f.push(u),u+=l;return f.push(r[1]),f}var iz=Nq;var kq=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return e.prototype.init=function(r,s){this.ecModel=r,this.api=s},e.prototype.render=function(r,s,l,u){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,s,l,u)},e.prototype.renderBackground=function(r){var s=this.visualMapModel,l=mn(s.get("padding")||0),u=r.getBoundingRect();r.add(new Ee({z2:-1,silent:!0,shape:{x:u.x-l[3],y:u.y-l[0],width:u.width+l[3]+l[1],height:u.height+l[0]+l[2]},style:{fill:s.get("backgroundColor"),stroke:s.get("borderColor"),lineWidth:s.get("borderWidth")}}))},e.prototype.getControllerVisual=function(r,s,l){l=l||{};var u=l.forceState,f=this.visualMapModel,c={};if(s==="color"){var p=f.get("contentColor");c.color=p}function v(g){return c[g]}function h(g,y){c[g]=y}var d=f.controllerVisuals[u||f.getValueState(r)],m=qt.prepareVisualTypes(d);return I(m,function(g){var y=d[g];if(l.convertOpacityToAlpha&&g==="opacity")g="colorAlpha",y=d.__alphaForOpacity;if(qt.dependsOn(g,s))y&&y.applyVisual(r,v,h)}),c[s]},e.prototype.positionGroup=function(r){var s=this.visualMapModel,l=this.api,u=Tt(s,l).refContainer;nm(r,s.getBoxLayoutParams(),u)},e.prototype.doRender=function(r,s,l,u){},e.type="visualMap",e}(ft),Gy=kq;var az=[["left","right","width"],["top","bottom","height"]];function Hy(n,e,r){var s=n.option,l=s.align;if(l!=null&&l!=="auto")return l;var u={width:e.getWidth(),height:e.getHeight()},f=s.orient==="horizontal"?1:0,c=az[f],p=[0,null,10],v={};for(var h=0;h<3;h++)v[az[1-f][h]]=p[h],v[c[h]]=h===2?r[0]:s[c[h]];var d=[["x","width",3],["y","height",0]][f],m=ht(v,u,s.padding);return c[(m.margin[d[2]]||0)+m[d[0]]+m[d[1]]*0.5<u[d[1]]*0.5?0:1]}function cc(n,e){return I(n||[],function(r){if(r.dataIndex!=null)r.dataIndexInside=r.dataIndex,r.dataIndex=null;r.highlightKey="visualMap"+(e?e.componentIndex:"")}),n}var On=Ze,Bq=I,{min:oz,max:iC}=Math,Fq=12,zq=6,Vq=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return e.prototype.init=function(r,s){n.prototype.init.call(this,r,s),this._hoverLinkFromSeriesMouseOver=se(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=se(this._hideIndicator,this)},e.prototype.doRender=function(r,s,l,u){if(!u||u.type!=="selectDataRange"||u.from!==this.uid)this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,s=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(s);var l=r.get("text");this._renderEndsText(s,l,0),this._renderEndsText(s,l,1),this._updateView(!0),this.renderBackground(s),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(s)},e.prototype._renderEndsText=function(r,s,l){if(!s)return;var u=s[1-l];u=u!=null?u+"":"";var f=this.visualMapModel,c=f.get("textGap"),p=f.itemSize,v=this._shapes.mainGroup,h=this._applyTransform([p[0]/2,l===0?-c:p[1]+c],v),d=this._applyTransform(l===0?"bottom":"top",v),m=this._orient,g=this.visualMapModel.textStyleModel;this.group.add(new Ve({style:ut(g,{x:h[0],y:h[1],verticalAlign:g.get("verticalAlign")||(m==="horizontal"?"middle":d),align:g.get("align")||(m==="horizontal"?d:"center"),text:u})}))},e.prototype._renderBar=function(r){var s=this.visualMapModel,l=this._shapes,u=s.itemSize,f=this._orient,c=this._useHandle,p=Hy(s,this.api,u),v=l.mainGroup=this._createBarGroup(p),h=new ve;v.add(h),h.add(l.outOfRange=sz()),h.add(l.inRange=sz(null,c?uz(this._orient):null,se(this._dragHandle,this,"all",!1),se(this._dragHandle,this,"all",!0))),h.setClipPath(new Ee({shape:{x:0,y:0,width:u[0],height:u[1],r:3}}));var d=s.textStyleModel.getTextRect("国"),m=iC(d.width,d.height);if(c)l.handleThumbs=[],l.handleLabels=[],l.handleLabelPoints=[],this._createHandle(s,v,0,u,m,f),this._createHandle(s,v,1,u,m,f);this._createIndicator(s,v,u,m,f),r.add(v)},e.prototype._createHandle=function(r,s,l,u,f,c){var p=se(this._dragHandle,this,l,!1),v=se(this._dragHandle,this,l,!0),h=fi(r.get("handleSize"),u[0]),d=Dt(r.get("handleIcon"),-h/2,-h/2,h,h,null,!0),m=uz(this._orient);d.attr({cursor:m,draggable:!0,drift:p,ondragend:v,onmousemove:function(D){Ai(D.event)}}),d.x=u[0]/2,d.useStyle(r.getModel("handleStyle").getItemStyle()),d.setStyle({strokeNoScale:!0,strokeFirst:!0}),d.style.lineWidth*=2,d.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),io(d,!0),s.add(d);var g=this.visualMapModel.textStyleModel,y=new Ve({cursor:m,draggable:!0,drift:p,onmousemove:function(D){Ai(D.event)},ondragend:v,style:ut(g,{x:0,y:0,text:""})});y.ensureState("blur").style={opacity:0.1},y.stateTransition={duration:200},this.group.add(y);var x=[h,0],S=this._shapes;S.handleThumbs[l]=d,S.handleLabelPoints[l]=x,S.handleLabels[l]=y},e.prototype._createIndicator=function(r,s,l,u,f){var c=fi(r.get("indicatorSize"),l[0]),p=Dt(r.get("indicatorIcon"),-c/2,-c/2,c,c,null,!0);p.attr({cursor:"move",invisible:!0,silent:!0,x:l[0]/2});var v=r.getModel("indicatorStyle").getItemStyle();if(p instanceof Bt){var h=p.style;p.useStyle(V({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},v))}else p.useStyle(v);s.add(p);var d=this.visualMapModel.textStyleModel,m=new Ve({silent:!0,invisible:!0,style:ut(d,{x:0,y:0,text:""})});this.group.add(m);var g=[(f==="horizontal"?u/2:zq)+l[0]/2,0],y=this._shapes;y.indicator=p,y.indicatorLabel=m,y.indicatorLabelPoint=g,this._firstShowIndicator=!0},e.prototype._dragHandle=function(r,s,l,u){if(!this._useHandle)return;if(this._dragging=!s,!s){var f=this._applyTransform([l,u],this._shapes.mainGroup,!0);this._updateInterval(r,f[1]),this._hideIndicator(),this._updateView()}if(s===!this.visualMapModel.get("realtime"))this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()});if(s)!this._hovering&&this._clearHoverLinkToSeries();else if(lz(this.visualMapModel))this._doHoverLinkToSeries(this._handleEnds[r],!1)},e.prototype._resetInterval=function(){var r=this.visualMapModel,s=this._dataInterval=r.getSelected(),l=r.getExtent(),u=[0,r.itemSize[1]];this._handleEnds=[On(s[0],l,u,!0),On(s[1],l,u,!0)]},e.prototype._updateInterval=function(r,s){s=s||0;var l=this.visualMapModel,u=this._handleEnds,f=[0,l.itemSize[1]];Wi(s,u,f,r,0);var c=l.getExtent();this._dataInterval=[On(u[0],f,c,!0),On(u[1],f,c,!0)]},e.prototype._updateView=function(r){var s=this.visualMapModel,l=s.getExtent(),u=this._shapes,f=[0,s.itemSize[1]],c=r?f:this._handleEnds,p=this._createBarVisual(this._dataInterval,l,c,"inRange"),v=this._createBarVisual(l,l,f,"outOfRange");u.inRange.setStyle({fill:p.barColor}).setShape("points",p.barPoints),u.outOfRange.setStyle({fill:v.barColor}).setShape("points",v.barPoints),this._updateHandle(c,p)},e.prototype._createBarVisual=function(r,s,l,u){var f={forceState:u,convertOpacityToAlpha:!0},c=this._makeColorGradient(r,f),p=[this.getControllerVisual(r[0],"symbolSize",f),this.getControllerVisual(r[1],"symbolSize",f)],v=this._createBarPoints(l,p);return{barColor:new os(0,0,0,1,c),barPoints:v,handlesColor:[c[0].color,c[c.length-1].color]}},e.prototype._makeColorGradient=function(r,s){var l=100,u=[],f=(r[1]-r[0])/l;u.push({color:this.getControllerVisual(r[0],"color",s),offset:0});for(var c=1;c<l;c++){var p=r[0]+f*c;if(p>r[1])break;u.push({color:this.getControllerVisual(p,"color",s),offset:c/l})}return u.push({color:this.getControllerVisual(r[1],"color",s),offset:1}),u},e.prototype._createBarPoints=function(r,s){var l=this.visualMapModel.itemSize;return[[l[0]-s[0],r[0]],[l[0],r[0]],[l[0],r[1]],[l[0]-s[1],r[1]]]},e.prototype._createBarGroup=function(r){var s=this._orient,l=this.visualMapModel.get("inverse");return new ve(s==="horizontal"&&!l?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:s==="horizontal"&&l?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:s==="vertical"&&!l?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},e.prototype._updateHandle=function(r,s){if(!this._useHandle)return;var l=this._shapes,u=this.visualMapModel,{handleThumbs:f,handleLabels:c}=l,p=u.itemSize,v=u.getExtent(),h=this._applyTransform("left",l.mainGroup);Bq([0,1],function(d){var m=f[d];m.setStyle("fill",s.handlesColor[d]),m.y=r[d];var g=On(r[d],[0,p[1]],v,!0),y=this.getControllerVisual(g,"symbolSize");m.scaleX=m.scaleY=y/p[0],m.x=p[0]-y/2;var x=$r(l.handleLabelPoints[d],so(m,this.group));if(this._orient==="horizontal"){var S=h==="left"||h==="top"?(p[0]-y)/2:(p[0]-y)/-2;x[1]+=S}c[d].setStyle({x:x[0],y:x[1],text:u.formatValueText(this._dataInterval[d]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",l.mainGroup):"center"})},this)},e.prototype._showIndicator=function(r,s,l,u){var f=this.visualMapModel,c=f.getExtent(),p=f.itemSize,v=[0,p[1]],h=this._shapes,d=h.indicator;if(!d)return;d.attr("invisible",!1);var m={convertOpacityToAlpha:!0},g=this.getControllerVisual(r,"color",m),y=this.getControllerVisual(r,"symbolSize"),x=On(r,c,v,!0),S=p[0]-y/2,D={x:d.x,y:d.y};d.y=x,d.x=S;var b=$r(h.indicatorLabelPoint,so(d,this.group)),C=h.indicatorLabel;C.attr("invisible",!1);var A=this._applyTransform("left",h.mainGroup),T=this._orient,E=T==="horizontal";C.setStyle({text:(l?l:"")+f.formatValueText(s),verticalAlign:E?A:"middle",align:E?"center":A});var w={x:S,y:x,style:{fill:g}},L={style:{x:b[0],y:b[1]}};if(f.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};d.x=D.x,d.y=D.y,d.animateTo(w,M),C.animateTo(L,M)}else d.attr(w),C.attr(L);this._firstShowIndicator=!1;var P=this._shapes.handleLabels;if(P)for(var R=0;R<P.length;R++)this.api.enterBlur(P[R])},e.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(s){if(r._hovering=!0,!r._dragging){var l=r.visualMapModel.itemSize,u=r._applyTransform([s.offsetX,s.offsetY],r._shapes.mainGroup,!0,!0);u[1]=oz(iC(0,u[1]),l[1]),r._doHoverLinkToSeries(u[1],0<=u[0]&&u[0]<=l[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();if(this.visualMapModel.option.hoverLink)r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this);else this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(r,s){var l=this.visualMapModel,u=l.itemSize;if(!l.option.hoverLink)return;var f=[0,u[1]],c=l.getExtent();r=oz(iC(f[0],r),f[1]);var p=Uq(l,c,f),v=[r-p,r+p],h=On(r,f,c,!0),d=[On(v[0],f,c,!0),On(v[1],f,c,!0)];if(v[0]<f[0]&&(d[0]=-1/0),v[1]>f[1]&&(d[1]=1/0),s)if(d[0]===-1/0)this._showIndicator(h,d[1],"< ",p);else if(d[1]===1/0)this._showIndicator(h,d[0],"> ",p);else this._showIndicator(h,h,"≈ ",p);var m=this._hoverLinkDataIndices,g=[];if(s||lz(l))g=this._hoverLinkDataIndices=l.findTargetDataIndices(d);var y=XT(m,g);this._dispatchHighDown("downplay",cc(y[0],l)),this._dispatchHighDown("highlight",cc(y[1],l))},e.prototype._hoverLinkFromSeriesMouseOver=function(r){var s;if(Eo(r.target,function(p){var v=ye(p);if(v.dataIndex!=null)return s=v,!0},!0),!s)return;var l=this.ecModel.getSeriesByIndex(s.seriesIndex),u=this.visualMapModel;if(!u.isTargetSeries(l))return;var f=l.getData(s.dataType),c=f.getStore().get(u.getDataDimensionIndex(f),s.dataIndex);if(!isNaN(c))this._showIndicator(c,c)},e.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var s=this._shapes.handleLabels;if(s)for(var l=0;l<s.length;l++)this.api.leaveBlur(s[l])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",cc(r,this.visualMapModel)),r.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(r,s,l,u){var f=so(s,u?null:this.group);return U(r)?$r(r,f,l):Ml(r,f,l)},e.prototype._dispatchHighDown=function(r,s){s&&s.length&&this.api.dispatchAction({type:r,batch:s})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(Gy);function sz(n,e,r,s){return new rr({shape:{points:n},draggable:!!r,cursor:e,drift:r,onmousemove:function(l){Ai(l.event)},ondragend:s})}function Uq(n,e,r){var s=Fq/2,l=n.get("hoverLinkDataSize");if(l)s=On(l,e,r,!0)/2;return s}function lz(n){var e=n.get("hoverLinkOnHandle");return!!(e==null?n.get("realtime"):e)}function uz(n){return n==="vertical"?"ns-resize":"ew-resize"}var fz=Vq;var cz={type:"selectDataRange",event:"dataRangeSelected",update:"update"},pz=function(n,e){e.eachComponent({mainType:"visualMap",query:n},function(r){r.setSelected(n.selected)})};var vz=[{createOnAllSeries:!0,reset:function(n,e){var r=[];return e.eachComponent("visualMap",function(s){var l=n.pipelineContext;if(!s.isTargetSeries(n)||l&&l.large)return;r.push(gF(s.stateList,s.targetVisuals,se(s.getValueState,s),s.getDataDimensionIndex(n.getData())))}),r}},{createOnAllSeries:!0,reset:function(n,e){var r=n.getData(),s=[];e.eachComponent("visualMap",function(l){if(l.isTargetSeries(n)){var u=l.getVisualMeta(se(Gq,null,n,l))||{stops:[],outerColors:[]},f=l.getDataDimensionIndex(r);if(f>=0)u.dimension=f,s.push(u)}}),n.getData().setVisual("visualMeta",s)}}];function Gq(n,e,r,s){var l=e.targetVisuals[s],u=qt.prepareVisualTypes(l),f={color:wn(n.getData(),"color")};for(var c=0,p=u.length;c<p;c++){var v=u[c],h=l[v==="opacity"?"__alphaForOpacity":v];h&&h.applyVisual(r,d,m)}return f.color;function d(g){return f[g]}function m(g,y){f[g]=y}}var hz=I;function aC(n){var e=n&&n.visualMap;if(!U(e))e=e?[e]:[];hz(e,function(r){if(!r)return;if(pc(r,"splitList")&&!pc(r,"pieces"))r.pieces=r.splitList,delete r.splitList;var s=r.pieces;if(s&&U(s))hz(s,function(u){if(ue(u)){if(pc(u,"start")&&!pc(u,"min"))u.min=u.start;if(pc(u,"end")&&!pc(u,"max"))u.max=u.end}});if(!1)var l})}function pc(n,e){return n&&n.hasOwnProperty&&n.hasOwnProperty(e)}var dz=!1;function wv(n){if(dz)return;dz=!0,n.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(cz,pz),I(vz,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(aC)}function mz(n){n.registerComponentModel(iz),n.registerComponentView(fz),wv(n)}var Hq=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r._pieceList=[],r}return e.prototype.optionUpdated=function(r,s){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var l=this._mode=this._determineMode();this._pieceList=[],Wq[this._mode].call(this,this._pieceList),this._resetSelected(r,s);var u=this.option.categories;this.resetVisual(function(f,c){if(l==="categories")f.mappingMethod="category",f.categories=le(u);else f.dataExtent=this.getExtent(),f.mappingMethod="piecewise",f.pieceList=W(this._pieceList,function(p){if(p=le(p),c!=="inRange")p.visual=null;return p})})},e.prototype.completeVisualOption=function(){var r=this.option,s={},l=qt.listVisualTypes(),u=this.isCategory();I(r.pieces,function(c){I(l,function(p){if(c.hasOwnProperty(p))s[p]=1})}),I(s,function(c,p){var v=!1;I(this.stateList,function(h){v=v||f(r,h,p)||f(r.target,h,p)},this),!v&&I(this.stateList,function(h){(r[h]||(r[h]={}))[p]=Uy.get(p,h==="inRange"?"active":"inactive",u)})},this);function f(c,p,v){return c&&c[p]&&c[p].hasOwnProperty(v)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(r,s){var l=this.option,u=this._pieceList,f=(s?l:r).selected||{};if(l.selected=f,I(u,function(p,v){var h=this.getSelectedMapKey(p);if(!f.hasOwnProperty(h))f[h]=!0},this),l.selectedMode==="single"){var c=!1;I(u,function(p,v){var h=this.getSelectedMapKey(p);if(f[h])c?f[h]=!1:c=!0},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(r){this.option.selected=le(r)},e.prototype.getValueState=function(r){var s=qt.findPieceIndex(r,this._pieceList);return s!=null?this.option.selected[this.getSelectedMapKey(this._pieceList[s])]?"inRange":"outOfRange":"outOfRange"},e.prototype.findTargetDataIndices=function(r){var s=[],l=this._pieceList;return this.eachTargetSeries(function(u){var f=[],c=u.getData();c.each(this.getDataDimensionIndex(c),function(p,v){var h=qt.findPieceIndex(p,l);h===r&&f.push(v)},this),s.push({seriesId:u.id,dataIndex:f})},this),s},e.prototype.getRepresentValue=function(r){var s;if(this.isCategory())s=r.value;else if(r.value!=null)s=r.value;else{var l=r.interval||[];s=l[0]===-1/0&&l[1]===1/0?0:(l[0]+l[1])/2}return s},e.prototype.getVisualMeta=function(r){if(this.isCategory())return;var s=[],l=["",""],u=this;function f(h,d){var m=u.getRepresentValue({interval:h});if(!d)d=u.getValueState(m);var g=r(m,d);if(h[0]===-1/0)l[0]=g;else if(h[1]===1/0)l[1]=g;else s.push({value:h[0],color:g},{value:h[1],color:g})}var c=this._pieceList.slice();if(!c.length)c.push({interval:[-1/0,1/0]});else{var p=c[0].interval[0];p!==-1/0&&c.unshift({interval:[-1/0,p]}),p=c[c.length-1].interval[1],p!==1/0&&c.push({interval:[p,1/0]})}var v=-1/0;return I(c,function(h){var d=h.interval;if(d)d[0]>v&&f([v,d[0]],"outOfRange"),f(d.slice()),v=d[1]},this),{stops:s,outerColors:l}},e.type="visualMap.piecewise",e.defaultOption=yi(fc.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(fc),Wq={splitNumber:function(n){var e=this.option,r=Math.min(e.precision,20),s=this.getExtent(),l=e.splitNumber;l=Math.max(parseInt(l,10),1),e.splitNumber=l;var u=(s[1]-s[0])/l;while(+u.toFixed(r)!==u&&r<5)r++;if(e.precision=r,u=+u.toFixed(r),e.minOpen)n.push({interval:[-1/0,s[0]],close:[0,0]});for(var f=0,c=s[0];f<l;c+=u,f++){var p=f===l-1?s[1]:c+u;n.push({interval:[c,p],close:[1,1]})}if(e.maxOpen)n.push({interval:[s[1],1/0],close:[0,0]});mx(n),I(n,function(v,h){v.index=h,v.text=this.formatValueText(v.interval)},this)},categories:function(n){var e=this.option;I(e.categories,function(r){n.push({text:this.formatValueText(r,!0),value:r})},this),gz(e,n)},pieces:function(n){var e=this.option;I(e.pieces,function(r,s){if(!ue(r))r={value:r};var l={text:"",index:s};if(r.label!=null)l.text=r.label;if(r.hasOwnProperty("value")){var u=l.value=r.value;l.interval=[u,u],l.close=[1,1]}else{var f=l.interval=[],c=l.close=[0,0],p=[1,0,1],v=[-1/0,1/0],h=[];for(var d=0;d<2;d++){var m=[["gte","gt","min"],["lte","lt","max"]][d];for(var g=0;g<3&&f[d]==null;g++)f[d]=r[m[g]],c[d]=p[g],h[d]=g===2;f[d]==null&&(f[d]=v[d])}if(h[0]&&f[1]===1/0&&(c[0]=0),h[1]&&f[0]===-1/0&&(c[1]=0),f[0]===f[1]&&c[0]&&c[1])l.value=f[0]}l.visual=qt.retrieveVisuals(r),n.push(l)},this),gz(e,n),mx(n),I(n,function(r){var s=r.close,l=[["<","≤"][s[1]],[">","≥"][s[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,l)},this)}};function gz(n,e){var r=n.inverse;if(n.orient==="vertical"?!r:r)e.reverse()}var yz=Hq;var Yq=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.doRender=function(){var r=this.group;r.removeAll();var s=this.visualMapModel,l=s.get("textGap"),u=s.textStyleModel,f=this._getItemAlign(),c=s.itemSize,p=this._getViewData(),v=p.endsText,h=Ut(s.get("showLabel",!0),!v),d=!s.get("selectedMode");v&&this._renderEndsText(r,v[0],c,h,f),I(p.viewPieceList,function(m){var g=m.piece,y=new ve;y.onclick=se(this._onItemClick,this,g),this._enableHoverLink(y,m.indexInModelPieceList);var x=s.getRepresentValue(g);if(this._createItemSymbol(y,x,[0,0,c[0],c[1]],d),h){var S=this.visualMapModel.getValueState(x),D=u.get("align")||f;y.add(new Ve({style:ut(u,{x:D==="right"?-l:c[0]+l,y:c[1]/2,text:g.text,verticalAlign:u.get("verticalAlign")||"middle",align:D,opacity:te(u.get("opacity"),S==="outOfRange"?0.5:1)}),silent:d}))}r.add(y)},this),v&&this._renderEndsText(r,v[1],c,h,f),vo(s.get("orient"),r,s.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},e.prototype._enableHoverLink=function(r,s){var l=this;r.on("mouseover",function(){return u("highlight")}).on("mouseout",function(){return u("downplay")});var u=function(f){var c=l.visualMapModel;c.option.hoverLink&&l.api.dispatchAction({type:f,batch:cc(c.findTargetDataIndices(s),c)})}},e.prototype._getItemAlign=function(){var r=this.visualMapModel,s=r.option;if(s.orient==="vertical")return Hy(r,this.api,r.itemSize);else{var l=s.align;if(!l||l==="auto")l="left";return l}},e.prototype._renderEndsText=function(r,s,l,u,f){if(!s)return;var c=new ve,p=this.visualMapModel.textStyleModel;c.add(new Ve({style:ut(p,{x:u?f==="right"?l[0]:0:l[0]/2,y:l[1]/2,verticalAlign:"middle",align:u?f:"center",text:s})})),r.add(c)},e.prototype._getViewData=function(){var r=this.visualMapModel,s=W(r.getPieceList(),function(c,p){return{piece:c,indexInModelPieceList:p}}),l=r.get("text"),u=r.get("orient"),f=r.get("inverse");if(u==="horizontal"?f:!f)s.reverse();else if(l)l=l.slice().reverse();return{viewPieceList:s,endsText:l}},e.prototype._createItemSymbol=function(r,s,l,u){var f=Dt(this.getControllerVisual(s,"symbol"),l[0],l[1],l[2],l[3],this.getControllerVisual(s,"color"));f.silent=u,r.add(f)},e.prototype._onItemClick=function(r){var s=this.visualMapModel,l=s.option,u=l.selectedMode;if(!u)return;var f=le(l.selected),c=s.getSelectedMapKey(r);if(u==="single"||u===!0)f[c]=!0,I(f,function(p,v){f[v]=v===c});else f[c]=!f[c];this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:f})},e.type="visualMap.piecewise",e}(Gy),xz=Yq;function _z(n){n.registerComponentModel(yz),n.registerComponentView(xz),wv(n)}function nC(n){It(mz),It(_z)}var Xq={label:{enabled:!0},decal:{show:!1}},Sz=he(),Dz=he(),bz=ts(Zq);function Zq(n,e){var r=n.getModel("aria");if(!r.get("enabled"))return;var s=Dz(n).scope||(Dz(n).scope={}),l=le(Xq);Re(l.label,n.getLocaleModel().get("aria"),!1),Re(r.option,l,!1),u(),f();function u(){var h=r.getModel("decal"),d=h.get("show");if(d){var m=re();n.eachSeries(function(g){if(!g.isColorBySeries())Sz(g).scope=m.get(g.type)||m.set(g.type,{})}),n.eachSeries(function(g){if(ie(g.enableAriaDecal)){g.enableAriaDecal();return}var y=g.getData();if(!g.isColorBySeries()){var x=g.getRawData(),S={},D=Sz(g).scope;y.each(function(E){var w=y.getRawIndex(E);S[w]=E});var b=x.count();x.each(function(E){var w=S[E],L=x.getName(E)||E+"",M=_p(g.ecModel,L,D,b),P=y.getItemVisual(w,"decal");y.setItemVisual(w,"decal",T(P,M))})}else{var C=_p(g.ecModel,g.name,s,n.getSeriesCount()),A=y.getVisual("decal");y.setVisual("decal",T(A,C))}function T(E,w){var L=E?V(V({},w),E):w;return L.dirty=!0,L}})}}function f(){var h=e.getZr().dom;if(!h)return;var d=n.getLocaleModel().get("aria"),m=r.getModel("label");if(m.option=pe(m.option,d),!m.get("enabled"))return;if(h.setAttribute("role","img"),m.get("description")){h.setAttribute("aria-label",m.get("description"));return}var g=n.getSeriesCount(),y=m.get(["data","maxCount"])||10,x=m.get(["series","maxCount"])||10,S=Math.min(g,x),D;if(g<1)return;else{var b=p();if(b){var C=m.get(["general","withTitle"]);D=c(C,{title:b})}else D=m.get(["general","withoutTitle"]);var A=[],T=g>1?m.get(["series","multiple","prefix"]):m.get(["series","single","prefix"]);D+=c(T,{seriesCount:g}),n.eachSeries(function(M,P){if(P<S){var R=void 0,N=M.get("name"),O=N?"withName":"withoutName";R=g>1?m.get(["series","multiple",O]):m.get(["series","single",O]),R=c(R,{seriesId:M.seriesIndex,seriesName:M.get("name"),seriesType:v(M.subType)});var B=M.getData();if(B.count()>y){var F=m.get(["data","partialData"]);R+=c(F,{displayCnt:y})}else R+=m.get(["data","allData"]);var z=m.get(["data","separator","middle"]),H=m.get(["data","separator","end"]),G=m.get(["data","excludeDimensionId"]),Z=[];for(var Q=0;Q<B.count();Q++)if(Q<y){var q=B.getName(Q),ae=!G?B.getValues(Q):Ke(B.getValues(Q),function(ne,de){return be(G,de)===-1}),ce=m.get(["data",q?"withName":"withoutName"]);Z.push(c(ce,{name:q,value:ae.join(z)}))}R+=Z.join(z)+H,A.push(R)}});var E=m.getModel(["series","multiple","separator"]),w=E.get("middle"),L=E.get("end");D+=A.join(w)+L,h.setAttribute("aria-label",D)}}function c(h,d){if(!K(h))return h;var m=h;return I(d,function(g,y){m=m.replace(new RegExp("\\{\\s*"+y+"\\s*\\}","g"),g)}),m}function p(){var h=n.get("title");if(h&&h.length)h=h[0];return h&&h.text}function v(h){var d=n.getLocaleModel().get(["series","typeNames"]);return d[h]||d.chart}}function oC(n){if(!n||!n.aria)return;var e=n.aria;if(e.show!=null)e.enabled=e.show;e.label=e.label||{},I(["description","general","series","data"],function(r){if(e[r]!=null)e.label[r]=e[r]})}function sC(n){n.registerPreprocessor(oC),n.registerVisual(n.PRIORITY.VISUAL.ARIA,bz)}var Cz={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Kq=function(){function n(e){var r=this._condVal=K(e)?new RegExp(e):eA(e)?e:null;if(r==null){var s="";rt(s)}}return n.prototype.evaluate=function(e){var r=typeof e;return K(r)?this._condVal.test(e):Te(r)?this._condVal.test(e+""):!1},n}(),qq=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),jq=function(){function n(){}return n.prototype.evaluate=function(){var e=this.children;for(var r=0;r<e.length;r++)if(!e[r].evaluate())return!1;return!0},n}(),$q=function(){function n(){}return n.prototype.evaluate=function(){var e=this.children;for(var r=0;r<e.length;r++)if(e[r].evaluate())return!0;return!1},n}(),Qq=function(){function n(){}return n.prototype.evaluate=function(){return!this.child.evaluate()},n}(),Jq=function(){function n(){}return n.prototype.evaluate=function(){var e=!!this.valueParser,r=this.getValue,s=r(this.valueGetterParam),l=e?this.valueParser(s):null;for(var u=0;u<this.subCondList.length;u++)if(!this.subCondList[u].evaluate(e?l:s))return!1;return!0},n}();function lC(n,e){if(n===!0||n===!1){var r=new qq;return r.value=n,r}var s="";if(!Tz(n))rt(s);if(n.and)return Az("and",n,e);else if(n.or)return Az("or",n,e);else if(n.not)return ej(n,e);return tj(n,e)}function Az(n,e,r){var s=e[n],l="";if(!U(s))rt(l);if(!s.length)rt(l);var u=n==="and"?new jq:new $q;if(u.children=W(s,function(f){return lC(f,r)}),!u.children.length)rt(l);return u}function ej(n,e){var r=n.not,s="";if(!Tz(r))rt(s);var l=new Qq;if(l.child=lC(r,e),!l.child)rt(s);return l}function tj(n,e){var r="",s=e.prepareGetValue(n),l=[],u=Me(n),f=n.parser,c=f?Ed(f):null;for(var p=0;p<u.length;p++){var v=u[p];if(v==="parser"||e.valueGetterAttrMap.get(v))continue;var h=bt(Cz,v)?Cz[v]:v,d=n[v],m=c?c(d):d,g=Aw(h,m)||h==="reg"&&new Kq(m);if(!g)rt(r);l.push(g)}if(!l.length)rt(r);var y=new Jq;return y.valueGetterParam=s,y.valueParser=c,y.getValue=e.getValue,y.subCondList=l,y}function Tz(n){return ue(n)&&!Qt(n)}var rj=function(){function n(e,r){this._cond=lC(e,r)}return n.prototype.evaluate=function(){return this._cond.evaluate()},n}();function Ez(n,e){return new rj(n,e)}var wz={type:"echarts:filter",transform:function(n){var e=n.upstream,r,s=Ez(n.config,{valueGetterAttrMap:re({dimension:!0}),prepareGetValue:function(c){var p="",v=c.dimension;if(!bt(c,"dimension"))rt(p);var h=e.getDimensionInfo(v);if(!h)rt(p);return{dimIdx:h.index}},getValue:function(c){return e.retrieveValueFromItem(r,c.dimIdx)}}),l=[];for(var u=0,f=e.count();u<f;u++)if(r=e.getRawDataItem(u),s.evaluate())l.push(r);return{data:l}}};var Iz={type:"echarts:sort",transform:function(n){var{upstream:e,config:r}=n,s="",l=nt(r);if(!l.length)rt(s);var u=[];I(l,function(h){var{dimension:d,order:m,parser:g,incomparable:y}=h;if(d==null)rt(s);if(m!=="asc"&&m!=="desc")rt(s);if(y&&y!=="min"&&y!=="max"){var x="";rt(x)}if(m!=="asc"&&m!=="desc"){var S="";rt(S)}var D=e.getDimensionInfo(d);if(!D)rt(s);var b=g?Ed(g):null;if(g&&!b)rt(s);u.push({dimIdx:D.index,parser:b,comparator:new wd(m,y)})});var f=e.sourceFormat;if(f!==Ht&&f!==Tr)rt(s);var c=[];for(var p=0,v=e.count();p<v;p++)c.push(e.getRawDataItem(p));return c.sort(function(h,d){for(var m=0;m<u.length;m++){var g=u[m],y=e.retrieveValueFromItem(h,g.dimIdx),x=e.retrieveValueFromItem(d,g.dimIdx);if(g.parser)y=g.parser(y),x=g.parser(x);var S=g.comparator.evaluate(y,x);if(S!==0)return S}return 0}),{data:c}}};function uC(n){n.registerTransform(wz),n.registerTransform(Iz)}var ij=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,s,l){n.prototype.init.call(this,r,s,l),this._sourceManager=new lm(this),F_(this)},e.prototype.mergeOption=function(r,s){n.prototype.mergeOption.call(this,r,s),F_(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:jr},e}(Fe);var aj=function(n){k(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e}(ft);function fC(n){n.registerComponentModel(ij),n.registerComponentView(aj)}function nj(n){if(n){var e=[];for(var r=0;r<n.length;r++)e.push(n[r].slice());return e}}function oj(n,e){var r=n.label,s=e&&e.getTextGuideLine();return{dataIndex:n.dataIndex,dataType:n.dataType,seriesIndex:n.seriesModel.seriesIndex,text:n.label.style.text,rect:n.hostRect,labelRect:n.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:nj(s&&s.shape.points)}}var Mz=["align","verticalAlign","width","height","fontSize"],ai=new qi,cC=he(),sj=he();function Wy(n,e,r){for(var s=0;s<r.length;s++){var l=r[s];if(e[l]!=null)n[l]=e[l]}}var Yy=["x","y","rotation"],lj=function(){function n(){this._labelList=[],this._chartViewList=[]}return n.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},n.prototype._addLabel=function(e,r,s,l,u){var{style:f,__hostTarget:c}=l,p=c.textConfig||{},v=l.getComputedTransform(),h=l.getBoundingRect().plain();if(De.applyTransform(h,h,v),v)ai.setLocalTransform(v);else ai.x=ai.y=ai.rotation=ai.originX=ai.originY=0,ai.scaleX=ai.scaleY=1;ai.rotation=Lr(ai.rotation);var d=l.__hostTarget,m;if(d){m=d.getBoundingRect().plain();var g=d.getComputedTransform();De.applyTransform(m,m,g)}var y=m&&d.getTextGuideLine();this._labelList.push({label:l,labelLine:y,seriesModel:s,dataIndex:e,dataType:r,layoutOptionOrCb:u,layoutOption:null,rect:h,hostRect:m,priority:m?m.width*m.height:0,defaultAttr:{ignore:l.ignore,labelGuideIgnore:y&&y.ignore,x:ai.x,y:ai.y,scaleX:ai.scaleX,scaleY:ai.scaleY,rotation:ai.rotation,style:{x:f.x,y:f.y,align:f.align,verticalAlign:f.verticalAlign,width:f.width,height:f.height,fontSize:f.fontSize},cursor:l.cursor,attachedPos:p.position,attachedRot:p.rotation}})},n.prototype.addLabelsOfSeries=function(e){var r=this;this._chartViewList.push(e);var s=e.__model,l=s.get("labelLayout");if(!(ie(l)||Me(l).length))return;e.group.traverse(function(u){if(u.ignore)return!0;var f=u.getTextContent(),c=ye(u);if(f&&!f.disableLabelLayout)r._addLabel(c.dataIndex,c.dataType,s,f,l)})},n.prototype.updateLayoutConfig=function(e){var r=e.getWidth(),s=e.getHeight();function l(C,A){return function(){gS(C,A)}}for(var u=0;u<this._labelList.length;u++){var f=this._labelList[u],c=f.label,p=c.__hostTarget,v=f.defaultAttr,h=void 0;if(ie(f.layoutOptionOrCb))h=f.layoutOptionOrCb(oj(f,p));else h=f.layoutOptionOrCb;h=h||{},f.layoutOption=h;var d=Math.PI/180;if(p)p.setTextConfig({local:!1,position:h.x!=null||h.y!=null?null:v.attachedPos,rotation:h.rotate!=null?h.rotate*d:v.attachedRot,offset:[h.dx||0,h.dy||0]});var m=!1;if(h.x!=null)c.x=ee(h.x,r),c.setStyle("x",0),m=!0;else c.x=v.x,c.setStyle("x",v.style.x);if(h.y!=null)c.y=ee(h.y,s),c.setStyle("y",0),m=!0;else c.y=v.y,c.setStyle("y",v.style.y);if(h.labelLinePoints){var g=p.getTextGuideLine();if(g)g.setShape({points:h.labelLinePoints}),m=!1}var y=cC(c);y.needsUpdateLabelLine=m,c.rotation=h.rotate!=null?h.rotate*d:v.rotation,c.scaleX=v.scaleX,c.scaleY=v.scaleY;for(var x=0;x<Mz.length;x++){var S=Mz[x];c.setStyle(S,h[S]!=null?h[S]:v.style[S])}if(h.draggable){if(c.draggable=!0,c.cursor="move",p){var D=f.seriesModel;if(f.dataIndex!=null){var b=f.seriesModel.getData(f.dataType);D=b.getItemModel(f.dataIndex)}c.on("drag",l(p,D.getModel("labelLine")))}}else c.off("drag"),c.cursor=v.cursor}},n.prototype.layout=function(e){var r=e.getWidth(),s=e.getHeight(),l=[];I(this._labelList,function(p){if(!p.defaultAttr.ignore)l.push(Pp({},p))});var u=Ke(l,function(p){return p.layoutOption.moveOverlap==="shiftX"}),f=Ke(l,function(p){return p.layoutOption.moveOverlap==="shiftY"});Rp(u,0,0,r),Rp(f,1,0,s);var c=Ke(l,function(p){return p.layoutOption.hideOverlap});kM(c),Gm(c)},n.prototype.processLabelsOverall=function(){var e=this;I(this._chartViewList,function(r){var{__model:s,ignoreLabelLineUpdate:l}=r,u=s.isAnimationEnabled();r.group.traverse(function(f){if(f.ignore&&!f.forceLabelAnimation)return!0;var c=!l,p=f.getTextContent();if(!c&&p)c=cC(p).needsUpdateLabelLine;if(c)e._updateLabelLine(f,s);if(u)e._animateLabels(f,s)})})},n.prototype._updateLabelLine=function(e,r){var s=e.getTextContent(),l=ye(e),u=l.dataIndex;if(s&&u!=null){var f=r.getData(l.dataType),c=f.getItemModel(u),p={},v=f.getItemVisual(u,"style");if(v){var h=f.getVisual("drawType");p.stroke=v[h]}var d=c.getModel("labelLine");wf(e,If(c),p),gS(e,d)}},n.prototype._animateLabels=function(e,r){var s=e.getTextContent(),l=e.getTextGuideLine();if(s&&(e.forceLabelAnimation||!s.ignore&&!s.invisible&&!e.disableLabelAnimation&&!ao(e))){var u=cC(s),f=u.oldLayout,c=ye(e),p=c.dataIndex,v={x:s.x,y:s.y,rotation:s.rotation},h=r.getData(c.dataType);if(!f){if(s.attr(v),!uo(s).valueAnimation){var d=te(s.style.opacity,1);s.style.opacity=0,$e(s,{style:{opacity:d}},r,p)}}else{s.attr(f);var m=e.prevStates;if(m){if(be(m,"select")>=0)s.attr(u.oldLayoutSelect);if(be(m,"emphasis")>=0)s.attr(u.oldLayoutEmphasis)}Oe(s,v,r,p)}if(u.oldLayout=v,s.states.select){var g=u.oldLayoutSelect={};Wy(g,v,Yy),Wy(g,s.states.select,Yy)}if(s.states.emphasis){var y=u.oldLayoutEmphasis={};Wy(y,v,Yy),Wy(y,s.states.emphasis,Yy)}yd(s,p,h,r,r)}if(l&&!l.ignore&&!l.invisible){var u=sj(l),f=u.oldLayout,x={points:l.shape.points};if(!f)l.setShape(x),l.style.strokePercent=0,$e(l,{style:{strokePercent:1}},r);else l.attr({shape:f}),Oe(l,{shape:x},r);u.oldLayout=x}},n}(),Lz=lj;var pC=he();function vC(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,r,s){var l=pC(r).labelManager;if(!l)l=pC(r).labelManager=new Lz;l.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,r,s){var l=pC(r).labelManager;I(s.updatedSeries,function(u){l.addLabelsOfSeries(r.getViewOfSeriesModel(u))}),l.updateLayoutConfig(r),l.layout(r),l.processLabelsOverall()})}var Nn=Sr.CMD;function vc(n,e){return Math.abs(n-e)<0.00001}function Xy(n){var e=n.data,r=n.len(),s=[],l,u=0,f=0,c=0,p=0;function v(O,B){if(l&&l.length>2)s.push(l);l=[O,B]}function h(O,B,F,z){if(!(vc(O,F)&&vc(B,z)))l.push(O,B,F,z,F,z)}function d(O,B,F,z,H,G){var Z=Math.abs(B-O),Q=Math.tan(Z/4)*4/3,q=B<O?-1:1,ae=Math.cos(O),ce=Math.sin(O),ne=Math.cos(B),de=Math.sin(B),ze=ae*H+F,dt=ce*G+z,ke=ne*H+F,me=de*G+z,Ge=H*Q*q,ge=G*Q*q;l.push(ze-Ge*ce,dt+ge*ae,ke+Ge*de,me-ge*ne,ke,me)}var m,g,y,x;for(var S=0;S<r;){var D=e[S++],b=S===1;if(b){if(u=e[S],f=e[S+1],c=u,p=f,D===Nn.L||D===Nn.C||D===Nn.Q)l=[c,p]}switch(D){case Nn.M:u=c=e[S++],f=p=e[S++],v(c,p);break;case Nn.L:m=e[S++],g=e[S++],h(u,f,m,g),u=m,f=g;break;case Nn.C:l.push(e[S++],e[S++],e[S++],e[S++],u=e[S++],f=e[S++]);break;case Nn.Q:m=e[S++],g=e[S++],y=e[S++],x=e[S++],l.push(u+0.6666666666666666*(m-u),f+0.6666666666666666*(g-f),y+0.6666666666666666*(m-y),x+0.6666666666666666*(g-x),y,x),u=y,f=x;break;case Nn.A:var C=e[S++],A=e[S++],T=e[S++],E=e[S++],w=e[S++],L=e[S++]+w;S+=1;var M=!e[S++];if(m=Math.cos(w)*T+C,g=Math.sin(w)*E+A,b)c=m,p=g,v(c,p);else h(u,f,m,g);u=Math.cos(L)*T+C,f=Math.sin(L)*E+A;var P=(M?-1:1)*Math.PI/2;for(var R=w;M?R>L:R<L;R+=P){var N=M?Math.max(R+P,L):Math.min(R+P,L);d(R,N,C,A,T,E)}break;case Nn.R:c=u=e[S++],p=f=e[S++],m=c+e[S++],g=p+e[S++],v(m,p),h(m,p,m,g),h(m,g,c,g),h(c,g,c,p),h(c,p,m,p);break;case Nn.Z:l&&h(u,f,c,p),u=c,f=p;break}}if(l&&l.length>2)s.push(l);return s}function hC(n,e,r,s,l,u,f,c,p,v){if(vc(n,r)&&vc(e,s)&&vc(l,f)&&vc(u,c)){p.push(f,c);return}var h=2/v,d=h*h,m=f-n,g=c-e,y=Math.sqrt(m*m+g*g);m/=y,g/=y;var x=r-n,S=s-e,D=l-f,b=u-c,C=x*x+S*S,A=D*D+b*b;if(C<d&&A<d){p.push(f,c);return}var T=m*x+g*S,E=-m*D-g*b,w=C-T*T,L=A-E*E;if(w<d&&T>=0&&L<d&&E>=0){p.push(f,c);return}var M=[],P=[];$i(n,r,l,f,0.5,M),$i(e,s,u,c,0.5,P),hC(M[0],P[0],M[1],P[1],M[2],P[2],M[3],P[3],p,v),hC(M[4],P[4],M[5],P[5],M[6],P[6],M[7],P[7],p,v)}function Pz(n,e){var r=Xy(n),s=[];e=e||1;for(var l=0;l<r.length;l++){var u=r[l],f=[],c=u[0],p=u[1];f.push(c,p);for(var v=2;v<u.length;){var h=u[v++],d=u[v++],m=u[v++],g=u[v++],y=u[v++],x=u[v++];hC(c,p,h,d,m,g,y,x,f,e),c=y,p=x}s.push(f)}return s}function kz(n,e,r){var s=n[e],l=n[1-e],u=Math.abs(s/l),f=Math.ceil(Math.sqrt(u*r)),c=Math.floor(r/f);if(c===0)c=1,f=r;var p=[];for(var v=0;v<f;v++)p.push(c);var h=f*c,d=r-h;if(d>0)for(var v=0;v<d;v++)p[v%f]+=1;return p}function Rz(n,e,r){var{r0:s,r:l,startAngle:u,endAngle:f}=n,c=Math.abs(f-u),p=c*l,v=l-s,h=p>Math.abs(v),d=kz([p,v],h?0:1,e),m=(h?c:v)/d.length;for(var g=0;g<d.length;g++){var y=(h?v:c)/d[g];for(var x=0;x<d[g];x++){var S={};if(h)S.startAngle=u+m*g,S.endAngle=u+m*(g+1),S.r0=s+y*x,S.r=s+y*(x+1);else S.startAngle=u+y*x,S.endAngle=u+y*(x+1),S.r0=s+m*g,S.r=s+m*(g+1);S.clockwise=n.clockwise,S.cx=n.cx,S.cy=n.cy,r.push(S)}}}function uj(n,e,r){var{width:s,height:l}=n,u=s>l,f=kz([s,l],u?0:1,e),c=u?"width":"height",p=u?"height":"width",v=u?"x":"y",h=u?"y":"x",d=n[c]/f.length;for(var m=0;m<f.length;m++){var g=n[p]/f[m];for(var y=0;y<f[m];y++){var x={};x[v]=m*d,x[h]=y*g,x[c]=d,x[p]=g,x.x+=n.x,x.y+=n.y,r.push(x)}}}function Oz(n,e,r,s){return n*s-r*e}function fj(n,e,r,s,l,u,f,c){var p=r-n,v=s-e,h=f-l,d=c-u,m=Oz(h,d,p,v);if(Math.abs(m)<0.000001)return null;var g=n-l,y=e-u,x=Oz(g,y,h,d)/m;if(x<0||x>1)return null;return new Le(x*p+n,x*v+e)}function cj(n,e,r){var s=new Le;Le.sub(s,r,e),s.normalize();var l=new Le;Le.sub(l,n,e);var u=l.dot(s);return u}function hc(n,e){var r=n[n.length-1];if(r&&r[0]===e[0]&&r[1]===e[1])return;n.push(e)}function pj(n,e,r){var s=n.length,l=[];for(var u=0;u<s;u++){var f=n[u],c=n[(u+1)%s],p=fj(f[0],f[1],c[0],c[1],e.x,e.y,r.x,r.y);if(p)l.push({projPt:cj(p,e,r),pt:p,idx:u})}if(l.length<2)return[{points:n},{points:n}];l.sort(function(S,D){return S.projPt-D.projPt});var v=l[0],h=l[l.length-1];if(h.idx<v.idx){var d=v;v=h,h=d}var m=[v.pt.x,v.pt.y],g=[h.pt.x,h.pt.y],y=[m],x=[g];for(var u=v.idx+1;u<=h.idx;u++)hc(y,n[u].slice());hc(y,g),hc(y,m);for(var u=h.idx+1;u<=v.idx+s;u++)hc(x,n[u%s].slice());return hc(x,m),hc(x,g),[{points:y},{points:x}]}function Nz(n){var e=n.points,r=[],s=[];hl(e,r,s);var l=new De(r[0],r[1],s[0]-r[0],s[1]-r[1]),{width:u,height:f,x:c,y:p}=l,v=new Le,h=new Le;if(u>f)v.x=h.x=c+u/2,v.y=p,h.y=p+f;else v.y=h.y=p+f/2,v.x=c,h.x=c+u;return pj(e,v,h)}function Zy(n,e,r,s){if(r===1)s.push(e);else{var l=Math.floor(r/2),u=n(e);Zy(n,u[0],l,s),Zy(n,u[1],r-l,s)}return s}function vj(n,e){var r=[];for(var s=0;s<e;s++)r.push(ju(n));return r}function hj(n,e){e.setStyle(n.style),e.z=n.z,e.z2=n.z2,e.zlevel=n.zlevel}function dj(n){var e=[];for(var r=0;r<n.length;)e.push([n[r++],n[r++]]);return e}function Bz(n,e){var r=[],s=n.shape,l;switch(n.type){case"rect":uj(s,e,r),l=Ee;break;case"sector":Rz(s,e,r),l=Xt;break;case"circle":Rz({r0:0,r:s.r,startAngle:0,endAngle:Math.PI*2,cx:s.cx,cy:s.cy},e,r),l=Xt;break;default:var u=n.getComputedTransform(),f=u?Math.sqrt(Math.max(u[0]*u[0]+u[1]*u[1],u[2]*u[2]+u[3]*u[3])):1,c=W(Pz(n.getUpdatedPathProxy(),f),function(D){return dj(D)}),p=c.length;if(p===0)Zy(Nz,{points:c[0]},e,r);else if(p===e)for(var v=0;v<p;v++)r.push({points:c[v]});else{var h=0,d=W(c,function(D){var b=[],C=[];hl(D,b,C);var A=(C[1]-b[1])*(C[0]-b[0]);return h+=A,{poly:D,area:A}});d.sort(function(D,b){return b.area-D.area});var m=e;for(var v=0;v<p;v++){var g=d[v];if(m<=0)break;var y=v===p-1?m:Math.ceil(g.area/h*e);if(y<0)continue;Zy(Nz,{points:g.poly},y,r),m-=y}}l=rr;break}if(!l)return vj(n,e);var x=[];for(var v=0;v<r.length;v++){var S=new l;S.setShape(r[v]),hj(n,S),x.push(S)}return x}function mj(n,e){var r=n.length,s=e.length;if(r===s)return[n,e];var l=[],u=[],f=r<s?n:e,c=Math.min(r,s),p=Math.abs(s-r)/6,v=(c-2)/6,h=Math.ceil(p/v)+1,d=[f[0],f[1]],m=p;for(var g=2;g<c;){var y=f[g-2],x=f[g-1],S=f[g++],D=f[g++],b=f[g++],C=f[g++],A=f[g++],T=f[g++];if(m<=0){d.push(S,D,b,C,A,T);continue}var E=Math.min(m,h-1)+1;for(var w=1;w<=E;w++){var L=w/E;$i(y,S,b,A,L,l),$i(x,D,C,T,L,u),y=l[3],x=u[3],d.push(l[1],u[1],l[2],u[2],y,x),S=l[5],D=u[5],b=l[6],C=u[6]}m-=E-1}return f===n?[d,e]:[n,d]}function Fz(n,e){var r=n.length,s=n[r-2],l=n[r-1],u=[];for(var f=0;f<e.length;)u[f++]=s,u[f++]=l;return u}function gj(n,e){var r,s,l,u=[],f=[];for(var c=0;c<Math.max(n.length,e.length);c++){var p=n[c],v=e[c],h=void 0,d=void 0;if(!p)h=Fz(s||v,v),d=v;else if(!v)d=Fz(l||p,p),h=p;else r=mj(p,v),h=r[0],d=r[1],s=h,l=d;u.push(h),f.push(d)}return[u,f]}function zz(n){var e=0,r=0,s=0,l=n.length;for(var u=0,f=l-2;u<l;f=u,u+=2){var c=n[f],p=n[f+1],v=n[u],h=n[u+1],d=c*h-v*p;e+=d,r+=(c+v)*d,s+=(p+h)*d}if(e===0)return[n[0]||0,n[1]||0];return[r/e/3,s/e/3,e]}function yj(n,e,r,s){var l=(n.length-2)/6,u=1/0,f=0,c=n.length,p=c-2;for(var v=0;v<l;v++){var h=v*6,d=0;for(var m=0;m<c;m+=2){var g=m===0?h:(h+m-2)%p+2,y=n[g]-r[0],x=n[g+1]-r[1],S=e[m]-s[0],D=e[m+1]-s[1],b=S-y,C=D-x;d+=b*b+C*C}if(d<u)u=d,f=v}return f}function xj(n){var e=[],r=n.length;for(var s=0;s<r;s+=2)e[s]=n[r-s-2],e[s+1]=n[r-s-1];return e}function _j(n,e,r,s){var l=[],u;for(var f=0;f<n.length;f++){var c=n[f],p=e[f],v=zz(c),h=zz(p);if(u==null)u=v[2]<0!==h[2]<0;var d=[],m=[],g=0,y=1/0,x=[],S=c.length;if(u)c=xj(c);var D=yj(c,p,v,h)*6,b=S-2;for(var C=0;C<b;C+=2){var A=(D+C)%b+2;d[C+2]=c[A]-v[0],d[C+3]=c[A+1]-v[1]}if(d[0]=c[D]-v[0],d[1]=c[D+1]-v[1],r>0){var T=s/r;for(var E=-s/2;E<=s/2;E+=T){var w=Math.sin(E),L=Math.cos(E),M=0;for(var C=0;C<c.length;C+=2){var P=d[C],R=d[C+1],N=p[C]-h[0],O=p[C+1]-h[1],B=N*L-O*w,F=N*w+O*L;x[C]=B,x[C+1]=F;var z=B-P,H=F-R;M+=z*z+H*H}if(M<y){y=M,g=E;for(var G=0;G<x.length;G++)m[G]=x[G]}}}else for(var Z=0;Z<S;Z+=2)m[Z]=p[Z]-h[0],m[Z+1]=p[Z+1]-h[1];l.push({from:d,to:m,fromCp:v,toCp:h,rotation:-g})}return l}function Mv(n){return n.__isCombineMorphing}var Uz="__mOriginal_";function Ky(n,e,r){var s=Uz+e,l=n[s]||n[e];if(!n[s])n[s]=n[e];var{replace:u,after:f,before:c}=r;n[e]=function(){var p=arguments,v;if(c&&c.apply(this,p),u)v=u.apply(this,p);else v=l.apply(this,p);return f&&f.apply(this,p),v}}function Iv(n,e){var r=Uz+e;if(n[r])n[e]=n[r],n[r]=null}function Vz(n,e){for(var r=0;r<n.length;r++){var s=n[r];for(var l=0;l<s.length;){var u=s[l],f=s[l+1];s[l++]=e[0]*u+e[2]*f+e[4],s[l++]=e[1]*u+e[3]*f+e[5]}}}function Gz(n,e){var r=n.getUpdatedPathProxy(),s=e.getUpdatedPathProxy(),l=gj(Xy(r),Xy(s)),u=l[0],f=l[1],c=n.getComputedTransform(),p=e.getComputedTransform();function v(){this.transform=null}c&&Vz(u,c),p&&Vz(f,p),Ky(e,"updateTransform",{replace:v}),e.transform=null;var h=_j(u,f,10,Math.PI),d=[];Ky(e,"buildPath",{replace:function(m){var g=e.__morphT,y=1-g,x=[];for(var S=0;S<h.length;S++){var D=h[S],{from:b,to:C}=D,A=D.rotation*g,{fromCp:T,toCp:E}=D,w=Math.sin(A),L=Math.cos(A);Tu(x,T,E,g);for(var M=0;M<b.length;M+=2){var P=b[M],R=b[M+1],N=C[M],O=C[M+1],B=P*y+N*g,F=R*y+O*g;d[M]=B*L-F*w+x[0],d[M+1]=B*w+F*L+x[1]}var z=d[0],H=d[1];m.moveTo(z,H);for(var M=2;M<b.length;){var N=d[M++],O=d[M++],G=d[M++],Z=d[M++],Q=d[M++],q=d[M++];if(z===N&&H===O&&G===Q&&Z===q)m.lineTo(Q,q);else m.bezierCurveTo(N,O,G,Z,Q,q);z=Q,H=q}}}})}function jy(n,e,r){if(!n||!e)return e;var{done:s,during:l}=r;Gz(n,e),e.__morphT=0;function u(){Iv(e,"buildPath"),Iv(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},pe({during:function(f){e.dirtyShape(),l&&l(f)},done:function(){u(),s&&s()}},r)),e}function Sj(n,e,r,s,l,u){var f=16;n=l===r?0:Math.round(32767*(n-r)/(l-r)),e=u===s?0:Math.round(32767*(e-s)/(u-s));var c=0,p;for(var v=(1<<f)/2;v>0;v/=2){var h=0,d=0;if((n&v)>0)h=1;if((e&v)>0)d=1;if(c+=v*v*(3*h^d),d===0){if(h===1)n=v-1-n,e=v-1-e;p=n,n=e,e=p}}return c}function qy(n){var e=1/0,r=1/0,s=-1/0,l=-1/0,u=W(n,function(c){var p=c.getBoundingRect(),v=c.getComputedTransform(),h=p.x+p.width/2+(v?v[4]:0),d=p.y+p.height/2+(v?v[5]:0);return e=Math.min(h,e),r=Math.min(d,r),s=Math.max(h,s),l=Math.max(d,l),[h,d]}),f=W(u,function(c,p){return{cp:c,z:Sj(c[0],c[1],e,r,s,l),path:n[p]}});return f.sort(function(c,p){return c.z-p.z}).map(function(c){return c.path})}function Hz(n){return Bz(n.path,n.count)}function dC(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Wz(n,e,r){var s=[];function l(T){for(var E=0;E<T.length;E++){var w=T[E];if(Mv(w))l(w.childrenRef());else if(w instanceof xe)s.push(w)}}l(n);var u=s.length;if(!u)return dC();var f=r.dividePath||Hz,c=f({path:e,count:u});if(c.length!==u)return console.error("Invalid morphing: unmatched splitted path"),dC();s=qy(s),c=qy(c);var{done:p,during:v,individualDelay:h}=r,d=new qi;for(var m=0;m<u;m++){var g=s[m],y=c[m];if(y.parent=e,y.copyTransform(d),!h)Gz(g,y)}e.__isCombineMorphing=!0,e.childrenRef=function(){return c};function x(T){for(var E=0;E<c.length;E++)c[E].addSelfToZr(T)}Ky(e,"addSelfToZr",{after:function(T){x(T)}}),Ky(e,"removeSelfFromZr",{after:function(T){for(var E=0;E<c.length;E++)c[E].removeSelfFromZr(T)}});function S(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Iv(e,"addSelfToZr"),Iv(e,"removeSelfFromZr")}var D=c.length;if(h){var b=D,C=function(){if(b--,b===0)S(),p&&p()};for(var m=0;m<D;m++){var A=h?pe({delay:(r.delay||0)+h(m,D,s[m],c[m]),done:C},r):r;jy(s[m],c[m],A)}}else e.__morphT=0,e.animateTo({__morphT:1},pe({during:function(T){for(var E=0;E<D;E++){var w=c[E];w.__morphT=e.__morphT,w.dirtyShape()}v&&v(T)},done:function(){S();for(var T=0;T<n.length;T++)Iv(n[T],"updateTransform");p&&p()}},r));if(e.__zr)x(e.__zr);return{fromIndividuals:s,toIndividuals:c,count:D}}function Yz(n,e,r){var s=e.length,l=[],u=r.dividePath||Hz;function f(g){for(var y=0;y<g.length;y++){var x=g[y];if(Mv(x))f(x.childrenRef());else if(x instanceof xe)l.push(x)}}if(Mv(n)){f(n.childrenRef());var c=l.length;if(c<s){var p=0;for(var v=c;v<s;v++)l.push(ju(l[p++%c]))}l.length=s}else{l=u({path:n,count:s});var h=n.getComputedTransform();for(var v=0;v<l.length;v++)l[v].setLocalTransform(h);if(l.length!==s)return console.error("Invalid morphing: unmatched splitted path"),dC()}l=qy(l),e=qy(e);var d=r.individualDelay;for(var v=0;v<s;v++){var m=d?pe({delay:(r.delay||0)+d(v,s,l[v],e[v])},r):r;jy(l[v],e[v],m)}return{fromIndividuals:l,toIndividuals:e,count:e.length}}function Xz(n){return U(n[0])}function Zz(n,e){var r=[],s=n.length;for(var l=0;l<s;l++)r.push({one:n[l],many:[]});for(var l=0;l<e.length;l++){var u=e[l].length,f=void 0;for(f=0;f<u;f++)r[f%s].many.push(e[l][f])}var c=0;for(var l=s-1;l>=0;l--)if(!r[l].many.length){var p=r[c].many;if(p.length<=1)if(c)c=0;else return r;var u=p.length,v=Math.ceil(u/2);r[l].many=p.slice(v,u),r[c].many=p.slice(0,v),c++}return r}var Dj={clone:function(n){var e=[],r=1-Math.pow(1-n.path.style.opacity,1/n.count);for(var s=0;s<n.count;s++){var l=ju(n.path);l.setStyle("opacity",r),e.push(l)}return e},split:null};function $y(n,e,r,s,l,u){if(!n.length||!e.length)return;var f=Qu("update",s,l);if(!(f&&f.duration>0))return;var c=s.getModel("universalTransition").get("delay"),p=V({setToFinal:!0},f),v,h;if(Xz(n))v=n,h=e;if(Xz(e))v=e,h=n;function d(D,b,C,A,T){var{many:E,one:w}=D;if(E.length===1&&!T){var L=b?E[0]:w,M=b?w:E[0];if(Mv(L))d({many:[L],one:M},!0,C,A,!0);else{var P=c?pe({delay:c(C,A)},p):p;jy(L,M,P),u(L,M,L,M,P)}}else{var R=pe({dividePath:Dj[r],individualDelay:c&&function(H,G,Z,Q){return c(H+C,A)}},p),N=b?Wz(E,w,R):Yz(w,E,R),{fromIndividuals:O,toIndividuals:B}=N,F=O.length;for(var z=0;z<F;z++){var P=c?pe({delay:c(z,F)},p):p;u(O[z],B[z],b?E[z]:D.one,b?D.one:E[z],P)}}}var m=v?v===n:n.length>e.length,g=v?Zz(h,v):Zz(m?e:n,[m?n:e]),y=0;for(var x=0;x<g.length;x++)y+=g[x].many.length;var S=0;for(var x=0;x<g.length;x++)d(g[x],m,S,y),S+=g[x].many.length}function zs(n){if(!n)return[];if(U(n)){var e=[];for(var r=0;r<n.length;r++)e.push(zs(n[r]));return e}var s=[];return n.traverse(function(l){if(l instanceof xe&&!l.disableMorphing&&!l.invisible&&!l.ignore)s.push(l)}),s}var tV=1e4,bj=0,Kz=1,qz=2,Cj=he();function Aj(n,e){var r=n.dimensions;for(var s=0;s<r.length;s++){var l=n.getDimensionInfo(r[s]);if(l&&l.otherDims[e]===0)return r[s]}}function Tj(n,e,r){var s=n.getDimensionInfo(r),l=s&&s.ordinalMeta;if(s){var u=n.get(s.name,e);if(l)return l.categories[u]||u+"";return u+""}}function jz(n,e,r,s){var l=s?"itemChildGroupId":"itemGroupId",u=Aj(n,l);if(u){var f=Tj(n,e,u);return f}var c=n.getRawDataItem(e),p=s?"childGroupId":"groupId";if(c&&c[p])return c[p]+"";if(s)return;return r||n.getId(e)}function $z(n){var e=[];return I(n,function(r){var{data:s,dataGroupId:l}=r;if(s.count()>tV)return;var u=s.getIndices();for(var f=0;f<u.length;f++)e.push({data:s,groupId:jz(s,f,l,!1),childGroupId:jz(s,f,l,!0),divide:r.divide,dataIndex:f})}),e}function mC(n,e,r){n.traverse(function(s){if(s instanceof xe)$e(s,{style:{opacity:0}},e,{dataIndex:r,isFrom:!0})})}function gC(n){if(n.parent){var e=n.getComputedTransform();n.setLocalTransform(e),n.parent.remove(n)}}function dc(n){if(n.stopAnimation(),n.isGroup)n.traverse(function(e){e.stopAnimation()})}function Ej(n,e,r){var s=Qu("update",r,e);s&&n.traverse(function(l){if(l instanceof pi){var u=KE(l);if(u)l.animateFrom({style:u},s)}})}function wj(n,e){var r=n.length;if(r!==e.length)return!1;for(var s=0;s<r;s++){var l=n[s],u=e[s];if(l.data.getId(l.dataIndex)!==u.data.getId(u.dataIndex))return!1}return!0}function rV(n,e,r){var s=$z(n),l=$z(e);function u(C,A,T,E,w){if(T||C)A.animateFrom({style:T&&T!==C?V(V({},T.style),C.style):C.style},w)}var f=!1,c=bj,p=re(),v=re();I(s,function(C){C.groupId&&p.set(C.groupId,!0),C.childGroupId&&v.set(C.childGroupId,!0)});for(var h=0;h<l.length;h++){var d=l[h].groupId;if(v.get(d)){c=Kz;break}var m=l[h].childGroupId;if(m&&p.get(m)){c=qz;break}}function g(C,A){return function(T){var{data:E,dataIndex:w}=T;if(A)return E.getId(w);if(C)return c===Kz?T.childGroupId:T.groupId;else return c===qz?T.childGroupId:T.groupId}}var y=wj(s,l),x={};if(!y)for(var h=0;h<l.length;h++){var S=l[h],D=S.data.getItemGraphicEl(S.dataIndex);if(D)x[D.id]=!0}function b(C,A){var T=s[A],E=l[C],w=E.data.hostModel,L=T.data.getItemGraphicEl(T.dataIndex),M=E.data.getItemGraphicEl(E.dataIndex);if(L===M){M&&Ej(M,E.dataIndex,w);return}if(L&&x[L.id])return;if(M)if(dc(M),L)dc(L),gC(L),f=!0,$y(zs(L),zs(M),E.divide,w,C,u);else mC(M,w,C)}if(new Fi(s,l,g(!0,y),g(!1,y),null,"multiple").update(b).updateManyToOne(function(C,A){var T=l[C],E=T.data,w=E.hostModel,L=E.getItemGraphicEl(T.dataIndex),M=Ke(W(A,function(P){return s[P].data.getItemGraphicEl(s[P].dataIndex)}),function(P){return P&&P!==L&&!x[P.id]});if(L)if(dc(L),M.length)I(M,function(P){dc(P),gC(P)}),f=!0,$y(zs(M),zs(L),T.divide,w,C,u);else mC(L,w,T.dataIndex)}).updateOneToMany(function(C,A){var T=s[A],E=T.data.getItemGraphicEl(T.dataIndex);if(E&&x[E.id])return;var w=Ke(W(C,function(M){return l[M].data.getItemGraphicEl(l[M].dataIndex)}),function(M){return M&&M!==E}),L=l[C[0]].data.hostModel;if(w.length)if(I(w,function(M){return dc(M)}),E)dc(E),gC(E),f=!0,$y(zs(E),zs(w),T.divide,L,C[0],u);else I(w,function(M){return mC(M,L,C[0])})}).updateManyToMany(function(C,A){new Fi(A,C,function(T){return s[T].data.getId(s[T].dataIndex)},function(T){return l[T].data.getId(l[T].dataIndex)}).update(function(T,E){b(C[T],A[E])}).execute()}).execute(),f)I(e,function(C){var A=C.data,T=A.hostModel,E=T&&r.getViewOfSeriesModel(T),w=Qu("update",T,0);if(E&&T.isAnimationEnabled()&&w&&w.duration>0)E.group.traverse(function(L){if(L instanceof xe&&!L.animators.length)L.animateFrom({style:{opacity:0}},w)})})}function Qz(n){var e=n.getModel("universalTransition").get("seriesKey");if(!e)return n.id;return e}function Jz(n){if(U(n))return n.sort().join(",");return n}function Vs(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function Ij(n,e){var r=re(),s=re(),l=re();I(n.oldSeries,function(f,c){var p=n.oldDataGroupIds[c],v=n.oldData[c],h=Qz(f),d=Jz(h);if(s.set(d,{dataGroupId:p,data:v}),U(h))I(h,function(m){l.set(m,{key:d,dataGroupId:p,data:v})})});function u(f){if(r.get(f))yx("Duplicated seriesKey in universalTransition "+f)}return I(e.updatedSeries,function(f){if(f.isUniversalTransitionEnabled()&&f.isAnimationEnabled()){var c=f.get("dataGroupId"),p=f.getData(),v=Qz(f),h=Jz(v),d=s.get(h);if(d)r.set(h,{oldSeries:[{dataGroupId:d.dataGroupId,divide:Vs(d.data),data:d.data}],newSeries:[{dataGroupId:c,divide:Vs(p),data:p}]});else if(U(v)){var m=[];if(I(v,function(x){var S=s.get(x);if(S.data)m.push({dataGroupId:S.dataGroupId,divide:Vs(S.data),data:S.data})}),m.length)r.set(h,{oldSeries:m,newSeries:[{dataGroupId:c,data:p,divide:Vs(p)}]})}else{var g=l.get(v);if(g){var y=r.get(g.key);if(!y)y={oldSeries:[{dataGroupId:g.dataGroupId,data:g.data,divide:Vs(g.data)}],newSeries:[]},r.set(g.key,y);y.newSeries.push({dataGroupId:c,data:p,divide:Vs(p)})}}}}),r}function eV(n,e){for(var r=0;r<n.length;r++){var s=e.seriesIndex!=null&&e.seriesIndex===n[r].seriesIndex||e.seriesId!=null&&e.seriesId===n[r].id;if(s)return r}}function Mj(n,e,r,s){var l=[],u=[];if(I(nt(n.from),function(f){var c=eV(e.oldSeries,f);if(c>=0)l.push({dataGroupId:e.oldDataGroupIds[c],data:e.oldData[c],divide:Vs(e.oldData[c]),groupIdDim:f.dimension})}),I(nt(n.to),function(f){var c=eV(r.updatedSeries,f);if(c>=0){var p=r.updatedSeries[c].getData();u.push({dataGroupId:e.oldDataGroupIds[c],data:p,divide:Vs(p),groupIdDim:f.dimension})}}),l.length>0&&u.length>0)rV(l,u,s)}function yC(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,r,s){I(nt(s.seriesTransition),function(l){I(nt(l.to),function(u){var f=s.updatedSeries;for(var c=0;c<f.length;c++)if(u.seriesIndex!=null&&u.seriesIndex===f[c].seriesIndex||u.seriesId!=null&&u.seriesId===f[c].id)f[c][Dp]=!0})})}),n.registerUpdateLifecycle("series:transition",function(e,r,s){var l=Cj(r);if(l.oldSeries&&s.updatedSeries&&s.optionChanged){var u=s.seriesTransition;if(u)I(nt(u),function(g){Mj(g,l,s,r)});else{var f=Ij(l,s);I(f.keys(),function(g){var y=f.get(g);rV(y.oldSeries,y.newSeries,r)})}I(s.updatedSeries,function(g){if(g[Dp])g[Dp]=!1})}var c=e.getSeries(),p=l.oldSeries=[],v=l.oldDataGroupIds=[],h=l.oldData=[];for(var d=0;d<c.length;d++){var m=c[d].getData();if(m.count()<tV)p.push(c[d]),v.push(c[d].get("dataGroupId")),h.push(m)}})}var{sin:xC,cos:_C,PI:iV}=Math,hu=Math.PI*2,Lj=180/iV,Pj=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,r){this._add("M",e,r)},n.prototype.lineTo=function(e,r){this._add("L",e,r)},n.prototype.bezierCurveTo=function(e,r,s,l,u,f){this._add("C",e,r,s,l,u,f)},n.prototype.quadraticCurveTo=function(e,r,s,l){this._add("Q",e,r,s,l)},n.prototype.arc=function(e,r,s,l,u,f){this.ellipse(e,r,s,s,0,l,u,f)},n.prototype.ellipse=function(e,r,s,l,u,f,c,p){var v=c-f,h=!p,d=Math.abs(v),m=an(d-hu)||(h?v>=hu:-v>=hu),g=v>0?v%hu:v%hu+hu,y=!1;if(m)y=!0;else if(an(d))y=!1;else y=g>=iV===!!h;var x=e+s*_C(f),S=r+l*xC(f);if(this._start)this._add("M",x,S);var D=Math.round(u*Lj);if(m){var b=1/this._p,C=(h?1:-1)*(hu-b);if(this._add("A",s,l,D,1,+h,e+s*_C(f+C),r+l*xC(f+C)),b>0.01)this._add("A",s,l,D,0,+h,x,S)}else{var A=e+s*_C(c),T=r+l*xC(c);this._add("A",s,l,D,+y,+h,A,T)}},n.prototype.rect=function(e,r,s,l){this._add("M",e,r),this._add("l",s,0),this._add("l",0,l),this._add("l",-s,0),this._add("Z")},n.prototype.closePath=function(){if(this._d.length>0)this._add("Z")},n.prototype._add=function(e,r,s,l,u,f,c,p,v){var h=[],d=this._p;for(var m=1;m<arguments.length;m++){var g=arguments[m];if(isNaN(g)){this._invalid=!0;return}h.push(Math.round(g*d)/d)}this._d.push(e+h.join(" ")),this._start=e==="Z"},n.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},n.prototype.getStr=function(){return this._str},n}(),Qy=Pj;var Lv="none",Rj=Math.round;function Oj(n){var e=n.fill;return e!=null&&e!==Lv}function Nj(n){var e=n.stroke;return e!=null&&e!==Lv}var SC=["lineCap","miterLimit","lineJoin"],kj=W(SC,function(n){return"stroke-"+n.toLowerCase()});function DC(n,e,r,s){var l=e.opacity==null?1:e.opacity;if(r instanceof Bt){n("opacity",l);return}if(Oj(e)){var u=Zo(e.fill);n("fill",u.color);var f=e.fillOpacity!=null?e.fillOpacity*u.opacity*l:u.opacity*l;if(s||f<1)n("fill-opacity",f)}else n("fill",Lv);if(Nj(e)){var c=Zo(e.stroke);n("stroke",c.color);var p=e.strokeNoScale?r.getLineScale():1,v=p?(e.lineWidth||0)/p:0,h=e.strokeOpacity!=null?e.strokeOpacity*c.opacity*l:c.opacity*l,d=e.strokeFirst;if(s||v!==1)n("stroke-width",v);if(s||d)n("paint-order",d?"stroke":"fill");if(s||h<1)n("stroke-opacity",h);if(e.lineDash){var m=qp(r),g=m[0],y=m[1];if(g){if(y=Rj(y||0),n("stroke-dasharray",g.join(",")),y||s)n("stroke-dashoffset",y)}}else if(s)n("stroke-dasharray",Lv);for(var x=0;x<SC.length;x++){var S=SC[x];if(s||e[S]!==Bu[S]){var D=e[S]||Bu[S];D&&n(kj[x],D)}}}else if(s)n("stroke",Lv)}var aV="http://www.w3.org/2000/svg",bC="http://www.w3.org/1999/xlink",nV="http://www.w3.org/2000/xmlns/",oV="http://www.w3.org/XML/1998/namespace",CC="ecmeta_";function Jy(n){return document.createElementNS(aV,n)}function sr(n,e,r,s,l){return{tag:n,attrs:r||{},children:s,text:l,key:e}}function Bj(n,e){var r=[];if(e)for(var s in e){var l=e[s],u=s;if(l===!1)continue;else if(l!==!0&&l!=null)u+='="'+l+'"';r.push(u)}return"<"+n+" "+r.join(" ")+">"}function Fj(n){return"</"+n+">"}function Pv(n,e){e=e||{};var r=e.newline?`
|
|
53
|
+
`:"";function s(l){var{children:u,tag:f,attrs:c,text:p}=l;return Bj(f,c)+(f!=="style"?dr(p):p||"")+(u?""+r+W(u,function(v){return s(v)}).join(r)+r:"")+Fj(f)}return s(n)}function sV(n,e,r){r=r||{};var s=r.newline?`
|
|
54
|
+
`:"",l=" {"+s,u=s+"}",f=W(Me(n),function(p){return p+l+W(Me(n[p]),function(v){return v+":"+n[p][v]+";"}).join(s)+u}).join(s),c=W(Me(e),function(p){return"@keyframes "+p+l+W(Me(e[p]),function(v){return v+l+W(Me(e[p][v]),function(h){var d=e[p][v][h];if(h==="d")d='path("'+d+'")';return h+":"+d+";"}).join(s)+u}).join(s)+u}).join(s);if(!f&&!c)return"";return["<![CDATA[",f,c,"]]>"].join(s)}function Rv(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function AC(n,e,r,s){return sr("svg","root",{width:n,height:e,xmlns:aV,"xmlns:xlink":bC,version:"1.1",baseProfile:"full",viewBox:s?"0 0 "+n+" "+e:!1},r)}var zj=0;function e0(){return zj++}var lV={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},du="transform-origin";function Vj(n,e,r){var s=V({},n.shape);V(s,e),n.buildPath(r,s);var l=new Qy;return l.reset(xh(n)),r.rebuildPath(l,1),l.generateStr(),l.getStr()}function Uj(n,e){var{originX:r,originY:s}=e;if(r||s)n[du]=r+"px "+s+"px"}var Gj={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function fV(n,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=n,r}function Hj(n,e,r){var s=n.shape.paths,l={},u,f;if(I(s,function(p){var v=Rv(r.zrId);v.animation=!0,Ov(p,{},v,!0);var{cssAnims:h,cssNodes:d}=v,m=Me(h),g=m.length;if(!g)return;f=m[g-1];var y=h[f];for(var x in y){var S=y[x];l[x]=l[x]||{d:""},l[x].d+=S.d||""}for(var D in d){var b=d[D].animation;if(b.indexOf(f)>=0)u=b}}),!u)return;e.d=!1;var c=fV(l,r);return u.replace(f,c)}function uV(n){return K(n)?lV[n]?"cubic-bezier("+lV[n]+")":Pu(n)?n:"":""}function Ov(n,e,r,s){var l=n.animators,u=l.length,f=[];if(n instanceof od){var c=Hj(n,e,r);if(c)f.push(c);else if(!u)return}else if(!u)return;var p={};for(var v=0;v<u;v++){var h=l[v],d=[h.getMaxTime()/1000+"s"],m=uV(h.getClip().easing),g=h.getDelay();if(m)d.push(m);else d.push("linear");if(g)d.push(g/1000+"s");if(h.getLoop())d.push("infinite");var y=d.join(" ");p[y]=p[y]||[y,[]],p[y][1].push(h)}function x(b){var C=b[1],A=C.length,T={},E={},w={},L="animation-timing-function";function M(ke,me,Ge){var ge=ke.getTracks(),Ie=ke.getMaxTime();for(var He=0;He<ge.length;He++){var ot=ge[He];if(ot.needsAnimate()){var{keyframes:je,propName:ct}=ot;if(Ge&&(ct=Ge(ct)),ct)for(var Ot=0;Ot<je.length;Ot++){var $t=je[Ot],Nt=Math.round($t.time/Ie*100)+"%",kt=uV($t.easing),ja=$t.rawValue;if(K(ja)||Te(ja)){if(me[Nt]=me[Nt]||{},me[Nt][ct]=$t.rawValue,kt)me[Nt][L]=kt}}}}}for(var P=0;P<A;P++){var R=C[P],N=R.targetName;if(!N)!s&&M(R,T);else if(N==="shape")M(R,E)}for(var O in T){var B={};ci(B,n),V(B,T[O]);var F=_h(B),z=T[O][L];if(w[O]=F?{transform:F}:{},Uj(w[O],B),z)w[O][L]=z}var H,G=!0;for(var O in E){w[O]=w[O]||{};var Z=!H,z=E[O][L];if(Z)H=new Sr;var Q=H.len();H.reset(),w[O].d=Vj(n,E[O],H);var q=H.len();if(!Z&&Q!==q){G=!1;break}if(z)w[O][L]=z}if(!G)for(var O in w)delete w[O].d;if(!s)for(var P=0;P<A;P++){var R=C[P],N=R.targetName;if(N==="style")M(R,w,function(ge){return Gj[ge]})}var ae=Me(w),ce=!0,ne;for(var P=1;P<ae.length;P++){var de=ae[P-1],ze=ae[P];if(w[de][du]!==w[ze][du]){ce=!1;break}ne=w[de][du]}if(ce&&ne){for(var O in w)if(w[O][du])delete w[O][du];e[du]=ne}if(Ke(ae,function(ke){return Me(w[ke]).length>0}).length){var dt=fV(w,r);return dt+" "+b[0]+" both"}}for(var S in p){var c=x(p[S]);if(c)f.push(c)}if(f.length){var D=r.zrId+"-cls-"+e0();r.cssNodes["."+D]={animation:f.join(",")},e.class=D}}function pV(n,e,r){if(!n.ignore)if(n.isSilent()){var s={"pointer-events":"none"};cV(s,e,r,!0)}else{var l=n.states.emphasis&&n.states.emphasis.style?n.states.emphasis.style:{},u=l.fill;if(!u){var f=n.style&&n.style.fill,c=n.states.select&&n.states.select.style&&n.states.select.style.fill,p=n.currentStates.indexOf("select")>=0?c||f:f;if(p)u=Ec(p)}var v=l.lineWidth;if(v){var h=!l.strokeNoScale&&n.transform?n.transform[0]:1;v=v/h}var s={cursor:"pointer"};if(u)s.fill=u;if(l.stroke)s.stroke=l.stroke;if(v)s["stroke-width"]=v;cV(s,e,r,!0)}}function cV(n,e,r,s){var l=JSON.stringify(n),u=r.cssStyleCache[l];if(!u)u=r.zrId+"-cls-"+e0(),r.cssStyleCache[l]=u,r.cssNodes["."+u+(s?":hover":"")]=n;e.class=e.class?e.class+" "+u:u}var Nv=Math.round;function mV(n){return n&&K(n.src)}function gV(n){return n&&ie(n.toDataURL)}function TC(n,e,r,s){DC(function(l,u){var f=l==="fill"||l==="stroke";if(f&&yh(u))MC(e,n,l,s);else if(f&&wc(u))LC(r,n,l,s);else n[l]=u;if(f&&s.ssr&&u==="none")n["pointer-events"]="visible"},e,r,!1),jj(r,n,s)}function EC(n,e){var r=uP(e);if(r){if(r.each(function(s,l){s!=null&&(n[(CC+l).toLowerCase()]=s+"")}),e.isSilent())n[CC+"silent"]="true"}}function vV(n){return an(n[0]-1)&&an(n[1])&&an(n[2])&&an(n[3]-1)}function Wj(n){return an(n[4])&&an(n[5])}function wC(n,e,r){if(e&&!(Wj(e)&&vV(e))){var s=r?10:1e4;n.transform=vV(e)?"translate("+Nv(e[4]*s)/s+" "+Nv(e[5]*s)/s+")":VA(e)}}function hV(n,e,r){var s=n.points,l=[];for(var u=0;u<s.length;u++)l.push(Nv(s[u][0]*r)/r),l.push(Nv(s[u][1]*r)/r);e.points=l.join(" ")}function dV(n){return!n.smooth}function Yj(n){var e=W(n,function(r){return typeof r==="string"?[r,r]:r});return function(r,s,l){for(var u=0;u<e.length;u++){var f=e[u],c=r[f[0]];if(c!=null)s[f[1]]=Nv(c*l)/l}}}var Xj={circle:[Yj(["cx","cy","r"])],polyline:[hV,dV],polygon:[hV,dV]};function Zj(n){var e=n.animators;for(var r=0;r<e.length;r++)if(e[r].targetName==="shape")return!0;return!1}function yV(n,e){var{style:r,shape:s}=n,l=Xj[n.type],u={},f=e.animation,c="path",p=n.style.strokePercent,v=e.compress&&xh(n)||4;if(l&&!e.willUpdate&&!(l[1]&&!l[1](s))&&!(f&&Zj(n))&&!(p<1)){c=n.type;var h=Math.pow(10,v);l[0](s,u,h)}else{var d=!n.path||n.shapeChanged();if(!n.path)n.createPathProxy();var m=n.path;if(d)m.beginPath(),n.buildPath(m,n.shape),n.pathUpdated();var g=m.getVersion(),y=n,x=y.__svgPathBuilder;if(y.__svgPathVersion!==g||!x||p!==y.__svgPathStrokePercent){if(!x)x=y.__svgPathBuilder=new Qy;x.reset(v),m.rebuildPath(x,p),x.generateStr(),y.__svgPathVersion=g,y.__svgPathStrokePercent=p}u.d=x.getStr()}return wC(u,n.transform),TC(u,r,n,e),EC(u,n),e.animation&&Ov(n,u,e),e.emphasis&&pV(n,u,e),sr(c,n.id+"",u)}function Kj(n,e){var r=n.style,s=r.image;if(s&&!K(s)){if(mV(s))s=s.src;else if(gV(s))s=s.toDataURL()}if(!s)return;var l=r.x||0,u=r.y||0,{width:f,height:c}=r,p={href:s,width:f,height:c};if(l)p.x=l;if(u)p.y=u;return wC(p,n.transform),TC(p,r,n,e),EC(p,n),e.animation&&Ov(n,p,e),sr("image",n.id+"",p)}function qj(n,e){var r=n.style,s=r.text;if(s!=null&&(s+=""),!s||isNaN(r.x)||isNaN(r.y))return;var l=r.font||ni,u=r.x||0,f=GA(r.y||0,il(l),r.textBaseline),c=UA[r.textAlign]||r.textAlign,p={"dominant-baseline":"central","text-anchor":c};if(px(r)){var v="",h=r.fontStyle,d=cx(r.fontSize);if(!parseFloat(d))return;var m=r.fontFamily||f0,g=r.fontWeight;if(v+="font-size:"+d+";font-family:"+m+";",h&&h!=="normal")v+="font-style:"+h+";";if(g&&g!=="normal")v+="font-weight:"+g+";";p.style=v}else p.style="font: "+l;if(s.match(/\s/))p["xml:space"]="preserve";if(u)p.x=u;if(f)p.y=f;return wC(p,n.transform),TC(p,r,n,e),EC(p,n),e.animation&&Ov(n,p,e),sr("text",n.id+"",p,void 0,s)}function IC(n,e){if(n instanceof xe)return yV(n,e);else if(n instanceof Bt)return Kj(n,e);else if(n instanceof Sl)return qj(n,e)}function jj(n,e,r){var s=n.style;if(HA(s)){var l=WA(n),u=r.shadowCache,f=u[l];if(!f){var c=n.getGlobalScale(),p=c[0],v=c[1];if(!p||!v)return;var h=s.shadowOffsetX||0,d=s.shadowOffsetY||0,m=s.shadowBlur,g=Zo(s.shadowColor),{opacity:y,color:x}=g,S=m/2/p,D=m/2/v,b=S+" "+D;f=r.zrId+"-s"+r.shadowIdx++,r.defs[f]=sr("filter",f,{id:f,x:"-100%",y:"-100%",width:"300%",height:"300%"},[sr("feDropShadow","",{dx:h/p,dy:d/v,stdDeviation:b,"flood-color":x,"flood-opacity":y})]),u[l]=f}e.filter=Ic(f)}}function MC(n,e,r,s){var l=n[r],u,f={gradientUnits:l.global?"userSpaceOnUse":"objectBoundingBox"};if(mh(l))u="linearGradient",f.x1=l.x,f.y1=l.y,f.x2=l.x2,f.y2=l.y2;else if(gh(l))u="radialGradient",f.cx=te(l.x,0.5),f.cy=te(l.y,0.5),f.r=te(l.r,0.5);else return;var c=l.colorStops,p=[];for(var v=0,h=c.length;v<h;++v){var d=dh(c[v].offset)*100+"%",m=c[v].color,g=Zo(m),{color:y,opacity:x}=g,S={offset:d};if(S["stop-color"]=y,x<1)S["stop-opacity"]=x;p.push(sr("stop",v+"",S))}var D=sr(u,"",f,p),b=Pv(D),C=s.gradientCache,A=C[b];if(!A)A=s.zrId+"-g"+s.gradientIdx++,C[b]=A,f.id=A,s.defs[A]=sr(u,A,f,p);e[r]=Ic(A)}function LC(n,e,r,s){var l=n.style[r],u=n.getBoundingRect(),f={},c=l.repeat,p=c==="no-repeat",v=c==="repeat-x",h=c==="repeat-y",d;if(U0(l)){var{imageWidth:m,imageHeight:g}=l,y=void 0,x=l.image;if(K(x))y=x;else if(mV(x))y=x.src;else if(gV(x))y=x.toDataURL();if(typeof Image>"u"){var S="Image width/height must been given explictly in svg-ssr renderer.";We(m,S),We(g,S)}else if(m==null||g==null){var D=function(P,R){if(P){var N=P.elm,O=m||R.width,B=g||R.height;if(P.tag==="pattern"){if(v)B=1,O/=u.width;else if(h)O=1,B/=u.height}if(P.attrs.width=O,P.attrs.height=B,N)N.setAttribute("width",O),N.setAttribute("height",B)}},b=_c(y,null,n,function(P){p||D(E,P),D(d,P)});if(b&&b.width&&b.height)m=m||b.width,g=g||b.height}d=sr("image","img",{href:y,width:m,height:g}),f.width=m,f.height=g}else if(l.svgElement)d=le(l.svgElement),f.width=l.svgWidth,f.height=l.svgHeight;if(!d)return;var C,A;if(p)C=A=1;else if(v)A=1,C=f.width/u.width;else if(h)C=1,A=f.height/u.height;else f.patternUnits="userSpaceOnUse";if(C!=null&&!isNaN(C))f.width=C;if(A!=null&&!isNaN(A))f.height=A;var T=_h(l);T&&(f.patternTransform=T);var E=sr("pattern","",f,[d]),w=Pv(E),L=s.patternCache,M=L[w];if(!M)M=s.zrId+"-p"+s.patternIdx++,L[w]=M,f.id=M,E=s.defs[M]=sr("pattern",M,f,[d]);e[r]=Ic(M)}function xV(n,e,r){var{clipPathCache:s,defs:l}=r,u=s[n.id];if(!u){u=r.zrId+"-c"+r.clipPathIdx++;var f={id:u};s[n.id]=u,l[u]=sr("clipPath",u,f,[yV(n,r)])}e["clip-path"]=Ic(u)}function PC(n){return document.createTextNode(n)}function Us(n,e,r){n.insertBefore(e,r)}function RC(n,e){n.removeChild(e)}function OC(n,e){n.appendChild(e)}function NC(n){return n.parentNode}function kC(n){return n.nextSibling}function t0(n,e){n.textContent=e}var _V=58,Qj=120,Jj=sr("","");function BC(n){return n===void 0}function kn(n){return n!==void 0}function e$(n,e,r){var s={};for(var l=e;l<=r;++l){var u=n[l].key;if(u!==void 0)s[u]=l}return s}function kv(n,e){var r=n.key===e.key,s=n.tag===e.tag;return s&&r}function Bv(n){var e,{children:r,tag:s}=n;if(kn(s)){var l=n.elm=Jy(s);if(i0(Jj,n),U(r))for(e=0;e<r.length;++e){var u=r[e];if(u!=null)OC(l,Bv(u))}else if(kn(n.text)&&!ue(n.text))OC(l,PC(n.text))}else n.elm=PC(n.text);return n.elm}function SV(n,e,r,s,l){for(;s<=l;++s){var u=r[s];if(u!=null)Us(n,Bv(u),e)}}function r0(n,e,r,s){for(;r<=s;++r){var l=e[r];if(l!=null)if(kn(l.tag)){var u=NC(l.elm);RC(u,l.elm)}else RC(n,l.elm)}}function i0(n,e){var r,s=e.elm,l=n&&n.attrs||{},u=e.attrs||{};if(l===u)return;for(r in u){var f=u[r],c=l[r];if(c!==f)if(f===!0)s.setAttribute(r,"");else if(f===!1)s.removeAttribute(r);else if(r==="style")s.style.cssText=f;else if(r.charCodeAt(0)!==Qj)s.setAttribute(r,f);else if(r==="xmlns:xlink"||r==="xmlns")s.setAttributeNS(nV,r,f);else if(r.charCodeAt(3)===_V)s.setAttributeNS(oV,r,f);else if(r.charCodeAt(5)===_V)s.setAttributeNS(bC,r,f);else s.setAttribute(r,f)}for(r in l)if(!(r in u))s.removeAttribute(r)}function t$(n,e,r){var s=0,l=0,u=e.length-1,f=e[0],c=e[u],p=r.length-1,v=r[0],h=r[p],d,m,g,y;while(s<=u&&l<=p)if(f==null)f=e[++s];else if(c==null)c=e[--u];else if(v==null)v=r[++l];else if(h==null)h=r[--p];else if(kv(f,v))mc(f,v),f=e[++s],v=r[++l];else if(kv(c,h))mc(c,h),c=e[--u],h=r[--p];else if(kv(f,h))mc(f,h),Us(n,f.elm,kC(c.elm)),f=e[++s],h=r[--p];else if(kv(c,v))mc(c,v),Us(n,c.elm,f.elm),c=e[--u],v=r[++l];else{if(BC(d))d=e$(e,s,u);if(m=d[v.key],BC(m))Us(n,Bv(v),f.elm);else if(g=e[m],g.tag!==v.tag)Us(n,Bv(v),f.elm);else mc(g,v),e[m]=void 0,Us(n,g.elm,f.elm);v=r[++l]}if(s<=u||l<=p)if(s>u)y=r[p+1]==null?null:r[p+1].elm,SV(n,y,r,l,p);else r0(n,e,s,u)}function mc(n,e){var r=e.elm=n.elm,s=n.children,l=e.children;if(n===e)return;if(i0(n,e),BC(e.text)){if(kn(s)&&kn(l)){if(s!==l)t$(r,s,l)}else if(kn(l)){if(kn(n.text))t0(r,"");SV(r,null,l,0,l.length-1)}else if(kn(s))r0(r,s,0,s.length-1);else if(kn(n.text))t0(r,"")}else if(n.text!==e.text){if(kn(s))r0(r,s,0,s.length-1);t0(r,e.text)}}function FC(n,e){if(kv(n,e))mc(n,e);else{var r=n.elm,s=NC(r);if(Bv(e),s!==null)Us(s,e.elm,kC(r)),r0(s,[n],0,0)}return e}var r$=0,i$=function(){function n(e,r,s){if(this.type="svg",this.configLayer=a$("configLayer"),this.storage=r,this._opts=s=V({},s),this.root=e,this._id="zr"+r$++,this._oldVNode=AC(s.width,s.height),e&&!s.ssr){var l=this._viewport=document.createElement("div");l.style.cssText="position:relative;overflow:hidden";var u=this._svgDom=this._oldVNode.elm=Jy("svg");i0(null,this._oldVNode),l.appendChild(u),e.appendChild(l)}this.resize(s.width,s.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",FC(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return IC(e,Rv(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var r=this.storage.getDisplayList(!0),s=this._width,l=this._height,u=Rv(this._id);u.animation=e.animation,u.willUpdate=e.willUpdate,u.compress=e.compress,u.emphasis=e.emphasis,u.ssr=this._opts.ssr;var f=[],c=this._bgVNode=n$(s,l,this._backgroundColor,u);c&&f.push(c);var p=!e.compress?this._mainVNode=sr("g","main",{},[]):null;this._paintList(r,u,p?p.children:f),p&&f.push(p);var v=W(Me(u.defs),function(m){return u.defs[m]});if(v.length)f.push(sr("defs","defs",{},v));if(e.animation){var h=sV(u.cssNodes,u.cssAnims,{newline:!0});if(h){var d=sr("style","stl",{},[],h);f.push(d)}}return AC(s,l,f,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},Pv(this.renderToVNode({animation:te(e.cssAnimation,!0),emphasis:te(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:te(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,r,s){var l=e.length,u=[],f=0,c,p,v=0;for(var h=0;h<l;h++){var d=e[h];if(!d.invisible){var m=d.__clipPaths,g=m&&m.length||0,y=p&&p.length||0,x=void 0;for(x=Math.max(g-1,y-1);x>=0;x--)if(m&&p&&m[x]===p[x])break;for(var S=y-1;S>x;S--)f--,c=u[f-1];for(var D=x+1;D<g;D++){var b={};xV(m[D],b,r);var C=sr("g","clip-g-"+v++,b,[]);(c?c.children:s).push(C),u[f++]=C,c=C}p=m;var A=IC(d,r);if(A)(c?c.children:s).push(A)}}},n.prototype.resize=function(e,r){var s=this._opts,l=this.root,u=this._viewport;if(e!=null&&(s.width=e),r!=null&&(s.height=r),l&&u)u.style.display="none",e=KS(l,0,s),r=KS(l,1,s),u.style.display="";if(this._width!==e||this._height!==r){if(this._width=e,this._height=r,u){var f=u.style;f.width=e+"px",f.height=r+"px"}if(!wc(this._backgroundColor)){var c=this._svgDom;if(c)c.setAttribute("width",e),c.setAttribute("height",r);var p=this._bgVNode&&this._bgVNode.elm;if(p)p.setAttribute("width",e),p.setAttribute("height",r)}else this.refresh()}},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n.prototype.dispose=function(){if(this.root)this.root.innerHTML="";this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},n.prototype.clear=function(){if(this._svgDom)this._svgDom.innerHTML=null;this._oldVNode=null},n.prototype.toDataURL=function(e){var r=this.renderToString(),s="data:image/svg+xml;";if(e)return r=YA(r),r&&s+"base64,"+r;return s+"charset=UTF-8,"+encodeURIComponent(r)},n}();function a$(n){return function(){}}function n$(n,e,r,s){var l;if(r&&r!=="none")if(l=sr("rect","bg",{width:n,height:e,x:"0",y:"0"}),yh(r))MC({fill:r},l.attrs,"fill",s);else if(wc(r))LC({style:{fill:r},dirty:mt,getBoundingRect:function(){return{width:n,height:e}}},l.attrs,"fill",s);else{var u=Zo(r),{color:f,opacity:c}=u;l.attrs.fill=f,c<1&&(l.attrs["fill-opacity"]=c)}return l}var DV=i$;function zC(n){n.registerPainter("svg",DV)}var AV=Ce(bV(),1),HC=320,o$=160,s$=720;function TV(n){let e=n.trim().replace(/^(?:(?:const|let|var)\s+)?[A-Za-z_$][\w$]*\s*=\s*/,"").replace(/;\s*$/,"");if(!e)throw Error("图表配置为空");let r;try{r=AV.default.parse(e)}catch(f){let c=f instanceof Error?f.message.replace(/^JSON5:\s*/,""):String(f);throw Error(`图表配置不是合法的 JSON:${c}`)}if(!r||typeof r!=="object"||Array.isArray(r))throw Error("图表配置必须是一个对象");let{height:s,...l}=r,u=typeof s==="number"&&Number.isFinite(s)?s:HC;return{option:l,height:Math.min(s$,Math.max(o$,Math.round(u)))}}var l$=new Set(["bar","boxplot","candlestick","effectScatter","funnel","gauge","graph","heatmap","line","parallel","pictorialBar","pie","radar","sankey","scatter","sunburst","themeRiver","tree","treemap"]),Gs=(n)=>Boolean(n)&&typeof n==="object"&&!Array.isArray(n);function a0(n,e){let r=Number.parseInt(n.slice(1),16);return`rgba(${r>>16&255},${r>>8&255},${r&255},${e})`}function GC(n,e,r=!1){return{type:"linear",x:0,y:0,x2:r?1:0,y2:r?0:1,colorStops:[{offset:0,color:n},{offset:1,color:e}]}}var CV=(n)=>n.color!==void 0||Gs(n.itemStyle)&&n.itemStyle.color!==void 0;function EV(n,e=[]){let r=Array.isArray(e)?e:("colors"in e)?e.colors.chartPalette:[],s=Array.isArray(n.series)?n.series:n.series===void 0?[]:[n.series],l=Array.isArray(n.yAxis)?n.yAxis[0]:n.yAxis,u=Gs(l)&&l.type==="category",f=s.filter((v)=>Gs(v)&&v.type==="line").length,c=s.map((v,h)=>{if(!Gs(v))return v;if(typeof v.type==="string"&&!l$.has(v.type))throw Error(`不支持的图表类型:${v.type}`);let d=r.length>0?r[h%r.length]:void 0;if(v.type==="bar"&&v.stack===void 0){let g={...Gs(v.itemStyle)?v.itemStyle:{}};if(g.borderRadius===void 0)g.borderRadius=u?[0,6,6,0]:[6,6,0,0];if(d&&!CV(v))g.color=u?GC(a0(d,0.55),d,!0):GC(d,a0(d,0.55));return{...v,itemStyle:g}}if(v.type==="line"&&v.areaStyle===void 0&&v.stack===void 0&&f<=3){if(!d||CV(v))return v;return{...v,areaStyle:{color:GC(a0(d,f===1?0.24:0.1),a0(d,0))}}}if(v.type==="pie"&&v.radius===void 0)return{...v,radius:["44%","70%"],center:v.center??["50%","55%"]};return v}),p={...n,series:c,aria:{enabled:!0,...Gs(n.aria)?n.aria:{}}};if(n.grid===void 0&&(n.xAxis!==void 0||n.yAxis!==void 0)){let v=Gs(n.title)&&Boolean(n.title.text),h=Gs(n.title)&&Boolean(n.title.subtext),d=n.legend!==void 0;p.grid={top:h?64:v||d?48:12}}return p}var u$={light:{panel:"#ffffff",ink:"#1b1f24",dim:"#5b6068",faint:"#878c94",line:"#e3e2dd",lineStrong:"#cfcdc7"},dark:{panel:"#26282c",ink:"#eceef1",dim:"#b8bcc2",faint:"#83878e",line:"#35383d",lineStrong:"#45484e"}},wV={light:["#2a78d6","#eb6834","#1baf7a","#eda100","#e87ba4","#008300","#4a3aa7","#e34948"],dark:["#3987e5","#d95926","#199e70","#c98500","#d55181","#008300","#9085e9","#e66767"]},f$={light:["#cde2fb","#86b6ef","#3987e5","#1c5cab","#0d366b"],dark:["#184f95","#2a78d6","#5598e7","#9ec5f4","#cde2fb"]},n0=(n,e)=>{let r=typeof n==="string"?n:n.scheme;return e?`basalt-${e}-${r}`:`basalt-${r}`},IV=(n,e)=>{if(typeof n==="object")return[...n.colors.chartPalette];if(e)return[...e.colors.chartPalette];return wV[n]};function Fv(n,e){let r=typeof n==="object"?n:e,s=typeof n==="string"?n:n.scheme,l=r?r.colors.hex:u$[s],u=r?[...r.colors.chartPalette]:wV[s],f=r?[...r.colors.chartSequential]:f$[s],c=r?.fonts?.sans||c$(),p={axisLine:{show:!0,lineStyle:{color:l.lineStrong}},axisTick:{show:!1},axisLabel:{color:l.faint,fontSize:11},splitLine:{show:!0,lineStyle:{color:l.line}},splitArea:{show:!1},nameTextStyle:{color:l.faint,fontSize:11}};return{color:u,backgroundColor:"transparent",textStyle:{fontFamily:c,color:l.dim},title:{left:0,top:0,textStyle:{color:l.ink,fontSize:15,fontWeight:600},subtextStyle:{color:l.faint,fontSize:12},itemGap:6},legend:{top:2,left:"auto",right:56,icon:"circle",itemWidth:8,itemHeight:8,itemGap:16,textStyle:{color:l.dim,fontSize:12},pageTextStyle:{color:l.faint},inactiveColor:l.lineStrong},tooltip:{backgroundColor:s==="dark"?"rgba(38,40,44,0.92)":"rgba(255,255,255,0.94)",borderColor:l.line,borderWidth:1,padding:[10,12],textStyle:{color:l.ink,fontSize:12,fontFamily:c},extraCssText:`border-radius:12px;backdrop-filter:blur(10px);box-shadow:0 12px 32px -12px rgba(0,0,0,${s==="dark"?0.6:0.25});`,axisPointer:{lineStyle:{color:l.lineStrong,type:"dashed"},crossStyle:{color:l.lineStrong},shadowStyle:{color:s==="dark"?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.035)"}}},grid:{left:4,right:8,top:52,bottom:8,outerBoundsMode:"same",outerBoundsContain:"axisLabel"},categoryAxis:{...p,splitLine:{show:!1}},valueAxis:{...p,axisLine:{show:!1}},logAxis:{...p,axisLine:{show:!1}},timeAxis:{...p,splitLine:{show:!1}},line:{symbol:"emptyCircle",symbolSize:7,showSymbol:!1,lineStyle:{width:2.5,cap:"round",join:"round"},emphasis:{focus:"series",lineStyle:{width:3}}},bar:{barMaxWidth:28,barGap:"25%",emphasis:{focus:"series"}},pie:{padAngle:2,percentPrecision:0,itemStyle:{borderColor:l.panel,borderWidth:1,borderRadius:6},labelLine:{length:10,length2:14,smooth:!0,lineStyle:{width:1}},label:{formatter:`{name|{b}}
|
|
55
|
+
{value|{d}%}`,lineHeight:18,rich:{name:{color:l.dim,fontSize:12},value:{color:l.ink,fontSize:13,fontWeight:600}}},emphasis:{scaleSize:6}},scatter:{symbolSize:9,itemStyle:{borderColor:l.panel,borderWidth:1}},radar:{axisName:{color:l.dim},axisLine:{lineStyle:{color:l.line}},splitLine:{lineStyle:{color:l.line}},splitArea:{show:!1},symbolSize:5},funnel:{itemStyle:{borderColor:l.panel,borderWidth:2},label:{color:l.ink}},sankey:{lineStyle:{color:"gradient",opacity:0.35},label:{color:l.ink}},treemap:{itemStyle:{borderColor:l.panel,borderWidth:2,gapWidth:2},breadcrumb:{show:!1}},sunburst:{itemStyle:{borderColor:l.panel,borderWidth:2}},graph:{lineStyle:{color:l.lineStrong},label:{color:l.ink}},gauge:{axisLine:{lineStyle:{color:[[1,l.line]]}},axisLabel:{color:l.faint},detail:{color:l.ink}},candlestick:{itemStyle:{color:u[2],color0:u[7],borderColor:u[2],borderColor0:u[7]}},visualMap:{inRange:{color:f},textStyle:{color:l.dim}},dataZoom:{borderColor:l.line,fillerColor:s==="dark"?"rgba(57,135,229,0.15)":"rgba(42,120,214,0.1)",textStyle:{color:l.faint}},animationDuration:450,animationDurationUpdate:300,animationEasing:"cubicOut"}}function c$(){if(typeof document>"u")return"sans-serif";return getComputedStyle(document.documentElement).getPropertyValue("--font-sans").trim()||"sans-serif"}It([dS,Y1,$1,Q1,C1,b1,D1,J1,$_,U1,ib,bS,ID,H1,AD,sb,nb,qD,s1,sC,Tb,fC,tC,db,jb,Hb,Gb,Vb,mv,Sb,Jp,bb,Nb,Rb,uC,nC,vC,yC,zC]);ru(n0("light"),Fv("light"));ru(n0("dark"),Fv("dark"));var p$=(n)=>n instanceof Error?n.message:String(n);function BFe(n){let e=_(),r=e.useTheme?.(),s=e.useColorScheme?.(),l=r?.resolved??s??"light",u=r?.tokens,f=n0(l,r?.themeID),c=i(null),p=i(null),v=i(f),[h,d]=a(!1),[m,g]=a(HC),[y,x]=a(),[S,D]=a(!0);if(u)ru(f,Fv(l,u));return j(()=>{let b=c.current;if(!b)return;let C=U2(b,v.current,{renderer:"svg"});p.current=C,C.on("finished",()=>D(!1));let A=new ResizeObserver(()=>C.resize());return A.observe(b),()=>{A.disconnect(),C.dispose(),p.current=null}},[]),o(()=>{let b=setTimeout(()=>{let C=p.current;if(!C)return;if(v.current!==f){if(v.current=f,u)ru(f,Fv(l,u));if(typeof C.setTheme==="function")C.setTheme(f)}try{let A=TV(n.code);D(!0);let T=IV(l,u);C.setOption(EV(A.option,T),{notMerge:!0}),g(A.height),d(!0),x(void 0)}catch(A){x(p$(A)),D(!1)}},n.streaming?150:0);return()=>clearTimeout(b)},[n.code,n.streaming,l,f,u]),t(Fr,{title:"数据图表",code:n.code,codeLang:"json",rendered:h,pending:S||n.streaming&&!h,streaming:n.streaming,error:y,children:t("div",{className:"px-3 pt-3 pb-2",children:t("div",{ref:c,role:"img","aria-label":"数据图表",style:{height:m},className:"w-full min-w-0"})})})}export{BFe as EChartsBlock};
|