wiki-viewer 1.4.2 → 1.4.3
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/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +3 -3
- package/.next/standalone/.next/prerender-manifest.json +3 -27
- package/.next/standalone/.next/server/app/_global-error/page.js +2 -2
- package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js +4 -4
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/api/agent/activity/route.js +5 -5
- package/.next/standalone/.next/server/app/api/agent/activity/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/admin/agents/[agentId]/revoke/route.js +6 -6
- package/.next/standalone/.next/server/app/api/agent/admin/agents/[agentId]/revoke/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/admin/agents/route.js +6 -6
- package/.next/standalone/.next/server/app/api/agent/admin/agents/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/admin/registrations/[regId]/approve/route.js +6 -6
- package/.next/standalone/.next/server/app/api/agent/admin/registrations/[regId]/approve/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/admin/registrations/[regId]/deny/route.js +4 -4
- package/.next/standalone/.next/server/app/api/agent/admin/registrations/[regId]/deny/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/admin/registrations/route.js +4 -4
- package/.next/standalone/.next/server/app/api/agent/admin/registrations/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/events/[...path]/route.js +5 -5
- package/.next/standalone/.next/server/app/api/agent/events/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/files/[...path]/route.js +4 -4
- package/.next/standalone/.next/server/app/api/agent/files/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/internal/span/route.js +8 -8
- package/.next/standalone/.next/server/app/api/agent/internal/span/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/settings/route.js +7 -7
- package/.next/standalone/.next/server/app/api/agent/settings/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agent/sidecar/[...path]/route.js +7 -7
- package/.next/standalone/.next/server/app/api/agent/sidecar/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/app-proxy/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/[...all]/route.js +3 -3
- package/.next/standalone/.next/server/app/api/auth/[...all]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/auth-config/route.js +5 -5
- package/.next/standalone/.next/server/app/api/system/auth-config/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/auth-settings/route.js +4 -4
- package/.next/standalone/.next/server/app/api/system/auth-settings/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/browse/route.js +6 -6
- package/.next/standalone/.next/server/app/api/system/browse/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/clear-root/route.js +5 -5
- package/.next/standalone/.next/server/app/api/system/clear-root/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/config/route.js +5 -5
- package/.next/standalone/.next/server/app/api/system/config/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/pins/route.js +4 -4
- package/.next/standalone/.next/server/app/api/system/pins/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/reveal/route.js +4 -4
- package/.next/standalone/.next/server/app/api/system/reveal/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/root-status/route.js +4 -4
- package/.next/standalone/.next/server/app/api/system/root-status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/set-root/route.js +5 -5
- package/.next/standalone/.next/server/app/api/system/set-root/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/app/route.js +6 -6
- package/.next/standalone/.next/server/app/api/wiki/app/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/content/route.js +7 -7
- package/.next/standalone/.next/server/app/api/wiki/content/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/folder/route.js +5 -5
- package/.next/standalone/.next/server/app/api/wiki/folder/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/move/route.js +5 -5
- package/.next/standalone/.next/server/app/api/wiki/move/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/new-file/route.js +5 -5
- package/.next/standalone/.next/server/app/api/wiki/new-file/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/page/route.js +5 -5
- package/.next/standalone/.next/server/app/api/wiki/page/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/route.js +5 -5
- package/.next/standalone/.next/server/app/api/wiki/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/slugs/route.js +5 -5
- package/.next/standalone/.next/server/app/api/wiki/slugs/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/upload/route.js +5 -5
- package/.next/standalone/.next/server/app/api/wiki/upload/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/watch/route.js +6 -6
- package/.next/standalone/.next/server/app/api/wiki/watch/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/page.js +4 -4
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/signin/page.js +9 -4
- package/.next/standalone/.next/server/app/signin/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/signin/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__03h3~3e._.js → [root-of-the-server]__04udrya._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__04g0j8i._.js → [root-of-the-server]__0kdn1le._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0d89o98._.js → src_lib_auth_server_ts_00f4e0h._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/0biy_@better-auth_core_dist_121m_lh._.js +5 -0
- package/.next/standalone/.next/server/chunks/ssr/0dhv_better-auth_dist_adapters_kysely-adapter_index_mjs_08ymlcb._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/0dti_kysely_dist_esm_0-t3o9q._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/0dti_kysely_dist_esm_01._58q._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/0p91_next_0f40gy0._.js +6 -0
- package/.next/standalone/.next/server/chunks/ssr/{0p91_next_dist_0~2d1tl._.js → 0p91_next_dist_10ud_sa._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/0sag_@better-auth_memory-adapter_dist_index_mjs_07-_ka6._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/0ugq_@better-auth_kysely-adapter_dist_bun-sqlite-dialect-DzNwOpKv_mjs_0lruvb8._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/0ugq_@better-auth_kysely-adapter_dist_d1-sqlite-dialect-C2B7YsIT_mjs_03n6~tc._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/0ugq_@better-auth_kysely-adapter_dist_index_mjs_0gi5w.w._.js +4 -0
- package/.next/standalone/.next/server/chunks/ssr/0ugq_@better-auth_kysely-adapter_dist_node-sqlite-dialect_mjs_0l4.y~0._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__026s8~z._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__06mzg2t._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0btcd4o._.js +12 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0c~og-9._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__134_q7l._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0pqaawz._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_051tcva._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0o~d81.._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_app_signin_00yk0vm._.js +452 -0
- package/.next/standalone/.next/server/chunks/ssr/src_app_signin_signin-form_tsx_0eznlbd._.js +3 -0
- package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
- package/.next/standalone/.next/server/middleware-manifest.json +5 -5
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/chunks/09-jtayuhrq~b.js +1 -0
- package/.next/standalone/.next/static/chunks/0uv7ozzpiyp2_.js +1 -0
- package/.next/standalone/.next/static/chunks/135c~rq_ux73w.js +1 -0
- package/.next/standalone/docs/agent-fs-plan.md +65 -7
- package/.next/standalone/package.json +1 -1
- package/.next/standalone/src/app/signin/page.tsx +10 -225
- package/.next/standalone/src/app/signin/signin-form.tsx +238 -0
- package/.next/standalone/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/.next/standalone/.next/server/app/signin.html +0 -1
- package/.next/standalone/.next/server/app/signin.meta +0 -15
- package/.next/standalone/.next/server/app/signin.rsc +0 -23
- package/.next/standalone/.next/server/app/signin.segments/_full.segment.rsc +0 -23
- package/.next/standalone/.next/server/app/signin.segments/_head.segment.rsc +0 -6
- package/.next/standalone/.next/server/app/signin.segments/_index.segment.rsc +0 -7
- package/.next/standalone/.next/server/app/signin.segments/_tree.segment.rsc +0 -3
- package/.next/standalone/.next/server/app/signin.segments/signin/__PAGE__.segment.rsc +0 -9
- package/.next/standalone/.next/server/app/signin.segments/signin.segment.rsc +0 -5
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__088hqzy._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0c147fo._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0z.1v1z._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__12zp2dm._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0exqvyf._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/src_app_signin_page_tsx_1143y49._.js +0 -3
- package/.next/standalone/.next/static/chunks/0-_39e4awbk8y.js +0 -1
- package/.next/standalone/.next/static/chunks/02bxx~2cg~s6~.js +0 -1
- package/.next/standalone/.next/static/chunks/0mj_f8ncf2tks.js +0 -1
- /package/.next/standalone/.next/static/{OwXjVuoXDC_gda_BKji1J → kzOuSAQArtvD7uiAJ6ZLh}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{OwXjVuoXDC_gda_BKji1J → kzOuSAQArtvD7uiAJ6ZLh}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{OwXjVuoXDC_gda_BKji1J → kzOuSAQArtvD7uiAJ6ZLh}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,778116,(t,e,n)=>{e.exports=Array.isArray},505918,(t,e,n)=>{e.exports=t.g&&t.g.Object===Object&&t.g},78974,(t,e,n)=>{var i=t.r(505918),r="object"==typeof self&&self&&self.Object===Object&&self;e.exports=i||r||Function("return this")()},328042,(t,e,n)=>{e.exports=t.r(78974).Symbol},684435,(t,e,n)=>{var i=t.r(328042),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=i?i.toStringTag:void 0;e.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var r=a.call(t);return i&&(e?t[s]=n:delete t[s]),r}},933680,(t,e,n)=>{var i=Object.prototype.toString;e.exports=function(t){return i.call(t)}},416907,(t,e,n)=>{var i=t.r(328042),r=t.r(684435),o=t.r(933680),a=i?i.toStringTag:void 0;e.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?r(t):o(t)}},394022,(t,e,n)=>{e.exports=function(t){return null!=t&&"object"==typeof t}},692558,(t,e,n)=>{var i=t.r(416907),r=t.r(394022);e.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==i(t)}},647562,(t,e,n)=>{var i=t.r(778116),r=t.r(692558),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(t,e){if(i(t))return!1;var n=typeof t;return!!("number"==n||"symbol"==n||"boolean"==n||null==t||r(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},878524,(t,e,n)=>{e.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},462931,(t,e,n)=>{var i=t.r(416907),r=t.r(878524);e.exports=function(t){if(!r(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},118309,(t,e,n)=>{e.exports=t.r(78974)["__core-js_shared__"]},799822,(t,e,n)=>{var i,r=t.r(118309),o=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(t){return!!o&&o in t}},908829,(t,e,n)=>{var i=Function.prototype.toString;e.exports=function(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},143245,(t,e,n)=>{var i=t.r(462931),r=t.r(799822),o=t.r(878524),a=t.r(908829),s=/^\[object .+?Constructor\]$/,l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,h=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(t){return!(!o(t)||r(t))&&(i(t)?h:s).test(a(t))}},679259,(t,e,n)=>{e.exports=function(t,e){return null==t?void 0:t[e]}},581511,(t,e,n)=>{var i=t.r(143245),r=t.r(679259);e.exports=function(t,e){var n=r(t,e);return i(n)?n:void 0}},977902,(t,e,n)=>{e.exports=t.r(581511)(Object,"create")},708867,(t,e,n)=>{var i=t.r(977902);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},447265,(t,e,n)=>{e.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=!!e,e}},150095,(t,e,n)=>{var i=t.r(977902),r=Object.prototype.hasOwnProperty;e.exports=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(e,t)?e[t]:void 0}},884942,(t,e,n)=>{var i=t.r(977902),r=Object.prototype.hasOwnProperty;e.exports=function(t){var e=this.__data__;return i?void 0!==e[t]:r.call(e,t)}},855558,(t,e,n)=>{var i=t.r(977902);e.exports=function(t,e){var n=this.__data__;return this.size+=+!this.has(t),n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this}},298435,(t,e,n)=>{var i=t.r(708867),r=t.r(447265),o=t.r(150095),a=t.r(884942),s=t.r(855558);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},765776,(t,e,n)=>{e.exports=function(){this.__data__=[],this.size=0}},343346,(t,e,n)=>{e.exports=function(t,e){return t===e||t!=t&&e!=e}},641664,(t,e,n)=>{var i=t.r(343346);e.exports=function(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return -1}},915386,(t,e,n)=>{var i=t.r(641664),r=Array.prototype.splice;e.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():r.call(e,n,1),--this.size,!0)}},857624,(t,e,n)=>{var i=t.r(641664);e.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},219301,(t,e,n)=>{var i=t.r(641664);e.exports=function(t){return i(this.__data__,t)>-1}},682947,(t,e,n)=>{var i=t.r(641664);e.exports=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},990543,(t,e,n)=>{var i=t.r(765776),r=t.r(915386),o=t.r(857624),a=t.r(219301),s=t.r(682947);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},764138,(t,e,n)=>{e.exports=t.r(581511)(t.r(78974),"Map")},817416,(t,e,n)=>{var i=t.r(298435),r=t.r(990543),o=t.r(764138);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||r),string:new i}}},365867,(t,e,n)=>{e.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},476501,(t,e,n)=>{var i=t.r(365867);e.exports=function(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}},792520,(t,e,n)=>{var i=t.r(476501);e.exports=function(t){var e=i(this,t).delete(t);return this.size-=!!e,e}},349966,(t,e,n)=>{var i=t.r(476501);e.exports=function(t){return i(this,t).get(t)}},649884,(t,e,n)=>{var i=t.r(476501);e.exports=function(t){return i(this,t).has(t)}},884711,(t,e,n)=>{var i=t.r(476501);e.exports=function(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=+(n.size!=r),this}},158774,(t,e,n)=>{var i=t.r(817416),r=t.r(792520),o=t.r(349966),a=t.r(649884),s=t.r(884711);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},528535,(t,e,n)=>{var i=t.r(158774);function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(r.Cache||i),n}r.Cache=i,e.exports=r},593613,(t,e,n)=>{var i=t.r(528535);e.exports=function(t){var e=i(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},837344,(t,e,n)=>{var i=t.r(593613),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g;e.exports=i(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,function(t,n,i,r){e.push(i?r.replace(o,"$1"):n||t)}),e})},239145,(t,e,n)=>{e.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}},873021,(t,e,n)=>{var i=t.r(328042),r=t.r(239145),o=t.r(778116),a=t.r(692558),s=1/0,l=i?i.prototype:void 0,u=l?l.toString:void 0;e.exports=function t(e){if("string"==typeof e)return e;if(o(e))return r(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-s?"-0":n}},553050,(t,e,n)=>{var i=t.r(873021);e.exports=function(t){return null==t?"":i(t)}},6205,(t,e,n)=>{var i=t.r(778116),r=t.r(647562),o=t.r(837344),a=t.r(553050);e.exports=function(t,e){return i(t)?t:r(t,e)?[t]:o(a(t))}},812232,(t,e,n)=>{var i=t.r(692558),r=1/0;e.exports=function(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-r?"-0":e}},555902,(t,e,n)=>{var i=t.r(6205),r=t.r(812232);e.exports=function(t,e){e=i(e,t);for(var n=0,o=e.length;null!=t&&n<o;)t=t[r(e[n++])];return n&&n==o?t:void 0}},375194,(t,e,n)=>{var i=t.r(555902);e.exports=function(t,e,n){var r=null==t?void 0:i(t,e);return void 0===r?n:r}},236142,(t,e,n)=>{var i=t.r(990543);e.exports=function(){this.__data__=new i,this.size=0}},308354,(t,e,n)=>{e.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},773064,(t,e,n)=>{e.exports=function(t){return this.__data__.get(t)}},292789,(t,e,n)=>{e.exports=function(t){return this.__data__.has(t)}},489160,(t,e,n)=>{var i=t.r(990543),r=t.r(764138),o=t.r(158774);e.exports=function(t,e){var n=this.__data__;if(n instanceof i){var a=n.__data__;if(!r||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},911796,(t,e,n)=>{var i=t.r(990543),r=t.r(236142),o=t.r(308354),a=t.r(773064),s=t.r(292789),l=t.r(489160);function u(t){var e=this.__data__=new i(t);this.size=e.size}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},531766,(t,e,n)=>{e.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}},599568,(t,e,n)=>{var i=t.r(581511);e.exports=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},806016,(t,e,n)=>{var i=t.r(599568);e.exports=function(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},348649,(t,e,n)=>{var i=t.r(806016),r=t.r(343346),o=Object.prototype.hasOwnProperty;e.exports=function(t,e,n){var a=t[e];o.call(t,e)&&r(a,n)&&(void 0!==n||e in t)||i(t,e,n)}},559674,(t,e,n)=>{var i=t.r(348649),r=t.r(806016);e.exports=function(t,e,n,o){var a=!n;n||(n={});for(var s=-1,l=e.length;++s<l;){var u=e[s],c=o?o(n[u],t[u],u,n,t):void 0;void 0===c&&(c=t[u]),a?r(n,u,c):i(n,u,c)}return n}},955337,(t,e,n)=>{e.exports=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}},238591,(t,e,n)=>{var i=t.r(416907),r=t.r(394022);e.exports=function(t){return r(t)&&"[object Arguments]"==i(t)}},410090,(t,e,n)=>{var i=t.r(238591),r=t.r(394022),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable;e.exports=i(function(){return arguments}())?i:function(t){return r(t)&&a.call(t,"callee")&&!s.call(t,"callee")}},756024,(t,e,n)=>{e.exports=function(){return!1}},432816,(t,e,n)=>{var i=t.r(78974),r=t.r(756024),o=n&&!n.nodeType&&n,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?i.Buffer:void 0;e.exports=(s?s.isBuffer:void 0)||r},860059,(t,e,n)=>{var i=/^(?:0|[1-9]\d*)$/;e.exports=function(t,e){var n=typeof t;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==n||"symbol"!=n&&i.test(t))&&t>-1&&t%1==0&&t<e}},784800,(t,e,n)=>{e.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},742112,(t,e,n)=>{var i=t.r(416907),r=t.r(784800),o=t.r(394022),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(t){return o(t)&&r(t.length)&&!!a[i(t)]}},585466,(t,e,n)=>{e.exports=function(t){return function(e){return t(e)}}},91480,(t,e,n)=>{var i=t.r(505918),r=n&&!n.nodeType&&n,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r&&i.process;e.exports=function(){try{var t=o&&o.require&&o.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}()},905330,(t,e,n)=>{var i=t.r(742112),r=t.r(585466),o=t.r(91480),a=o&&o.isTypedArray;e.exports=a?r(a):i},490091,(t,e,n)=>{var i=t.r(955337),r=t.r(410090),o=t.r(778116),a=t.r(432816),s=t.r(860059),l=t.r(905330),u=Object.prototype.hasOwnProperty;e.exports=function(t,e){var n=o(t),c=!n&&r(t),h=!n&&!c&&a(t),p=!n&&!c&&!h&&l(t),d=n||c||h||p,f=d?i(t.length,String):[],g=f.length;for(var y in t)(e||u.call(t,y))&&!(d&&("length"==y||h&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,g)))&&f.push(y);return f}},820092,(t,e,n)=>{var i=Object.prototype;e.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||i)}},216158,(t,e,n)=>{e.exports=function(t,e){return function(n){return t(e(n))}}},394272,(t,e,n)=>{e.exports=t.r(216158)(Object.keys,Object)},668488,(t,e,n)=>{var i=t.r(820092),r=t.r(394272),o=Object.prototype.hasOwnProperty;e.exports=function(t){if(!i(t))return r(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},622914,(t,e,n)=>{var i=t.r(462931),r=t.r(784800);e.exports=function(t){return null!=t&&r(t.length)&&!i(t)}},953349,(t,e,n)=>{var i=t.r(490091),r=t.r(668488),o=t.r(622914);e.exports=function(t){return o(t)?i(t):r(t)}},482701,(t,e,n)=>{var i=t.r(559674),r=t.r(953349);e.exports=function(t,e){return t&&i(e,r(e),t)}},384141,(t,e,n)=>{e.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},128821,(t,e,n)=>{var i=t.r(878524),r=t.r(820092),o=t.r(384141),a=Object.prototype.hasOwnProperty;e.exports=function(t){if(!i(t))return o(t);var e=r(t),n=[];for(var s in t)"constructor"==s&&(e||!a.call(t,s))||n.push(s);return n}},350929,(t,e,n)=>{var i=t.r(490091),r=t.r(128821),o=t.r(622914);e.exports=function(t){return o(t)?i(t,!0):r(t)}},974406,(t,e,n)=>{var i=t.r(559674),r=t.r(350929);e.exports=function(t,e){return t&&i(e,r(e),t)}},615559,(t,e,n)=>{var i=t.r(78974),r=n&&!n.nodeType&&n,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r?i.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(t,e){if(e)return t.slice();var n=t.length,i=s?s(n):new t.constructor(n);return t.copy(i),i}},370592,(t,e,n)=>{e.exports=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}},594430,(t,e,n)=>{e.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var a=t[n];e(a,n,t)&&(o[r++]=a)}return o}},826452,(t,e,n)=>{e.exports=function(){return[]}},241300,(t,e,n)=>{var i=t.r(594430),r=t.r(826452),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;e.exports=a?function(t){return null==t?[]:i(a(t=Object(t)),function(e){return o.call(t,e)})}:r},974764,(t,e,n)=>{var i=t.r(559674),r=t.r(241300);e.exports=function(t,e){return i(t,r(t),e)}},105836,(t,e,n)=>{e.exports=function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}},323073,(t,e,n)=>{e.exports=t.r(216158)(Object.getPrototypeOf,Object)},382665,(t,e,n)=>{var i=t.r(105836),r=t.r(323073),o=t.r(241300),a=t.r(826452);e.exports=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)i(e,o(t)),t=r(t);return e}:a},812538,(t,e,n)=>{var i=t.r(559674),r=t.r(382665);e.exports=function(t,e){return i(t,r(t),e)}},380089,(t,e,n)=>{var i=t.r(105836),r=t.r(778116);e.exports=function(t,e,n){var o=e(t);return r(t)?o:i(o,n(t))}},124144,(t,e,n)=>{var i=t.r(380089),r=t.r(241300),o=t.r(953349);e.exports=function(t){return i(t,o,r)}},229448,(t,e,n)=>{var i=t.r(380089),r=t.r(382665),o=t.r(350929);e.exports=function(t){return i(t,o,r)}},22766,(t,e,n)=>{e.exports=t.r(581511)(t.r(78974),"DataView")},13715,(t,e,n)=>{e.exports=t.r(581511)(t.r(78974),"Promise")},292408,(t,e,n)=>{e.exports=t.r(581511)(t.r(78974),"Set")},843031,(t,e,n)=>{e.exports=t.r(581511)(t.r(78974),"WeakMap")},354700,(t,e,n)=>{var i=t.r(22766),r=t.r(764138),o=t.r(13715),a=t.r(292408),s=t.r(843031),l=t.r(416907),u=t.r(908829),c="[object Map]",h="[object Promise]",p="[object Set]",d="[object WeakMap]",f="[object DataView]",g=u(i),y=u(r),v=u(o),m=u(a),x=u(s),_=l;(i&&_(new i(new ArrayBuffer(1)))!=f||r&&_(new r)!=c||o&&_(o.resolve())!=h||a&&_(new a)!=p||s&&_(new s)!=d)&&(_=function(t){var e=l(t),n="[object Object]"==e?t.constructor:void 0,i=n?u(n):"";if(i)switch(i){case g:return f;case y:return c;case v:return h;case m:return p;case x:return d}return e}),e.exports=_},608252,(t,e,n)=>{var i=Object.prototype.hasOwnProperty;e.exports=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&i.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},739914,(t,e,n)=>{e.exports=t.r(78974).Uint8Array},847294,(t,e,n)=>{var i=t.r(739914);e.exports=function(t){var e=new t.constructor(t.byteLength);return new i(e).set(new i(t)),e}},380579,(t,e,n)=>{var i=t.r(847294);e.exports=function(t,e){var n=e?i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},433983,(t,e,n)=>{var i=/\w*$/;e.exports=function(t){var e=new t.constructor(t.source,i.exec(t));return e.lastIndex=t.lastIndex,e}},81689,(t,e,n)=>{var i=t.r(328042),r=i?i.prototype:void 0,o=r?r.valueOf:void 0;e.exports=function(t){return o?Object(o.call(t)):{}}},507242,(t,e,n)=>{var i=t.r(847294);e.exports=function(t,e){var n=e?i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},931307,(t,e,n)=>{var i=t.r(847294),r=t.r(380579),o=t.r(433983),a=t.r(81689),s=t.r(507242);e.exports=function(t,e,n){var l=t.constructor;switch(e){case"[object ArrayBuffer]":return i(t);case"[object Boolean]":case"[object Date]":return new l(+t);case"[object DataView]":return r(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(t);case"[object RegExp]":return o(t);case"[object Symbol]":return a(t)}}},808690,(t,e,n)=>{var i=t.r(878524),r=Object.create;e.exports=function(){function t(){}return function(e){if(!i(e))return{};if(r)return r(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}()},347914,(t,e,n)=>{var i=t.r(808690),r=t.r(323073),o=t.r(820092);e.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:i(r(t))}},918484,(t,e,n)=>{var i=t.r(354700),r=t.r(394022);e.exports=function(t){return r(t)&&"[object Map]"==i(t)}},806149,(t,e,n)=>{var i=t.r(918484),r=t.r(585466),o=t.r(91480),a=o&&o.isMap;e.exports=a?r(a):i},593683,(t,e,n)=>{var i=t.r(354700),r=t.r(394022);e.exports=function(t){return r(t)&&"[object Set]"==i(t)}},28357,(t,e,n)=>{var i=t.r(593683),r=t.r(585466),o=t.r(91480),a=o&&o.isSet;e.exports=a?r(a):i},882806,(t,e,n)=>{var i=t.r(911796),r=t.r(531766),o=t.r(348649),a=t.r(482701),s=t.r(974406),l=t.r(615559),u=t.r(370592),c=t.r(974764),h=t.r(812538),p=t.r(124144),d=t.r(229448),f=t.r(354700),g=t.r(608252),y=t.r(931307),v=t.r(347914),m=t.r(778116),x=t.r(432816),_=t.r(806149),b=t.r(878524),w=t.r(28357),S=t.r(953349),M=t.r(350929),I="[object Arguments]",T="[object Function]",C="[object Object]",A={};A[I]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[C]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[T]=A["[object WeakMap]"]=!1,e.exports=function t(e,n,L,D,k,P){var O,R=1&n,N=2&n,E=4&n;if(L&&(O=k?L(e,D,k,P):L(e)),void 0!==O)return O;if(!b(e))return e;var z=m(e);if(z){if(O=g(e),!R)return u(e,O)}else{var B=f(e),V=B==T||"[object GeneratorFunction]"==B;if(x(e))return l(e,R);if(B==C||B==I||V&&!k){if(O=N||V?{}:v(e),!R)return N?h(e,s(O,e)):c(e,a(O,e))}else{if(!A[B])return k?e:{};O=y(e,B,R)}}P||(P=new i);var F=P.get(e);if(F)return F;P.set(e,O),w(e)?e.forEach(function(i){O.add(t(i,n,L,i,e,P))}):_(e)&&e.forEach(function(i,r){O.set(r,t(i,n,L,r,e,P))});var G=E?N?d:p:N?M:S,j=z?void 0:G(e);return r(j||e,function(i,r){j&&(i=e[r=i]),o(O,r,t(i,n,L,r,e,P))}),O}},92234,(t,e,n)=>{e.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},680470,(t,e,n)=>{e.exports=function(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(r);++i<r;)o[i]=t[i+e];return o}},55453,(t,e,n)=>{var i=t.r(555902),r=t.r(680470);e.exports=function(t,e){return e.length<2?t:i(t,r(e,0,-1))}},35100,(t,e,n)=>{var i=t.r(6205),r=t.r(92234),o=t.r(55453),a=t.r(812232),s=Object.prototype.hasOwnProperty;e.exports=function(t,e){e=i(e,t);var n=-1,l=e.length;if(!l)return!0;for(;++n<l;){var u=a(e[n]);if("__proto__"===u&&!s.call(t,"__proto__")||("constructor"===u||"prototype"===u)&&n<l-1)return!1}var c=o(t,e);return null==c||delete c[a(r(e))]}},502844,(t,e,n)=>{var i=t.r(416907),r=t.r(323073),o=t.r(394022),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(t){if(!o(t)||"[object Object]"!=i(t))return!1;var e=r(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},930539,(t,e,n)=>{var i=t.r(502844);e.exports=function(t){return i(t)?void 0:t}},351263,(t,e,n)=>{var i=t.r(328042),r=t.r(410090),o=t.r(778116),a=i?i.isConcatSpreadable:void 0;e.exports=function(t){return o(t)||r(t)||!!(a&&t&&t[a])}},601362,(t,e,n)=>{var i=t.r(105836),r=t.r(351263);e.exports=function t(e,n,o,a,s){var l=-1,u=e.length;for(o||(o=r),s||(s=[]);++l<u;){var c=e[l];n>0&&o(c)?n>1?t(c,n-1,o,a,s):i(s,c):a||(s[s.length]=c)}return s}},642498,(t,e,n)=>{var i=t.r(601362);e.exports=function(t){return(null==t?0:t.length)?i(t,1):[]}},865799,(t,e,n)=>{e.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},184414,(t,e,n)=>{var i=t.r(865799),r=Math.max;e.exports=function(t,e,n){return e=r(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=r(o.length-e,0),l=Array(s);++a<s;)l[a]=o[e+a];a=-1;for(var u=Array(e+1);++a<e;)u[a]=o[a];return u[e]=n(l),i(t,this,u)}}},830747,(t,e,n)=>{e.exports=function(t){return function(){return t}}},240046,(t,e,n)=>{e.exports=function(t){return t}},317508,(t,e,n)=>{var i=t.r(830747),r=t.r(599568),o=t.r(240046);e.exports=r?function(t,e){return r(t,"toString",{configurable:!0,enumerable:!1,value:i(e),writable:!0})}:o},911818,(t,e,n)=>{var i=Date.now;e.exports=function(t){var e=0,n=0;return function(){var r=i(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},108749,(t,e,n)=>{var i=t.r(317508);e.exports=t.r(911818)(i)},650016,(t,e,n)=>{var i=t.r(642498),r=t.r(184414),o=t.r(108749);e.exports=function(t){return o(r(t,void 0,i),t+"")}},421499,(t,e,n)=>{var i=t.r(239145),r=t.r(882806),o=t.r(35100),a=t.r(6205),s=t.r(559674),l=t.r(930539),u=t.r(650016),c=t.r(229448);e.exports=u(function(t,e){var n={};if(null==t)return n;var u=!1;e=i(e,function(e){return e=a(e,t),u||(u=e.length>1),e}),s(t,c(t),n),u&&(n=r(n,7,l));for(var h=e.length;h--;)o(n,e[h]);return n})},203010,t=>{"use strict";var e,n,i,r,o,a,s,l,u,c,h,p,d,f,g,y,v,m,x,_,b,w,S,M,I,T,C,A,L,D,k,P,O,R,N,E,z,B,V,F,G,j,W,H,Z,X,U,Y,q,K,Q,$,J,tt,te,tn,ti,tr=t.i(824627),to=t.i(749605),ta=t.i(375194),ts=t.i(421499);let tl="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);for(var tu=new Uint8Array(16),tc=[],th=0;th<256;++th)tc.push((th+256).toString(16).slice(1));let tp=function(t,e,n){if(tl&&!e&&!t)return tl();var i=(t=t||{}).random||(t.rng||function(){if(!x&&!(x="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return x(tu)})();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){n=n||0;for(var r=0;r<16;++r)e[n+r]=i[r];return e}return function(t,e=0){return(tc[t[e+0]]+tc[t[e+1]]+tc[t[e+2]]+tc[t[e+3]]+"-"+tc[t[e+4]]+tc[t[e+5]]+"-"+tc[t[e+6]]+tc[t[e+7]]+"-"+tc[t[e+8]]+tc[t[e+9]]+"-"+tc[t[e+10]]+tc[t[e+11]]+tc[t[e+12]]+tc[t[e+13]]+tc[t[e+14]]+tc[t[e+15]]).toLowerCase()}(i)};t.i(335884);var td=function(t,e){return(td=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function tf(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}td(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var tg=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},ty=new function(){this.browser=new tg,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="u">typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(ty.wxa=!0,ty.touchEventsSupported=!0):"u"<typeof document&&"u">typeof self?ty.worker=!0:!ty.hasGlobalWindow||"Deno"in window?(ty.node=!0,ty.svgSupported=!0):(e=navigator.userAgent,i=(n=ty).browser,r=e.match(/Firefox\/([\d.]+)/),o=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),s=/micromessenger/i.test(e),r&&(i.firefox=!0,i.version=r[1]),o&&(i.ie=!0,i.version=o[1]),a&&(i.edge=!0,i.version=a[1],i.newEdge=+a[1].split(".")[0]>18),s&&(i.weChat=!0),n.svgSupported="u">typeof SVGRect,n.touchEventsSupported="ontouchstart"in window&&!i.ie&&!i.edge,n.pointerEventsSupported="onpointerdown"in window&&(i.edge||i.ie&&+i.version>=11),n.domSupported="u">typeof document,l=document.documentElement.style,n.transform3dSupported=(i.ie&&"transition"in l||i.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),n.transformSupported=n.transform3dSupported||i.ie&&+i.version>=9);var tv="sans-serif",tm="12px "+tv,tx=function(t){var e={};if("u"<typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),t_={createCanvas:function(){return"u">typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!u){var n=t_.createCanvas();u=n&&n.getContext("2d")}if(u)return c!==e&&(c=u.font=e||tm),u.measureText(t);t=t||"",e=e||tm;var i=/((?:\d+)?\.?\d*)px/.exec(e),r=i&&+i[1]||12,o=0;if(e.indexOf("mono")>=0)o=r*t.length;else for(var a=0;a<t.length;a++){var s=tx[t[a]];o+=null==s?r:s*r}return{width:o}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}},tb=tH(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),tw=tH(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),tS=Object.prototype.toString,tM=Array.prototype,tI=tM.forEach,tT=tM.filter,tC=tM.slice,tA=tM.map,tL=(function(){}).constructor,tD=tL?tL.prototype:null,tk="__proto__",tP=2311;function tO(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"u">typeof console&&console.error.apply(console,t)}function tR(t){if(null==t||"object"!=typeof t)return t;var e=t,n=tS.call(t);if("[object Array]"===n){if(!t[en]){e=[];for(var i=0,r=t.length;i<r;i++)e[i]=tR(t[i])}}else if(tw[n]){if(!t[en]){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var i=0,r=t.length;i<r;i++)e[i]=t[i]}}}else if(!tb[n]&&!t[en]&&!t5(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==tk&&(e[a]=tR(t[a]));return e}function tN(t,e,n){if(!t0(e)||!t0(t))return n?tR(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==tk){var r=t[i],o=e[i];!(t0(o)&&t0(r))||tq(o)||tq(r)||t5(o)||t5(r)||t1(o)||t1(r)||o[en]||r[en]?!n&&i in t||(t[i]=tR(e[i])):tN(r,o,n)}return t}function tE(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=tN(n,t[i],e);return n}function tz(t,e){return Object.assign(t,e),t}function tB(t,e,n){for(var i=tX(e),r=0,o=i.length;r<o;r++){var a=i[r];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}function tV(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return -1}function tF(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else tB(t,e,n)}function tG(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function tj(t,e,n){if(t&&e)if(t.forEach&&t.forEach===tI)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function tW(t,e,n){if(!t)return[];if(!e)return t9(t);if(t.map&&t.map===tA)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function tH(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function tZ(t,e,n){if(!t)return[];if(!e)return t9(t);if(t.filter&&t.filter===tT)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function tX(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}t_.createCanvas;var tU=tD&&tK(tD.bind)?tD.call.bind(tD.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(tC.call(arguments)))}};function tY(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(tC.call(arguments)))}}function tq(t){return Array.isArray?Array.isArray(t):"[object Array]"===tS.call(t)}function tK(t){return"function"==typeof t}function tQ(t){return"string"==typeof t}function t$(t){return"[object String]"===tS.call(t)}function tJ(t){return"number"==typeof t}function t0(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function t1(t){return!!tb[tS.call(t)]}function t2(t){return!!tw[tS.call(t)]}function t5(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function t3(t){return null!=t.colorStops}function t4(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function t6(t,e){return null!=t?t:e}function t8(t,e,n){return null!=t?t:null!=e?e:n}function t9(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return tC.apply(t,e)}function t7(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function et(t,e){if(!t)throw Error(e)}function ee(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var en="__ec_primitive__",ei=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return tX(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),er="function"==typeof Map,eo=function(){function t(e){var n=tq(e);this.data=er?new Map:new ei;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&tj(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},t.prototype.keys=function(){var t=this.data.keys();return er?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function ea(t){return new eo(t)}function es(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var r=t.length,i=0;i<e.length;i++)n[i+r]=e[i];return n}function el(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&tz(n,e),n}function eu(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ec(t,e){return t.hasOwnProperty(e)}function eh(){}var ep=180/Math.PI;function ed(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function ef(t,e){return t[0]=e[0],t[1]=e[1],t}function eg(t){return[t[0],t[1]]}function ey(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function ev(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function em(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function ex(t){var e;return Math.sqrt((e=t)[0]*e[0]+e[1]*e[1])}function e_(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function eb(t,e){var n=ex(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function ew(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var eS=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function eM(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function eI(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function eT(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function eC(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var eA=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},eL=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new eA(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new eA(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new eA(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new eA(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new eA(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new eA(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),eD=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),ek=Math.log(2);function eP(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/ek);return t[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var h=0,p=0,d=0;p<s;p++){var f=1<<p;!(f&r)&&(h+=(d%2?-1:1)*t[n][p]*eP(t,e-1,c,u,r|f,o),d++)}return o[a]=h,h}function eO(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=eP(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*eP(n,7,+(0===a),1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var eR="___zrEVENTSAVED",eN=[];function eE(t,e,n,i,r){if(e.getBoundingClientRect&&ty.domSupported&&!ez(e)){var o=e[eR]||(e[eR]={}),a=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,p=c.left,d=c.top;a.push(p,d),l=l&&o&&p===o[h]&&d===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?eO(s,a):eO(a,s))}(function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,o),o,r);if(a)return a(t,n,i),!0}return!1}function ez(t){return"CANVAS"===t.nodeName.toUpperCase()}var eB=/([&<>"'])/g,eV={"&":"&","<":"<",">":">",'"':""","'":"'"};function eF(t){return null==t?"":(t+"").replace(eB,function(t,e){return eV[e]})}var eG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ej=[],eW=ty.browser.firefox&&39>+ty.browser.version.split(".")[0];function eH(t,e,n,i){return n=n||{},i?eZ(t,e,n):eW&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):eZ(t,e,n),n}function eZ(t,e,n){if(ty.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(ez(t)){var o=t.getBoundingClientRect();n.zrX=i-o.left,n.zrY=r-o.top;return}if(eE(ej,t,i,r)){n.zrX=ej[0],n.zrY=ej[1];return}}n.zrX=n.zrY=0}function eX(t){return t||window.event}function eU(t,e,n){if(null!=(e=eX(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&eH(t,r,e,n)}else{eH(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&eG.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function eY(t,e,n,i){t.addEventListener(e,n,i)}var eq=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function eK(t){return 2===t.which||3===t.which}var eQ=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=eH(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in eJ)if(eJ.hasOwnProperty(e)){var n=eJ[e](this._track,t);if(n)return n}},t}();function e$(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var eJ={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=e$(i)/e$(r);isFinite(o)||(o=1),e.pinchScale=o;var a=[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function e0(){return[1,0,0,1,0,0]}function e1(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function e2(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function e5(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function e3(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function e4(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=r*h+s*c,t[1]=-r*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-i[0])+c*(u-i[1])+i[0],t[5]=h*(u-i[1])-c*(a-i[0])+i[1],t}function e6(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function e8(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}var e9=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),e7=Math.min,nt=Math.max,ne=new e9,nn=new e9,ni=new e9,nr=new e9,no=new e9,na=new e9,ns=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=e7(t.x,this.x),n=e7(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=nt(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=nt(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=e0();return e3(i,i,[-this.x,-this.y]),e6(i,i,[e,n]),e3(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this.x,r=this.x+this.width,o=this.y,a=this.y+this.height,s=e.x,l=e.x+e.width,u=e.y,c=e.y+e.height,h=!(r<s||l<i||a<u||c<o);if(n){var p=1/0,d=0,f=Math.abs(r-s),g=Math.abs(l-i),y=Math.abs(a-u),v=Math.abs(c-o),m=Math.min(f,g),x=Math.min(y,v);r<s||l<i?m>d&&(d=m,f<g?e9.set(na,-f,0):e9.set(na,g,0)):m<p&&(p=m,f<g?e9.set(no,f,0):e9.set(no,-g,0)),a<u||c<o?x>d&&(d=x,y<v?e9.set(na,0,-y):e9.set(na,0,v)):m<p&&(p=m,y<v?e9.set(no,0,y):e9.set(no,0,-v))}return n&&e9.copy(n,h?no:na),h},t.prototype.contain=function(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(!i){e!==n&&t.copy(e,n);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ne.x=ni.x=n.x,ne.y=nr.y=n.y,nn.x=nr.x=n.x+n.width,nn.y=ni.y=n.y+n.height,ne.transform(i),nr.transform(i),nn.transform(i),ni.transform(i),e.x=e7(ne.x,nn.x,ni.x,nr.x),e.y=e7(ne.y,nn.y,ni.y,nr.y);var l=nt(ne.x,nn.x,ni.x,nr.x),u=nt(ne.y,nn.y,ni.y,nr.y);e.width=l-e.x,e.height=u-e.y},t}(),nl="silent";function nu(){eq(this.event)}var nc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return tf(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(eD),nh=function(t,e){this.x=t,this.y=e},np=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],nd=new ns(0,0,0,0),nf=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new nh(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new nc,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new eL(a),a}return tf(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(tj(np,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=ny(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new nh(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new nh(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r,o="on"+e,a={type:e,event:n,target:(r=t).target,topTarget:r.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:nu};i&&(i[o]&&(a.cancelBubble=!!i[o].call(i,a)),i.trigger(e,a),i=i.__hostTarget?i.__hostTarget:i.parent,!a.cancelBubble););!a.cancelBubble&&(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,a),t.trigger&&t.trigger(e,a)}))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new nh(t,e);if(ng(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new ns(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(nd.copy(c.getBoundingRect()),c.transform&&nd.applyTransform(c.transform),nd.intersect(l)&&o.push(c))}if(o.length){for(var h=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=h)if(ng(o,r,t+d*Math.cos(f),e+d*Math.sin(f),n),r.target)return r}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new eQ);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new nh;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(eD);function ng(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0),i=i.__hostTarget||i.parent}return!r||nl}return!1}(a,n,i))&&(e.topTarget||(e.topTarget=a),s!==nl)){e.target=a;break}}}function ny(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}function nv(t,e,n,i){var r=e+1;if(r===n)return 1;if(0>i(t[r++],t[e])){for(;r<n&&0>i(t[r],t[r-1]);)r++;var o=t,a=e,s=r;for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function nm(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)0>r(a,t[o=s+l>>>1])?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function nx(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&0>=o(t,e[n+r-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function n_(t,e,n,i,r,o){var a=0,s=0,l=1;if(0>o(t,e[n+r])){for(s=r+1;l<s&&0>o(t,e[n+r-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);0>o(t,e[n+c])?l=c:a=c+1}return l}function nb(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32){o=nv(t,n,i,e),nm(t,n,i,n+o,e);return}var a=function(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],c=n[s+1],h=i[s+1];i[s]=u+h,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var p=n_(t[c],t,l,u,0,e);l+=p,0==(u-=p)||0!==(h=nx(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,i,o,s){var l,u,c,h=0;for(h=0;h<i;h++)a[h]=t[n+h];var p=0,d=o,f=n;if(t[f++]=t[d++],0==--s){for(h=0;h<i;h++)t[f+h]=a[p+h];return}if(1===i){for(h=0;h<s;h++)t[f+h]=t[d+h];t[f+s]=a[p];return}for(var g=r;;){l=0,u=0,c=!1;do if(0>e(t[d],a[p])){if(t[f++]=t[d++],u++,l=0,0==--s){c=!0;break}}else if(t[f++]=a[p++],l++,u=0,1==--i){c=!0;break}while((l|u)<g)if(c)break;do{if(0!==(l=n_(t[d],a,p,i,0,e))){for(h=0;h<l;h++)t[f+h]=a[p+h];if(f+=l,p+=l,(i-=l)<=1){c=!0;break}}if(t[f++]=t[d++],0==--s){c=!0;break}if(0!==(u=nx(a[p],t,d,s,0,e))){for(h=0;h<u;h++)t[f+h]=t[d+h];if(f+=u,d+=u,0==(s-=u)){c=!0;break}}if(t[f++]=a[p++],1==--i){c=!0;break}g--}while(l>=7||u>=7)if(c)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(h=0;h<s;h++)t[f+h]=t[d+h];t[f+s]=a[p]}else if(0===i)throw Error();else for(h=0;h<i;h++)t[f+h]=a[p+h]}(l,u,c,h):function(n,i,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+i-1,c=s-1,h=o+s-1,p=0,d=0;if(t[h--]=t[u--],0==--i){for(l=0,p=h-(s-1);l<s;l++)t[p+l]=a[l];return}if(1===s){for(h-=i,u-=i,d=h+1,p=u+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];t[h]=a[c];return}for(var f=r;;){var g=0,y=0,v=!1;do if(0>e(a[c],t[u])){if(t[h--]=t[u--],g++,y=0,0==--i){v=!0;break}}else if(t[h--]=a[c--],y++,g=0,1==--s){v=!0;break}while((g|y)<f)if(v)break;do{if(0!=(g=i-n_(a[c],t,n,i,i-1,e))){for(h-=g,u-=g,i-=g,d=h+1,p=u+1,l=g-1;l>=0;l--)t[d+l]=t[p+l];if(0===i){v=!0;break}}if(t[h--]=a[c--],1==--s){v=!0;break}if(0!=(y=s-nx(t[u],a,0,s,s-1,e))){for(h-=y,c-=y,s-=y,d=h+1,p=c+1,l=0;l<y;l++)t[d+l]=a[p+l];if(s<=1){v=!0;break}}if(t[h--]=t[u--],0==--i){v=!0;break}f--}while(g>=7||y>=7)if(v)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(h-=i,u-=i,d=h+1,p=u+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];t[h]=a[c]}else if(0===s)throw Error();else for(l=0,p=h-(s-1);l<s;l++)t[p+l]=a[l]}(l,u,c,h))}return n=[],i=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]<i[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,i[o]=e,o+=1}}}(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=nv(t,n,i,e))<s){var l=r;l>s&&(l=s),nm(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r)a.forceMergeRuns()}}tj(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){nf.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=ny(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||ew(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var nw=!1;function nS(){nw||(nw=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function nM(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var nI=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=nM}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,nb(n,nM)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else e&&e.length?t.__clipPaths=e:t.__clipPaths&&t.__clipPaths.length>0&&(t.__clipPaths=[]),isNaN(t.z)&&(nS(),t.z=0),isNaN(t.z2)&&(nS(),t.z2=0),isNaN(t.zlevel)&&(nS(),t.zlevel=0),this._displayList[this._displayListLen++]=t;var u=t.getDecalElement&&t.getDecalElement();u&&this._updateAndAddDisplayable(u,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var i=tV(this._roots,t);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();_=ty.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var nT={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*Math.PI*(t-e)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1)?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)):n*Math.pow(2,-10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)*.5+1},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){return(t*=2)<1?t*t*(3.5949095*t-2.5949095)*.5:.5*((t-=2)*t*(3.5949095*t+2.5949095)+2)},bounceIn:function(t){return 1-nT.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*nT.bounceIn(2*t):.5*nT.bounceOut(2*t-1)+.5}},nC=Math.pow,nA=Math.sqrt,nL=nA(3),nD=1/3,nk=ed(),nP=ed(),nO=ed();function nR(t){return t>-1e-8&&t<1e-8}function nN(t){return t>1e-8||t<-1e-8}function nE(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function nz(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function nB(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,p=l*l-3*s*u,d=0;if(nR(c)&&nR(h))if(nR(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[d++]=f)}else{var g=h*h-4*c*p;if(nR(g)){var y=h/c,f=-s/a+y,v=-y/2;f>=0&&f<=1&&(o[d++]=f),v>=0&&v<=1&&(o[d++]=v)}else if(g>0){var m=nA(g),x=c*s+1.5*a*(-h+m),_=c*s+1.5*a*(-h-m),f=(-s-((x=x<0?-nC(-x,nD):nC(x,nD))+(_=_<0?-nC(-_,nD):nC(_,nD))))/(3*a);f>=0&&f<=1&&(o[d++]=f)}else{var b=Math.acos((2*c*s-3*a*h)/(2*nA(c*c*c)))/3,w=nA(c),S=Math.cos(b),f=(-s-2*w*S)/(3*a),v=(-s+w*(S+nL*Math.sin(b)))/(3*a),M=(-s+w*(S-nL*Math.sin(b)))/(3*a);f>=0&&f<=1&&(o[d++]=f),v>=0&&v<=1&&(o[d++]=v),M>=0&&M<=1&&(o[d++]=M)}}return d}function nV(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(nR(a)){if(nN(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(nR(c))r[0]=-o/(2*a);else if(c>0){var h=nA(c),u=(-o+h)/(2*a),p=(-o-h)/(2*a);u>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}function nF(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function nG(t,e,n,i,r,o,a,s,l,u,c){var h,p,d,f,g,y=.005,v=1/0;nk[0]=l,nk[1]=u;for(var m=0;m<1;m+=.05)nP[0]=nE(t,n,r,a,m),nP[1]=nE(e,i,o,s,m),(f=eS(nk,nP))<v&&(h=m,v=f);v=1/0;for(var x=0;x<32&&!(y<1e-4);x++)p=h-y,d=h+y,nP[0]=nE(t,n,r,a,p),nP[1]=nE(e,i,o,s,p),f=eS(nP,nk),p>=0&&f<v?(h=p,v=f):(nO[0]=nE(t,n,r,a,d),nO[1]=nE(e,i,o,s,d),g=eS(nO,nk),d<=1&&g<v?(h=d,v=g):y*=.5);return c&&(c[0]=nE(t,n,r,a,h),c[1]=nE(e,i,o,s,h)),nA(v)}function nj(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function nW(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function nH(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function nZ(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function nX(t,e,n,i,r,o,a,s,l){var u,c=.005,h=1/0;nk[0]=a,nk[1]=s;for(var p=0;p<1;p+=.05){nP[0]=nj(t,n,r,p),nP[1]=nj(e,i,o,p);var d=eS(nk,nP);d<h&&(u=p,h=d)}h=1/0;for(var f=0;f<32&&!(c<1e-4);f++){var g=u-c,y=u+c;nP[0]=nj(t,n,r,g),nP[1]=nj(e,i,o,g);var d=eS(nP,nk);if(g>=0&&d<h)u=g,h=d;else{nO[0]=nj(t,n,r,y),nO[1]=nj(e,i,o,y);var v=eS(nO,nk);y<=1&&v<h?(u=y,h=v):c*=.5}}return l&&(l[0]=nj(t,n,r,u),l[1]=nj(e,i,o,u)),nA(h)}var nU=/cubic-bezier\(([0-9,\.e ]+)\)/;function nY(t){var e=t&&nU.exec(t);if(e){var n=e[1].split(","),i=+ee(n[0]),r=+ee(n[1]),o=+ee(n[2]),a=+ee(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:nB(0,i,o,1,t,s)&&nE(0,r,a,1,s[0])}}}var nq=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||eh,this.ondestroy=t.ondestroy||eh,this.onrestart=t.onrestart||eh,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r)if(!this.loop)return!0;else this._startTime=t-i%n,this._pausedTime=0,this.onrestart();return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=tK(t)?t:nT[t]||nY(t)},t}(),nK=function(t){this.value=t},nQ=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new nK(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),n$=function(){function t(t){this._list=new nQ,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new nK(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),nJ={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 n0(t){return(t=Math.round(t))<0?0:t>255?255:t}function n1(t){return t<0?0:t>1?1:t}function n2(t){return t.length&&"%"===t.charAt(t.length-1)?n0(parseFloat(t)/100*255):n0(parseInt(t,10))}function n5(t){return t.length&&"%"===t.charAt(t.length-1)?n1(parseFloat(t)/100):n1(parseFloat(t))}function n3(t,e,n){return(n<0?n+=1:n>1&&(n-=1),6*n<1)?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function n4(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function n6(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var n8=new n$(20),n9=null;function n7(t,e){n9&&n6(n9,e),n9=n8.put(t,n9||e.slice())}function it(t,e){if(t){e=e||[];var n=n8.get(t);if(n)return n6(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in nJ)return n6(e,nJ[i]),n7(t,e),e;var r=i.length;if("#"===i.charAt(0)){if(4===r||5===r){var o=parseInt(i.slice(1,4),16);return o>=0&&o<=4095?(n4(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===r?parseInt(i.slice(4),16)/15:1),n7(t,e),e):void n4(e,0,0,0,1)}if(7===r||9===r){var o=parseInt(i.slice(1,7),16);return o>=0&&o<=0xffffff?(n4(e,(0xff0000&o)>>16,(65280&o)>>8,255&o,9===r?parseInt(i.slice(7),16)/255:1),n7(t,e),e):void n4(e,0,0,0,1)}return}var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===r){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?n4(e,+u[0],+u[1],+u[2],1):n4(e,0,0,0,1);c=n5(u.pop());case"rgb":if(u.length>=3)return n4(e,n2(u[0]),n2(u[1]),n2(u[2]),3===u.length?c:n5(u[3])),n7(t,e),e;return void n4(e,0,0,0,1);case"hsla":if(4!==u.length)return void n4(e,0,0,0,1);return u[3]=n5(u[3]),ie(u,e),n7(t,e),e;case"hsl":if(3!==u.length)return void n4(e,0,0,0,1);return ie(u,e),n7(t,e),e;default:return}}n4(e,0,0,0,1)}}function ie(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=n5(t[1]),r=n5(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return n4(e=e||[],n0(255*n3(a,o,n+1/3)),n0(255*n3(a,o,n)),n0(255*n3(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function ii(t,e){var n=it(t);if(n){for(var i=0;i<3;i++)e<0?n[i]=n[i]*(1-e)|0:n[i]=(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return is(n,4===n.length?"rgba":"rgb")}}function ir(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i,r,o,a,s=t*(e.length-1),l=Math.floor(s),u=Math.ceil(s),c=e[l],h=e[u],p=s-l;return n[0]=n0((i=c[0],i+(h[0]-i)*p)),n[1]=n0((r=c[1],r+(h[1]-r)*p)),n[2]=n0((o=c[2],o+(h[2]-o)*p)),n[3]=n1((a=c[3],a+(h[3]-a)*p)),n}}function io(t,e,n,i){var r,o=it(t);if(t)return o=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-h:r===s?e=1/3+c-p:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}(o),null!=e&&(o[0]=(r=Math.round(r=e))<0?0:r>360?360:r),null!=n&&(o[1]=n5(n)),null!=i&&(o[2]=n5(i)),is(ie(o),"rgba")}function ia(t,e){var n=it(t);if(n&&null!=e)return n[3]=n1(e),is(n,"rgba")}function is(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}function il(t,e){var n=it(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var iu=new n$(100);function ic(t){if(tQ(t)){var e=iu.get(t);return e||(e=ii(t,-.1),iu.put(t,e)),e}if(t3(t)){var n=tz({},t);return n.colorStops=tW(t.colorStops,function(t){return{offset:t.offset,color:ii(t.color,-.1)}}),n}return t}var ih=t.i(920688),ip=Math.round;function id(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=it(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function ig(t){return t<1e-4&&t>-1e-4}function iy(t){return ip(1e3*t)/1e3}function iv(t){return ip(1e4*t)/1e4}var im={left:"start",right:"end",center:"middle",middle:"middle"};function ix(t){return t&&!!t.image}function i_(t){return ix(t)||t&&!!t.svgElement}function ib(t){return"linear"===t.type}function iw(t){return"radial"===t.type}function iS(t){return t&&("linear"===t.type||"radial"===t.type)}function iM(t){return"url(#"+t+")"}function iI(t){var e=t.getGlobalScale();return Math.max(Math.ceil(Math.log(Math.max(e[0],e[1]))/Math.log(10)),1)}function iT(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*ep,r=t6(t.scaleX,1),o=t6(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),(1!==r||1!==o)&&l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+ip(a*ep)+"deg, "+ip(s*ep)+"deg)"),l.join(" ")}var iC=ty.hasGlobalWindow&&tK(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:void 0!==ih.Buffer?function(t){return ih.Buffer.from(t).toString("base64")}:function(t){return null},iA=Array.prototype.slice;function iL(t,e,n,i){for(var r,o=e.length,a=0;a<o;a++)t[a]=(r=e[a],(n[a]-r)*i+r);return t}function iD(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function ik(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function iP(t){if(tG(t)){var e=t.length;if(tG(t[0])){for(var n=[],i=0;i<e;i++)n.push(iA.call(t[i]));return n}return iA.call(t)}return t}function iO(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function iR(t){return 4===t||5===t}function iN(t){return 1===t||2===t}var iE=[0,0,0,0],iz=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(tG(e)){var l=tG(e&&e[0])?2:1;a=l,(1!==l||tJ(e[0]))&&(2!==l||tJ(e[0][0]))||(o=!0)}else if(tJ(e)&&e==e)a=0;else if(tQ(e))if(isNaN(+e)){var u=it(e);u&&(s=u,a=3)}else a=0;else if(t3(e)){var c=tz({},s);c.colorStops=tW(e.colorStops,function(t){return{offset:t.offset,color:it(t.color)}}),ib(e)?a=4:iw(e)&&(a=5),s=c}0===r?this.valType=a:(a!==this.valType||6===a)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=tK(n)?n:nT[n]||nY(n)),i.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=iN(i),l=iR(i),u=0;u<r;u++){var c=n[u],h=c.value,p=o.value;c.percent=c.time/t,!a&&(s&&u!==r-1?function(t,e,n){if(t.push&&e.push){var i=t.length,r=e.length;if(i!==r)if(i>r)t.length=r;else for(var o=i;o<r;o++)t.push(1===n?e[o]:iA.call(e[o]));for(var a=t[0]&&t[0].length,o=0;o<t.length;o++)if(1===n)isNaN(t[o])&&(t[o]=e[o]);else for(var s=0;s<a;s++)isNaN(t[o][s])&&(t[o][s]=e[o][s])}}(h,p,i):l&&function(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}(h.colorStops,p.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-d:3===i?n[u].additiveValue=iD([],n[u].value,d,-1):iN(i)&&(n[u].additiveValue=1===i?iD([],n[u].value,d,-1):ik([],n[u].value,d,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=3===s,p=this._lastFr,d=Math.min;if(1===u)i=r=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=d(p+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;n<u&&!(l[n].percent>e);n++);n=d(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:d((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var y=o?this._additiveValue:h?iE:t[c];if((iN(s)||h)&&!y&&(y=this._additiveValue=[]),this.discrete)t[c]=g<1?i.rawValue:r.rawValue;else if(iN(s))1===s?iL(y,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s,l=0;l<o;l++)t[a][l]=(s=e[a][l],(n[a][l]-s)*i+s)}}(y,i[a],r[a],g);else if(iR(s)){var v,m,x,_,b,w=i[a],S=r[a],M=4===s;(t[c]={type:M?"linear":"radial",x:(v=w.x,(S.x-v)*g+v),y:(m=w.y,(S.y-m)*g+m),colorStops:tW(w.colorStops,function(t,e){var n,i=S.colorStops[e];return{offset:(n=t.offset,(i.offset-n)*g+n),color:iO(iL([],t.color,i.color,g))}}),global:S.global},M)?(t[c].x2=(x=w.x2,(S.x2-x)*g+x),t[c].y2=(_=w.y2,(S.y2-_)*g+_)):t[c].r=(b=w.r,(S.r-b)*g+b)}else if(h)iL(y,i[a],r[a],g),o||(t[c]=iO(y));else{var I,T=(I=i[a],(r[a]-I)*g+I);o?this._additiveValue=T:t[c]=T}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(it(t[n],iE),iD(iE,iE,i,1),t[n]=iO(iE)):1===e?iD(t[n],t[n],i,1):2===e&&ik(t[n],t[n],i,1)},t}(),iB=function(){function t(t,e,n,i){(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i)?tO("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,tX(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new iz(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,3===u.valType&&l&&(l=iO(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,iP(l),i),this._trackKeys.push(a)}s.addKeyframe(t,iP(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new nq({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(var o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(var o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return tW(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(!(!o||o.isFinished())){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=iP(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||tX(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();function iV(){return new Date().getTime()}var iF=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,n.stage=(e=e||{}).stage||{},n}return tf(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=iV()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)&&(i.ondestroy(),this.removeClip(i)),i=r}this._time=e,!t&&(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,_(function e(){t._running&&(_(e),t._paused||t.update())})},e.prototype.start=function(){this._running||(this._time=iV(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=iV(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=iV()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new iB(t,e.loop);return this.addAnimator(n),n},e}(eD),iG=ty.domSupported,ij=(p={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},d=tW(h=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],function(t){var e=t.replace("mouse","pointer");return p.hasOwnProperty(e)?e:t}),{mouse:h,touch:["touchstart","touchend","touchmove"],pointer:d}),iW=["mousemove","mouseup"],iH=["pointermove","pointerup"],iZ=!1;function iX(t){var e=t.pointerType;return"pen"===e||"touch"===e}function iU(t){t&&(t.zrByTouch=!0)}function iY(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var iq=function(t,e){this.stopPropagation=eh,this.stopImmediatePropagation=eh,this.preventDefault=eh,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},iK={mousedown:function(t){t=eU(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=eU(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=eU(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){iY(this,(t=eU(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){iZ=!0,t=eU(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){iZ||(t=eU(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){iU(t=eU(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),iK.mousemove.call(this,t),iK.mousedown.call(this,t)},touchmove:function(t){iU(t=eU(this.dom,t)),this.handler.processGesture(t,"change"),iK.mousemove.call(this,t)},touchend:function(t){iU(t=eU(this.dom,t)),this.handler.processGesture(t,"end"),iK.mouseup.call(this,t),new Date-this.__lastTouchMoment<300&&iK.click.call(this,t)},pointerdown:function(t){iK.mousedown.call(this,t)},pointermove:function(t){iX(t)||iK.mousemove.call(this,t)},pointerup:function(t){iK.mouseup.call(this,t)},pointerout:function(t){iX(t)||iK.mouseout.call(this,t)}};tj(["click","dblclick","contextmenu"],function(t){iK[t]=function(e){e=eU(this.dom,e),this.trigger(t,e)}});var iQ={pointermove:function(t){iX(t)||iQ.mousemove.call(this,t)},pointerup:function(t){iQ.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function i$(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,eY(t.domTarget,e,n,i)}function iJ(t){var e,n,i,r=t.mounted;for(var o in r)r.hasOwnProperty(o)&&(e=t.domTarget,n=r[o],i=t.listenerOpts[o],e.removeEventListener(o,n,i));t.mounted={}}var i0=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},i1=function(t){function e(e,n){var i,r,o=t.call(this)||this;return o.__pointerCapturing=!1,o.dom=e,o.painterRoot=n,o._localHandlerScope=new i0(e,iK),iG&&(o._globalHandlerScope=new i0(document,iQ)),r=(i=o._localHandlerScope).domHandlers,ty.pointerEventsSupported?tj(ij.pointer,function(t){i$(i,t,function(e){r[t].call(o,e)})}):(ty.touchEventsSupported&&tj(ij.touch,function(t){i$(i,t,function(e){r[t].call(o,e),i.touching=!0,null!=i.touchTimer&&(clearTimeout(i.touchTimer),i.touchTimer=null),i.touchTimer=setTimeout(function(){i.touching=!1,i.touchTimer=null},700)})}),tj(ij.mouse,function(t){i$(i,t,function(e){e=eX(e),i.touching||r[t].call(o,e)})})),o}return tf(e,t),e.prototype.dispose=function(){iJ(this._localHandlerScope),iG&&iJ(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,iG&&this.__pointerCapturing^t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){ty.pointerEventsSupported?tj(iH,n):ty.touchEventsSupported||tj(iW,n);function n(n){i$(e,n,function(i){if(!iY(t,(i=eX(i)).target)){var r;r=i,i=eU(t.dom,new iq(t,r),!0),e.domHandlers[n].call(t,i)}},{capture:!0})}}(this,e):iJ(e)}},e}(eD),i2=1;ty.hasGlobalWindow&&(i2=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var i5=i2,i3="#333",i4="#ccc";function i6(t){return t>5e-5||t<-5e-5}var i8=[],i9=[],i7=e0(),rt=Math.abs,re=function(){var t;function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return i6(this.rotation)||i6(this.x)||i6(this.y)||i6(this.scaleX-1)||i6(this.scaleY-1)||i6(this.skewX)||i6(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(e1(n),this.invTransform=null);return}n=n||e0(),e?this.getLocalTransform(n):e1(n),t&&(e?e5(n,t,n):e2(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(i8);var n=i8[0]<0?-1:1,i=i8[1]<0?-1:1,r=((i8[0]-n)*e+n)/i8[0]||0,o=((i8[1]-i)*e+i)/i8[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||e0(),e8(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||e0(),e5(i9,t.invTransform,e),e=i9);var n=this.originX,i=this.originY;(n||i)&&(i7[4]=n,i7[5]=i,e5(i9,e,i7),i9[4]-=n,i9[5]-=i,e=i9),this.setLocalTransform(e)}},e.prototype.getGlobalScale=function(t){var e=this.transform;return(t=t||[],e)?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1])):(t[0]=1,t[1]=1),t},e.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&eI(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&eI(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&rt(t[0]-1)>1e-10&&rt(t[3]-1)>1e-10?Math.sqrt(rt(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){ri(this,t)},e.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-h*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=h*o,l&&e4(e,e,l),e[4]+=n+u,e[5]+=i+c,e},e.initDefaultProps=void((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0),e}(),rn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ri(t,e){for(var n=0;n<rn.length;n++){var i=rn[n];t[i]=e[i]}}var rr={};function ro(t,e){var n=rr[e=e||tm];n||(n=rr[e]=new n$(500));var i=n.get(t);return null==i&&(i=t_.measureText(t,e).width,n.put(t,i)),i}function ra(t,e,n,i){var r=ro(t,e),o=rc(e);return new ns(rl(0,r,n),ru(0,o,i),r,o)}function rs(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return ra(r[0],e,n,i);for(var o=new ns(0,0,0,0),a=0;a<r.length;a++){var s=ra(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function rl(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function ru(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function rc(t){return ro("国",t)}function rh(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function rp(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=rh(i[0],n.width),u+=rh(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var rd="__zr_normal__",rf=rn.concat(["ignore"]),rg=tH(rn,function(t,e){return t[e]=!0,t},{ignore:!1}),ry={},rv=new ns(0,0,0,0),rm=function(){function t(t){this.id=tP++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){n.layoutRect?rv.copy(n.layoutRect):rv.copy(this.getBoundingRect()),i||rv.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ry,n,rv):rp(ry,n,rv),r.x=ry.x,r.y=ry.y,o=ry.align,a=ry.verticalAlign;var u=n.origin;if(u&&null!=n.rotation){var c=void 0,h=void 0;"center"===u?(c=.5*rv.width,h=.5*rv.height):(c=rh(u[0],rv.width),h=rh(u[1],rv.height)),l=!0,r.originX=-r.x+c+(i?0:rv.x),r.originY=-r.y+h+(i?0:rv.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var d=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,f=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,y=void 0,v=void 0;d&&this.canBeInsideText()?(g=n.insideFill,y=n.insideStroke,(null==g||"auto"===g)&&(g=this.getInsideTextFill()),(null==y||"auto"===y)&&(y=this.getInsideTextStroke(g),v=!0)):(g=n.outsideFill,y=n.outsideStroke,(null==g||"auto"===g)&&(g=this.getOutsideFill()),(null==y||"auto"===y)&&(y=this.getOutsideStroke(g),v=!0)),((g=g||"#000")!==f.fill||y!==f.stroke||v!==f.autoStroke||o!==f.align||a!==f.verticalAlign)&&(s=!0,f.fill=g,f.stroke=y,f.autoStroke=v,f.align=o,f.verticalAlign=a,e.setDefaultTextStyle(f)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?i4:i3},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&it(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+255*!r*(1-i);return n[3]=1,is(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},tz(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(t0(t))for(var n=tX(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!i.getLoop()&&(!r||r===rd)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,rf)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(rd,!1,t)},t.prototype.useState=function(t,e,n,i){var r,o=t===rd;if(this.hasState()||!o){var a=this.currentStates,s=this.stateTransition;if(!(tV(a,t)>=0)||!e&&1!==a.length){if(this.stateProxy&&!o&&(r=this.stateProxy(t)),r||(r=this.states&&this.states[t]),!r&&!o)return void tO("State "+t+" not exists.");o||this.saveCurrentToNormalState(r);var l=!!(r&&r.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,r,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var u=this._textContent,c=this._textGuide;return u&&u.useState(t,e,n,l),c&&c.useState(t,e,n,l),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),r}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a){for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}}if(!a){for(var s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=tV(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=tV(i,t),o=tV(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];tz(n,r),r.textConfig&&tz(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=tz({},i?this.textConfig:n.textConfig),tz(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<rf.length;u++){var c=rf[u],h=r&&rg[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(var u=0;u<this.animators.length;u++){var p=this.animators[u],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new re,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),tz(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=new iB(t?this[t]:this,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var e=i.animators,n=tV(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){rx(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){rx(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=rx(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function n(t,n,i,r){Object.defineProperty(e,t,{get:function(){return this[n]||o(this,this[n]=[]),this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,o(this,t)}});function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}}e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function rx(t,e,n,i,r){var o=[];!function t(e,n,i,r,o,a,s,l){for(var u=tX(r),c=o.duration,h=o.delay,p=o.additive,d=o.setToFinal,f=!t0(a),g=e.animators,y=[],v=0;v<u.length;v++){var m=u[v],x=r[m];if(null!=x&&null!=i[m]&&(f||a[m]))if(!t0(x)||tG(x)||t3(x))y.push(m);else{if(n){l||(i[m]=x,e.updateDuringAnimation(n));continue}t(e,m,i[m],x,o,a&&a[m],s,l)}else l||(i[m]=x,e.updateDuringAnimation(n),y.push(m))}var _=y.length;if(!p&&_)for(var b=0;b<g.length;b++){var w=g[b];if(w.targetName===n&&w.stopTracks(y)){var S=tV(g,w);g.splice(S,1)}}if(o.force||(_=(y=tZ(y,function(t){var e,n;return!((e=r[t])===(n=i[t])||tG(e)&&tG(n)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,n))})).length),_>0||o.force&&!s.length){var M=void 0,I=void 0,T=void 0;if(l){I={},d&&(M={});for(var b=0;b<_;b++){var m=y[b];I[m]=i[m],d?M[m]=r[m]:i[m]=r[m]}}else if(d){T={};for(var b=0;b<_;b++){var m=y[b];T[m]=iP(i[m]),function(t,e,n){if(tG(e[n]))if(tG(t[n])||(t[n]=[]),t2(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),r_(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(tG(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?r_(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else r_(o,r,a);o.length=r.length}else t[n]=e[n]}(i,r,m)}}var w=new iB(i,!1,!1,p?tZ(g,function(t){return t.targetName===n}):null);w.targetName=n,o.scope&&(w.scope=o.scope),d&&M&&w.whenWithKeys(0,M,y),T&&w.whenWithKeys(0,T,y),w.whenWithKeys(null==c?500:c,l?I:r,y).delay(h||0),e.addAnimator(w,n),s.push(w)}}(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};!a&&l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var p=0;p<o.length;p++){var d=o[p];d.done(c),d.aborted(h),n.force&&d.duration(n.duration),d.start(n.easing)}return o}function r_(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}tF(rm,eD),tF(rm,re);var rb=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return tf(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=tV(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=tV(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(e)},e.prototype.getBoundingRect=function(t){for(var e=new ns(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(ns.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},e}(rm);rb.prototype.type="group";var rw={},rS={},rM=function(){function t(t,e,n){var i,r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var o=new nI,a=n.renderer||"canvas";rw[a]||(a=tX(rw)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new rw[a](e,o,n,t),l=n.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=ty.node||ty.worker||l?null:new i1(s.getViewportRoot(),s.root),c=n.useCoarsePointer;(null==c||"auto"===c?ty.touchEventsSupported:!!c)&&(i=t6(n.pointerSize,44)),this.handler=new nf(o,s,u,s.root,i),this.animation=new iF({stage:{update:l?null:function(){return r._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return .4>il(t,1);if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=il(e[r].color,1);return(n/=i)<.4}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=iV();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=iV();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){!this._disposed&&(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof rb&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){if(!this._disposed){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete rS[t]}},t}();function rI(t,e){var n=new rM(tP++,t,e);return rS[n.id]=n,n}function rT(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i){if(l>0){if(t<=r)return a;else if(t>=o)return s}else if(t>=r)return a;else if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function rC(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return tQ(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function rA(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function rL(t){return t.sort(function(t,e){return t-e}),t}function rD(t){if(isNaN(t*=1))return 0;if(t>1e-14){for(var e,n,i,r,o,a=1,s=0;s<15;s++,a*=10)if(Math.round(t*a)/a===t)return s}return i=(n=(e=t.toString().toLowerCase()).indexOf("e"))>0?+e.slice(n+1):0,r=n>0?n:e.length,Math.max(0,((o=e.indexOf("."))<0?0:r-1-o)-i)}function rk(t,e){var n=Math.log,i=Math.LN10,r=Math.min(Math.max(-Math.floor(n(t[1]-t[0])/i)+Math.round(n(Math.abs(e[1]-e[0]))/i),0),20);return isFinite(r)?r:20}function rP(t){var e=2*Math.PI;return(t%e+e)%e}function rO(t){return t>-1e-4&&t<1e-4}var rR=/^(?:(\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 rN(t){if(t instanceof Date)return t;if(tQ(t)){var e=rR.exec(t);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);var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return null==t?new Date(NaN):new Date(Math.round(t))}function rE(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function rz(t,e){var n=rE(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function rB(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function rV(t){t.sort(function(t,e){return!function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?1:-1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}return t}function rF(t){var e=parseFloat(t);return e==t&&(0!==e||!tQ(t)||0>=t.indexOf("x"))?e:NaN}function rG(t){return!isNaN(rF(t))}function rj(){return Math.round(9*Math.random())}function rW(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}var rH="series\0",rZ="\0_ec_\0";function rX(t){return t instanceof Array?t:null==t?[]:[t]}function rU(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var rY=["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 rq(t){return!t0(t)||tq(t)||t instanceof Date?t:t.value}function rK(t,e,n){var i,r,o,a,s,l,u,c,h,p,d,f,g="normalMerge"===n,y="replaceMerge"===n,v="replaceAll"===n;t=t||[],e=(e||[]).slice();var m=ea();tj(e,function(t,n){if(!t0(t)){e[n]=null;return}});var x=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||r1(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,m,n);return(g||y)&&(i=x,r=t,o=m,tj(a=e,function(t,e){if(t&&null!=t.id){var n=r$(t.id),s=o.get(n);if(null!=s){var l=i[s];et(!l.newOption,'Duplicated option on id "'+n+'".'),l.newOption=t,l.existing=r[s],a[e]=null}}})),g&&(s=x,tj(l=e,function(t,e){if(t&&null!=t.name)for(var n=0;n<s.length;n++){var i=s[n].existing;if(!s[n].newOption&&i&&(null==i.id||null==t.id)&&!r1(t)&&!r1(i)&&rQ("name",i,t)){s[n].newOption=t,l[e]=null;return}}})),g||y?(u=x,c=e,h=y,tj(c,function(t){if(t){for(var e,n=0;(e=u[n])&&(e.newOption||r1(e.existing)||e.existing&&null!=t.id&&!rQ("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=h):u.push({newOption:t,brandNew:h,existing:null,keyInfo:null}),n++}})):v&&(p=x,tj(e,function(t){p.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),d=x,f=ea(),tj(d,function(t){var e=t.existing;e&&f.set(e.id,t)}),tj(d,function(t){var e=t.newOption;et(!e||null==e.id||!f.get(e.id)||f.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&f.set(e.id,t),t.keyInfo||(t.keyInfo={})}),tj(d,function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(t0(i)){if(r.name=null!=i.name?r$(i.name):n?n.name:rH+e,n)r.id=r$(n.id);else if(null!=i.id)r.id=r$(i.id);else{var o=0;do r.id="\0"+r.name+"\0"+o++;while(f.get(r.id))}f.set(r.id,t)}}),x}function rQ(t,e,n){var i=rJ(e[t],null),r=rJ(n[t],null);return null!=i&&null!=r&&i===r}function r$(t){return rJ(t,"")}function rJ(t,e){return null==t?e:tQ(t)?t:tJ(t)||t$(t)?t+"":e}function r0(t){var e=t.name;return!!(e&&e.indexOf(rH))}function r1(t){return t&&null!=t.id&&0===r$(t.id).indexOf(rZ)}function r2(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?tq(e.dataIndex)?tW(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?tq(e.name)?tW(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function r5(){var t="__ec_inner_"+r3++;return function(e){return e[t]||(e[t]={})}}var r3=rj();function r4(t,e,n){var i=r6(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each(function(e,i){var r=r7(t,i,e,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]}),a}function r6(t,e){if(tQ(t)){var n,i={};i[t+"Index"]=0,n=i}else n=t;var r=ea(),o={},a=!1;return tj(n,function(t,n){if("dataIndex"===n||"dataIndexInside"===n){o[n]=t;return}var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();!s||!l||e&&e.includeMainTypes&&0>tV(e.includeMainTypes,s)||(a=a||!!s,(r.get(s)||r.set(s,{}))[l]=t)}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var r8={useDefault:!0,enableAll:!1,enableNone:!1},r9={useDefault:!1,enableAll:!0,enableNone:!0};function r7(t,e,n,i){i=i||r8;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(et(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[]):("all"===r&&(et(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a})),s}function ot(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function oe(t,e){var n=ea(),i=[];return tj(t,function(t){var r=e(t);(n.get(r)||(i.push(r),n.set(r,[]))).push(t)}),{keys:i,buckets:n}}function on(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(tJ(i)){var a,s=(i-(a=n||0))*r+a;return rA(s,o?Math.max(rD(n||0),rD(i)):e)}if(tQ(i))return r<1?n:i;for(var l=[],u=Math.max(n?n.length:0,i.length),c=0;c<u;++c){var h=t.getDimensionInfo(c);if(h&&"ordinal"===h.type)l[c]=(r<1&&n?n:i)[c];else{var p=n&&n[c]?n[c]:0,d=i[c],s=(d-p)*r+p;l[c]=rA(s,o?Math.max(rD(p),rD(d)):e)}}return l}var oi="___EC__COMPONENT__CONTAINER___",or="___EC__EXTENDED_CLASS___";function oo(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function oa(t,e){t.$constructor=t,t.extend=function(t){var e,n,i=this;if(tK(e=i)&&/^class\s/.test(Function.prototype.toString.call(e)))n=function(t){function e(){return t.apply(this,arguments)||this}return tf(e,t),e}(i);else{var r=n=function(){(t.$constructor||i).apply(this,arguments)},o=r.prototype;function a(){}for(var s in a.prototype=this.prototype,r.prototype=new a,o)o.hasOwnProperty(s)&&(r.prototype[s]=o[s]);r.prototype.constructor=r,r.superClass=this}return tz(n.prototype,t),n[or]=!0,n.extend=this.extend,n.superCall=ou,n.superApply=oc,n.superClass=i,n}}function os(t,e){t.extend=e.extend}var ol=Math.round(10*Math.random());function ou(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function oc(t,e,n){return this.superClass.prototype[e].apply(t,n)}function oh(t){var e={};t.registerClass=function(t){var n=t.type||t.prototype.type;if(n){et(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),t.prototype.type=n;var i,r,o=oo(n);o.sub?o.sub!==oi&&(((r=e[(i=o).main])&&r[oi]||((r=e[i.main]={})[oi]=!0),r)[o.sub]=t):e[o.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[oi]&&(r=n?r[n]:null),i&&!r)throw Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=oo(t),i=[],r=e[n.main];return r&&r[oi]?tj(r,function(t,e){e!==oi&&i.push(t)}):i.push(r),i},t.hasClass=function(t){return!!e[oo(t).main]},t.getAllClassMainTypes=function(){var t=[];return tj(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var n=e[oo(t).main];return n&&n[oi]}}function op(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&tV(i,s)>=0||r&&0>tV(r,s))){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var od=op([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),of=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return od(this,t,e)},t}(),og=new n$(50);function oy(t,e,n,i,r){if(!t)return e;if("string"!=typeof t)return t;if(e&&e.__zrImageSrc===t||!n)return e;var o=og.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?om(e=o.image)||o.pending.push(a):((e=t_.loadImage(t,ov,ov)).__zrImageSrc=t,og.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}function ov(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function om(t){return t&&t.width&&t.height}var ox=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function o_(t,e,n,i){var r=tz({},i=i||{});r.font=e,n=t6(n,"..."),r.maxIterations=t6(i.maxIterations,2);var o=r.minChar=t6(i.minChar,0);r.cnCharWidth=ro("国",e);var a=r.ascCharWidth=ro("a",e);r.placeholder=t6(i.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=ro(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function ob(t,e,n){var i=n.containerWidth,r=n.font,o=n.contentWidth;if(!i){t.textLine="",t.isTruncated=!1;return}var a=ro(e,r);if(a<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(a<=o||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?function(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}(e,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(e.length*o/a):0;a=ro(e=e.substr(0,l),r)}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}var ow=function(){},oS=function(t){this.tokens=[],t&&(this.tokens=t)},oM=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function oI(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,c=l.font||n.font,h=!1;if(i){var p=l.padding,d=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var f=rh(l.width,i.width)+d;u.length>0&&f+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=f}else{var g=oC(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var y=0;y<o.length;y++){var v=o[y],m=new ow;if(m.styleName=r,m.text=v,m.isLineHolder=!v&&!s,"number"==typeof l.width?m.width=l.width:m.width=a?a[y]:ro(v,c),y||h)u.push(new oS([m]));else{var x=(u[u.length-1]||(u[0]=new oS)).tokens,_=x.length;1===_&&x[0].isLineHolder?x[0]=m:(v||!_||s)&&x.push(m)}}}var oT=tH(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function oC(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var p=t.charAt(h);if("\n"===p){l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0;continue}var d=ro(p,e),f=!i&&!function(t){var e;return(!((e=t.charCodeAt(0))>=32)||!(e<=591))&&(!(e>=880)||!(e<=4351))&&(!(e>=4608)||!(e<=5119))&&(!(e>=7680)||!(e<=8303))||!!oT[t]}(p);if(o.length?c+d>n:r+c+d>n){c?(s||l)&&(f?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=p,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=d)):f?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d));continue}c+=d,f?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p)}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}var oA="__zr_style_"+Math.round(10*Math.random()),oL={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},oD={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};oL[oA]=!0;var ok=["z","z2","invisible"],oP=["invisible"],oO=function(t){var e;function n(e){return t.call(this,e)||this}return tf(n,t),n.prototype._init=function(e){for(var n=tX(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(t,e,n,i){var r,o,a,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(r=this,o=t,a=e,oR.copy(r.getBoundingRect()),r.transform&&oR.applyTransform(r.transform),oN.width=o,oN.height=a,!oR.intersect(oN))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(i&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},n.prototype.contain=function(t,e){return this.rectContain(t,e)},n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},n.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ns(0,0,0,0)),e?ns.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},n.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new ns(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(t){return this.animate("style",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},n.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:tz(this.style,t),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(2&this.__dirty)},n.prototype.styleUpdated=function(){this.__dirty&=-3},n.prototype.createStyle=function(t){return el(oL,t)},n.prototype.useStyle=function(t){t[oA]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},n.prototype.isStyleObject=function(t){return t[oA]},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,ok)},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=tX(u),h=0;h<c.length;h++){var p=c[h];p in s&&(s[p]=s[p],this.style[p]=u[p])}for(var d=tX(s),h=0;h<d.length;h++){var p=d[h];this.style[p]=this.style[p]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);for(var f=this.__inHover?oP:ok,h=0;h<f.length;h++){var p=f[h];n&&null!=n[p]?this[p]=n[p]:l&&null!=i[p]&&(this[p]=i[p])}},n.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},n.prototype._mergeStyle=function(t,e){return tz(t,e),t},n.prototype.getAnimationStyleProps=function(){return oD},n.initDefaultProps=void((e=n.prototype).type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3),n}(rm),oR=new ns(0,0,0,0),oN=new ns(0,0,0,0),oE=Math.min,oz=Math.max,oB=Math.sin,oV=Math.cos,oF=2*Math.PI,oG=ed(),oj=ed(),oW=ed();function oH(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;l<t.length;l++)r=oE(r,(i=t[l])[0]),o=oz(o,i[0]),a=oE(a,i[1]),s=oz(s,i[1]);e[0]=r,e[1]=a,n[0]=o,n[1]=s}}function oZ(t,e,n,i,r,o){r[0]=oE(t,n),r[1]=oE(e,i),o[0]=oz(t,n),o[1]=oz(e,i)}var oX=[],oU=[],oY={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},oq=[],oK=[],oQ=[],o$=[],oJ=[],o0=[],o1=Math.min,o2=Math.max,o5=Math.cos,o3=Math.sin,o4=Math.abs,o6=Math.PI,o8=2*o6,o9="u">typeof Float32Array,o7=[];function at(t){return Math.round(t/o6*1e8)/1e8%2*o6}function ae(t,e){var n=at(t[0]);n<0&&(n+=o8);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=o8?r=n+o8:e&&n-r>=o8?r=n-o8:!e&&n>r?r=n+(o8-at(n-r)):e&&n<r&&(r=n-(o8-at(r-n))),t[0]=n,t[1]=r}var an=function(){var t;function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=o4(n/i5/t)||0,this._uy=o4(n/i5/e)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(oY.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},e.prototype.lineTo=function(t,e){var n=o4(t-this._xi),i=o4(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(oY.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(oY.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(oY.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),o7[0]=i,o7[1]=r,ae(o7,o),i=o7[0];var a=(r=o7[1])-i;return this.addData(oY.A,t,e,n,n,i,a,0,+!o),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=o5(r)*n+t,this._yi=o3(r)*n+e,this},e.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},e.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(oY.R,t,e,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(oY.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&o9&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();o9&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},e.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,o9&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){oQ[0]=oQ[1]=oJ[0]=oJ[1]=Number.MAX_VALUE,o$[0]=o$[1]=o0[0]=o0[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(n=e[t],i=e[t+1],r=n,o=i),a){case oY.M:n=r=e[t++],i=o=e[t++],oJ[0]=r,oJ[1]=o,o0[0]=r,o0[1]=o;break;case oY.L:oZ(n,i,e[t],e[t+1],oJ,o0),n=e[t++],i=e[t++];break;case oY.C:!function(t,e,n,i,r,o,a,s,l,u){var c=nV(t,n,r,a,oX);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<c;h++){var p=nE(t,n,r,a,oX[h]);l[0]=oE(p,l[0]),u[0]=oz(p,u[0])}c=nV(e,i,o,s,oU);for(var h=0;h<c;h++){var d=nE(e,i,o,s,oU[h]);l[1]=oE(d,l[1]),u[1]=oz(d,u[1])}l[0]=oE(t,l[0]),u[0]=oz(t,u[0]),l[0]=oE(a,l[0]),u[0]=oz(a,u[0]),l[1]=oE(e,l[1]),u[1]=oz(e,u[1]),l[1]=oE(s,l[1]),u[1]=oz(s,u[1])}(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],oJ,o0),n=e[t++],i=e[t++];break;case oY.Q:!function(t,e,n,i,r,o,a,s){var l=oz(oE(nH(t,n,r),1),0),u=oz(oE(nH(e,i,o),1),0),c=nj(t,n,r,l),h=nj(e,i,o,u);a[0]=oE(t,r,c),a[1]=oE(e,o,h),s[0]=oz(t,r,c),s[1]=oz(e,o,h)}(n,i,e[t++],e[t++],e[t],e[t+1],oJ,o0),n=e[t++],i=e[t++];break;case oY.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],p=e[t++],d=e[t++]+p;t+=1;var f=!e[t++];s&&(r=o5(p)*c+l,o=o3(p)*h+u),function(t,e,n,i,r,o,a,s,l){var u=Math.abs(r-o);if(u%oF<1e-4&&u>1e-4){s[0]=t-n,s[1]=e-i,l[0]=t+n,l[1]=e+i;return}if(oG[0]=oV(r)*n+t,oG[1]=oB(r)*i+e,oj[0]=oV(o)*n+t,oj[1]=oB(o)*i+e,eT(s,oG,oj),eC(l,oG,oj),(r%=oF)<0&&(r+=oF),(o%=oF)<0&&(o+=oF),r>o&&!a?o+=oF:r<o&&a&&(r+=oF),a){var c=o;o=r,r=c}for(var h=0;h<o;h+=Math.PI/2)h>r&&(oW[0]=oV(h)*n+t,oW[1]=oB(h)*i+e,eT(s,oW,s),eC(l,oW,l))}(l,u,c,h,p,d,f,oJ,o0),n=o5(d)*c+l,i=o3(d)*h+u;break;case oY.R:oZ(r=n=e[t++],o=i=e[t++],r+e[t++],o+e[t++],oJ,o0);break;case oY.Z:n=r,i=o}eT(oQ,oQ,oJ),eC(o$,o$,o0)}return 0===t&&(oQ[0]=oQ[1]=o$[0]=o$[1]=0),new ns(oQ[0],oQ[1],o$[0]-oQ[0],o$[1]-oQ[1])},e.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var p=t[h++],d=1===h;d&&(r=t[h],o=t[h+1],a=r,s=o);var f=-1;switch(p){case oY.M:r=a=t[h++],o=s=t[h++];break;case oY.L:var g=t[h++],y=t[h++],v=g-r,m=y-o;(o4(v)>n||o4(m)>i||h===e-1)&&(f=Math.sqrt(v*v+m*m),r=g,o=y);break;case oY.C:var x=t[h++],_=t[h++],g=t[h++],y=t[h++],b=t[h++],w=t[h++];f=function(t,e,n,i,r,o,a,s){for(var l=t,u=e,c=0,h=1;h<=10;h++){var p=.1*h,d=nE(t,n,r,a,p),f=nE(e,i,o,s,p),g=d-l,y=f-u;c+=Math.sqrt(g*g+y*y),l=d,u=f}return c}(r,o,x,_,g,y,b,w),r=b,o=w;break;case oY.Q:var x=t[h++],_=t[h++],g=t[h++],y=t[h++];f=function(t,e,n,i,r,o){for(var a=t,s=e,l=0,u=1;u<=10;u++){var c=.1*u,h=nj(t,n,r,c),p=nj(e,i,o,c),d=h-a,f=p-s;l+=Math.sqrt(d*d+f*f),a=h,s=p}return l}(r,o,x,_,g,y),r=g,o=y;break;case oY.A:var S=t[h++],M=t[h++],I=t[h++],T=t[h++],C=t[h++],A=t[h++],L=A+C;h+=1,d&&(a=o5(C)*I+S,s=o3(C)*T+M),f=o2(I,T)*o1(o8,Math.abs(A)),r=o5(L)*I+S,o=o3(L)*T+M;break;case oY.R:a=r=t[h++],s=o=t[h++],f=2*t[h++]+2*t[h++];break;case oY.Z:var v=a-r,m=s-o;f=Math.sqrt(v*v+m*m),r=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c,h,p=this.data,d=this._ux,f=this._uy,g=this._len,y=e<1,v=0,m=0,x=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var _=0;_<g;){var b=p[_++],w=1===_;switch(w&&(r=p[_],o=p[_+1],n=r,i=o),b!==oY.L&&x>0&&(t.lineTo(c,h),x=0),b){case oY.M:n=r=p[_++],i=o=p[_++],t.moveTo(r,o);break;case oY.L:a=p[_++],s=p[_++];var S=o4(a-r),M=o4(s-o);if(S>d||M>f){if(y){var I=l[m++];if(v+I>u){var T=(u-v)/I;t.lineTo(r*(1-T)+a*T,o*(1-T)+s*T);break t}v+=I}t.lineTo(a,s),r=a,o=s,x=0}else{var C=S*S+M*M;C>x&&(c=a,h=s,x=C)}break;case oY.C:var A=p[_++],L=p[_++],D=p[_++],k=p[_++],P=p[_++],O=p[_++];if(y){var I=l[m++];if(v+I>u){var T=(u-v)/I;nF(r,A,D,P,T,oq),nF(o,L,k,O,T,oK),t.bezierCurveTo(oq[1],oK[1],oq[2],oK[2],oq[3],oK[3]);break t}v+=I}t.bezierCurveTo(A,L,D,k,P,O),r=P,o=O;break;case oY.Q:var A=p[_++],L=p[_++],D=p[_++],k=p[_++];if(y){var I=l[m++];if(v+I>u){var T=(u-v)/I;nZ(r,A,D,T,oq),nZ(o,L,k,T,oK),t.quadraticCurveTo(oq[1],oK[1],oq[2],oK[2]);break t}v+=I}t.quadraticCurveTo(A,L,D,k),r=D,o=k;break;case oY.A:var R=p[_++],N=p[_++],E=p[_++],z=p[_++],B=p[_++],V=p[_++],F=p[_++],G=!p[_++],j=E>z?E:z,W=o4(E-z)>.001,H=B+V,Z=!1;if(y){var I=l[m++];v+I>u&&(H=B+V*(u-v)/I,Z=!0),v+=I}if(W&&t.ellipse?t.ellipse(R,N,E,z,F,B,H,G):t.arc(R,N,j,B,H,G),Z)break t;w&&(n=o5(B)*E+R,i=o3(B)*z+N),r=o5(H)*E+R,o=o3(H)*z+N;break;case oY.R:n=r=p[_],i=o=p[_+1],a=p[_++],s=p[_++];var X=p[_++],U=p[_++];if(y){var I=l[m++];if(v+I>u){var Y=u-v;t.moveTo(a,s),t.lineTo(a+o1(Y,X),s),(Y-=X)>0&&t.lineTo(a+X,s+o1(Y,U)),(Y-=U)>0&&t.lineTo(a+o2(X-Y,0),s+U),(Y-=X)>0&&t.lineTo(a,s+o2(U-Y,0));break t}v+=I}t.rect(a,s,X,U);break;case oY.Z:if(y){var I=l[m++];if(v+I>u){var T=(u-v)/I;t.lineTo(r*(1-T)+n*T,o*(1-T)+i*T);break t}v+=I}t.closePath(),r=n,o=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=oY,e.initDefaultProps=void((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0),e}();function ai(t,e,n,i,r,o,a){if(0===r)return!1;var s=0,l=t;if(a>e+r&&a>i+r||a<e-r&&a<i-r||o>t+r&&o>n+r||o<t-r&&o<n-r)return!1;if(t===n)return Math.abs(o-t)<=r/2;s=(e-i)/(t-n);var u=s*o-a+(l=(t*i-n*e)/(t-n));return u*u/(s*s+1)<=r/2*r/2}function ar(t,e,n,i,r,o,a,s,l){return 0!==a&&(!(l>e+a)||!(l>i+a)||!(l>o+a))&&(!(l<e-a)||!(l<i-a)||!(l<o-a))&&(!(s>t+a)||!(s>n+a)||!(s>r+a))&&(!(s<t-a)||!(s<n-a)||!(s<r-a))&&nX(t,e,n,i,r,o,s,l,null)<=a/2}var ao=2*Math.PI;function aa(t){return(t%=ao)<0&&(t+=ao),t}var as=2*Math.PI;function al(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i||i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;(1===a||0===a)&&(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}var au=an.CMD,ac=2*Math.PI,ah=[-1,-1,-1],ap=[-1,-1];function ad(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,p=0,d=0,f=0;f<l;){var g,y,v,m,x,_,b,w,S=s[f++],M=1===f;switch(S===au.M&&f>1&&!n&&(u+=al(c,h,p,d,i,r)),M&&(c=s[f],h=s[f+1],p=c,d=h),S){case au.M:p=s[f++],d=s[f++],c=p,h=d;break;case au.L:if(n){if(ai(c,h,s[f],s[f+1],e,i,r))return!0}else u+=al(c,h,s[f],s[f+1],i,r)||0;c=s[f++],h=s[f++];break;case au.C:if(n){if(g=c,y=h,v=s[f++],m=s[f++],x=s[f++],_=s[f++],b=s[f],w=s[f+1],0!==e&&(!(r>y+e)||!(r>m+e)||!(r>_+e)||!(r>w+e))&&(!(r<y-e)||!(r<m-e)||!(r<_-e)||!(r<w-e))&&(!(i>g+e)||!(i>v+e)||!(i>x+e)||!(i>b+e))&&(!(i<g-e)||!(i<v-e)||!(i<x-e)||!(i<b-e))&&nG(g,y,v,m,x,_,b,w,i,r,null)<=e/2)return!0}else u+=function(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u<e&&u<i&&u<o&&u<s)return 0;var c=nB(e,i,o,s,u,ah);if(0===c)return 0;for(var h=0,p=-1,d=void 0,f=void 0,g=0;g<c;g++){var y=ah[g],v=0===y||1===y?.5:1;nE(t,n,r,a,y)<l||(p<0&&(p=nV(e,i,o,s,ap),ap[1]<ap[0]&&p>1&&function(){var t=ap[0];ap[0]=ap[1],ap[1]=t}(),d=nE(e,i,o,s,ap[0]),p>1&&(f=nE(e,i,o,s,ap[1]))),2===p?y<ap[0]?h+=d<e?v:-v:y<ap[1]?h+=f<d?v:-v:h+=s<f?v:-v:y<ap[0]?h+=d<e?v:-v:h+=s<d?v:-v)}return h}(c,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],h=s[f++];break;case au.Q:if(n){if(ar(c,h,s[f++],s[f++],s[f],s[f+1],e,i,r))return!0}else u+=function(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=function(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(nR(o)){if(nN(a)){var u=-s/a;u>=0&&u<=1&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(nR(c)){var u=-a/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(c>0){var h=nA(c),u=(-a+h)/(2*o),p=(-a-h)/(2*o);u>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}(e,i,o,s,ah);if(0===l)return 0;var u=nH(e,i,o);if(u>=0&&u<=1){for(var c=0,h=nj(e,i,o,u),p=0;p<l;p++){var d=0===ah[p]||1===ah[p]?.5:1,f=nj(t,n,r,ah[p]);f<a||(ah[p]<u?c+=h<e?d:-d:c+=o<h?d:-d)}return c}var d=0===ah[0]||1===ah[0]?.5:1,f=nj(t,n,r,ah[0]);return f<a?0:o<e?d:-d}(c,h,s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],h=s[f++];break;case au.A:var I=s[f++],T=s[f++],C=s[f++],A=s[f++],L=s[f++],D=s[f++];f+=1;var k=!!(1-s[f++]);o=Math.cos(L)*C+I,a=Math.sin(L)*A+T,M?(p=o,d=a):u+=al(c,h,o,a,i,r);var P=(i-I)*A/C+I;if(n){if(function(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=Math.sqrt((s-=t)*s+(l-=e)*l);if(u-a>n||u+a<n)return!1;if(Math.abs(i-r)%as<1e-4)return!0;if(o){var c=i;i=aa(r),r=aa(c)}else i=aa(i),r=aa(r);i>r&&(r+=as);var h=Math.atan2(l,s);return h<0&&(h+=as),h>=i&&h<=r||h+as>=i&&h+as<=r}(I,T,A,L,L+D,k,e,P,r))return!0}else u+=function(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);ah[0]=-l,ah[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=ac-1e-4){i=0,r=ac;var c=o?1:-1;return a>=ah[0]+t&&a<=ah[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=ac,r+=ac);for(var p=0,d=0;d<2;d++){var f=ah[d];if(f+t>a){var g=Math.atan2(s,f),c=o?1:-1;g<0&&(g=ac+g),(g>=i&&g<=r||g+ac>=i&&g+ac<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),p+=c)}}return p}(I,T,A,L,L+D,k,P,r);c=Math.cos(L+D)*C+I,h=Math.sin(L+D)*A+T;break;case au.R:p=c=s[f++],d=h=s[f++];var O=s[f++],R=s[f++];if(o=p+O,a=d+R,n){if(ai(p,d,o,d,e,i,r)||ai(o,d,o,a,e,i,r)||ai(o,a,p,a,e,i,r)||ai(p,a,p,d,e,i,r))return!0}else u+=al(o,d,o,a,i,r),u+=al(p,a,p,d,i,r);break;case au.Z:if(n){if(ai(c,h,p,d,e,i,r))return!0}else u+=al(c,h,p,d,i,r);c=p,h=d}}return n||1e-4>Math.abs(h-d)||(u+=al(c,h,p,d,i,r)||0),0!==u}var af=tB({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},oL),ag={style:tB({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},oD.style)},ay=rn.concat(["invisible","culling","z","z2","zlevel","parent"]),av=function(t){var e;function n(e){return t.call(this,e)||this}return tf(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new n;r.buildPath===n.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<ay.length;++s)r[ay[s]]=this[ay[s]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(e){var n=tX(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?tz(this.style,a):this.useStyle(a):"shape"===o?tz(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(tQ(t)){var e=il(t,0);return e>.5?i3:e>.2?"#eee":i4}else if(t)return i4}return i3},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(tQ(e)){var n=this.__zr;if(!!(n&&n.isDarkMode())==.4>il(t,0))return e}},n.prototype.buildPath=function(t,e,n){},n.prototype.pathUpdated=function(){this.__dirty&=-5},n.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},n.prototype.createPathProxy=function(){this.path=new an(!1)},n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},n.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),ad(o,a/s,!0,t,e)))return!0}if(this.hasFill())return ad(o,0,!1,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:tz(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(4&this.__dirty)},n.prototype.createStyle=function(t){return el(af,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=tz({},this.shape))},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=tz({},i.shape),tz(s,n.shape)):(s=tz({},r?this.shape:i.shape),tz(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=tz({},this.shape);for(var u={},c=tX(s),h=0;h<c.length;h++){var p=c[h];"object"==typeof s[p]?this.shape[p]=s[p]:u[p]=s[p]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},n.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},n.prototype.getAnimationStyleProps=function(){return ag},n.prototype.isZeroArea=function(){return!1},n.extend=function(t){var e=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return tf(n,e),n.prototype.getDefaultStyle=function(){return tR(t.style)},n.prototype.getDefaultShape=function(){return tR(t.shape)},n}(n);for(var i in t)"function"==typeof t[i]&&(e.prototype[i]=t[i]);return e},n.initDefaultProps=void((e=n.prototype).type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7),n}(oO),am=tB({strokeFirst:!0,font:tm,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},af),ax=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return el(am,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=rs(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(oO);ax.prototype.type="tspan";var a_=tB({x:0,y:0},oL),ab={style:tB({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},oD.style)},aw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.prototype.createStyle=function(t){return el(a_,t)},e.prototype._getSize=function(t){var e,n=this.style,i=n[t];if(null!=i)return i;var r=(e=n.image)&&"string"!=typeof e&&e.width&&e.height?n.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=n[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return ab},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ns(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(oO);aw.prototype.type="image";var aS=Math.round;function aM(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s&&(aS(2*i)===aS(2*r)&&(t.x1=t.x2=aT(i,s,!0)),aS(2*o)===aS(2*a)&&(t.y1=t.y2=aT(o,s,!0))),t}}function aI(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s&&(t.x=aT(i,s,!0),t.y=aT(r,s,!0),t.width=Math.max(aT(i+o,s,!1)-t.x,+(0!==o)),t.height=Math.max(aT(r+a,s,!1)-t.y,+(0!==a))),t}}function aT(t,e,n){if(!e)return t;var i=aS(2*t);return(i+aS(e))%2==0?i/2:(i+(n?1:-1))/2}var aC=function(){this.x=0,this.y=0,this.width=0,this.height=0},aA={},aL=function(t){function e(e){return t.call(this,e)||this}return tf(e,t),e.prototype.getDefaultShape=function(){return new aC},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var n,i,r,o,a,s,l,u,c,h,p,d,f,g,y,v=aI(aA,e,this.style);d=v.x,f=v.y,g=v.width,y=v.height,v.r=e.r,e=v}else d=e.x,f=e.y,g=e.width,y=e.height;e.r?(l=(n=e).x,u=n.y,c=n.width,h=n.height,p=n.r,c<0&&(l+=c,c=-c),h<0&&(u+=h,h=-h),"number"==typeof p?i=r=o=a=p:p instanceof Array?1===p.length?i=r=o=a=p[0]:2===p.length?(i=o=p[0],r=a=p[1]):3===p.length?(i=p[0],r=a=p[1],o=p[2]):(i=p[0],r=p[1],o=p[2],a=p[3]):i=r=o=a=0,i+r>c&&(s=i+r,i*=c/s,r*=c/s),o+a>c&&(s=o+a,o*=c/s,a*=c/s),r+o>h&&(s=r+o,r*=h/s,o*=h/s),i+a>h&&(s=i+a,i*=h/s,a*=h/s),t.moveTo(l+i,u),t.lineTo(l+c-r,u),0!==r&&t.arc(l+c-r,u+r,r,-Math.PI/2,0),t.lineTo(l+c,u+h-o),0!==o&&t.arc(l+c-o,u+h-o,o,0,Math.PI/2),t.lineTo(l+a,u+h),0!==a&&t.arc(l+a,u+h-a,a,Math.PI/2,Math.PI),t.lineTo(l,u+i),0!==i&&t.arc(l+i,u+i,i,Math.PI,1.5*Math.PI)):t.rect(d,f,g,y)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(av);aL.prototype.type="rect";var aD={fill:"#000"},ak={style:tB({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},oD.style)},aP=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=aD,n.attr(e),n}return tf(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,aV(t=this.style),tj(t.rich,aV),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new ns(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||aD},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return tz(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=tX(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},tz(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return ak},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||tm,n=t.padding,i=function(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a=rc(o),s=t6(e.lineHeight,a),l=!!e.backgroundColor,u="truncate"===e.lineOverflow,c=!1,h=e.width,p=(n=null!=h&&("break"===i||"breakAll"===i)?t?oC(t,e.font,h,"breakAll"===i,0).lines:[]:t?t.split("\n"):[]).length*s,d=t6(e.height,p);if(p>d&&u){var f=Math.floor(d/s);c=c||n.length>f,n=n.slice(0,f)}if(t&&"truncate"===i&&null!=h)for(var g=o_(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y={},v=0;v<n.length;v++)ob(y,n[v],g),n[v]=y.textLine,c=c||y.isTruncated;for(var m=d,x=0,v=0;v<n.length;v++)x=Math.max(ro(n[v],o),x);null==h&&(h=x);var _=x;return r&&(m+=r[0]+r[2],_+=r[1]+r[3],h+=r[1]+r[3]),l&&(_=h),{lines:n,height:d,outerWidth:_,outerHeight:m,lineHeight:s,calculatedLineHeight:a,contentWidth:x,contentHeight:p,width:h,isTruncated:c}}(aW(t),t),r=aH(t),o=!!t.backgroundColor,a=i.outerHeight,s=i.outerWidth,l=i.contentWidth,u=i.lines,c=i.lineHeight,h=this._defaultStyle;this.isTruncated=!!i.isTruncated;var p=t.x||0,d=t.y||0,f=t.align||h.align||"left",g=t.verticalAlign||h.verticalAlign||"top",y=p,v=ru(d,i.contentHeight,g);if(r||n){var m=rl(p,s,f),x=ru(d,a,g);r&&this._renderBackground(t,t,m,x,s,a)}v+=c/2,n&&(y=aj(p,f,n),"top"===g?v+=n[0]:"bottom"===g&&(v-=n[2]));for(var _=0,b=!1,w=aG("fill"in t?t.fill:(b=!0,h.fill)),S=aF("stroke"in t?t.stroke:o||h.autoStroke&&!b?null:(_=2,h.stroke)),M=t.textShadowBlur>0,I=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),T=i.calculatedLineHeight,C=0;C<u.length;C++){var A=this._getOrCreateChild(ax),L=A.createStyle();A.useStyle(L),L.text=u[C],L.x=y,L.y=v,L.textAlign=f,L.textBaseline="middle",L.opacity=t.opacity,L.strokeFirst=!0,M&&(L.shadowBlur=t.textShadowBlur||0,L.shadowColor=t.textShadowColor||"transparent",L.shadowOffsetX=t.textShadowOffsetX||0,L.shadowOffsetY=t.textShadowOffsetY||0),L.stroke=S,L.fill=w,S&&(L.lineWidth=t.lineWidth||_,L.lineDash=t.lineDash,L.lineDashOffset=t.lineDashOffset||0),L.font=e,az(L,t),v+=c,I&&A.setBoundingRect(new ns(rl(L.x,l,L.textAlign),ru(L.y,T,L.textBaseline),l,T))}},e.prototype._updateRichTexts=function(){var t=this.style,e=function(t,e){var n,i=new oM;if(null!=t&&(t+=""),!t)return i;for(var r=e.width,o=e.height,a=e.overflow,s=("break"===a||"breakAll"===a)&&null!=r?{width:r,accumWidth:0,breakAll:"breakAll"===a}:null,l=ox.lastIndex=0;null!=(n=ox.exec(t));){var u=n.index;u>l&&oI(i,t.substring(l,u),e,s),oI(i,n[2],e,s,n[1]),l=ox.lastIndex}l<t.length&&oI(i,t.substring(l,t.length),e,s);var c=[],h=0,p=0,d=e.padding,f="truncate"===a,g="truncate"===e.lineOverflow,y={};function v(t,e,n){t.width=e,t.lineHeight=n,h+=n,p=Math.max(p,e)}e:for(var m=0;m<i.lines.length;m++){for(var x=i.lines[m],_=0,b=0,w=0;w<x.tokens.length;w++){var S=x.tokens[w],M=S.styleName&&e.rich[S.styleName]||{},I=S.textPadding=M.padding,T=I?I[1]+I[3]:0,C=S.font=M.font||e.font;S.contentHeight=rc(C);var A=t6(M.height,S.contentHeight);if(S.innerHeight=A,I&&(A+=I[0]+I[2]),S.height=A,S.lineHeight=t8(M.lineHeight,e.lineHeight,A),S.align=M&&M.align||e.align,S.verticalAlign=M&&M.verticalAlign||"middle",g&&null!=o&&h+S.lineHeight>o){var L=i.lines.length;w>0?(x.tokens=x.tokens.slice(0,w),v(x,b,_),i.lines=i.lines.slice(0,m+1)):i.lines=i.lines.slice(0,m),i.isTruncated=i.isTruncated||i.lines.length<L;break e}var D=M.width,k=null==D||"auto"===D;if("string"==typeof D&&"%"===D.charAt(D.length-1))S.percentWidth=D,c.push(S),S.contentWidth=ro(S.text,C);else{if(k){var P=M.backgroundColor,O=P&&P.image;O&&om(O=function(t){if("string"!=typeof t)return t;var e=og.get(t);return e&&e.image}(O))&&(S.width=Math.max(S.width,O.width*A/O.height))}var R=f&&null!=r?r-b:null;null!=R&&R<S.width?!k||R<T?(S.text="",S.width=S.contentWidth=0):(!function(t,e,n,i,r,o){if(!n){t.text="",t.isTruncated=!1;return}var a=(e+"").split("\n");o=o_(n,i,r,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)ob(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}(y,S.text,R-T,C,e.ellipsis,{minChar:e.truncateMinChar}),S.text=y.text,i.isTruncated=i.isTruncated||y.isTruncated,S.width=S.contentWidth=ro(S.text,C)):S.contentWidth=ro(S.text,C)}S.width+=T,b+=S.width,M&&(_=Math.max(_,S.lineHeight))}v(x,b,_)}i.outerWidth=i.width=t6(r,p),i.outerHeight=i.height=t6(o,h),i.contentHeight=h,i.contentWidth=p,d&&(i.outerWidth+=d[1]+d[3],i.outerHeight+=d[0]+d[2]);for(var m=0;m<c.length;m++){var S=c[m],N=S.percentWidth;S.width=parseInt(N,10)/100*i.width}return i}(aW(t),t),n=e.width,i=e.outerWidth,r=e.outerHeight,o=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,c=t.verticalAlign||l.verticalAlign;this.isTruncated=!!e.isTruncated;var h=rl(a,i,u),p=ru(s,r,c),d=h,f=p;o&&(d+=o[3],f+=o[0]);var g=d+n;aH(t)&&this._renderBackground(t,t,h,p,i,r);for(var y=!!t.backgroundColor,v=0;v<e.lines.length;v++){for(var m=e.lines[v],x=m.tokens,_=x.length,b=m.lineHeight,w=m.width,S=0,M=d,I=g,T=_-1,C=void 0;S<_&&(!(C=x[S]).align||"left"===C.align);)this._placeToken(C,t,b,f,M,"left",y),w-=C.width,M+=C.width,S++;for(;T>=0&&"right"===(C=x[T]).align;)this._placeToken(C,t,b,f,I,"right",y),w-=C.width,I-=C.width,T--;for(M+=(n-(M-d)-(g-I)-w)/2;S<=T;)C=x[S],this._placeToken(C,t,b,f,M+C.width/2,"center",y),M+=C.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&aH(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,h=t.textPadding;h&&(r=aj(r,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var p=this._getOrCreateChild(ax),d=p.createStyle();p.useStyle(d);var f=this._defaultStyle,g=!1,y=0,v=aG("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),m=aF("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||f.autoStroke&&!g?null:(y=2,f.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=r,d.y=u,x&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=t.font||tm,d.opacity=t8(s.opacity,e.opacity,1),az(d,s),m&&(d.lineWidth=t8(s.lineWidth,e.lineWidth,y),d.lineDash=t6(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=m),v&&(d.fill=v);var _=t.contentWidth,b=t.contentHeight;p.setBoundingRect(new ns(rl(d.x,_,d.textAlign),ru(d.y,b,d.textBaseline),_,b))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,p=l&&!h,d=t.borderRadius,f=this;if(p||t.lineHeight||u&&c){(a=this._getOrCreateChild(aL)).useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=d,a.dirtyShape()}if(p){var y=a.style;y.fill=l||null,y.fillOpacity=t6(t.fillOpacity,1)}else if(h){(s=this._getOrCreateChild(aw)).onload=function(){f.dirtyStyle()};var v=s.style;v.image=l.image,v.x=n,v.y=i,v.width=r,v.height=o}if(u&&c){var y=a.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=t6(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=t8(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return aB(t)&&(e=[t.fontStyle,t.fontWeight,aE(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&ee(e)||t.textFont||t.font},e}(oO),aO={left:!0,right:1,center:1},aR={top:1,bottom:1,middle:1},aN=["fontStyle","fontWeight","fontSize","fontFamily"];function aE(t){return"string"==typeof t&&(-1!==t.indexOf("px")||-1!==t.indexOf("rem")||-1!==t.indexOf("em"))?t:isNaN(+t)?"12px":t+"px"}function az(t,e){for(var n=0;n<aN.length;n++){var i=aN[n],r=e[i];null!=r&&(t[i]=r)}}function aB(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function aV(t){if(t){t.font=aP.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||aO[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||aR[n]?n:"top",t.padding&&(t.padding=t7(t.padding))}}function aF(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function aG(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function aj(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function aW(t){var e=t.text;return null!=e&&(e+=""),e}function aH(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var aZ=r5(),aX=function(t,e,n,i){if(i){var r=aZ(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,r.ssrType="chart","group"===i.type&&i.traverse(function(i){var r=aZ(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e,r.ssrType="chart"})}},aU=1,aY={},aq=r5(),aK=r5(),aQ=["emphasis","blur","select"],a$=["normal","emphasis","blur","select"],aJ="highlight",a0="downplay",a1="select",a2="unselect",a5="toggleSelect";function a3(t){return null!=t&&"none"!==t}function a4(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function a6(t){a4(t,"emphasis",2)}function a8(t){2===t.hoverState&&a4(t,"normal",0)}function a9(t){a4(t,"blur",1)}function a7(t){1===t.hoverState&&a4(t,"normal",0)}function st(t){t.selected=!0}function se(t){t.selected=!1}function sn(t,e,n){e(t,n),t.isGroup&&t.traverse(function(t){e(t,n)})}function si(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function sr(t,e){var n,i,r,o,a,s=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n){var i=e&&tV(e,"select")>=0,r=!1;if(t instanceof av){var o=aq(t),a=i&&o.selectFill||o.normalFill,s=i&&o.selectStroke||o.normalStroke;if(a3(a)||a3(s)){var l=(n=n||{}).style||{};"inherit"===l.fill?(r=!0,n=tz({},n),(l=tz({},l)).fill=a):!a3(l.fill)&&a3(a)?(r=!0,n=tz({},n),(l=tz({},l)).fill=ic(a)):!a3(l.stroke)&&a3(s)&&(r||(n=tz({},n),l=tz({},l)),l.stroke=ic(s)),n.style=l}}if(n&&null==n.z2){r||(n=tz({},n));var u=t.z2EmphasisLift;n.z2=t.z2+(null!=u?u:10)}return n}(this,e,s);else if("blur"===t)return n=s,i=tV(this.currentStates,t)>=0,r=this.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&0>u.__fromStateTransition.indexOf(n)&&"style"===u.targetName&&u.saveTo(o,e)}return o}(this,["opacity"],t,{opacity:1}),null==(a=(n=n||{}).style||{}).opacity&&(n=tz({},n),a=tz({opacity:i?r:.1*o.opacity},a),n.style=a),n;else if("select"===t){var l=s;if(l&&null==l.z2){l=tz({},l);var u=this.z2SelectLift;l.z2=this.z2+(null!=u?u:9)}return l}}return s}function so(t){t.stateProxy=sr;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=sr),n&&(n.stateProxy=sr)}function sa(t,e){sc(t,e)||t.__highByOuter||sn(t,a6)}function ss(t,e){sc(t,e)||t.__highByOuter||sn(t,a8)}function sl(t,e){t.__highByOuter|=1<<(e||0),sn(t,a6)}function su(t,e){(t.__highByOuter&=~(1<<(e||0)))||sn(t,a8)}function sc(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function sh(t){var e=t.getModel(),n=[],i=[];e.eachComponent(function(e,r){var o=aK(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);a||i.push(s),o.isBlured&&(s.group.traverse(function(t){a7(t)}),a&&n.push(r)),o.isBlured=!1}),tj(i,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function sp(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&sn(i,a7)}}if((n=n||"coordinateSystem",null!=t)&&e&&"none"!==e){var a=r.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(t){var r=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var c=u&&s?u===s:r;if(!("series"===n&&!r||"coordinateSystem"===n&&!c||"series"===e&&r)){if(i.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&r&&"self"===e||a9(t)}),tG(e))o(t.getData(),e);else if(t0(e))for(var h=tX(e),p=0;p<h.length;p++)o(t.getData(h[p]),e[h[p]]);l.push(t),aK(t).isBlured=!0}}),r.eachComponent(function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}})}}function sd(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){aK(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(t){a9(t)})}}}function sf(t,e,n,i){var r,o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return o;var a=i.getModel().getComponent(t,e);if(!a)return o;var s=i.getViewOfComponentModel(a);if(!s||!s.findHighDownDispatchers)return o;for(var l=s.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===aZ(l[u]).focus){r=!0;break}return{focusSelf:r,dispatchers:l}}function sg(t){tj(t.getAllData(),function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,i)?sn(e,st):sn(e,se)})})}function sy(t,e,n){sw(t,!0),sn(t,so),sm(t,e,n)}function sv(t,e,n,i){i?sw(t,!1):sy(t,e,n)}function sm(t,e,n){var i=aZ(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var sx=["emphasis","blur","select"],s_={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function sb(t,e,n,i){n=n||"itemStyle";for(var r=0;r<sx.length;r++){var o=sx[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[s_[n]]()}}function sw(t,e){var n=!1===e;t.highDownSilentOnTouch&&(t.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||t.__highDownDispatcher)&&(t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!n)}function sS(t){return!!(t&&t.__highDownDispatcher)}function sM(t){var e=t.type;return e===a1||e===a2||e===a5}function sI(t){var e=t.type;return e===aJ||e===a0}var sT=r5();function sC(t,e,n,i,r){if(e&&e.ecModel){var o,a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(!s)return null;var u=void 0,c=void 0,h=void 0;return i?(u=t6(i.duration,200),c=t6(i.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(c=o.easing),null!=o.delay&&(h=o.delay)),tK(h)&&(h=h(n,r)),tK(u)&&(u=u(n)),{duration:u||0,delay:h,easing:c}}function sA(t,e,n,i,r,o,a){var s,l=!1;tK(r)?(a=o,o=r,r=null):t0(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=sC(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(c&&c.duration>0){var h={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,h):e.animateTo(n,h)}else e.stopAnimation(),l||e.attr(n),a&&a(1),o&&o()}function sL(t,e,n,i,r,o){sA("update",t,e,n,i,r,o)}function sD(t,e,n,i,r,o){sA("enter",t,e,n,i,r,o)}function sk(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function sP(t,e,n,i,r,o){sk(t)||sA("leave",t,e,n,i,r,o)}function sO(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),sP(t,{style:{opacity:0}},e,n,i)}function sR(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||sO(t,e,n,i)}):sO(t,e,n,i)}function sN(t){sT(t).oldStyle=t.style}var sE={};function sz(t,e){for(var n=0;n<aQ.length;n++){var i=aQ[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function sB(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=tK(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u<aQ.length;u++){var c=aQ[u],h=e[c];l[c]=t6(r?r.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,i)}return l}function sV(t,e,n,i){n=n||sE;for(var r=t instanceof aP,o=!1,a=0;a<a$.length;a++){var s=e[a$[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?t:t.getTextContent();if(o){!r&&(l||(l=new aP,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=sB(n,e),c=e.normal,h=!!c.getShallow("show"),p=sG(c,i&&i.normal,n,!1,!r);p.text=u.normal,r||t.setTextConfig(sj(c,n,!1));for(var a=0;a<aQ.length;a++){var d=aQ[a],s=e[d];if(s){var f=l.ensureState(d),g=!!t6(s.getShallow("show"),h);g!==h&&(f.ignore=!g),f.style=sG(s,i&&i[d],n,!0,!r),f.style.text=u[d],r||(t.ensureState(d).textConfig=sj(s,n,!0))}}l.silent=!!c.getShallow("silent"),null!=l.style.x&&(p.x=l.style.x),null!=l.style.y&&(p.y=l.style.y),l.ignore=!h,l.useStyle(p),l.dirty(),n.enableTextSetter&&(sY(l).setLabelText=function(t){var i=sB(n,e,t);sz(l,i)})}else l&&(l.ignore=!0);t.dirty()}function sF(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<aQ.length;i++){var r=aQ[i];n[r]=t.getModel([r,e])}return n}function sG(t,e,n,i,r){var o={};return function(t,e,n,i,r){n=n||sE;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||sE).rich;if(n){e=e||{};for(var i=tX(n),r=0;r<i.length;r++)e[i[r]]=1}t=t.parentModel}return e}(e);if(l){for(var u in o={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);sX(o[u]={},c,s,n,i,r,!1,!0)}}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var p=e.get("minMargin");null!=p&&(t.margin=p),sX(t,e,s,n,i,r,!0,!1)}(o,t,n,i,r),e&&tz(o,e),o}function sj(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=t6(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(r.rotation=o*=Math.PI/180),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}var sW=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],sH=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],sZ=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function sX(t,e,n,i,r,o,a,s){n=!r&&n||sE;var l=i&&i.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=t6(e.getShallow("opacity"),n.opacity);("inherit"===u||"auto"===u)&&(u=l||null),("inherit"===c||"auto"===c)&&(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(t.fill=u),null!=c&&(t.stroke=c);var p=t6(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(t.lineWidth=p);var d=t6(e.getShallow("textBorderType"),n.textBorderType);null!=d&&(t.lineDash=d);var f=t6(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(t.lineDashOffset=f),r||null!=h||s||(h=i&&i.defaultOpacity),null!=h&&(t.opacity=h),r||o||null!=t.fill||!i.inheritColor||(t.fill=i.inheritColor);for(var g=0;g<sW.length;g++){var y=sW[g],v=t6(e.getShallow(y),n[y]);null!=v&&(t[y]=v)}for(var g=0;g<sH.length;g++){var y=sH[g],v=e.getShallow(y);null!=v&&(t[y]=v)}if(null==t.verticalAlign){var m=e.getShallow("baseline");null!=m&&(t.verticalAlign=m)}if(!a||!i.disableBox){for(var g=0;g<sZ.length;g++){var y=sZ[g],v=e.getShallow(y);null!=v&&(t[y]=v)}var x=e.getShallow("borderType");null!=x&&(t.borderDash=x),("auto"===t.backgroundColor||"inherit"===t.backgroundColor)&&l&&(t.backgroundColor=l),("auto"===t.borderColor||"inherit"===t.borderColor)&&l&&(t.borderColor=l)}}function sU(t,e){var n=e&&e.getModel("textStyle");return ee([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var sY=r5();function sq(t,e,n,i){if(t){var r=sY(t);r.prevValue=r.value,r.value=n;var o=e.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}function sK(t,e,n,i,r){var o=sY(t);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=t6(o.interpolatedValue,o.prevValue),l=o.value;t.percent=0,(null==o.prevValue?sD:sL)(t,{percent:1},i,e,null,function(i){var u=on(n,o.precision,s,l,i);o.interpolatedValue=1===i?null:u,sz(t,sB({labelDataIndex:e,labelFetcher:r,defaultText:a?a(u):u+""},o.statesModels,u))})}}var sQ=["textStyle","color"],s$=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],sJ=new aP,s0=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(sQ):null)},t.prototype.getFont=function(){return sU({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<s$.length;n++)e[s$[n]]=this.getShallow(s$[n]);return sJ.useStyle(e),sJ.update(),sJ.getBoundingRect()},t}(),s1=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],s2=op(s1),s5=function(){function t(){}return t.prototype.getLineStyle=function(t){return s2(this,t)},t}(),s3=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],s4=op(s3),s6=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return s4(this,t,e)},t}(),s8=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){tN(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null;return new t(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new this.constructor(tR(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!ty.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;else if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();oa(s8),f=["__\0is_clz",ol++].join("_"),s8.prototype[f]=!0,s8.isInstance=function(t){return!!(t&&t[f])},tF(s8,s5),tF(s8,s6),tF(s8,of),tF(s8,s0);var s9=Math.round(10*Math.random());function s7(t){return[t||"",s9++].join("_")}function lt(t,e){return tN(tN({},t,!0),e,!0)}var le={},ln={},li=ty.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||"EN").toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function lr(t,e){ln[t=t.toUpperCase()]=new s8(e),le[t]=e}lr("EN",{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:". "}}}}),lr("ZH",{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 lo={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},la="{yyyy}-{MM}-{dd}",ls={year:"{yyyy}",month:"{yyyy}-{MM}",day:la,hour:la+" "+lo.hour,minute:la+" "+lo.minute,second:la+" "+lo.second,millisecond:lo.none},ll=["year","month","day","hour","minute","second","millisecond"],lu=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function lc(t,e){return t+="","0000".substr(0,e-t.length)+t}function lh(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function lp(t,e,n,i){var r=rN(t),o=r[lg(n)](),a=r[ly(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[lv(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[lm(n)](),h=(c-1)%12+1,p=r[lx(n)](),d=r[l_(n)](),f=r[lb(n)](),g=c>=12?"pm":"am",y=g.toUpperCase(),v=(i instanceof s8?i:ln[i||li]||ln.EN).getModel("time"),m=v.get("month"),x=v.get("monthAbbr"),_=v.get("dayOfWeek"),b=v.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,lc(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,lc(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,lc(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,lc(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,lc(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,lc(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,lc(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,lc(f,3)).replace(/{S}/g,f+"")}function ld(t,e){var n=rN(t),i=n[ly(e)]()+1,r=n[lv(e)](),o=n[lm(e)](),a=n[lx(e)](),s=n[l_(e)](),l=0===n[lb(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,p=h&&1===r;if(p&&1===i)return"year";if(p)return"month";if(h)return"day";if(c)return"hour";if(u)return"minute";else if(l)return"second";else return"millisecond"}function lf(t,e,n){var i=tJ(t)?rN(t):t;switch(e=e||ld(t,n)){case"year":return i[lg(n)]();case"half-year":return+(i[ly(n)]()>=6);case"quarter":return Math.floor((i[ly(n)]()+1)/4);case"month":return i[ly(n)]();case"day":return i[lv(n)]();case"half-day":return i[lm(n)]()/24;case"hour":return i[lm(n)]();case"minute":return i[lx(n)]();case"second":return i[l_(n)]();case"millisecond":return i[lb(n)]()}}function lg(t){return t?"getUTCFullYear":"getFullYear"}function ly(t){return t?"getUTCMonth":"getMonth"}function lv(t){return t?"getUTCDate":"getDate"}function lm(t){return t?"getUTCHours":"getHours"}function lx(t){return t?"getUTCMinutes":"getMinutes"}function l_(t){return t?"getUTCSeconds":"getSeconds"}function lb(t){return t?"getUTCMilliseconds":"getMilliseconds"}function lw(t){return t?"setUTCMonth":"setMonth"}function lS(t){return t?"setUTCDate":"setDate"}function lM(t){return t?"setUTCHours":"setHours"}function lI(t){return t?"setUTCMinutes":"setMinutes"}function lT(t){return t?"setUTCSeconds":"setSeconds"}function lC(t){return t?"setUTCMilliseconds":"setMilliseconds"}function lA(t){if(!rG(t))return tQ(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function lL(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function lD(t,e,n){function i(t){return t&&ee(t)?t:"-"}function r(t){return!!(null!=t&&!isNaN(t)&&isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?rN(t):t;if(!isNaN(+s))return lp(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return t$(t)?i(t):tJ(t)&&r(t)?t+"":"-";var l=rF(t);return r(l)?lA(l):t$(t)?i(t):"boolean"==typeof t?t+"":"-"}var lk=["a","b","c","d","e","f","g"],lP=function(t,e){return"{"+t+(null==e?"":e)+"}"};function lO(t,e,n){tq(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=lk[o];t=t.replace(lP(a),lP(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(lP(lk[l],s),n?eF(u):u)}return t}function lR(t,e){return e=e||"transparent",tQ(t)?t:t0(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function lN(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var lE=["left","right","top","bottom","width","height"],lz=[["width","left","right"],["height","top","bottom"]];function lB(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var c,h,p=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect();if("horizontal"===t){var g=p.width+(f?-f.x+p.x:0);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var y=p.height+(f?-f.y+p.y:0);(h=a+y)>r||l.newline?(o+=s+n,a=0,h=y,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)})}function lV(t,e,n){n=t7(n||0);var i=e.width,r=e.height,o=rC(t.left,i),a=rC(t.top,r),s=rC(t.right,i),l=rC(t.bottom,r),u=rC(t.width,i),c=rC(t.height,r),h=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(c)&&(c=r-l-h-a),null!=d&&(isNaN(u)&&isNaN(c)&&(d>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var f=new ns(o+n[3],a+n[0],u,c);return f.margin=n,f}function lF(t,e,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new ns(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();(a=a.clone()).applyTransform(c)}var h=lV(tB({width:a.width,height:a.height},e),n,i),p=s?h.x-a.x:0,d=l?h.y-a.y:0;return"raw"===u?(o.x=p,o.y=d):(o.x+=p,o.y+=d),o===t&&t.markRedraw(),!0}function lG(t){var e=t.layoutMode||t.constructor.layoutMode;return t0(e)?e:e?{type:e}:null}function lj(t,e,n){var i=n&&n.ignoreSize;tq(i)||(i=[i,i]);var r=a(lz[0],0),o=a(lz[1],1);function a(n,r){var o={},a=0,u={},c=0;if(tj(n,function(e){u[e]=t[e]}),tj(n,function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++}),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2===c||!a)return u;if(a>=2)return o;for(var h=0;h<n.length;h++){var p=n[h];if(!s(o,p)&&s(t,p)){o[p]=t[p];break}}return o}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,n){tj(t,function(t){e[t]=n[t]})}u(lz[0],t,r),u(lz[1],t,o)}function lW(t){return lH({},t)}function lH(t,e){return e&&t&&tj(lE,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}tY(lB,"vertical"),tY(lB,"horizontal");var lZ=r5(),lX=function(t){var e;function n(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=s7("ec_cpt_model"),r}return tf(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=lG(this),i=n?lW(t):{};tN(t,e.getTheme().get(this.mainType)),tN(t,this.getDefaultOption()),n&&lj(t,i,n)},n.prototype.mergeOption=function(t,e){tN(this.option,t,!0);var n=lG(this);n&&lj(this.option,t,n)},n.prototype.optionUpdated=function(t,e){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!(t&&t[or]))return t.defaultOption;var e=lZ(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=tN(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){return r7(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)},e)},n.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=void((e=n.prototype).type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0),n}(s8);os(lX,s8),oh(lX),g={},lX.registerSubTypeDefaulter=function(t,e){g[oo(t).main]=e},lX.determineSubType=function(t,e){var n=e.type;if(!n){var i=oo(t).main;lX.hasSubTypes(t)&&g[i]&&(n=g[i](e))}return n};var lU=function(t){var e=[];return tj(lX.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=tW(e,function(t){return oo(t).main}),"dataset"!==t&&0>=tV(e,"dataset")&&e.unshift("dataset"),e};function lY(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}lX.topologicalTravel=function(t,e,n,i){if(t.length){var r,o,a,s=(o={},a=[],tj(r=e,function(t){var e,n,i,s=lY(o,t),l=(e=s.originalDeps=lU(t),n=r,i=[],tj(e,function(t){tV(n,t)>=0&&i.push(t)}),i);s.entryCount=l.length,0===s.entryCount&&a.push(t),tj(l,function(e){0>tV(s.predecessor,e)&&s.predecessor.push(e);var n=lY(o,e);0>tV(n.successor,e)&&n.successor.push(t)})}),{graph:o,noEntryList:a}),l=s.graph,u=s.noEntryList,c={};for(tj(t,function(t){c[t]=!0});u.length;){var h=u.pop(),p=l[h],d=!!c[h];d&&(n.call(i,h,p.originalDeps.slice()),delete c[h]),tj(p.successor,d?g:f)}tj(c,function(){throw Error("")})}function f(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function g(t){c[t]=!0,f(t)}};var lq="";"u">typeof navigator&&(lq=navigator.platform||"");var lK="rgba(0, 0, 0, 0.2)";let lQ={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:lK,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:lK,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:lK,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:lK,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:lK,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:lK,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:lq.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var l$=ea(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),lJ="original",l0="arrayRows",l1="objectRows",l2="keyedColumns",l5="typedArray",l3="unknown",l4="column",l6=r5();function l8(t,e,n){var i,r,o={},a=l7(e);if(!a||!t)return o;var s=[],l=[],u=l6(e.ecModel).datasetMap,c=a.uid+"_"+n.seriesLayoutBy;tj(t=t.slice(),function(e,n){var a=t0(e)?e:t[n]={name:e};"ordinal"===a.type&&null==i&&(i=n,r=d(a)),o[a.name]=[]});var h=u.get(c)||u.set(c,{categoryWayDim:r,valueWayDim:0});function p(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function d(t){var e=t.dimsDef;return e?e.length:1}return tj(t,function(t,e){var n=t.name,r=d(t);if(null==i){var a=h.valueWayDim;p(o[n],a,r),p(l,a,r),h.valueWayDim+=r}else if(i===e)p(o[n],0,r),p(s,0,r);else{var a=h.categoryWayDim;p(o[n],a,r),p(l,a,r),h.categoryWayDim+=r}}),s.length&&(o.itemName=s),l.length&&(o.seriesName=l),o}function l9(t,e,n){var i,r={};if(!l7(t))return r;var o=e.sourceFormat,a=e.dimensionsDefine;(o===l1||o===l2)&&tj(a,function(t,e){(t0(t)?t.name:t)==="name"&&(i=e)});var s=function(){for(var t={},r={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=ue(e.data,o,e.seriesLayoutBy,a,e.startIndex,l);s.push(c);var h=3===c;if(h&&null==t.v&&l!==i&&(t.v=l),null!=t.n&&t.n!==t.v&&(h||3!==s[t.n])||(t.n=l),p(t)&&3!==s[t.n])return t;h||(2===c&&null==r.v&&l!==i&&(r.v=l),(null==r.n||r.n===r.v)&&(r.n=l))}function p(t){return null!=t.v&&null!=t.n}return p(t)?t:p(r)?r:null}();if(s){r.value=[s.v];var l=null!=i?i:s.n;r.itemName=[l],r.seriesName=[l]}return r}function l7(t){if(!t.get("data",!0))return r7(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},r8).models[0]}function ut(t,e){return ue(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function ue(t,e,n,i,r,o){var a,s,l;if(t2(t))return 3;if(i){var u=i[o];t0(u)?(s=u.name,l=u.type):tQ(u)&&(s=u)}if(null!=l)return"ordinal"===l?1:3;if(e===l0)if("row"===n){for(var c=t[o],h=0;h<(c||[]).length&&h<5;h++)if(null!=(a=g(c[r+h])))return a}else for(var h=0;h<t.length&&h<5;h++){var p=t[r+h];if(p&&null!=(a=g(p[o])))return a}else if(e===l1){if(!s)return 3;for(var h=0;h<t.length&&h<5;h++){var d=t[h];if(d&&null!=(a=g(d[s])))return a}}else if(e===l2){if(!s)return 3;var c=t[s];if(!c||t2(c))return 3;for(var h=0;h<c.length&&h<5;h++)if(null!=(a=g(c[h])))return a}else if(e===lJ)for(var h=0;h<t.length&&h<5;h++){var d=t[h],f=rq(d);if(!tq(f))return 3;if(null!=(a=g(f[o])))return a}function g(t){var e=tQ(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?2:3:e&&"-"!==t?1:void 0}return 3}var un=ea(),ui=r5(),ur=r5(),uo=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){return us(this,ui,rX(this.get("color",!0)),this.get("colorLayer",!0),t,e,n)},t.prototype.clearColorPalette=function(){var t,e;t=this,(e=ui)(t).paletteIdx=0,e(t).paletteNameMap={}},t}();function ua(t,e,n,i){var r=rX(t.get(["aria","decal","decals"]));return us(t,ur,r,null,e,n,i)}function us(t,e,n,i,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n;if((c=c||n)&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}function ul(t){}function uu(t){throw Error(t)}var uc="\0_ec_inner",uh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new s8(i),this._locale=new s8(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=uf(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,uf(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):M(this,r),n=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&tj(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=ea(),s=e&&e.replaceMergeMainTypeMap;l6(this).datasetMap=ea(),tj(t,function(t,e){null!=t&&(lX.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?tR(t):tN(n[e],t,!0))}),s&&s.each(function(t,e){lX.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),lX.topologicalTravel(o,lX.getAllClassMainTypes(),function(e){var o,a=function(t,e,n){var i=un.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,rX(t[e])),l=i.get(e),u=l?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",c=rK(l,a,u);tj(c,function(t){var n,i,r,o,a=t.newOption;t0(a)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(n=e,i=a,r=t.existing,o=lX,i.type?i.type:r?r.subType:o.determineSubType(n,i)))}),n[e]=null,i.set(e,null),r.set(e,0);var h=[],p=[],d=0;tj(c,function(t,n){var i=t.existing,r=t.newOption;if(r){var a="series"===e,s=lX.getClass(e,t.keyInfo.subType,!a);if(!s)return;if("tooltip"===e){if(o)return;o=!0}if(i&&i.constructor===s)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var l=tz({componentIndex:n},t.keyInfo);tz(i=new s(r,this,this,l),l),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(h.push(i.option),p.push(i),d++):(h.push(void 0),p.push(void 0))},this),n[e]=h,i.set(e,p),r.set(e,d),"series"===e&&w(this)},this),this._seriesIndices||w(this)},e.prototype.getOption=function(){var t=tR(this.option);return tj(t,function(e,n){if(lX.hasClass(n)){for(var i=rX(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!r1(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[uc],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e){for(var r=0;r<n.length;r++)if(n[r])return n[r]}}},e.prototype.queryComponents=function(t){var e,n=t.mainType;if(!n)return[];var i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(n);return a&&a.length?(null!=i?(e=[],tj(rX(i),function(t){a[t]&&e.push(a[t])})):e=null!=r?up("id",r,a):null!=o?up("name",o,a):tZ(a,function(t){return!!t}),ud(e,t)):[]},e.prototype.findComponents=function(t){var e,n,i,r,o,a=t.query,s=t.mainType,l=(e=a,n=s+"Index",i=s+"Id",r=s+"Name",e&&(null!=e[n]||null!=e[i]||null!=e[r])?{mainType:s,index:e[n],id:e[i],name:e[r]}:null);return o=ud(l?this.queryComponents(l):tZ(this._componentsMap.get(s),function(t){return!!t}),t),t.filter?tZ(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(tK(t))i.each(function(n,i){for(var r=0;n&&r<n.length;r++){var o=n[r];o&&t.call(e,i,o,o.componentIndex)}});else for(var r=tQ(t)?i.get(t):t0(t)?this.findComponents(t):null,o=0;r&&o<r.length;o++){var a=r[o];a&&e.call(n,a,a.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=rJ(t,null);return tZ(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return tZ(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},e.prototype.getSeries=function(){return tZ(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){S(this),tj(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},e.prototype.eachRawSeries=function(t,e){tj(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,e,n){S(this),tj(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},e.prototype.eachRawSeriesByType=function(t,e,n){return tj(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return S(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){S(this);var n=[];tj(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=ea(n)},e.prototype.restoreData=function(t){w(this);var e=this._componentsMap,n=[];e.each(function(t,e){lX.hasClass(e)&&n.push(e)}),lX.topologicalTravel(n,lX.getAllClassMainTypes(),function(n){tj(e.get(n),function(e){e&&("series"!==n||!function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t))&&e.restoreData()})})},e.internalField=void(w=function(t){var e=t._seriesIndices=[];tj(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=ea(e)},S=function(t){},M=function(t,e){t.option={},t.option[uc]=1,t._componentsMap=ea({series:[]}),t._componentsCount=ea();var n,i,r,o=e.aria;t0(o)&&null==o.enabled&&(o.enabled=!0),n=e,i=t._theme.option,r=n.color&&!n.colorLayer,tj(i,function(t,e){("colorLayer"!==e||!r)&&(lX.hasClass(e)||("object"==typeof t?n[e]=n[e]?tN(n[e],t,!1):tR(t):null==n[e]&&(n[e]=t)))}),tN(e,lQ,!1),t._mergeOption(e,null)}),e}(s8);function up(t,e,n){if(tq(e)){var i=ea();return tj(e,function(t){null!=t&&null!=rJ(t,null)&&i.set(t,!0)}),tZ(n,function(e){return e&&i.get(e[t])})}var r=rJ(e,null);return tZ(n,function(e){return e&&null!=r&&e[t]===r})}function ud(t,e){return e.hasOwnProperty("subType")?tZ(t,function(t){return t&&t.subType===e.subType}):t}function uf(t){var e=ea();return t&&tj(rX(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}tF(uh,uo);var ug=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];let uy=function(t){tj(ug,function(e){this[e]=tU(t[e],t)},this)};var uv={},um=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];tj(uv,function(i,r){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},t.prototype.update=function(t,e){tj(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){uv[t]=e},t.get=function(t){return uv[t]},t}(),ux=/^(min|max)?(.+)$/,u_=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(tj(rX(t.series),function(t){t&&t.data&&t2(t.data)&&(t.data[en]=!0)}),tj(rX(t.dataset),function(t){t&&t.source&&t2(t.source)&&(t.source[en]=!0)})),t=tR(t);var i=this._optionBackup,r=function(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);function p(t){tj(e,function(e){e(t,n)})}return a?(r=a).timeline||(r.timeline=s):((h||c)&&(t.options=t.media=null),r=t),c&&tq(u)&&tj(u,function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))}),p(r),tj(l,function(t){return p(t)}),tj(o,function(t){return p(t.option)}),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],tR(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=tR(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)(function(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return tj(t,function(t,e){var n=e.match(ux);if(n&&n[1]&&n[2]){var o,a,s,l=n[1];o=i[n[2].toLowerCase()],a=t,("min"===(s=l)?o>=a:"max"===s?o<=a:o===a)||(r=!1)}}),r})(o[u].query,i,r)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=tW(s,function(t){return tR(-1===t?a.option:o[t].option)})),this._currentMediaIndices=s,l},t}(),ub=t0,uw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function uS(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=uw.length;n<i;n++){var r=uw[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?tN(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?tN(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function uM(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,tB(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function uI(t){uM(t,"itemStyle"),uM(t,"lineStyle"),uM(t,"areaStyle"),uM(t,"label"),uM(t,"labelLine"),uM(t,"upperLabel"),uM(t,"edgeLabel")}function uT(t,e){var n=ub(t)&&t[e],i=ub(n)&&n.textStyle;if(i)for(var r=0,o=rY.length;r<o;r++){var a=rY[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function uC(t){t&&(uI(t),uT(t,"label"),t.emphasis&&uT(t.emphasis,"label"))}function uA(t){return tq(t)?t:t?[t]:[]}function uL(t){return(tq(t)?t[0]:t)||{}}function uD(t){t&&tj(uk,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var uk=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],uP=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],uO=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function uR(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<uO.length;n++){var i=uO[n][1],r=uO[n][0];null!=e[i]&&(e[r]=e[i])}}function uN(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function uE(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function uz(t,e){var n;tj(uA(t.series),function(t){ub(t)&&function(t){if(ub(t)){uS(t),uI(t),uT(t,"label"),uT(t,"upperLabel"),uT(t,"edgeLabel"),t.emphasis&&(uT(t.emphasis,"label"),uT(t.emphasis,"upperLabel"),uT(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(uS(e),uC(e));var n=t.markLine;n&&(uS(n),uC(n));var i=t.markArea;i&&uC(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!t2(o))for(var a=0;a<o.length;a++)uC(o[a]);tj(t.categories,function(t){uI(t)})}if(r&&!t2(r))for(var a=0;a<r.length;a++)uC(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)uC(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)tq(l[a])?(uC(l[a][0]),uC(l[a][1])):uC(l[a]);"gauge"===t.type?(uT(t,"axisLabel"),uT(t,"title"),uT(t,"detail")):"treemap"===t.type?(uM(t.breadcrumb,"itemStyle"),tj(t.levels,function(t){uI(t)})):"tree"===t.type&&uI(t.leaves)}}(t)}),n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"],e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),tj(n,function(e){tj(uA(t[e]),function(t){t&&(uT(t,"axisLabel"),uT(t.axisPointer,"label"))})}),tj(uA(t.parallel),function(t){var e=t&&t.parallelAxisDefault;uT(e,"axisLabel"),uT(e&&e.axisPointer,"label")}),tj(uA(t.calendar),function(t){uM(t,"itemStyle"),uT(t,"dayLabel"),uT(t,"monthLabel"),uT(t,"yearLabel")}),tj(uA(t.radar),function(t){uT(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),tj(uA(t.geo),function(t){ub(t)&&(uC(t),tj(uA(t.regions),function(t){uC(t)}))}),tj(uA(t.timeline),function(t){uC(t),uM(t,"label"),uM(t,"itemStyle"),uM(t,"controlStyle",!0);var e=t.data;tq(e)&&tj(e,function(t){t0(t)&&(uM(t,"label"),uM(t,"itemStyle"))})}),tj(uA(t.toolbox),function(t){uM(t,"iconStyle"),tj(t.feature,function(t){uM(t,"iconStyle")})}),uT(uL(t.axisPointer),"label"),uT(uL(t.tooltip).axisPointer,"label"),t.series=rX(t.series),tj(t.series,function(t){if(t0(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),uN(t.label);var n=t.data;if(n&&!t2(n))for(var i=0;i<n.length;i++)uN(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)}else if("gauge"===e){var r=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");null!=r&&function(t,e,n){for(var i,r=e.split(","),o=t,a=0;a<r.length-1;a++)null==o[i=r[a]]&&(o[i]={}),o=o[i];null==o[r[a]]&&(o[r[a]]=n)}(t,"itemStyle.color",r)}else if("bar"===e){uR(t),uR(t.backgroundStyle),uR(t.emphasis);var n=t.data;if(n&&!t2(n))for(var i=0;i<n.length;i++)"object"==typeof n[i]&&(uR(n[i]),uR(n[i]&&n[i].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),uE(t),function t(e,n){if(e)for(var i=0;i<e.length;i++)n(e[i]),e[i]&&t(e[i].children,n)}(t.data,uE)}else"graph"===e||"sankey"===e?t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency")):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&tB(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),uD(t)}}),t.dataRange&&(t.visualMap=t.dataRange),tj(uP,function(e){var n=t[e];n&&(tq(n)||(n=[n]),tj(n,function(t){uD(t)}))})}function uB(t){tj(t,function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,c){var h,p,d=a.get(e.stackedDimension,c);if(isNaN(d))return r;s?p=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var y=t[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var v=y.data.getByRawIndex(y.stackResultDimension,p);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&d>=0&&v>0||"samesign"===l&&d<=0&&v<0){d=function(t,e){var n=Math.max(rD(t),rD(e)),i=t+e;return n>20?i:rA(i,n)}(d,v),f=v;break}}}return i[0]=d,i[1]=f,i})})}var uV=function(t){this.data=t.data||(t.sourceFormat===l2?{}:[]),this.sourceFormat=t.sourceFormat||l3,this.seriesLayoutBy=t.seriesLayoutBy||l4,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&1===ut(this,n)&&(i.type="ordinal")}};function uF(t){return t instanceof uV}function uG(t,e,n){n=n||uW(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){if(!t)return{dimensionsDefine:uH(r),startIndex:a,dimensionsDetectedCount:o};if(e===l0){var o,a;"auto"===i||null==i?uZ(function(t){null!=t&&"-"!==t&&(tQ(t)?null==a&&(a=1):a=0)},n,t,10):a=tJ(i)?i:+!!i,r||1!==a||(r=[],uZ(function(t,e){r[e]=null!=t?t+"":""},n,t,1/0)),o=r?r.length:"row"===n?t.length:t[0]?t[0].length:null}else if(e===l1)r||(r=function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return tX(e)}(t));else if(e===l2)r||(r=[],tj(t,function(t,e){r.push(e)}));else if(e===lJ){var s=rq(t[0]);o=tq(s)&&s.length||1}return{startIndex:a,dimensionsDefine:uH(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new uV({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:tR(e)})}function uj(t){return new uV({data:t,sourceFormat:t2(t)?l5:lJ})}function uW(t){var e=l3;if(t2(t))e=l5;else if(tq(t)){0===t.length&&(e=l0);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(tq(r)||t2(r)){e=l0;break}else if(t0(r)){e=l1;break}}}}else if(t0(t)){for(var o in t)if(ec(t,o)&&tG(t[o])){e=l2;break}}return e}function uH(t){if(t){var e=ea();return tW(t,function(t,n){var i={name:(t=t0(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=e.get(i.name);return r?i.name+="-"+r.count++:e.set(i.name,{count:1}),i})}}function uZ(t,e,n,i){if("row"===e)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&r<i;r++)t(o[r],r)}function uX(t){var e=t.sourceFormat;return e===l1||e===l2}var uU=function(){var t;function e(t,e){var n=uF(t)?t:uj(t);this._source=n;var i=this._data=n.data;n.sourceFormat===l5&&(this._offset=0,this._dimSize=e,this._data=i),L(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,e){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=void((t=e.prototype).pure=!1,t.persistent=!0),e.internalField=function(){L=function(t,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;tz(t,A[u0(a,s)]),a===l5?(t.getItem=e,t.count=i,t.fillStorage=n):(t.getItem=tU(function(t,e){return uq[u0(t,e)]}(a,s),null,r,l,u),t.count=tU(function(t,e){return uQ[u0(t,e)]}(a,s),null,r,l,u))};var t,e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],p=0;p<c;p++){var d=r[p*o+a];h[t+p]=d,d<l&&(l=d),d>u&&(u=d)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[l0+"_"+l4]={pure:!0,appendData:r},t[l0+"_row"]={pure:!0,appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[l1]={pure:!0,appendData:r},t[l2]={pure:!0,appendData:function(t){var e=this._data;tj(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},t[lJ]={appendData:r},t[l5]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},A=t}(),e}(),uY=function(t,e,n,i){return t[i]},uq=((I={})[l0+"_"+l4]=function(t,e,n,i){return t[i+e]},I[l0+"_row"]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=0;a<t.length;a++){var s=t[a];o[a]=s?s[i]:null}return o},I[l1]=uY,I[l2]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=t[n[a].name];o[a]=s?s[i]:null}return o},I[lJ]=uY,I),uK=function(t,e,n){return t.length},uQ=((T={})[l0+"_"+l4]=function(t,e,n){return Math.max(0,t.length-e)},T[l0+"_row"]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},T[l1]=uK,T[l2]=function(t,e,n){var i=t[n[0].name];return i?i.length:0},T[lJ]=uK,T),u$=function(t,e,n){return t[e]},uJ=((C={})[l0]=u$,C[l1]=function(t,e,n){return t[n]},C[l2]=u$,C[lJ]=function(t,e,n){var i=rq(t);return i instanceof Array?i[e]:i},C[l5]=u$,C);function u0(t,e){return t===l0?t+"_"+e:t}function u1(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return uJ[o](i,a,s)}var l=i;return o===lJ&&(l=rq(i)),l}}}var u2=/\{@(.+?)\}/g,u5=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,p=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);return(o&&(s.value=o.interpolatedValue),null!=i&&tq(s.value)&&(s.value=s.value[i]),r||(r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),tK(r))?(s.status=e,s.dimensionIndex=i,r(s)):tQ(r)?lO(r,s).replace(u2,function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=u1(a,t,r);if(o&&tq(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return u1(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function u3(t){var e,n;return t0(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function u4(t){return new u6(t)}var u6=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n,i,r,o=this._upstream,a=t&&t.skip;if(this._dirty&&o){var s=this.context;s.data=s.outputData=o.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!a&&(i=this._plan(this.context));var l=((e=this._modBy)>=1||(e=1),e),u=this._modDataCount||0,c=((n=t&&t.modBy)>=1||(n=1),n),h=t&&t.modDataCount||0;(l!==c||u!==h)&&(i="reset"),(this._dirty||"reset"===i)&&(this._dirty=!1,r=this._doReset(a)),this._modBy=c,this._modDataCount=h;var p=t&&t.step;if(o?this._dueEnd=o._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!a&&(r||d<f)){var g=this._progress;if(tq(g))for(var y=0;y<g.length;y++)this._doProgress(g[y],d,f,c,h);else this._doProgress(g,d,f,c,h)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){u8.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:u8.next},this.context)},t.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),tq(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var e,n,i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),u8=function(){var t,e,n,i,r,o={reset:function(l,u,c,h){e=l,t=u,n=c,r=Math.ceil((i=h)/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}();function u9(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||tJ(t)||null==t||"-"===t||(t=+rN(t)),null==t||""===t?NaN:Number(t))}var u7=ea({number:function(t){return parseFloat(t)},time:function(t){return+rN(t)},trim:function(t){return tQ(t)?ee(t):t}}),ct={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},ce=function(){function t(t,e){tJ(e)||uu(""),this._opFn=ct[t],this._rvalFloat=rF(e)}return t.prototype.evaluate=function(t){return tJ(t)?this._opFn(t,this._rvalFloat):this._opFn(rF(t),this._rvalFloat)},t}(),cn=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=tJ(t)?t:rF(t),i=tJ(e)?e:rF(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=tQ(t),s=tQ(e);a&&(n=s?t:0),s&&(i=a?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),ci=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=rF(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&("number"===n||"number"===this._rvalTypeof)&&(e=rF(t)===this._rvalFloat)}return this._isEQ?e:!e},t}(),cr=function(){function t(){}return t.prototype.getRawData=function(){throw Error("not supported")},t.prototype.getRawDataItem=function(t){throw Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return u9(t,e)},t}();function co(t){return cc(t.sourceFormat)||uu(""),t.data}function ca(t){var e=t.sourceFormat,n=t.data;if(cc(e)||uu(""),e===l0){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===l1){for(var i=[],r=0,o=n.length;r<o;r++)i.push(tz({},n[r]));return i}}function cs(t,e,n){if(null!=n){if(tJ(n)||!isNaN(n)&&!ec(e,n))return t[n];else if(ec(e,n))return e[n]}}function cl(t){return tR(t)}var cu=ea();function cc(t){return t===l0||t===l1}var ch="undefined",cp=typeof Uint32Array===ch?Array:Uint32Array,cd=typeof Uint16Array===ch?Array:Uint16Array,cf=typeof Int32Array===ch?Array:Int32Array,cg=typeof Float64Array===ch?Array:Float64Array,cy={float:cg,int:cf,ordinal:Array,number:Array,time:cg};function cv(t){return t>65535?cp:cd}function cm(){return[1/0,-1/0]}function cx(t,e,n,i,r){var o=cy[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}var c_=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ea()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=D[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],uX(i),this._dimensions=tW(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new cy[e||"float"](this._rawCount),this._rawExtent[r]=cm(),r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=cm());for(var s=r[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++){var u=i[l];cx(n,l,u.type,s,!0)}for(var c=[],h=a;h<s;h++)for(var p=h-a,d=0;d<r;d++){var u=i[d],f=D.arrayRows.call(this,t[p]||c,u.property,p,d);n[d][h]=f;var g=o[d];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=tW(o,function(t){return t.property}),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=cm()),cx(r,u,c.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var h=[],p=t;p<e;p++){h=i.getItem(p,h);for(var d=0;d<a;d++){var f=r[d],g=this._dimValueGetter(h,l[d],p,d);f[p]=g;var y=s[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;for(var r=0,o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,r=this.count();i<r;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return -1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return -1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=e-i[this.getRawIndex(l)],h=Math.abs(c);h<=n&&((h<o||h===o&&c>=0&&a<0)&&(o=h,a=c,s=0),c===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{var n=cv(this._rawCount);t=new n(this.count());for(var r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(cv(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<i;c++){var h=void 0,p=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a)h=e(u[l][p],c);else{for(var d=0;d<a;d++)o[d]=u[t[d]][p];o[d]=c,h=e.apply(null,o)}h&&(r[s++]=p)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=tX(t),r=i.length;if(!r)return this;var o=e.count(),a=new(cv(e._rawCount))(o),s=0,l=i[0],u=t[l][0],c=t[l][1],h=e._chunks,p=!1;if(!e._indices){var d=0;if(1===r){for(var f=h[i[0]],g=0;g<n;g++){var y=f[g];(y>=u&&y<=c||isNaN(y))&&(a[s++]=d),d++}p=!0}else if(2===r){for(var f=h[i[0]],v=h[i[1]],m=t[i[1]][0],x=t[i[1]][1],g=0;g<n;g++){var y=f[g],_=v[g];(y>=u&&y<=c||isNaN(y))&&(_>=m&&_<=x||isNaN(_))&&(a[s++]=d),d++}p=!0}}if(!p)if(1===r)for(var g=0;g<o;g++){var b=e.getRawIndex(g),y=h[i[0]][b];(y>=u&&y<=c||isNaN(y))&&(a[s++]=b)}else for(var g=0;g<o;g++){for(var w=!0,b=e.getRawIndex(g),S=0;S<r;S++){var M=i[S],y=h[M][b];(y<t[M][0]||y>t[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=cm();for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),p=0;p<o;p++)s[p]=i[e[p]][h];s[o]=c;var d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(r[0]=d,d=r);for(var u=0;u<d.length;u++){var f=e[u],g=d[u],y=l[f],v=i[f];v&&(v[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(cv(this._rawCount))(Math.min((Math.ceil(s/u)+2)*2,s));h[l++]=c;for(var p=1;p<s-1;p+=u){for(var d=Math.min(p+u,s-1),f=Math.min(p+2*u,s),g=(f+d)/2,y=0,v=d;v<f;v++){var m=this.getRawIndex(v),x=a[m];isNaN(x)||(y+=x)}y/=f-d;var _=p,b=Math.min(p+u,s),w=p-1,S=a[c];n=-1,r=_;for(var M=-1,I=0,v=_;v<b;v++){var m=this.getRawIndex(v),x=a[m];if(isNaN(x)){I++,M<0&&(M=m);continue}(i=Math.abs((w-g)*(x-S)-(w-v)*(y-S)))>n&&(n=i,r=m)}I>0&&I<b-_&&(h[l++]=Math.min(M,r),r=Math.max(M,r)),h[l++]=r,c=r}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,r=Math.floor(1/e),o=i[t],a=this.count(),s=new(cv(this._rawCount))(2*Math.ceil(a/r)),l=0,u=0;u<a;u+=r){var c=u,h=o[this.getRawIndex(c)],p=u,d=o[this.getRawIndex(p)],f=r;u+r>a&&(f=a-u);for(var g=0;g<f;g++){var y=o[this.getRawIndex(u+g)];y<h&&(h=y,c=u+g),y>d&&(d=y,p=u+g)}var v=this.getRawIndex(c),m=this.getRawIndex(p);c<p?(s[l++]=v,s[l++]=m):(s[l++]=m,s[l++]=v)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=r._rawExtent[t]=cm(),h=new(cv(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){s>u-d&&(a.length=s=u-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),v=this.getRawIndex(Math.min(d+i(a,y)||0,u-1));l[v]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[p++]=v}return r._count=p,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e,n=this._chunks[t],i=cm();if(!n)return i;var r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(e=this._extent[t])return e.slice();for(var o=(e=i)[0],a=e[1],s=0;s<r;s++){var l=n[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return e=[o,a],this._extent[t]=e,e},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i=new t,r=this._chunks,o=e&&tH(e,function(t,e){return t[e]=!0,t},{});if(o)for(var a=0;a<r.length;a++)i._chunks[a]=o[a]?function(t){var e=t.constructor;return e===Array?t.slice():new e(t)}(r[a]):r[a];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=tR(this._extent),t._rawExtent=tR(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return u9(t[i],this._dimensions[i])}D={arrayRows:t,objectRows:function(t,e,n,i){return u9(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return u9(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),cb=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(cS(n)){var o=void 0,a=void 0,s=void 0;if(r){var l=i[0];l.prepareSource(),o=(s=l.getSource()).data,a=s.sourceFormat,e=[l._getVersionSign()]}else a=t2(o=n.get("data",!0))?l5:lJ,e=[];var u=this._getSourceMetaRawOption()||{},c=s&&s.metaRawOption||{},h=t6(u.seriesLayoutBy,c.seriesLayoutBy)||null,p=t6(u.sourceHeader,c.sourceHeader),d=t6(u.dimensions,c.dimensions);t=h!==c.seriesLayoutBy||!!p!=!!c.sourceHeader||d?[uG(o,{seriesLayoutBy:h,sourceHeader:p,dimensions:d},a)]:[]}else if(r){var f=this._applyTransform(i);t=f.sourceList,e=f.upstreamSignList}else t=[uG(n.get("source",!0),this._getSourceMetaRawOption(),null)],e=[];this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n,i=this._sourceHost,r=i.get("transform",!0),o=i.get("fromTransformResult",!0);null!=o&&1!==t.length&&cM("");var a=[],s=[];return(tj(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||cM(""),a.push(e),s.push(t._getVersionSign())}),r)?n=function(t,e,n){var i=rX(t),r=i.length;r||uu("");for(var o=0;o<r;o++)e=function(t,e){e.length||uu(""),t0(t)||uu("");var n=t.type,i=cu.get(n);i||uu("");var r=tW(e,function(t){return function(t,e){var n=new cr,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==l4&&uu("");var a=[],s={},l=t.dimensionsDefine;if(l)tj(l,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};a.push(i),null!=n&&(ec(s,n)&&uu(""),s[n]=i)});else for(var u=0;u<t.dimensionsDetectedCount||0;u++)a.push({index:u});var c=uq[u0(r,l4)];e.__isBuiltIn&&(n.getRawDataItem=function(t){return c(i,o,a,t)},n.getRawData=tU(co,null,t)),n.cloneRawData=tU(ca,null,t),n.count=tU(uQ[u0(r,l4)],null,i,o,a);var h=uJ[r];n.retrieveValue=function(t,e){return p(c(i,o,a,t),e)};var p=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];if(n)return h(t,e,n.name)}};return n.getDimensionInfo=tU(cs,null,a,s),n.cloneAllDimensionInfo=tU(cl,null,a),n}(t,i)});return tW(rX(i.transform({upstream:r[0],upstreamList:r,config:tR(t.config)})),function(t,n){t0(t)||uu(""),t.data||uu(""),cc(uW(t.data))||uu("");var i,r=e[0];if(r&&0===n&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),i={seriesLayoutBy:l4,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:l4,sourceHeader:0,dimensions:t.dimensions};return uG(t.data,i,null)})}(i[o],e),o!==r-1&&(e.length=Math.max(e.length,1));return e}(r,a,{datasetIndex:i.componentIndex}):null!=o&&(n=[new uV({data:(e=a[0]).data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:tR(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})]),{sourceList:n,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];cS(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new c_).initData(new uU(e,t.length),t),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(cS(t)){var e=l7(t);return e?[e.getSourceManager()]:[]}return tW(t.get("transform",!0)||t.get("fromTransformResult",!0)?r7(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},r8).models:[],function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return cS(i)?(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function cw(t){t.option.transform&&(t.option.transform[en]=!0)}function cS(t){return"series"===t.mainType}function cM(t){throw Error(t)}function cI(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+eF(e+"")+"px"}function cT(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+eF(i+"")+"px;color:"+eF(n)+";font-weight:"+eF(r+""),valueStyle:"font-size:"+eF(a+"")+"px;color:"+eF(o)+";font-weight:"+eF(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var cC=[0,10,20,30],cA=["","\n","\n\n","\n\n\n"];function cL(t,e){return e.type=t,e}function cD(t){return"section"===t.type}function ck(t,e,n,i){var r,o=e.noHeader,a={html:cC[r=function t(e){if(cD(e)){var n=0,i=e.blocks.length,r=i>1||i>0&&!e.noHeader;return tj(e.blocks,function(e){var i=t(e);i>=n&&(n=i+ +(r&&(!i||cD(e)&&!e.noHeader)))}),n}return 0}(e)],richText:cA[r]},s=[],l=e.blocks||[];et(!l||tq(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(ec(c,u)){var h=new cn(c[u],null);l.sort(function(t,e){return h.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===u&&l.reverse()}tj(l,function(n,r){var o=e.valueFormatter,l=(cD(n)?ck:cP)(o?tz(tz({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)});var p="richText"===t.renderMode?s.join(a.richText):cR(i,s.join(""),o?n:a.html);if(o)return p;var d=lD(e.header,"ordinal",t.useUTC),f=cT(i,t.renderMode).nameStyle,g=cI(i);return"richText"===t.renderMode?cN(t,d,f)+a.richText+p:cR(i,'<div style="'+f+";"+g+';">'+eF(d)+"</div>"+p,n)}function cP(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return tW(t=tq(t)?t:[t],function(t,e){return lD(t,tq(b)?b[e]:b,u)})};if(!o||!a){var h,p,d,f,g,y,v,m,x=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),_=o?"":lD(l,"ordinal",u),b=e.valueType,w=a?[]:c(e.value,e.dataIndex),S=!s||!o,M=!s&&o,I=cT(i,r),T=I.nameStyle,C=I.valueStyle;return"richText"===r?(s?"":x)+(o?"":cN(t,_,T))+(a?"":(h=t,p=w,d=S,f=M,g=[C],d&&g.push({padding:[0,0,0,f?10:20],align:"right"}),h.markupStyleCreator.wrapRichTextStyle(tq(p)?p.join(" "):p,g))):cR(i,(s?"":x)+(o?"":'<span style="'+T+";"+(s?"":"margin-left:2px")+'">'+eF(_)+"</span>")+(a?"":(y=w,v=S,m=M,'<span style="'+(v?"float:right;margin-left:"+(m?"10px":"20px"):"")+";"+C+'">'+tW(y=tq(y)?y:[y],function(t){return eF(t)}).join(" ")+"</span>")),n)}}function cO(t,e,n,i,r,o){if(t)return(cD(t)?ck:cP)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function cR(t,e,n){return'<div style="margin: '+n+"px 0 0;"+cI(t)+';">'+e+'<div style="clear:both"></div></div>'}function cN(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function cE(t,e){return lR(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function cz(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var cB=function(){function t(){this.richTextStyles={},this._nextStyleNameId=rj()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i,r,o,a,s,l,u="richText"===n?this._generateStyleName():null,c=(a=(o=tQ(i={color:e,type:t,renderMode:n,markerId:u})?{color:i,extraCssText:r}:i||{}).color,s=o.type,r=o.extraCssText,l=o.renderMode||"html",a?"html"===l?"subItem"===s?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+eF(a)+";"+(r||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+eF(a)+";"+(r||"")+'"></span>':{renderMode:l,content:"{"+(o.markerId||"markerX")+"|} ",style:"subItem"===s?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}:"");return tQ(c)?c:(this.richTextStyles[u]=c.style,c.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};tq(e)?tj(e,function(t){return tz(n,t)}):tz(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function cV(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),p=tq(h),d=cE(o,a);if(c>1||p&&!c){var f=function(t,e,n,i,r){var o=e.getData(),a=tH(t,function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName},!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(cL("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?tj(i,function(t){c(u1(o,n,t),t)}):tj(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,d);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=u1(l,a,u[0]),n=g.type}else r=e=p?h[0]:h;var y=r0(o),v=y&&o.name||"",m=l.getName(a),x=s?v:m;return cL("section",{header:v,noHeader:s||!y,sortParam:r,blocks:[cL("nameValue",{markerType:"item",markerColor:d,name:x,noName:!ee(x),value:e,valueType:n,dataIndex:a})].concat(i||[])})}var cF=r5();function cG(t,e){return t.getName(e)||t.getId(e)}var cj="__universalTransitionEnabled",cW=function(t){var e;function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return tf(n,t),n.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=u4({count:cZ,reset:cX}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(cF(this).sourceManager=new cb(this)).prepareSource();var i=this.getInitialData(t,n);cY(i,this),this.dataTask.context.data=i,cF(this).dataBeforeProcessed=i,cH(this),this._initSelectedMapFromData(i)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=lG(this),i=n?lW(t):{},r=this.subType;lX.hasClass(r)&&(r+="Series"),tN(t,e.getTheme().get(this.subType)),tN(t,this.getDefaultOption()),rU(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&lj(t,i,n)},n.prototype.mergeOption=function(t,e){t=tN(this.option,t,!0),this.fillDataTextStyle(t.data);var n=lG(this);n&&lj(this.option,t,n);var i=cF(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);cY(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,cF(this).dataBeforeProcessed=r,cH(this),this._initSelectedMapFromData(r)},n.prototype.fillDataTextStyle=function(t){if(t&&!t2(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&rU(t[n],"label",e)},n.prototype.getInitialData=function(t,e){},n.prototype.appendData=function(t){this.getRawData().appendData(t.data)},n.prototype.getData=function(t){var e=cK(this);if(!e)return cF(this).data;var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n},n.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},n.prototype.setData=function(t){var e=cK(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}cF(this).data=t},n.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return ea(t)},n.prototype.getSourceManager=function(){return cF(this).sourceManager},n.prototype.getSource=function(){return this.getSourceManager().getSource()},n.prototype.getRawData=function(){return cF(this).dataBeforeProcessed},n.prototype.getColorBy=function(){return this.get("colorBy")||"series"},n.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},n.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},n.prototype.formatTooltip=function(t,e,n){return cV({series:this,dataIndex:t,multipleSeries:e})},n.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(ty.node&&!(t&&t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=uo.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var o=0;o<t.length;o++){var a=cG(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},n.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},n.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=tX(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[cG(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this[cj])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},n.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a){if("series"===o)r.selectedMap="all";else if("multiple"===o){t0(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var u=e[l],c=cG(t,u);s[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(u)}}else if("single"===o||!0===o){var h=e[a-1],c=cG(t,h);(n={})[c]=!0,r.selectedMap=n,this._selectedDataIndicesMap=((i={})[c]=t.getRawIndex(h),i)}}},n.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},n.registerClass=function(t){return lX.registerClass(t)},n.protoInitialize=void((e=n.prototype).type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"),n}(lX);function cH(t){var e,n,i,r=t.name;r0(t)||(t.name=(n=(e=t.getRawData()).mapDimensionsAll("seriesName"),i=[],tj(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")||r))}function cZ(t){return t.model.getRawData().count()}function cX(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),cU}function cU(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function cY(t,e){tj(es(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,tY(cq,e))})}function cq(t,e){var n=cK(t);return n&&n.setOutputEnd((e||this).count()),e}function cK(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}tF(cW,u5),tF(cW,uo),os(cW,lX);var cQ=function(){function t(){this.group=new rb,this.uid=s7("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();function c$(){var t=r5();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!!(i&&i.large),s=n.progressiveRender=!!(i&&i.progressiveRender);return(r!==a||o!==s)&&"reset"}}oa(cQ),oh(cQ);var cJ=an.CMD,c0=[[],[],[]],c1=Math.sqrt,c2=Math.atan2;function c5(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),c=cJ.M,h=cJ.C,p=cJ.L,d=cJ.R,f=cJ.A,g=cJ.Q;for(r=0,o=0;r<u;){switch(n=l[r++],o=r,i=0,n){case c:case p:i=1;break;case h:i=3;break;case g:i=2;break;case f:var y=e[4],v=e[5],m=c1(e[0]*e[0]+e[1]*e[1]),x=c1(e[2]*e[2]+e[3]*e[3]),_=c2(-e[1]/x,e[0]/m);l[r]*=m,l[r++]+=y,l[r]*=x,l[r++]+=v,l[r++]*=m,l[r++]*=x,l[r++]+=_,l[r++]+=_,r+=2,o=r;break;case d:s[0]=l[r++],s[1]=l[r++],eI(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],eI(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var b=c0[a];b[0]=l[r++],b[1]=l[r++],eI(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}var c3=Math.sqrt,c4=Math.sin,c6=Math.cos,c8=Math.PI;function c9(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function c7(t,e){return(t[0]*e[0]+t[1]*e[1])/(c9(t)*c9(e))}function ht(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(c7(t,e))}function he(t,e,n,i,r,o,a,s,l,u,c){var h=c8/180*l,p=c6(h)*(t-n)/2+c4(h)*(e-i)/2,d=-1*c4(h)*(t-n)/2+c6(h)*(e-i)/2,f=p*p/(a*a)+d*d/(s*s);f>1&&(a*=c3(f),s*=c3(f));var g=(r===o?-1:1)*c3((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,y=g*a*d/s,v=-(g*s)*p/a,m=(t+n)/2+c6(h)*y-c4(h)*v,x=(e+i)/2+c4(h)*y+c6(h)*v,_=ht([1,0],[(p-y)/a,(d-v)/s]),b=[(p-y)/a,(d-v)/s],w=[(-1*p-y)/a,(-1*d-v)/s],S=ht(b,w);if(-1>=c7(b,w)&&(S=c8),c7(b,w)>=1&&(S=0),S<0){var M=Math.round(S/c8*1e6)/1e6;S=2*c8+M%2*c8}c.addData(u,m,x,a,s,_,S,h,o)}var hn=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,hi=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,hr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.prototype.applyTransform=function(t){},e}(av);function ho(t){return null!=t.setData}function ha(t,e){var n=function(t){var e,n=new an;if(!t)return n;var i=0,r=0,o=0,a=0,s=an.CMD,l=t.match(hn);if(!l)return n;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),p=void 0,d=c.match(hi)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var y=0;y<f;){var v=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=i,I=r,T=void 0,C=void 0;switch(h){case"l":i+=d[y++],r+=d[y++],p=s.L,n.addData(p,i,r);break;case"L":i=d[y++],r=d[y++],p=s.L,n.addData(p,i,r);break;case"m":i+=d[y++],r+=d[y++],p=s.M,n.addData(p,i,r),o=i,a=r,h="l";break;case"M":i=d[y++],r=d[y++],p=s.M,n.addData(p,i,r),o=i,a=r,h="L";break;case"h":i+=d[y++],p=s.L,n.addData(p,i,r);break;case"H":i=d[y++],p=s.L,n.addData(p,i,r);break;case"v":r+=d[y++],p=s.L,n.addData(p,i,r);break;case"V":r=d[y++],p=s.L,n.addData(p,i,r);break;case"C":p=s.C,n.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),i=d[y-2],r=d[y-1];break;case"c":p=s.C,n.addData(p,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r),i+=d[y-2],r+=d[y-1];break;case"S":v=i,m=r,T=n.len(),C=n.data,e===s.C&&(v+=i-C[T-4],m+=r-C[T-3]),p=s.C,M=d[y++],I=d[y++],i=d[y++],r=d[y++],n.addData(p,v,m,M,I,i,r);break;case"s":v=i,m=r,T=n.len(),C=n.data,e===s.C&&(v+=i-C[T-4],m+=r-C[T-3]),p=s.C,M=i+d[y++],I=r+d[y++],i+=d[y++],r+=d[y++],n.addData(p,v,m,M,I,i,r);break;case"Q":M=d[y++],I=d[y++],i=d[y++],r=d[y++],p=s.Q,n.addData(p,M,I,i,r);break;case"q":M=d[y++]+i,I=d[y++]+r,i+=d[y++],r+=d[y++],p=s.Q,n.addData(p,M,I,i,r);break;case"T":v=i,m=r,T=n.len(),C=n.data,e===s.Q&&(v+=i-C[T-4],m+=r-C[T-3]),i=d[y++],r=d[y++],p=s.Q,n.addData(p,v,m,i,r);break;case"t":v=i,m=r,T=n.len(),C=n.data,e===s.Q&&(v+=i-C[T-4],m+=r-C[T-3]),i+=d[y++],r+=d[y++],p=s.Q,n.addData(p,v,m,i,r);break;case"A":x=d[y++],_=d[y++],b=d[y++],w=d[y++],S=d[y++],M=i,I=r,i=d[y++],he(M,I,i,r=d[y++],w,S,x,_,b,p=s.A,n);break;case"a":x=d[y++],_=d[y++],b=d[y++],w=d[y++],S=d[y++],M=i,I=r,i+=d[y++],he(M,I,i,r+=d[y++],w,S,x,_,b,p=s.A,n)}}("z"===h||"Z"===h)&&(p=s.Z,n.addData(p),i=o,r=a),e=p}return n.toStatic(),n}(t),i=tz({},e);return i.buildPath=function(t){if(ho(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){c5(n,t),this.dirtyShape()},i}function hs(t,e){e=e||{};var n=new av;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?c5(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var hl=function(){this.cx=0,this.cy=0,this.r=0},hu=function(t){function e(e){return t.call(this,e)||this}return tf(e,t),e.prototype.getDefaultShape=function(){return new hl},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(av);hu.prototype.type="circle";var hc=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},hh=function(t){function e(e){return t.call(this,e)||this}return tf(e,t),e.prototype.getDefaultShape=function(){return new hc},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=e.rx,o=e.ry,a=.5522848*r,s=.5522848*o;t.moveTo(n-r,i),t.bezierCurveTo(n-r,i-s,n-a,i-o,n,i-o),t.bezierCurveTo(n+a,i-o,n+r,i-s,n+r,i),t.bezierCurveTo(n+r,i+s,n+a,i+o,n,i+o),t.bezierCurveTo(n-a,i+o,n-r,i+s,n-r,i),t.closePath()},e}(av);hh.prototype.type="ellipse";var hp=Math.PI,hd=2*hp,hf=Math.sin,hg=Math.cos,hy=Math.acos,hv=Math.atan2,hm=Math.abs,hx=Math.sqrt,h_=Math.max,hb=Math.min;function hw(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/hx(s*s+l*l),c=u*l,h=-u*s,p=t+c,d=e+h,f=n+c,g=i+h,y=(p+f)/2,v=(d+g)/2,m=f-p,x=g-d,_=m*m+x*x,b=r-o,w=p*g-f*d,S=(x<0?-1:1)*hx(h_(0,b*b*_-w*w)),M=(w*x-m*S)/_,I=(-w*m-x*S)/_,T=(w*x+m*S)/_,C=(-w*m+x*S)/_,A=M-y,L=I-v,D=T-y,k=C-v;return A*A+L*L>D*D+k*k&&(M=T,I=C),{cx:M,cy:I,x0:-c,y0:-h,x1:M*(r/b-1),y1:I*(r/b-1)}}var hS=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},hM=function(t){function e(e){return t.call(this,e)||this}return tf(e,t),e.prototype.getDefaultShape=function(){return new hS},e.prototype.buildPath=function(t,e){!function(t,e){var n,i=h_(e.r,0),r=h_(e.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,h=e.cy,p=!!e.clockwise,d=hm(u-l),f=d>hd&&d%hd;if(f>1e-4&&(d=f),i>1e-4)if(d>hd-1e-4)t.moveTo(c+i*hg(l),h+i*hf(l)),t.arc(c,h,i,l,u,!p),r>1e-4&&(t.moveTo(c+r*hg(u),h+r*hf(u)),t.arc(c,h,r,u,l,p));else{var g=void 0,y=void 0,v=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,I=void 0,T=void 0,C=void 0,A=void 0,L=void 0,D=void 0,k=i*hg(l),P=i*hf(l),O=r*hg(u),R=r*hf(u),N=d>1e-4;if(N){var E=e.cornerRadius;E&&(g=(n=function(t){var e;if(tq(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(E))[0],y=n[1],v=n[2],m=n[3]);var z=hm(i-r)/2;if(x=hb(z,v),_=hb(z,m),b=hb(z,g),w=hb(z,y),I=S=h_(x,_),T=M=h_(b,w),(S>1e-4||M>1e-4)&&(C=i*hg(u),A=i*hf(u),L=r*hg(l),D=r*hf(l),d<hp)){var B=function(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,p=h*l-c*u;if(!(p*p<1e-4))return p=(c*(e-o)-h*(t-r))/p,[t+p*l,e+p*u]}(k,P,L,D,C,A,O,R);if(B){var V=k-B[0],F=P-B[1],G=C-B[0],j=A-B[1],W=1/hf(hy((V*G+F*j)/(hx(V*V+F*F)*hx(G*G+j*j)))/2),H=hx(B[0]*B[0]+B[1]*B[1]);I=hb(S,(i-H)/(W+1)),T=hb(M,(r-H)/(W-1))}}}if(N)if(I>1e-4){var Z=hb(v,I),X=hb(m,I),U=hw(L,D,k,P,i,Z,p),Y=hw(C,A,O,R,i,X,p);t.moveTo(c+U.cx+U.x0,h+U.cy+U.y0),I<S&&Z===X?t.arc(c+U.cx,h+U.cy,I,hv(U.y0,U.x0),hv(Y.y0,Y.x0),!p):(Z>0&&t.arc(c+U.cx,h+U.cy,Z,hv(U.y0,U.x0),hv(U.y1,U.x1),!p),t.arc(c,h,i,hv(U.cy+U.y1,U.cx+U.x1),hv(Y.cy+Y.y1,Y.cx+Y.x1),!p),X>0&&t.arc(c+Y.cx,h+Y.cy,X,hv(Y.y1,Y.x1),hv(Y.y0,Y.x0),!p))}else t.moveTo(c+k,h+P),t.arc(c,h,i,l,u,!p);else t.moveTo(c+k,h+P);if(r>1e-4&&N)if(T>1e-4){var Z=hb(g,T),X=hb(y,T),U=hw(O,R,C,A,r,-X,p),Y=hw(k,P,L,D,r,-Z,p);t.lineTo(c+U.cx+U.x0,h+U.cy+U.y0),T<M&&Z===X?t.arc(c+U.cx,h+U.cy,T,hv(U.y0,U.x0),hv(Y.y0,Y.x0),!p):(X>0&&t.arc(c+U.cx,h+U.cy,X,hv(U.y0,U.x0),hv(U.y1,U.x1),!p),t.arc(c,h,r,hv(U.cy+U.y1,U.cx+U.x1),hv(Y.cy+Y.y1,Y.cx+Y.x1),p),Z>0&&t.arc(c+Y.cx,h+Y.cy,Z,hv(Y.y1,Y.x1),hv(Y.y0,Y.x0),!p))}else t.lineTo(c+O,h+R),t.arc(c,h,r,u,l,p);else t.lineTo(c+O,h+R)}else t.moveTo(c,h);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(av);hM.prototype.type="sector";var hI=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},hT=function(t){function e(e){return t.call(this,e)||this}return tf(e,t),e.prototype.getDefaultShape=function(){return new hI},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(av);function hC(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;p<d;p++)eT(a,a,t[p]),eC(s,s,t[p]);eT(a,a,i[0]),eC(s,s,i[1])}for(var p=0,d=t.length;p<d;p++){var f=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else if(0===p||p===d-1){l.push(eg(t[p]));continue}else r=t[p-1],o=t[p+1];em(u,o,r),e_(u,u,e);var g=ew(f,r),y=ew(f,o),v=g+y;0!==v&&(g/=v,y/=v),e_(c,u,-g),e_(h,u,y);var m=ey([],f,c),x=ey([],f,h);i&&(eC(m,m,a),eT(m,m,s),eC(x,x,a),eT(x,x,s)),l.push(m),l.push(x)}return n&&l.push(l.shift()),l}(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,h=r.length;s<h;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}hT.prototype.type="ring";var hA=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},hL=function(t){function e(e){return t.call(this,e)||this}return tf(e,t),e.prototype.getDefaultShape=function(){return new hA},e.prototype.buildPath=function(t,e){hC(t,e,!0)},e}(av);hL.prototype.type="polygon";var hD=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},hk=function(t){function e(e){return t.call(this,e)||this}return tf(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hD},e.prototype.buildPath=function(t,e){hC(t,e,!1)},e}(av);hk.prototype.type="polyline";var hP={},hO=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},hR=function(t){function e(e){return t.call(this,e)||this}return tf(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hO},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var n,i,r,o,a=aM(hP,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(av);hR.prototype.type="line";var hN=[],hE=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function hz(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?nz:nE)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?nz:nE)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?nW:nj)(t.x1,t.cpx1,t.x2,e),(n?nW:nj)(t.y1,t.cpy1,t.y2,e)]}var hB=function(t){function e(e){return t.call(this,e)||this}return tf(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hE},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,i),null==l||null==u?(c<1&&(nZ(n,a,r,c,hN),a=hN[1],r=hN[2],nZ(i,s,o,c,hN),s=hN[1],o=hN[2]),t.quadraticCurveTo(a,s,r,o)):(c<1&&(nF(n,a,l,r,c,hN),a=hN[1],l=hN[2],r=hN[3],nF(i,s,u,o,c,hN),s=hN[1],u=hN[2],o=hN[3]),t.bezierCurveTo(a,s,l,u,r,o)))},e.prototype.pointAt=function(t){return hz(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=hz(this.shape,t,!0);return eb(e,e)},e}(av);hB.prototype.type="bezier-curve";var hV=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},hF=function(t){function e(e){return t.call(this,e)||this}return tf(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hV},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(av);hF.prototype.type="arc";var hG=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return tf(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),av.prototype.getBoundingRect.call(this)},e}(av),hj=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),hW=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return tf(e,t),e}(hj),hH=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return tf(e,t),e}(hj),hZ=[0,0],hX=[0,0],hU=new e9,hY=new e9,hq=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new e9;for(var n=0;n<2;n++)this._axes[n]=new e9;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;l<4;l++)n[l].transform(e);e9.sub(i[0],n[1],n[0]),e9.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return(hU.set(1/0,1/0),hY.set(0,0),!this._intersectCheckOneSide(this,t,hU,hY,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,hU,hY,i,-1)&&(n=!1,i))?n:(i||e9.copy(e,n?hU:hY),n)},t.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,hZ),this._getProjMinMaxOnAxis(s,e._corners,hX),hZ[1]<hX[0]||hZ[0]>hX[1]){if(a=!1,r)return a;var u=Math.abs(hX[0]-hZ[1]),c=Math.abs(hZ[0]-hX[1]);Math.min(u,c)>i.len()&&(u<c?e9.scale(i,l,-u*o):e9.scale(i,l,c*o))}else if(n){var u=Math.abs(hX[0]-hZ[1]),c=Math.abs(hZ[0]-hX[1]);Math.min(u,c)<n.len()&&(u<c?e9.scale(n,l,u*o):e9.scale(n,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),hK=[],hQ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return tf(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new ns(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(hK)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1])){for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0}return!1},e}(oO),h$=Math.max,hJ=Math.min,h0={};function h1(t){return av.extend(t)}var h2=function(t,e){var n=ha(t,e),i=hr;function r(t){var e=i.call(this,t)||this;return e.applyTransform=n.applyTransform,e.buildPath=n.buildPath,e}return tf(r,i),r};function h5(t,e){return h2(t,e)}function h3(t,e){h0[t]=e}function h4(t){if(h0.hasOwnProperty(t))return h0[t]}function h6(t,e,n,i){var r=new hr(ha(t,e));return n&&("center"===i&&(n=h9(n,r.getBoundingRect())),pt(r,n)),r}function h8(t,e,n){var i=new aw({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(h9(e,r))}}});return i}function h9(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var h7=function(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new av(e);return a.createPathProxy(),a.buildPath=function(t){if(ho(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function pt(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function pe(t,e){return aM(t,t,{lineWidth:e}),t}function pn(t){return aI(t.shape,t.shape,t.style),t}var pi=aT;function pr(t,e){for(var n=e1([]);t&&t!==e;)e5(n,t.getLocalTransform(),n),t=t.parent;return n}function po(t,e,n){return e&&!tG(e)&&(e=re.getLocalTransform(e)),n&&(e=e8([],e)),eI([],t,e)}function pa(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return Math.abs((o=po(o,e,n))[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function ps(t,e,n){if(t&&e){var i,r=(i={},t.traverse(function(t){!t.isGroup&&t.anid&&(i[t.anid]=t)}),i);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),sL(t,i,n,aZ(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=tz({},t.shape)),e}}function pl(t,e){return tW(t,function(t){var n=t[0];n=hJ(n=h$(n,e.x),e.x+e.width);var i=t[1];return[n,i=hJ(i=h$(i,e.y),e.y+e.height)]})}function pu(t,e){var n=h$(t.x,e.x),i=hJ(t.x+t.width,e.x+e.width),r=h$(t.y,e.y),o=hJ(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function pc(t,e,n){var i=tz({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),tB(r,n),new aw(i)):h6(t.replace("path://",""),i,n,"center")}function ph(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(pp(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function pp(t,e,n,i,r,o,a,s){var l,u=n-t,c=i-e,h=a-r,p=s-o,d=h*c-u*p;if((l=d)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-o,y=(f*c-u*g)/d;if(y<0||y>1)return!1;var v=(f*p-h*g)/d;return!(v<0)&&!(v>1)}function pd(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=tQ(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&tj(tX(l),function(t){ec(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=aZ(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:tB({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function pf(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function pg(t,e){if(t)if(tq(t))for(var n=0;n<t.length;n++)pf(t[n],e);else pf(t,e)}h3("circle",hu),h3("ellipse",hh),h3("sector",hM),h3("ring",hT),h3("polygon",hL),h3("polyline",hk),h3("rect",aL),h3("line",hR),h3("bezierCurve",hB),h3("arc",hF),t.s(["applyTransform",0,po,"clipPointsByRect",0,pl,"clipRectByRect",0,pu,"createIcon",0,pc,"extendPath",0,h5,"extendShape",0,h1,"getShapeClass",0,h4,"getTransform",0,pr,"groupTransition",0,ps,"lineLineIntersect",0,pp,"linePolygonIntersect",0,ph,"makeImage",0,h8,"makePath",0,h6,"mergePath",0,h7,"registerShape",0,h3,"resizePath",0,pt,"setTooltipConfig",0,pd,"subPixelOptimize",0,pi,"subPixelOptimizeLine",0,pe,"subPixelOptimizeRect",0,pn,"transformDirection",0,pa,"traverseElements",0,pg],677351);var py=r5(),pv=c$(),pm=function(){function t(){this.group=new rb,this.uid=s7("viewChart"),this.renderTask=u4({plan:pb,reset:pw}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&p_(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&p_(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){pg(this.group,t)},t.markUpdateMethod=function(t,e){py(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function px(t,e,n){t&&sS(t)&&("emphasis"===e?sl:su)(t,n)}function p_(t,e,n){var i,r,o=r2(t,e),a=e&&null!=e.highlightKey?(null==(r=aY[i=e.highlightKey])&&aU<=32&&(r=aY[i]=aU++),r):null;null!=o?tj(rX(o),function(e){px(t.getItemGraphicEl(e),n,a)}):t.eachItemGraphicEl(function(t){px(t,n,a)})}function pb(t){return pv(t.model)}function pw(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&py(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),pS[l]}oa(pm,["dispose"]),oh(pm);var pS={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},pM="\0__throttleOriginMethod",pI="\0__throttleRate",pT="\0__throttleType";function pC(t,e,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=new Date().getTime(),c=null,t.apply(o,a||[])}e=e||0;var p=function(){for(var t=[],p=0;p<arguments.length;p++)t[p]=arguments[p];i=new Date().getTime(),o=this,a=t;var d=s||e,f=s||n;s=null,r=i-(f?l:u)-d,clearTimeout(c),f?c=setTimeout(h,d):r>=0?h():c=setTimeout(h,-r),l=i};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){s=t},p}function pA(t,e,n,i){var r=t[e];if(r){var o=r[pM]||r,a=r[pT];if(r[pI]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=pC(o,n,"debounce"===i))[pM]=o,r[pT]=i,r[pI]=n}return r}}function pL(t,e){var n=t[e];n&&n[pM]&&(n.clear&&n.clear(),t[e]=n[pM])}var pD=r5(),pk={itemStyle:op(s3,!0),lineStyle:op(s1,!0)},pP={lineStyle:"stroke",itemStyle:"fill"};function pO(t,e){var n=t.visualStyleMapper||pk[e];return n||(console.warn("Unknown style type '"+e+"'."),pk.itemStyle)}function pR(t,e){var n=t.visualDrawType||pP[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var pN=new s8,pE=Math.PI,pz=function(){function t(t,e,n,i){this._stageTaskMap=ea(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount,a=null!=o?Math.ceil(o/r):null;return{step:r,modBy:a,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=ea();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;tj(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});et(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}tj(t,function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,p=c.agentStubMap;p.each(function(t){a(i,t)&&(t.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,n);var d=o.getPerformArgs(c,i.block);p.each(function(t){t.perform(d)}),c.perform(d)&&(r=!0)}else u&&u.each(function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)})}}),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=ea(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||u4({plan:pj,reset:pW,count:pX}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||u4({reset:pB});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=ea(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1;function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,u4({reset:pV,onDirty:pG})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,r._pipe(t,n)}et(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):(c=!1,tj(n.getSeries(),p)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);i.head||(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return tK(t)&&(t={overallReset:t,seriesType:function(t){k=null;try{t(pU,pY)}catch(t){}return k}(t)}),t.uid=s7("stageHandler"),e&&(t.visualType=e),t},t}();function pB(t){t.overallReset(t.ecModel,t.api,t.payload)}function pV(t){return t.overallProgress&&pF}function pF(){this.agent.dirty(),this.getDownstream().dirty()}function pG(){this.agent&&this.agent.dirty()}function pj(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function pW(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=rX(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?tW(e,function(t,e){return pZ(e)}):pH}var pH=pZ(0);function pZ(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function pX(t){return t.data.count()}var pU={},pY={};function pq(t,e){for(var n in e.prototype)t[n]=eh}pq(pU,uh),pq(pY,uy),pU.eachSeriesByType=pU.eachRawSeriesByType=function(t){k=t},pU.eachComponent=function(t){"series"===t.mainType&&t.subType&&(k=t.subType)};var pK=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],pQ="#B9B8CE",p$="#100C2A",pJ=function(){return{axisLine:{lineStyle:{color:pQ}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},p0=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],p1={darkMode:!0,color:p0,backgroundColor:p$,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:pQ},pageTextStyle:{color:pQ}},textStyle:{color:pQ},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:pQ}},dataZoom:{borderColor:"#71708A",textStyle:{color:pQ},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:pQ}},timeline:{lineStyle:{color:pQ},label:{color:pQ},controlStyle:{color:pQ,borderColor:pQ}},calendar:{itemStyle:{color:p$},dayLabel:{color:pQ},monthLabel:{color:pQ},yearLabel:{color:pQ}},timeAxis:pJ(),logAxis:pJ(),valueAxis:pJ(),categoryAxis:pJ(),line:{symbol:"circle"},graph:{color:p0},gauge:{title:{color:pQ},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:pQ},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};p1.categoryAxis.splitLine.show=!1;var p2=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(tQ(t)){var r=oo(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};tj(t,function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),p5=["symbol","symbolSize","symbolRotate","symbolOffset"],p3=p5.concat(["symbolKeepAspect"]);function p4(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function p6(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function p8(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i)}}function p9(t,e){tj([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(e,i,r){var o,a;e=tz({},e),r.dispatchAction(tz(e,{type:n[1],seriesIndex:(o=e,a=[],i.eachComponent({mainType:"series",subType:t,query:o},function(t){a.push(t.seriesIndex)}),a)}))})})}function p7(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=r2(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:tq(u)?l.getName(u[0]):l.getName(u),selected:tQ(i)?i:tz({},i)})}})}function dt(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var de=Math.round(9*Math.random()),dn="function"==typeof Object.defineProperty,di=function(){function t(){this._id="__ec_inner_"+de++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return dn?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),dr=av.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),da=av.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),ds=av.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),p=Math.cos(u),d=.6*a,f=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*d,l+s+p*d,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-c+h*d,l+s+p*d,n-c,l+s),t.closePath()}}),dl=av.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),du={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},dc={};tj({line:hR,rect:aL,roundRect:aL,square:aL,circle:hu,diamond:da,pin:ds,arrow:dl,triangle:dr},function(t,e){dc[e]=new t});var dh=av.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=rp(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=dc[i];r||(r=dc[i="rect"]),du[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function dp(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function dd(t,e,n,i,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?h8(t.slice(8),new ns(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?h6(t.slice(7),{},new ns(e,n,i,r),a?"center":"cover"):new dh({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=dp,o&&s.setColor(o),s}function df(t){return tq(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function dg(t,e){if(null!=t)return tq(t)||(t=[t,t]),[rC(t[0],e[0])||0,rC(t6(t[1],t[0]),e[1])||0]}function dy(t){return isFinite(t)}function dv(t,e,n){for(var i,r,o,a,s,l,u,c,h,p,d="radial"===e.type?(o=Math.min(i=n.width,r=n.height),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r,e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),a=dy(a)?a:.5,s=dy(s)?s:.5,l=l>=0&&dy(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)):(u=null==e.x?0:e.x,c=null==e.x2?1:e.x2,h=null==e.y?0:e.y,p=null==e.y2?0:e.y2,e.global||(u=u*n.width+n.x,c=c*n.width+n.x,h=h*n.height+n.y,p=p*n.height+n.y),u=dy(u)?u:0,c=dy(c)?c:1,h=dy(h)?h:0,p=dy(p)?p:0,t.createLinearGradient(u,h,c,p)),f=e.colorStops,g=0;g<f.length;g++)d.addColorStop(f[g].offset,f[g].color);return d}function dm(t){return parseInt(t,10)}function dx(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||dm(s[i])||dm(t.style[i]))-(dm(s[o])||0)-(dm(s[a])||0)|0}function d_(t){var e,n,i=t.style,r=i.lineDash&&i.lineWidth>0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:tJ(e)?[e]:tq(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=tW(r,function(t){return t/a}),o/=a)}return[r,o]}var db=new an(!0);function dw(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}function dS(t){return"string"==typeof t&&"none"!==t}function dM(t){var e=t.fill;return null!=e&&"none"!==e}function dI(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function dT(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function dC(t,e,n){var i=oy(e.image,e.__image,n);if(om(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*ep),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var dA=["shadowBlur","shadowOffsetX","shadowOffsetY"],dL=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function dD(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){dO(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?oL.opacity:a}(i||e.blend!==n.blend)&&(o||(dO(t,r),o=!0),t.globalCompositeOperation=e.blend||oL.blend);for(var s=0;s<dA.length;s++){var l=dA[s];(i||e[l]!==n[l])&&(o||(dO(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(dO(t,r),o=!0),t.shadowColor=e.shadowColor||oL.shadowColor),o}function dk(t,e,n,i,r){var o=dR(e,r.inHover),a=i?null:n&&dR(n,r.inHover)||{};if(o===a)return!1;var s=dD(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(dO(t,r),s=!0),dS(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(dO(t,r),s=!0),dS(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(dO(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(dO(t,r),s=!0),t.lineWidth=l)}for(var u=0;u<dL.length;u++){var c=dL[u],h=c[0];(i||o[h]!==a[h])&&(s||(dO(t,r),s=!0),t[h]=o[h]||c[1])}return s}function dP(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function dO(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function dR(t,e){return e&&t.__hoverStyle||t.style}function dN(t,e){dE(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function dE(t,e,n,i){var r,o=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){e.__dirty&=-2,e.__isRendered=!1;return}var a=e.__clipPaths,s=n.prevElClipPaths,l=!1,u=!1;if(!s||function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(a,s)){if(s&&s.length&&(dO(t,n),t.restore(),u=l=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length){dO(t,n),t.save();for(var c=!1,h=0;h<a.length;h++){var p=a[h];c=c||p.isZeroArea(),dP(t,p),t.beginPath(),p.buildPath(t,p.shape),t.clip()}n.allClipped=c,l=!0}n.prevElClipPaths=a}if(n.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var d=n.prevEl;d||(u=l=!0);var f=e instanceof av&&e.autoBatch&&(v=dM(y=e.style),m=dw(y),!(y.lineDash||!(v^m)||v&&"string"!=typeof y.fill||m&&"string"!=typeof y.stroke||y.strokePercent<1||y.strokeOpacity<1||y.fillOpacity<1));!l&&(x=d.transform,o&&x?o[0]===x[0]&&o[1]===x[1]&&o[2]===x[2]&&o[3]===x[3]&&o[4]===x[4]&&o[5]===x[5]:+(!o&&!x))?f||dO(t,n):(dO(t,n),dP(t,e));var g=dR(e,n.inHover);if(e instanceof av)1!==n.lastDrawType&&(u=!0,n.lastDrawType=1),dk(t,e,d,u,n),f&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i){var r,o,a,s=dw(n),l=dM(n),u=n.strokePercent,c=u<1,h=!e.path;(!e.silent||c)&&h&&e.createPathProxy();var p=e.path||db,d=e.__dirty;if(!i){var f=n.fill,g=n.stroke,y=l&&!!f.colorStops,v=s&&!!g.colorStops,m=l&&!!f.image,x=s&&!!g.image,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0;(y||v)&&(M=e.getBoundingRect()),y&&(_=d?dv(t,f,M):e.__canvasFillGradient,e.__canvasFillGradient=_),v&&(b=d?dv(t,g,M):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),m&&(w=d||!e.__canvasFillPattern?dC(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=w),x&&(S=d||!e.__canvasStrokePattern?dC(t,g,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),y?t.fillStyle=_:m&&(w?t.fillStyle=w:l=!1),v?t.strokeStyle=b:x&&(S?t.strokeStyle=S:s=!1)}var I=e.getGlobalScale();p.setScale(I[0],I[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(o=(r=d_(e))[0],a=r[1]);var T=!0;(h||4&d)&&(p.setDPR(t.dpr),c?p.setContext(null):(p.setContext(t),T=!1),p.reset(),e.buildPath(p,e.shape,i),p.toStatic(),e.pathUpdated()),T&&p.rebuildPath(t,c?u:1),o&&(t.setLineDash(o),t.lineDashOffset=a),!i&&(n.strokeFirst?(s&&dT(t,n),l&&dI(t,n)):(l&&dI(t,n),s&&dT(t,n))),o&&t.setLineDash([])}(t,e,g,f),f&&(n.batchFill=g.fill||"",n.batchStroke=g.stroke||"");else if(e instanceof ax){3!==n.lastDrawType&&(u=!0,n.lastDrawType=3),dk(t,e,d,u,n);var y,v,m,x,_,b=g.text;if(null!=b&&(b+=""),b){t.font=g.font||tm,t.textAlign=g.textAlign,t.textBaseline=g.textBaseline;var w=void 0,S=void 0;t.setLineDash&&g.lineDash&&(w=(_=d_(e))[0],S=_[1]),w&&(t.setLineDash(w),t.lineDashOffset=S),g.strokeFirst?(dw(g)&&t.strokeText(b,g.x,g.y),dM(g)&&t.fillText(b,g.x,g.y)):(dM(g)&&t.fillText(b,g.x,g.y),dw(g)&&t.strokeText(b,g.x,g.y)),w&&t.setLineDash([])}}else e instanceof aw?(2!==n.lastDrawType&&(u=!0,n.lastDrawType=2),r=u,dD(t,dR(e,n.inHover),d&&dR(d,n.inHover),r,n),function(t,e,n){var i=e.__image=oy(n.image,e.__image,e,e.onload);if(i&&om(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,h=a-u,p=s-c;t.drawImage(i,u,c,h,p,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}(t,e,g)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(u=!0,n.lastDrawType=4),function(t,e,n){var i,r,o=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(i=e.getCursor(),r=o.length;i<r;i++){var l=o[i];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),dE(t,l,s,i===r-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),dE(t,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n));f&&i&&dO(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}var dz=new di,dB=new n$(100),dV=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function dF(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&dz.delete(t);var o=dz.get(t);if(o)return o;var a=tB(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o,s=[n],l=!0,u=0;u<dV.length;++u){var c=a[dV[u]];if(null!=c&&!tq(c)&&!tQ(c)&&!tJ(c)&&"boolean"!=typeof c){l=!1;break}s.push(c)}if(l){e=s.join(",")+(r?"-svg":"");var h=dB.get(e);h&&(r?t.svgElement=h:t.image=h)}var p=function t(e){if(!e||0===e.length)return[[0,0]];if(tJ(e)){var n=Math.ceil(e);return[[n,n]]}for(var i=!0,r=0;r<e.length;++r)if(!tJ(e[r])){i=!1;break}if(i)return t([e]);for(var o=[],r=0;r<e.length;++r)if(tJ(e[r])){var n=Math.ceil(e[r]);o.push([n,n])}else{var n=tW(e[r],function(t){return Math.ceil(t)});n.length%2==1?o.push(n.concat(n)):o.push(n)}return o}(a.dashArrayX),d=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(tJ(t)){var e=Math.ceil(t);return[e,e]}var n=tW(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}(a.dashArrayY),f=function t(e){if(!e||0===e.length)return[["rect"]];if(tQ(e))return[[e]];for(var n=!0,i=0;i<e.length;++i)if(!tQ(e[i])){n=!1;break}if(n)return t([e]);for(var r=[],i=0;i<e.length;++i)tQ(e[i])?r.push([e[i]]):r.push(e[i]);return r}(a.symbol),g=tW(p,function(t){return dG(t)}),y=dG(d),v=!r&&t_.createCanvas(),m=r&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,n=g.length;e<n;++e)t=rW(t,g[e]);for(var i=1,e=0,n=f.length;e<n;++e)i=rW(i,f[e].length);t*=i;var r=y*g.length*f.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();v&&(v.width=x.width*n,v.height=x.height*n,o=v.getContext("2d")),function(){o&&(o.clearRect(0,0,v.width,v.height),a.backgroundColor&&(o.fillStyle=a.backgroundColor,o.fillRect(0,0,v.width,v.height)));for(var t=0,e=0;e<d.length;++e)t+=d[e];if(!(t<=0))for(var s=-y,l=0,u=0,c=0;s<x.height;){if(l%2==0){for(var h=u/2%f.length,g=0,_=0,b=0;g<2*x.width;){for(var w=0,e=0;e<p[c].length;++e)w+=p[c][e];if(w<=0)break;if(_%2==0){var S=(1-a.symbolSize)*.5,M=g+p[c][_]*S,I=s+d[l]*S,T=p[c][_]*a.symbolSize,C=d[l]*a.symbolSize,A=b/2%f[h].length;!function(t,e,s,l,u){var c=r?1:n,h=dd(u,t*c,e*c,s*c,l*c,a.color,a.symbolKeepAspect);if(r){var p=i.painter.renderOneToVNode(h);p&&m.children.push(p)}else dN(o,h)}(M,I,T,C,f[h][A])}g+=p[c][_],++b,++_===p[c].length&&(_=0)}++c===p.length&&(c=0)}s+=d[l],++u,++l===d.length&&(l=0)}}(),l&&dB.put(e,v||m),t.image=v,t.svgElement=m,t.svgWidth=x.width,t.svgHeight=x.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,dz.set(t,s),t.dirty=!1,s}function dG(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var dj=new eD,dW={},dH="__flagInMainProcess",dZ="__pendingUpdate",dX="__needsUpdateStatus",dU=/^[a-zA-Z0-9_]+$/,dY="__connectUpdateStatus";function dq(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.isDisposed()?void d5(this.id):dQ(this,t,e)}}function dK(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return dQ(this,t,e)}}function dQ(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),eD.prototype[e].apply(t,n)}var d$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e}(eD),dJ=d$.prototype;dJ.on=dK("on"),dJ.off=dK("off");var d0=function(t){function e(e,n,i){var r=t.call(this,new p2)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},tQ(n)&&(n=d7[n]),r._dom=e,i.ssr&&(b=function(t){var e=aZ(t),n=e.dataIndex;if(null!=n){var i=ea();return i.set("series_index",e.seriesIndex),i.set("data_index",n),e.ssrType&&i.set("ssr_type",e.ssrType),i}});var o=r._zr=rI(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:t6(i.useDirtyRect,!1),useCoarsePointer:t6(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=pC(tU(o.flush,o),17),(n=tR(n))&&uz(n,!0),r._theme=n,r._locale=function(t){if(!tQ(t))return tN(tR(t),tR(le.EN),!1);var e=le[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?tR(e):tN(tR(e),tR(le.EN),!1)}(i.locale||li),r._coordSysMgr=new um;var a=r._api=X(r);function s(t,e){return t.__prio-e.__prio}return nb(d9,s),nb(d6,s),r._scheduler=new pz(r,a,d6,d9),r._messageCenter=new d$,r._initEvents(),r.resize=tU(r.resize,r),o.animation.on("frame",r._onframe,r),G(o,r),j(o,r),r[en]=!0,r}return tf(e,t),e.prototype._onframe=function(){if(!this._disposed){q(this);var t=this._scheduler;if(this[dZ]){var e=this[dZ].silent;this[dH]=!0;try{P(this),N.update.call(this,null,this[dZ].updateParams)}catch(t){throw this[dH]=!1,this[dZ]=null,t}this._zr.flush(),this[dH]=!1,this[dZ]=null,V.call(this,e),F.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),z(this,i),t.performVisualTasks(i),Z(this,this._model,r,"remain",{}),n-=new Date-o}while(n>0&&t.unfinished)t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[dH]){if(this._disposed)return void d5(this.id);if(t0(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[dH]=!0,!this._model||e){var i,r,o,a=new u_(this._api),s=this._theme,l=this._model=new uh;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},d8);var u={seriesTransition:o,optionChanged:!0};if(n)this[dZ]={silent:i,updateParams:u},this[dH]=!1,this.getZr().wakeUp();else{try{P(this),N.update.call(this,null,u)}catch(t){throw this[dZ]=null,this[dH]=!1,t}this._ssr||this._zr.flush(),this[dZ]=null,this[dH]=!1,V.call(this,i),F.call(this,i)}}},e.prototype.setTheme=function(){ul("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},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||ty.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ty.svgSupported){var t=this._zr;return tj(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed)return void d5(this.id);var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;tj(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return tj(i,function(t){t.group.ignore=!1}),o},e.prototype.getConnectedDataURL=function(t){if(this._disposed)return void d5(this.id);var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(!fn[n])return this.getDataURL(t);var a=o,s=o,l=-o,u=-o,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();tj(fe,function(o,h){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(tR(t)),d=o.getDom().getBoundingClientRect();a=i(d.left,a),s=i(d.top,s),l=r(d.right,l),u=r(d.bottom,u),c.push({dom:p,left:d.left,top:d.top})}}),a*=h,s*=h,l*=h,u*=h;var p=l-a,d=u-s,f=t_.createCanvas(),g=rI(f,{renderer:e?"svg":"canvas"});if(g.resize({width:p,height:d}),!e)return t.connectedBackgroundColor&&g.add(new aL({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),tj(c,function(t){var e=new aw({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)}),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"));var y="";return tj(c,function(t){var e=t.left-a,n=t.top-s;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()},e.prototype.convertToPixel=function(t,e){return E(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return E(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;return this._disposed?void d5(this.id):(tj(r4(this._model,t),function(t,i){i.indexOf("Models")>=0&&tj(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n)},e.prototype.getVisual=function(t,e){var n=r4(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?p4(i,r,e):p6(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n,i=this;tj(d2,function(t){var e=function(e){var n,r=i.getModel(),o=e.target;if("globalout"===t?n={}:o&&dt(o,function(t){var e=aZ(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return n=tz({},e.eventData),!0},!0),n){var a=n.componentType,s=n.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",s=n.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&i["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:u},i.trigger(t,n)}};e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)}),tj(d4,function(t,e){i._messageCenter.on(e,function(t){this.trigger(e,t)},i)}),tj(["selectchanged"],function(t){i._messageCenter.on(t,function(e){this.trigger(t,e)},i)}),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(p7("map","selectchanged",e,i,t),p7("pie","selectchanged",e,i,t)):"select"===t.fromAction?(p7("map","selected",e,i,t),p7("pie","selected",e,i,t)):"unselect"===t.fromAction&&(p7("map","unselected",e,i,t),p7("pie","unselected",e,i,t))})},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?d5(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)return void d5(this.id);this._disposed=!0,this.getDom()&&ot(this.getDom(),fr,"");var t=this._api,e=this._model;tj(this._componentsViews,function(n){n.dispose(e,t)}),tj(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete fe[this.id]},e.prototype.resize=function(t){if(!this[dH]){if(this._disposed)return void d5(this.id);this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[dZ]&&(null==i&&(i=this[dZ].silent),n=!0,this[dZ]=null),this[dH]=!0;try{n&&P(this),N.update.call(this,{type:"resize",animation:tz({duration:0},t&&t.animation)})}catch(t){throw this[dH]=!1,t}this[dH]=!1,V.call(this,i),F.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)return void d5(this.id);if(t0(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),ft[t]){var n=ft[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?d5(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=tz({},t);return e.type=d4[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)return void d5(this.id);if((t0(e)||(e={silent:!!e}),d3[t.type])&&this._model){if(this[dH])return void this._pendingActions.push(t);var n=e.silent;B.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&ty.browser.weChat&&this._throttledZrFlush(),V.call(this,n),F.call(this,n)}},e.prototype.updateLabelLayout=function(){dj.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)return void d5(this.id);var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function e(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered(function(t){return function t(e,n,i,r){var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)r=Math.max(t(s[l],n,i,r),r);else e.z=n,e.zlevel=i,r=Math.max(e.z2,r);if(o&&(o.z=n,o.zlevel=i,isFinite(r)&&(o.z2=r+2)),a){var u=e.textGuideLineConfig;a.z=n,a.zlevel=i,isFinite(r)&&(a.z2=r+(u&&u.showAbove?1:-1))}return r}(t,n,i,-1/0),!0})}}function i(t,e){e.eachRendered(function(t){if(!sk(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function r(t,n){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered(function(t){if(t.states&&t.states.emphasis&&!sk(t)){if(t instanceof av&&((n=aq(t)).normalFill=t.style.fill,n.normalStroke=t.style.stroke,n.selectFill=(i=t.states.select||{}).style&&i.style.fill||null,n.selectStroke=i.style&&i.style.stroke||null),t.__dirty){var n,i,o=t.prevStates;o&&t.useStates(o)}if(r){t.stateTransition=a;var s=t.getTextContent(),l=t.getTextGuideLine();s&&(s.stateTransition=a),l&&(l.stateTransition=a)}t.__dirty&&e(t)}})}P=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),O(t,!0),O(t,!1),e.plan()},O=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=oo(t.type);(c=new(e?cQ.getClass(h.main,h.sub):pm.getClass(h.sub))).init(n,s),o[u]=c,r.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||i.prepareView(c,t,n,s)}e?n.eachComponent(function(t,e){"series"!==t&&u(e)}):n.eachSeries(u);for(var l=0;l<r.length;){var c=r[l];c.__alive?l++:(e||c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},R=function(t,e,n,i,r){var o,a=t._model;if(a.setUpdatePayload(n),!i)return void tj([].concat(t._componentsViews).concat(t._chartsViews),c);var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var u=n.excludeSeriesId;function c(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}null!=u&&(o=ea(),tj(rX(u),function(t){var e=rJ(t,null);null!=e&&o.set(e,!0)})),a&&a.eachComponent(l,function(e){if(!(o&&null!=o.get(e.id))){if(sI(n))if(e instanceof cW)n.type!==aJ||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=r2(r,e);o=(tq(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var u=aZ(a);sp(i,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&sp(i,c,h,n)}}}(e,n,t._api);else{var i=sf(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,a=i.dispatchers;n.type===aJ&&r&&!n.notBlur&&sd(e.mainType,e.componentIndex,t._api),a&&tj(a,function(t){n.type===aJ?sl(t):su(t)})}else if(sM(n)&&e instanceof cW){if(t._api,sM(n)){var s=n.dataType,l=r2(e.getData(s),n);tq(l)||(l=[l]),e[n.type===a5?"toggleSelect":n.type===a1?"select":"unselect"](l,s)}sg(e),Y(t)}}},t),a&&a.eachComponent(l,function(e){o&&null!=o.get(e.id)||c(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)},N={prepareAndUpdate:function(t){P(this),N.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),z(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e),W(this,i,r,e,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),dj.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var o=[];i.eachComponent(function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,e);l&&l.update&&o.push(s)}else o.push(s)}});var a=ea();i.eachSeries(function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,i,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)}),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:a}),Z(this,i,r,e,{},a),dj.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),pm.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),W(this,n,this._api,e,{}),dj.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries(function(t){t.getData().clearAllVisual()}),pm.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent(function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}}),i.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)}),dj.trigger("afterupdate",i,this._api))},updateLayout:function(t){N.update.call(this,t)}},E=function(t,e,n,i){if(t._disposed)return void d5(t.id);for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=r4(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,i)))return r}},z=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},B=function(t,e){var n,i=this,r=this.getModel(),o=t.type,a=t.escapeConnect,s=d3[o],l=s.actionInfo,u=(l.update||"update").split(":"),c=u.pop(),h=null!=u[0]&&oo(u[0]);this[dH]=!0;var p=[t],d=!1;t.batch&&(d=!0,p=tW(t.batch,function(e){return(e=tB(tz({},e),t)).batch=null,e}));var f=[],g=sM(t),y=sI(t);if(y&&sh(this._api),tj(p,function(e){if((n=(n=s.action(e,i._model,i._api))||tz({},e)).type=l.event||n.type,f.push(n),y){var r=r6(t),o=r.queryOptionMap;R(i,c,e,r.mainTypeSpecified?o.keys()[0]:"series"),Y(i)}else g?(R(i,c,e,"series"),Y(i)):h&&R(i,c,e,h.main,h.sub)}),"none"!==c&&!y&&!g&&!h)try{this[dZ]?(P(this),N.update.call(this,t),this[dZ]=null):N[c].call(this,t)}catch(t){throw this[dH]=!1,t}if(n=d?{type:l.event||o,escapeConnect:a,batch:f}:f[0],this[dH]=!1,!e){var v=this._messageCenter;if(v.trigger(n.type,n),g){var m,x={type:"selectchanged",escapeConnect:a,selected:(m=[],r.eachSeries(function(t){tj(t.getAllData(),function(e){e.data;var n=e.type,i=t.getSelectedDataIndices();if(i.length>0){var r={dataIndex:i,seriesIndex:t.seriesIndex};null!=n&&(r.dataType=n),m.push(r)}})}),m),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};v.trigger(x.type,x)}}},V=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();B.call(this,n,t)}},F=function(t){t||this.trigger("updated")},G=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[dZ]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},j=function(t,e){t.on("mouseover",function(t){var n,i,r,o,a,s=dt(t.target,sS);s&&(n=e._api,o=(r=sf((i=aZ(s)).componentMainType,i.componentIndex,i.componentHighDownName,n)).dispatchers,a=r.focusSelf,o?(a&&sd(i.componentMainType,i.componentIndex,n),tj(o,function(e){return sa(e,t)})):(sp(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&sd(i.componentMainType,i.componentIndex,n),sa(s,t)),Y(e))}).on("mouseout",function(t){var n,i,r,o=dt(t.target,sS);o&&(sh(n=e._api),(r=sf((i=aZ(o)).componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers)?tj(r,function(e){return ss(e,t)}):ss(o,t),Y(e))}).on("click",function(t){var n=dt(t.target,function(t){return null!=aZ(t).dataIndex},!0);if(n){var i=n.selected?"unselect":"select",r=aZ(n);e._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}})},W=function(t,e,n,i,r){!function(t){var e=[],n=[],i=!1;if(t.eachComponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),i){var r,o,a=e.concat(n);nb(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),tj(a,function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)})}}(e),H(t,e,n,i,r),tj(t._chartsViews,function(t){t.__alive=!1}),Z(t,e,n,i,r),tj(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},H=function(t,e,o,a,s,l){tj(l||t._componentsViews,function(t){var s=t.__model;i(s,t),t.render(s,e,o,a),n(s,t),r(s,t)})},Z=function(t,e,o,a,s,l){var u,c,h,p,d=t._scheduler;s=tz(s||{},{updatedSeries:e.getSeries()}),dj.trigger("series:beforeupdate",e,o,s);var f=!1;e.eachSeries(function(e){var n,r,o,s=t._chartsMap[e.__viewId];s.__alive=!0;var u=s.renderTask;d.updatePayload(u,a),i(e,s),l&&l.get(e.uid)&&u.dirty(),u.perform(d.getPerformArgs(u))&&(f=!0),s.group.silent=!!e.get("silent"),n=e,r=s,o=n.get("blendMode")||null,r.eachRendered(function(t){t.isGroup||(t.style.blend=o)}),sg(e)}),d.unfinished=f||d.unfinished,dj.trigger("series:layoutlabels",e,o,s),dj.trigger("series:transition",e,o,s),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];n(e,i),r(e,i)}),u=t,c=e,h=u._zr.storage,p=0,h.traverse(function(t){!t.isGroup&&p++}),!(p>c.get("hoverLayerThreshold"))||ty.node||ty.worker||c.eachSeries(function(t){if(!t.preventUsingHoverLayer){var e=u._chartsMap[t.__viewId];e.__alive&&e.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}}),dj.trigger("series:afterupdate",e,o,s)},Y=function(t){t[dX]=!0,t.getZr().wakeUp()},q=function(t){t[dX]&&(t.getZr().storage.traverse(function(t){sk(t)||e(t)}),t[dX]=!1)},X=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return tf(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){sl(e,n),Y(t)},n.prototype.leaveEmphasis=function(e,n){su(e,n),Y(t)},n.prototype.enterBlur=function(e){sn(e,a9),Y(t)},n.prototype.leaveBlur=function(e){sn(e,a7),Y(t)},n.prototype.enterSelect=function(e){sn(e,st),Y(t)},n.prototype.leaveSelect=function(e){sn(e,se),Y(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(uy))(t)},U=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][dY]=e}tj(d4,function(n,i){t._messageCenter.on(i,function(n){if(fn[t.group]&&0!==t[dY]&&(!n||!n.escapeConnect)){var i=t.makeActionFromEvent(n),r=[];tj(fe,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),tj(r,function(t){1!==t[dY]&&t.dispatchAction(i)}),e(r,2)}})})}}(),e}(eD),d1=d0.prototype;d1.on=dq("on"),d1.off=dq("off"),d1.one=function(t,e,n){var i=this;ul("ECharts#one is deprecated."),this.on.call(this,t,function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)},n)};var d2=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function d5(t){}var d3={},d4={},d6=[],d8=[],d9=[],d7={},ft={},fe={},fn={},fi=new Date-0,fr="_echarts_instance_";function fo(t){0>tV(d8,t)&&d8.push(t)}function fa(t,e){fh(d6,t,e,2e3)}function fs(t,e){dj.on(t,e)}function fl(t,e,n){tK(e)&&(n=e,e="");var i=t0(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),d4[e=t.event]||(et(dU.test(i)&&dU.test(e)),d3[i]||(d3[i]={action:n,actionInfo:t}),d4[e]=i)}function fu(t,e){fh(d9,t,e,3e3,"visual")}var fc=[];function fh(t,e,n,i,r){if((tK(e)||t0(e))&&(n=e,e=i),!(tV(fc,n)>=0)){fc.push(n);var o=pz.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}fu(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=pO(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=pR(t,i),l=o[s],u=tK(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||tK(o.fill)?h:o.fill,o.stroke="auto"===o.stroke||tK(o.stroke)?h:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=tz({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}}),fu(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=pO(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){pN.option=n[i];var a=r(pN);tz(t.ensureUniqueItemVisual(e,"style"),a),pN.option.decal&&(t.setItemVisual(e,"decal",pN.option.decal),pN.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}}),fu(4500,{performRawSeries:!0,overallReset:function(t){var e=ea();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),pD(t).scope=r}}),t.eachSeries(function(e){if(!(e.isColorBySeries()||t.isSeriesFiltered(e))){var n=e.getRawData(),i={},r=e.getData(),o=pD(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=pR(e,a);r.each(function(t){i[r.getRawIndex(t)]=t}),n.each(function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}})}})}}),fu(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<p5.length;a++){var s=p5[a],l=t.get(s);tK(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(tz({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var u=tX(r);return{dataEach:o?function(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,r[s](i,o))}}:null}}}}}),fu(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<p3.length;i++){var r=p3[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}}),fu(7e3,function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=dF(n,e))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=dF(r,e))}})}),fo(uz),fa(900,function(t){var e=ea();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(uB)}),ft.default=function(t,e){tB(e=e||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n,i=new rb,r=new aL({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});i.add(r);var o=new aP({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new aL({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return i.add(a),e.showSpinner&&((n=new hF({shape:{startAngle:-pE/2,endAngle:-pE/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*pE/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*pE/2}).delay(300).start("circularInOut"),i.add(n)),i.resize=function(){var i=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner&&i?0:5+i/2)+(e.showSpinner?0:i/2)+(i?0:s),u=t.getHeight()/2;e.showSpinner&&n.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i},fl({type:aJ,event:aJ,update:aJ},eh),fl({type:a0,event:a0,update:a0},eh),fl({type:a1,event:a1,update:a1},eh),fl({type:a2,event:a2,update:a2},eh),fl({type:a5,event:a5,update:a5},eh),d7.light={color:pK,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],pK]},d7.dark=p1;var fp=[],fd={registerPreprocessor:fo,registerProcessor:fa,registerPostInit:function(t){fs("afterinit",t)},registerPostUpdate:function(t){fs("afterupdate",t)},registerUpdateLifecycle:fs,registerAction:fl,registerCoordinateSystem:function(t,e){um.register(t,e)},registerLayout:function(t,e){fh(d9,t,e,1e3,"layout")},registerVisual:fu,registerTransform:function(t){var e=(t=tR(t)).type;e||uu("");var n=e.split(":");2!==n.length&&uu("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,cu.set(e,t)},registerLoading:function(t,e){ft[t]=e},registerMap:function(t,e,n){var i=dW.registerMap;i&&i(t,e,n)},registerImpl:function(t,e){dW[t]=e},PRIORITY:{PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},ComponentModel:lX,ComponentView:cQ,SeriesModel:cW,ChartView:pm,registerComponentModel:function(t){lX.registerClass(t)},registerComponentView:function(t){cQ.registerClass(t)},registerSeriesModel:function(t){cW.registerClass(t)},registerChartView:function(t){pm.registerClass(t)},registerSubTypeDefaulter:function(t,e){lX.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){rw[t]=e}};function ff(t){tq(t)?tj(t,function(t){ff(t)}):tV(fp,t)>=0||(fp.push(t),tK(t)&&(t={install:t}),t.install(fd))}var fg=Math.sin,fy=Math.cos,fv=Math.PI,fm=2*Math.PI,fx=180/fv,f_=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l=a-o,u=!s,c=Math.abs(l),h=ig(c-fm)||(u?l>=fm:-l>=fm),p=l>0?l%fm:l%fm+fm,d=!1;d=!!h||!ig(c)&&p>=fv==!!u;var f=t+n*fy(o),g=e+i*fg(o);this._start&&this._add("M",f,g);var y=Math.round(r*fx);if(h){var v=1/this._p,m=(u?1:-1)*(fm-v);this._add("A",n,i,y,1,+u,t+n*fy(o+m),e+i*fg(o+m)),v>.01&&this._add("A",n,i,y,0,+u,f,g)}else{var x=t+n*fy(a),_=e+i*fg(a);this._add("A",n,i,y,+d,+u,x,_)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],c=this._p,h=1;h<arguments.length;h++){var p=arguments[h];if(isNaN(p)){this._invalid=!0;return}u.push(Math.round(p*c)/c)}this._d.push(t+u.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),fb="none",fw=Math.round,fS=["lineCap","miterLimit","lineJoin"],fM=tW(fS,function(t){return"stroke-"+t.toLowerCase()}),fI="http://www.w3.org/2000/svg",fT="http://www.w3.org/1999/xlink",fC="ecmeta_";function fA(t){return document.createElementNS(fI,t)}function fL(t,e,n,i,r){return{tag:t,attrs:n||{},children:i,text:r,key:e}}function fD(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,r=e.tag,o=e.attrs,a=e.text;return function(t,e){var n=[];if(e)for(var i in e){var r=e[i],o=i;!1!==r&&(!0!==r&&null!=r&&(o+='="'+r+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(r,o)+("style"!==r?eF(a):a||"")+(i?""+n+tW(i,function(e){return t(e)}).join(n)+n:"")+"</"+r+">"}(t)}function fk(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function fP(t,e,n,i){return fL("svg","root",{width:t,height:e,xmlns:fI,"xmlns:xlink":fT,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var fO=0,fR={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"},fN="transform-origin",fE={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function fz(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function fB(t){return tQ(t)?fR[t]?"cubic-bezier("+fR[t]+")":nY(t)?t:"":""}function fV(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof hG){var s=function(t,e,n){var i,r,o=t.shape.paths,a={};if(tj(o,function(t){var e=fk(n.zrId);e.animation=!0,fV(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=tX(o),u=l.length;if(u){var c=o[r=l[u-1]];for(var h in c){var p=c[h];a[h]=a[h]||{d:""},a[h].d+=p.d||""}for(var d in s){var f=s[d].animation;f.indexOf(r)>=0&&(i=f)}}}),i){e.d=!1;var s=fz(a,n);return i.replace(r,s)}}(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=r[u],h=[c.getMaxTime()/1e3+"s"],p=fB(c.getClip().easing),d=c.getDelay();p?h.push(p):h.push("linear"),d&&h.push(d/1e3+"s"),c.getLoop()&&h.push("infinite");var f=h.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(c)}for(var g in l){var s=function(r){var o,a,s=r[1],l=s.length,u={},c={},h={},p="animation-timing-function";function d(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),o=0;o<i.length;o++){var a=i[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],h=Math.round(c.time/r*100)+"%",d=fB(c.easing),f=c.rawValue;(tQ(f)||tJ(f))&&(e[h]=e[h]||{},e[h][l]=c.rawValue,d&&(e[h][p]=d))}}}}for(var f=0;f<l;f++){var g=s[f],y=g.targetName;y?"shape"===y&&d(g,c):i||d(g,u)}for(var v in u){var m={};ri(m,t),tz(m,u[v]);var x=iT(m),_=u[v][p];h[v]=x?{transform:x}:{},function(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[fN]=n+"px "+i+"px")}(h[v],m),_&&(h[v][p]=_)}var b=!0;for(var v in c){h[v]=h[v]||{};var w=!o,_=c[v][p];w&&(o=new an);var S=o.len();o.reset(),h[v].d=function(t,e,n){var i=tz({},t.shape);tz(i,e),t.buildPath(n,i);var r=new f_;return r.reset(iI(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}(t,c[v],o);var M=o.len();if(!w&&S!==M){b=!1;break}_&&(h[v][p]=_)}if(!b)for(var v in h)delete h[v].d;if(!i)for(var f=0;f<l;f++){var g=s[f],y=g.targetName;"style"===y&&d(g,h,function(t){return fE[t]})}for(var I=tX(h),T=!0,f=1;f<I.length;f++){var C=I[f-1],A=I[f];if(h[C][fN]!==h[A][fN]){T=!1;break}a=h[C][fN]}if(T&&a){for(var v in h)h[v][fN]&&delete h[v][fN];e[fN]=a}if(tZ(I,function(t){return tX(h[t]).length>0}).length)return fz(h,n)+" "+r[0]+" both"}(l[g]);s&&a.push(s)}if(a.length){var y=n.zrId+"-cls-"+fO++;n.cssNodes["."+y]={animation:a.join(",")},e.class=y}}function fF(t,e,n,i){var r=JSON.stringify(t),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+fO++,n.cssStyleCache[r]=o,n.cssNodes["."+o+(i?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}var fG=Math.round;function fj(t){return t&&tK(t.toDataURL)}function fW(t,e,n,i){!function(t,e,n,i){var r,o,a=null==e.opacity?1:e.opacity;if(n instanceof aw)return t("opacity",a);if(null!=(r=e.fill)&&r!==fb){var s=id(e.fill);t("fill",s.color);var l=null!=e.fillOpacity?e.fillOpacity*s.opacity*a:s.opacity*a;(i||l<1)&&t("fill-opacity",l)}else t("fill",fb);if(null!=(o=e.stroke)&&o!==fb){var u=id(e.stroke);t("stroke",u.color);var c=e.strokeNoScale?n.getLineScale():1,h=c?(e.lineWidth||0)/c:0,p=null!=e.strokeOpacity?e.strokeOpacity*u.opacity*a:u.opacity*a,d=e.strokeFirst;if((i||1!==h)&&t("stroke-width",h),(i||d)&&t("paint-order",d?"stroke":"fill"),(i||p<1)&&t("stroke-opacity",p),e.lineDash){var f=d_(n),g=f[0],y=f[1];g&&(y=fw(y||0),t("stroke-dasharray",g.join(",")),(y||i)&&t("stroke-dashoffset",y))}else i&&t("stroke-dasharray",fb);for(var v=0;v<fS.length;v++){var m=fS[v];if(i||e[m]!==af[m]){var x=e[m]||af[m];x&&t(fM[v],x)}}}else i&&t("stroke",fb)}(function(r,o){var a="fill"===r||"stroke"===r;a&&iS(o)?f$(e,t,r,i):a&&i_(o)?fJ(n,t,r,i):t[r]=o,a&&i.ssr&&"none"===o&&(t["pointer-events"]="visible")},e,n,!1),function(t,e,n){var i=t.style;if(i&&(i.shadowBlur||i.shadowOffsetX||i.shadowOffsetY)){var r,o,a=(r=t.style,o=t.getGlobalScale(),[r.shadowColor,(r.shadowBlur||0).toFixed(2),(r.shadowOffsetX||0).toFixed(2),(r.shadowOffsetY||0).toFixed(2),o[0],o[1]].join(",")),s=n.shadowCache,l=s[a];if(!l){var u=t.getGlobalScale(),c=u[0],h=u[1];if(!c||!h)return;var p=i.shadowOffsetX||0,d=i.shadowOffsetY||0,f=i.shadowBlur,g=id(i.shadowColor),y=g.opacity,v=g.color;l=n.zrId+"-s"+n.shadowIdx++,n.defs[l]=fL("filter",l,{id:l,x:"-100%",y:"-100%",width:"300%",height:"300%"},[fL("feDropShadow","",{dx:p/c,dy:d/h,stdDeviation:f/2/c+" "+f/2/h,"flood-color":v,"flood-opacity":y})]),s[a]=l}e.filter=iM(l)}}(n,t,i)}function fH(t,e){var n=function(t){if("function"==typeof b)return b(t)}(e);n&&(n.each(function(e,n){null!=e&&(t[(fC+n).toLowerCase()]=e+"")}),e.isSilent()&&(t[fC+"silent"]="true"))}function fZ(t){return ig(t[0]-1)&&ig(t[1])&&ig(t[2])&&ig(t[3]-1)}function fX(t,e,n){if(e&&!(ig(e[4])&&ig(e[5])&&fZ(e))){var i=n?10:1e4;t.transform=fZ(e)?"translate("+fG(e[4]*i)/i+" "+fG(e[5]*i)/i+")":"matrix("+iy(e[0])+","+iy(e[1])+","+iy(e[2])+","+iy(e[3])+","+iv(e[4])+","+iv(e[5])+")"}}function fU(t,e,n){for(var i=t.points,r=[],o=0;o<i.length;o++)r.push(fG(i[o][0]*n)/n),r.push(fG(i[o][1]*n)/n);e.points=r.join(" ")}function fY(t){return!t.smooth}var fq={circle:[(y=tW(["cx","cy","r"],function(t){return"string"==typeof t?[t,t]:t}),function(t,e,n){for(var i=0;i<y.length;i++){var r=y[i],o=t[r[0]];null!=o&&(e[r[1]]=fG(o*n)/n)}})],polyline:[fU,fY],polygon:[fU,fY]};function fK(t,e){var n=t.style,i=t.shape,r=fq[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&iI(t)||4;if(!r||e.willUpdate||r[1]&&!r[1](i)||a&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}(t)||l<1){var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var h=t.path;c&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated());var p=h.getVersion(),d=t.__svgPathBuilder;t.__svgPathVersion===p&&d&&l===t.__svgPathStrokePercent||(d||(d=t.__svgPathBuilder=new f_),d.reset(u),h.rebuildPath(d,l),d.generateStr(),t.__svgPathVersion=p,t.__svgPathStrokePercent=l),o.d=d.getStr()}else{s=t.type;var f=Math.pow(10,u);r[0](i,o,f)}return fX(o,t.transform),fW(o,n,t,e),fH(o,t),e.animation&&fV(t,o,e),e.emphasis&&function(t,e,n){if(!t.ignore)if(t.isSilent()){var i={"pointer-events":"none"};fF(i,e,n,!0)}else{var r=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},o=r.fill;if(!o){var a=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||a;l&&(o=ic(l))}var u=r.lineWidth;u&&(u/=!r.strokeNoScale&&t.transform?t.transform[0]:1);var i={cursor:"pointer"};o&&(i.fill=o),r.stroke&&(i.stroke=r.stroke),u&&(i["stroke-width"]=u),fF(i,e,n,!0)}}(t,o,e),fL(s,t.id+"",o)}function fQ(t,e){return t instanceof av?fK(t,e):t instanceof aw?function(t,e){var n,i=t.style,r=i.image;if(r&&!tQ(r)&&((n=r)&&tQ(n.src)?r=r.src:fj(r)&&(r=r.toDataURL())),r){var o=i.x||0,a=i.y||0,s={href:r,width:i.width,height:i.height};return o&&(s.x=o),a&&(s.y=a),fX(s,t.transform),fW(s,i,t,e),fH(s,t),e.animation&&fV(t,s,e),fL("image",t.id+"",s)}}(t,e):t instanceof ax?function(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),!(!i||isNaN(n.x)||isNaN(n.y))){var r,o,a,s=n.font||tm,l=n.x||0,u=(r=n.y||0,o=rc(s),"top"===(a=n.textBaseline)?r+=o/2:"bottom"===a&&(r-=o/2),r),c={"dominant-baseline":"central","text-anchor":im[n.textAlign]||n.textAlign};if(aB(n)){var h="",p=n.fontStyle,d=aE(n.fontSize);if(!parseFloat(d))return;var f=n.fontFamily||tv,g=n.fontWeight;h+="font-size:"+d+";font-family:"+f+";",p&&"normal"!==p&&(h+="font-style:"+p+";"),g&&"normal"!==g&&(h+="font-weight:"+g+";"),c.style=h}else c.style="font: "+s;return i.match(/\s/)&&(c["xml:space"]="preserve"),l&&(c.x=l),u&&(c.y=u),fX(c,t.transform),fW(c,n,t,e),fH(c,t),e.animation&&fV(t,c,e),fL("text",t.id+"",c,void 0,i)}}(t,e):void 0}function f$(t,e,n,i){var r,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(ib(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!iw(o))return;r="radialGradient",a.cx=t6(o.x,.5),a.cy=t6(o.y,.5),a.r=t6(o.r,.5)}for(var s=o.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=100*iv(s[u].offset)+"%",p=id(s[u].color),d=p.color,f=p.opacity,g={offset:h};g["stop-color"]=d,f<1&&(g["stop-opacity"]=f),l.push(fL("stop",u+"",g))}var y=fD(fL(r,"",a,l)),v=i.gradientCache,m=v[y];m||(m=i.zrId+"-g"+i.gradientIdx++,v[y]=m,a.id=m,i.defs[m]=fL(r,m,a,l)),e[n]=iM(m)}function fJ(t,e,n,i){var r,o,a,s=t.style[n],l=t.getBoundingRect(),u={},c=s.repeat,h="no-repeat"===c,p="repeat-x"===c,d="repeat-y"===c;if(ix(s)){var f=s.imageWidth,g=s.imageHeight,y=void 0,v=s.image;if(tQ(v)?y=v:v&&tQ(v.src)?y=v.src:fj(v)&&(y=v.toDataURL()),"u"<typeof Image){var m="Image width/height must been given explictly in svg-ssr renderer.";et(f,m),et(g,m)}else if(null==f||null==g){var x=function(t,e){if(t){var n=t.elm,i=f||e.width,r=g||e.height;"pattern"===t.tag&&(p?(r=1,i/=l.width):d&&(i=1,r/=l.height)),t.attrs.width=i,t.attrs.height=r,n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},_=oy(y,null,t,function(t){h||x(w,t),x(r,t)});_&&_.width&&_.height&&(f=f||_.width,g=g||_.height)}r=fL("image","img",{href:y,width:f,height:g}),u.width=f,u.height=g}else s.svgElement&&(r=tR(s.svgElement),u.width=s.svgWidth,u.height=s.svgHeight);if(r){h?o=a=1:p?(a=1,o=u.width/l.width):d?(o=1,a=u.height/l.height):u.patternUnits="userSpaceOnUse",null==o||isNaN(o)||(u.width=o),null==a||isNaN(a)||(u.height=a);var b=iT(s);b&&(u.patternTransform=b);var w=fL("pattern","",u,[r]),S=fD(w),M=i.patternCache,I=M[S];I||(I=i.zrId+"-p"+i.patternIdx++,M[S]=I,u.id=I,w=i.defs[I]=fL("pattern",I,u,[r])),e[n]=iM(I)}}function f0(t){return document.createTextNode(t)}function f1(t,e,n){t.insertBefore(e,n)}function f2(t,e){t.removeChild(e)}function f5(t,e){t.appendChild(e)}function f3(t){return t.parentNode}function f4(t){return t.nextSibling}function f6(t,e){t.textContent=e}var f8=fL("","");function f9(t){return void 0===t}function f7(t){return void 0!==t}function gt(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function ge(t){var e,n=t.children,i=t.tag;if(f7(i)){var r=t.elm=fA(i);if(gr(f8,t),tq(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&f5(r,ge(o))}else f7(t.text)&&!t0(t.text)&&f5(r,f0(t.text))}else t.elm=f0(t.text);return t.elm}function gn(t,e,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&f1(t,ge(o),e)}}function gi(t,e,n,i){for(;n<=i;++n){var r=e[n];null!=r&&(f7(r.tag)?f2(f3(r.elm),r.elm):f2(t,r.elm))}}function gr(t,e){var n,i=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(n in o){var a=o[n];r[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):"style"===n?i.style.cssText=a:120!==n.charCodeAt(0)?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS("http://www.w3.org/2000/xmlns/",n,a):58===n.charCodeAt(3)?i.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?i.setAttributeNS(fT,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}var go=0,ga=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=gs("refreshHover"),this.configLayer=gs("configLayer"),this.storage=e,this._opts=n=tz({},n),this.root=t,this._id="zr"+go++,this._oldVNode=fP(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=fA("svg");gr(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(gt(t,e))!function t(e,n){var i=n.elm=e.elm,r=e.children,o=n.children;e!==n&&(gr(e,n),f9(n.text)?f7(r)&&f7(o)?r!==o&&function(e,n,i){for(var r,o,a,s=0,l=0,u=n.length-1,c=n[0],h=n[u],p=i.length-1,d=i[0],f=i[p];s<=u&&l<=p;)null==c?c=n[++s]:null==h?h=n[--u]:null==d?d=i[++l]:null==f?f=i[--p]:gt(c,d)?(t(c,d),c=n[++s],d=i[++l]):gt(h,f)?(t(h,f),h=n[--u],f=i[--p]):gt(c,f)?(t(c,f),f1(e,c.elm,f4(h.elm)),c=n[++s],f=i[--p]):(gt(h,d)?(t(h,d),f1(e,h.elm,c.elm),h=n[--u]):(f9(r)&&(r=function(t,e,n){for(var i={},r=e;r<=n;++r){var o=t[r].key;void 0!==o&&(i[o]=r)}return i}(n,s,u)),f9(o=r[d.key])||(a=n[o]).tag!==d.tag?f1(e,ge(d),c.elm):(t(a,d),n[o]=void 0,f1(e,a.elm,c.elm))),d=i[++l]);(s<=u||l<=p)&&(s>u?gn(e,null==i[p+1]?null:i[p+1].elm,i,l,p):gi(e,n,s,u))}(i,r,o):f7(o)?(f7(e.text)&&f6(i,""),gn(i,null,o,0,o.length-1)):f7(r)?gi(i,r,0,r.length-1):f7(e.text)&&f6(i,""):e.text!==n.text&&(f7(r)&&gi(i,r,0,r.length-1),f6(i,n.text)))}(t,e);else{var n=t.elm,i=f3(n);ge(e),null!==i&&(f1(i,e.elm,f4(n)),gi(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return fQ(t,fk(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=fk(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress,r.emphasis=t.emphasis,r.ssr=this._opts.ssr;var o=[],a=this._bgVNode=function(t,e,n,i){var r;if(n&&"none"!==n)if(r=fL("rect","bg",{width:t,height:e,x:"0",y:"0"}),iS(n))f$({fill:n},r.attrs,"fill",i);else if(i_(n))fJ({style:{fill:n},dirty:eh,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var o=id(n),a=o.color,s=o.opacity;r.attrs.fill=a,s<1&&(r.attrs["fill-opacity"]=s)}return r}(n,i,this._backgroundColor,r);a&&o.push(a);var s=t.compress?null:this._mainVNode=fL("g","main",{},[]);this._paintList(e,r,s?s.children:o),s&&o.push(s);var l=tW(tX(r.defs),function(t){return r.defs[t]});if(l.length&&o.push(fL("defs","defs",{},l)),t.animation){var u,c,h,p,d,f,g,y,v=(u=r.cssNodes,c=r.cssAnims,d=" {"+(p=(h={newline:!0}).newline?"\n":""),f=p+"}",g=tW(tX(u),function(t){return t+d+tW(tX(u[t]),function(e){return e+":"+u[t][e]+";"}).join(p)+f}).join(p),y=tW(tX(c),function(t){return"@keyframes "+t+d+tW(tX(c[t]),function(e){return e+d+tW(tX(c[t][e]),function(n){var i=c[t][e][n];return"d"===n&&(i='path("'+i+'")'),n+":"+i+";"}).join(p)+f}).join(p)+f}).join(p),g||y?["<![CDATA[",g,y,"]]>"].join(p):"");if(v){var m=fL("style","stl",{},[],v);o.push(m)}}return fP(n,i,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},fD(this.renderToVNode({animation:t6(t.cssAnimation,!0),emphasis:t6(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:t6(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,u=0;u<o;u++){var c=t[u];if(!c.invisible){var h=c.__clipPaths,p=h&&h.length||0,d=r&&r.length||0,f=void 0;for(f=Math.max(p-1,d-1);f>=0&&(!h||!r||h[f]!==r[f]);f--);for(var g=d-1;g>f;g--)i=a[--s-1];for(var y=f+1;y<p;y++){var v={};!function(t,e,n){var i=n.clipPathCache,r=n.defs,o=i[t.id];if(!o){var a={id:o=n.zrId+"-c"+n.clipPathIdx++};i[t.id]=o,r[o]=fL("clipPath",o,a,[fK(t,n)])}e["clip-path"]=iM(o)}(h[y],v,e);var m=fL("g","clip-g-"+l++,v,[]);(i?i.children:n).push(m),a[s++]=m,i=m}r=h;var x=fQ(c,e);x&&(i?i.children:n).push(x)}}},t.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display="none",t=dx(i,0,n),e=dx(i,1,n),r.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,r){var o=r.style;o.width=t+"px",o.height=e+"px"}if(i_(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=iC(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},t}();function gs(t){return function(){}}function gl(t,e,n){var i=t_.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}var gu=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||i5,"string"==typeof e?r=gl(e,n,i):t0(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(eu(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return tf(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=gl("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new ns(0,0,0,0);function u(t){if(!(!t.isFinite()||t.isZero()))if(0===o.length){var e=new ns(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,i=1/0,r=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new ns(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var p=t.width*t.height,d=c.width*c.height,f=l.width*l.height-p-d;f<i&&(i=f,r=u)}}if(s&&(o[r].union(t),n=!0),!n){var e=new ns(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=t[c];if(h){var p=h.shouldBePainted(n,i,!0,!0),d=h.__isRendered&&(1&h.__dirty||!p)?h.getPrevPaintRect():null;d&&u(d);var f=p&&(1&h.__dirty||!h.__isRendered)?h.getPaintRect():null;f&&u(f)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h=e[c],p=h&&h.shouldBePainted(n,i,!0,!0);if(h&&(!p||!h.__zr)&&h.__isRendered){var d=h.getPrevPaintRect();d&&u(d)}}do{r=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(r=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(r)return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,r=this.ctx,o=i.width,a=i.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/u,a/u));var h=this.domBack;function p(t,n,i,o){if(r.clearRect(t,n,i,o),e&&"transparent"!==e){var a=void 0;t3(e)?(a=(e.global||e.__width===i&&e.__height===o)&&e.__canvasGradient||dv(r,e,{x:0,y:0,width:i,height:o}),e.__canvasGradient=a,e.__width=i,e.__height=o):null!=e.image&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=dC(r,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),r.save(),r.fillStyle=a||e,r.fillRect(t,n,i,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(h,t,n,i,o),r.restore())}!n||s?p(0,0,o,a):n.length&&tj(n,function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)})},e}(eD),gc=function(){function t(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=tz({},n||{}),this.dpr=n.devicePixelRatio||i5,this._singleCanvas=r,this.root=t,t.style&&(eu(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(r){var s=t.width,l=t.height;null!=n.width&&(s=n.width),null!=n.height&&(l=n.height),this.dpr=n.devicePixelRatio||1,t.width=s*this.dpr,t.height=l*this.dpr,this._width=s,this._height=l;var u=new gu(t,this,this.dpr);u.__builtin__=!0,u.initContext(),a[314159]=u,u.zlevel=314159,o.push(314159),this._domRoot=t}else{this._width=dx(t,0,n),this._height=dx(t,1,n);var c,h,p,d=this._domRoot=(c=this._width,h=this._height,(p=document.createElement("div")).style.cssText=["position:relative","width:"+c+"px","height:"+h+"px","padding:0;margin:0;border-width:0"].join(";")+";",p);t.appendChild(d)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e,n=t.length,i=this._hoverlayer;if(i&&i.clear(),n){for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<n;o++){var a=t[o];a.__inHover&&(i||(i=this._hoverlayer=this.getLayer(1e5)),e||(e=i.ctx).save(),dE(e,a,r,o===n-1))}e&&e.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(t,e){dN(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;_(function(){s._paintList(t,e,n,i)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(314159).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},t.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&r.push(l)}for(var u=!0,c=!1,h=this,p=0;p<r.length;p++)!function(a){var s,l=r[a],p=l.ctx,d=o&&l.createRepaintRects(t,e,h._width,h._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,y=g&&Date.now(),v=l.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,d);else if(f===l.__startIndex){var m=t[f];m.incremental&&m.notClear&&!n||l.clear(!1,v,d)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(c=!0),i._doPaintEl(r,l,o,e,n,s===l.__endIndex-1),g&&Date.now()-y>15)break}n.prevElClipPaths&&p.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var _=h.dpr,b=0;b<d.length;++b){var w=d[b];p.save(),p.beginPath(),p.rect(w.x*_,w.y*_,w.width*_,w.height*_),p.clip(),x(w),p.restore()}else p.save(),x(),p.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)}(p);return ty.wxa&&tj(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(dE(a,t,r,o),t.setPrevPaintRect(s))}else dE(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=314159);var n=this._layers[t];return n||((n=new gu("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?tN(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&tN(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[t]){if(e&&(e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh&&1)){if(r>0&&t>i[0]){for(s=0;s<r-1&&(!(i[s]<t)||!(i[s+1]>t));s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n,i,r=1;r<t.length;r++){var o=t[r];if(o.zlevel!==t[r-1].zlevel||o.incremental){this._needsManuallyCompositing=!0;break}}var a=null,s=0;for(i=0;i<t.length;i++){var o=t[i],l=o.zlevel,u=void 0;n!==l&&(n=l,s=0),o.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,s=1):u=this.getLayer(l+.01*(s>0),this._needsManuallyCompositing),u.__builtin__||tO("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,e(i),a=u),1&o.__dirty&&!o.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}e(i),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,tj(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?tN(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];(r===t||r===t+.01)&&tN(this._layers[r],n[t],!0)}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(tV(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=dx(r,0,i),e=dx(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(314159).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new gu("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++)dE(n,a[s],o,s===l-1);return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();function gh(t){return null==t?0:t.length||1}function gp(t){return t}var gd=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||gp,this._newKeyGetter=i||gp,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=Array(t.length),r=Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=gh(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],c=gh(l),h=gh(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var p=0;p<c;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=gh(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=gh(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),gf=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function gg(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function gy(t){return"category"===t?"ordinal":"time"===t?"time":"float"}let gv=function(t){this.otherDims={},null!=t&&tz(this,t)};var gm=r5(),gx={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},g_=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=gS(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return t6(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=uX(this.source),n=!(t>30),i="",r=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=gx[l]||"f",u&&(i+=u.uid),i+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function gb(t){return t instanceof g_}function gw(t){for(var e=ea(),n=0;n<(t||[]).length;n++){var i=t[n],r=t0(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function gS(t){var e=gm(t);return e.dimNameMap||(e.dimNameMap=gw(t.dimensionsDefine))}var gM=t0,gI="u"<typeof Int32Array?Array:Int32Array,gT=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],gC=["_approximateExtent"],gA=function(){function t(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;gb(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=tQ(c)?new gv({name:c}):c instanceof gv?c:new gv(c),p=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=p,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(p),r[p]=h,null!=l[p]&&(s=!0),h.createInvertedIndices&&(a[p]=[]),0===d.itemName&&(this._nameDimIdx=u),0===d.itemId&&(this._idDimIdx=u),i&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=ea();tj(o,function(t){f.set(r[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);if(i)return i.name},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return -1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(tJ(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||0>this._schema.getSourceDimensionIndex(t)))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r,o,a,s,l,u,c,h,p,d,f,g,y=this;if(t instanceof c_&&(g=t),!g){var v=this.dimensions,m=uF(t)||tG(t)?new uU(t,v.length):t;g=new c_;var x=tW(v,function(t){return{type:y._dimInfos[t].type,property:t}});g.initData(m,x,n)}this._store=g,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,g.count()),this._dimSummary=(i=this,r=this._schema,a=(o={}).encode={},s=ea(),l=[],u=[],c={},tj(i.dimensions,function(t){var e=i.getDimensionInfo(t),n=e.coordDim;if(n){var r,o=e.coordDimIndex;gg(a,n)[o]=t,e.isExtraCoord||(s.set(n,1),"ordinal"!==(r=e.type)&&"time"!==r&&(l[0]=t),gg(c,n)[o]=i.getDimensionIndex(e.name)),e.defaultTooltip&&u.push(t)}l$.each(function(t,n){var i=gg(a,n),r=e.otherDims[n];null!=r&&!1!==r&&(i[r]=e.name)})}),h=[],p={},s.each(function(t,e){var n=a[e];p[e]=n[0],h=h.concat(n)}),o.dataDimsOnCoord=h,o.dataDimIndicesOnCoord=tW(h,function(t){return i.getDimensionInfo(t).storeDimIndex}),o.encodeFirstDimNotExtra=p,(d=a.label)&&d.length&&(l=d.slice()),(f=a.tooltip)&&f.length?u=f.slice():u.length||(u=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=u,o.userOutput=new gf(c,r),o),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&tn(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==l5&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===lJ&&!n.pure)for(var o=[],a=t;a<e;a++){var s,l=n.getItem(a,o);if(!(!this.hasItemOption&&t0(s=l))||s instanceof Array||(this.hasItemOption=!0),l){var u=l.name;null==i[a]&&null!=u&&(i[a]=rJ(u,null));var c=l.id;null==r[a]&&null!=c&&(r[a]=rJ(c,null))}}if(this._shouldMakeIdFromName())for(var a=t;a<e;a++)tn(this,a);K(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){gM(t)?tz(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=$(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return Q(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return tq(t)?i.getValues(tW(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return -1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n&&n[e];return null==i||isNaN(i)?-1:i},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){tK(t)&&(n=e,e=t,t=[]);var i=n||this,r=tW(J(t),this._getStoreDimIndex,this);this._store.each(r,i?tU(e,i):e)},t.prototype.filterSelf=function(t,e,n){tK(t)&&(n=e,e=t,t=[]);var i=n||this,r=tW(J(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?tU(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=tX(t),r=[];return tj(i,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){tK(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=tW(J(t),this._getStoreDimIndex,this),a=te(this);return a._store=this._store.map(o,r?tU(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=tW(J(t),this._getStoreDimIndex,this);this._store.modify(o,r?tU(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=te(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.minmaxDownSample=function(t,e){var n=te(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=te(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel;return new s8(this.getRawDataItem(t),e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new gd(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return Q(t,e)},function(t){return Q(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},gM(t)?tz(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(tq(r=this.getVisual(e))?r=r.slice():gM(r)&&(r=tz({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,gM(e)?tz(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){gM(t)?tz(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?tz(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){aX(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){tj(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:tW(this.dimensions,this._getDimInfo,this),this.hostModel)),tt(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];tK(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(t9(arguments)))})},t.internalField=void(K=function(t){var e=t._invertedIndicesMap;tj(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new gI(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(var s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}})},$=function(t,e,n){return rJ(t._getCategory(e,n),null)},Q=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=$(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},J=function(t){return tq(t)||(t=null!=t?[t]:[]),t},te=function(e){var n=new t(e._schema?e._schema:tW(e.dimensions,e._getDimInfo,e),e.hostModel);return tt(n,e),n},tt=function(t,e){tj(gT.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,tj(gC,function(n){t[n]=tR(e[n])}),t._calculationInfo=tz({},e._calculationInfo)},tn=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=$(t,r,e)),null==s&&null!=o&&(i[e]=s=$(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}}),t}();function gL(t,e){uF(t)||(t=uj(t));var n,i,r,o,a,s=(e=e||{}).coordDimensions||[],l=e.dimensionsDefine||t.dimensionsDefine||[],u=ea(),c=[],h=(n=t,i=s,r=l,o=e.dimensionsCount,a=Math.max(n.dimensionsDetectedCount||1,i.length,r.length,o||0),tj(i,function(t){var e;t0(t)&&(e=t.dimsDef)&&(a=Math.max(a,e.length))}),a),p=e.canOmitUnusedDimensions&&h>30,d=l===t.dimensionsDefine,f=d?gS(t):gw(l),g=e.encodeDefine;!g&&e.encodeDefaulter&&(g=e.encodeDefaulter(t,h));for(var y=ea(g),v=new cf(h),m=0;m<v.length;m++)v[m]=-1;function x(t){var e=v[t];if(e<0){var n=l[t],i=t0(n)?n:{name:n},r=new gv,o=i.name;null!=o&&null!=f.get(o)&&(r.name=r.displayName=o),null!=i.type&&(r.type=i.type),null!=i.displayName&&(r.displayName=i.displayName);var a=c.length;return v[t]=a,r.storeDimIndex=t,c.push(r),r}return c[e]}if(!p)for(var m=0;m<h;m++)x(m);y.each(function(t,e){var n=rX(t).slice();if(1===n.length&&!tQ(n[0])&&n[0]<0)return void y.set(e,!1);var i=y.set(e,[]);tj(n,function(t,n){var r=tQ(t)?f.get(t):t;null!=r&&r<h&&(i[n]=r,b(x(r),e,n))})});var _=0;function b(t,e,n){null!=l$.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,u.set(e,!0))}tj(s,function(t){if(tQ(t))r=t,i={};else{var e,n,i,r=(i=t).name,o=i.ordinalMeta;i.ordinalMeta=null,(i=tz({},i)).ordinalMeta=o,e=i.dimsDef,n=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var a=y.get(r);if(!1!==a){if(!(a=rX(a)).length)for(var s=0;s<(e&&e.length||1);s++){for(;_<h&&null!=x(_).coordDim;)_++;_<h&&a.push(_++)}tj(a,function(t,o){var a=x(t);if(d&&null!=i.type&&(a.type=i.type),b(tB(a,i),r,o),null==a.name&&e){var s=e[o];t0(s)||(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}n&&tB(a.otherDims,n)})}});var w=e.generateCoord,S=e.generateCoordCount,M=null!=S;S=w?S||1:0;var I=w||"value";function T(t){null==t.name&&(t.name=t.coordDim)}if(p)tj(c,function(t){T(t)}),c.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var C=0;C<h;C++){var A=x(C);null==A.coordDim&&(A.coordDim=function(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}(I,u,M),A.coordDimIndex=0,(!w||S<=0)&&(A.isExtraCoord=!0),S--),T(A),null==A.type&&(1===ut(t,C)||A.isExtraCoord&&(null!=A.otherDims.itemName||null!=A.otherDims.seriesName))&&(A.type="ordinal")}return function(t){for(var e=ea(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(c),new g_({source:t,dimensions:c,fullDimensionCount:h,dimensionOmitted:p})}var gD=function(t){this.coordSysDims=[],this.axisMap=ea(),this.categoryAxisMap=ea(),this.coordSysName=t},gk={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",r8).models[0],o=t.getReferringComponents("yAxis",r8).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),gP(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),gP(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",r8).models[0];e.coordSysDims=["single"],n.set("single",r),gP(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",r8).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),gP(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),gP(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();tj(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),gP(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}};function gP(t){return"category"===t.get("type")}function gO(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function gR(t,e){return gO(t,e)?t.getCalculationInfo("stackResultDimension"):e}let gN=function(t,e,n){n=n||{};var i,r,o,a,s,l,u,c,h=e.getSourceManager(),p=!1;t?(p=!0,c=uj(t)):p=(c=h.getSource()).sourceFormat===lJ;var d=function(t){var e=t.get("coordinateSystem"),n=new gD(e),i=gk[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),f=(r=e.get("coordinateSystem"),o=um.get(r),d&&d.coordSysDims&&(i=tW(d.coordSysDims,function(t){var e={name:t},n=d.axisMap.get(t);return n&&(e.type=gy(n.get("type"))),e})),i||(i=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),i),g=n.useEncodeDefaulter,y=tK(g)?g:g?tY(l8,f,e):null,v=gL(c,{coordDimensions:f,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:y,canOmitUnusedDimensions:!p}),m=(a=v.dimensions,s=n.createInvertedIndices,d&&tj(a,function(t,e){var n=t.coordDim,i=d.categoryAxisMap.get(n);i&&(null==l&&(l=e),t.ordinalMeta=i.getOrdinalMeta(),s&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(u=!0)}),u||null==l||(a[l].otherDims.itemName=0),l),x=p?null:h.getSharedDataStore(v),_=function(t,e,n){var i,r,o,a,s,l,u,c=(n=n||{}).byIndex,h=n.stackedCoordDimension;gb(e.schema)?(i=(r=e.schema).dimensions,o=e.store):i=e;var p=!!(t&&t.get("stack"));if(tj(i,function(t,e){tQ(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(c||a||!t.ordinalMeta||(a=t),s||"ordinal"===t.type||"time"===t.type||h&&h!==t.coordDim||(s=t))}),!s||c||a||(c=!0),s){l="__\0ecstackresult_"+t.id,u="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0);var d=s.coordDim,f=s.type,g=0;tj(i,function(t){t.coordDim===d&&g++});var y={name:l,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},v={name:u,coordDim:u,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(y.storeDimIndex=o.ensureCalculationDimension(u,f),v.storeDimIndex=o.ensureCalculationDimension(l,f)),r.appendCalculationDimension(y),r.appendCalculationDimension(v)):(i.push(y),i.push(v))}return{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:c,stackedOverDimension:u,stackResultDimension:l}}(e,{schema:v,store:x}),b=new gA(v,e);b.setCalculationInfo(_);var w=null!=m&&function(t){if(t.sourceFormat===lJ)return!tq(rq(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[])))}(c)?function(t,e,n,i){return i===m?n:this.defaultDimValueGetter(t,e,n,i)}:null;return b.hasItemOption=!1,b.initData(p?c:x,null,w),b};var gE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return tf(e,t),e.prototype.getInitialData=function(t){return gN(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new rb,n=dd("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=dd(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);return e.add(s),s.setStyle(t.itemStyle),s.rotation=("inherit"===t.iconRotate?r:t.iconRotate||0)*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(cW);function gz(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=u1(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(u1(t,e,n[a]));return o.join(" ")}}function gB(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!tq(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}var gV=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return tf(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=dd(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=gF,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){sl(this.childAt(0))},e.prototype.downplay=function(){su(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{var h=this.childAt(0);h.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(p):sL(h,p,a,n),sN(h)}if(this._updateCommon(t,n,s,i,r),l){var h=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,sD(h,p,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,c,h,p,d,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,p=i.hoverScale,d=i.cursorStyle,c=i.emphasisDisabled),!i||t.hasItemOption){var y=i&&i.itemModel?i.itemModel:t.getItemModel(e),v=y.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),a=y.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),c=v.get("disabled"),h=sF(y),p=v.getShallow("scale"),d=y.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var x=dg(t.getItemVisual(e,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),d&&f.attr("cursor",d);var _=t.getItemVisual(e,"style"),b=_.fill;if(f instanceof aw){var w=f.style;f.useStyle(tz({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(tz({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var I=r&&r.useNameLabel;sV(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return I?t.getName(e):gz(t,e)},inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=f.ensureState("emphasis");T.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var C=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;T.scaleX=this._sizeX*C,T.scaleY=this._sizeY*C,this.setSymbolScale(1),sv(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=aZ(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&sP(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();sP(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return df(t.getItemVisual(e,"symbolSize"))},e}(rb);function gF(t,e){this.parent.drift(t,e)}function gG(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function gj(t){return null==t||t0(t)||(t={isIgnore:t}),t||{}}function gW(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:sF(e),cursorStyle:e.get("cursor")}}var gH=function(){function t(t){this.group=new rb,this._SymbolCtor=t||gV}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=gj(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=gW(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r=u(i);if(gG(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(c,h){var p=r.getItemGraphicEl(h),d=u(c);if(!gG(t,d,c,e))return void n.remove(p);var f=t.getItemVisual(c,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),(p=new o(t,c,s,l)).setPosition(d);else{p.updateData(t,c,s,l);var y={x:d[0],y:d[1]};a?p.attr(y):sL(p,y,i)}n.add(p),t.setItemGraphicEl(c,p)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=gW(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=gj(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(gG(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){pg(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()},t}();function gZ(t,e,n){var i,r,o,a,s=t.getBaseAxis(),l=t.getOtherAxis(s),u=(i=l,r=n,o=0,a=i.scale.getExtent(),"start"===r?o=a[0]:"end"===r?o=a[1]:tJ(r)&&!isNaN(r)?o=r:a[0]>0?o=a[0]:a[1]<0&&(o=a[1]),o),c=s.dim,h=l.dim,p=e.mapDimension(h),d=e.mapDimension(c),f=+("x"===h||"radius"===h),g=tW(t.dimensions,function(t){return e.mapDimension(t)}),y=!1,v=e.getCalculationInfo("stackResultDimension");return gO(e,g[0])&&(y=!0,g[0]=v),gO(e,g[1])&&(y=!0,g[1]=v),{dataDimsForPoint:g,valueStart:u,valueAxisDim:h,baseAxisDim:c,stacked:!!y,valueDim:p,baseDim:d,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function gX(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var gU="u">typeof Float32Array,gY=gU?Float32Array:Array;function gq(t){return tq(t)?gU?new Float32Array(t):t:new gY(t)}var gK=Math.min,gQ=Math.max;function g$(t,e){return isNaN(t)||isNaN(e)}function gJ(t,e,n,i,r,o,a,s,l){for(var u,c,h,p,d,f,g=n,y=0;y<i;y++){var v=e[2*g],m=e[2*g+1];if(g>=r||g<0)break;if(g$(v,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,m),h=v,p=m;else{var x=v-u,_=m-c;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===v&&S===m&&y<i;)y++,b+=o,g+=o,w=e[2*b],S=e[2*b+1],v=e[2*g],m=e[2*g+1],x=v-u,_=m-c;var M=y+1;if(l)for(;g$(w,S)&&M<i;)M++,b+=o,w=e[2*b],S=e[2*b+1];var I=.5,T=0,C=0,A=void 0,L=void 0;if(M>=i||g$(w,S))d=v,f=m;else{T=w-u,C=S-c;var D=v-u,k=w-v,P=m-c,O=S-m,R=void 0,N=void 0;if("x"===s){R=Math.abs(D),N=Math.abs(k);var E=T>0?1:-1;d=v-E*R*a,f=m,A=v+E*N*a,L=m}else if("y"===s){R=Math.abs(P),N=Math.abs(O);var z=C>0?1:-1;d=v,f=m-z*R*a,A=v,L=m+z*N*a}else R=Math.sqrt(D*D+P*P),d=v-T*a*(1-(I=(N=Math.sqrt(k*k+O*O))/(N+R))),f=m-C*a*(1-I),A=v+T*a*I,L=m+C*a*I,A=gK(A,gQ(w,v)),L=gK(L,gQ(S,m)),A=gQ(A,gK(w,v)),L=gQ(L,gK(S,m)),T=A-v,C=L-m,d=v-T*R/N,f=m-C*R/N,d=gK(d,gQ(u,v)),f=gK(f,gQ(c,m)),d=gQ(d,gK(u,v)),f=gQ(f,gK(c,m)),T=v-d,C=m-f,A=v+T*N/R,L=m+C*N/R}t.bezierCurveTo(h,p,d,f,v,m),h=A,p=L}else t.lineTo(v,m)}u=v,c=m,g+=o}return y}var g0=function(){this.smooth=0,this.smoothConstraint=!0},g1=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return tf(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new g0},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&g$(n[2*r-2],n[2*r-1]);r--);for(;i<r&&g$(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=gJ(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=an.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=r[l++],c=void 0,h=void 0,p=void 0,d=void 0,f=void 0,g=void 0,y=void 0;switch(u){case o.M:n=r[l++],i=r[l++];break;case o.L:if(c=r[l++],h=r[l++],(y=a?(t-n)/(c-n):(t-i)/(h-i))<=1&&y>=0){var v=a?(h-i)*y+i:(c-n)*y+n;return a?[t,v]:[v,t]}n=c,i=h;break;case o.C:c=r[l++],h=r[l++],p=r[l++],d=r[l++],f=r[l++],g=r[l++];var m=a?nB(n,c,p,f,t,s):nB(i,h,d,g,t,s);if(m>0)for(var x=0;x<m;x++){var _=s[x];if(_<=1&&_>=0){var v=a?nE(i,h,d,g,_):nE(n,c,p,f,_);return a?[t,v]:[v,t]}}n=f,i=g}}},e}(av),g2=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e}(g0),g5=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return tf(e,t),e.prototype.getDefaultShape=function(){return new g2},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&g$(n[2*o-2],n[2*o-1]);o--);for(;r<o&&g$(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=gJ(t,n,r,o,o,1,e.smooth,a,e.connectNulls);gJ(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(av);function g3(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var h=new aL({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g=tK(r)?function(t){r(t,h)}:null;sD(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return h}function g4(t,e,n){var i=t.getArea(),r=rA(i.r0,1),o=rA(i.r,1),a=new hM({shape:{cx:rA(t.cx,1),cy:rA(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,sD(a,{shape:{endAngle:i.endAngle,r:o}},n)),a}function g6(t,e,n,i,r){if(t){if("polar"===t.type)return g4(t,e,n);else if("cartesian2d"===t.type)return g3(t,e,n,i,r)}return null}function g8(t,e){return t.type===e}function g9(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function g7(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function yt(t,e){var n=g7(t),i=n[0],r=n[1],o=g7(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function ye(t){return tJ(t)?t:.5*!!t}function yn(t,e,n,i,r){var o=n.getBaseAxis(),a=+("x"!==o.dim&&"radius"!==o.dim),s=[],l=0,u=[],c=[],h=[],p=[];if(r){for(l=0;l<t.length;l+=2){var d=e||t;isNaN(d[l])||isNaN(d[l+1])||p.push(t[l],t[l+1])}t=p}for(l=0;l<t.length-2;l+=2)switch(h[0]=t[l+2],h[1]=t[l+3],c[0]=t[l],c[1]=t[l+1],s.push(c[0],c[1]),i){case"end":u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var f=(c[a]+h[a])/2,g=[];u[a]=g[a]=f,u[1-a]=c[1-a],g[1-a]=h[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function yi(t,e){return[t[2*e],t[2*e+1]]}function yr(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<aQ.length;e++)if(t.get([aQ[e],"endLabel","show"]))return!0;return!1}function yo(t,e,n,i){if(!g8(e,"cartesian2d"))return g4(e,n,i);var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=yr(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),c=g3(e,n,i,function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=c.shape,p=Math.max(h.width,h.height);u?(h.y-=p,h.height+=2*p):(h.x-=p,h.width+=2*p)}return l&&l(1,c),c}var ya=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.prototype.init=function(){var t=new rb,e=new gH;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=tU(this._changePolyState,this)},e.prototype.render=function(t,e,n){var i,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===r.type,h=this._coordSys,p=this._symbolDraw,d=this._polyline,f=this._polygon,g=this._lineGroup,y=!e.ssr&&t.get("animation"),v=!l.isEmpty(),m=l.get("origin"),x=gZ(r,a,m),_=v&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=gq(2*i),o=0;o<i;o++){var a=gX(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(r,a,x),b=t.get("showSymbol"),w=t.get("connectNulls"),S=b&&!c&&function(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&!(r&&function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*gV.getSymbolSize(e,a)[+!!t.isHorizontal()]>i)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return tj(o.getViewLabels(),function(t){s[o.scale.getRawOrdinalNumber(t.tickValue)]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,a,r),M=this._data;M&&M.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),M.setItemGraphicEl(e,null))}),b||p.remove(),o.add(g);var I=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(i=r.getArea()).width?(i.x-=.1,i.y-=.1,i.width+=.2,i.height+=.2):i.r0&&(i.r0-=.5,i.r+=.5)),this._clipShapeForSymbol=i;var T=function(t,e,n){var i,r,o=t.getVisual("visualMeta");if(o&&o.length&&t.count()){if("cartesian2d"!==e.type)return;for(var a=o.length-1;a>=0;a--){var s=t.getDimensionInfo(o[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){r=o[a];break}}if(!r)return;var l=e.getAxis(i),u=tW(r.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),c=u.length,h=r.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var p=function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord,r=function(t,e){if(e&&e.length&&t>=0&&t<=1){var n,i,r,o,a=t*(e.length-1),s=Math.floor(a),l=Math.ceil(a),u=it(e[s]),c=it(e[l]),h=a-s;return is([n0((n=u[0],n+(c[0]-n)*h)),n0((i=u[1],i+(c[1]-i)*h)),n0((r=u[2],r+(c[2]-r)*h)),n1((o=u[3],o+(c[3]-o)*h))],"rgba")}}((n-i)/(e.coord-i),[t.color,e.color]);return{coord:n,color:r}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else if(u>e){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}else n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}return r}(u,"x"===i?n.getWidth():n.getHeight()),d=p.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=p[0].coord-10,g=p[d-1].coord+10,y=g-f;if(y<.001)return"transparent";tj(p,function(t){t.offset=(t.coord-f)/y}),p.push({offset:d?p[d-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:h[0]||"transparent"});var v=new hW(0,0,0,0,p,!0);return v[i]=f,v[i+"2"]=g,v}}(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&h.type===r.type&&I===this._step){v&&!f?f=this._newPolygon(u,_):f&&!v&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,lR(T));var C=g.getClipPath();C?sD(C,{shape:yo(this,r,!1,t).shape},t):g.setClipPath(yo(this,r,!0,t)),b&&p.updateData(a,{isIgnore:S,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),g9(this._stackedOnPoints,_)&&g9(this._points,u)||(y?this._doUpdateAnimation(a,_,r,n,I,m,w):(I&&(_&&(_=yn(_,u,r,I,w)),u=yn(u,null,r,I,w)),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))}else b&&p.updateData(a,{isIgnore:S,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),y&&this._initSymbolLabelAnimation(a,r,i),I&&(_&&(_=yn(_,u,r,I,w)),u=yn(u,null,r,I,w)),d=this._newPolyline(u),v?f=this._newPolygon(u,_):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,lR(T)),g.setClipPath(yo(this,r,!0,t));var A=t.getModel("emphasis"),L=A.get("focus"),D=A.get("blurScope"),k=A.get("disabled");d.useStyle(tB(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),sb(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),aZ(d).seriesIndex=t.seriesIndex,sv(d,L,D,k);var P=ye(t.get("smooth")),O=t.get("smoothMonotone");if(d.setShape({smooth:P,smoothMonotone:O,connectNulls:w}),f){var R=a.getCalculationInfo("stackedOnSeries"),N=0;f.useStyle(tB(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),R&&(N=ye(R.get("smooth"))),f.setShape({smooth:P,stackedOnSmooth:N,smoothMonotone:O,connectNulls:w}),sb(f,t,"areaStyle"),aZ(f).seriesIndex=t.seriesIndex,sv(f,L,D,k)}var E=this._changePolyState;a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=E)}),this._polyline.onHoverStateChange=E,this._data=a,this._coordSys=r,this._stackedOnPoints=_,this._points=u,this._step=I,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){aZ(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=r2(r,i);if(this._changePolyState("emphasis"),o instanceof Array||null==o||!(o>=0))pm.prototype.highlight.call(this,t,e,n,i);else{var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new gV(r,o)).x=l,s.y=u,s.setZ(c,h);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=h,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=r2(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else pm.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;si(this._polyline,t),e&&si(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new g1({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new g5({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");tK(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=tK(u)?u(null):u;t.eachItemGraphicEl(function(t,o){if(t){var s=[t.x,t.y],h=void 0,p=void 0,d=void 0;if(n)if(r){var f=e.pointToCoord(s);i?(h=n.startAngle,p=n.endAngle,d=-f[1]/180*Math.PI):(h=n.r0,p=n.r,d=f[0])}else i?(h=n.x,p=n.x+n.width,d=t.x):(h=n.y+n.height,p=n.y,d=t.y);var g=p===h?0:(d-h)/(p-h);a&&(g=1-g);var y=tK(u)?u(o):l*g+c,v=t.getSymbolPath(),m=v.getTextContent();t.attr({scaleX:0,scaleY:0}),t.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),m&&m.animateFrom({style:{opacity:0}},{duration:300,delay:y}),v.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(yr(t)){var r,o,a,s=t.getData(),l=this._polyline,u=s.getLayout("points");if(!u){l.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||((c=this._endLabel=new aP({z2:200})).ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var h=function(t){for(var e,n,i=t.length/2;i>0&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(u);h>=0&&(sV(l,sF(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:h,defaultText:function(t,e,n){return null!=n?gB(s,n):gz(s,t)},enableTextSetter:!0},(o=(r=e.getBaseAxis()).isHorizontal(),a=r.inverse,{normal:{align:i.get("align")||(o?a?"right":"left":"center"),verticalAlign:i.get("verticalAlign")||(o?"middle":a?"top":"bottom")}})),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),p=o.get("precision"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?d:0)*(y?-1:1),_=(g?0:-d)*(y?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a=+("x"!==n),s=0,l=-1,u=0;u<o;u++)if(!(isNaN(r=t[2*u+a])||isNaN(t[2*u+1-a]))){if(0===u){i=r;continue}if(i<=e&&r>=e||i>=e&&r<=e){l=u;break}s=u,i=r}return{range:[s,l],t:(e-i)/(r-i)}}(u,m,b),S=w.range,M=S[1]-S[0],I=void 0;if(M>=1){if(M>1&&!h){var T=yi(u,S[0]);s.attr({x:T[0]+x,y:T[1]+_}),r&&(I=c.getRawValue(S[0]))}else{var T=l.getPointOn(m,b);T&&s.attr({x:T[0]+x,y:T[1]+_});var C=c.getRawValue(S[0]),A=c.getRawValue(S[1]);r&&(I=on(n,p,C,A,w.t))}i.lastFrameIndex=S[0]}else{var L=1===t||i.lastFrameIndex>0?S[0]:0,T=yi(u,L);r&&(I=c.getRawValue(L)),s.attr({x:T[0]+x,y:T[1]+_})}if(r){var D=sY(s);"function"==typeof D.setLabelText&&D.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,i,r,o){for(var a,s=(a=[],e.diff(t).add(function(t){a.push({cmd:"+",idx:t})}).update(function(t,e){a.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){a.push({cmd:"-",idx:t})}).execute(),a),l=[],u=[],c=[],h=[],p=[],d=[],f=[],g=gZ(r,e,o),y=t.getLayout("points")||[],v=e.getLayout("points")||[],m=0;m<s.length;m++){var x=s[m],_=!0,b=void 0,w=void 0;switch(x.cmd){case"=":b=2*x.idx,w=2*x.idx1;var S=y[b],M=y[b+1],I=v[w],T=v[w+1];(isNaN(S)||isNaN(M))&&(S=I,M=T),l.push(S,M),u.push(I,T),c.push(n[b],n[b+1]),h.push(i[w],i[w+1]),f.push(e.getRawIndex(x.idx1));break;case"+":var C=x.idx,A=g.dataDimsForPoint,L=r.dataToPoint([e.get(A[0],C),e.get(A[1],C)]);w=2*C,l.push(L[0],L[1]),u.push(v[w],v[w+1]);var D=gX(g,r,e,C);c.push(D[0],D[1]),h.push(i[w],i[w+1]),f.push(e.getRawIndex(C));break;case"-":_=!1}_&&(p.push(x),d.push(d.length))}d.sort(function(t,e){return f[t]-f[e]});for(var k=l.length,P=gq(k),O=gq(k),R=gq(k),N=gq(k),E=[],m=0;m<d.length;m++){var z=d[m],B=2*m,V=2*z;P[B]=l[V],P[B+1]=l[V+1],O[B]=u[V],O[B+1]=u[V+1],R[B]=c[V],R[B+1]=c[V+1],N[B]=h[V],N[B+1]=h[V+1],E[m]=p[z]}return{current:P,next:O,stackedOnCurrent:R,stackedOnNext:N,status:E}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),h=c.current,p=c.stackedOnCurrent,d=c.next,f=c.stackedOnNext;if(r&&(p=yn(c.stackedOnCurrent,c.current,n,r,a),h=yn(c.current,null,n,r,a),f=yn(c.stackedOnNext,c.next,n,r,a),d=yn(c.next,null,n,r,a)),yt(h,d)>3e3||l&&yt(p,f)>3e3){s.stopAnimation(),s.setShape({points:d}),l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f}));return}s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),sL(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:p}),l.stopAnimation(),sL(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=c.status,m=0;m<v.length;m++)if("="===v[m].cmd){var x=t.getItemGraphicEl(v[m].idx1);x&&y.push({el:x,ptIdx:m})}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<y.length;e++){var n=y[e].el,i=2*y[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}})},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(pm);function ys(t,e){return{seriesType:t,plan:c$(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=tW(i.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");gO(n,a[0])&&(a[0]=l),gO(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),h=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&gq(n*s),a=[],l=[],p=t.start,d=0;p<t.end;p++){var f=void 0;if(1===s){var g=u.get(c,p);f=i.dataToPoint(g,null,l)}else a[0]=u.get(c,p),a[1]=u.get(h,p),f=i.dataToPoint(a,null,l);o?(r[d++]=f[0],r[d++]=f[1]):e.setItemLayout(p,f.slice())}o&&e.setLayout("points",r)}}}}}}var yl={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)!isNaN(t[i])&&(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},yu=function(t){return Math.round(t.length/2)};function yc(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.round(a/(Math.abs(u[1]-u[0])*(c||1)));if(isFinite(h)&&h>1){"lttb"===r?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/h)):"minmax"===r&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/h));var p=void 0;tQ(r)?p=yl[r]:tK(r)&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/h,p,yu))}}}}}var yh="__ec_stack_";function yp(t){return t.get("stack")||yh+t.seriesIndex}function yd(t){return t.dim+t.index}function yf(t,e){var n=[];return e.eachSeriesByType(t,function(t){yx(t)&&n.push(t)}),n}function yg(t){var e=function(t){var e={};tj(t,function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[r]?e[r].push(u):e[r]=[u]}});var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return tj(t,function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=e[r.dim+"_"+r.index],s=Math.abs(o[1]-o[0]),l=r.scale.getExtent(),u=Math.abs(l[1]-l[0]);i=a?s/u*a:s}else{var c=t.getData();i=Math.abs(o[1]-o[0])/c.count()}var h=rC(t.get("barWidth"),i),p=rC(t.get("barMaxWidth"),i),d=rC(t.get("barMinWidth")||(y_(t)?.5:1),i),f=t.get("barGap"),g=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:h,barMaxWidth:p,barMinWidth:d,barGap:f,barCategoryGap:g,axisKey:yd(r),stackId:yp(t)})}),yy(n)}function yy(t){var e={};tj(t,function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;!a[s]&&o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var p=t.barCategoryGap;null!=p&&(o.categoryGap=p)});var n={};return tj(e,function(t,e){n[e]={};var i,r=t.stacks,o=t.bandWidth,a=t.categoryGap;null==a&&(a=Math.max(35-4*tX(r).length,15)+"%");var s=rC(a,o),l=rC(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),tj(r,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,c--}else{var i=h;e&&e<i&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==h&&(t.width=i,u-=i+l*i,c--)}}),h=Math.max(h=(u-s)/(c+(c-1)*l),0);var p=0;tj(r,function(t,e){t.width||(t.width=h),i=t,p+=t.width*(1+l)}),i&&(p-=i.width*l);var d=-p/2;tj(r,function(t,i){n[e][i]=n[e][i]||{bandWidth:o,offset:d,width:t.width},d+=t.width*(1+l)})}),n}function yv(t,e){var n=yf(t,e),i=yg(n);tj(n,function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=yp(t),o=i[yd(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})})}function ym(t){return{seriesType:t,plan:c$(),reset:function(t){if(yx(t)){var e,n,i=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),a=r.getOtherAxis(o),s=i.getDimensionIndex(i.mapDimension(a.dim)),l=i.getDimensionIndex(i.mapDimension(o.dim)),u=t.get("showBackground",!0),c=i.mapDimension(a.dim),h=i.getCalculationInfo("stackResultDimension"),p=gO(i,c)&&!!i.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),f=((n=(e=a).model.get("startValue"))||(n=0),e.toGlobalCoord(e.dataToCoord("log"===e.type?n>0?n:1:n))),g=y_(t),y=t.get("barMinHeight")||0,v=h&&i.getDimensionIndex(h),m=i.getLayout("size"),x=i.getLayout("offset");return{progress:function(t,e){for(var n,i=t.count,o=g&&gq(3*i),a=g&&u&&gq(3*i),c=g&&gq(i),h=r.master.getRect(),_=d?h.width:h.height,b=e.getStore(),w=0;null!=(n=t.next());){var S=b.get(p?v:s,n),M=b.get(l,n),I=f,T=void 0;p&&(T=S-b.get(s,n));var C=void 0,A=void 0,L=void 0,D=void 0;if(d){var k=r.dataToPoint([S,M]);if(p){var P=r.dataToPoint([T,M]);I=P[0]}C=I,A=k[1]+x,L=k[0]-I,D=m,Math.abs(L)<y&&(L=(L<0?-1:1)*y)}else{var k=r.dataToPoint([M,S]);if(p){var P=r.dataToPoint([M,T]);I=P[1]}C=k[0]+x,A=I,L=m,Math.abs(D=k[1]-I)<y&&(D=(D<=0?-1:1)*y)}g?(o[w]=C,o[w+1]=A,o[w+2]=d?L:D,a&&(a[w]=d?h.x:C,a[w+1]=d?A:h.y,a[w+2]=_),c[n]=n):e.setItemLayout(n,{x:C,y:A,width:L,height:D}),w+=3}g&&e.setLayout({largePoints:o,largeDataIndices:c,largeBackgroundPoints:a,valueAxisHorizontal:d})}}}}}}function yx(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function y_(t){return t.pipelineContext&&t.pipelineContext.large}var yb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.getInitialData=function(t,e){return gN(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(t),o=i.dataToPoint(r);if(n)tj(i.getAxes(),function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),a=t.getTickModel().get("alignWithLabel"),s=r[n],l="x1"===e[n]||"y1"===e[n];if(l&&!a&&(s+=1),!(i.length<2)){if(2===i.length){o[n]=t.toGlobalCoord(t.getExtent()[+!!l]);return}for(var u=void 0,c=void 0,h=1,p=0;p<i.length;p++){var d=i[p].coord,f=p===i.length-1?i[p-1].tickValue+h:i[p].tickValue;if(f===s){c=d;break}if(f<s)u=d;else if(null!=u&&f>s){c=(d+u)/2;break}1===p&&(h=f-i[0].tickValue)}null==c&&(u?u&&(c=i[i.length-1].coord):c=i[0].coord),o[n]=t.toGlobalCoord(c)}}});else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=+!i.getBaseAxis().isHorizontal();o[u]+=s+l/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(cW);cW.registerClass(yb);var yw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.getInitialData=function(){return gN(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=lt(yb.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:"#212121"}},realtimeSort:!1}),e}(yb),yS=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},yM=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return tf(e,t),e.prototype.getDefaultShape=function(){return new yS},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=(o-r)*.5,s=r+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,p=c?u-l<h:l-u<h;p||(l=u-(c?h:-h));var d=Math.cos(l),f=Math.sin(l),g=Math.cos(u),y=Math.sin(u);p?(t.moveTo(d*r+n,f*r+i),t.arc(d*s+n,f*s+i,a,-Math.PI+l,l,!c)):t.moveTo(d*o+n,f*o+i),t.arc(n,i,o,l,u,!c),t.arc(g*s+n,y*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&t.arc(n,i,r,u,l,c)},e}(av);function yI(t,e,n){return e*Math.sin(t)*(n?-1:1)}function yT(t,e,n){return e*Math.cos(t)*(n?1:-1)}function yC(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;tq(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:tW(i,function(t){return rh(t,r)})}}var yA=Math.max,yL=Math.min,yD=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return tf(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){pg(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e!==this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=function(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}(t,l);h&&this._enableRealtimeSort(h,a,n);var p=t.get("clip",!0)||h,d=function(t,e){var n=t.getArea&&t.getArea();if(g8(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),v=y.get("borderRadius")||0,m=[],x=this._backgroundEls,_=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;function w(t){var e,n,i,o=yB[l.type](a,t),s=(e=l,n=r,i=o,new("polar"===e.type?hM:aL)({shape:yZ(n,i,e),silent:!0,z2:0}));return s.useStyle(y.getItemStyle()),"cartesian2d"===l.type?s.setShape("r",v):s.setShape("cornerRadius",v),m[t]=s,s}a.diff(s).add(function(e){var n=a.getItemModel(e),i=yB[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&yz[l.type](i)){var s=!1;p&&(s=yk[l.type](d,i));var y=yP[l.type](t,a,e,i,r,c,u.model,!1,f);h&&(y.forceLabelAnimation=!0),yF(y,a,e,n,i,t,r,"polar"===l.type),_?y.attr({shape:i}):h?yO(h,c,y,i,e,r,!1,!1):sD(y,{shape:i},t,e),a.setItemGraphicEl(e,y),o.add(y),y.ignore=s}}).update(function(e,n){var i=a.getItemModel(e),S=yB[l.type](a,e,i);if(g){var M=void 0;0===x.length?M=w(n):((M=x[n]).useStyle(y.getItemStyle()),"cartesian2d"===l.type?M.setShape("r",v):M.setShape("cornerRadius",v),m[e]=M);var I=yB[l.type](a,e);sL(M,{shape:yZ(r,I,l)},c,e)}var T=s.getItemGraphicEl(n);if(!a.hasValue(e)||!yz[l.type](S))return void o.remove(T);var C=!1;if(p&&(C=yk[l.type](d,S))&&o.remove(T),T?sN(T):T=yP[l.type](t,a,e,S,r,c,u.model,!!T,f),h&&(T.forceLabelAnimation=!0),b){var A=T.getTextContent();if(A){var L=sY(A);null!=L.prevValue&&(L.prevValue=L.value)}}else yF(T,a,e,i,S,t,r,"polar"===l.type);_?T.attr({shape:S}):h?yO(h,c,T,S,e,r,!0,b):sL(T,{shape:S},t,e,null),a.setItemGraphicEl(e,T),T.ignore=C,o.add(T)}).remove(function(e){var n=s.getItemGraphicEl(e);n&&sR(n,t,e)}).execute();var S=this._backgroundGroup||(this._backgroundGroup=new rb);S.removeAll();for(var M=0;M<m.length;++M)S.add(m[M]);o.add(S),this._backgroundEls=m,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),yW(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),yW(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&g6(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),function(t,e){var r=n(e);r=null==r?NaN:r,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})}),i.sort(function(t,e){return e.mappedValue-t.mappedValue}),{ordinalNumbers:tW(i,function(t){return t.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(a)),u=l<0?5e-324:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){sR(e,t,aZ(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(pm),yk={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=yA(e.x,t.x),s=yL(e.x+e.width,r),l=yA(e.y,t.y),u=yL(e.y+e.height,o),c=s<a,h=u<l;return e.x=c&&a>r?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=yL(e.r,t.r),o=yA(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}return a}},yP={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new aL({shape:tz({},i),z2:1});return u.__dataIndex=n,u.name="item",o&&(u.shape[r?"height":"width"]=0),u},polar:function(t,e,n,i,r,o,a,s,l){var u,c,h=!r&&l?yM:hM,p=new h({shape:i,z2:1});if(p.name="item",u=yV(r),c=h===yM,p.calculateTextPosition=function(t,e,n){var i=e.position;if(!i||i instanceof Array)return rp(t,e,n);var r=u(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,h=a.r,p=a.r0,d=(h+p)/2,f=a.startAngle,g=a.endAngle,y=(f+g)/2,v=c?Math.abs(h-p)/2:0,m=Math.cos,x=Math.sin,_=s+h*m(f),b=l+h*x(f),w="left",S="top";switch(r){case"startArc":_=s+(p-o)*m(y),b=l+(p-o)*x(y),w="center",S="top";break;case"insideStartArc":_=s+(p+o)*m(y),b=l+(p+o)*x(y),w="center",S="bottom";break;case"startAngle":_=s+d*m(f)+yI(f,o+v,!1),b=l+d*x(f)+yT(f,o+v,!1),w="right",S="middle";break;case"insideStartAngle":_=s+d*m(f)+yI(f,-o+v,!1),b=l+d*x(f)+yT(f,-o+v,!1),w="left",S="middle";break;case"middle":_=s+d*m(y),b=l+d*x(y),w="center",S="middle";break;case"endArc":_=s+(h+o)*m(y),b=l+(h+o)*x(y),w="center",S="bottom";break;case"insideEndArc":_=s+(h-o)*m(y),b=l+(h-o)*x(y),w="center",S="top";break;case"endAngle":_=s+d*m(g)+yI(g,o+v,!0),b=l+d*x(g)+yT(g,o+v,!0),w="left",S="middle";break;case"insideEndAngle":_=s+d*m(g)+yI(g,-o+v,!0),b=l+d*x(g)+yT(g,-o+v,!0),w="right",S="middle";break;default:return rp(t,e,n)}return(t=t||{}).x=_,t.y=b,t.align=w,t.verticalAlign=S,t},o){var d=p.shape,f=r?"r":"endAngle",g={};d[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?sL:sD)(p,{shape:g},o)}return p}};function yO(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?sL:sD)(n,{shape:l},e,r,null),(a?sL:sD)(n,{shape:u},e?t.baseAxis.model:null,r)}function yR(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var yN=["x","y","width","height"],yE=["cx","cy","r","startAngle","endAngle"],yz={cartesian2d:function(t){return!yR(t,yN)},polar:function(t){return!yR(t,yE)}},yB={cartesian2d:function(t,e,n){var i,r,o,a=t.getItemLayout(e),s=n?(i=n,r=a,(o=i.get(["itemStyle","borderColor"]))&&"none"!==o?Math.min(i.get(["itemStyle","borderWidth"])||0,isNaN(r.width)?Number.MAX_VALUE:Math.abs(r.width),isNaN(r.height)?Number.MAX_VALUE:Math.abs(r.height)):0):0,l=a.width>0?1:-1,u=a.height>0?1:-1;return{x:a.x+l*s/2,y:a.y+u*s/2,width:a.width-l*s,height:a.height-u*s}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function yV(t){var e;return e=t?"Arc":"Angle",function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}function yF(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape,c=yC(i.getModel("itemStyle"),u,!0);tz(u,c),t.setShape(u)}}else{var h=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",h)}t.useStyle(l);var p=i.getShallow("cursor");p&&t.attr("cursor",p);var d=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",f=sF(i);sV(t,f,{labelFetcher:o,labelDataIndex:n,defaultText:gz(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var g=t.getTextContent();if(s&&g){var y=i.get(["label","position"]);t.textConfig.inside="middle"===y||null,function(t,e,n,i){if(tJ(i))return t.setTextConfig({rotation:i});if(tq(e))return t.setTextConfig({rotation:0});var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=n(e);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=(a+s)/2;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:t.setTextConfig({rotation:0});return}var u=1.5*Math.PI-r;"middle"===l&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),t.setTextConfig({rotation:u})}(t,"outside"===y?d:y,yV(a),i.get(["label","rotate"]))}sq(g,f,o.getRawValue(n),function(t){return gB(e,t)});var v=i.getModel(["emphasis"]);sv(t,v.get("focus"),v.get("blurScope"),v.get("disabled")),sb(t,i),null!=r.startAngle&&null!=r.endAngle&&r.startAngle===r.endAngle&&(t.style.fill="none",t.style.stroke="none",tj(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var yG=function(){},yj=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return tf(e,t),e.prototype.getDefaultShape=function(){return new yG},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],t.rect(o[0],o[1],a[0],a[1])},e}(av);function yW(t,e,n,i){var r=t.getData(),o=+!!r.getLayout("valueAxisHorizontal"),a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var c=new yj({shape:{points:u},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var h=new yj({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(r.getVisual("style")),h.style.stroke=null,aZ(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",yH),h.on("mousemove",yH)),n&&n.push(h)}var yH=pC(function(t){var e=function(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=o.length/3;c<h;c++){var p=3*c;if(l[i]=u,l[r]=o[p+2],s[i]=o[p+i],s[r]=o[p+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return -1}(this,t.offsetX,t.offsetY);aZ(this).dataIndex=e>=0?e:null},30,!1);function yZ(t,e,n){if(g8(n,"cartesian2d")){var i=n.getArea();return{x:t?e.x:i.x,y:t?i.y:e.y,width:t?e.width:i.width,height:t?i.height:e.height}}var i=n.getArea();return{cx:i.cx,cy:i.cy,r0:t?i.r0:e.r0,r:t?i.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}}var yX=2*Math.PI,yU=Math.PI/180;function yY(t,e){return lV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function yq(t,e){var n,i,r=yY(t,e),o=t.get("center"),a=t.get("radius");tq(a)||(a=[0,a]);var s=rC(r.width,e.getWidth()),l=rC(r.height,e.getHeight()),u=Math.min(s,l),c=rC(a[0],u/2),h=rC(a[1],u/2),p=t.coordinateSystem;if(p){var d=p.dataToPoint(o);n=d[0]||0,i=d[1]||0}else tq(o)||(o=[o,o]),n=rC(o[0],s)+r.x,i=rC(o[1],l)+r.y;return{cx:n,cy:i,r0:c,r:h}}function yK(t,e,n){e.eachSeriesByType(t,function(t){var e=t.getData(),i=e.mapDimension("value"),r=yY(t,n),o=yq(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*yU,h=t.get("endAngle"),p=t.get("padAngle")*yU;h="auto"===h?c-yX:-h*yU;var d=t.get("minAngle")*yU+p,f=0;e.each(i,function(t){!isNaN(t)&&f++});var g=e.getSum(i),y=Math.PI/(g||f)*2,v=t.get("clockwise"),m=t.get("roseType"),x=t.get("stillShowZeroSum"),_=e.getDataExtent(i);_[0]=0;var b=v?1:-1,w=[c,h],S=b*p/2;ae(w,!v),c=w[0],h=w[1];var M=yQ(t);M.startAngle=c,M.endAngle=h,M.clockwise=v;var I=Math.abs(h-c),T=I,C=0,A=c;if(e.setLayout({viewRect:r,r:l}),e.each(i,function(t,n){if(isNaN(t))return void e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:a,cy:s,r0:u,r:m?NaN:l});(i="area"!==m?0===g&&x?y:t*y:I/f)<d?(i=d,T-=d):C+=t;var i,r=A+b*i,o=0,c=0;p>i?c=o=A+b*i/2:(o=A+S,c=r-S),e.setItemLayout(n,{angle:i,startAngle:o,endAngle:c,clockwise:v,cx:a,cy:s,r0:u,r:m?rT(t,_,[u,l]):l}),A=r}),T<yX&&f)if(T<=.001){var L=I/f;e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=L;var r=0,o=0;L<p?o=r=c+b*(n+.5)*L:(r=c+b*n*L+S,o=c+b*(n+1)*L-S),i.startAngle=r,i.endAngle=o}})}else y=T/C,A=c,e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===d?d:t*y,o=0,a=0;r<p?a=o=A+b*r/2:(o=A+S,a=A+b*r-S),i.startAngle=o,i.endAngle=a,A+=b*r}})})}var yQ=r5();function y$(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf(function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0})}}}}var yJ=2*Math.PI,y0=an.CMD,y1=["top","right","bottom","left"];function y2(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=Math.sqrt(l*l+u*u),h=((r-t)*(l/=c)+(o-e)*(u/=c))/c;s&&(h=Math.min(Math.max(h,0),1)),h*=c;var p=a[0]=t+h*l,d=a[1]=e+h*u;return Math.sqrt((p-r)*(p-r)+(d-o)*(d-o))}function y5(t,e,n,i,r,o,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}var y3=[],y4=new e9,y6=new e9,y8=new e9,y9=new e9,y7=new e9;function vt(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||y1,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,c=t.getComputedTransform(),h=c&&e8([],c),p=e.get("length2")||0;u&&y8.copy(u);for(var d=0;d<a.length;d++){!function(t,e,n,i){var r=e.width,o=e.height;switch(t){case"top":n.set(e.x+r/2,e.y-0),i.set(0,-1);break;case"bottom":n.set(e.x+r/2,e.y+o+0),i.set(0,1);break;case"left":n.set(e.x-0,e.y+o/2),i.set(-1,0);break;case"right":n.set(e.x+r+0,e.y+o/2),i.set(1,0)}}(a[d],s,y4,y9),e9.scaleAndAdd(y6,y4,y9,p),y6.transform(h);var f=t.getBoundingRect(),g=u?u.distance(y6):t instanceof av?function(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,p=t.y,d=0;d<c.length;){var f=c[d++];1===d&&(o=c[d],a=c[d+1],s=o,l=a);var g=u;switch(f){case y0.M:s=c[d++],l=c[d++],o=s,a=l;break;case y0.L:g=y2(o,a,c[d],c[d+1],h,p,y3,!0),o=c[d++],a=c[d++];break;case y0.C:g=nG(o,a,c[d++],c[d++],c[d++],c[d++],c[d],c[d+1],h,p,y3),o=c[d++],a=c[d++];break;case y0.Q:g=nX(o,a,c[d++],c[d++],c[d],c[d+1],h,p,y3),o=c[d++],a=c[d++];break;case y0.A:var y=c[d++],v=c[d++],m=c[d++],x=c[d++],_=c[d++],b=c[d++];d+=1;var w=!!(1-c[d++]);i=Math.cos(_)*m+y,r=Math.sin(_)*x+v,d<=1&&(s=i,l=r);var S=(h-y)*x/m+y;g=function(t,e,n,i,r,o,a,s,l){var u=Math.sqrt((a-=t)*a+(s-=e)*s),c=(a/=u)*n+t,h=(s/=u)*n+e;if(Math.abs(i-r)%yJ<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var p=i;i=aa(r),r=aa(p)}else i=aa(i),r=aa(r);i>r&&(r+=yJ);var d=Math.atan2(s,a);if(d<0&&(d+=yJ),d>=i&&d<=r||d+yJ>=i&&d+yJ<=r)return l[0]=c,l[1]=h,u-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,y=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=(f-a)*(f-a)+(g-s)*(g-s),x=(y-a)*(y-a)+(v-s)*(v-s);return m<x?(l[0]=f,l[1]=g,Math.sqrt(m)):(l[0]=y,l[1]=v,Math.sqrt(x))}(y,v,x,_,_+b,w,S,p,y3),o=Math.cos(_+b)*m+y,a=Math.sin(_+b)*x+v;break;case y0.R:g=y5(s=o=c[d++],l=a=c[d++],c[d++],c[d++],h,p,y3);break;case y0.Z:g=y2(o,a,s,l,h,p,y3,!0),o=s,a=l}g<u&&(u=g,n.set(y3[0],y3[1]))}return u}(y6,t.path,y8):function(t,e,n){var i=y5(e.x,e.y,e.width,e.height,t.x,t.y,y3);return n.set(y3[0],y3[1]),i}(y6,f,y8);g<l&&(l=g,y6.transform(c),y8.transform(c),y8.toArray(o[0]),y6.toArray(o[1]),y4.toArray(o[2]))}vi(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var ve=[],vn=new e9;function vi(t,e){if(e<=180&&e>0){e=e/180*Math.PI,y4.fromArray(t[0]),y6.fromArray(t[1]),y8.fromArray(t[2]),e9.sub(y9,y4,y6),e9.sub(y7,y8,y6);var n=y9.len(),i=y7.len();if(!(n<.001)&&!(i<.001)&&(y9.scale(1/n),y7.scale(1/i),Math.cos(e)<y9.dot(y7))){var r=y2(y6.x,y6.y,y8.x,y8.y,y4.x,y4.y,ve,!1);vn.fromArray(ve),vn.scaleAndAdd(y7,r/Math.tan(Math.PI-e));var o=y8.x!==y6.x?(vn.x-y6.x)/(y8.x-y6.x):(vn.y-y6.y)/(y8.y-y6.y);if(isNaN(o))return;o<0?e9.copy(vn,y6):o>1&&e9.copy(vn,y8),vn.toArray(t[1])}}}function vr(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function vo(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=ew(i[0],i[1]),o=ew(i[1],i[2]);if(!r||!o){t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]);return}var a=Math.min(r,o)*n,s=eM([],i[1],i[0],a/r),l=eM([],i[1],i[2],a/o),u=eM([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)t.lineTo(i[c][0],i[c][1])}function va(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(!r){i&&t.removeTextGuideLine();return}for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<a$.length;l++){var u=a$[l],c=e[u],h="normal"===u;if(c){var p=c.get("show");if((h?s:t6(r.states[u]&&r.states[u].ignore,s))||!t6(p,a)){var d=h?i:i&&i.states[u];d&&(d.ignore=!0),i&&vr(i,!0,u,c);continue}!i&&(i=new hk,t.setTextGuideLine(i),h||!s&&a||vr(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),vr(i,!1,u,c)}}if(i){tB(i.style,n),i.style.fill=null;var f=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=f||!1,i.buildPath=vo}}function vs(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<aQ.length;i++){var r=aQ[i];n[r]=t.getModel([r,e])}return n}function vl(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new hq(a,o):null;e.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return e}function vu(t,e,n,i,r,o){var a,s,l,u=t.length;if(!(u<2)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var c=0,h=!1,p=[],d=0,f=0;f<u;f++){var g=t[f],y=g.rect;(a=y[e]-c)<0&&(y[e]-=a,g.label[e]-=a,h=!0);var v=Math.max(-a,0);p.push(v),d+=v,c=y[e]+y[n]}d>0&&o&&w(-d/u,0,u);var m=t[0],x=t[u-1];return _(),s<0&&S(-s,.8),l<0&&S(l,.8),_(),b(s,l,1),b(l,s,-1),_(),s<0&&M(-s),l<0&&M(l),h}function _(){s=m.rect[e]-i,l=r-x.rect[e]-x.rect[n]}function b(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){w(i*n,0,u);var r=i+t;r<0&&S(-r*n,1)}else S(-t*n,1)}}function w(n,i,r){0!==n&&(h=!0);for(var o=i;o<r;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function S(i,r){for(var o=[],a=0,s=1;s<u;s++){var l=t[s-1].rect,c=Math.max(t[s].rect[e]-l[e]-l[n],0);o.push(c),a+=c}if(a){var h=Math.min(Math.abs(i)/a,r);if(i>0)for(var s=0;s<u-1;s++){var p=o[s]*h;w(p,0,s+1)}else for(var s=u-1;s>0;s--){var p=o[s-1]*h;w(-p,s,u)}}}function M(t){for(var e=t<0?-1:1,n=Math.ceil((t=Math.abs(t))/(u-1)),i=0;i<u-1;i++)if(e>0?w(n,0,i+1):w(-n,u-i-1,u),(t-=n)<=0)return}}function vc(t,e,n,i){return vu(t,"y","height",e,n,i)}function vh(t){var e=[];t.sort(function(t,e){return e.priority-t.priority});var n=new ns(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,p=!1,d=0;d<e.length;d++){var f=e[d];if(n.intersect(f.rect)&&(a&&f.axisAligned||(f.obb||(f.obb=new hq(f.localRect,f.transform)),h||(h=new hq(s,l)),h.intersect(f.obb)))){p=!0;break}}p?(i(u),c&&i(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}var vp=Math.PI/180;function vd(t,e,n,i,r,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var p=t[h].label.x-u;t[h].linePoints[1][0]+=p,t[h].label.x=u}vc(t,l,l+a)&&function(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*r,p=i+l.len;u.rB=Math.abs(h)<p?Math.sqrt(c*c/(1-h*h/p/p)):p,u.maxY=c}u.list.push(l)}d(o),d(a)}(t)}function d(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=i+l.len,h=e+(Math.sqrt(Math.abs(c*c*(1-u*u/a)))+l.len2)*r,p=h-l.label.x,d=l.targetTextWidth-p*r;vf(l,d,!0),l.label.x=h}}}function vf(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var i=t.label,r=i.style,o=t.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=o.width+(a?0:l);if(e<c||n){var h=o.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var p=i.getBoundingRect();i.setStyle("width",Math.ceil(p.width)),i.setStyle("backgroundColor",a)}else{var d=e-l,f=e<c?d:n?d>t.unconstrainedWidth?null:d:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var y=(i.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-h)/2}}}function vg(t){return"center"===t.position}var vy=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new aP;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return tf(e,t),e.prototype.updateData=function(t,e,n,i){var r=t.hostModel,o=t.getItemModel(e),a=o.getModel("emphasis"),s=t.getItemLayout(e),l=tz(yC(o.getModel("itemStyle"),s,!0),s);if(isNaN(l.startAngle))return void this.setShape(l);if(i){this.setShape(l);var u=r.getShallow("animationType");r.ecModel.ssr?(sD(this,{scaleX:0,scaleY:0},r,{dataIndex:e,isFrom:!0}),this.originX=l.cx,this.originY=l.cy):"scale"===u?(this.shape.r=s.r0,sD(this,{shape:{r:s.r}},r,e)):null!=n?(this.setShape({startAngle:n,endAngle:n}),sD(this,{shape:{startAngle:s.startAngle,endAngle:s.endAngle}},r,e)):(this.shape.endAngle=s.startAngle,sL(this,{shape:{endAngle:s.endAngle}},r,e))}else sN(this),sL(this,{shape:l},r,e);this.useStyle(t.getItemVisual(e,"style")),sb(this,o);var c=(s.startAngle+s.endAngle)/2,h=r.get("selectedOffset"),p=Math.cos(c)*h,d=Math.sin(c)*h,f=o.getShallow("cursor");f&&this.attr("cursor",f),this._updateLabel(r,t,e),this.ensureState("emphasis").shape=tz({r:s.r+(a.get("scale")&&a.get("scaleSize")||0)},yC(a.getModel("itemStyle"),s)),tz(this.ensureState("select"),{x:p,y:d,shape:yC(o.getModel(["select","itemStyle"]),s)}),tz(this.ensureState("blur"),{shape:yC(o.getModel(["blur","itemStyle"]),s)});var g=this.getTextGuideLine(),y=this.getTextContent();g&&tz(g.ensureState("select"),{x:p,y:d}),tz(y.ensureState("select"),{x:p,y:d}),sv(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},e.prototype._updateLabel=function(t,e,n){var i=e.getItemModel(n),r=i.getModel("labelLine"),o=e.getItemVisual(n,"style"),a=o&&o.fill,s=o&&o.opacity;sV(this,sF(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:s,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var l=this.getTextContent();this.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=t.get(["label","position"]);if("outside"!==u&&"outer"!==u)this.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new hk,this.setTextGuideLine(c)),va(this,vs(i),{stroke:a,opacity:t8(r.get(["lineStyle","opacity"]),s,1)})}},e}(hM),vv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return tf(e,t),e.prototype.render=function(t,e,n,i){var r,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=yQ(t),h=new hM({shape:tz(yq(t,n),c)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,s.add(h)}o.diff(a).add(function(t){var e=new vy(o,t,r);o.setItemGraphicEl(t,e),s.add(e)}).update(function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,r),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)}).remove(function(e){sR(a.getItemGraphicEl(e),t,e)}).execute(),function(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*vp,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,h=s.y,p=s.height;function d(t){t.ignore=!0}i.each(function(t){var s,h,p,f,g=i.getItemGraphicEl(t),y=g.shape,v=g.getTextContent(),m=g.getTextGuideLine(),x=i.getItemModel(t),_=x.getModel("label"),b=_.get("position")||x.get(["emphasis","label","position"]),w=_.get("distanceToLabelLine"),S=_.get("alignTo"),M=rC(_.get("edgeDistance"),u),I=_.get("bleedMargin"),T=x.getModel("labelLine"),C=T.get("length");C=rC(C,u);var A=T.get("length2");if(A=rC(A,u),Math.abs(y.endAngle-y.startAngle)<a){tj(v.states,d),v.ignore=!0,m&&(tj(m.states,d),m.ignore=!0);return}if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(v)){var L=(y.startAngle+y.endAngle)/2,D=Math.cos(L),k=Math.sin(L);e=y.cx,n=y.cy;var P="inside"===b||"inner"===b;if("center"===b)s=y.cx,h=y.cy,f="center";else{var O=(P?(y.r+y.r0)/2*D:y.r*D)+e,R=(P?(y.r+y.r0)/2*k:y.r*k)+n;if(s=O+3*D,h=R+3*k,!P){var N=O+D*(C+l-y.r),E=R+k*(C+l-y.r),z=N+(D<0?-1:1)*A;s="edge"===S?D<0?c+M:c+u-M:z+(D<0?-w:w),h=E,p=[[O,R],[N,E],[z,E]]}f=P?"center":"edge"===S?D>0?"right":"left":D>0?"left":"right"}var B=Math.PI,V=0,F=_.get("rotate");if(tJ(F))V=B/180*F;else if("center"===b)V=0;else if("radial"===F||!0===F)V=D<0?-L+B:-L;else if("tangential"===F&&"outside"!==b&&"outer"!==b){var G=Math.atan2(D,k);G<0&&(G=2*B+G),k>0&&(G=B+G),V=G-B}if(o=!!V,v.x=s,v.y=h,v.rotation=V,v.setStyle({verticalAlign:"middle"}),P){v.setStyle({align:f});var j=v.states.select;j&&(j.x+=v.x,j.y+=v.y)}else{var W=v.getBoundingRect().clone();W.applyTransform(v.getComputedTransform());var H=(v.style.margin||0)+2.1;W.y-=H/2,W.height+=H,r.push({label:v,labelLine:m,position:b,len:C,len2:A,minTurnAngle:T.get("minTurnAngle"),maxSurfaceAngle:T.get("maxSurfaceAngle"),surfaceNormal:new e9(D,k),linePoints:p,textAlign:f,labelDistance:w,labelAlignTo:S,edgeDistance:M,bleedMargin:I,rect:W,unconstrainedWidth:W.width,labelStyleWidth:v.style.width})}g.setTextConfig({inside:P})}}),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p<t.length;p++){var d=t[p].label;vg(t[p])||(d.x<e?(c=Math.min(c,d.x),l.push(t[p])):(h=Math.max(h,d.x),u.push(t[p])))}for(var p=0;p<t.length;p++){var f=t[p];if(!vg(f)&&f.linePoints){if(null!=f.labelStyleWidth)continue;var d=f.label,g=f.linePoints,y=void 0;y="edge"===f.labelAlignTo?d.x<e?g[2][0]-f.labelDistance-a-f.edgeDistance:a+r-f.edgeDistance-g[2][0]-f.labelDistance:"labelLine"===f.labelAlignTo?d.x<e?c-a-f.bleedMargin:a+r-h-f.bleedMargin:d.x<e?d.x-a-f.bleedMargin:a+r-d.x-f.bleedMargin,f.targetTextWidth=y,vf(f,y)}}vd(u,e,n,i,1,r,o,a,s,h),vd(l,e,n,i,-1,r,o,a,s,c);for(var p=0;p<t.length;p++){var f=t[p];if(!vg(f)&&f.linePoints){var d=f.label,g=f.linePoints,v="edge"===f.labelAlignTo,m=d.style.padding,x=m?m[1]+m[3]:0,_=d.style.backgroundColor?0:x,b=f.rect.width+_,w=g[1][0]-g[2][0];v?d.x<e?g[2][0]=a+f.edgeDistance+b+f.labelDistance:g[2][0]=a+r-f.edgeDistance-b-f.labelDistance:(d.x<e?g[2][0]=d.x+f.labelDistance:g[2][0]=d.x-f.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=d.y}}}(r,e,n,l,u,p,c,h);for(var f=0;f<r.length;f++){var g=r[f],y=g.label,v=g.labelLine,m=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),m&&(tj(y.states,d),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(v){var _=g.linePoints;m||!_?(tj(v.states,d),v.ignore=!0):(vi(_,g.minTurnAngle),function(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,y4.fromArray(t[0]),y6.fromArray(t[1]),y8.fromArray(t[2]),e9.sub(y9,y6,y4),e9.sub(y7,y8,y6);var i=y9.len(),r=y7.len();if(!(i<.001)&&!(r<.001)&&(y9.scale(1/i),y7.scale(1/r),y9.dot(e)<Math.cos(n))){var o=y2(y6.x,y6.y,y8.x,y8.y,y4.x,y4.y,ve,!1);vn.fromArray(ve);var a=Math.PI/2,s=a+Math.acos(y7.dot(e))-n;if(s>=a)e9.copy(vn,y8);else{vn.scaleAndAdd(y7,o/Math.tan(Math.PI/2-s));var l=y8.x!==y6.x?(vn.x-y6.x)/(y8.x-y6.x):(vn.y-y6.y)/(y8.y-y6.y);if(isNaN(l))return;l<0?e9.copy(vn,y6):l>1&&e9.copy(vn,y8)}vn.toArray(t[1])}}}(_,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:_}),y.__hostTarget.textGuideLineConfig={anchor:new e9(_[0][0],_[0][1])})}}}(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="pie",e}(pm);function vm(t,e,n){e=tq(e)&&{coordDimensions:e}||tz({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=new gA(gL(i,e).dimensions,t);return r.initData(i,n),r}var vx=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),v_=r5(),vb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new vx(tU(this.getData,this),tU(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return vm(this,{coordDimensions:["value"],encodeDefaulter:tY(l9,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=v_(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),function(t){o.push(t)}),r=i.seats=function(t,e){var n=tH(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var i=Math.pow(10,e),r=tW(t,function(t){return(isNaN(t)?0:t)/n*i*100}),o=100*i,a=tW(r,function(t){return Math.floor(t)}),s=tH(a,function(t,e){return t+e},0),l=tW(r,function(t,e){return t-a[e]});s<o;){for(var u=-1/0,c=null,h=0,p=l.length;h<p;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return tW(a,function(t){return t/i})}(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){rU(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,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%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(cW),vw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return tf(e,t),e.prototype.getInitialData=function(t,e){return gN(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(cW),vS=function(){},vM=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return tf(e,t),e.prototype.getDefaultShape=function(){return new vS},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,u=this.softClipShape;if(l){this._ctx=s;return}for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],h=i[n++];!(isNaN(c)||isNaN(h))&&(!u||u.contain(c,h))&&(a.x=c-r[0]/2,a.y=h-r[1]/2,a.width=r[0],a.height=r[1],o.buildPath(t,a,!0))}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,r=this._ctx,o=this.softClipShape;if(r){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];!(isNaN(a)||isNaN(s))&&(!o||o.contain(a,s))&&r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1])}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-o/2,c=i[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return -1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return(t=n[0],e=n[1],i.contain(t,e))?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],p=n[c++];a=Math.min(h,a),l=Math.max(h,l),s=Math.min(p,s),u=Math.max(p,u)}t=this._rect=new ns(a-r/2,s-o/2,l-a+r,u-s+o)}return t},e}(av),vI=function(){function t(){this.group=new rb}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(t){if(null!=t.startIndex){var n=(t.endIndex-t.startIndex)*2,i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e),t.reset()})},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],r=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),i.endIndex=t.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new vM({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.softClipShape=n.clipShape||null,t.symbolProxy=dd(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=aZ(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),vT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=ys("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new vI:new gH,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(pm),vC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(lX),vA=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),vL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",r8).models[0]},e.type="cartesian2dAxis",e}(lX);tF(vL,vA);var vD={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},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},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},vk=tN({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},vD),vP=tN({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},vD),vO=tN({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},vP),vR=tB({logBase:10},vP);let vN={category:vk,value:vP,time:vO,log:vR};var vE=0,vz=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++vE}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&tW(i,vB);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!tQ(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ea(this.categories))},t}();function vB(t){return t0(t)&&null!=t.value?t.value:t+""}var vV={value:1,category:1,time:1,log:1};function vF(t,e,n,i){tj(vV,function(r,o){var a=tN(tN({},vN[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return tf(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=lG(this),i=n?lW(t):{};tN(t,e.getTheme().get(o+"Axis")),tN(t,this.getDefaultOption()),t.type=vG(t),n&&lj(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=vz.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",vG)}function vG(t){return t.type||(t.data?"category":"value")}var vj=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();function vW(t){return"interval"===t.type||"log"===t.type}function vH(t){var e=Math.pow(10,rE(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,rA(n*e)}oh(vj);function vZ(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function vX(t,e){return t>=e[0]&&t<=e[1]}function vU(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function vY(t,e){return t*(e[1]-e[0])+e[0]}var vq=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new vz({})),tq(i)&&(i=new vz({categories:tW(i,function(t){return t0(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return tf(e,t),e.prototype.parse=function(t){return null==t?NaN:tQ(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return vX(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return vU(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(vY(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null==t){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(vj);vj.registerClass(vq);var vK=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return tf(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return vX(t,this._extent)},e.prototype.normalize=function(t){return vU(t,this._extent)},e.prototype.scale=function(t){return vY(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=rD(t)+2},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]<i[0]&&(t?o.push({value:rA(i[0]-e,r)}):o.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=rA(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(t?o.push({value:rA(s+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],u=(o.value-a.value)/t;s<t-1;){var c=rA(a.value+(s+1)*u);c>i[0]&&c<i[1]&&l.push(c),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=rD(t.value)||0:"auto"===n&&(n=this._intervalPrecision),lA(rA(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o,a,s,l,u,c,h=(s=t,u=(l={}).interval=rz((i[1]-i[0])/s,!0),null!=e&&u<e&&(u=l.interval=e),null!=n&&u>n&&(u=l.interval=n),c=l.intervalPrecision=rD(u)+2,o=l.niceTickExtent=[rA(Math.ceil(i[0]/u)*u,c),rA(Math.floor(i[1]/u)*u,c)],a=i,isFinite(o[0])||(o[0]=a[0]),isFinite(o[1])||(o[1]=a[1]),vZ(o,0,a),vZ(o,1,a),o[0]>o[1]&&(o[0]=o[1]),l);this._intervalPrecision=h.intervalPrecision,this._interval=h.interval,this._niceExtent=h.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;isFinite(e[1]-e[0])||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=rA(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=rA(Math.ceil(e[1]/i)*i))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(vj);vj.registerClass(vK);var vQ=function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n},v$=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return tf(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return lp(t.value,ls[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(lh(this._minLevelUnit))]||ls.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return function(t,e,n,i,r){var o=null;if(tQ(n))o=n;else if(tK(n))o=n(t.value,e,{level:t.level});else{var a=tz({},lo);if(t.level>0)for(var s=0;s<ll.length;++s)a[ll[s]]="{primary|"+a[ll[s]]+"}";var l=n?!1===n.inherit?n:tB(n,a):a,u=ld(t.value,r);if(l[u])o=l[u];else if(l.inherit){for(var c=lu.indexOf(u),s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(tq(o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;h=Math.min(h,o.length-1),o=o[h]}}return lp(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=function(t,e,n,i){for(var r=0,o=[],a=[],s=0,l=0,u=0;u<lu.length&&r++<1e4;++u){var c,h=lh(lu[u]);if((c=lu[u])===lh(c)&&(!function(t,r,o){var a=[],s=!r.length;if(!function(t,e,n,i){var r=rN(e),o=rN(n),a=function(t){return lf(r,t,i)===lf(o,t,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},p=function(){return h()&&a("second")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return p();case"millisecond":return p()&&a("millisecond")}}(lh(t),i[0],i[1],n)){s&&(r=[{value:function(t,e,n){var i=new Date(t);switch(lh(e)){case"year":case"month":i[lw(n)](0);case"day":i[lS(n)](1);case"hour":i[lM(n)](0);case"minute":i[lI(n)](0);case"second":i[lT(n)](0),i[lC(n)](0)}return i.getTime()}(new Date(i[0]),t,n)},{value:i[1]}]);for(var l=0;l<r.length-1;l++){var u=r[l].value,c=r[l+1].value;if(u!==c){var h,p,d,f=void 0,g=void 0,y=void 0;switch(t){case"year":f=Math.max(1,Math.round(e/864e5/365)),g=lg(n),y=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":f=(h=e/2592e6)>6?6:h>3?3:h>2?2:1,g=ly(n),y=lw(n);break;case"week":case"half-week":case"day":f=(p=e/864e5)>16?16:p>7.5?7:p>3.5?4:p>1.5?2:1,g=lv(n),y=lS(n);break;case"half-day":case"quarter-day":case"hour":f=(d=e/36e5)>12?12:d>6?6:d>3.5?4:d>2?2:1,g=lm(n),y=lM(n);break;case"minute":f=v0(e,!0),g=lx(n),y=lI(n);break;case"second":f=v0(e,!1),g=l_(n),y=lT(n);break;case"millisecond":f=rz(e,!0),g=lb(n),y=lC(n)}!function(t,e,n,r,o,a){for(var s=new Date(e),l=e,u=s[r]();l<n&&l<=i[1];)a.push({value:l}),u+=t,s[o](u),l=s.getTime();a.push({value:l,notAdd:!0})}(f,u,c,g,y,a),"year"===t&&o.length>1&&0===l&&o.unshift({value:o[0].value-f})}}for(var l=0;l<a.length;l++)o.push(a[l])}}(lu[u],o[o.length-1]||[],a),h!==(lu[u+1]?lh(lu[u+1]):null))){if(a.length){l=s,a.sort(function(t,e){return t.value-e.value});for(var p=[],d=0;d<a.length;++d){var f=a[d].value;(0===d||a[d-1].value!==f)&&(p.push(a[d]),f>=i[0]&&f<=i[1]&&s++)}var g=(i[1]-i[0])/e;if(s>1.5*g&&l>g/1.5||(o.push(p),s>g||t===lu[u]))break}a=[]}}for(var y=tZ(tW(o,function(t){return tZ(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),v=[],m=y.length-1,u=0;u<y.length;++u)for(var x=y[u],_=0;_<x.length;++_)v.push({value:x[_].value,level:m-u});v.sort(function(t,e){return t.value-e.value});for(var b=[],u=0;u<v.length;++u)(0===u||v[u].value!==v[u-1].value)&&b.push(v[u]);return b}(this._minLevelUnit,this._approxInterval,i,e);return(n=n.concat(r)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=864e5,e[1]+=864e5),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-864e5}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=vJ.length,a=Math.min(vQ(vJ,this._approxInterval,0,o),o-1);this._interval=vJ[a][1],this._minLevelUnit=vJ[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return tJ(t)?t:+rN(t)},e.prototype.contain=function(t){return vX(this.parse(t),this._extent)},e.prototype.normalize=function(t){return vU(this.parse(t),this._extent)},e.prototype.scale=function(t){return vY(t,this._extent)},e.type="time",e}(vK),vJ=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",15768e6],["year",31536e6]];function v0(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}vj.registerClass(v$);var v1=vj.prototype,v2=vK.prototype,v5=Math.floor,v3=Math.ceil,v4=Math.pow,v6=Math.log,v8=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new vK,e._interval=0,e}return tf(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return tW(v2.getTicks.call(this,t),function(t){var e=t.value,r=rA(v4(this.base,e));return r=e===n[0]&&this._fixMin?rA(r,rD(i[0])):r,{value:r=e===n[1]&&this._fixMax?rA(r,rD(i[1])):r}},this)},e.prototype.setExtent=function(t,e){var n=v6(this.base);t=v6(Math.max(0,t))/n,e=v6(Math.max(0,e))/n,v2.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t,e,n=this.base,i=v1.getExtent.call(this);i[0]=v4(n,i[0]),i[1]=v4(n,i[1]);var r=this._originalScale.getExtent();return this._fixMin&&(i[0]=(t=i[0],rA(t,rD(r[0])))),this._fixMax&&(i[1]=(e=i[1],rA(e,rD(r[1])))),i},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=v6(t[0])/v6(e),t[1]=v6(t[1])/v6(e),v1.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(n!==1/0&&!(n<=0)){var i=Math.pow(10,rE(n));for(t/n*i<=.5&&(i*=10);!isNaN(i)&&1>Math.abs(i)&&Math.abs(i)>0;)i*=10;var r=[rA(v3(e[0]/i)*i),rA(v5(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},e.prototype.calcNiceExtent=function(t){v2.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return vX(t=v6(t)/v6(this.base),this._extent)},e.prototype.normalize=function(t){return vU(t=v6(t)/v6(this.base),this._extent)},e.prototype.scale=function(t){return t=vY(t,this._extent),v4(this.base,t)},e.type="log",e}(vj),v9=v8.prototype;v9.getMinorTicks=v2.getMinorTicks,v9.getLabel=v2.getLabel,vj.registerClass(v8);var v7=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var r=e.get("min",!0);null==r&&(r=e.get("startValue",!0));var o=this._modelMinRaw=r;tK(o)?this._modelMinNum=mi(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=mi(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(tK(a)?this._modelMaxNum=mi(t,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=mi(t,a)),i)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=tq(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[rh(l[0],1),rh(l[1],1)]}},t.prototype.calculate=function(){var t,e,n=this._isOrdinal,i=this._dataMin,r=this._dataMax,o=this._axisDataLen,a=this._boundaryGapInner,s=n?null:r-i||Math.abs(i),l="dataMin"===this._modelMinRaw?i:this._modelMinNum,u="dataMax"===this._modelMaxRaw?r:this._modelMaxNum,c=null!=l,h=null!=u;null==l&&(l=n?o?0:NaN:i-a[0]*s),null==u&&(u=n?o?o-1:NaN:r+a[1]*s),null!=l&&isFinite(l)||(l=NaN),null!=u&&isFinite(u)||(u=NaN);var p=(t=l)!=t||(e=u)!=e||n&&!o;this._needCrossZero&&(l>0&&u>0&&!c&&(l=0),l<0&&u<0&&!h&&(u=0));var d=this._determinedMin,f=this._determinedMax;return null!=d&&(l=d,c=!0),null!=f&&(u=f,h=!0),{min:l,max:u,minFixed:c,maxFixed:h,isBlank:p}},t.prototype.modifyDataMinMax=function(t,e){this[me[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[mt[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),mt={min:"_determinedMin",max:"_determinedMax"},me={min:"_dataMin",max:"_dataMax"};function mn(t,e,n){var i=t.rawExtentInfo;return i||(i=new v7(t,e,n),t.rawExtentInfo=i),i}function mi(t,e){return null==e?null:e!=e?NaN:t.parse(e)}function mr(t,e){var n=t.type,i=mn(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=yf("bar",a),l=!1;if(tj(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=function(t,e,n,i){var r=n.axis.getExtent(),o=Math.abs(r[1]-r[0]),a=function(t,e){if(t&&e)return t[yd(e)]}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;tj(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;tj(a,function(t){l=Math.max(t.offset+t.width,l)});var u=(s=Math.abs(s))+(l=Math.abs(l)),c=e-t,h=c/(1-(s+l)/o)-c;return e+=l/u*h,{min:t-=s/u*h,max:e}}(r,o,e,yg(s));r=u.min,o=u.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function mo(t,e){var n=mr(t,e),i=n.extent,r=e.get("splitNumber");t instanceof v8&&(t.base=e.get("logBase"));var o=t.type,a=e.get("interval"),s="interval"===o||"time"===o;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:s?e.get("minInterval"):null,maxInterval:s?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function ma(t,e){if(e=e||t.get("type"))switch(e){case"category":return new vq({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new v$({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(vj.getClass(e)||vK)}}function ms(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(n,i){return t.scale.getFormattedLabel(n,i,e)}:tQ(e)?function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}:tK(e)?function(i,r){return null!=n&&(r=i.value-n),e(ml(t,i),r,null!=i.level?{level:i.level}:null)}:function(e){return t.scale.getLabel(e)}}function ml(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function mu(t){var e=t.get("interval");return null==e?"auto":e}function mc(t){return"category"===t.type&&0===mu(t.getLabelModel())}function mh(t,e){var n={};return tj(t.mapDimensionsAll(e),function(e){n[gR(t,e)]=!0}),tX(n)}var mp=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return tW(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),tZ(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),md=["x","y"];function mf(t){return"interval"===t.type||"time"===t.type}var mg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=md,e}return tf(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(mf(t)&&mf(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,p=this._transform=[l,0,0,u,c,h];this._invTransform=e8([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new ns(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return eI(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return eI(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-i+t,a=Math.max(n[0],n[1])-r+t;return new ns(i,r,o,a)},e}(mp),my=r5();function mv(t,e){var n=tW(e,function(e){return t.scale.parse(e)});return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function mm(t,e){var n,i,r,o,a=mx(t,"labels"),s=mu(e),l=m_(a,s);return l||(tK(s)?r=mS(t,s):(o="auto"===s?null!=(i=my(n=t).autoInterval)?i:my(n).autoInterval=n.calculateCategoryInterval():s,r=mw(t,o)),mb(a,s,{labels:r,labelCategoryInterval:o}))}function mx(t,e){return my(t)[e]||(my(t)[e]=[])}function m_(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function mb(t,e,n){return t.push({key:e,value:n}),n}function mw(t,e,n){var i=ms(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=mc(t),p=a.get("showMinLabel")||h,d=a.get("showMaxLabel")||h;p&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return d&&f-l!==o[1]&&g(o[1]),s}function mS(t,e,n){var i=t.scale,r=ms(t),o=[];return tj(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}var mM=[0,1],mI=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return rk(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&mT(n=n.slice(),i.count()),rT(t,mM,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&mT(n=n.slice(),i.count());var r=rT(t,n,mM,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=function(t,e){var n=t.getTickModel().get("customValues");if(n){var i=t.scale.getExtent();return{ticks:tZ(mv(t,n),function(t){return t>=i[0]&&t<=i[1]})}}return"category"===t.type?function(t,e){var n,i,r=mx(t,"ticks"),o=mu(e),a=m_(r,o);if(a)return a;if((!e.get("show")||t.scale.isBlank())&&(n=[]),tK(o))n=mS(t,o,!0);else if("auto"===o){var s=mm(t,t.getLabelModel());i=s.labelCategoryInterval,n=tW(s.labels,function(t){return t.tickValue})}else n=mw(t,i=o,!0);return mb(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:tW(t.scale.getTicks(),function(t){return t.value})}}(this,e).ticks,i=tW(n,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,i){var r,o,a=e.length;if(t.onBand&&!n&&a){var s=t.getExtent();if(1===a)e[0].coord=s[0],r=e[1]={coord:s[1],tickValue:e[0].tickValue};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;tj(e,function(t){t.coord-=u/2});var c=t.scale.getExtent();o=1+c[1]-e[a-1].tickValue,r={coord:e[a-1].coord+u*o,tickValue:c[1]+1},e.push(r)}var h=s[0]>s[1];p(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift()),i&&p(s[0],e[0].coord)&&e.unshift({coord:s[0]}),p(s[1],r.coord)&&(i?r.coord=s[1]:e.pop()),i&&p(r.coord,s[1])&&e.push({coord:s[1]})}function p(t,e){return t=rA(t),e=rA(e),h?t>e:t<e}}(this,i,e.get("alignWithLabel"),t.clamp),i},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),tW(this.scale.getMinorTicks(t),function(t){return tW(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(){return function(t){var e,n,i,r,o,a,s=t.getLabelModel().get("customValues");if(s){var l=ms(t),u=t.scale.getExtent();return{labels:tW(tZ(mv(t,s),function(t){return t>=u[0]&&t<=u[1]}),function(e){var n={value:e};return{formattedLabel:l(n),rawLabel:t.scale.getLabel(n),tickValue:e}})}}return"category"===t.type?(n=(e=t).getLabelModel(),i=mm(e,n),!n.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i):(o=(r=t).scale.getTicks(),a=ms(r),{labels:tW(o,function(t,e){return{level:t.level,formattedLabel:a(t,e),rawLabel:r.scale.getLabel(t),tickValue:t.value}})})}(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+ +!!this.onBand;return 0===n&&(n=1),Math.abs(Math.abs(t[1]-t[0]))/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e,n,i=(n=(e=t).getLabelModel(),{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:n.get("rotate")||0,font:n.getFont()}),r=ms(t),o=(i.axisRotate-i.labelRotate)/180*Math.PI,a=t.scale,s=a.getExtent(),l=a.count();if(s[1]-s[0]<1)return 0;var u=1;l>40&&(u=Math.max(1,Math.floor(l/40)));for(var c=s[0],h=t.dataToCoord(c+1)-t.dataToCoord(c),p=Math.abs(h*Math.cos(o)),d=Math.abs(h*Math.sin(o)),f=0,g=0;c<=s[1];c+=u){var y=0,v=0,m=rs(r({value:c}),i.font,"center","top");y=1.3*m.width,v=1.3*m.height,f=Math.max(f,y,7),g=Math.max(g,v,7)}var x=f/p,_=g/d;isNaN(x)&&(x=1/0),isNaN(_)&&(_=1/0);var b=Math.max(0,Math.floor(Math.min(x,_))),w=my(t.model),S=t.getExtent(),M=w.lastAutoInterval,I=w.lastTickCount;return null!=M&&null!=I&&1>=Math.abs(M-b)&&1>=Math.abs(I-l)&&M>b&&w.axisExtent0===S[0]&&w.axisExtent1===S[1]?b=M:(w.lastTickCount=l,w.lastAutoInterval=b,w.axisExtent0=S[0],w.axisExtent1=S[1]),b}(this)},t}();function mT(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var mC=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return tf(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t[+("x"!==this.dim)]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(mI);function mA(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,f="x"===u?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[p[l]]:h[0],"x"===u?f[p[l]]:h[3]],o.rotation=Math.PI/2*("x"!==u),o.labelDirection=o.tickDirection=o.nameDirection=({top:-1,bottom:1,left:-1,right:1})[s],o.labelOffset=a?f[p[s]]-f[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),t4(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function mL(t){return"cartesian2d"===t.get("coordinateSystem")}function mD(t){var e={xAxisModel:null,yAxisModel:null};return tj(e,function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,r8).models[0];e[i]=o}),e}var mk=Math.log;function mP(t,e,n){var i=vK.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=mr(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var p=mk(t.base);u=[mk(u[0])/p,mk(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=i.getExtent.call(t);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var f=i.getInterval.call(t),g=u[0],y=u[1];if(c&&h)f=(y-g)/a;else if(c)for(y=u[0]+f*a;y<u[1]&&isFinite(y)&&isFinite(u[1]);)f=vH(f),y=u[0]+f*a;else if(h)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=vH(f),g=u[1]-f*a;else{t.getTicks().length-1>a&&(f=vH(f));var v=f*a;(g=rA((y=Math.ceil(u[1]/f)*f)-v))<0&&u[0]>=0?(g=0,y=rA(v)):y>0&&u[1]<=0&&(y=0,g=-rA(v))}var m=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*m,y+f*x),i.setInterval.call(t,f),(m||x)&&i.setNiceExtent.call(t,g+f,y-f)}var mO=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=md,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=tX(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;vW(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(mo(l,s),vW(l)&&(e=a))}r.length&&(e||mo((e=r.pop()).scale,e.model),tj(r,function(t){mP(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};tj(n.x,function(t){mN(n,"y",t,r)}),tj(n.y,function(t){mN(n,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=lV(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){tj(a,function(t){var e,n,i,r,a=t.isHorizontal(),s=a?[0,o.width]:[0,o.height],l=+!!t.inverse;t.setExtent(s[l],s[1-l]),e=t,n=a?o.x:o.y,r=(i=e.getExtent())[0]+i[1],e.toGlobalCoord="x"===e.dim?function(t){return t+n}:function(t){return r-t+n},e.toLocalCoord="x"===e.dim?function(t){return t-n}:function(t){return r-t+n}})}s(),r&&(tj(a,function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e,n,i,r=t.model,o=t.scale;if(!(!r.get(["axisLabel","show"])||o.isBlank())){var a=o.getExtent();n=o instanceof vq?o.count():(e=o.getTicks()).length;var s=t.getLabelModel(),l=ms(t),u=1;n>40&&(u=Math.ceil(n/40));for(var c=0;c<n;c+=u){var h=l(e?e[c]:{value:a[0]+c},c),p=function(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new ns(t.x,t.y,o,a)}(s.getTextRect(h),s.get("rotate")||0);i?i.union(p):i=p}return i}}(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i)}}}),s()),tj(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}t0(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",r8).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",r8).models[0],a=t.gridModel,s=this._coordsList;return i?0>tV(s,e=i.coordinateSystem)&&(e=null):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?n=this.getAxis("x",r.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}function l(e){return function(n,i){if(mR(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new mC(e,ma(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}this._axesMap=a,tj(a.x,function(e,n){tj(a.y,function(r,o){var a="x"+n+"y"+o,s=new mg(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)})})},t.prototype._updateScale=function(t,e){function n(t,e){tj(mh(t,e.dim),function(n){e.scale.unionExtentFromData(t,n)})}tj(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if(mL(t)){var i=mD(t),r=i.xAxisModel,o=i.yAxisModel;if(mR(r,e)&&mR(o,e)){var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}},this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return tj(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);0>tV(e,r)&&e.push(r),0>tV(n,o)&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)}),e.eachSeries(function(t){if(mL(t)){var e=mD(t),n=e.xAxisModel,i=e.yAxisModel;t.coordinateSystem=n.getCoordSysModel().coordinateSystem.getCartesian(n.componentIndex,i.componentIndex)}}),i},t.dimensions=md,t}();function mR(t,e){return t.getCoordSysModel()===e}function mN(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)mE(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&mE(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function mE(t){var e,n,i;return t&&"category"!==t.type&&"time"!==t.type&&(n=(e=t.scale.getExtent())[0],i=e[1],!(n>0&&i>0||n<0&&i<0))}var mz=Math.PI,mB=function(){function t(t,e){this.group=new rb,this.opt=e,this.axisModel=t,tB(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new rb({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!mV[t]},t.prototype.add=function(t){mV[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=rP(e-t);return rO(o)?(r=n>0?"top":"bottom",i="center"):rO(o-mz)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<mz?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),mV={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(eI(s,s,a),eI(l,l,a));var c=tz({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new hR({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});pe(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var p=e.get(["axisLine","symbol"]);if(null!=p){var d=e.get(["axisLine","symbolSize"]);tQ(p)&&(p=[p,p]),(tQ(d)||tJ(d))&&(d=[d,d]);var f=dg(e.get(["axisLine","symbolOffset"])||0,d),g=d[0],y=d[1];tj([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(e,i){if("none"!==p[i]&&null!=p[i]){var r=dd(p[i],-g/2,-y/2,g,y,c.stroke,!0),o=e.r+e.offset,a=u?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),!(!a||r.scale.isBlank())){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=mW(r.getTicksCoords(),e.transform,l,tB(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)t.add(u[c]);return u}}(n,i,e,t),o=function(t,e,n,i){var r=n.axis;if(!(!t4(i.axisLabelShow,n.get(["axisLabel","show"]))||r.scale.isBlank())){var o=n.getModel("axisLabel"),a=o.get("margin"),s=r.getViewLabels(),l=(t4(i.labelRotate,o.get("rotate"))||0)*mz/180,u=mB.innerTextLayout(i.rotation,l,i.labelDirection),c=n.getCategories&&n.getCategories(!0),h=[],p=mB.isLabelSilent(n),d=n.get("triggerEvent");return tj(s,function(l,f){var g="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(l.tickValue):l.tickValue,y=l.formattedLabel,v=l.rawLabel,m=o;if(c&&c[g]){var x=c[g];t0(x)&&x.textStyle&&(m=new s8(x.textStyle,o,n.ecModel))}var _=m.getTextColor()||n.get(["axisLine","lineStyle","color"]),b=r.dataToCoord(g),w=m.getShallow("align",!0)||u.textAlign,S=t6(m.getShallow("alignMinLabel",!0),w),M=t6(m.getShallow("alignMaxLabel",!0),w),I=m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||u.textVerticalAlign,T=t6(m.getShallow("verticalAlignMinLabel",!0),I),C=t6(m.getShallow("verticalAlignMaxLabel",!0),I),A=new aP({x:b,y:i.labelOffset+i.labelDirection*a,rotation:u.rotation,silent:p,z2:10+(l.level||0),style:sG(m,{text:y,align:0===f?S:f===s.length-1?M:w,verticalAlign:0===f?T:f===s.length-1?C:I,fill:tK(_)?_("category"===r.type?v:"value"===r.type?g+"":g,f):_})});if(A.anid="label_"+g,pd({el:A,componentModel:n,itemName:y,formatterParamsExtra:{isTruncated:function(){return A.isTruncated},value:v,tickIndex:f}}),d){var L=mB.makeAxisEventDataBase(n);L.targetType="axisLabel",L.value=v,L.tickIndex=f,"category"===r.type&&(L.dataIndex=g),aZ(A).eventData=L}e.add(A),A.updateTransform(),h.push(A),t.add(A),A.decomposeTransform()}),h}}(n,i,e,t);(function(t,e,n){if(!mc(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);n=n||[];var o=(e=e||[])[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],p=n[n.length-2];!1===i?(mF(o),mF(u)):mG(o,a)&&(i?(mF(a),mF(c)):(mF(o),mF(u))),!1===r?(mF(s),mF(h)):mG(l,s)&&(r?(mF(l),mF(p)):(mF(s),mF(h)))}})(e,o,r),function(t,e,n,i){var r=n.axis,o=n.getModel("minorTick");if(!(!o.get("show")||r.scale.isBlank())){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=i*o.get("length"),u=tB(s.getLineStyle(),tB(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=mW(a[c],e.transform,l,u,"minorticks_"+c),p=0;p<h.length;p++)t.add(h[p])}}(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])&&vh(vl(tW(o,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,n,i){var r,o,a=t4(t.axisName,e.get("name"));if(a){var s,l,u,c,h,p,d,f,g,y=e.get("nameLocation"),v=t.nameDirection,m=e.getModel("nameTextStyle"),x=e.get("nameGap")||0,_=e.axis.getExtent(),b=_[0]>_[1]?-1:1,w=["start"===y?_[0]-b*x:"end"===y?_[1]+b*x:(_[0]+_[1])/2,mj(y)?t.labelOffset+v*x:0],S=e.get("nameRotate");null!=S&&(S=S*mz/180),mj(y)?r=mB.innerTextLayout(t.rotation,null!=S?S:t.rotation,v):(s=t.rotation,l=y,u=S||0,c=_,d=rP(u-s),f=c[0]>c[1],g="start"===l&&!f||"start"!==l&&f,rO(d-mz/2)?(p=g?"bottom":"top",h="center"):rO(d-1.5*mz)?(p=g?"top":"bottom",h="center"):(p="middle",h=d<1.5*mz&&d>mz/2?g?"left":"right":g?"right":"left"),r={rotation:d,textAlign:h,textVerticalAlign:p},null!=(o=t.axisNameAvailableWidth)&&(isFinite(o=Math.abs(o/Math.sin(r.rotation)))||(o=null)));var M=m.getFont(),I=e.get("nameTruncate",!0)||{},T=I.ellipsis,C=t4(t.nameTruncateMaxWidth,I.maxWidth,o),A=new aP({x:w[0],y:w[1],rotation:r.rotation,silent:mB.isLabelSilent(e),style:sG(m,{text:a,font:M,overflow:"truncate",width:C,ellipsis:T,fill:m.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:m.get("align")||r.textAlign,verticalAlign:m.get("verticalAlign")||r.textVerticalAlign}),z2:1});if(pd({el:A,componentModel:e,itemName:a}),A.__fullText=a,A.anid="name",e.get("triggerEvent")){var L=mB.makeAxisEventDataBase(e);L.targetType="axisName",L.name=a,aZ(A).eventData=L}i.add(A),A.updateTransform(),n.add(A),A.decomposeTransform()}}};function mF(t){t&&(t.ignore=!0)}function mG(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=e1([]);return e4(r,r,-t.rotation),n.applyTransform(e5([],r,t.getLocalTransform())),i.applyTransform(e5([],r,e.getLocalTransform())),n.intersect(i)}}function mj(t){return"middle"===t||"center"===t}function mW(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(eI(a,a,e),eI(s,s,e));var c=new hR({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});pe(c.shape,c.style.lineWidth),c.anid=r+"_"+t[l].tickValue,o.push(c)}return o}function mH(t,e){return"all"===t||tq(t)&&tV(t,e)>=0||t===e}function mZ(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[mU(t)]}function mX(t){return!!t.get(["handle","show"])}function mU(t){return t.type+"||"+t.id}var mY={},mq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=mZ(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=mX(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o,a=(o=mZ(t))&&o.axisPointerModel;a?(this._axisPointer||(this._axisPointer=new r)).render(t,a,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){mY[t]=e},e.getAxisPointerClass=function(t){return t&&mY[t]},e.type="axis",e}(cQ),mK=r5();function mQ(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,h=mK(t).splitAreaColors,p=ea(),d=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(null!=g){d=(g+(c-1)*f)%c;break}}var y=r.toGlobalCoord(u[0].coord),v=a.getAreaStyle();s=tq(s)?s:[s];for(var f=1;f<u.length;f++){var m=r.toGlobalCoord(u[f].coord),x=void 0,_=void 0,b=void 0,w=void 0;r.isHorizontal()?(x=y,_=l.y,b=m-x,w=l.height,y=x+b):(x=l.x,_=y,b=l.width,w=m-_,y=_+w);var S=u[f-1].tickValue;null!=S&&p.set(S,d),e.add(new aL({anid:null!=S?"area_"+S:null,shape:{x:x,y:_,width:b,height:w},style:tB({fill:s[d]},v),autoBatch:!0,silent:!0})),d=(d+1)%c}mK(t).splitAreaColors=p}}}function m$(t){mK(t).splitAreaColors=null}var mJ=["axisLine","axisTickLabel","axisName"],m0=["splitArea","splitLine","minorSplitLine"],m1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return tf(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new rb,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=mA(a,e),l=new mB(e,tz({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(vW(n[i].getOtherAxis(e.axis).scale))return!0;return!1}},s));tj(mJ,l.add,l),this._axisGroup.add(l.getGroup()),tj(m0,function(t){e.get([t,"show"])&&m2[t](this,this._axisGroup,e,a)},this),r&&"changeAxisOrder"===r.type&&r.isInitSort||ps(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},e.prototype.remove=function(){m$(this)},e.type="cartesianAxis",e}(mq),m2={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color"),l=!1!==o.get("showMinLine"),u=!1!==o.get("showMaxLine");s=tq(s)?s:[s];for(var c=i.coordinateSystem.getRect(),h=r.isHorizontal(),p=0,d=r.getTicksCoords({tickModel:o}),f=[],g=[],y=a.getLineStyle(),v=0;v<d.length;v++){var m=r.toGlobalCoord(d[v].coord);if((0!==v||l)&&(v!==d.length-1||u)){var x=d[v].tickValue;h?(f[0]=m,f[1]=c.y,g[0]=m,g[1]=c.y+c.height):(f[0]=c.x,f[1]=m,g[0]=c.x+c.width,g[1]=m);var _=p++%s.length,b=new hR({anid:null!=x?"line_"+x:null,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},style:tB({stroke:s[_]},y),silent:!0});pe(b.shape,y.lineWidth),e.add(b)}}}},minorSplitLine:function(t,e,n,i){var r=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=r.isHorizontal(),l=r.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=o.getLineStyle(),p=0;p<l.length;p++)for(var d=0;d<l[p].length;d++){var f=r.toGlobalCoord(l[p][d].coord);s?(u[0]=f,u[1]=a.y,c[0]=f,c[1]=a.y+a.height):(u[0]=a.x,u[1]=f,c[0]=a.x+a.width,c[1]=f);var g=new hR({anid:"minor_line_"+l[p][d].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0});pe(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,n,i){mQ(t,e,n,i)}},m5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.type="xAxis",e}(m1),m3=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=m5.type,e}return tf(e,t),e.type="yAxis",e}(m1),m4=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return tf(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new aL({shape:t.coordinateSystem.getRect(),style:tB({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(cQ),m6={offset:0};function m8(t){t.registerComponentView(m4),t.registerComponentModel(vC),t.registerCoordinateSystem("cartesian2d",mO),vF(t,"x",vL,m6),vF(t,"y",vL,m6),t.registerComponentView(m5),t.registerComponentView(m3),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function m9(t){t.eachSeriesByType("radar",function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var r=i.getIndicatorAxes();tj(r,function(t,o){e.each(e.mapDimension(r[o].dim),function(t,e){n[e]=n[e]||[];var r,a=i.dataToPoint(t,o);n[e][o]=m7(a)?a:[(r=i).cx,r.cy]})}),e.each(function(t){var r,o=function(t,e){if(t&&e){for(var n=0,i=t.length;n<i;n++)if(e.call(void 0,t[n],n,t))return t[n]}}(n[t],function(t){return m7(t)})||[(r=i).cx,r.cy];n[t].push(o.slice()),e.setItemLayout(t,n[t])})}})}function m7(t){return!isNaN(t[0])&&!isNaN(t[1])}function xt(t){var e=t.polar;if(e){tq(e)||(e=[e]);var n=[];tj(e,function(e,i){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],tq(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)}),t.polar=n}tj(t.series,function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}t.i(677351),t.s(["Arc",0,hF,"BezierCurve",0,hB,"BoundingRect",0,ns,"Circle",0,hu,"CompoundPath",0,hG,"Ellipse",0,hh,"Group",0,rb,"Image",0,aw,"IncrementalDisplayable",0,hQ,"Line",0,hR,"LinearGradient",0,hW,"OrientedBoundingRect",0,hq,"Path",0,av,"Point",0,e9,"Polygon",0,hL,"Polyline",0,hk,"RadialGradient",0,hH,"Rect",0,aL,"Ring",0,hT,"Sector",0,hM,"Text",0,aP,"applyTransform",0,po,"clipPointsByRect",0,pl,"clipRectByRect",0,pu,"createIcon",0,pc,"extendPath",0,h5,"extendShape",0,h1,"getShapeClass",0,h4,"getTransform",0,pr,"groupTransition",0,ps,"initProps",0,sD,"isElementRemoved",0,sk,"lineLineIntersect",0,pp,"linePolygonIntersect",0,ph,"makeImage",0,h8,"makePath",0,h6,"mergePath",0,h7,"registerShape",0,h3,"removeElement",0,sP,"removeElementWithFadeOut",0,sR,"resizePath",0,pt,"setTooltipConfig",0,pd,"subPixelOptimize",0,pi,"subPixelOptimizeLine",0,pe,"subPixelOptimizeRect",0,pn,"transformDirection",0,pa,"traverseElements",0,pg,"updateProps",0,sL],158811);var xe=t.i(158811),xn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=this._data;function s(e,n,i,r,o,a){i.removeAll();for(var s=0;s<n.length-1;s++){var l=function(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var i=df(t.getItemVisual(e,"symbolSize")),r=dd(n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}(r,o);l&&(l.__dimIdx=s,e[s]?(l.setPosition(e[s]),xe[a?"initProps":"updateProps"](l,{x:n[s][0],y:n[s][1]},t,o)):l.setPosition(n[s]),i.add(l))}}function l(t){return tW(t,function(t){return[i.cx,i.cy]})}o.diff(a).add(function(e){var n=o.getItemLayout(e);if(n){var i=new xe.Polygon,r=new xe.Polyline,a={shape:{points:n}};i.shape.points=l(n),r.shape.points=l(n),xe.initProps(i,a,t,e),xe.initProps(r,a,t,e);var u=new xe.Group,c=new xe.Group;u.add(r),u.add(i),u.add(c),s(r.shape.points,n,c,o,e,!0),o.setItemGraphicEl(e,u)}}).update(function(e,n){var i=a.getItemGraphicEl(n),r=i.childAt(0),l=i.childAt(1),u=i.childAt(2),c={shape:{points:o.getItemLayout(e)}};c.shape.points&&(s(r.shape.points,c.shape.points,u,o,e,!1),sN(l),sN(r),xe.updateProps(r,c,t),xe.updateProps(l,c,t),o.setItemGraphicEl(e,i))}).remove(function(t){r.remove(a.getItemGraphicEl(t))}).execute(),o.eachItemGraphicEl(function(t,e){var n=o.getItemModel(e),i=t.childAt(0),a=t.childAt(1),s=t.childAt(2),l=o.getItemVisual(e,"style"),u=l.fill;r.add(t),i.useStyle(tB(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),sb(i,n,"lineStyle"),sb(a,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=h,tj(["emphasis","select","blur"],function(t){var e=n.getModel([t,"areaStyle"]),i=e.isEmpty()&&e.parentModel.isEmpty();a.ensureState(t).ignore=i&&h}),a.useStyle(tB(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var p=n.getModel("emphasis"),d=p.getModel("itemStyle").getItemStyle();s.eachChild(function(t){if(t instanceof aw){var i=t.style;t.useStyle(tz({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else t.useStyle(l),t.setColor(u),t.style.strokeNoScale=!0;t.ensureState("emphasis").style=tR(d);var r=o.getStore().get(o.getDimensionIndex(t.__dimIdx),e);(null==r||isNaN(r))&&(r=""),sV(t,sF(n),{labelFetcher:o.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:r,inheritColor:u,defaultOpacity:l.opacity})}),sv(t,p.get("focus"),p.get("blurScope"),p.get("disabled"))}),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(pm),xi=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return tf(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new vx(tU(this.getData,this),tU(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return vm(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(t),a=""===o?this.name:o,s=cE(this,t);return cL("section",{header:a,sortBlocks:!0,blocks:tW(r,function(e){var n=i.get(i.mapDimension(e.dim),t);return cL("nameValue",{markerType:"subItem",markerColor:s,name:e.name,value:n,sortParam:n})})})},e.prototype.getTooltipPosition=function(t){if(null!=t){for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(tW(n.dimensions,function(t){return e.mapDimension(t)}),t),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}}},e.type="series.radar",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}(cW),xr=vN.value;function xo(t,e){return tB({show:e},t)}var xa=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),h=tW(this.get("indicator")||[],function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var p=a;null!=h.color&&(p=tB({color:h.color},a));var d=tN(tR(h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:p,triggerEvent:c},!1);if(tQ(l)){var f=d.name;d.name=l.replace("{value}",null!=f?f:"")}else tK(l)&&(d.name=l(d.name,d));var g=new s8(d,null,this.ecModel);return tF(g,vA.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:tN({lineStyle:{color:"#bbb"}},xr.axisLine),axisLabel:xo(xr.axisLabel,!1),axisTick:xo(xr.axisTick,!1),splitLine:xo(xr.splitLine,!0),splitArea:xo(xr.splitArea,!0),indicator:[]},e}(lX),xs=["axisLine","axisTickLabel","axisName"],xl=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem;tj(tW(e.getIndicatorAxes(),function(t){var n=t.model.get("showName")?t.name:"";return new mB(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){tj(xs,t.add,t),this.group.add(t.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),p=tq(c)?c:[c],d=tq(h)?h:[h],f=[],g=[];if("circle"===i)for(var y=n[0].getTicksCoords(),v=e.cx,m=e.cy,x=0;x<y.length;x++){if(l){var _=A(f,p,x);f[_].push(new hu({shape:{cx:v,cy:m,r:y[x].coord}}))}if(u&&x<y.length-1){var _=A(g,d,x);g[_].push(new hT({shape:{cx:v,cy:m,r0:y[x].coord,r:y[x+1].coord}}))}}else for(var b,w=tW(n,function(t,n){var i=t.getTicksCoords();return b=null==b?i.length-1:Math.min(i.length-1,b),tW(i,function(t){return e.coordToPoint(t.coord,n)})}),S=[],x=0;x<=b;x++){for(var M=[],I=0;I<n.length;I++)M.push(w[I][x]);if(M[0]&&M.push(M[0].slice()),l){var _=A(f,p,x);f[_].push(new hk({shape:{points:M}}))}if(u&&S){var _=A(g,d,x-1);g[_].push(new hL({shape:{points:M.concat(S)}}))}S=M.slice().reverse()}var T=a.getLineStyle(),C=s.getAreaStyle();tj(g,function(t,e){this.group.add(h7(t,{style:tB({stroke:"none",fill:d[e%d.length]},C),silent:!0}))},this),tj(f,function(t,e){this.group.add(h7(t,{style:tB({fill:"none",stroke:p[e%p.length]},T),silent:!0}))},this)}function A(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}},e.type="radar",e}(cQ),xu=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return tf(e,t),e}(mI),xc=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=tW(t.getIndicatorModels(),function(t,e){var n="indicator_"+e,i=new xu(n,new vK);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i},this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},t.prototype.pointToData=function(t){var e,n=t[0]-this.cx,i=t[1]-this.cy,r=Math.sqrt(n*n+i*i);n/=r;for(var o=Math.atan2(-(i/=r),n),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(e=u,s=l,a=c)}return[s,+(e&&e.coordToData(r))]},t.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r)/2;this.cx=rC(n[0],i),this.cy=rC(n[1],r),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");(tQ(a)||tJ(a))&&(a=[0,a]),this.r0=rC(a[0],o),this.r=rC(a[1],o),tj(this._indicatorAxes,function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;t.angle=Math.atan2(Math.sin(n),Math.cos(n))},this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;tj(n,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(e,r){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===i){var o=e.getData();tj(n,function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))})}},this);var r=i.get("splitNumber"),o=new vK;o.setExtent(0,r),o.setInterval(1),tj(n,function(t,e){mP(t.scale,t.model,o)})},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},t.dimensions=[],t}();function xh(t){t.registerCoordinateSystem("radar",xc),t.registerComponentModel(xa),t.registerComponentView(xl),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(t){e.setItemVisual(t,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}var xp="\0_ec_interaction_mutex";function xd(t){return t[xp]||(t[xp]={})}fl({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},eh);var xf=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=tU(n._mousedownHandler,n),r=tU(n._mousemoveHandler,n),o=tU(n._mouseupHandler,n),a=tU(n._mousewheelHandler,n),s=tU(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=tB(tR(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),(!0===t||"move"===t||"pan"===t)&&(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",o)),(!0===t||"scale"===t||"zoom"===t)&&(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return tf(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!eK(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!xv("moveOnMouseMove",t,this._opt)||"pinch"===t.gestureEvent||xd(this._zr).globalPan)){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&eq(t.event),xy(this,"pan","moveOnMouseMove",t,{dx:e-i,dy:n-r,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){eK(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=xv("zoomOnMouseWheel",t,this._opt),n=xv("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;xg(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);xg(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!xd(this._zr).globalPan){var e=t.pinchScale>1?1.1:1/1.1;xg(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(eD);function xg(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(eq(i.event),xy(t,e,n,i,r))}function xy(t,e,n,i,r){r.isAvailableBehavior=tU(xv,null,n,i),t.trigger(e,r)}function xv(t,e,n){var i=n[t];return!t||i&&(!tQ(i)||e.event[i+"Key"])}function xm(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function xx(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0;a=Math.max(Math.min(o.max||1/0,a),s)}var l=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(l-1),r.y-=(i-r.y)*(l-1),r.scaleX*=l,r.scaleY*=l,r.dirty()}var x_={axisPointer:1,tooltip:1,brush:1};function xb(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!x_.hasOwnProperty(i.mainType)&&r&&r.model!==n}function xw(t){tQ(t)&&(t=new DOMParser().parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var xS={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},xM=tX(xS),xI={"alignment-baseline":"textBaseline","stop-color":"stopColor"},xT=tX(xI),xC=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n,i,r=xw(t);this._defsUsePending=[];var o=new rb;this._root=o;var a=[],s=r.getAttribute("viewBox")||"",l=parseFloat(r.getAttribute("width")||e.width),u=parseFloat(r.getAttribute("height")||e.height);isNaN(l)&&(l=null),isNaN(u)&&(u=null),xO(r,o,null,!0,!1);for(var c=r.firstChild;c;)this._parseNode(c,o,a,null,!1,!1),c=c.nextSibling;if(function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i[0].style[i[1]]=t[i[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],s){var h=xz(s);h.length>=4&&(n={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(n&&null!=l&&null!=u&&(i=xj(n,{x:0,y:0,width:l,height:u}),!e.ignoreViewBox)){var p=o;(o=new rb).add(p),p.scaleX=p.scaleY=i.scale,p.x=i.x,p.y=i.y}return e.ignoreRootClip||null==l||null==u||o.setClipPath(new aL({shape:{x:0,y:0,width:l,height:u}})),{root:o,width:l,height:u,viewBoxRect:n,viewBoxTransform:i,named:a}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=ti[s];if(u&&ec(ti,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var p=xA[s];if(p&&ec(xA,s)){var d=p.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=d)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new ax({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});xk(e,n),xO(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":("central"===i||"mathematical"===i)&&(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(ti={g:function(t,e){var n=new rb;return xk(e,n),xO(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new aL;return xk(e,n),xO(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new hu;return xk(e,n),xO(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new hR;return xk(e,n),xO(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new hh;return xk(e,n),xO(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=xP(i));var r=new hL({shape:{points:n||[]},silent:!0});return xk(e,r),xO(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=xP(i));var r=new hk({shape:{points:n||[]},silent:!0});return xk(e,r),xO(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new aw;return xk(e,n),xO(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new rb;return xk(e,a),xO(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new rb;return xk(e,a),xO(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=new hr(ha(t.getAttribute("d")||"",void 0));return xk(e,n),xO(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),xA={lineargradient:function(t){var e=new hW(parseInt(t.getAttribute("x1")||"0",10),parseInt(t.getAttribute("y1")||"0",10),parseInt(t.getAttribute("x2")||"10",10),parseInt(t.getAttribute("y2")||"0",10));return xL(t,e),xD(t,e),e},radialgradient:function(t){var e=new hH(parseInt(t.getAttribute("cx")||"0",10),parseInt(t.getAttribute("cy")||"0",10),parseInt(t.getAttribute("r")||"0",10));return xL(t,e),xD(t,e),e}};function xL(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function xD(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};xG(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function xk(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),tB(e.__inheritedStyle,t.__inheritedStyle))}function xP(t){for(var e=xz(t),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),o=parseFloat(e[i+1]);n.push([r,o])}return n}function xO(t,e,n,i,r){var o=e.__inheritedStyle=e.__inheritedStyle||{},a={};1===t.nodeType&&(function(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(xB,function(t,e,n){return i.push(e,n),""});for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1],l=xz(a);switch(r=r||e0(),s){case"translate":e3(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":e6(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":e4(r,r,-parseFloat(l[0])*xV,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":e5(r,[1,0,Math.tan(parseFloat(l[0])*xV),1,0,0],r);break;case"skewY":e5(r,[1,Math.tan(parseFloat(l[0])*xV),0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}(t,e),xG(t,o,a),i||function(t,e,n){for(var i=0;i<xM.length;i++){var r=xM[i],o=t.getAttribute(r);null!=o&&(e[xS[r]]=o)}for(var i=0;i<xT.length;i++){var r=xT[i],o=t.getAttribute(r);null!=o&&(n[xI[r]]=o)}}(t,o,a)),e.style=e.style||{},null!=o.fill&&(e.style.fill=xN(e,"fill",o.fill,n)),null!=o.stroke&&(e.style.stroke=xN(e,"stroke",o.stroke,n)),tj(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){null!=o[t]&&(e.style[t]=parseFloat(o[t]))}),tj(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(t){null!=o[t]&&(e.style[t]=o[t])}),r&&(e.__selfStyle=a),o.lineDash&&(e.style.lineDash=tW(xz(o.lineDash),function(t){return parseFloat(t)})),("hidden"===o.visibility||"collapse"===o.visibility)&&(e.invisible=!0),"none"===o.display&&(e.ignore=!0)}var xR=/^url\(\s*#(.*?)\)/;function xN(t,e,n,i){var r=n&&n.match(xR);if(r){var o=ee(r[1]);i.push([t,e,o]);return}return"none"===n&&(n=null),n}var xE=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function xz(t){return t.match(xE)||[]}var xB=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,xV=Math.PI/180,xF=/([^\s:;]+)\s*:\s*([^:;]+)/g;function xG(t,e,n){var i,r=t.getAttribute("style");if(r)for(xF.lastIndex=0;null!=(i=xF.exec(r));){var o=i[1],a=ec(xS,o)?xS[o]:null;a&&(e[a]=i[2]);var s=ec(xI,o)?xI[o]:null;s&&(n[s]=i[2])}}function xj(t,e){var n=Math.min(e.width/t.width,e.height/t.height);return{scale:n,x:-(t.x+t.width/2)*n+(e.x+e.width/2),y:-(t.y+t.height/2)*n+(e.y+e.height/2)}}function xW(t,e){return 1e-8>Math.abs(t-e)}function xH(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];i+=al(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return xW(r[0],s[0])&&xW(r[1],s[1])||(i+=al(r[0],r[1],s[0],s[1],e,n)),0!==i}var xZ=[];function xX(t,e){for(var n=0;n<t.length;n++)eI(t[n],t[n],e)}function xU(t,e,n,i){for(var r=0;r<t.length;r++){var o=t[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(eT(e,e,o),eC(n,n,o))}}var xY=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),xq=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},xK=function(t){this.type="linestring",this.points=t},xQ=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return tf(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],o=r.exterior,a=o&&o.length;a>n&&(t=r,n=a)}if(t)return function(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s<r;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,i+=(a+u)*c,o=l,a=u}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0];return tj(this.geometries,function(e){"polygon"===e.type?xU(e.exterior,n,i,t):tj(e.points,function(e){xU(e,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new ns(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;n:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(xH(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(xH(s[l],t[0],t[1]))continue n;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new ns(t,e,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(xX(c.exterior,s),tj(c.interiors,function(t){xX(t,s)})):tj(c.points,function(t){xX(t,s)})}(r=this._rect).copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(xY),x$=function(t){function e(e,n){var i=t.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return tf(e,t),e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],i=e1(xZ),r=t;r&&!r.isGeoSVGGraphicRoot;)e5(i,r.getLocalTransform(),i),r=r.parent;return e8(i,i),eI(n,n,i),n},e}(xY),xJ=ea(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),x0=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=ea(),this._freedGraphics=[],this._mapName=t,this._parsedXML=xw(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e,n,i,r=(e=t.named,n=[],i=ea(),tj(e,function(t){if(null==t.namedFrom){var e=new x$(t.name,t.el);n.push(e),i.set(t.name,e)}}),{regions:n,regionsMap:i}),o=r.regions,a=r.regionsMap;this._regions=o,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){try{var e;i=(n=t&&(e={ignoreViewBox:!0,ignoreRootClip:!0},new xC().parse(t,e))||{}).root,et(null!=i)}catch(t){throw Error("Invalid svg format\n"+t.message)}var n,i,r=new rb;r.add(i),r.isGeoSVGGraphicRoot=!0;var o=n.width,a=n.height,s=n.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,h=void 0,p=void 0;if(null!=o?(u=0,h=o):s&&(u=s.x,h=s.width),null!=a?(c=0,p=a):s&&(c=s.y,p=s.height),null==u||null==c){var d=i.getBoundingRect();null==u&&(u=d.x,h=d.width),null==c&&(c=d.y,p=d.height)}l=this._boundingRect=new ns(u,c,h,p)}if(s){var f=xj(s,l);i.scaleX=i.scaleY=f.scale,i.x=f.x,i.y=f.y}r.setClipPath(new aL({shape:l.plain()}));var g=[];return tj(n.named,function(t){var e;null!=xJ.get(t.svgNodeTagLower)&&(g.push(t),(e=t.el).silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1}))}),{root:r,boundingRect:l,named:g}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n)),n},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();function x1(t,e,n){for(var i=0;i<t.length;i++)t[i]=x2(t[i],e[i],n)}function x2(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;l=l>>1^-(1&l),s=(s>>1^-(1&s))+r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}for(var x5=[126,25],x3="南海诸岛",x4=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],x6=0;x6<x4.length;x6++)for(var x8=0;x8<x4[x6].length;x8++)x4[x6][x8][0]/=10.5,x4[x6][x8][1]/=-14,x4[x6][x8][0]+=x5[0],x4[x6][x8][1]+=x5[1];var x9={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]},x7=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]],_t=function(){function t(t,e,n){var i;this.type="geoJSON",this._parsedMap=ea(),this._mapName=t,this._specialAreas=n,this._geoJSON=tQ(i=e)?"u">typeof JSON&&JSON.parse?JSON.parse(i):Function("return ("+i+");")():i}return t.prototype.load=function(t,e){e=e||"name";var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:function(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}(i)})}var r=ea(),o=[];return tj(n.regions,function(e){var n=e.name;t&&ec(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),r.set(n,e)}),{regions:o,boundingRect:n.boundingRect||new ns(0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,n,i=this._mapName,r=this._geoJSON;try{n=r?(e=r,tW(tZ((e=function(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;return null==e&&(e=1024),tj(t.features,function(t){var n=t.geometry,i=n.encodeOffsets,r=n.coordinates;if(i)switch(n.type){case"LineString":n.coordinates=x2(r,i,e);break;case"Polygon":case"MultiLineString":x1(r,i,e);break;case"MultiPolygon":tj(r,function(t,n){return x1(t,i[n],e)})}}),t.UTF8Encoding=!1,t}(e)).features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(e){var n=e.properties,i=e.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new xq(o[0],o.slice(1)));break;case"MultiPolygon":tj(i.coordinates,function(t){t[0]&&r.push(new xq(t[0],t.slice(1)))});break;case"LineString":r.push(new xK([i.coordinates]));break;case"MultiLineString":r.push(new xK(i.coordinates))}var a=new xQ(n[t||"name"],r,n.cp);return a.properties=n,a})):[]}catch(t){throw Error("Invalid geoJson format\n"+t.message)}return!function(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===x3)return;e.push(new xQ(x3,tW(x4,function(t){return{type:"polygon",exterior:t}}),x5))}}(i,n),tj(n,function(t){var e=t.name;if("china"===i){var n=x9[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,t.setCenter(r)}}"china"===i&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:x7[0]});var o=this._specialAreas&&this._specialAreas[e];o&&t.transformTo(o.left,o.top,o.width,o.height)},this),n},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}(),_e=ea();let _n=function(t,e,n){if(e.svg){var i=new x0(t,e.svg);_e.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e;var i=new _t(t,r,n);_e.set(t,i)}},_i=function(t){return _e.get(t)},_r=function(t){var e=_e.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},_o=function(t,e,n){var i=_e.get(t);return i?i.load(e,n):void 0};var _a=["rect","circle","line","ellipse","polygon","polyline","path"],_s=ea(_a),_l=ea(_a.concat(["g"])),_u=ea(_a.concat(["g"])),_c=r5();function _h(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function _p(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var _d=function(){function t(t){var e=new rb;this.uid=s7("ec_map_draw"),this._controller=new xf(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new rb),e.add(this._svgGroup=new rb)}return t.prototype.draw=function(t,e,n,i,r){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(e){a||e.getHostGeoModel()!==t||(a=e.getData())});var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,p=c.roam;!l.childAt(0)||r?(u.x=p.x,u.y=p.y,u.scaleX=p.scaleX,u.scaleY=p.scaleY,u.dirty()):sL(u,p,t);var d=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ea(),n=ea(),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function c(t){return{shape:{points:function(t){for(var e=[],n=!l&&s&&s.project,i=0;i<t.length;++i){var r=u(t[i],n);r&&e.push(r)}return e}(t)}}}i.removeAll(),tj(t.geo.regions,function(r){var h=r.name,p=e.get(h),d=n.get(h)||{},f=d.dataIdx,g=d.regionModel;if(!p){p=e.set(h,new rb),i.add(p),f=a?a.indexOfName(h):null;var y=(g=t.isGeo?o.getRegionModel(h):a?a.getItemModel(f):null).get("silent",!0);null!=y&&(p.silent=y),n.set(h,{dataIdx:f,regionModel:g})}var v=[],m=[];tj(r.geometries,function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=_x(e,l)),tj(e,function(t){v.push(new hL(c(t)))})}else{var n=t.points;l&&(n=_x(n,l,!0)),tj(n,function(t){m.push(new hk(c(t)))})}});var x=u(r.getCenter(),s&&s.project);function _(e,n){if(e.length){var i=new hG({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});p.add(i),_f(t,i,f,g),_g(t,i,h,g,o,f,x),n&&(_p(i),tj(i.states,_p))}}_(v),_(m,!0)}),e.each(function(e,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;_y(t,e,i,s,o,a),_v(t,e,i,s,o),_m(t,e,i,s,o)},this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=ea(),r=!1;tj(this._svgGraphicRecord.named,function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);null!=_s.get(s)&&l instanceof oO&&_f(t,l,u,c),l instanceof oO&&(l.culling=!0);var h=c.get("silent",!0);null!=h&&(l.silent=h),l.z2EmphasisLift=0,e.namedFrom||(null!=_u.get(s)&&_g(t,l,n,c,o,u,null),_y(t,l,n,c,o,u),_v(t,l,n,c,o),null!=_l.get(s)&&("self"===_m(t,l,n,c,o)&&(r=!0),(i.get(n)||i.set(n,[])).push(l)))},this),this._enableBlurEntireSVG(r,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(t){if(!t.isGroup){so(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis")}})}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(t);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=_i(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=_i(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var i=t.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}r.off("pan").on("pan",function(t){this._mouseDownFlag=!1,xm(o,t.dx,t.dy),n.dispatchAction(tz(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))},this),r.off("zoom").on("zoom",function(t){this._mouseDownFlag=!1,xx(o,t.scale,t.originX,t.originY),n.dispatchAction(tz(s(),{totalZoom:o.zoom,zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))},this),r.setPointerChecker(function(e,r,o){return i.containPoint([r,o])&&!xb(e,n,t)})},t.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=_c(e).ignore)})},t.prototype._updateMapSelectHandler=function(t,e,n,i){var r=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){r._mouseDownFlag=!0}),e.on("click",function(t){r._mouseDownFlag&&(r._mouseDownFlag=!1)}))},t}();function _f(t,e,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=_h(r),u=_h(o),c=_h(s),h=_h(a),p=t.data;if(p){var d=p.getItemVisual(n,"style"),f=p.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&d.fill&&(l.fill=d.fill),f&&(l.decal=dF(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,so(e)}function _g(t,e,n,i,r,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?n:o,p=void 0;(!s||o>=0)&&(p=r);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;sV(e,sF(i),{labelFetcher:p,labelDataIndex:h,defaultText:n},d);var f=e.getTextContent();if(f&&(_c(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function _y(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):aZ(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function _v(t,e,n,i,r){t.data||pd({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function _m(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o,a=i.getModel("emphasis"),s=a.get("focus");return sv(e,s,a.get("blurScope"),a.get("disabled")),t.isGeo&&((o=aZ(e)).componentMainType=r.mainType,o.componentIndex=r.componentIndex,o.componentHighDownName=n),s}function _x(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return n||s.polygonStart(),tj(t,function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()}),n||s.polygonEnd(),r}var __=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.render=function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id){var o=this._mapDraw;o&&r.add(o.group)}else if(t.needsDrawMap){var o=this._mapDraw||new _d(n);r.add(o.group),o.draw(t,e,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var i=t.originalData,r=this.group;i.each(i.mapDimension("value"),function(e,n){if(!isNaN(e)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new hu({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+11*!s});if(!s){var u=t.mainSeries.getData(),c=i.getName(n),h=u.indexOfName(c),p=i.getItemModel(n),d=p.getModel("label"),f=u.getItemGraphicEl(h);sV(l,sF(p),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,d.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){si(l,t)}}r.add(l)}}})},e.type="map",e}(pm),_b=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.getCenter())}},n}return tf(e,t),e.prototype.getInitialData=function(t){for(var e=vm(this,{coordDimensions:["value"],encodeDefaulter:tY(l9,this)}),n=ea(),i=[],r=0,o=e.count();r<o;r++){var a=e.getName(r);n.set(a,r)}return tj(_o(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(t){var r,o=t.name,a=n.get(o),s=t.properties&&t.properties.echartsStyle;null==a?(r={name:o},i.push(r)):r=e.getRawDataItem(a),s&&tN(r,s)}),e.appendData(i),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData(),r=this.getRawValue(t),o=i.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=i.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return cL("section",{header:s.join(", "),noHeader:!s.length,blocks:[cL("nameValue",{name:o,value:r})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=dd(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(cW);function _w(t){var e={};t.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)}),tj(e,function(t,e){for(var n,i,r,o=(n=tW(t,function(t){return t.getData()}),i=t[0].get("mapValueCalculation"),r={},tj(n,function(t){t.each(t.mapDimension("value"),function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].push(e)})}),n[0].map(n[0].mapDimension("value"),function(t,e){for(var o,a="ec-"+n[0].getName(e),s=0,l=1/0,u=-1/0,c=r[a].length,h=0;h<c;h++)l=Math.min(l,r[a][h]),u=Math.max(u,r[a][h]),s+=r[a][h];return o="min"===i?l:"max"===i?u:"average"===i?s/c:s,0===c?NaN:o})),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(var a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=0===a&&!t[a].getHostGeoModel(),t[a].setData(o.cloneShallow()),t[a].mainSeries=t[0]})}function _S(t){var e={};t.eachSeriesByType("map",function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!e[i]){var r={};tj(n.seriesGroup,function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each(i.mapDimension("value"),function(t,e){var o=i.getName(e),a=n.getRegion(o);if(!(!a||isNaN(t))){var s=r[o]||0,l=n.dataToPoint(a.getCenter());r[o]=s+1,i.setItemLayout(e,{point:l,offset:s})}})});var o=n.getData();o.each(function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!r[e],o.setItemLayout(t,n)}),e[i]=!0}})}var _M=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new re,n._rawTransformable=new re,n.name=e,n}return tf(e,t),e.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new ns(t,e,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new ns(t,e,n,i)},e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new ns(t,e,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[rC(t[0],e.getWidth()),rC(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=eI([],i,t),n=eI([],n,t),e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=r,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),e2(this.transform||(this.transform=[]),e.transform||e0()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],e8(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new re;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?eI(n,t,i):ef(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?eI([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var i=_I(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=_I(e);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(re);function _I(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var _T={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},_C=["lng","lat"],_A=function(t){function e(e,n,i){var r,o=t.call(this,e)||this;o.dimensions=_C,o.type="geo",o._nameCoordMap=ea(),o.map=n;var a=i.projection,s=_o(n,i.nameMap,i.nameProperty),l=_i(n);o.resourceType=l?l.type:null;var u=o.regions=s.regions,c=_T[l.type];if(o._regionsMap=s.regionsMap,o.regions=s.regions,o.projection=a,a)for(var h=0;h<u.length;h++){var p=u[h].getBoundingRect(a);(r=r||p.clone()).union(p)}else r=s.boundingRect;return o.setBoundingRect(r.x,r.y,r.width,r.height),o.aspectScale=a?1:t6(i.aspectScale,c.aspectScale),o._invertLongitute=!a&&c.invertLongitute,o}return tf(e,t),e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new ns(t,e,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var i=e[n];if("geoJSON"===i.type&&i.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(tQ(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,i){return t.prototype.dataToPoint.call(this,e,n,i)},e.prototype.convertToPixel=function(t,e,n){var i=_L(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=_L(e);return i===this?i.pointToData(n):null},e}(_M);function _L(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",r8).models[0]||{}).coordinateSystem:null}function _D(t,e){var n,i,r,o=t.get("boundingCoords");if(null!=o){var a=o[0],s=o[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1])){var l=this.projection;if(l){var u=a[0],c=a[1],h=s[0],p=s[1];a=[1/0,1/0],s=[-1/0,-1/0];var d=function(t,e,n,i){for(var r=n-t,o=i-e,u=0;u<=100;u++){var c=u/100,h=l.project([t+r*c,e+o*c]);eT(a,a,h),eC(s,s,h)}};d(u,c,h,c),d(h,c,h,p),d(h,p,u,p),d(u,p,h,c)}this.setBoundingRect(a[0],a[1],s[0]-a[0],s[1]-a[1])}}var f=this.getBoundingRect(),g=t.get("layoutCenter"),y=t.get("layoutSize"),v=e.getWidth(),m=e.getHeight(),x=f.width/f.height*this.aspectScale,_=!1;if(g&&y&&(n=[rC(g[0],v),rC(g[1],m)],i=rC(y,Math.min(v,m)),isNaN(n[0])||isNaN(n[1])||isNaN(i)||(_=!0)),_)r={},x>1?(r.width=i,r.height=i/x):(r.height=i,r.width=i*x),r.y=n[1]-r.height/2,r.x=n[0]-r.width/2;else{var b=t.getBoxLayoutParams();b.aspect=x,r=lV(b,{width:v,height:m})}this.setViewRect(r.x,r.y,r.width,r.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}tF(_A,_M);var _k=new(function(){function t(){this.dimensions=_C}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",function(t,r){var o=t.get("map"),a=new _A(o+r,o,tz({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=_D,a.resize(t,e)}),t.eachSeries(function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}});var r={};return t.eachSeriesByType("map",function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}}),tj(r,function(t,r){var o=new _A(r,r,tz({nameMap:tE(tW(t,function(t){return t.get("nameMap")}))},i(t[0])));o.zoomLimit=t4.apply(null,tW(t,function(t){return t.get("scaleLimit")})),n.push(o),o.resize=_D,o.resize(t[0],e),tj(t,function(t){t.coordinateSystem=o,tj(t.get("geoCoord"),function(t,e){o.addGeoCoord(e,t)})})}),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=ea(),a=0;a<r.length;a++)o.set(r[a].name,r[a]);return tj(_o(e,n,i).regions,function(t){var e=t.name,n=o.get(e),i=t.properties&&t.properties.echartsStyle;n||(n={name:e},r.push(n)),i&&tN(n,i)}),r},t}()),_P=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.init=function(t,e,n){var i=_i(t.map);if(i&&"geoJSON"===i.type){var r=t.itemStyle=t.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(t,n),rU(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=_k.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=tH(e.regions||[],function(e,i){var r=i.name;return r&&(e.set(r,new s8(i,t,t.ecModel)),i.selected&&(n[r]=!0)),e},ea()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new s8(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:t};return tK(i)?(r.status=e,i(r)):tQ(i)?i.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!!(e&&e[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(lX);function _O(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function _R(t,e,n,i){var r=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(_O(t,s),i)),null!=a){if(n){var l=n.min||0;a=Math.max(Math.min(r*a,n.max||1/0),l)/r}t.scaleX*=a,t.scaleY*=a;var u=(e.originX-t.x)*(a-1),c=(e.originY-t.y)*(a-1);t.x-=u,t.y-=c,t.updateTransform(),t.setCenter(_O(t,s),i),t.setZoom(a*r)}return{center:t.getCenter(),zoom:t.getZoom()}}var _N=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return tf(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new _d(n));var r=this._mapDraw;r.draw(t,e,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=t.get("silent"),this.group.add(r.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;dt(t.target,function(t){return null!=(e=aZ(t).eventData)},!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse(function(t){var e=aZ(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(cQ);function _E(t,e,n){_n(t,e,n)}function _z(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,function(t,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:t},function(n){n[e](t.name),tj(n.coordinateSystem.regions,function(t){i[t.name]=n.isSelected(t.name)||!1});var o=[];tj(i,function(t,e){i[e]&&o.push(e)}),r.push({geoIndex:n.componentIndex,name:o})}),{selected:i,allSelected:r,name:t.name}})}t.registerCoordinateSystem("geo",_k),t.registerComponentModel(_P),t.registerComponentView(_N),t.registerImpl("registerMap",_E),t.registerImpl("getMap",function(t){return _r(t)}),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,e,n){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(e){var r=e.coordinateSystem;if("geo"===r.type){var o=_R(r,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===i&&tj(e.seriesGroup,function(t){t.setCenter(o.center),t.setZoom(o.zoom)})}})})}function _B(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){!function(t){for(var e=t.children,n=e.length,i=0,r=0;--n>=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=_j(s),o=_W(o),s&&o;){r=_j(r),a=_W(a),r.hierNode.ancestor=t;var p,d,f,g=s.hierNode.prelim+h-o.hierNode.prelim-u+i(s,o);g>0&&(function(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}((p=s,d=t,f=n,p.hierNode.ancestor.parentNode===d.parentNode?p.hierNode.ancestor:f),t,g),u+=g,l+=g),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!_j(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!_W(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function _V(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function _F(t){return arguments.length?t:_H}function _G(t,e){return{x:e*Math.cos(t-=Math.PI/2),y:e*Math.sin(t)}}function _j(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function _W(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function _H(t,e){return t.parentNode===e.parentNode?1:2}var _Z=function(){this.parentPoint=[],this.childPoints=[]},_X=function(t){function e(e){return t.call(this,e)||this}return tf(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _Z},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i){t.moveTo(r[0],r[1]),t.lineTo(o[0],o[1]);return}var s=e.orient,l=+("TB"!==s&&"BT"!==s),u=1-l,c=rC(e.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(a[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var p=1;p<i-1;p++){var d=n[p];t.moveTo(d[0],d[1]),h[l]=d[l],t.lineTo(h[0],h[1])}},e}(av),_U=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new rb,n}return tf(e,t),e.prototype.init=function(t,e){this._controller=new xf(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var i=t.getData(),r=t.layoutInfo,o=this._mainGroup;"radial"===t.get("layout")?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var a=this._data;i.diff(a).add(function(e){_Y(i,e)&&_q(i,e,null,o,t)}).update(function(e,n){var r=a.getItemGraphicEl(n);if(!_Y(i,e)){r&&_$(a,n,r,o,t);return}_q(i,e,r,o,t)}).remove(function(e){var n=a.getItemGraphicEl(e);n&&_$(a,e,n,o,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl(function(e,i){e.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),i=[];n.each(function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||i.push([+e.x,+e.y])});var r=[],o=[];oH(i,r,o);var a=this._min,s=this._max;o[0]-r[0]==0&&(r[0]=a?a[0]:r[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-r[1]==0&&(r[1]=a?a[1]:r[1]-1,o[1]=s?s[1]:o[1]+1);var l=t.coordinateSystem=new _M;l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker(function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!xb(e,n,t)}),r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",function(e){xm(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})}).on("zoom",function(e){xx(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl(function(t,e){t.setSymbolScale(n)})},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scaleX||1;return((e.getZoom()-1)*n+1)/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(pm);function _Y(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function _q(t,e,n,i,r){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=t.tree.root,h=a.parentNode===c?a:a.parentNode||a,p=t.getItemGraphicEl(h.dataIndex),d=h.getLayout(),f=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:d,g=a.getLayout();o?((n=new gV(t,e,null,{symbolInnerColor:u,useNameLabel:!0})).x=f.x,n.y=f.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,sL(n,{x:g.x,y:g.y},r);var y=n.getSymbolPath();if("radial"===r.get("layout")){var v=c.children[0],m=v.getLayout(),x=v.children.length,_=void 0,b=void 0;if(g.x===m.x&&!0===a.isExpand&&v.children.length){var w={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};(_=Math.atan2(w.y-m.y,w.x-m.x))<0&&(_=2*Math.PI+_),(b=w.x<m.x)&&(_-=Math.PI)}else(_=Math.atan2(g.y-m.y,g.x-m.x))<0&&(_=2*Math.PI+_),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(b=g.x<m.x)&&(_-=Math.PI):(b=g.x>m.x)||(_-=Math.PI);var S=b?"left":"right",M=s.getModel("label"),I=M.get("rotate"),T=Math.PI/180*I,C=y.getTextContent();C&&(y.setTextConfig({position:M.get("position")||S,rotation:null==I?-_:T,origin:"center"}),C.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),L="relative"===A?es(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():null;L&&(aZ(n).focus=L),function(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),p=t.get(["lineStyle","curveness"]),d=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new hB({shape:_J(c,h,p,r,r)})),sL(g,{shape:_J(c,h,p,o,a)},t));else if("polyline"===u&&"orthogonal"===c&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,v=[],m=0;m<y.length;m++){var x=y[m].getLayout();v.push([x.x,x.y])}g||(g=i.__edge=new _X({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:h,forkPosition:d}})),sL(g,{shape:{parentPoint:[a.x,a.y],childPoints:v}},t)}g&&!("polyline"===u&&!e.isExpand)&&(g.useStyle(tB({strokeNoScale:!0,fill:null},f)),sb(g,l,"lineStyle"),so(g),s.add(g))}(r,a,c,n,f,d,g,i),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var i=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);i&&1===i.hoverState||si(n.__edge,e)}})}function _K(t,e,n,i,r){var o=_Q(e.tree.root,t),a=o.source,s=o.sourceLayout,l=e.getItemGraphicEl(t.dataIndex);if(l){var u=e.getItemGraphicEl(a.dataIndex).__edge,c=l.__edge||(!1===a.isExpand||1===a.children.length?u:void 0),h=i.get("edgeShape"),p=i.get("layout"),d=i.get("orient"),f=i.get(["lineStyle","curveness"]);c&&("curve"===h?sP(c,{shape:_J(p,d,f,s,s),style:{opacity:0}},i,{cb:function(){n.remove(c)},removeOpt:r}):"polyline"===h&&"orthogonal"===i.get("layout")&&sP(c,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(c)},removeOpt:r}))}}function _Q(t,e){for(var n,i=e.parentNode===t?e:e.parentNode||e;null==(n=i.getLayout());)i=i.parentNode===t?i:i.parentNode||i;return{source:i,sourceLayout:n}}function _$(t,e,n,i,r){var o=t.tree.getNodeByDataIndex(e),a=_Q(t.tree.root,o).sourceLayout,s={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};sP(n,{x:a.x+1,y:a.y+1},r,{cb:function(){i.remove(n),t.setItemGraphicEl(e,null)},removeOpt:s}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:s}),o.children.forEach(function(e){_K(e,t,i,r,s)}),_K(o,t,i,r,s)}function _J(t,e,n,i,r){if("radial"===t){u=i.rawX,h=i.rawY,c=r.rawX;var o,a,s,l,u,c,h,p=r.rawY,d=_G(u,h),f=_G(u,h+(p-h)*n),g=_G(c,p+(h-p)*n),y=_G(c,p);return{x1:d.x||0,y1:d.y||0,x2:y.x||0,y2:y.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=i.x,h=i.y,c=r.x,p=r.y,("LR"===e||"RL"===e)&&(o=u+(c-u)*n,a=h,s=c+(u-c)*n,l=p),("TB"===e||"BT"===e)&&(o=u,a=h+(p-h)*n,s=c,l=p+(h-p)*n),{x1:u,y1:h,x2:c,y2:p,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var _0=r5();function _1(t,e){var n;if(n=this,_0(n).mainData===n){var i=tz({},_0(this).datas);i[this.dataType]=e,_6(e,i,t)}else _8(e,this.dataType,_0(this).mainData,t);return e}function _2(t,e){return t.struct&&t.struct.update(),e}function _5(t,e){return tj(_0(e).datas,function(n,i){n!==e&&_8(n.cloneShallow(),i,e,t)}),e}function _3(t){var e=_0(this).mainData;return null==t||null==e?e:_0(e).datas[t]}function _4(){var t=_0(this).mainData;return null==t?[{data:t}]:tW(tX(_0(t).datas),function(e){return{type:e,data:_0(t).datas[e]}})}function _6(t,e,n){_0(t).datas={},tj(e,function(e,i){_8(e,i,t,n)})}function _8(t,e,n,i){_0(n).datas[e]=t,_0(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=_3,t.getLinkedDataAll=_4}let _9=function(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,_6(e,n,t),tj(n,function(n){tj(e.TRANSFERABLE_METHODS,function(e){n.wrapMethod(e,tY(_1,t))})}),e.wrapMethod("cloneShallow",tY(_5,t)),tj(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,tY(_2,t))}),et(n[e.dataType]===e)};var _7=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){tK(t)&&(n=e,e=t,t=null),tQ(t=t||{})&&(t={order:t});var i,r=t.order||"preorder",o=this[t.attr||"children"];"preorder"===r&&(i=e.call(n,this));for(var a=0;!i&&a<o.length;a++)o[a].eachNode(t,e,n);"postorder"===r&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].getNodeById(t);if(r)return r}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].contains(t);if(r)return r}},t.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e}return -1},t.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),bt=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(var n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,i){var r=new t(n),o=[],a=1;!function t(e,n){var i,s,l,u=e.value;a=Math.max(a,tq(u)?u.length:1),o.push(e);var c=new _7(rJ(e.name,""),r);n?(i=c,l=(s=n).children,i.parentNode!==s&&(l.push(i),i.parentNode=s)):r.root=c,r._nodes.push(c);var h=e.children;if(h)for(var p=0;p<h.length;p++)t(h[p],c)}(e),r.root.updateDepthAndHeight(0);var s=new gA(gL(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,n);return s.initData(o),i&&i(s),_9({mainData:s,struct:r,structAttr:"tree"}),r.update(),r},t}();function be(t,e,n){if(t&&tV(e,t.type)>=0){var i=n.getData().tree.root,r=t.targetNode;if(tQ(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function bn(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function bi(t,e){return tV(bn(t),e)>=0}function br(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var bo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return tf(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=new s8(t.leaves||{},this,this.ecModel),i=bt.createTree(e,this,function(t){t.wrapMethod("getItemModel",function(t,e){var r=i.getNodeByDataIndex(e);return r&&r.children.length&&r.isExpand||(t.parentModel=n),t})}),r=0;i.eachNode("preorder",function(t){t.depth>r&&(r=t.depth)});var o=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:r;return i.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=o}),i.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return cL("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=br(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(cW);function ba(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function bs(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var n=lV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=_F(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(r=n.width,o=n.height,a=_F());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,n,i=[t];e=i.pop();)if(n=e.children,e.isExpand&&n.length)for(var r=n.length,o=r-1;o>=0;o--){var a=n[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(a)}}(s),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;i=o.pop();)e(i,n)}(l,_B,a),s.hierNode.modifier=-l.hierNode.prelim,ba(l,_V);var u=l,c=l,h=l;ba(l,function(t){var e=t.getLayout().x;e<u.getLayout().x&&(u=t),e>c.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)});var p=u===c?1:a(u,c)/2,d=p-u.getLayout().x,f=0,g=0,y=0,v=0;if("radial"===i)f=r/(c.getLayout().x+p+d),g=o/(h.depth-1||1),ba(l,function(t){y=(t.getLayout().x+d)*f,v=(t.depth-1)*g;var e=_G(y,v);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:v},!0)});else{var m=t.getOrient();"RL"===m||"LR"===m?(g=o/(c.getLayout().x+p+d),f=r/(h.depth-1||1),ba(l,function(t){v=(t.getLayout().x+d)*g,y="LR"===m?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:y,y:v},!0)})):("TB"===m||"BT"===m)&&(f=r/(c.getLayout().x+p+d),g=o/(h.depth-1||1),ba(l,function(t){y=(t.getLayout().x+d)*f,v="TB"===m?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:y,y:v},!0)}))}}}(t,e)})}function bl(t){t.eachSeriesByType("tree",function(t){var e=t.getData();e.tree.eachNode(function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();tz(e.ensureUniqueItemVisual(t.dataIndex,"style"),n)})})}var bu=["treemapZoomToNode","treemapRender","treemapMove"];function bc(t){var e=t.getData().tree,n={};e.eachNode(function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=ua(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)})}var bh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return tf(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function t(e){var n=0;tj(e.children,function(e){t(e);var i=e.value;tq(i)&&(i=i[0]),n+=i});var i=e.value;tq(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),tq(e.value)?e.value[0]=i:e.value=i}(n);var i=t.levels||[],r=new s8({itemStyle:this.designatedVisualItemStyle={}},this,e),o=tW((i=t.levels=function(t,e){var n,i,r=rX(e.get("color")),o=rX(e.get(["aria","decal","decals"]));if(r){tj(t=t||[],function(t){var e=new s8(t),r=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)});var a=t[0]||(t[0]={});return n||(a.color=r.slice()),!i&&o&&(a.decal=o.slice()),t}}(i,e))||[],function(t){return new s8(t,r,e)},this),a=bt.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=a.getNodeByDataIndex(e);return t.parentModel=(n?o[n.depth]:null)||r,t})});return a.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t);return cL("nameValue",{name:i.getName(t),value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=br(this.getData().tree.getNodeByDataIndex(e),this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},tz(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=ea(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){bc(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",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:"#fff",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}(cW),bp=function(){function t(t){this.group=new rb,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(t,c,a,s,l,u,i),lF(o,c.pos,c.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=rJ(i.getModel().get("name"),""),o=Math.max(n.getTextRect(r).width+16,e.emptyItemWidth);e.totalWidth+=o+8,e.renderList.push({node:i,text:r,width:o})}},t.prototype._renderContent=function(t,e,n,i,r,o,a){for(var s,l,u,c,h,p,d,f,g,y=0,v=e.emptyItemWidth,m=t.get(["breadcrumb","height"]),x=(s=e.pos,c=(l=e.box).width,h=l.height,p=rC(s.left,c),d=rC(s.top,h),f=rC(s.right,c),g=rC(s.bottom,h),(isNaN(p)||isNaN(parseFloat(s.left)))&&(p=0),(isNaN(f)||isNaN(parseFloat(s.right)))&&(f=c),(isNaN(d)||isNaN(parseFloat(s.top)))&&(d=0),(isNaN(g)||isNaN(parseFloat(s.bottom)))&&(g=h),{width:Math.max(f-p-(u=t7(u||0))[1]-u[3],0),height:Math.max(g-d-u[0]-u[2],0)}),_=e.totalWidth,b=e.renderList,w=i.getModel("itemStyle").getItemStyle(),S=b.length-1;S>=0;S--){var M,I,T,C=b[S],A=C.node,L=C.width,D=C.text;_>x.width&&(_-=L-v,L=v,D=null);var k=new hL({shape:{points:function(t,e,n,i,r){var o=[[i?t:t-5,0],[t+e,0],[t+e,0+n],[i?t:t-5,0+n]];return r||o.splice(2,0,[t+e+5,0+n/2]),i||o.push([t,0+n/2]),o}(y,L,m,S===b.length-1,0===S)},style:tB(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new aP({style:sG(r,{text:D})}),textConfig:{position:"inside"},z2:1e5,onclick:tY(a,A)});k.disableLabelAnimation=!0,k.getTextContent().ensureState("emphasis").style=sG(o,{text:D}),k.ensureState("emphasis").style=w,sv(k,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(k),M=k,I=t,T=A,aZ(M).eventData={componentType:"series",componentSubType:"treemap",componentIndex:I.componentIndex,seriesIndex:I.seriesIndex,seriesName:I.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:T&&T.dataIndex,name:T&&T.name},treePathInfo:T&&br(T,I)},y+=L+8}},t.prototype.remove=function(){this.group.removeAll()},t}(),bd=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}(),bf="label",bg="upperLabel",by=op([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),bv=function(t){var e=by(t);return e.stroke=e.fill=e.lineWidth=null,e},bm=r5(),bx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=b_(),n}return tf(e,t),e.prototype.render=function(t,e,n,i){if(!(0>tV(e.findComponents({mainType:"series",subType:"treemap",query:i}),t))){this.seriesModel=t,this.api=n,this.ecModel=e;var r=be(i,["treemapZoomToNode","treemapRootToNode"],t),o=i&&i.type,a=t.layoutInfo,s=!this._oldTree,l=this._storage,u="treemapRootToNode"===o&&r&&l?{rootNodeGroup:l.nodeGroup[r.node.getRawIndex()],direction:i.direction}:null,c=this._giveContainerGroup(a),h=t.get("animation"),p=this._doRender(c,t,u);!h||s||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?p.renderFinally():this._doAnimation(c,p,t,u),this._resetController(n),this._renderBreadcrumb(t,n,r)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new rb,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var i,r,o=e.getData().tree,a=this._oldTree,s=b_(),l=b_(),u=this._storage,c=[];!function t(i,r,o,a,h){function p(t){return t.getId()}function d(p,d){var f=null!=p?i[p]:null,g=null!=d?r[d]:null,y=function(t,e,n,i,r,o,a,s,l,u){if(a){var c=a.getLayout(),h=t.getData(),p=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var d=c.width,f=c.height,g=c.borderWidth,y=c.invisible,v=a.getRawIndex(),m=s&&s.getRawIndex(),x=a.viewChildren,_=c.upperHeight,b=x&&x.length,w=p.getModel("itemStyle"),S=p.getModel(["emphasis","itemStyle"]),M=p.getModel(["blur","itemStyle"]),I=p.getModel(["select","itemStyle"]),T=w.get("borderRadius")||0,C=V("nodeGroup",rb);if(C){if(l.add(C),C.x=c.x||0,C.y=c.y||0,C.markRedraw(),bm(C).nodeWidth=d,bm(C).nodeHeight=f,c.isAboveViewRoot)return C;var A=V("background",aL,u,20);A&&function(e,n,i){var r=aZ(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:d,height:f,r:T}),y)E(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=bv(w);l.fill=s;var u=by(S);u.fill=S.get("borderColor");var c=by(M);c.fill=M.get("borderColor");var h=by(I);if(h.fill=I.get("borderColor"),i){var p=d-2*g;z(n,s,o.opacity,{x:g,y:0,width:p,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,so(n)}e.add(n)}(C,A,b&&c.upperLabelHeight);var L=p.getModel("emphasis"),D=L.get("focus"),k=L.get("blurScope"),P=L.get("disabled"),O="ancestor"===D?a.getAncestorsIndices():"descendant"===D?a.getDescendantIndices():D;if(b)sS(C)&&sw(C,!1),A&&(sw(A,!P),h.setItemGraphicEl(a.dataIndex,A),sm(A,O,k));else{var R=V("content",aL,u,30);R&&function(e,n){var i=aZ(n);i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(d-2*g,0),o=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:o,r:T}),y)E(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=bv(w);u.fill=l,u.decal=s.decal;var c=by(S),h=by(M),p=by(I);z(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=p,so(n)}e.add(n)}(C,R),A.disableMorphing=!0,A&&sS(A)&&sw(A,!1),sw(C,!P),h.setItemGraphicEl(a.dataIndex,C);var N=p.getShallow("cursor");N&&R.attr("cursor",N),sm(C,O,k)}return C}}}function E(t){t.invisible||o.push(t)}function z(e,n,i,r){var o=p.getModel(r?bg:bf),s=rJ(p.get("name"),null),l=o.getShallow("show");sV(e,sF(p,r?bg:bf),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var h=u.style,d=t7(h.padding||0);r&&(e.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-d[1]-d[3],0),n=Math.max((r?r.height:e.shape.height)-d[0]-d[2],0);(h.width!==t||h.height!==n)&&u.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",B(h,r,c);var f=u.getState("emphasis");B(f?f.style:null,r,c)}}function B(e,n,i){var r=e?e.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function V(t,o,s,l){var u,c,h,p=null!=m&&n[t][m],d=r[t];return p?(n[t][m]=null,u=d,c=p,h=u[v]={},c instanceof rb?(h.oldX=c.x,h.oldY=c.y):h.oldShape=tz({},c.shape)):y||((p=new o)instanceof oO&&(p.z2=100*s+l),function(t,e){var n=t[v]={},o=a.parentNode,s=e instanceof rb;if(o&&(!i||"drillDown"===i.direction)){var l=0,u=0,c=r.background[o.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}(d,p)),e[t][v]=p}}(e,l,u,n,s,c,f,g,o,h);y&&t(f&&f.viewChildren||[],g&&g.viewChildren||[],y,a,h+1)}a?(r=i,tj(i,function(t,e){t.isRemoved()||d(e,e)})):new gd(r,i,p,p).add(d).update(d).remove(tY(d,null)).execute()}(o.root?[o.root]:[],a&&a.root?[a.root]:[],t,o===a||!a,0);var h=(i=u,r=b_(),i&&tj(i,function(t,e){var n=r[e];tj(t,function(t){t&&(n.push(t),bm(t).willDelete=!0)})}),r);if(this._oldTree=o,this._storage=l,this._controllerHost){var p=this.seriesModel.layoutInfo,d=o.root.getLayout();d.width===p.width&&d.height===p.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:function(){tj(h,function(t){tj(t,function(t){t.parent&&t.parent.remove(t)})}),tj(c,function(t){t.invisible=!0,t.dirty()})}}},e.prototype._doAnimation=function(t,e,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(tK(r)?0:r)||0,s=(tK(o)?null:o)||"cubicOut",l=new bd;tj(e.willDeleteEls,function(t,e){tj(t,function(t,n){if(!t.invisible){var r,o=t.parent,u=bm(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;u.willDelete||(c=u.nodeWidth/2,h=u.nodeHeight/2),r="nodeGroup"===e?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}r&&l.add(t,r,a,0,s)}})}),tj(this._storage,function(t,n){tj(t,function(t,i){var r=e.lastsForAnimation[n][i],o={};r&&(t instanceof rb?null!=r.oldX&&(o.x=t.x,o.y=t.y,t.x=r.oldX,t.y=r.oldY):(r.oldShape&&(o.shape=tz({},t.shape),t.setShape(r.oldShape)),r.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))})},this),this._state="animating",l.finished(tU(function(){this._state="ready",e.renderFinally()},this)).start()},e.prototype._resetController=function(t){var e=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),e||((e=this._controller=new xf(t.getZr())).enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),e.on("pan",tU(this._onPan,this)),e.on("zoom",tU(this._onZoom,this)));var i=new ns(0,0,t.getWidth(),t.getHeight());e.setPointerChecker(function(t,e,n){return i.contain(e,n)})},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(e){var n=e.getLayout();n&&this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY,i=t.scale;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var o=r.getLayout();if(!o)return;var a=new ns(o.x,o.y,o.width,o.height),s=null,l=this._controllerHost;s=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=i,s){var c=s.min||0;u=Math.max(Math.min(s.max||1/0,u),c)}var h=u/l.zoom;l.zoom=u;var p=this.seriesModel.layoutInfo;e-=p.x,n-=p.y;var d=e0();e3(d,d,[-e,-n]),e6(d,d,[h,h]),e3(d,d,[e,n]),a.applyTransform(d),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&lN(a,s)}}}}},this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;!n&&((n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new bp(this.group))).render(t,e,n.node,function(e){"animating"!==i._state&&(bi(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=b_(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0])||!(o[0]<=a.x+a.width)||!(a.y<=o[1])||!(o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n},e.type="treemap",e}(pm);function b_(){return{nodeGroup:[],background:[],content:[]}}var bb=function(){function t(e){var n,i,r=e.mappingMethod,o=e.type,a=this.option=tR(e);this.type=o,this.mappingMethod=r,this._normalizeData=bk[r];var s=t.visualHandlers[o];this.applyVisual=s.applyVisual,this.getColorMapper=s.getColorMapper,this._normalizedToVisual=s._normalizedToVisual[r],"piecewise"===r?(bw(a),i=(n=a).pieceList,n.hasSpecialVisual=!1,tj(i,function(t,e){t.originIndex=e,null!=t.visual&&(n.hasSpecialVisual=!0)})):"category"===r?a.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(tj(e,function(t,e){n[t]=e}),!tq(i)){var r=[];t0(i)?tj(i,function(t,e){var i=n[e];r[null!=i?i:-1]=t}):r[-1]=i,i=bD(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(a):bw(a,!0):(et("linear"!==r||a.dataExtent),bw(a))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return tU(this._normalizeData,this)},t.listVisualTypes=function(){return tX(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){t0(t)?tj(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=tq(e)?[]:t0(e)?{}:(r=!0,null);return t.eachVisual(e,function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a}),o},t.retrieveVisuals=function(e){var n,i={};return e&&tj(t.visualHandlers,function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)}),n?i:null},t.prepareVisualTypes=function(t){if(tq(t))t=t.slice();else{if(!t0(t))return[];var e=[];tj(t,function(t,n){e.push(n)}),t=e}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},t.dependsOn=function(t,e){return"color"===e?!!(t&&0===t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||tQ(s)&&s===t+"")return o;n&&S(s,o)}}for(var o=0,a=e.length;o<a;o++){var l,u,c,h,p,d,f,g,y,v,m,x,_=e[o],b=_.interval,w=_.close;if(b){if(b[0]===-1/0){if(l=w[1],u=t,c=b[1],l?u<=c:u<c)return o}else if(b[1]===1/0){if(h=w[0],p=b[0],d=t,h?p<=d:p<d)return o}else{if(f=w[0],g=b[0],y=t,(f?g<=y:g<y)&&(v=w[1],m=t,x=b[1],v?m<=x:m<x))return o}n&&S(b[0],o),n&&S(b[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function S(e,n){var o=Math.abs(e-t);o<r&&(r=o,i=n)}},t.visualHandlers={color:{applyVisual:bI("color"),getColorMapper:function(){var t=this.option;return tU("category"===t.mappingMethod?function(t,e){return e||(t=this._normalizeData(t)),bT.call(this,t)}:function(e,n,i){var r=!!i;return n||(e=this._normalizeData(e)),i=ir(e,t.parsedVisual,i),r?i:is(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return is(ir(t,this.option.parsedVisual),"rgba")},category:bT,piecewise:function(t,e){var n=bL.call(this,e);return null==n&&(n=is(ir(t,this.option.parsedVisual),"rgba")),n},fixed:bC}},colorHue:bS(function(t,e){return io(t,e)}),colorSaturation:bS(function(t,e){return io(t,null,e)}),colorLightness:bS(function(t,e){return io(t,null,null,e)}),colorAlpha:bS(function(t,e){return ia(t,e)}),decal:{applyVisual:bI("decal"),_normalizedToVisual:{linear:null,category:bT,piecewise:null,fixed:null}},opacity:{applyVisual:bI("opacity"),_normalizedToVisual:bA([0,1])},liftZ:{applyVisual:bI("liftZ"),_normalizedToVisual:{linear:bC,category:bC,piecewise:bC,fixed:bC}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:bM,category:bT,piecewise:function(t,e){var n=bL.call(this,e);return null==n&&(n=bM.call(this,t)),n},fixed:bC}},symbolSize:{applyVisual:bI("symbolSize"),_normalizedToVisual:bA([0,1])}},t}();function bw(t,e){var n=t.visual,i=[];t0(n)?tj(n,function(t){i.push(t)}):null!=n&&i.push(n),e||1!==i.length||({color:1,symbol:1}).hasOwnProperty(t.type)||(i[1]=i[0]),bD(t,i)}function bS(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i("color",t(n("color"),r))},_normalizedToVisual:bA([0,1])}}function bM(t){var e=this.option.visual;return e[Math.round(rT(t,[0,1],[0,e.length-1],!0))]||{}}function bI(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function bT(t){var e=this.option.visual;return e[this.option.loop&&-1!==t?t%e.length:t]}function bC(){return this.option.visual[0]}function bA(t){return{linear:function(e){return rT(e,t,this.option.visual,!0)},category:bT,piecewise:function(e,n){var i=bL.call(this,n);return null==i&&(i=rT(e,t,this.option.visual,!0)),i},fixed:bC}}function bL(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=bb.findPieceIndex(t,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function bD(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=tW(e,function(t){return it(t)||[0,0,0,1]})),e}var bk={linear:function(t){return rT(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=bb.findPieceIndex(t,e,!0);if(null!=n)return rT(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?-1:e},fixed:eh},bP=r5();let bO={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||function t(e,n,i,r){var o=e.getModel(),a=e.getLayout(),s=e.hostTree.data;if(a&&!a.invisible&&a.isInView){var l,u,c,h,p,d,f,g=o.getModel("itemStyle"),y=(l=g,u=n,c=r,h=tz({},u),p=c.designatedVisualItemStyle,tj(["color","colorAlpha","colorSaturation"],function(t){p[t]=u[t];var e=l.get(t);p[t]=null,null!=e&&(h[t]=e)}),h),v=s.ensureUniqueItemVisual(e.dataIndex,"style"),m=g.get("borderColor"),x=g.get("borderColorSaturation");null!=x&&(d=x,m=null!=(f=bR(y))?io(f,null,null,d):null),v.stroke=m;var _=e.viewChildren;if(_&&_.length){var b=function(t,e,n,i){if(i&&i.length){var r=bE(t,"color")||null!=n.color&&"none"!==n.color&&(bE(t,"colorAlpha")||bE(t,"colorSaturation"));if(r){var o=t.get("visualMin"),a=t.get("visualMax"),s=e.dataExtent.slice();null!=o&&o<s[0]&&(s[0]=o),null!=a&&a>s[1]&&(s[1]=a);var l=t.get("colorMappingBy"),u={type:r.name,dataExtent:s,visual:r.range};"color"===u.type&&("index"===l||"id"===l)?(u.mappingMethod="category",u.loop=!0):u.mappingMethod="linear";var c=new bb(u);return bP(c).drColorMappingBy=l,c}}}(o,a,y,_);tj(_,function(e,n){if(e.depth>=i.length||e===i[e.depth]){var a=function(t,e,n,i,r,o){var a=tz({},e);if(r){var s=r.type,l="color"===s&&bP(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(o,y,e,n,b,r);t(e,a,i,r)}})}else v.fill=bR(y)}}(e,{},t.getViewRoot().getAncestors(),t)}};function bR(t){var e=bN(t,"color");if(e){var n=bN(t,"colorAlpha"),i=bN(t,"colorSaturation");return i&&(e=io(e,null,null,i)),n&&(e=ia(e,n)),e}}function bN(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function bE(t,e){var n=t.get(e);return tq(n)&&n.length?{name:e,range:n}:null}var bz=Math.max,bB=Math.min,bV=["itemStyle","borderWidth"],bF=["itemStyle","gapWidth"],bG=["upperLabel","show"],bj=["upperLabel","height"];let bW={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=lV(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=rC(t4(s.width,l[0]),r),c=rC(t4(s.height,l[1]),o),h=i&&i.type,p=be(i,["treemapZoomToNode","treemapRootToNode"],t),d="treemapRender"===h||"treemapMove"===h?i.rootRect:null,f=t.getViewRoot(),g=bn(f);if("treemapMove"!==h){var y="treemapZoomToNode"===h?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;for(var l=i*r,u=l*t.option.zoomToNodeRatio;o=a.parentNode;){for(var c=0,h=o.children,p=0,d=h.length;p<d;p++)c+=h[p].getValue();var f=a.getValue();if(0===f)return s;u*=c/f;var g=o.getModel(),y=g.get(bV),v=Math.max(y,bZ(g));(u+=4*y*y+(3*y+v)*Math.pow(u,.5))>0x1fffffffffffff&&(u=0x1fffffffffffff),a=o}u<l&&(u=l);var m=Math.pow(u/l,.5);return[i*m,r*m]}(t,p,f,u,c):d?[d.width,d.height]:[u,c],v=a.sort;v&&"asc"!==v&&"desc"!==v&&(v="desc");var m={squareRatio:a.squareRatio,sort:v,leafDepth:a.leafDepth};f.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};f.setLayout(x),function t(e,n,i,r){if(!e.isRemoved()){var o,a,s=e.getLayout();o=s.width,a=s.height;var l=e.getModel(),u=l.get(bV),c=l.get(bF)/2,h=bZ(l),p=Math.max(u,h),d=u-c,f=p-c;e.setLayout({borderWidth:u,upperHeight:p,upperLabelHeight:h},!0);var g=(o=bz(o-2*d,0))*(a=bz(a-d-f,0)),y=function(t,e,n,i,r,o){var a,s,l=t.children||[],u=i.sort;"asc"!==u&&"desc"!==u&&(u=null);var c=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!c)return t.viewChildren=[];a=l=tZ(l,function(t){return!t.isRemoved()}),(s=u)&&a.sort(function(t,e){var n="asc"===s?t.getValue()-e.getValue():e.getValue()-t.getValue();return 0===n?"asc"===s?t.dataIndex-e.dataIndex:e.dataIndex-t.dataIndex:n});var h=function(t,e,n){for(var i,r=0,o=0,a=e.length;o<a;o++)r+=e[o].getValue();var s=t.get("visualDimension");return e&&e.length?"value"===s&&n?(i=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&i.reverse()):(i=[1/0,-1/0],tj(e,function(t){var e=t.getValue(s);e<i[0]&&(i[0]=e),e>i[1]&&(i[1]=e)})):i=[NaN,NaN],{sum:r,dataExtent:i}}(e,l,u);if(0===h.sum||(h.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*e<o&&(s=l,n-=u)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}(e,n,h.sum,u,l),0===h.sum))return t.viewChildren=[];for(var p=0,d=l.length;p<d;p++){var f=l[p].getValue()/h.sum*n;l[p].setLayout({area:f})}return c&&(l.length&&t.setLayout({isLeafRoot:!0},!0),l.length=0),t.viewChildren=l,t.setLayout({dataExtent:h.dataExtent},!0),l}(e,l,g,n,i,r);if(y.length){var v={x:d,y:f,width:o,height:a},m=bB(o,a),x=1/0,_=[];_.area=0;for(var b=0,w=y.length;b<w;){var S=y[b];_.push(S),_.area+=S.getLayout().area;var M=function(t,e,n){for(var i=0,r=1/0,o=0,a=void 0,s=t.length;o<s;o++)(a=t[o].getLayout().area)&&(a<r&&(r=a),a>i&&(i=a));var l=t.area*t.area,u=e*e*n;return l?bz(u*i/l,l/(u*r)):1/0}(_,m,n.squareRatio);M<=x?(b++,x=M):(_.area-=_.pop().getLayout().area,bH(_,m,v,c,!1),m=bB(v.width,v.height),_.length=_.area=0,x=1/0)}if(_.length&&bH(_,m,v,c,!0),!i){var I=l.get("childrenVisibleMin");null!=I&&g<I&&(i=!0)}for(var b=0,w=y.length;b<w;b++)t(y[b],n,i,r+1)}}}(f,m,!1,0),x=f.getLayout(),tj(g,function(t,e){var n=(g[e+1]||f).getValue();t.setLayout(tz({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))})}var _=t.getData().tree.root;_.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;for(var a=[o.width/2,o.height/2],s=r;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}(s,d,p),!0),t.setLayoutInfo(s),function t(e,n,i,r,o){var a=e.getLayout(),s=i[o],l=s&&s===e;if((!s||l)&&(o!==i.length||e===r)){e.setLayout({isInView:!0,invisible:!l&&!n.intersect(a),isAboveViewRoot:l},!0);var u=new ns(n.x-a.x,n.y-a.y,n.width,n.height);tj(e.viewChildren||[],function(e){t(e,u,i,r,o+1)})}}(_,new ns(-s.x,-s.y,r,o),g,f,0)}};function bH(t,e,n,i,r){var o=+(e!==n.width),a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,p=t.length;h<p;h++){var d=t[h],f={},g=c?d.getLayout().area/c:0,y=f[l[a]]=bz(c-2*i,0),v=n[s[o]]+n[l[o]]-u,m=h===p-1||v<g?v:g,x=f[l[o]]=bz(m-2*i,0);f[s[a]]=n[s[a]]+bB(i,y/2),f[s[o]]=u+bB(i,x/2),u+=m,d.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function bZ(t){return t.get(bG)?t.get(bj):0}function bX(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),i=t.getGraph().data,r=n.mapArray(n.getName);i.filterSelf(function(t){var n=i.getItemModel(t).getShallow("category");if(null!=n){tJ(n)&&(n=r[n]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(n))return!1}return!0})})}function bU(t){var e={};t.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),i=t.getData(),r={};n.each(function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(o,e)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(i,l[u],c)}}),n.count()&&i.each(function(t){var e=i.getItemModel(t).getShallow("category");if(null!=e){tQ(e)&&(e=r["ec-"+e]);var o=n.getItemVisual(e,"style");tz(i.ensureUniqueItemVisual(t,"style"),o);for(var a=["symbol","symbolSize","symbolKeepAspect"],s=0;s<a.length;s++)i.setItemVisual(t,a[s],n.getItemVisual(e,a[s]))}})})}function bY(t){return t instanceof Array||(t=[t,t]),t}function bq(t){t.eachSeriesByType("graph",function(t){var e=t.getGraph(),n=t.getEdgeData(),i=bY(t.get("edgeSymbol")),r=bY(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(t){var i=n.getItemModel(t),r=e.getEdgeByIndex(t),o=bY(i.getShallow("symbol",!0)),a=bY(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch(tz(l,s),l.stroke){case"source":var u=r.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":var u=r.node2.getVisual("style");l.stroke=u&&u.fill}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),a[0]&&r.setVisual("fromSymbolSize",a[0]),a[1]&&r.setVisual("toSymbolSize",a[1])})})}var bK=function(t){return t.get("autoCurveness")||null},bQ=function(t,e){var n=bK(t),i=20,r=[];if(tJ(n))i=n;else if(tq(n)){t.__curvenessList=n;return}e>i&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=r},b$=function(t,e,n){var i=[t.id,t.dataIndex].join("."),r=[e.id,e.dataIndex].join(".");return[n.uid,i,r].join("-->")},bJ=function(t){var e=t.split("-->");return[e[0],e[2],e[1]].join("-->")},b0=function(t,e){var n=b$(t.node1,t.node2,e);return e.__edgeMap[n]},b1=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function b2(t,e,n,i){var r=bK(e),o=tq(r);if(!r)return null;var a=b0(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=b1(b$(t.node1,t.node2,e),e)+b1(b$(t.node2,t.node1,e),e);bQ(e,u),t.lineStyle=t.lineStyle||{};var c=b$(t.node1,t.node2,e),h=e.__curvenessList,p=o||u%2?0:1;if(a.isForward)return h[p+s];var d=b1(bJ(c),e),f=h[s+d+p];return i?o?r&&0===r[0]?(d+p)%2?f:-f:((d%2?0:1)+p)%2?f:-f:(d+p)%2?f:-f:h[s+d+p]}function b5(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode(function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])}),b3(n,t)}}function b3(t,e){t.eachEdge(function(t,n){var i=t8(t.getModel().get(["lineStyle","curveness"]),-b2(t,e,n,!0),0),r=eg(t.node1.getLayout()),o=eg(t.node2.getLayout()),a=[r,o];+i&&a.push([(r[0]+o[0])/2-(r[1]-o[1])*i,(r[1]+o[1])/2-(o[0]-r[0])*i]),t.setLayout(a)})}function b4(t,e){t.eachSeriesByType("graph",function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),r=[];tj(n.dimensions,function(t){r=r.concat(i.mapDimensionsAll(t))});for(var o=0;o<i.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var u=i.get(r[l],o);isNaN(u)||(s=!0),a.push(u)}s?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}b3(i.graph,t)}else e&&"none"!==e||b5(t)})}function b6(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,i=e.scaleX;return((e.getZoom()-1)*n+1)/i}function b8(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var b9=Math.PI,b7=[];function wt(t,e,n,i){var r=t.coordinateSystem;if(!r||"view"===r.type){var o=r.getBoundingRect(),a=t.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,h=a.count();if(a.setLayout({cx:l,cy:u}),h){if(n){var p=r.pointToData(i),d=[p[0]-l,p[1]-u];eb(d,d),e_(d,d,c),n.setLayout([l+d[0],u+d[1]],!0),wn(n,t.get(["circular","rotateLabel"]),l,u)}we[e](t,s,a,c,l,u,h),s.eachEdge(function(e,n){var i,r=t8(e.getModel().get(["lineStyle","curveness"]),b2(e,t,n),0),o=eg(e.node1.getLayout()),a=eg(e.node2.getLayout()),s=(o[0]+a[0])/2,c=(o[1]+a[1])/2;+r&&(r*=3,i=[l*r+s*(1-r),u*r+c*(1-r)]),e.setLayout([o,a,i])})}}}var we={value:function(t,e,n,i,r,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode(function(t){var e=t.getValue("value"),n=u*(l?e:1)/2;s+=n,t.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n})},symbolSize:function(t,e,n,i,r,o,a){var s=0;b7.length=a;var l=b6(t);e.eachNode(function(t){var e=b8(t);isNaN(e)&&(e=2),e<0&&(e=0);var n=Math.asin((e*=l)/2/i);isNaN(n)&&(n=b9/2),b7[t.dataIndex]=n,s+=2*n});var u=(2*b9-s)/a/2,c=0;e.eachNode(function(t){var e=u+b7[t.dataIndex];c+=e,t.getLayout()&&t.getLayout().fixed||t.setLayout([i*Math.cos(c)+r,i*Math.sin(c)+o]),c+=e})}};function wn(t,e,n,i){var r=t.getGraphicEl();if(r){var o=t.getModel().get(["label","rotate"])||0,a=r.getSymbolPath();if(e){var s=t.getLayout(),l=Math.atan2(s[1]-i,s[0]-n);l<0&&(l=2*Math.PI+l);var u=s[0]<n;u&&(l-=Math.PI);var c=u?"left":"right";a.setTextConfig({rotation:-l,position:c,origin:"center"});var h=a.ensureState("emphasis");tz(h.textConfig||(h.textConfig={}),{position:c})}else a.setTextConfig({rotation:o*=Math.PI/180})}}function wi(t){t.eachSeriesByType("graph",function(t){"circular"===t.get("layout")&&wt(t,"symbolSize")})}function wr(t){t.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},i=t.getGraph(),r=i.data,o=i.edgeData,a=t.getModel("force"),s=a.get("initLayout");t.preservedPoints?r.each(function(t){var e=r.getId(t);r.setItemLayout(t,n[e]||[NaN,NaN])}):s&&"none"!==s?"circular"===s&&wt(t,"value"):b5(t);var l=r.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),h=a.get("edgeLength"),p=tq(c)?c:[c,c],d=tq(h)?h:[h,h];d=[d[1],d[0]];var f=r.mapArray("value",function(t,e){var n=r.getItemLayout(e),i=rT(t,l,p);return isNaN(i)&&(i=(p[0]+p[1])/2),{w:i,rep:i,fixed:r.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),g=o.mapArray("value",function(e,n){var r=i.getEdgeByIndex(n),o=rT(e,u,d);isNaN(o)&&(o=(d[0]+d[1])/2);var a=r.getModel(),s=t8(r.getModel().get(["lineStyle","curveness"]),-b2(r,t,n,!0),0);return{n1:f[r.node1.dataIndex],n2:f[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}}),y=function(t,e,n){for(var i,r,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<t.length;c++){var h=t[c];h.p||(h.p=ed(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=eg(h.p),h.edges=null}var p=null==n.friction?.6:n.friction,d=p;return{warmUp:function(){d=.8*p},setFixed:function(e){t[e].fixed=!0},setUnfixed:function(e){t[e].fixed=!1},beforeStep:function(t){i=t},afterStep:function(t){r=t},step:function(n){i&&i(t,e);for(var o=[],a=t.length,s=0;s<e.length;s++){var c=e[s];if(!c.ignoreForceLayout){var h=c.n1,p=c.n2;em(o,p.p,h.p);var f=ex(o)-c.d,g=p.w/(h.w+p.w);isNaN(g)&&(g=0),eb(o,o),h.fixed||ev(h.p,h.p,o,g*f*d),p.fixed||ev(p.p,p.p,o,-(1-g)*f*d)}}for(var s=0;s<a;s++){var y=t[s];y.fixed||(em(o,l,y.p),ev(y.p,y.p,o,u*d))}for(var s=0;s<a;s++)for(var h=t[s],v=s+1;v<a;v++){var m,x,p=t[v];em(o,p.p,h.p);var f=ex(o);0===f&&(m=Math.random()-.5,x=Math.random()-.5,o[0]=m,o[1]=x,f=1);var _=(h.rep+p.rep)/f/f;h.fixed||ev(h.pp,h.pp,o,_),p.fixed||ev(p.pp,p.pp,o,-_)}for(var b=[],s=0;s<a;s++){var y=t[s];y.fixed||(em(b,y.p,y.pp),ev(y.p,y.p,b,d),ef(y.pp,y.p))}var w=(d*=.992)<.01;r&&r(t,e,w),n&&n(w)}}}(f,g,{rect:e.getBoundingRect(),gravity:a.get("gravity"),friction:a.get("friction")});y.beforeStep(function(t,e){for(var n=0,r=t.length;n<r;n++)t[n].fixed&&ef(t[n].p,i.getNodeByIndex(n).getLayout())}),y.afterStep(function(t,e,o){for(var a=0,s=t.length;a<s;a++)t[a].fixed||i.getNodeByIndex(a).setLayout(t[a].p),n[r.getId(a)]=t[a].p;for(var a=0,s=e.length;a<s;a++){var l=e[a],u=i.getEdgeByIndex(a),c=l.n1.p,h=l.n2.p,p=u.getLayout();(p=p?p.slice():[])[0]=p[0]||[],p[1]=p[1]||[],ef(p[0],c),ef(p[1],h),+l.curveness&&(p[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(p)}}),t.forceLayout=y,t.preservedPoints=n,y.step()}else t.forceLayout=null})}function wo(t,e){var n=[];return t.eachSeriesByType("graph",function(t){var i=t.get("coordinateSystem");if(!i||"view"===i){var r=t.getData(),o=r.mapArray(function(t){var e=r.getItemModel(t);return[+e.get("x"),+e.get("y")]}),a=[],s=[];oH(o,a,s),s[0]-a[0]==0&&(s[0]+=1,a[0]-=1),s[1]-a[1]==0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),u=lV(tz(t.getBoxLayoutParams(),{aspect:l}),{width:e.getWidth(),height:e.getHeight()});isNaN(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-a[0],h=s[1]-a[1],p=u.width,d=u.height,f=t.coordinateSystem=new _M;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(a[0],a[1],c,h),f.setViewRect(u.x,u.y,p,d),f.setCenter(t.get("center"),e),f.setZoom(t.get("zoom")),n.push(f)}}),n}var wa=hR.prototype,ws=hB.prototype,wl=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function wu(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}tf(function(){return null!==v&&v.apply(this,arguments)||this},v=wl);var wc=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return tf(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new wl},e.prototype.buildPath=function(t,e){wu(e)?wa.buildPath.call(this,t,e):ws.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return wu(this.shape)?wa.pointAt.call(this,t):ws.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=wu(e)?[e.x2-e.x1,e.y2-e.y1]:ws.tangentAt.call(this,t);return eb(n,n)},e}(av),wh=["fromSymbol","toSymbol"];function wp(t){return"_"+t+"Type"}function wd(t,e,n){var i=e.getItemVisual(n,t);if(!i||"none"===i)return i;var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=df(r),u=dg(a||0,l);return i+l+u+(o||"")+(s||"")}function wf(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=df(r),u=dg(a||0,l),c=dd(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:o*Math.PI/180||0,c.name=t,c}}function wg(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var wy=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createLine(e,n,i),r}return tf(e,t),e.prototype._createLine=function(t,e,n){var i,r,o=t.hostModel,a=(i=t.getItemLayout(e),wg((r=new wc({name:"line",subPixelOptimize:!0})).shape,i),r);a.shape.percent=0,sD(a,{shape:{percent:1}},o,e),this.add(a),tj(wh,function(n){var i=wf(n,t,e);this.add(i),this[wp(n)]=wd(n,t,e)},this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};wg(a.shape,o),sL(r,a,i,e),tj(wh,function(n){var i=wd(n,t,e),r=wp(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=wf(n,t,e);this.add(o)}this[r]=i},this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var p=t.getItemModel(e),d=p.getModel("emphasis");o=d.getModel("lineStyle").getLineStyle(),a=p.getModel(["blur","lineStyle"]).getLineStyle(),s=p.getModel(["select","lineStyle"]).getLineStyle(),u=d.get("disabled"),c=d.get("focus"),h=d.get("blurScope"),l=sF(p)}var f=t.getItemVisual(e,"style"),g=f.stroke;r.useStyle(f),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,tj(wh,function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=f.opacity;for(var n=0;n<aQ.length;n++){var i=aQ[n],o=r.getState(i);if(o){var a=o.style||{},s=e.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}},this);var y=i.getRawValue(e);sV(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||"#000",defaultOpacity:f.opacity,defaultText:(null==y?t.getName(e):isFinite(y)?rA(y):y)+""});var v=this.getTextContent();if(v){var m=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=m.get("position")||"middle";var x=m.get("distance");tq(x)||(x=[x,x]),v.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),sv(this,c,h,u)},e.prototype.highlight=function(){sl(this)},e.prototype.downplay=function(){su(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");wg(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),n=this.getTextContent();if(t||e||n&&!n.ignore){for(var i=1,r=this.parent;r;)r.scaleX&&(i/=r.scaleX),r=r.parent;var o=this.childOfName("line");if(this.__dirty||o.__dirty){var a=o.shape.percent,s=o.pointAt(0),l=o.pointAt(a),u=em([],l,s);if(eb(u,u),t&&(t.setPosition(s),w(t,0),t.scaleX=t.scaleY=i*a,t.markRedraw()),e&&(e.setPosition(l),w(e,1),e.scaleX=e.scaleY=i*a,e.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var c=void 0,h=void 0,p=n.__labelDistance,d=p[0]*i,f=p[1]*i,g=a/2,y=o.tangentAt(g),v=[y[1],-y[0]],m=o.pointAt(g);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]);var x=y[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var _=-Math.atan2(y[1],y[0]);l[0]<s[0]&&(_=Math.PI+_),n.rotation=_}var b=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":b=-f,h="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":b=f,h="top";break;default:b=0,h="middle"}switch(n.__position){case"end":n.x=u[0]*d+l[0],n.y=u[1]*f+l[1],c=u[0]>.8?"left":u[0]<-.8?"right":"center",h=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":n.x=-u[0]*d+s[0],n.y=-u[1]*f+s[1],c=u[0]>.8?"right":u[0]<-.8?"left":"center",h=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=d*x+s[0],n.y=s[1]+b,c=y[0]<0?"right":"left",n.originX=-d*x,n.originY=-b;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=m[0],n.y=m[1]+b,c="center",n.originY=-b;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-d*x+l[0],n.y=l[1]+b,c=y[0]>=0?"right":"left",n.originX=d*x,n.originY=-b}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||h,align:n.__align||c})}}}function w(t,e){var n=t.__specifiedRotation;if(null==n){var i=o.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(rb),wv=function(){function t(t){this.group=new rb,this._LineCtor=t||wy}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this.group,i=this._lineData;this._lineData=t,i||n.removeAll();var r=wm(t);t.diff(i).add(function(n){e._doAdd(t,n,r)}).update(function(n,o){e._doUpdate(i,t,o,n,r)}).remove(function(t){n.remove(i.getItemGraphicEl(t))}).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=wm(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){var e;t.isGroup||(e=t).animators&&e.animators.length>0||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i<t.end;i++)if(wb(e.getItemLayout(i))){var r=new this._LineCtor(e,i,this._seriesScope);r.traverse(n),this.group.add(r),e.setItemGraphicEl(i,r),this._progressiveEls.push(r)}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){pg(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){if(wb(t.getItemLayout(e))){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},t.prototype._doUpdate=function(t,e,n,i,r){var o=t.getItemGraphicEl(n);wb(e.getItemLayout(i))?(o?o.updateData(e,i,r):o=new this._LineCtor(e,i,r),e.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},t}();function wm(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:sF(e)}}function w_(t){return isNaN(t[0])||isNaN(t[1])}function wb(t){return t&&!w_(t[0])&&!w_(t[1])}var ww=[],wS=[],wM=[],wI=Math.abs;function wT(t,e,n){for(var i,r=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){ww[0]=nj(r[0],o[0],a[0],c),ww[1]=nj(r[1],o[1],a[1],c);var h=wI(eS(ww,e)-l);h<s&&(s=h,i=c)}for(var p=0;p<32;p++){var d=i+u;wS[0]=nj(r[0],o[0],a[0],i),wS[1]=nj(r[1],o[1],a[1],i),wM[0]=nj(r[0],o[0],a[0],d),wM[1]=nj(r[1],o[1],a[1],d);var h=eS(wS,e)-l;if(.01>wI(h))break;var f=eS(wM,e)-l;u/=2,h<0?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function wC(t,e){var n=[],i=[[],[],[]],r=[[],[]],o=[];e/=2,t.eachEdge(function(t,a){var s=t.getLayout(),l=t.getVisual("fromSymbol"),u=t.getVisual("toSymbol");!s.__original&&(s.__original=[eg(s[0]),eg(s[1])],s[2]&&s.__original.push(eg(s[2])));var c=s.__original;if(null!=s[2]){if(ef(i[0],c[0]),ef(i[1],c[2]),ef(i[2],c[1]),l&&"none"!==l){var h=b8(t.node1),p=wT(i,c[0],h*e);nZ(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],nZ(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(u&&"none"!==u){var h=b8(t.node2),p=wT(i,c[1],h*e);nZ(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],nZ(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}ef(s[0],i[0]),ef(s[1],i[2]),ef(s[2],i[1])}else{if(ef(r[0],c[0]),ef(r[1],c[1]),em(o,r[1],r[0]),eb(o,o),l&&"none"!==l){var h=b8(t.node1);ev(r[0],r[0],o,h*e)}if(u&&"none"!==u){var h=b8(t.node2);ev(r[1],r[1],o,-h*e)}ef(s[0],r[0]),ef(s[1],r[1])}})}function wA(t){return"view"===t.type}var wL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.init=function(t,e){var n=new gH,i=new wv,r=this.group;this._controller=new xf(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(wA(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):sL(s,l,t)}wC(t.getGraph(),b6(t));var u=t.getData();o.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var d=t.get("layout");u.graph.eachNode(function(e){var n=e.dataIndex,r=e.getGraphicEl(),o=e.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",function(o){switch(d){case"force":h.warmUp(),i._layouting||i._startForceLayoutIteration(h,p),h.setFixed(n),u.setItemLayout(n,[r.x,r.y]);break;case"circular":u.setItemLayout(n,[r.x,r.y]),e.setLayout({fixed:!0},!0),wt(t,"symbolSize",e,[o.offsetX,o.offsetY]),i.updateLayout(t);break;default:u.setItemLayout(n,[r.x,r.y]),b3(t.getGraph(),t),i.updateLayout(t)}}).on("dragend",function(){h&&h.setUnfixed(n)}),r.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(aZ(r).focus=e.getAdjacentDataIndices())}}),u.graph.eachEdge(function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(aZ(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})});var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),y=u.getLayout("cy");u.graph.eachNode(function(t){wn(t,f,g,y)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;!function i(){t.step(function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())})}()},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;(r.setPointerChecker(function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!xb(e,n,t)}),wA(t.coordinateSystem))?(r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",function(e){xm(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})}).on("zoom",function(e){xx(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),wC(t.getGraph(),b6(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})):r.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=b6(t);e.eachItemGraphicEl(function(t,e){t&&t.setSymbolScale(n)})},e.prototype.updateLayout=function(t){wC(t.getGraph(),b6(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(pm);function wD(t){return"_EC_"+t}var wk=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[wD(t)]){var i=new wP(t,e);return i.hostGraph=this,this.nodes.push(i),n[wD(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[wD(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(tJ(t)&&(t=this.nodes[t]),tJ(e)&&(e=this.nodes[e]),t instanceof wP||(t=i[wD(t)]),e instanceof wP||(e=i[wD(e)]),t&&e){var o=t.id+"-"+e.id,a=new wO(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof wP&&(t=t.id),e instanceof wP&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof wP||(e=this._nodesMap[wD(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,e,null))for(var a=[e];a.length;)for(var s=a.shift(),l=s[r],o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(t.call(i,c,s))return;a.push(c),c.__visited=!0}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(var r=0,o=t.count();r<o;r++)n[t.getRawIndex(r)].dataIndex=r;e.filterSelf(function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(var r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(var r=0,o=e.count();r<o;r++)i[e.getRawIndex(r)].dataIndex=r},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)e.addNode(n[r].id,n[r].dataIndex);for(var r=0;r<i.length;r++){var o=i[r];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),wP=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=ea(),e=ea(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var r=[i.node1],o=[i.node2],a=0;a<r.length;){var s=r[a];a++,e.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)t.set(s.inEdges[l].dataIndex,!0),r.push(s.inEdges[l].node1)}for(a=0;a<o.length;){var u=o[a];a++,e.set(u.dataIndex,!0);for(var l=0;l<u.outEdges.length;l++)t.set(u.outEdges[l].dataIndex,!0),o.push(u.outEdges[l].node2)}}}return{edge:t.keys(),node:e.keys()}},t}(),wO=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var t=ea(),e=ea();t.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],r=0;r<n.length;){var o=n[r];r++,e.set(o.dataIndex,!0);for(var a=0;a<o.inEdges.length;a++)t.set(o.inEdges[a].dataIndex,!0),n.push(o.inEdges[a].node1)}for(r=0;r<i.length;){var s=i[r];r++,e.set(s.dataIndex,!0);for(var a=0;a<s.outEdges.length;a++)t.set(s.outEdges[a].dataIndex,!0),i.push(s.outEdges[a].node2)}return{edge:t.keys(),node:e.keys()}},t}();function wR(t,e){return{getValue:function(n){var i=this[t][e];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}function wN(t,e,n,i,r){for(var o,a=new wk(i),s=0;s<t.length;s++)a.addNode(t4(t[s].id,t[s].name,s),s);for(var l=[],u=[],c=0,s=0;s<e.length;s++){var h=e[s],p=h.source,d=h.target;a.addEdge(p,d,c)&&(u.push(h),l.push(t4(rJ(h.id,null),p+" > "+d)),c++)}var f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)o=gN(t,n);else{var g=um.get(f),y=g&&g.dimensions||[];0>tV(y,"value")&&y.concat(["value"]),(o=new gA(gL(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions,n)).initData(t)}var v=new gA(["value"],n);return v.initData(u,l),r&&r(o,v),_9({mainData:o,struct:a,structAttr:"graph",datas:{node:o,edge:v},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}tF(wP,wR("hostGraph","data")),tF(wO,wR("hostGraph","edgeData"));var wE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return tf(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new vx(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),rU(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;bK(this)&&(this.__curvenessList=[],this.__edgeMap={},bQ(this));var o=wN(i,n,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=r._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=s8.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=o,i}function o(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",function(t){return t.resolveParentPath=o,t.getModel=i,t})});return tj(o.edges,function(t){!function(t,e,n,i){if(bK(n)){var r=b$(t,e,n),o=n.__edgeMap,a=o[bJ(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}(t.node1,t.node2,this,t.dataIndex)},this),o.data},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(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),cL("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return cV({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=tW(this.option.categories||[],function(t){return null!=t.value?t:tz({value:0},t)}),e=new gA(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",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:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(cW),wz={type:"graphRoam",event:"graphRoam",update:"none"},wB=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},wV=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return tf(e,t),e.prototype.getDefaultShape=function(){return new wB},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(av);function wF(t,e){var n=null==t?"":t+"";return e&&(tQ(e)?n=e.replace("{value}",n):tK(e)&&(n=e(t))),n}var wG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i,r,o=t.get(["axisLine","lineStyle","color"]),a=(i=t.get("center"),r=Math.min(n.getWidth(),n.getHeight()),{cx:rC(i[0],n.getWidth()),cy:rC(i[1],n.getHeight()),r:rC(t.get("radius"),r/2)});this._renderMain(t,e,n,o,a),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap")?yM:hM,h=u.get("show"),p=u.getModel("lineStyle"),d=p.get("width"),f=[s,l];ae(f,!a),s=f[0];for(var g=(l=f[1])-s,y=s,v=[],m=0;h&&m<i.length;m++){var x=new c({shape:{startAngle:y,endAngle:l=s+g*Math.min(Math.max(i[m][0],0),1),cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-d,r:r.r},silent:!0});x.setStyle({fill:i[m][1]}),x.setStyle(p.getLineStyle(["color","width"])),v.push(x),y=l}v.reverse(),tj(v,function(t){return o.add(t)});var _=function(t){var e;if(t<=0)return i[0][1];for(e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};this._renderTicks(t,e,n,_,r,s,l,a,d),this._renderTitleAndDetail(t,e,n,_,r),this._renderAnchor(t,r),this._renderPointer(t,e,n,_,r,s,l,a,d)},e.prototype._renderTicks=function(t,e,n,i,r,o,a,s,l){for(var u,c,h=this.group,p=r.cx,d=r.cy,f=r.r,g=+t.get("min"),y=+t.get("max"),v=t.getModel("splitLine"),m=t.getModel("axisTick"),x=t.getModel("axisLabel"),_=t.get("splitNumber"),b=m.get("splitNumber"),w=rC(v.get("length"),f),S=rC(m.get("length"),f),M=o,I=(a-o)/_,T=I/b,C=v.getModel("lineStyle").getLineStyle(),A=m.getModel("lineStyle").getLineStyle(),L=v.get("distance"),D=0;D<=_;D++){if(u=Math.cos(M),c=Math.sin(M),v.get("show")){var k=L?L+l:l,P=new hR({shape:{x1:u*(f-k)+p,y1:c*(f-k)+d,x2:u*(f-w-k)+p,y2:c*(f-w-k)+d},style:C,silent:!0});"auto"===C.stroke&&P.setStyle({stroke:i(D/_)}),h.add(P)}if(x.get("show")){var k=x.get("distance")+L,O=wF(rA(D/_*(y-g)+g),x.get("formatter")),R=i(D/_),N=u*(f-w-k)+p,E=c*(f-w-k)+d,z=x.get("rotate"),B=0;"radial"===z?(B=-M+2*Math.PI)>Math.PI/2&&(B+=Math.PI):"tangential"===z?B=-M-Math.PI/2:tJ(z)&&(B=z*Math.PI/180),0===B?h.add(new aP({style:sG(x,{text:O,x:N,y:E,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0})):h.add(new aP({style:sG(x,{text:O,x:N,y:E,verticalAlign:"middle",align:"center"},{inheritColor:R}),silent:!0,originX:N,originY:E,rotation:B}))}if(m.get("show")&&D!==_){var k=m.get("distance");k=k?k+l:l;for(var V=0;V<=b;V++){var F=new hR({shape:{x1:(u=Math.cos(M))*(f-k)+p,y1:(c=Math.sin(M))*(f-k)+d,x2:u*(f-S-k)+p,y2:c*(f-S-k)+d},silent:!0,style:A});"auto"===A.stroke&&F.setStyle({stroke:i((D+V/b)/_)}),h.add(F),M+=T}M-=T}else M+=I}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,p=[],d=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),y=t.getData(),v=y.mapDimension("value"),m=+t.get("min"),x=+t.get("max"),_=[m,x],b=[o,a];function w(e,n){var i,o=y.getItemModel(e).getModel("pointer"),a=rC(o.get("width"),r.r),s=rC(o.get("length"),r.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),c=rC(u[0],r.r),h=rC(u[1],r.r),p=o.get("keepAspect");return(i=l?dd(l,c-a/2,h-s,a,s,null,p):new wV({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:h}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(t,e){var n=f.get("roundCap")?yM:hM,i=f.get("overlap"),a=i?f.get("width"):l/y.count(),u=i?r.r-a:r.r-(t+1)*a,c=i?r.r:r.r-t*a,h=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:u,r:c}});return i&&(h.z2=rT(y.get(v,t),[m,x],[100,0],!0)),h}(g||d)&&(y.diff(c).add(function(e){var n=y.get(v,e);if(d){var i=w(e,o);sD(i,{rotation:-((isNaN(+n)?b[0]:rT(n,_,b,!0))+Math.PI/2)},t),u.add(i),y.setItemGraphicEl(e,i)}if(g){var r=S(e,o);sD(r,{shape:{endAngle:rT(n,_,b,f.get("clip"))}},t),u.add(r),aX(t.seriesIndex,y.dataType,e,r),p[e]=r}}).update(function(e,n){var i=y.get(v,e);if(d){var r=c.getItemGraphicEl(n),a=r?r.rotation:o,s=w(e,a);s.rotation=a,sL(s,{rotation:-((isNaN(+i)?b[0]:rT(i,_,b,!0))+Math.PI/2)},t),u.add(s),y.setItemGraphicEl(e,s)}if(g){var l=h[n],m=S(e,l?l.shape.endAngle:o);sL(m,{shape:{endAngle:rT(i,_,b,f.get("clip"))}},t),u.add(m),aX(t.seriesIndex,y.dataType,e,m),p[e]=m}}).execute(),y.each(function(t){var e=y.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(d){var s=y.getItemGraphicEl(t),l=y.getItemVisual(t,"style"),u=l.fill;if(s instanceof aw){var c=s.style;s.useStyle(tz({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(rT(y.get(v,t),_,[0,1],!0))),s.z2EmphasisLift=0,sb(s,e),sv(s,r,o,a)}if(g){var h=p[t];h.useStyle(y.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,sb(h,e),sv(h,r,o,a)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=dd(r,e.cx-i/2+rC(o[0],e.r),e.cy-i/2+rC(o[1],e.r),i,i,null,a);s.z2=+!!n.get("showAbove"),s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new rb,h=[],p=[],d=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add(function(t){h[t]=new aP({silent:!0}),p[t]=new aP({silent:!0})}).update(function(t,e){h[t]=o._titleEls[e],p[t]=o._detailEls[e]}).execute(),a.each(function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new rb,y=i(rT(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var m=v.get("offsetCenter"),x=r.cx+rC(m[0],r.r),_=r.cy+rC(m[1],r.r),b=h[e];b.attr({z2:2*!f,style:sG(v,{x:x,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:y})}),g.add(b)}var w=n.getModel("detail");if(w.get("show")){var S=w.get("offsetCenter"),M=r.cx+rC(S[0],r.r),I=r.cy+rC(S[1],r.r),T=rC(w.get("width"),r.r),C=rC(w.get("height"),r.r),A=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:y,b=p[e],L=w.get("formatter");b.attr({z2:2*!f,style:sG(w,{x:M,y:I,text:wF(o,L),width:isNaN(T)?null:T,height:isNaN(C)?null:C,align:"center",verticalAlign:"middle"},{inheritColor:A})}),sq(b,{normal:w},o,function(t){return wF(t,L)}),d&&sK(b,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return wF(a?a.interpolatedValue:o,L)}}),g.add(b)}c.add(g)}),this.group.add(c),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(pm),wj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return tf(e,t),e.prototype.getInitialData=function(t,e){return vm(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,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",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:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(cW),wW=["itemStyle","opacity"],wH=function(t){function e(e,n){var i=t.call(this)||this,r=new hk,o=new aP;return i.setTextContent(o),i.setTextGuideLine(r),i.updateData(e,n,!0),i}return tf(e,t),e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=t.getItemModel(e),o=t.getItemLayout(e),a=r.getModel("emphasis"),s=r.get(wW);s=null==s?1:s,n||sN(this),this.useStyle(t.getItemVisual(e,"style")),this.style.lineJoin="round",n?(this.setShape({points:o.points}),this.style.opacity=0,sD(this,{style:{opacity:s}},i,e)):sL(this,{style:{opacity:s},shape:{points:o.points}},i,e),sb(this,r),this._updateLabel(t,e),sv(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this.getTextGuideLine(),i=this.getTextContent(),r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e).label,s=t.getItemVisual(e,"style"),l=s.fill;sV(i,sF(o),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:s.opacity,defaultText:t.getName(e)},{normal:{align:a.textAlign,verticalAlign:a.verticalAlign}}),this.setTextConfig({local:!0,inside:!!a.inside,insideStroke:l,outsideFill:l});var u=a.linePoints;n.setShape({points:u}),this.textGuideLineConfig={anchor:u?new e9(u[0][0],u[0][1]):null},sL(i,{style:{x:a.x,y:a.y}},r,e),i.attr({rotation:a.rotation,originX:a.x,originY:a.y,z2:10}),va(this,vs(o),{stroke:l})},e}(hL),wZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return tf(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add(function(t){var e=new wH(i,t);i.setItemGraphicEl(t,e),o.add(e)}).update(function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)}).remove(function(e){sR(r.getItemGraphicEl(e),t,e)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(pm),wX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new vx(tU(this.getData,this),tU(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return vm(this,{coordDimensions:["value"],encodeDefaulter:tY(l9,this)})},e.prototype._defaultLabelLine=function(t){rU(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,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:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(cW);function wU(t,e){t.eachSeriesByType("funnel",function(t){var n,i=t.getData(),r=i.mapDimension("value"),o=t.get("sort"),a=lV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),s=t.get("orient"),l=a.width,u=a.height,c=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,function(t){return t}),r=[],o="ascending"===e,a=0,s=t.count();a<s;a++)r[a]=a;return tK(e)?r.sort(e):"none"!==e&&r.sort(function(t,e){return o?i[t]-i[e]:i[e]-i[t]}),r}(i,o),h=a.x,p=a.y,d="horizontal"===s?[rC(t.get("minSize"),u),rC(t.get("maxSize"),u)]:[rC(t.get("minSize"),l),rC(t.get("maxSize"),l)],f=i.getDataExtent(r),g=t.get("min"),y=t.get("max");null==g&&(g=Math.min(f[0],0)),null==y&&(y=f[1]);var v=t.get("funnelAlign"),m=t.get("gap"),x=(("horizontal"===s?l:u)-m*(i.count()-1))/i.count(),_=function(t,e){if("horizontal"===s){var n,o=rT(i.get(r,t)||0,[g,y],d,!0),a=void 0;switch(v){case"top":a=p;break;case"center":a=p+(u-o)/2;break;case"bottom":a=p+(u-o)}return[[e,a],[e,a+o]]}var c=rT(i.get(r,t)||0,[g,y],d,!0);switch(v){case"left":n=h;break;case"center":n=h+(l-c)/2;break;case"right":n=h+l-c}return[[n,e],[n+c,e]]};"ascending"===o&&(x=-x,m=-m,"horizontal"===s?h+=l:p+=u,c=c.reverse());for(var b=0;b<c.length;b++){var w=c[b],S=c[b+1],M=i.getItemModel(w);if("horizontal"===s){var I=M.get(["itemStyle","width"]);null==I?I=x:(I=rC(I,l),"ascending"===o&&(I=-I));var T=_(w,h),C=_(S,h+I);h+=I+m,i.setItemLayout(w,{points:T.concat(C.slice().reverse())})}else{var A=M.get(["itemStyle","height"]);null==A?A=x:(A=rC(A,u),"ascending"===o&&(A=-A));var T=_(w,p),C=_(S,p+A);p+=A+m,i.setItemLayout(w,{points:T.concat(C.slice().reverse())})}}n=i.hostModel.get("orient"),i.each(function(t){var e,r,o,a,s=i.getItemModel(t),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),c=i.getItemLayout(t),h=c.points,p="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(p)"insideLeft"===l?(r=(h[0][0]+h[3][0])/2+5,o=(h[0][1]+h[3][1])/2,e="left"):"insideRight"===l?(r=(h[1][0]+h[2][0])/2-5,o=(h[1][1]+h[2][1])/2,e="right"):(r=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,o=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,e="center"),a=[[r,o],[r,o]];else{var d=void 0,f=void 0,g=void 0,y=void 0,v=u.get("length");"left"===l?(d=(h[3][0]+h[0][0])/2,f=(h[3][1]+h[0][1])/2,r=(g=d-v)-5,e="right"):"right"===l?(d=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,r=(g=d+v)+5,e="left"):"top"===l?(d=(h[3][0]+h[0][0])/2,o=(y=(f=(h[3][1]+h[0][1])/2)-v)-5,e="center"):"bottom"===l?(d=(h[1][0]+h[2][0])/2,o=(y=(f=(h[1][1]+h[2][1])/2)+v)+5,e="center"):"rightTop"===l?(d="horizontal"===n?h[3][0]:h[1][0],f="horizontal"===n?h[3][1]:h[1][1],"horizontal"===n?(o=(y=f-v)-5,e="center"):(r=(g=d+v)+5,e="top")):"rightBottom"===l?(d=h[2][0],f=h[2][1],"horizontal"===n?(o=(y=f+v)+5,e="center"):(r=(g=d+v)+5,e="bottom")):"leftTop"===l?(d=h[0][0],f="horizontal"===n?h[0][1]:h[1][1],"horizontal"===n?(o=(y=f-v)-5,e="center"):(r=(g=d-v)-5,e="right")):"leftBottom"===l?(d="horizontal"===n?h[1][0]:h[3][0],f="horizontal"===n?h[1][1]:h[2][1],"horizontal"===n?(o=(y=f+v)+5,e="center"):(r=(g=d-v)-5,e="right")):(d=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,"horizontal"===n?(o=(y=f+v)+5,e="center"):(r=(g=d+v)+5,e="left")),"horizontal"===n?r=g=d:o=y=f,a=[[d,f],[g,y]]}c.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:e,inside:p}})})}var wY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new rb,n._initialized=!1,n}return tf(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,u=wQ(t);if(o.diff(a).add(function(t){w$(wK(o,r,t,l,s),o,t,u)}).update(function(e,n){var i=a.getItemGraphicEl(n),r=wq(o,e,l,s);o.setItemGraphicEl(e,i),sL(i,{shape:{points:r}},t,e),sN(i),w$(i,o,e,u)}).remove(function(t){var e=a.getItemGraphicEl(t);r.remove(e)}).execute(),!this._initialized){this._initialized=!0;var c,h,p,d,f,g,y,v=(c=s,h=t,p=function(){setTimeout(function(){r.removeClipPath()})},d=c.model,g=new aL({shape:{x:(f=c.getRect()).x,y:f.y,width:f.width,height:f.height}}),y="horizontal"===d.get("layout")?"width":"height",g.setShape(y,0),sD(g,{shape:{width:f.width,height:f.height}},h,p),g);r.setClipPath(v)}this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,o=r.dimensions,a=wQ(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=wK(i,this._dataGroup,l,o,r);u.incremental=!0,w$(u,i,l,a),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(pm);function wq(t,e,n,i){for(var r=[],o=0;o<n.length;o++){var a,s=n[o],l=t.get(t.mapDimension(s),e);a=l,("category"===i.getAxis(s).type?null==a:null==a||isNaN(a))||r.push(i.dataToPoint(l,s))}return r}function wK(t,e,n,i,r){var o=new hk({shape:{points:wq(t,n,i,r)},z2:10});return e.add(o),t.setItemGraphicEl(n,o),o}function wQ(t){var e,n=t.get("smooth",!0);return!0===n&&(n=.3),(e=n=rF(n))!=e&&(n=0),{smooth:n}}function w$(t,e,n,i){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",i.smooth);var r=e.getItemModel(n),o=r.getModel("emphasis");sb(t,r,"lineStyle"),sv(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}var wJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return tf(e,t),e.prototype.getInitialData=function(t,e){return gN(null,this,{useEncodeDefaulter:tU(w0,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,function(e,r){t===e&&i.push(n.getRawIndex(r))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(cW);function w0(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return tj(e.dimensions,function(t){var e=+t.replace("dim","");n[t]=e}),n}}var w1=["lineStyle","opacity"];let w2={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,i={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,function(t,n){var r=i[t];if("normal"===t&&e.hasItemOption){var o=e.getItemModel(n).get(w1,!0);null!=o&&(r=o)}e.ensureUniqueItemVisual(n,"style").opacity=r},t.start,t.end)}}}};function w5(t){var e;(function(t){if(!t.parallel){var e=!1;tj(t.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(t.parallel=[{}])}})(t),tj(rX((e=t).parallelAxis),function(t){if(t0(t)){var n=t.parallelIndex||0,i=rX(e.parallel)[n];i&&i.parallelAxisDefault&&tN(t,i.parallelAxisDefault,!1)}})}var w3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},tj(w4,function(t,e){n.getZr().on(e,this._handlers[e]=tU(t,this))},this)),pA(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){pL(this,"_throttledDispatchExpand"),tj(this._handlers,function(t,n){e.getZr().off(n,t)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(tz({type:"parallelAxisExpand"},t))},e.type="parallel",e}(cQ),w4={mousedown:function(t){w6(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(w6(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2)>5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&w6(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function w6(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var w8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&tN(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){tj(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[];tj(tZ(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(t){return(t.get("parallelIndex")||0)===this.componentIndex},this),function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)})},e.type="parallel",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:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(lX),w9=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return tf(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(mI);function w7(t,e,n,i,r,o){t=t||0;var a,s=n[1]-n[0];if(null!=r&&(r=Se(r,[0,s])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var l=Math.abs(e[1]-e[0]);l=Se(l,[0,s]),r=o=Se(l,[r,o]),i=0}e[0]=Se(e[0],n),e[1]=Se(e[1],n);var u=St(e,i);e[i]+=t;var c=r||0,h=n.slice();return u.sign<0?h[0]+=c:h[1]-=c,e[i]=Se(e[i],h),a=St(e,i),null!=r&&(a.sign!==u.sign||a.span<r)&&(e[1-i]=e[i]+u.sign*r),a=St(e,i),null!=o&&a.span>o&&(e[1-i]=e[i]+a.sign*o),e}function St(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function Se(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var Sn=Math.min,Si=Math.max,Sr=Math.floor,So=Math.ceil,Sa=Math.PI,Ss=function(){function t(t,e,n){this.type="parallel",this._axesMap=ea(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;tj(i,function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new w9(t,ma(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this},this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();tj(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),mo(e.scale,e.model)},this)}},this)},t.prototype.resize=function(t,e){this._rect=lV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a=+("horizontal"!==o),s=n[r[a]],l=[0,s],u=this.dimensions.length,c=Sl(e.get("axisExpandWidth"),l),h=Sl(e.get("axisExpandCount")||0,[0,u]),p=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,d=e.get("axisExpandWindow");d?(t=Sl(d[1]-d[0],l),d[1]=d[0]+t):(t=Sl(c*(h-1),l),(d=[c*(e.get("axisExpandCenter")||Sr(u/2))-t/2])[1]=d[0]+t);var f=(s-t)/(u-h);f<3&&(f=0);var g=[Sr(rA(d[0]/c,1))+1,So(rA(d[1]/c,1))-1],y=f/c*d[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:p,axisExpandWidth:c,axisCollapseWidth:f,axisExpandWindow:d,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:y}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each(function(t){var e=[0,i.axisLength],n=+!!t.inverse;t.setExtent(e[n],e[1-n])}),tj(n,function(e,n){var o=(i.axisExpandable?function(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,c=!0):(n=r-(a-1-t)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}:function(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}})(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s=[a[r].x+t.x,a[r].y+t.y],l={horizontal:Sa/2,vertical:0}[r],u=e0();e4(u,u,l),e3(u,u,s),this._axesLayout[e]={position:s,rotation:l,transform:u,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];tj(o,function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)});for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var c=void 0;if(l){c="active";for(var h=t.getValues(a,u),p=0,d=o.length;p<d;p++)if("inactive"===s[p].getActiveState(h[p])){c="inactive";break}}else c="normal";e(c,u)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,r=t.length;i<r;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){return po([t,0],this._axesLayout[e].transform)},t.prototype.getAxisLayout=function(t){return tR(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e,n=this._makeLayoutInfo(),i=n.pixelDimIndex,r=n.axisExpandWindow.slice(),o=r[1]-r[0],a=[0,n.axisExpandWidth*(n.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:r};var s=t[i]-n.layoutBase-n.axisExpandWindow0Pos,l="slide",u=n.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<o*c[0]?(l="jump",e=s-o*c[2]):h&&u&&s>o*(1-c[0])?(l="jump",e=s-o*(1-c[2])):(e=s-o*c[1])>=0&&(e=s-o*(1-c[1]))<=0&&(e=0),(e*=n.axisExpandWidth/u)?w7(e,r,a,"all"):l="none";else{var p=r[1]-r[0];(r=[Si(0,a[1]*s/p-p/2)])[1]=Sn(a[1],r[0]+p),r[0]=r[1]-p}return{axisExpandWindow:r,behavior:l}},t}();function Sl(t,e){return Sn(Si(t,e[0]),e[1])}let Su={create:function(t,e){var n=[];return t.eachComponent("parallel",function(i,r){var o=new Ss(i,t,e);o.name="parallel_"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)}),t.eachSeries(function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",r8).models[0];t.coordinateSystem=e.coordinateSystem}}),n}};var Sc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return tf(e,t),e.prototype.getAreaSelectStyle=function(){return op([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=tR(t);if(e)for(var n=e.length-1;n>=0;n--)rL(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i<r;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"},e}(lX);tF(Sc,vA);var Sh=Math.min,Sp=Math.max,Sd=Math.pow,Sf="globalPan",Sg={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Sy={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Sv={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Sm=0,Sx=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new rb,n._uid="brushController_"+Sm++,tj(SX,function(t,e){this._handlers[e]=tU(t,this)},n),n}return tf(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e,n=this._zr;this._enableGlobalPan||(e=this._uid,xd(n)[Sf]=e),tj(this._handlers,function(t,e){n.on(e,t)}),this._brushType=t.brushType,this._brushOption=tN(tR(Sv),t,!0)},e.prototype._doDisableBrush=function(){var t,e,n=this._zr;t=this._uid,(e=xd(n))[Sf]===t&&(e[Sf]=null),tj(this._handlers,function(t,e){n.off(e,t)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};tj(t,function(t){e[t.panelId]=tR(t)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=tW(t,function(t){return tN(tR(Sv),t,!0)});var e=this._covers,n=this._covers=[],i=this,r=this._creatingCover;return new gd(e,t,function(t,e){return o(t.__brushOption,e)},o).add(a).update(a).remove(function(t){e[t]!==r&&i.group.remove(e[t])}).execute(),this;function o(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function a(o,a){var s=t[o];if(null!=a&&e[a]===r)n[o]=e[a];else{var l=n[o]=null!=a?(e[a].__brushOption=s,e[a]):Sb(i,S_(i,s));SM(i,l)}}},e.prototype.unmount=function(){return this.enableBrush(!1),SA(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(eD);function S_(t,e){var n=SY[e.brushType].createCover(t,e);return n.__brushOption=e,SS(n,e),t.group.add(n),n}function Sb(t,e){var n=SI(e);return n.endCreating&&(n.endCreating(t,e),SS(e,e.__brushOption)),e}function Sw(t,e){var n=e.__brushOption;SI(e).updateCoverShape(t,e,n.range,n)}function SS(t,e){var n=e.z;null==n&&(n=1e4),t.traverse(function(t){t.z=n,t.z2=n})}function SM(t,e){SI(e).updateCommon(t,e),Sw(t,e)}function SI(t){return SY[t.__brushOption.brushType]}function ST(t,e,n){var i,r=t._panels;if(!r)return!0;var o=t._transform;return tj(r,function(t){t.isTargetByCursor(e,n,o)&&(i=t)}),i}function SC(t,e){var n=t._panels;if(!n)return!0;var i=e.__brushOption.panelId;return null==i||n[i]}function SA(t){var e=t._covers,n=e.length;return tj(e,function(e){t.group.remove(e)},t),e.length=0,!!n}function SL(t,e){var n=tW(t._covers,function(t){var e=t.__brushOption,n=tR(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function SD(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function Sk(t,e,n,i){var r=new rb;return r.add(new aL({name:"main",style:SN(n),silent:!0,draggable:!0,cursor:"move",drift:tY(SB,t,e,r,["n","s","w","e"]),ondragend:tY(SL,e,{isEnd:!0})})),tj(i,function(n){r.add(new aL({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:tY(SB,t,e,r,n),ondragend:tY(SL,e,{isEnd:!0})}))}),r}function SP(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=Sp(r,6),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],h=n[1][1],p=c-o+r/2,d=h-o+r/2,f=c-a,g=h-s,y=f+r,v=g+r;SR(t,e,"main",a,s,f,g),i.transformable&&(SR(t,e,"w",l,u,o,v),SR(t,e,"e",p,u,o,v),SR(t,e,"n",l,u,y,o),SR(t,e,"s",l,d,y,o),SR(t,e,"nw",l,u,o,o),SR(t,e,"ne",p,u,o,o),SR(t,e,"sw",l,d,o,o),SR(t,e,"se",p,d,o,o))}function SO(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(SN(n)),r.attr({silent:!i,cursor:i?"move":"default"}),tj([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var r,o,a,s=e.childOfName(n.join("")),l=1===n.length?Sz(t,n[0]):(("e"===(a=[Sz(r=t,(o=n)[0]),Sz(r,o[1])])[0]||"w"===a[0])&&a.reverse(),a.join(""));s&&s.attr({silent:!i,invisible:!i,cursor:i?Sy[l]+"-resize":null})})}function SR(t,e,n,i,r,o,a){var s,l,u,c=e.childOfName(n);c&&c.setShape((l=Sh((s=SG(t,e,[[i,r],[i+o,r+a]]))[0][0],s[1][0]),{x:l,y:u=Sh(s[0][1],s[1][1]),width:Sp(s[0][0],s[1][0])-l,height:Sp(s[0][1],s[1][1])-u}))}function SN(t){return tB({strokeNoScale:!0},t.brushStyle)}function SE(t,e,n,i){var r=[Sh(t,n),Sh(e,i)],o=[Sp(t,n),Sp(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function Sz(t,e){return({left:"w",right:"e",top:"n",bottom:"s"})[pa({w:"left",e:"right",n:"top",s:"bottom"}[e],pr(t.group))]}function SB(t,e,n,i,r,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=SF(e,r,o);tj(i,function(t){var e=Sg[t];s[e[0]][e[1]]+=l[e[0]]}),a.range=t.fromRectRange(SE(s[0][0],s[1][0],s[0][1],s[1][1])),SM(e,n),SL(e,{isEnd:!1})}function SV(t,e,n,i){var r=e.__brushOption.range,o=SF(t,n,i);tj(r,function(t){t[0]+=o[0],t[1]+=o[1]}),SM(t,e),SL(t,{isEnd:!1})}function SF(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function SG(t,e,n){var i=SC(t,e);return i&&!0!==i?i.clipPath(n,t._transform):tR(n)}function Sj(t){var e=t.event;e.preventDefault&&e.preventDefault()}function SW(t,e,n){return t.childOfName("main").contain(e,n)}function SH(t,e,n,i){var r,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1];return Sd(r*r+o*o,.5)>6}(t)||o){if(a&&!o){"single"===s.brushMode&&SA(t);var l=tR(s);l.brushType=SZ(l.brushType,a),l.panelId=!0===a?null:a.panelId,o=t._creatingCover=S_(t,l),t._covers.push(o)}if(o){var u=SY[SZ(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(SG(t,o,t._track)),i&&(Sb(t,o),u.updateCommon(t,o)),Sw(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&ST(t,e,n)&&SA(t)&&(r={isEnd:i,removeOnClick:!0});return r}function SZ(t,e){return"auto"===t?e.defaultBrushType:t}var SX={mousedown:function(t){if(this._dragging)SU(this,t);else if(!t.target||!t.target.draggable){Sj(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=ST(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(!function(t,e,n){if(!(!t._brushType||(i=t,r=e.offsetX,o=e.offsetY,a=i._zr,r<0||r>a.getWidth()||o<0||o>a.getHeight()))){var i,r,o,a,s=t._zr,l=t._covers,u=ST(t,e,n);if(!t._dragging)for(var c=0;c<l.length;c++){var h=l[c].__brushOption;if(u&&(!0===u||h.panelId===u.panelId)&&SY[h.brushType].contain(l[c],n[0],n[1]))return}u&&s.setCursorStyle("crosshair")}}(this,t,i),this._dragging){Sj(t);var r=SH(this,t,i,!1);r&&SL(this,r)}},mouseup:function(t){SU(this,t)}};function SU(t,e){if(t._dragging){Sj(e);var n=e.offsetX,i=e.offsetY,r=t.group.transformCoordToLocal(n,i),o=SH(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&SL(t,o)}}var SY={lineX:Sq(0),lineY:Sq(1),rect:{createCover:function(t,e){function n(t){return t}return Sk({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=SD(t);return SE(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){SP(t,e,n,i)},updateCommon:SO,contain:SW},polygon:{createCover:function(t,e){var n=new rb;return n.add(new hk({name:"main",style:SN(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new hL({name:"main",draggable:!0,drift:tY(SV,t,e),ondragend:tY(SL,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:SG(t,e,n)})},updateCommon:SO,contain:SW}};function Sq(t){return{createCover:function(e,n){return Sk({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=SD(e);return[Sh(n[0][t],n[1][t]),Sp(n[0][t],n[1][t])]},updateCoverShape:function(e,n,i,r){var o,a=SC(e,n);if(!0!==a&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),SP(e,n,l,r)},updateCommon:SO,contain:SW}}function SK(t){return t=SJ(t),function(e){return pl(e,t)}}function SQ(t,e){return t=SJ(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}}function S$(t,e,n){var i=SJ(t);return function(t,r){return i.contain(r[0],r[1])&&!xb(t,e,n)}}function SJ(t){return ns.create(t)}var S0=["axisLine","axisTickLabel","axisName"],S1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new Sx(n.getZr())).on("brush",tU(this._onBrush,this))},e.prototype.render=function(t,e,n,i){var r,o,a;if(r=t,o=e,!(a=i)||"axisAreaSelect"!==a.type||o.findComponents({mainType:"parallelAxis",query:a})[0]!==r){this.axisModel=t,this.api=n,this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new rb,this.group.add(this._axisGroup),t.get("show")){var l,u=(l=t,e.getComponent("parallel",l.get("parallelIndex"))),c=u.coordinateSystem,h=t.getAreaSelectStyle(),p=h.width,d=t.axis.dim,f=tz({strokeContainThreshold:p},c.getAxisLayout(d)),g=new mB(t,f);tj(S0,g.add,g),this._axisGroup.add(g.getGroup()),this._refreshBrushController(f,h,t,u,p,n),ps(s,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,i,r,o){var a,s,l=n.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,.1*Math.abs(u)),h=ns.create({x:l[0],y:-r/2,width:u,height:r});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:SK(h),isTargetByCursor:S$(h,o,i),getLinearBrushOtherExtent:SQ(h,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers((s=(a=n).axis,tW(a.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[s.dataToCoord(t[0],!0),s.dataToCoord(t[1],!0)]}})))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,r=tW(e,function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(cQ),S2={type:"axisAreaSelect",event:"axisAreaSelected"},S5={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function S3(t){t.registerComponentView(w3),t.registerComponentModel(w8),t.registerCoordinateSystem("parallel",Su),t.registerPreprocessor(w5),t.registerComponentModel(Sc),t.registerComponentView(S1),vF(t,"parallel",Sc,S5),t.registerAction(S2,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(e){e.axis.model.setActiveIntervals(t.intervals)})}),t.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(e){e.setAxisExpand(t)})})}var S4=function(){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},S6=function(t){function e(e){return t.call(this,e)||this}return tf(e,t),e.prototype.getDefaultShape=function(){return new S4},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){sl(this)},e.prototype.downplay=function(){su(this)},e}(av),S8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return tf(e,t),e.prototype.render=function(t,e,n){var i,r,o,a,s=this,l=t.getGraph(),u=this.group,c=t.layoutInfo,h=c.width,p=c.height,d=t.getData(),f=t.getData("edge"),g=t.get("orient");this._model=t,u.removeAll(),u.x=c.x,u.y=c.y,l.eachEdge(function(e){var n,i,r,o,a,s,l,c,d=new S6,y=aZ(d);y.dataIndex=e.dataIndex,y.seriesIndex=t.seriesIndex,y.dataType="edge";var v=e.getModel(),m=v.getModel("lineStyle"),x=m.get("curveness"),_=e.node1.getLayout(),b=e.node1.getModel(),w=b.get("localX"),S=b.get("localY"),M=e.node2.getLayout(),I=e.node2.getModel(),T=I.get("localX"),C=I.get("localY"),A=e.getLayout();d.shape.extent=Math.max(1,A.dy),d.shape.orient=g,"vertical"===g?(n=(null!=w?w*h:_.x)+A.sy,i=(null!=S?S*p:_.y)+_.dy,r=(null!=T?T*h:M.x)+A.ty,o=null!=C?C*p:M.y,a=n,s=i*(1-x)+o*x,l=r,c=i*x+o*(1-x)):(n=(null!=w?w*h:_.x)+_.dx,i=(null!=S?S*p:_.y)+A.sy,r=null!=T?T*h:M.x,o=(null!=C?C*p:M.y)+A.ty,a=n*(1-x)+r*x,s=i,l=n*x+r*(1-x),c=o),d.setShape({x1:n,y1:i,x2:r,y2:o,cpx1:a,cpy1:s,cpx2:l,cpy2:c}),d.useStyle(m.getItemStyle()),S9(d.style,g,e);var L=""+v.get("value"),D=sF(v,"edgeLabel");sV(d,D,{labelFetcher:{getFormattedLabel:function(e,n,i,r,o,a){return t.getFormattedLabel(e,n,"edge",r,t8(o,D.normal&&D.normal.get("formatter"),L),a)}},labelDataIndex:e.dataIndex,defaultText:L}),d.setTextConfig({position:"inside"});var k=v.getModel("emphasis");sb(d,v,"lineStyle",function(t){var n=t.getItemStyle();return S9(n,g,e),n}),u.add(d),f.setItemGraphicEl(e.dataIndex,d);var P=k.get("focus");sv(d,"adjacency"===P?e.getAdjacentDataIndices():"trajectory"===P?e.getTrajectoryDataIndices():P,k.get("blurScope"),k.get("disabled"))}),l.eachNode(function(e){var n=e.getLayout(),i=e.getModel(),r=i.get("localX"),o=i.get("localY"),a=i.getModel("emphasis"),s=i.get(["itemStyle","borderRadius"])||0,l=new aL({shape:{x:null!=r?r*h:n.x,y:null!=o?o*p:n.y,width:n.dx,height:n.dy,r:s},style:i.getModel("itemStyle").getItemStyle(),z2:10});sV(l,sF(i),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),l.disableLabelAnimation=!0,l.setStyle("fill",e.getVisual("color")),l.setStyle("decal",e.getVisual("style").decal),sb(l,i),u.add(l),d.setItemGraphicEl(e.dataIndex,l),aZ(l).dataType="node";var c=a.get("focus");sv(l,"adjacency"===c?e.getAdjacentDataIndices():"trajectory"===c?e.getTrajectoryDataIndices():c,a.get("blurScope"),a.get("disabled"))}),d.eachItemGraphicEl(function(e,i){d.getItemModel(i).get("draggable")&&(e.drift=function(e,r){s._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=r,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:d.getRawIndex(i),localX:this.shape.x/h,localY:this.shape.y/p})},e.ondragend=function(){s._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")}),!this._data&&t.isAnimationEnabled()&&u.setClipPath((i=u.getBoundingRect(),r=t,o=function(){u.removeClipPath()},sD(a=new aL({shape:{x:i.x-10,y:i.y-10,width:0,height:i.height+20}}),{shape:{width:i.width+20}},r,o),a)),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(pm);function S9(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");tQ(i)&&tQ(r)&&(t.fill=new hW(0,0,+("horizontal"===e),+("vertical"===e),[{color:i,offset:0},{color:r,offset:1}]))}}var S7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=t.levels||[];this.levelModels=[];for(var o=this.levelModels,a=0;a<r.length;a++)null!=r[a].depth&&r[a].depth>=0&&(o[r[a].depth]=new s8(r[a],this,e));return wN(i,n,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t}),e.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t})}).data},e.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value;return cL("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:i(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,n).data.name;return cL("nameValue",{name:null!=l?l+"":null,value:s,noValue:i(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);return null==i.value&&"node"===n&&(i.value=this.getGraph().getNodeByIndex(e).getLayout().value),i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(cW);function Mt(t,e){t.eachSeriesByType("sankey",function(t){var n,i,r,o,a,s,l,u,c,h,p,d,f=t.get("nodeWidth"),g=t.get("nodeGap"),y=(n=t,i=e,lV(n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}));t.layoutInfo=y;var v=y.width,m=y.height,x=t.getGraph(),_=x.nodes,b=x.edges;tj(_,function(t){var e=Math.max(Mu(t.outEdges,Ml),Mu(t.inEdges,Ml),t.getValue()||0);t.setLayout({value:e},!0)});var w=0!==tZ(_,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations");r=_,o=b,a=f,s=g,l=v,u=m,c=w,h=t.get("orient"),function(t,e,n,i,r,o,a){for(var s,l,u,c=[],h=[],p=[],d=[],f=0,g=0;g<e.length;g++)c[g]=1;for(var g=0;g<t.length;g++)h[g]=t[g].inEdges.length,0===h[g]&&p.push(t[g]);for(var y=-1;p.length;){for(var v=0;v<p.length;v++){var m=p[v],x=m.hostGraph.data.getRawDataItem(m.dataIndex),_=null!=x.depth&&x.depth>=0;_&&x.depth>y&&(y=x.depth),m.setLayout({depth:_?x.depth:f},!0),"vertical"===o?m.setLayout({dy:n},!0):m.setLayout({dx:n},!0);for(var b=0;b<m.outEdges.length;b++){var w=m.outEdges[b];c[e.indexOf(w)]=0;var S=w.node2,M=t.indexOf(S);0==--h[M]&&0>d.indexOf(S)&&d.push(S)}}++f,p=d,d=[]}for(var g=0;g<c.length;g++)if(1===c[g])throw Error("Sankey is a DAG, the original data has cycle!");var I=y>f-1?y:f-1;a&&"left"!==a&&function(t,e,n){if("right"===e){for(var i,r,o=[],a=t,s=0;a.length;){for(var l=0;l<a.length;l++){var u=a[l];u.setLayout({skNodeHeight:s},!0);for(var c=0;c<u.inEdges.length;c++){var h=u.inEdges[c];0>o.indexOf(h.node1)&&o.push(h.node1)}}a=o,o=[],++s}tj(t,function(t){Me(t)||t.setLayout({depth:Math.max(0,n-t.getLayout().skNodeHeight)},!0)})}else{"justify"===e&&(i=t,r=n,tj(i,function(t){Me(t)||t.outEdges.length||t.setLayout({depth:r},!0)}))}}(t,a,I),s=t,l="vertical"===o?(r-n)/I:(i-n)/I,u=o,tj(s,function(t){var e=t.getLayout().depth*l;"vertical"===u?t.setLayout({y:e},!0):t.setLayout({x:e},!0)})}(r,o,a,l,u,h,t.get("nodeAlign")),function(t,e,n,i,r,o,a){var s,l,u,c,h,p,d,f,g,y,v,m=(s=t,l=[],u="vertical"===a?"y":"x",(c=oe(s,function(t){return t.getLayout()[u]})).keys.sort(function(t,e){return t-e}),tj(c.keys,function(t){l.push(c.buckets.get(t))}),l);h=m,p=e,d=n,f=i,g=r,y=a,v=1/0,tj(h,function(t){var e=t.length,n=0;tj(t,function(t){n+=t.getLayout().value});var i="vertical"===y?(f-(e-1)*g)/n:(d-(e-1)*g)/n;i<v&&(v=i)}),tj(h,function(t){tj(t,function(t,e){var n=t.getLayout().value*v;"vertical"===y?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))})}),tj(p,function(t){var e=t.getValue()*v;t.setLayout({dy:e},!0)}),Mn(m,r,n,i,a);for(var x=1;o>0;o--)(function(t,e,n){tj(t.slice().reverse(),function(t){tj(t,function(t){if(t.outEdges.length){var i=Mu(t.outEdges,Mi,n)/Mu(t.outEdges,Ml);if(isNaN(i)){var r=t.outEdges.length;i=r?Mu(t.outEdges,Mr,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-Ms(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-Ms(t,n))*e;t.setLayout({y:a},!0)}}})})})(m,x*=.99,a),Mn(m,r,n,i,a),function(t,e,n){tj(t,function(t){tj(t,function(t){if(t.inEdges.length){var i=Mu(t.inEdges,Mo,n)/Mu(t.inEdges,Ml);if(isNaN(i)){var r=t.inEdges.length;i=r?Mu(t.inEdges,Ma,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-Ms(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-Ms(t,n))*e;t.setLayout({y:a},!0)}}})})}(m,x,a),Mn(m,r,n,i,a)}(r,o,u,l,s,c,h),p=r,d="vertical"===h?"x":"y",tj(p,function(t){t.outEdges.sort(function(t,e){return t.node2.getLayout()[d]-e.node2.getLayout()[d]}),t.inEdges.sort(function(t,e){return t.node1.getLayout()[d]-e.node1.getLayout()[d]})}),tj(p,function(t){var e=0,n=0;tj(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),tj(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})})}function Me(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function Mn(t,e,n,i,r){var o="vertical"===r?"x":"y";tj(t,function(t){t.sort(function(t,e){return t.getLayout()[o]-e.getLayout()[o]});for(var a,s,l,u=0,c=t.length,h="vertical"===r?"dx":"dy",p=0;p<c;p++)(l=u-(s=t[p]).getLayout()[o])>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;if((l=u-e-("vertical"===r?i:n))>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(var p=c-2;p>=0;--p)(l=(s=t[p]).getLayout()[o]+s.getLayout()[h]+e-u)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}})}function Mi(t,e){return Ms(t.node2,e)*t.getValue()}function Mr(t,e){return Ms(t.node2,e)}function Mo(t,e){return Ms(t.node1,e)*t.getValue()}function Ma(t,e){return Ms(t.node1,e)}function Ms(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Ml(t){return t.getValue()}function Mu(t,e,n){for(var i=0,r=t.length,o=-1;++o<r;){var a=+e(t[o],n);isNaN(a)||(i+=a)}return i}function Mc(t){t.eachSeriesByType("sankey",function(t){var e=t.getGraph(),n=e.nodes,i=e.edges;if(n.length){var r=1/0,o=-1/0;tj(n,function(t){var e=t.getLayout().value;e<r&&(r=e),e>o&&(o=e)}),tj(n,function(e){var n=new bb({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),i=e.getModel().get(["itemStyle","color"]);null!=i?(e.setVisual("color",i),e.setVisual("style",{fill:i})):(e.setVisual("color",n),e.setVisual("style",{fill:n}))})}i.length&&tj(i,function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)})})}var Mh=function(){function t(){}return t.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&null!=e.get(t)},t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!this._hasEncodeRule("x")):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var l=["x","y"],u=+("horizontal"!==t.layout),c=this._baseAxisDim=l[u],h=l[1-u],p=[r,o],d=p[u].get("type"),f=p[1-u].get("type"),g=t.data;if(g&&i){var y=[];tj(g,function(t,e){var n;tq(t)?(n=t.slice(),t.unshift(e)):tq(t.value)?((n=tz({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,y.push(n)}),t.data=y}var v=this.defaultValueDimensions,m=[{name:c,type:gy(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:gy(f),dimsDef:v.slice()}];return vm(this,{coordDimensions:m,dimensionsCount:v.length+1,encodeDefaulter:tY(l8,m,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),Mp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return tf(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(cW);tF(Mp,Mh,!0);var Md=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a=+("horizontal"===t.get("layout"));i.diff(o).add(function(t){if(i.hasValue(t)){var e=My(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(!i.hasValue(t))return void r.remove(n);var s=i.getItemLayout(t);n?(sN(n),Mv(s,n,i,t)):n=My(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},e.type="boxplot",e}(pm),Mf=function(){},Mg=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return tf(e,t),e.prototype.getDefaultShape=function(){return new Mf},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(av);function My(t,e,n,i,r){var o,a,s,l=t.ends,u=new Mg({shape:{points:r?(o=l,a=i,s=t,tW(o,function(t){return(t=t.slice())[a]=s.initBaseline,t})):l}});return Mv(t,u,e,n,r),u}function Mv(t,e,n,i,r){var o=n.hostModel;(0,xe[r?"initProps":"updateProps"])(e,{shape:{points:t.ends}},o,i),e.useStyle(n.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var a=n.getItemModel(i),s=a.getModel("emphasis");sb(e,a),sv(e,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function Mm(t){var e,n;tj((e=[],n=[],t.eachSeriesByType("boxplot",function(t){var i=t.getBaseAxis(),r=tV(n,i);r<0&&(r=n.length,n[r]=i,e[r]={axis:i,seriesModels:[]}),e[r].seriesModels.push(t)}),e),function(t){var e=t.seriesModels;e.length&&(function(t){var e,n=t.axis,i=t.seriesModels,r=i.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],s=[];if("category"===n.type)e=n.getBandWidth();else{var l=0;tj(i,function(t){l=Math.max(l,t.getData().count())});var u=n.getExtent();e=Math.abs(u[1]-u[0])/l}tj(i,function(t){var n=t.get("boxWidth");tq(n)||(n=[n,n]),s.push([rC(n[0],e)||0,rC(n[1],e)||0])});var c=.8*e-2,h=c/r*.3,p=(c-h*(r-1))/r,d=p/2-c/2;tj(i,function(t,e){a.push(d),d+=h+p,o.push(Math.min(Math.max(p,s[e][0]),s[e][1]))})}(t),tj(e,function(e,n){!function(t,e,n){var i=t.coordinateSystem,r=t.getData(),o=n/2,a=+("horizontal"!==t.get("layout")),s=1-a,l=["x","y"],u=r.mapDimension(l[a]),c=r.mapDimensionsAll(l[s]);if(null!=u&&!(c.length<5))for(var h=0;h<r.count();h++){var p=r.get(u,h),d=x(p,c[2],h),f=x(p,c[0],h),g=x(p,c[1],h),y=x(p,c[3],h),v=x(p,c[4],h),m=[];_(m,g,!1),_(m,y,!0),m.push(f,g,v,y),b(m,f),b(m,v),b(m,d),r.setItemLayout(h,{initBaseline:d[s],ends:m})}function x(t,n,o){var l,u=r.get(n,o),c=[];return c[a]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(c),l[a]+=e),l}function _(t,e,n){var i=e.slice(),r=e.slice();i[a]+=o,r[a]-=o,n?t.push(i,r):t.push(r,i)}function b(t,e){var n=e.slice(),i=e.slice();n[a]-=o,i[a]+=o,t.push(n,i)}}(e,t.boxOffsetList[n],t.boxWidthList[n])}))})}var Mx={type:"echarts:boxplot",transform:function(t){var e=t.upstream;e.sourceFormat!==l0&&uu("");var n=function(t,e){for(var n=[],i=[],r=(e=e||{}).boundIQR,o="none"===r||0===r,a=0;a<t.length;a++){var s=rL(t[a].slice()),l=rB(s,.25),u=rB(s,.5),c=rB(s,.75),h=s[0],p=s[s.length-1],d=(null==r?1.5:r)*(c-l),f=o?h:Math.max(h,l-d),g=o?p:Math.min(p,c+d),y=e.itemNameFormatter,v=tK(y)?y({value:a}):tQ(y)?y.replace("{value}",a+""):a+"";n.push([v,f,l,u,c,g]);for(var m=0;m<s.length;m++){var x=s[m];if(x<f||x>g){var _=[v,x];i.push(_)}}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}},M_=["itemStyle","borderColor"],Mb=["itemStyle","borderColor0"],Mw=["itemStyle","borderColorDoji"],MS=["itemStyle","color"],MM=["itemStyle","color0"];function MI(t,e){return e.get(t>0?MS:MM)}function MT(t,e){return e.get(0===t?Mw:t>0?M_:Mb)}var MC={seriesType:"candlestick",plan:c$(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),r=e.getItemLayout(n).sign,o=i.getItemStyle();o.fill=MI(r,i),o.stroke=MT(r,i)||o.fill,tz(e.ensureUniqueItemVisual(n,"style"),o)}}}}},MA=["color","borderColor"],ML=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){pg(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e!==this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add(function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(!(o&&MO(s,a))){var l=MP(a,n,!0);sD(l,{shape:{points:a.ends}},t,n),MR(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}}}).update(function(a,l){var u=n.getItemGraphicEl(l);if(!e.hasValue(a))return void i.remove(u);var c=e.getItemLayout(a);o&&MO(s,c)?i.remove(u):(u?(sL(u,{shape:{points:c.ends}},t,a),sN(u)):u=MP(c,a),MR(u,e,a,r),i.add(u),e.setItemGraphicEl(a,u))}).remove(function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)}).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),Mz(t,this.group);var e=t.get("clip",!0)?g6(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox");null!=(n=t.next());){var o=MP(i.getItemLayout(n),n);MR(o,i,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){Mz(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(pm),MD=function(){},Mk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return tf(e,t),e.prototype.getDefaultShape=function(){return new MD},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(av);function MP(t,e,n){var i,r,o=t.ends;return new Mk({shape:{points:n?(i=o,r=t,tW(i,function(t){return(t=t.slice())[1]=r.initBaseline,t})):o},z2:100})}function MO(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function MR(t,e,n,i){var r=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=i,sb(t,r);var o=e.getItemLayout(n).sign;tj(t.states,function(t,e){var n=r.getModel(e),i=MI(o,n),a=MT(o,n)||i,s=t.style||(t.style={});i&&(s.fill=i),a&&(s.stroke=a)});var a=r.getModel("emphasis");sv(t,a.get("focus"),a.get("blurScope"),a.get("disabled"))}var MN=function(){},ME=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return tf(e,t),e.prototype.getDefaultShape=function(){return new MN},e.prototype.buildPath=function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];t.moveTo(r,n[i++]),t.lineTo(r,n[i++])}else i+=3},e}(av);function Mz(t,e,n,i){var r=t.getData(),o=r.getLayout("largePoints"),a=new ME({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new ME({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new ME({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});e.add(l),MB(1,a,t,r),MB(-1,s,t,r),MB(0,l,t,r),i&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function MB(t,e,n,i){var r=MT(t,n)||MI(t,n),o=n.getModel("itemStyle").getItemStyle(MA);e.useStyle(o),e.style.fill=null,e.style.stroke=r}var MV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return tf(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",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:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(cW);function MF(t){t&&tq(t.series)&&tj(t.series,function(t){t0(t)&&"k"===t.type&&(t.type="candlestick")})}tF(MV,Mh,!0);var MG={seriesType:"candlestick",plan:c$(),reset:function(t){var e,n,i,r,o,a,s,l,u=t.coordinateSystem,c=t.getData(),h=(e=t,n=c,o="category"===(r=e.getBaseAxis()).type?r.getBandWidth():Math.abs((i=r.getExtent())[1]-i[0])/n.count(),a=rC(t6(e.get("barMaxWidth"),o),o),s=rC(t6(e.get("barMinWidth"),1),o),null!=(l=e.get("barWidth"))?rC(l,o):Math.max(Math.min(o/2,a),s)),p=c.getDimensionIndex(c.mapDimension("x")),d=tW(c.mapDimensionsAll("y"),c.getDimensionIndex,c),f=d[0],g=d[1],y=d[2],v=d[3];if(c.setLayout({candleWidth:h,isSimpleBox:h<=1.3}),!(p<0)&&!(d.length<4))return{progress:t.pipelineContext.large?function(e,n){for(var i,r,o=gq(4*e.count),a=0,s=[],l=[],c=n.getStore(),h=!!t.get(["itemStyle","borderColorDoji"]);null!=(r=e.next());){var d=c.get(p,r),m=c.get(f,r),x=c.get(g,r),_=c.get(y,r),b=c.get(v,r);if(isNaN(d)||isNaN(_)||isNaN(b)){o[a++]=NaN,a+=3;continue}o[a++]=Mj(c,r,m,x,g,h),s[0]=d,s[1]=_,i=u.dataToPoint(s,null,l),o[a++]=i?i[0]:NaN,o[a++]=i?i[1]:NaN,s[1]=b,i=u.dataToPoint(s,null,l),o[a++]=i?i[1]:NaN}n.setLayout("largePoints",o)}:function(t,e){for(var n,i=e.getStore();null!=(n=t.next());){var r=i.get(p,n),o=i.get(f,n),a=i.get(g,n),s=i.get(y,n),l=i.get(v,n),c=Math.min(o,a),d=Math.max(o,a),m=M(c,r),x=M(d,r),_=M(s,r),b=M(l,r),w=[];I(w,x,0),I(w,m,1),w.push(T(b),T(x),T(_),T(m));var S=!!e.getItemModel(n).get(["itemStyle","borderColorDoji"]);e.setItemLayout(n,{sign:Mj(i,n,o,a,g,S),initBaseline:o>a?x[1]:m[1],ends:w,brushRect:function(t,e,n){var i=M(t,n),r=M(e,n);return i[0]-=h/2,r[0]-=h/2,{x:i[0],y:i[1],width:h,height:r[1]-i[1]}}(s,l,r)})}function M(t,e){var n=[];return n[0]=e,n[1]=t,isNaN(e)||isNaN(t)?[NaN,NaN]:u.dataToPoint(n)}function I(t,e,n){var i=e.slice(),r=e.slice();i[0]=pi(i[0]+h/2,1,!1),r[0]=pi(r[0]-h/2,1,!0),n?t.push(i,r):t.push(r,i)}function T(t){return t[0]=pi(t[0],1),t}}}}};function Mj(t,e,n,i,r,o){return n>i?-1:n<i?1:o?0:e>0?t.get(r,e-1)<=i?1:-1:1}function MW(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})})}var MH=function(t){function e(e,n){var i=t.call(this)||this,r=new gV(e,n),o=new rb;return i.add(r),i.add(o),i.updateData(e,n),i}return tf(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),o=0;o<i;o++){var a=dd(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/i*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),r.add(a)}MW(r,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var o=i[r];if(e[o]!==t[o]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}MW(n,t)},e.prototype.highlight=function(){sl(this)},e.prototype.downplay=function(){su(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,i=t.hostModel;this.childAt(0).updateData(t,e);var r=this.childAt(1),o=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=df(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,c=o.getModel("emphasis");r.setScale(s),r.traverse(function(t){t.setStyle("fill",u)});var h=dg(t.getItemVisual(e,"symbolOffset"),s);h&&(r.x=h[0],r.y=h[1]),r.rotation=(t.getItemVisual(e,"symbolRotate")||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=o.get(["rippleEffect","scale"]),p.brushType=o.get(["rippleEffect","brushType"]),p.period=1e3*o.get(["rippleEffect","period"]),p.effectOffset=e/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=a,p.color=u,p.rippleEffectColor=o.get(["rippleEffect","color"]),p.rippleNumber=o.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===t&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,sv(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(rb),MZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.init=function(){this._symbolDraw=new gH(MH)},e.prototype.render=function(t,e,n){var i=t.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(r.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var i=t.getData();this.group.dirty();var r=ys("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e,n,i=t.coordinateSystem;i&&i.getRoamTransform&&(this.group.transform=(e=i.getRoamTransform(),e2(n=e0(),e),n),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(pm),MX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return tf(e,t),e.prototype.getInitialData=function(t,e){return gN(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},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}(cW),MU=function(t){function e(e,n,i){var r=t.call(this)||this;return r.add(r.createLine(e,n,i)),r._updateEffectSymbol(e,n),r}return tf(e,t),e.prototype.createLine=function(t,e,n){return new wy(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),i=n.get("symbolSize"),r=n.get("symbol");tq(i)||(i=[i,i]);var o=t.getItemVisual(e,"style"),a=n.get("color")||o&&o.stroke,s=this.childAt(1);this._symbolType!==r&&(this.remove(s),(s=dd(r,-.5,-.5,1,1,a)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",a),s.setStyle(n.getItemStyle(["color"])),s.scaleX=i[0],s.scaleY=i[1],s.setColor(a),this._symbolType=r,this._symbolScale=i,this._updateEffectAnimation(t,n,e))},e.prototype._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=t.getItemLayout(n),o=1e3*e.get("period"),a=e.get("loop"),s=e.get("roundTrip"),l=e.get("constantSpeed"),u=t4(e.get("delay"),function(e){return e/t.count()*o/3});if(i.ignore=!0,this._updateAnimationPoints(i,r),l>0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var c=void 0;c=tK(u)?u(n):u,i.__t>0&&(c=-o*i.__t),this._animateSymbol(i,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var o=this,a=t.animate("",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during(function(){o._updateSymbolPosition(t)});i||a.done(function(){o.remove(t)}),a.start()}},e.prototype._getLineLength=function(t){return ew(t.__p1,t.__cp1)+ew(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice();o[0]=nj(e[0],i[0],n[0],r),o[1]=nj(e[1],i[1],n[1],r);var s=t.__t<1?nW(e[0],i[0],n[0],r):nW(n[0],i[0],e[0],1-r),l=t.__t<1?nW(e[1],i[1],n[1],r):nW(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(l,s)-Math.PI/2,("line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)&&(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*ew(a,o),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*ew(e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(rb),MY=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createPolyline(e,n,i),r}return tf(e,t),e.prototype._createPolyline=function(t,e,n){var i=new hk({shape:{points:t.getItemLayout(e)}});this.add(i),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel;sL(this.childAt(0),{shape:{points:t.getItemLayout(e)}},i,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),r=t.getItemModel(e),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var u=r.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}i.useStyle(t.getItemVisual(e,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,sv(this,a,s,l)},e.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},e}(rb),Mq=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return tf(e,t),e.prototype.createLine=function(t,e,n){return new MY(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r<e.length;r++)i+=ew(e[r-1],e[r]),n.push(i);if(0===i){this._length=0;return}for(var r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e,n=t.__t<1?t.__t:2-t.__t,i=this._points,r=this._offsets,o=i.length;if(r){var a=this._lastFrame;if(n<this._lastFramePercent){for(e=Math.min(a+1,o-1);e>=0&&!(r[e]<=n);e--);e=Math.min(e,o-2)}else{for(e=a;e<o&&!(r[e]>n);e++);e=Math.min(e-1,o-2)}var s=(n-r[e])/(r[e+1]-r[e]),l=i[e],u=i[e+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var c=t.__t<1?u[0]-l[0]:l[0]-u[0],h=t.__t<1?u[1]-l[1]:l[1]-u[1];t.rotation=-Math.atan2(h,c)-Math.PI/2,this._lastFrame=e,this._lastFramePercent=n,t.ignore=!1}},e}(MU),MK=function(){this.polyline=!1,this.curveness=0,this.segs=[]},MQ=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return tf(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new MK},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n<i.length;){var o=i[n++];if(o>0){t.moveTo(i[n++],i[n++]);for(var a=1;a<o;a++)t.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],u=i[n++],c=i[n++];if(t.moveTo(s,l),r>0){var h=(s+u)/2-(l-c)*r,p=(l+c)/2-(u-s)*r;t.quadraticCurveTo(h,p,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var u=i[s++],c=i[s++],h=1;h<l;h++){var p=i[s++],d=i[s++];if(ai(u,c,p,d,o,t,e))return a}a++}else for(var a=0,s=0;s<i.length;){var u=i[s++],c=i[s++],p=i[s++],d=i[s++];if(r>0){var f=(u+p)/2-(c-d)*r,g=(c+d)/2-(p-u)*r;if(ar(u,c,f,g,p,d,o,t,e))return a}else if(ai(u,c,p,d,o,t,e))return a;a++}return -1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return(t=n[0],e=n[1],i.contain(t,e))?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,i=1/0,r=-1/0,o=-1/0,a=0;a<e.length;){var s=e[a++],l=e[a++];n=Math.min(s,n),r=Math.max(s,r),i=Math.min(l,i),o=Math.max(l,o)}t=this._rect=new ns(n,i,r,o)}return t},e}(av),M$=function(){function t(){this.group=new rb}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],i=e.getLayout("linesPoints"),r=n&&n.shape.segs;if(r&&r.length<2e4){var o=r.length,a=new Float32Array(o+i.length);a.set(r),a.set(i,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new MQ({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("style");r&&r.stroke&&t.setStyle("stroke",r.stroke),t.setStyle("fill",null);var o=aZ(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",function(e){o.dataIndex=null;var n=t.hoverDataIdx;n>0&&(o.dataIndex=n+t.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),MJ={seriesType:"lines",plan:c$(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c<r.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);for(var h=0,p=[],c=r.start;c<r.end;c++){var d=t.getLineCoords(c,a);n&&(s[h++]=d);for(var f=0;f<d;f++)p=e.dataToPoint(a[f],!1,p),s[h++]=p[0],s[h++]=p[1]}o.setLayout("linesPoints",s)}else for(var c=r.start;c<r.end;c++){var g=o.getItemModel(c),d=t.getLineCoords(c,a),y=[];if(n)for(var v=0;v<d;v++)y.push(e.dataToPoint(a[v]));else{y[0]=e.dataToPoint(a[0]),y[1]=e.dataToPoint(a[1]);var m=g.get(["lineStyle","curveness"]);+m&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*m,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*m])}o.setItemLayout(c,y)}}}}}},M0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=t.get("clip",!0)&&g6(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=MJ.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new M$:new wv(r?i?Mq:MY:i?MU:wy),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"!==e.painter.getType()&&null!=this._lastZlevel&&e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(pm),M1="u"<typeof Uint32Array?Array:Uint32Array,M2="u"<typeof Float64Array?Array:Float64Array;function M5(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=tW(e,function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),tE([e,t[0],t[1]])}))}var M3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return tf(e,t),e.prototype.init=function(e){e.data=e.data||[],M5(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(M5(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=es(this._flatCoords,e.flatCoords),this._flatCoordsOffset=es(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r<i;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}for(var o=this._getCoordsFromItemModel(t),r=0;r<o.length;r++)e[r]=e[r]||[],e[r][0]=o[r][0],e[r][1]=o[r][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),tJ(t[0])){for(var n=t.length,i=new M1(n),r=new M2(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=t[l++];i[a++]=o+e,i[a++]=u;for(var c=0;c<u;c++){var h=t[l++],p=t[l++];r[o++]=h,r[o++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new gA(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;if(null!=o)return o instanceof Array?o[r]:o}),n},e.prototype.formatTooltip=function(t,e,n){var i=this.getData().getItemModel(t),r=i.get("name");if(r)return r;var o=i.get("fromName"),a=i.get("toName"),s=[];return null!=o&&s.push(o),null!=a&&s.push(a),cL("nameValue",{name:s.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(cW);function M4(t){return t instanceof Array||(t=[t,t]),t}let M6={seriesType:"lines",reset:function(t){var e=M4(t.get("symbol")),n=M4(t.get("symbolSize")),i=t.getData();return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(t,e){var n=t.getItemModel(e),i=M4(n.getShallow("symbol",!0)),r=M4(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}:null}}};var M8=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=t_.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),p=t.length;c.width=e,c.height=n;for(var d=0;d<p;++d){var f=t[d],g=f[0],y=f[1],v=i(f[2]);h.globalAlpha=v,h.drawImage(a,g-u,y-u)}if(!c.width||!c.height)return c;for(var m=h.getImageData(0,0,c.width,c.height),x=m.data,_=0,b=x.length,w=this.minOpacity,S=this.maxOpacity-w;_<b;){var v=x[_+3]/256,M=4*Math.floor(255*v);if(v>0){var I=o(v)?s:l;v>0&&(v=v*S+w),x[_++]=I[M],x[_++]=I[M+1],x[_++]=I[M+2],x[_++]=I[M+3]*v*256}else _+=4}return h.putImageData(m,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=t_.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}();function M9(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var M7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.render=function(t,e,n){e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),this._progressiveEls=null,this.group.removeAll();var i,r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):M9(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(M9(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){pg(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem,c=g8(u,"cartesian2d");if(c){var h=u.getAxis("x"),p=u.getAxis("y");o=h.getBandWidth()+.5,a=p.getBandWidth()+.5,s=h.scale.getExtent(),l=p.scale.getExtent()}for(var d=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),x=sF(t),_=t.getModel("emphasis"),b=_.get("focus"),w=_.get("blurScope"),S=_.get("disabled"),M=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],I=n;I<i;I++){var T=void 0,C=f.getItemVisual(I,"style");if(c){var A=f.get(M[0],I),L=f.get(M[1],I);if(isNaN(f.get(M[2],I))||isNaN(A)||isNaN(L)||A<s[0]||A>s[1]||L<l[0]||L>l[1])continue;var D=u.dataToPoint([A,L]);T=new aL({shape:{x:D[0]-o/2,y:D[1]-a/2,width:o,height:a},style:C})}else{if(isNaN(f.get(M[1],I)))continue;T=new aL({z2:1,shape:u.dataToRect([f.get(M[0],I)]).contentShape,style:C})}if(f.hasItemOption){var k=f.getItemModel(I),P=k.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=k.getModel(["blur","itemStyle"]).getItemStyle(),v=k.getModel(["select","itemStyle"]).getItemStyle(),m=k.get(["itemStyle","borderRadius"]),b=P.get("focus"),w=P.get("blurScope"),S=P.get("disabled"),x=sF(k)}T.shape.r=m;var O=t.getRawValue(I),R="-";O&&null!=O[2]&&(R=O[2]+""),sV(T,x,{labelFetcher:t,labelDataIndex:I,defaultOpacity:C.opacity,defaultText:R}),T.ensureState("emphasis").style=g,T.ensureState("blur").style=y,T.ensureState("select").style=v,sv(T,b,w,S),T.incremental=r,r&&(T.states.emphasis.hoverLayer=!0),d.add(T),f.setItemGraphicEl(I,T),this._progressiveEls&&this._progressiveEls.push(T)}},e.prototype._renderOnGeo=function(t,e,n,i){var r,o,a,s,l,u,c,h=n.targetVisuals.inRange,p=n.targetVisuals.outOfRange,d=e.getData(),f=this._hmLayer||this._hmLayer||new M8;f.blurSize=e.get("blurSize"),f.pointSize=e.get("pointSize"),f.minOpacity=e.get("minOpacity"),f.maxOpacity=e.get("maxOpacity");var g=t.getViewRect().clone(),y=t.getRoamTransform();g.applyTransform(y);var v=Math.max(g.x,0),m=Math.max(g.y,0),x=Math.min(g.width+g.x,i.getWidth()),_=Math.min(g.height+g.y,i.getHeight()),b=x-v,w=_-m,S=[d.mapDimension("lng"),d.mapDimension("lat"),d.mapDimension("value")],M=d.mapArray(S,function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=v,r[1]-=m,r.push(i),r}),I=n.getExtent(),T="visualMap.continuous"===n.type?(r=n.option.range,o=I[1]-I[0],r=[(r[0]-I[0])/o,(r[1]-I[0])/o],function(t){return t>=r[0]&&t<=r[1]}):(a=n.getPieceList(),s=n.option.selected,l=I[1]-I[0],u=(a=tW(a,function(t){return{interval:[(t.interval[0]-I[0])/l,(t.interval[1]-I[0])/l]}})).length,c=0,function(t){var e;for(e=c;e<u;e++){var n=a[e].interval;if(n[0]<=t&&t<=n[1]){c=e;break}}if(e===u)for(e=c-1;e>=0;e--){var n=a[e].interval;if(n[0]<=t&&t<=n[1]){c=e;break}}return e>=0&&e<u&&s[e]});f.update(M,b,w,h.color.getNormalizer(),{inRange:h.color.getColorMapper(),outOfRange:p.color.getColorMapper()},T);var C=new aw({style:{width:b,height:w,x:v,y:m,image:f.canvas},silent:!0});this.group.add(C)},e.type="heatmap",e}(pm),It=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.getInitialData=function(t,e){return gN(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=um.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(cW),Ie=["itemStyle","borderWidth"],In=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Ii=new xe.Circle,Ir=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:In[+s],categoryDim:In[1-s]};r.diff(o).add(function(t){if(r.hasValue(t)){var e=Ip(r,t),n=Io(r,t,e,u),o=Ig(r,u,n);r.setItemGraphicEl(t,o),i.add(o),I_(o,u,n)}}).update(function(t,e){var n,a,s,l,c,h,p=o.getItemGraphicEl(e);if(!r.hasValue(t))return void i.remove(p);var d=Ip(r,t),f=Io(r,t,d,u),g=Iv(r,f);p&&g!==p.__pictorialShapeStr&&(i.remove(p),r.setItemGraphicEl(t,null),p=null),p?(n=p,a=u,l=(s=f).animationModel,c=s.dataIndex,h=n.__pictorialBundle,xe.updateProps(h,{x:s.bundlePosition[0],y:s.bundlePosition[1]},l,c),s.symbolRepeat?Il(n,a,s,!0):Iu(n,a,s,!0),Ic(n,s,!0),Ih(n,a,s,!0)):p=Ig(r,u,f,!0),r.setItemGraphicEl(t,p),p.__pictorialSymbolMeta=f,i.add(p),I_(p,u,f)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&Iy(o,t,e.__pictorialSymbolMeta.animationModel,e)}).execute();var c=t.get("clip",!0)?g6(t.coordinateSystem,!1,t):null;return c?i.setClipPath(c):i.removeClipPath(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(e){Iy(i,aZ(e).dataIndex,t,e)}):n.removeAll()},e.type="pictorialBar",e}(pm);function Io(t,e,n,i){var r,o,a,s,l,u,c,h,p,d,f,g,y,v,m,x,_,b,w,S,M,I=t.getItemLayout(e),T=n.get("symbolRepeat"),C=n.get("symbolClip"),A=n.get("symbolPosition")||"start",L=(n.get("symbolRotate")||0)*Math.PI/180||0,D=n.get("symbolPatternSize")||2,k=n.isAnimationEnabled(),P={dataIndex:e,layout:I,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:C,symbolRepeat:T,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:D,rotation:L,animationModel:k?n:null,hoverScale:k&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};(function(t,e,n,i,r){var o,a=i.valueDim,s=t.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-(n[a.wh]<=0);if(tq(s)){var h=[Ia(l,s[0])-u,Ia(l,s[1])-u];h[1]<h[0]&&h.reverse(),o=h[c]}else o=null!=s?Ia(l,s)-u:e?i.coordSysExtent[a.index][c]-u:n[a.wh];r.boundingLength=o,e&&(r.repeatCutLength=n[a.wh]);var p="x"===a.xy,d=l.inverse;r.pxSign=p&&!d||!p&&d?o>=0?1:-1:o>0?1:-1})(n,T,I,i,P),r=t,o=e,a=I,s=T,l=P.boundingLength,u=P.pxSign,c=D,h=i,p=P,f=h.valueDim,y=Math.abs(a[(g=h.categoryDim).wh]),(d=tq(v=r.getItemVisual(o,"symbolSize"))?v.slice():null==v?["100%","100%"]:[v,v])[g.index]=rC(d[g.index],y),d[f.index]=rC(d[f.index],s?y:Math.abs(l)),p.symbolSize=d,m=p.symbolScale=[d[0]/c,d[1]/c],m[f.index]*=(h.isHorizontal?-1:1)*u,x=n,_=P.symbolScale,b=L,w=i,S=P,(M=x.get(Ie)||0)&&(Ii.attr({scaleX:_[0],scaleY:_[1],rotation:b}),Ii.updateTransform(),M/=Ii.getLineScale(),M*=_[w.valueDim.index]),S.valueLineWidth=M||0;var O=P.symbolSize,R=dg(n.get("symbolOffset"),O);return function(t,e,n,i,r,o,a,s,l,u,c){var h=u.categoryDim,p=u.valueDim,d=c.pxSign,f=Math.max(e[p.index]+a,0),g=f;if(i){var y=Math.abs(s),v=t4(t.get("symbolMargin"),"15%")+"",m=!1;v.lastIndexOf("!")===v.length-1&&(m=!0,v=v.slice(0,v.length-1));var x=rC(v,e[p.index]),_=Math.max(f+2*x,0),b=m?0:2*x,w=rG(i),S=w?i:Ib((y+b)/_);x=(y-S*f)/2/(m?S:Math.max(S-1,1)),_=f+2*x,b=m?0:2*x,w||"fixed"===i||(S=l?Ib((Math.abs(l)+b)/_):0),g=S*_-b,c.repeatTimes=S,c.symbolMargin=x}var M=g/2*d,I=c.pathPosition=[];I[h.index]=n[h.wh]/2,I[p.index]="start"===o?M:"end"===o?s-M:s/2,r&&(I[0]+=r[0],I[1]+=r[1]);var T=c.bundlePosition=[];T[h.index]=n[h.xy],T[p.index]=n[p.xy];var C=c.barRectShape=tz({},n);C[p.wh]=d*Math.max(Math.abs(n[p.wh]),Math.abs(I[p.index]+M)),C[h.wh]=n[h.wh];var A=c.clipShape={};A[h.xy]=-n[h.xy],A[h.wh]=u.ecSize[h.wh],A[p.xy]=0,A[p.wh]=n[p.wh]}(n,O,I,T,R,A,P.valueLineWidth,P.boundingLength,P.repeatCutLength,i,P),P}function Ia(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function Is(t){var e=t.symbolPatternSize,n=dd(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Il(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(Im(t,function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?Ix(t,null,f(c),n,i):Ix(t,null,{scaleX:0,scaleY:0},n,i,function(){r.remove(t)}),c++});c<u;c++){var p=Is(n);p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,r.add(p);var d=f(c);Ix(p,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},n,i)}function f(t){var e=s.slice(),i=n.pxSign,r=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=u-1-t),e[l.index]=h*(r-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Iu(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?Ix(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=Is(n),r.add(o),Ix(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function Ic(t,e,n){var i=tz({},e.barRectShape),r=t.__pictorialBarRect;r?Ix(r,null,{shape:i},e,n):((r=t.__pictorialBarRect=new xe.Rect({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(r))}function Ih(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=tz({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)xe.updateProps(r,{shape:o},s,l);else{o[a.wh]=0,r=new xe.Rect({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],xe[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function Ip(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=Id,n.isAnimationEnabled=If,n}function Id(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function If(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Ig(t,e,n,i){var r=new xe.Group,o=new xe.Group;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?Il(r,e,n):Iu(r,e,n),Ic(r,n,i),Ih(r,e,n,i),r.__pictorialShapeStr=Iv(t,n),r.__pictorialSymbolMeta=n,r}function Iy(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];Im(i,function(t){o.push(t)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),tj(o,function(t){xe.removeElement(t,{scaleX:0,scaleY:0},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function Iv(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Im(t,e,n){tj(t.__pictorialBundle.children(),function(i){i!==t.__pictorialBarRect&&e.call(n,i)})}function Ix(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&xe[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function I_(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),p=o.get("scale");Im(t,function(t){if(t instanceof aw){var e=t.style;t.useStyle(tz({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,p&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2});var d=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;f.ignoreClip=!0,sV(f,sF(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:gz(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:d}),sv(t,c,h,o.get("disabled"))}function Ib(t){var e=Math.round(t);return 1e-4>Math.abs(t-e)?e:Math.ceil(t)}var Iw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return tf(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=lt(yb.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:"#212121"}}}),e}(yb),IS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return tf(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+u[0];var h=new gd(this._layersSeries||[],a,c,c),p=[];function d(e,n,s){var l,u,c=r._layers;if("remove"===e)return void o.remove(c[n]);for(var h=[],d=[],f=a[n].indices,g=0;g<f.length;g++){var y=i.getItemLayout(f[g]),v=y.x,m=y.y0,x=y.y;h.push(v,m),d.push(v,m+x),l=i.getItemVisual(f[g],"style")}var _=i.getItemLayout(f[0]),b=t.getModel("label").get("margin"),w=t.getModel("emphasis");if("add"===e){var S,M,I,T,C=p[n]=new rb;u=new g5({shape:{points:h,stackedOnPoints:d,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),C.add(u),o.add(C),t.isAnimationEnabled()&&u.setClipPath((S=u.getBoundingRect(),M=t,I=function(){u.removeClipPath()},sD(T=new aL({shape:{x:S.x-10,y:S.y-10,width:0,height:S.height+20}}),{shape:{x:S.x-50,width:S.width+100,height:S.height+20}},M,I),T))}else{var C=c[s];u=C.childAt(0),o.add(C),p[n]=C,sL(u,{shape:{points:h,stackedOnPoints:d}},t),sN(u)}sV(u,sF(t),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:l.fill},{normal:{verticalAlign:"middle"}}),u.setTextConfig({position:null,local:!0});var A=u.getTextContent();A&&(A.x=_.x-b,A.y=_.y0+_.y/2),u.useStyle(l),i.setItemGraphicEl(n,u),sb(u,t),sv(u,w.get("focus"),w.get("blurScope"),w.get("disabled"))}h.add(tU(d,this,"add")).update(tU(d,this,"update")).remove(tU(d,this,"remove")).execute(),this._layersSeries=a,this._layers=p},e.type="themeRiver",e}(pm),IM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new vx(tU(this.getData,this),tU(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},i=oe(t,function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]}),r=[];i.buckets.each(function(t,e){r.push({name:e,dataList:t})});for(var o=r.length,a=0;a<o;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var u=r[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,t[e]=[u,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",r8).models[0].get("type"),i=tZ(t.data,function(t){return void 0!==t[2]}),r=this.fixData(i||[]),o=[],a=this.nameMap=ea(),s=0,l=0;l<r.length;++l)o.push(r[l][2]),!a.get(r[l][2])&&(a.set(r[l][2],s),s++);var u=new gA(gL(r,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:gy(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,this);return u.initData(r),u},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],i=0;i<e;++i)n[i]=i;var r=t.mapDimension("single"),o=oe(n,function(e){return t.get("name",e)}),a=[];return o.buckets.each(function(e,n){e.sort(function(e,n){return t.get(r,e)-t.get(r,n)}),a.push({name:n,indices:e})}),a},e.prototype.getAxisTooltipData=function(t,e,n){tq(t)||(t=t?[t]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=o[l].indices.length,p=0;p<h;++p){var d=r.get(t[0],o[l].indices[p]),f=Math.abs(d-e);f<=u&&(i=d,u=f,c=o[l].indices[p])}a.push(c)}return{dataIndices:a,nestestValue:i}},e.prototype.formatTooltip=function(t,e,n){var i=this.getData();return cL("nameValue",{name:i.getName(t),value:i.get(i.mapDimension("value"),t)})},e.type="series.themeRiver",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}(cW);function II(t,e){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),n=t.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=t.get("boundaryGap"),a=n.getAxis();i.boundaryGap=o,"horizontal"===a.orient?(o[0]=rC(o[0],r.height),o[1]=rC(o[1],r.height),IT(e,t,r.height-o[0]-o[1])):(o[0]=rC(o[0],r.width),o[1]=rC(o[1],r.width),IT(e,t,r.width-o[0]-o[1])),e.setLayout("layoutInfo",i)})}function IT(t,e,n){if(t.count())for(var i,r=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),l=tW(o,function(e){return tW(e.indices,function(e){var n=r.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n})}),u=function(t){for(var e=t.length,n=t[0].length,i=[],r=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),i.push(s)}for(var u=0;u<n;++u)r[u]=(o-i[u])/2;o=0;for(var c=0;c<n;++c){var h=i[c]+r[c];h>o&&(o=h)}return{y0:r,max:o}}(l),c=u.y0,h=n/u.max,p=o.length,d=o[0].indices.length,f=0;f<d;++f){i=c[f]*h,t.setItemLayout(o[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*h});for(var g=1;g<p;++g)i+=l[g-1][f][1]*h,t.setItemLayout(o[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*h})}}var IC=function(t){function e(e,n,i,r){var o=t.call(this)||this;o.z2=2,o.textConfig={inside:!0},aZ(o).seriesIndex=n.seriesIndex;var a=new aP({z2:4,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,i,r),o}return tf(e,t),e.prototype.updateData=function(t,e,n,i,r){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;aZ(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),u=tz({},l);u.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var h=e.getVisual("decal");h&&(c.decal=dF(h,r));var p=yC(a.getModel("itemStyle"),u,!0);tz(u,p),tj(aQ,function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var i=yC(n,u);i&&(e.shape=i)}),t?(o.setShape(u),o.shape.r=l.r0,sD(o,{shape:{r:l.r}},n,e.dataIndex)):(sL(o,{shape:u},n),sN(o)),o.useStyle(c),this._updateLabel(n);var d=a.getShallow("cursor");d&&o.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus");sv(this,"relative"===f?es(e.getAncestorsIndices(),e.getDescendantIndices()):"ancestor"===f?e.getAncestorsIndices():"descendant"===f?e.getDescendantIndices():f,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI;function d(t,e){var n=t.get(e);return null==n?i.get(e):n}c.ignore=!(i.get("show")&&!(null!=p&&Math.abs(o)<p)),tj(a$,function(i){var p,f="normal"===i?n.getModel("label"):n.getModel([i,"label"]),g="normal"===i,y=g?c:c.ensureState(i),v=t.getFormattedLabel(h,i);g&&(v=v||e.node.name),y.style=sG(f,{},null,"normal"!==i,!0),v&&(y.style.text=v);var m=f.get("show");null==m||g||(y.ignore=!m);var x=d(f,"position"),_=g?u:u.states[i],b=_.style.fill;_.textConfig={outsideFill:"inherit"===f.get("color")?b:null,inside:"outside"!==x};var w=d(f,"distance")||0,S=d(f,"align"),M=d(f,"rotate"),I=.5*Math.PI,T=1.5*Math.PI,C=aa("tangential"===M?Math.PI/2-a:a),A=C>I&&!rO(C-I)&&C<T;"outside"===x?(p=r.r+w,S=A?"right":"left"):S&&"center"!==S?"left"===S?(p=r.r0+w,S=A?"right":"left"):"right"===S&&(p=r.r-w,S=A?"left":"right"):(p=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,S="center"),y.style.align=S,y.style.verticalAlign=d(f,"verticalAlign")||"middle",y.x=p*s+r.cx,y.y=p*l+r.cy;var L=0;"radial"===M?L=aa(-a)+(A?Math.PI:0):"tangential"===M?L=aa(Math.PI/2-a)+(A?Math.PI:0):tJ(M)&&(L=M*Math.PI/180),y.rotation=aa(L)}),c.dirtyStyle()},e}(hM),IA="sunburstRootToNode",IL="sunburstHighlight",ID=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.render=function(t,e,n,i){var r,o,a=this;this.seriesModel=t,this.api=n,this.ecModel=e;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,h=t.get("renderLabelForZeroData"),p=[];u.eachNode(function(t){p.push(t)}),function(i,r){function o(t){return t.getId()}function a(o,a){!function(i,r){if(h||!i||i.getValue()||(i=null),i!==l&&r!==l){if(r&&r.piece){var o;i?(r.piece.updateData(!1,i,t,e,n),s.setItemGraphicEl(i.dataIndex,r.piece)):(o=r)&&o.piece&&(c.remove(o.piece),o.piece=null)}else if(i){var a=new IC(i,t,e,n);c.add(a),s.setItemGraphicEl(i.dataIndex,a)}}}(null==o?null:i[o],null==a?null:r[a])}(0!==i.length||0!==r.length)&&new gd(r,i,o,o).add(a).update(a).remove(tY(a,null)).execute()}(p,this._oldChildren||[]),r=l,(o=u).depth>0?(a.virtualPiece?a.virtualPiece.updateData(!1,r,t,e,n):(a.virtualPiece=new IC(r,t,e,n),c.add(a.virtualPiece)),o.piece.off("click"),a.virtualPiece.on("click",function(t){a._rootToNode(o.parentNode)})):a.virtualPiece&&(c.remove(a.virtualPiece),a.virtualPiece=null),this._initEvents(),this._oldChildren=p},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(e){var n=!1;t.seriesModel.getViewRoot().eachNode(function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");a&&lN(a,o.get("target",!0)||"_blank")}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:IA,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(pm),Ik=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return tf(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function t(e){var n=0;tj(e.children,function(e){t(e);var i=e.value;tq(i)&&(i=i[0]),n+=i});var i=e.value;tq(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=n),i<0&&(i=0),tq(e.value)?e.value[0]=i:e.value=i}(n);var i=this._levelModels=tW(t.levels||[],function(t){return new s8(t,this,e)},this),r=bt.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=i[r.getNodeByDataIndex(e).depth];return n&&(t.parentModel=n),t})});return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments);return n.treePathInfo=br(this.getData().tree.getNodeByDataIndex(e),this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){bc(this)},e.type="series.sunburst",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:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(cW),IP=Math.PI/180;function IO(t,e,n){e.eachSeriesByType(t,function(t){var e=t.get("center"),i=t.get("radius");tq(i)||(i=[0,i]),tq(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=rC(e[0],r),l=rC(e[1],o),u=rC(i[0],a/2),c=rC(i[1],a/2),h=-t.get("startAngle")*IP,p=t.get("minAngle")*IP,d=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,y=t.get("sort");null!=y&&function t(e,n){var i=e.children||[];e.children=function(t,e){if(tK(e)){var n=tW(t,function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}});return n.sort(function(t,n){return e(t.params,n.params)}),tW(n,function(e){return t[e.index]})}var i="asc"===e;return t.sort(function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n})}(i,n),i.length&&tj(e.children,function(e){t(e,n)})}(f,y);var v=0;tj(f.children,function(t){!isNaN(t.getValue())&&v++});var m=f.getValue(),x=Math.PI/(m||v)*2,_=f.depth>0,b=(c-u)/(f.height-(_?-1:1)||1),w=t.get("clockwise"),S=t.get("stillShowZeroSum"),M=w?1:-1,I=function(e,n){if(e){var i=n;if(e!==d){var r=e.getValue(),o=0===m&&S?x:r*x;o<p&&(o=p),i=n+M*o;var c=e.depth-g-(_?-1:1),h=u+b*c,f=u+b*(c+1),y=t.getLevelModel(e);if(y){var v=y.get("r0",!0),T=y.get("r",!0),C=y.get("radius",!0);null!=C&&(v=C[0],T=C[1]),null!=v&&(h=rC(v,a/2)),null!=T&&(f=rC(T,a/2))}e.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:w,cx:s,cy:l,r0:h,r:f})}if(e.children&&e.children.length){var A=0;tj(e.children,function(t){A+=I(t,n+A)})}return i-n}};if(_){var T=2*Math.PI;d.setLayout({angle:T,startAngle:h,endAngle:h+T,clockwise:w,cx:s,cy:l,r0:u,r:u+b})}I(f,h)})}function IR(t){var e={};t.eachSeriesByType("sunburst",function(t){var n=t.getData(),i=n.tree;i.eachNode(function(r){var o=r.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(t,n,i){for(var r=t;r&&r.depth>1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&tQ(o)&&(o=ii(o,(t.depth-1)/(i-1)*.5)),o}(r,t,i.root.height)),tz(n.ensureUniqueItemVisual(r.dataIndex,"style"),o)})})}var IN={color:"fill",borderColor:"stroke"},IE={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Iz=r5(),IB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return gN(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=Iz(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(cW);function IV(t,e){return e=e||[0,0],tW(["x","y"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function IF(t,e){return e=e||[0,0],tW([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function IG(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function Ij(t,e){return e=e||[0,0],tW(["Radius","Angle"],function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s},this)}function IW(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||ec(t,"text")))}function IH(t,e,n){var i,r,o;if("text"===e)o=t;else{o={},ec(t,"text")&&(o.text=t.text),ec(t,"rich")&&(o.rich=t.rich),ec(t,"textFill")&&(o.fill=t.textFill),ec(t,"textStroke")&&(o.stroke=t.textStroke),ec(t,"fontFamily")&&(o.fontFamily=t.fontFamily),ec(t,"fontSize")&&(o.fontSize=t.fontSize),ec(t,"fontStyle")&&(o.fontStyle=t.fontStyle),ec(t,"fontWeight")&&(o.fontWeight=t.fontWeight),r={type:"text",style:o,silent:!0},i={};var a=ec(t,"textPosition");n?i.position=a?t.textPosition:"inside":a&&(i.position=t.textPosition),ec(t,"textPosition")&&(i.position=t.textPosition),ec(t,"textOffset")&&(i.offset=t.textOffset),ec(t,"textRotation")&&(i.rotation=t.textRotation),ec(t,"textDistance")&&(i.distance=t.textDistance)}return IZ(o,t),tj(o.rich,function(t){IZ(t,t)}),{textConfig:i,textContent:r}}function IZ(t,e){e&&(e.font=e.textFont||e.font,ec(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),ec(e,"textAlign")&&(t.align=e.textAlign),ec(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),ec(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),ec(e,"textWidth")&&(t.width=e.textWidth),ec(e,"textHeight")&&(t.height=e.textHeight),ec(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),ec(e,"textPadding")&&(t.padding=e.textPadding),ec(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),ec(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),ec(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),ec(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),ec(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),ec(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),ec(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function IX(t,e,n){t.textPosition=t.textPosition||n.position||"inside",null!=n.offset&&(t.textOffset=n.offset),null!=n.rotation&&(t.textRotation=n.rotation),null!=n.distance&&(t.textDistance=n.distance);var i=t.textPosition.indexOf("inside")>=0,r=t.fill||"#000";IU(t,e);var o=null==t.textFill;return i?o&&(t.textFill=n.insideFill||"#fff",!t.textStroke&&n.insideStroke&&(t.textStroke=n.insideStroke),t.textStroke||(t.textStroke=r),null==t.textStrokeWidth&&(t.textStrokeWidth=2)):(o&&(t.textFill=t.fill||n.outsideFill||"#000"),!t.textStroke&&n.outsideStroke&&(t.textStroke=n.outsideStroke)),t.text=e.text,t.rich=e.rich,tj(e.rich,function(t){IU(t,t)}),t}function IU(t,e){e&&(ec(e,"fill")&&(t.textFill=e.fill),ec(e,"stroke")&&(t.textStroke=e.fill),ec(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),ec(e,"font")&&(t.font=e.font),ec(e,"fontStyle")&&(t.fontStyle=e.fontStyle),ec(e,"fontWeight")&&(t.fontWeight=e.fontWeight),ec(e,"fontSize")&&(t.fontSize=e.fontSize),ec(e,"fontFamily")&&(t.fontFamily=e.fontFamily),ec(e,"align")&&(t.textAlign=e.align),ec(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),ec(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),ec(e,"width")&&(t.textWidth=e.width),ec(e,"height")&&(t.textHeight=e.height),ec(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),ec(e,"padding")&&(t.textPadding=e.padding),ec(e,"borderColor")&&(t.textBorderColor=e.borderColor),ec(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),ec(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),ec(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),ec(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),ec(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),ec(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),ec(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),ec(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),ec(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),ec(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var IY={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Iq=tX(IY);tH(rn,function(t,e){return t[e]=1,t},{}),rn.join(", ");var IK=["","style","shape","extra"],IQ=r5();function I$(t,e,n,i,r){var o=t+"Animation",a=sC(t,i,r)||{},s=IQ(e).userDuring;return a.duration>0&&(a.during=s?tU(I4,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),tz(a,n[o]),a}function IJ(t,e,n,i){var r,o,a=(i=i||{}).dataIndex,s=i.isInit,l=i.clearStyle,u=n.isAnimationEnabled(),c=IQ(t),h=e.style;c.userDuring=e.during;var p={},d={};if(function(t,e){for(var n=0;n<Iq.length;n++){var i=Iq[n],r=IY[i],o=t[i];o&&(e[r[0]]=o[0],e[r[1]]=o[1])}for(var n=0;n<rn.length;n++){var a=rn[n];null!=t[a]&&(e[a]=t[a])}}(e,d),I8("shape",e,d),I8("extra",e,d),!s&&u&&(function(t,e,n){for(var i=e.transition,r=I2(i)?rn:rX(i||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];n[a]=s}}}(t,e,p),I6("shape",t,e,p),I6("extra",t,e,p),function(t,e,n,i){if(n){var r,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!I2(a)){var l=rX(a);r||(r=i.style={});for(var u=0;u<l.length;u++){var c=l[u],h=o[c];r[c]=h}}else if(t.getAnimationStyleProps&&(I2(s)||I2(a)||tV(s,"style")>=0)){var p=t.getAnimationStyleProps(),d=p?p.style:null;if(d){r||(r=i.style={});for(var f=tX(n),u=0;u<f.length;u++){var c=f[u];if(d[c]){var h=o[c];r[c]=h}}}}}}}(t,e,h,p)),d.style=h,function(t,e,n){var i=e.style;if(!t.isGroup&&i){if(n){t.useStyle({});for(var r=t.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}(t,d,l),r=t,ec(o=e,"silent")&&(r.silent=o.silent),ec(o,"ignore")&&(r.ignore=o.ignore),r instanceof oO&&ec(o,"invisible")&&(r.invisible=o.invisible),r instanceof av&&ec(o,"autoBatch")&&(r.autoBatch=o.autoBatch),u)if(s){var f={};tj(IK,function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(f[t]=f[t]||{}),tz(t?f[t]:f,n.enterFrom))});var g=I$("enter",t,e,n,a);g.duration>0&&t.animateFrom(f,g)}else{var y=t,v=e,m=a||0,x=n,_=p;if(_){var b=I$("update",y,v,x,m);b.duration>0&&y.animateFrom(_,b)}}I0(t,e),h?t.dirty():t.markRedraw()}function I0(t,e){for(var n=IQ(t).leaveToProps,i=0;i<IK.length;i++){var r=IK[i],o=r?e[r]:e;o&&o.leaveTo&&(n||(n=IQ(t).leaveToProps={}),r&&(n[r]=n[r]||{}),tz(r?n[r]:n,o.leaveTo))}}function I1(t,e,n,i){if(t){var r=t.parent,o=IQ(t).leaveToProps;if(o){var a=I$("update",t,e,n,0);a.done=function(){r.remove(t),i&&i()},t.animateTo(o,a)}else r.remove(t),i&&i()}}function I2(t){return"all"===t}var I5={},I3={setTransform:function(t,e){return I5.el[t]=e,this},getTransform:function(t){return I5.el[t]},setShape:function(t,e){var n=I5.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=I5.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=I5.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=I5.el.style;if(e)return e[t]},setExtra:function(t,e){return(I5.el.extra||(I5.el.extra={}))[t]=e,this},getExtra:function(t){var e=I5.el.extra;if(e)return e[t]}};function I4(){var t=this.el;if(t){var e=IQ(t).userDuring,n=this.userDuring;if(e!==n){this.el=this.userDuring=null;return}I5.el=t,n(I3)}}function I6(t,e,n,i){var r,o=n[t];if(o){var a=e[t];if(a){var s=n.transition,l=o.transition;if(l)if(r||(r=i[t]={}),I2(l))tz(r,a);else for(var u=rX(l),c=0;c<u.length;c++){var h=u[c],p=a[h];r[h]=p}else if(I2(s)||tV(s,t)>=0){r||(r=i[t]={});for(var d=tX(a),c=0;c<d.length;c++){var f,g,h=d[c],p=a[h];f=o[h],g=p,(tG(f)?f!==g:null!=f&&isFinite(f))&&(r[h]=p)}}}}}function I8(t,e,n){var i=e[t];if(i)for(var r=n[t]={},o=tX(i),a=0;a<o.length;a++){var s=o[a];r[s]=iP(i[s])}}var I9=r5(),I7=["percent","easing","shape","style","extra"];function Tt(t){t.stopAnimation("keyframe"),t.attr(I9(t))}function Te(t,e,n){if(n.isAnimationEnabled()&&e){if(tq(e))return void tj(e,function(e){Te(t,e,n)});var i=e.keyframes,r=e.duration;if(n&&null==r){var o=sC("enter",n,0);r=o&&o.duration}if(i&&r){var a=I9(t);tj(IK,function(n){var o;n&&!t[n]||(i.sort(function(t,e){return t.percent-e.percent}),tj(i,function(i){var s=t.animators,l=n?i[n]:i;if(l){var u=tX(l);if(n||(u=tZ(u,function(t){return 0>tV(I7,t)})),u.length){o||((o=t.animate(n,e.loop,!0)).scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var h=n?a[n]:a;tj(u,function(e){h[e]=((n?t[n]:t)||{})[e]}),o.whenWithKeys(r*i.percent,l,u,i.easing)}}}),o&&o.delay(e.delay||0).duration(r).start(e.easing))})}}}var Tn="emphasis",Ti="normal",Tr="blur",To="select",Ta=[Ti,Tn,Tr,To],Ts={normal:["itemStyle"],emphasis:[Tn,"itemStyle"],blur:[Tr,"itemStyle"],select:[To,"itemStyle"]},Tl={normal:["label"],emphasis:[Tn,"label"],blur:[Tr,"label"],select:[To,"label"]},Tu=["x","y"],Tc={normal:{},emphasis:{},blur:{},select:{}},Th={cartesian2d:function(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:tU(IV,t)}}},geo:function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:tU(IF,t)}}},single:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:tU(IG,t)}}},polar:function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:tU(Ij,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function Tp(t){return t instanceof av}function Td(t){return t instanceof oO}var Tf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=Tm(t,o,e,n);r||a.removeAll(),o.diff(r).add(function(e){Tx(n,null,e,s(e,i),t,a,o)}).remove(function(e){var n=r.getItemGraphicEl(e);n&&I1(n,Iz(n).option,t)}).update(function(e,l){Tx(n,r.getItemGraphicEl(l),e,s(e,i),t,a,o)}).execute();var l=t.get("clip",!0)?g6(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=Tm(e,o,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var c=Tx(null,null,u,a(u,r),e,this.group,o);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){pg(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===r)return!0;return!1},e.type="custom",e}(pm);function Tg(t){var e,n=t.type;if("path"===n){var i=t.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=TA(i);Iz(e=h6(o,null,r,i.layout||"center")).customPathData=o}else if("image"===n)Iz(e=new aw({})).customImagePath=t.style.image;else if("text"===n)e=new aP({});else if("group"===n)e=new rb;else if("compoundPath"===n)throw Error('"compoundPath" is not supported yet.');else{var a=h4(n);a||uu(""),e=new a}return Iz(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function Ty(t,e,n,i,r,o,a){Tt(e);var s=r&&r.normal.cfg;s&&e.setTextConfig(s),i&&null==i.transition&&(i.transition=Tu);var l=i&&i.style;if(l){"text"===e.type&&(ec(l,"textFill")&&(l.fill=l.textFill),ec(l,"textStroke")&&(l.stroke=l.textStroke));var u=void 0,c=Tp(e)?l.decal:null;t&&c&&(c.dirty=!0,u=dF(c,t)),l.__decalPattern=u}if(Td(e)&&l){var u=l.__decalPattern;u&&(l.decal=u)}IJ(e,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),Te(e,i.keyframeAnimation,o)}function Tv(t,e,n,i,r){var o=e.isGroup?null:e,a=r&&r[t].cfg;if(o){var s=o.ensureState(t);if(!1===i){var l=o.getState(t);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),so(o)}}function Tm(t,e,n,i){var r,o,a,s,l=t.get("renderItem"),u=t.coordinateSystem,c={};u&&(c=u.prepareCustoms?u.prepareCustoms(u):Th[u.type](u));for(var h=tB({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(t,n){return null==n&&(n=a),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,i){null==i&&(i=a);var r=e.getItemVisual(i,"style"),o=r&&r.fill,s=r&&r.opacity,l=_(i,Ti).getItemStyle();null!=o&&(l.fill=o),null!=s&&(l.opacity=s);var u={inheritColor:tQ(o)?o:"#000"},c=b(i,Ti),h=sG(c,null,u,!1,!0);h.text=c.getShallow("show")?t6(t.getFormattedLabel(i,Ti),gz(e,i)):null;var p=sj(c,u,!1);return S(n,l),l=IX(l,h,p),n&&w(l,n),l.legacy=!0,l},ordinalRawValue:function(t,n){null==n&&(n=a),t=t||0;var i=e.getDimensionInfo(t);if(!i){var r=e.getDimensionIndex(t);return r>=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),s=i&&i.ordinalMeta;return s?s.categories[o]:o},styleEmphasis:function(n,i){null==i&&(i=a);var r=_(i,Tn).getItemStyle(),o=b(i,Tn),s=sG(o,null,null,!0,!0);s.text=o.getShallow("show")?t8(t.getFormattedLabel(i,Tn),t.getFormattedLabel(i,Ti),gz(e,i)):null;var l=sj(o,null,!0);return S(n,r),r=IX(r,s,l),n&&w(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=a),ec(IN,t)){var i=e.getItemVisual(n,"style");return i?i[IN[t]]:null}if(ec(IE,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===u.type)return function(t){var e=[],n=t.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o<t.count||0;o++)e.push(tB({bandWidth:r,axisKey:i,stackId:yh+o},t));for(var a=yy(e),s=[],o=0;o<t.count;o++){var l=a[i][yh+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}(tB({axis:u.getBaseAxis()},t))},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return sU(t,n)}},c.api||{}),p={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:c.coordSys,dataInsideLength:e.count(),encode:(r=t.getData(),o={},tj(r.dimensions,function(t){var e=r.getDimensionInfo(t);if(!e.isExtraCoord){var n=e.coordDim;(o[n]=o[n]||[])[e.coordDimIndex]=r.getDimensionIndex(t)}}),o)},d={},f={},g={},y={},v=0;v<Ta.length;v++){var m=Ta[v];g[m]=t.getModel(Ts[m]),y[m]=t.getModel(Tl[m])}function x(t){return t===a?s||(s=e.getItemModel(t)):e.getItemModel(t)}function _(t,n){return e.hasItemOption?t===a?d[n]||(d[n]=x(t).getModel(Ts[n])):x(t).getModel(Ts[n]):g[n]}function b(t,n){return e.hasItemOption?t===a?f[n]||(f[n]=x(t).getModel(Tl[n])):x(t).getModel(Tl[n]):y[n]}return function(t,n){return a=t,s=null,d={},f={},l&&l(tB({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},p),h)};function w(t,e){for(var n in e)ec(e,n)&&(t[n]=e[n])}function S(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function Tx(t,e,n,i,r,o,a){if(!i)return void o.remove(e);var s=T_(t,e,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&sv(s,i.focus,i.blurScope,i.emphasisDisabled),s}function T_(t,e,n,i,r,o){var a,s=-1,l=e;e&&Tb(e,i,r)&&(s=tV(o.childrenRef(),e),e=null);var u=!e,c=e;c?c.clearStates():(c=Tg(i),l&&((a=c).copyTransform(l),Td(a)&&Td(l)&&(a.setStyle(l.style),a.z=l.z,a.z2=l.z2,a.zlevel=l.zlevel,a.invisible=l.invisible,a.ignore=l.ignore,Tp(a)&&Tp(l)&&a.setShape(l.shape)))),!1===i.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),Tc.normal.cfg=Tc.normal.conOpt=Tc.emphasis.cfg=Tc.emphasis.conOpt=Tc.blur.cfg=Tc.blur.conOpt=Tc.select.cfg=Tc.select.conOpt=null,Tc.isLegacy=!1,function(t,e,n,i,r,o){if(!t.isGroup){Tw(n,null,o),Tw(n,Tn,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=Tg(a),t.setTextContent(c)),Ty(null,c,e,a,null,i,r);for(var h=a&&a.style,p=0;p<Ta.length;p++){var d=Ta[p];if(d!==Ti){var f=o[d].conOpt;Tv(d,c,f,TM(a,f,d),null)}}h?c.dirty():c.markRedraw()}}}}(c,n,i,r,u,Tc),function(t,e,n,i,r){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&Tb(a,o,i)&&(a=null),a||(a=Tg(o),t.setClipPath(a)),Ty(null,a,e,o,null,i,r)}}(c,n,i,r,u),Ty(t,c,n,i,Tc,r,u),ec(i,"info")&&(Iz(c).info=i.info);for(var h=0;h<Ta.length;h++){var p=Ta[h];if(p!==Ti){var d=TS(i,p),f=TM(i,d,p);Tv(p,c,d,f,Tc)}}var g=c;if(!g.isGroup){var y=r.currentZ,v=r.currentZLevel;g.z=y,g.zlevel=v;var m=i.z2;null!=m&&(g.z2=m||0);for(var x=0;x<Ta.length;x++)!function(t,e,n){var i=n===Ti,r=i?e:TS(e,n),o=r?r.z2:null;null!=o&&((i?t:t.ensureState(n)).z2=o||0)}(g,i,Ta[x])}return"group"===i.type&&function(t,e,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(a||l||u){if(l){return new gd((f={api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:e}).oldChildren,f.newChildren,TI,TI,f).add(TT).update(TT).remove(TC).execute()}u&&e.removeAll();for(var c=0;c<a;c++){var h=o[c],p=e.childAt(c);h?(null==h.ignore&&(h.ignore=!1),T_(t,p,n,h,r,e)):p.ignore=!0}for(var d=e.childCount()-1;d>=c;d--){var f,g,y,v,m=e.childAt(d);g=e,y=m,v=r,y&&I1(y,Iz(g).option,v)}}}(t,c,n,i,r),s>=0?o.replaceAt(c,s):o.add(c),c}function Tb(t,e,n){var i,r=Iz(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&(i=a)&&(ec(i,"pathData")||ec(i,"d"))&&TA(a)!==r.customPathData||"image"===o&&ec(s,"image")&&s.image!==r.customImagePath}function Tw(t,e,n){var i=e?TS(t,e):t,r=e?TM(t,i,Tn):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?TS(s,e):s:null;if(r&&(n.isLegacy||IW(r,o,!!a,!!l))){n.isLegacy=!0;var u=IH(r,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;c.type||(c.type="text")}var h=e?n[e]:n.normal;h.cfg=a,h.conOpt=l}function TS(t,e){return e?t?t[e]:null:t}function TM(t,e,n){var i=e&&e.style;return null==i&&n===Tn&&t&&(i=t.styleEmphasis),i}function TI(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function TT(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;T_(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function TC(t){var e=this.context,n=e.oldChildren[t];n&&I1(n,Iz(n).option,e.seriesModel)}function TA(t){return t&&(t.pathData||t.d)}var TL=r5(),TD=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o){a&&a.hide(),s&&s.hide();return}a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=tY(Tk,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new xe.Group,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);TR(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=mZ(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=TL(t).pointerEl=new xe[r.type](tR(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=TL(t).labelEl=new xe.Text(tR(e.label));t.add(r),TP(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=TL(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=TL(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),TP(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a){r&&i.remove(r),this._handle=null;return}this._handle||(e=!0,r=this._handle=xe.createIcon(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){eq(t.event)},onmousedown:tU(this._onHandleDragMove,this,0,0),drift:tU(this._onHandleDragMove,this),ondragend:tU(this._onHandleDragEnd,this)}),i.add(r)),TR(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");tq(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,pA(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){Tk(this._axisPointerModel,!e&&this._moveAnimation,this._handle,TO(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(TO(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(TO(i)),TL(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),pL(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function Tk(t,e,n,i){!function t(e,n){if(!(t0(e)&&t0(n)))return e===n;var i=!0;return tj(n,function(n,r){i=i&&t(e[r],n)}),!!i}(TL(n).lastProp,i)&&(TL(n).lastProp=i,e?xe.updateProps(n,i,t):(n.stopAnimation(),n.attr(i)))}function TP(t,e){t[e.get(["label","show"])?"show":"hide"]()}function TO(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function TR(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function TN(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function TE(t,e,n,i,r){var o,a,s,l,u,c,h=Tz(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),p=n.getModel("label"),d=t7(p.get("padding")||0),f=p.getFont(),g=rs(h,f),y=r.position,v=g.width+d[1]+d[3],m=g.height+d[0]+d[2],x=r.align;"right"===x&&(y[0]-=v),"center"===x&&(y[0]-=v/2);var _=r.verticalAlign;"bottom"===_&&(y[1]-=m),"middle"===_&&(y[1]-=m/2),o=y,a=v,s=m,u=(l=i).getWidth(),c=l.getHeight(),o[0]=Math.min(o[0]+a,u)-a,o[1]=Math.min(o[1]+s,c)-s,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0);var b=p.get("backgroundColor");b&&"auto"!==b||(b=e.get(["axisLine","lineStyle","color"])),t.label={x:y[0],y:y[1],style:sG(p,{text:h,font:f,fill:p.getTextColor(),padding:d,backgroundColor:b}),z2:10}}function Tz(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:ml(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};tj(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),tQ(a)?o=a.replace("{value}",o):tK(a)&&(o=a(s))}return o}function TB(t,e,n){var i=e0();return e4(i,i,n.rotation),e3(i,i,n.position),po([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function TV(t,e,n,i,r,o){var a=mB.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),TE(e,i,r,o,{position:TB(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function TF(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function TG(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function Tj(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var TW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=TH(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=TN(i),h=TZ[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}TV(e,t,mA(a.model,n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=mA(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=TB(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=TH(o,r).getOtherAxis(r).getGlobalExtent(),l=+("x"!==r.dim),u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];return h[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(TD);function TH(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var TZ={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:TF([e,n[0]],[e,n[1]],TX(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:TG([e-i/2,n[0]],[i,r],TX(t))}}};function TX(t){return+("x"!==t.dim)}var TU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",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:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(lX),TY=r5();function Tq(t,e,n){if(!ty.node){var i=e.getZr();TY(i).records||(TY(i).records={}),function(t,e){TY(t).initialized||(TY(t).initialized=!0,n("click",tY(TQ,"click")),n("mousemove",tY(TQ,"mousemove")),n("globalout",TK));function n(n,i){t.on(n,function(n){var r,o,a,s,l,u,c,h,p=(r=e,o={showTip:[],hideTip:[]},{dispatchAction:a=function(t){var e=o[t.type];e?e.push(t):(t.dispatchAction=a,r.dispatchAction(t))},pendings:o});tj(TY(t).records,function(t){t&&i(t,n,p.dispatchAction)}),s=p.pendings,l=e,c=s.showTip.length,h=s.hideTip.length,c?u=s.showTip[c-1]:h&&(u=s.hideTip[h-1]),u&&(u.dispatchAction=null,l.dispatchAction(u))})}}(i,e),(TY(i).records[t]||(TY(i).records[t]={})).handler=n}}function TK(t,e,n){t.handler("leave",null,n)}function TQ(t,e,n,i){e.handler(t,n,i)}function T$(t,e){if(!ty.node){var n=e.getZr();(TY(n).records||{})[t]&&(TY(n).records[t]=null)}}var TJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Tq("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){T$("axisPointer",e)},e.prototype.dispose=function(t,e){T$("axisPointer",e)},e.type="axisPointer",e}(cQ);function T0(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=r2(o,t);if(null==a||a<0||tq(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,p=+("x"===c||"radius"===c),d=o.mapDimension(h),f=[];f[p]=o.get(d,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(tW(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var T1=r5();function T2(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t.dispatchAction||tU(n.dispatchAction,n),a=e.getComponent("axisPointer").coordSysAxesInfo;if(a){T8(r)&&(r=T0({seriesIndex:t.seriesIndex,dataIndex:t.dataIndex},e).point);var s,l,u,c,h,p,d,f,g,y,v,m=T8(r),x=t.axesInfo,_=a.axesInfo,b="leave"===i||T8(r),w={},S={},M={list:[],map:{}},I={showPointer:tY(T3,S),showTooltip:tY(T4,M)};tj(a.coordSysMap,function(t,e){var n=m||t.containPoint(r);tj(a.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(x,t);if(!b&&n&&(!x||o)){var a=o&&o.value;null!=a||m||(a=i.pointToData(r)),null!=a&&T5(t,a,I,!1,w)}})});var T={};return tj(_,function(t,e){var n=t.linkGroup;n&&!S[e]&&tj(n.axesInfo,function(e,i){var r=S[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,T6(e),T6(t)))),T[t.key]=o}})}),tj(T,function(t,e){T5(_[e],t,I,!0,w)}),s=S,l=_,u=w.axesInfo=[],tj(l,function(t,e){var n=t.axisPointerModel.option,i=s[e];i?(t.useHandle||(n.status="show"),n.value=i.value,n.seriesDataIndices=(i.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&u.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),function(t,e,n,i){if(T8(e)||!t.list.length)return i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(M,r,t,o),c=_,p=(h=n).getZr(),d="axisPointerLastHighlights",f=T1(p)[d]||{},g=T1(p)[d]={},tj(c,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&tj(n.seriesDataIndices,function(t){g[t.seriesIndex+" | "+t.dataIndex]=t})}),y=[],v=[],tj(f,function(t,e){g[e]||v.push(t)}),tj(g,function(t,e){f[e]||y.push(t)}),v.length&&h.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:v}),y.length&&h.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:y}),w}}function T5(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var a,s,l,u,c,h,p,d,f=(a=e,u=(l=(s=t).axis).dim,c=a,h=[],p=Number.MAX_VALUE,d=-1,tj(s.seriesModels,function(t,e){var n,i,r=t.getData().mapDimensionsAll(u);if(t.getAxisTooltipData){var o=t.getAxisTooltipData(r,a,l);i=o.dataIndices,n=o.nestestValue}else{if(!(i=t.getData().indicesOfNearest(r[0],a,"category"===l.type?.5:null)).length)return;n=t.getData().get(r[0],i[0])}if(null!=n&&isFinite(n)){var s=a-n,f=Math.abs(s);f<=p&&((f<p||s>=0&&d<0)&&(p=f,d=s,c=n,h.length=0),tj(i,function(e){h.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:h,snapToValue:c}),g=f.payloadBatch,y=f.snapToValue;g[0]&&null==r.seriesIndex&&tz(r,g[0]),!i&&t.snap&&o.containData(y)&&null!=y&&(e=y),n.showPointer(t,e,g),n.showTooltip(t,f,y)}}function T3(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function T4(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=mU(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function T6(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function T8(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function T9(t){mq.registerAxisPointerClass("CartesianAxisPointer",TW),t.registerComponentModel(TU),t.registerComponentView(TJ),t.registerPreprocessor(function(t){if(t){t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={});var e=t.axisPointer.link;e&&!tq(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){var n,i,r,o,a,s,l,u,c;t.getComponent("axisPointer").coordSysAxesInfo=(i=n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}},r=t,o=e,a=r.getComponent("tooltip"),l=(s=r.getComponent("axisPointer")).get("link",!0)||[],u=[],tj(o.getCoordinateSystems(),function(t){if(t.axisPointerEnabled){var e=mU(t.model),n=i.coordSysAxesInfo[e]={};i.coordSysMap[e]=t;var o=t.model.getModel("tooltip",a);if(tj(t.getAxes(),tY(d,!1,null)),t.getTooltipAxes&&a&&o.get("show")){var c="axis"===o.get("trigger"),h="cross"===o.get(["axisPointer","type"]),p=t.getTooltipAxes(o.get(["axisPointer","axis"]));(c||h)&&tj(p.baseAxes,tY(d,!h||"cross",c)),h&&tj(p.otherAxes,tY(d,"cross",!1))}}function d(e,a,c){var h=c.model.getModel("axisPointer",s),p=h.get("show");if(p&&("auto"!==p||e||mX(h))){null==a&&(a=h.get("triggerTooltip"));var d=(h=e?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};tj(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=tR(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&tB(l,c.textStyle)}}return t.model.getModel("axisPointer",new s8(s,n,i))}(c,o,s,r,e,a):h).get("snap"),f=h.get("triggerEmphasis"),g=mU(c.model),y=a||d||"category"===c.type,v=i.axesInfo[g]={key:g,axis:c,coordSys:t,axisPointerModel:h,triggerTooltip:a,triggerEmphasis:f,involveSeries:y,snap:d,useHandle:mX(h),seriesModels:[],linkGroup:null};n[g]=v,i.seriesInvolved=i.seriesInvolved||y;var m=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(mH(o[i+"AxisId"],n.id)||mH(o[i+"AxisIndex"],n.componentIndex)||mH(o[i+"AxisName"],n.name))return r}}(l,c);if(null!=m){var x=u[m]||(u[m]={axesInfo:{}});x.axesInfo[g]=v,x.mapper=l[m].mapper,v.linkGroup=x}}}}),n.seriesInvolved&&(c=n,t.eachSeries(function(t){var e=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);e&&"none"!==n&&!1!==n&&"item"!==n&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&tj(c.coordSysAxesInfo[mU(e.model)],function(n){var i=n.axis;e.getAxis(i.dim)===i&&(n.seriesModels.push(t),null==n.seriesDataCount&&(n.seriesDataCount=0),n.seriesDataCount+=t.getData().count())})})),n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},T2)}var T7=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),l=o.dataToCoord(e),u=i.get("type");if(u&&"none"!==u){var c=TN(i),h=Ct[u](o,a,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}var p=function(t,e,n,i){var r,o,a,s=e.axis,l=s.dataToCoord(t),u=n.getAngleAxis().getExtent()[0];u=u/180*Math.PI;var c=n.getRadiusAxis().getExtent();if("radius"===s.dim){var h=e0();e4(h,h,u),e3(h,h,[n.cx,n.cy]),r=po([l,-i],h);var p=e.getModel("axisLabel").get("rotate")||0,d=mB.innerTextLayout(u,p*Math.PI/180,-1);o=d.textAlign,a=d.textVerticalAlign}else{var f=c[1];r=n.coordToPoint([f+i,l]);var g=n.cx,y=n.cy;o=Math.abs(r[0]-g)/f<.3?"center":r[0]>g?"left":"right",a=Math.abs(r[1]-y)/f<.3?"middle":r[1]>y?"top":"bottom"}return{position:r,align:o,verticalAlign:a}}(e,n,a,i.get(["label","margin"]));TE(t,n,i,r,p)},e}(TD),Ct={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:TF(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:Tj(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(-n+r/2)*o)}:{type:"Sector",shape:Tj(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},Ce=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(lX),Cn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",r8).models[0]},e.type="polarAxis",e}(lX);tF(Cn,vA);var Ci=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.type="angleAxis",e}(Cn),Cr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.type="radiusAxis",e}(Cn),Co=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return tf(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)[+("radius"!==this.dim)]},e}(mI);Co.prototype.dataToRadius=mI.prototype.dataToCoord,Co.prototype.radiusToData=mI.prototype.coordToData;var Ca=r5(),Cs=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return tf(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)[+("radius"!==this.dim)]},e.prototype.calculateCategoryInterval=function(){var t=this.getLabelModel(),e=this.scale,n=e.getExtent(),i=e.count();if(n[1]-n[0]<1)return 0;var r=n[0],o=Math.abs(this.dataToCoord(r+1)-this.dataToCoord(r)),a=Math.max(rs(null==r?"":r+"",t.getFont(),"center","top").height,7)/o;isNaN(a)&&(a=1/0);var s=Math.max(0,Math.floor(a)),l=Ca(this.model),u=l.lastAutoInterval,c=l.lastTickCount;return null!=u&&null!=c&&1>=Math.abs(u-s)&&1>=Math.abs(c-i)&&u>s?s=u:(l.lastTickCount=i,l.lastAutoInterval=s),s},e}(mI);Cs.prototype.dataToAngle=mI.prototype.dataToCoord,Cs.prototype.angleToData=mI.prototype.coordToData;var Cl=["radius","angle"],Cu=function(){function t(t){this.dimensions=Cl,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Co,this._angleAxis=new Cs,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s;for(var l=Math.atan2(-(n/=s),e)/Math.PI*180,u=l<o?1:-1;l<o||l>a;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i,o=this.r,a=this.r0;return o!==a&&r-1e-4<=o*o&&r+1e-4>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return Cc(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return Cc(e)===this?this.pointToData(n):null},t}();function Cc(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function Ch(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===n){var e=t.getData();tj(mh(e,"radius"),function(t){r.scale.unionExtentFromData(e,t)}),tj(mh(e,"angle"),function(t){i.scale.unionExtentFromData(e,t)})}}),mo(i.scale,i.model),mo(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function Cp(t,e){var n;if(t.type=e.get("type"),t.scale=ma(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse=t.inverse!==e.get("clockwise");var i=e.get("startAngle"),r=null!=(n=e.get("endAngle"))?n:i+(t.inverse?-360:360);t.setExtent(i,r)}e.axis=t,t.model=e}let Cd={dimensions:Cl,create:function(t,e){var n=[];return t.eachComponent("polar",function(t,i){var r,o,a,s,l,u,c,h=new Cu(i+"");h.update=Ch;var p=h.getRadiusAxis(),d=h.getAngleAxis(),f=t.findAxisModel("radiusAxis"),g=t.findAxisModel("angleAxis");Cp(p,f),Cp(d,g),r=t.get("center"),o=e.getWidth(),a=e.getHeight(),h.cx=rC(r[0],o),h.cy=rC(r[1],a),s=h.getRadiusAxis(),l=Math.min(o,a)/2,null==(u=t.get("radius"))?u=[0,"100%"]:tq(u)||(u=[0,u]),c=[rC(u[0],l),rC(u[1],l)],s.inverse?s.setExtent(c[1],c[0]):s.setExtent(c[0],c[1]),n.push(h),t.coordinateSystem=h,h.model=t}),t.eachSeries(function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",r8).models[0];t.coordinateSystem=e.coordinateSystem}}),n}};var Cf=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Cg(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function Cy(t){return+!t.getRadiusAxis().inverse}function Cv(t){var e=t[0],n=t[t.length-1];e&&n&&1e-4>Math.abs(Math.abs(e.coord-n.coord)-360)&&t.pop()}var Cm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return tf(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=tW(n.getViewLabels(),function(t){t=tR(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t});Cv(s),Cv(o),tj(Cf,function(e){t.get([e,"show"])&&(!n.scale.isBlank()||"axisLine"===e)&&Cx[e](this.group,t,i,o,a,r,s)},this)}},e.type="angleAxis",e}(mq),Cx={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),u=Math.PI/180,c=l.getExtent(),h=Cy(n),p=+!h,d=360===Math.abs(c[1]-c[0])?"Circle":"Arc";(a=0===o[p]?new xe[d]({shape:{cx:n.cx,cy:n.cy,r:o[h],startAngle:-c[0]*u,endAngle:-c[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new xe.Ring({shape:{cx:n.cx,cy:n.cy,r:o[h],r0:o[p]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[Cy(n)],u=tW(i,function(t){return new xe.Line({shape:Cg(n,[l,l+s],t.coord)})});t.add(xe.mergePath(u,{style:tB(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[Cy(n)],c=[],h=0;h<r.length;h++)for(var p=0;p<r[h].length;p++)c.push(new xe.Line({shape:Cg(n,[u,u+l],r[h][p].coord)}));t.add(xe.mergePath(c,{style:tB(s.getModel("lineStyle").getLineStyle(),tB(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,i,r,o,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");tj(a,function(i,r){var a=l,h=i.tickValue,p=o[Cy(n)],d=n.coordToPoint([p+u,i.coord]),f=n.cx,g=n.cy,y=Math.abs(d[0]-f)/p<.3?"center":d[0]>f?"left":"right",v=Math.abs(d[1]-g)/p<.3?"middle":d[1]>g?"top":"bottom";if(s&&s[h]){var m=s[h];t0(m)&&m.textStyle&&(a=new s8(m.textStyle,l,l.ecModel))}var x=new xe.Text({silent:mB.isLabelSilent(e),style:sG(a,{x:d[0],y:d[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:y,verticalAlign:v})});if(t.add(x),c){var _=mB.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=i.rawLabel,aZ(x).eventData=_}},this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c<i.length;c++){var h=l++%s.length;u[h]=u[h]||[],u[h].push(new xe.Line({shape:Cg(n,o,i[c].coord)}))}for(var c=0;c<u.length;c++)t.add(xe.mergePath(u[c],{style:tB({stroke:s[c%s.length]},a.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<r.length;l++)for(var u=0;u<r[l].length;u++)s.push(new xe.Line({shape:Cg(n,o,r[l][u].coord)}));t.add(xe.mergePath(s,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,i,r,o){if(i.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=Math.PI/180,h=-i[0].coord*c,p=Math.min(o[0],o[1]),d=Math.max(o[0],o[1]),f=e.get("clockwise"),g=1,y=i.length;g<=y;g++){var v=g===y?i[0].coord:i[g].coord,m=l++%s.length;u[m]=u[m]||[],u[m].push(new xe.Sector({shape:{cx:n.cx,cy:n.cy,r0:p,r:d,startAngle:h,endAngle:-v*c,clockwise:f},silent:!0})),h=-v*c}for(var g=0;g<u.length;g++)t.add(xe.mergePath(u[g],{style:tB({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}},C_=["axisLine","axisTickLabel","axisName"],Cb=["splitLine","splitArea","minorSplitLine"],Cw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return tf(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n,i,r,o=this._axisGroup,a=this._axisGroup=new xe.Group;this.group.add(a);var s=t.axis,l=s.polar,u=l.getAngleAxis(),c=s.getTicksCoords(),h=s.getMinorTicksCoords(),p=u.getExtent()[0],d=s.getExtent(),f=(n=l,i=t,r=p,{position:[n.cx,n.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:i.getModel("axisLabel").get("rotate"),z2:1}),g=new mB(t,f);tj(C_,g.add,g),a.add(g.getGroup()),xe.groupTransition(o,a,t),tj(Cb,function(e){t.get([e,"show"])&&!s.scale.isBlank()&&CS[e](this.group,t,l,p,d,c,h)},this)}},e.type="radiusAxis",e}(mq),CS={splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0,u=n.getAngleAxis(),c=Math.PI/180,h=u.getExtent(),p=360===Math.abs(h[1]-h[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var d=[],f=0;f<o.length;f++){var g=l++%s.length;d[g]=d[g]||[],d[g].push(new xe[p]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[f].coord,0),startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:u.inverse}}))}for(var f=0;f<d.length;f++)t.add(xe.mergePath(d[f],{style:tB({stroke:s[f%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,r,o,a){if(a.length){for(var s=e.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new xe.Circle({shape:{cx:n.cx,cy:n.cy,r:a[u][c].coord}}));t.add(xe.mergePath(l,{style:tB({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,r,o){if(o.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=o[0].coord,h=1;h<o.length;h++){var p=l++%s.length;u[p]=u[p]||[],u[p].push(new xe.Sector({shape:{cx:n.cx,cy:n.cy,r0:c,r:o[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=o[h].coord}for(var h=0;h<u.length;h++)t.add(xe.mergePath(u[h],{style:tB({fill:s[h%s.length]},a.getAreaStyle()),silent:!0}))}}};function CM(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function CI(t,e){return e.dim+t.model.componentIndex}let CT=function(t,e,n){var i,r,o,a={},s=(i=tZ(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}),r={},tj(i,function(t,e){var n=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=CI(i,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/n.count(),u=r[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;r[a]=u;var h=CM(t);!c[h]&&u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var p=rC(t.get("barWidth"),l),d=rC(t.get("barMaxWidth"),l),f=t.get("barGap"),g=t.get("barCategoryGap");p&&!c[h].width&&(p=Math.min(u.remainedWidth,p),c[h].width=p,u.remainedWidth-=p),d&&(c[h].maxWidth=d),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}),o={},tj(r,function(t,e){o[e]={};var n,i=t.stacks,r=t.bandWidth,a=rC(t.categoryGap,r),s=rC(t.gap,1),l=t.remainedWidth,u=t.autoWidthCount,c=(l-a)/(u+(u-1)*s);c=Math.max(c,0),tj(i,function(t,e){var n=t.maxWidth;n&&n<c&&(n=Math.min(n,l),t.width&&(n=Math.min(n,t.width)),l-=n,t.width=n,u--)}),c=Math.max(c=(l-a)/(u+(u-1)*s),0);var h=0;tj(i,function(t,e){t.width||(t.width=c),n=t,h+=t.width*(1+s)}),n&&(h-=n.width*s);var p=-h/2;tj(i,function(t,n){o[e][n]=o[e][n]||{offset:p,width:t.width},p+=t.width*(1+s)})}),o);e.eachSeriesByType(t,function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=CI(n,i),o=CM(t),l=s[r][o],u=l.offset,c=l.width,h=n.getOtherAxis(i),p=t.coordinateSystem.cx,d=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;a[o]=a[o]||[];for(var y=e.mapDimension(h.dim),v=e.mapDimension(i.dim),m=gO(e,y),x="radius"!==i.dim||!t.get("roundCap",!0),_=h.model.get("startValue"),b=h.dataToCoord(_||0),w=0,S=e.count();w<S;w++){var M=e.get(y,w),I=e.get(v,w),T=M>=0?"p":"n",C=b;m&&(a[o][I]||(a[o][I]={p:b,n:b}),C=a[o][I][T]);var A=void 0,L=void 0,D=void 0,k=void 0;if("radius"===h.dim){var P=h.dataToCoord(M)-b,O=i.dataToCoord(I);Math.abs(P)<f&&(P=(P<0?-1:1)*f),A=C,L=C+P,k=(D=O-u)-c,m&&(a[o][I][T]=L)}else{var R=h.dataToCoord(M,x)-b,N=i.dataToCoord(I);Math.abs(R)<g&&(R=(R<0?-1:1)*g),L=(A=N+u)+c,D=C,k=C+R,m&&(a[o][I][T]=k)}e.setItemLayout(w,{cx:p,cy:d,r0:A,r:L,startAngle:-D*Math.PI/180,endAngle:-k*Math.PI/180,clockwise:D>=k})}}})};var CC={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},CA={splitNumber:5},CL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.type="polar",e}(cQ);function CD(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]],r.rotation=Math.PI/2*({horizontal:0,vertical:1})[a],r.labelDirection=r.tickDirection=r.nameDirection=({top:-1,bottom:1,right:1,left:-1})[o],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),t4(e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var c=e.rotate;return null==c&&(c=t.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-c:c,r.z2=1,r}var Ck=["axisLine","axisTickLabel","axisName"],CP=["splitArea","splitLine"],CO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return tf(e,t),e.prototype.render=function(e,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new rb;var s=CD(e),l=new mB(e,s);tj(Ck,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),tj(CP,function(t){e.get([t,"show"])&&CR[t](this,this.group,this._axisGroup,e)},this),ps(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){m$(this)},e.type="singleAxis",e}(mq),CR={splitLine:function(t,e,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=i.coordinateSystem.getRect(),c=r.isHorizontal(),h=[],p=0,d=r.getTicksCoords({tickModel:o}),f=[],g=[],y=0;y<d.length;++y){var v=r.toGlobalCoord(d[y].coord);c?(f[0]=v,f[1]=u.y,g[0]=v,g[1]=u.y+u.height):(f[0]=u.x,f[1]=v,g[0]=u.x+u.width,g[1]=v);var m=new hR({shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0});pe(m.shape,l);var x=p++%s.length;h[x]=h[x]||[],h[x].push(m)}for(var _=a.getLineStyle(["color"]),y=0;y<h.length;++y)e.add(h7(h[y],{style:tB({stroke:s[y%s.length]},_),silent:!0}))}},splitArea:function(t,e,n,i){mQ(t,n,i,i)}},CN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",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:.2}}},e}(lX);tF(CN,vA.prototype);var CE=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.position=o||"bottom",a}return tf(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(mI),Cz=["single"],CB=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=Cz,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=new CE(this.dimension,ma(t),[0,0],t.get("type"),t.get("position")),r="category"===i.type;i.onBand=r&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},t.prototype.update=function(t,e){t.eachSeries(function(t){if(t.coordinateSystem===this){var e=t.getData();tj(e.mapDimensionsAll(this.dimension),function(t){this._axis.scale.unionExtentFromData(e,t)},this),mo(this._axis.scale,this._axis.model)}},this)},t.prototype.resize=function(t,e){this._rect=lV({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=+!!e.inverse;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[+("horizontal"!==e.orient)]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r=+("horizontal"!==e.orient);return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){return CV(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return CV(e)===this?this.pointToData(n):null},t}();function CV(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}let CF={create:function(t,e){var n=[];return t.eachComponent("singleAxis",function(i,r){var o=new CB(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",r8).models[0];t.coordinateSystem=e&&e.coordinateSystem}}),n},dimensions:Cz};var CG=["x","y"],Cj=["width","height"],CW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=CX(a,1-CZ(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var c=TN(i),h=CH[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}TV(e,t,CD(n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=CD(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=TB(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=CZ(r),s=CX(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=CX(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(TD),CH={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:TF([e,n[0]],[e,n[1]],CZ(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:TG([e-i/2,n[0]],[i,r],CZ(t))}}};function CZ(t){return+!t.isHorizontal()}function CX(t,e){var n=t.getRect();return[n[CG[e]],n[CG[e]]+n[Cj[e]]]}var CU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.type="single",e}(cQ),CY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.init=function(e,n,i){var r=lW(e);t.prototype.init.apply(this,arguments),Cq(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),Cq(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(lX);function Cq(t,e){var n,i=t.cellSize;1===(n=tq(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]);var r=tW([0,1],function(t){return(null!=e[lz[t][0]]||null!=e[lz[t][1]]&&null!=e[lz[t][2]])&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]});lj(t,e,{type:"box",ignoreSize:r})}var CK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,s,a,i),this._renderWeekText(t,s,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new aL({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){p(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function p(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}p(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r=+("horizontal"!==n);return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new hk({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){if(tQ(t)&&t){var n;return n=t,tj(e,function(t,e){n=n.replace("{"+e+"}",t)}),n}return tK(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return("left"===i||"right"===i)&&(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c=+("horizontal"!==n),h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var d=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:p},g=new aP({z2:30,style:sG(r,{text:this._formatterLabel(d,f)}),silent:r.get("silent")});g.attr(this._yearTextPositionControl(g,h[a],n,a,o)),i.add(g)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];(!o||tQ(o))&&(o&&(e=ln[o]||e),o=e.get(["time","monthAbbr"])||[]);var c=+("start"!==s),h=+("horizontal"!==n);a="start"===s?-a:a;for(var p="center"===l,d=r.get("silent"),f=0;f<u[c].length-1;f++){var g=u[c][f].slice(),y=this._firstDayOfMonth[f];if(p){var v=this._firstDayPoints[f];g[h]=(v[h]+u[0][f+1][h])/2}var m=r.get("formatter"),x=o[y.m-1],_={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:x},b=new aP({z2:30,style:tz(sG(r,{text:this._formatterLabel(m,_)}),this._monthTextPositionControl(g,p,n,s,a)),silent:d});i.add(b)}}},e.prototype._weekTextPositionControl=function(t,e,n,i,r){var o="center",a="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+i+(u?1:-1)*r[0]/2,o=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,i,r){var o=t.getModel("dayLabel");if(o.get("show")){var a=t.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),c=a.getFirstDayOfWeek();(!l||tQ(l))&&(l&&(e=ln[l]||e),l=e.get(["time","dayOfWeekShort"])||tW(e.get(["time","dayOfWeekAbbr"]),function(t){return t[0]}));var h=a.getNextNDay(n.end.time,7-n.lweek).time,p=[a.getCellWidth(),a.getCellHeight()];u=rC(u,Math.min(p[1],p[0])),"start"===s&&(h=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var d=o.get("silent"),f=0;f<7;f++){var g=a.getNextNDay(h,f),y=a.dataToRect([g.time],!1).center,v=new aP({z2:30,style:tz(sG(o,{text:l[Math.abs((f+c)%7)]}),this._weekTextPositionControl(y,i,s,u,p)),silent:d});r.add(v)}}},e.type="calendar",e}(cQ),CQ=function(){function t(e,n,i){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){var e=(t=rN(t)).getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,r=t.getDate(),o=r<10?"0"+r:""+r,a=t.getDay();return{y:e+"",m:i,d:o,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+i+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},t.prototype.update=function(t,e){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 n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];tj([0,1],function(t){u(r,t)&&(o[i[t]]=r[t]*a[t])});var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=lV(o,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}tj([0,1],function(t){u(r,t)||(r[t]=l[i[t]]/a[t])}),this._sw=r[0],this._sh=r[1]},t.prototype.dataToPoint=function(t,e){tq(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,r=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+864e5))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},t.prototype.convertToPixel=function(t,e,n){var i=C$(e);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=C$(e);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(tq(e)&&1===e.length&&(e=e[0]),tq(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);t=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var a=this._getRangeInfo(t);return a.start.time>a.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/864e5)-Math.floor(n[0].time/864e5)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),c=e?-u+1:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var r=(t-1)*7-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])}),i},t.dimensions=["time","value"],t}();function C$(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}function CJ(t,e){var n;return tj(e,function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)}),n}var C0=["transition","enterFrom","leaveTo"],C1=C0.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function C2(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?C0:C1,r=0;r<i.length;r++){var o=i[r];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}var C5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return tf(e,t),e.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},e.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,o=[];this._flatten(i,o,null);var a=rK(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];tj(a,function(t,e){var n=t.newOption;if(n){s.push(n);var i,o,a,l,u=t.existing;if(n.id=t.keyInfo.id,!n.type&&u&&(n.type=u.type),null==n.parentId){var c=n.parentOption;c?n.parentId=c.id:u&&(n.parentId=u.parentId)}n.parentOption=null,i=tz({},n),o=r[e],"merge"===(a=n.$action||"merge")?o?(tN(o,i,!0),lj(o,i,{ignoreSize:!0}),lH(n,o),C2(n,o),C2(n,o,"shape"),C2(n,o,"style"),C2(n,o,"extra"),n.clipPath=o.clipPath):r[e]=i:"replace"===a?r[e]=i:"remove"===a&&o&&(r[e]=null),l=r[e],l&&(l.hv=n.hv=[CJ(n,["left","right"]),CJ(n,["top","bottom"])],"group"===l.type&&(null==l.width&&(l.width=n.width=0),null==l.height&&(l.height=n.height=0)))}},this),n.elements=tZ(r,function(t){return t&&delete t.$action,null!=t})},e.prototype._flatten=function(t,e,n){tj(t,function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;i&&i.length&&this._flatten(i,e,t),delete t.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(lX),C3={path:null,compoundPath:null,group:rb,image:aw,text:aP},C4=r5(),C6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.init=function(){this._elMap=ea()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group,r=t.get("z"),o=t.get("zlevel");tj(e,function(e){var a=rJ(e.id,null),s=null!=a?n.get(a):null,l=rJ(e.parentId,null),u=null!=l?n.get(l):i,c=e.type,h=e.style;"text"===c&&h&&e.hv&&e.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var p=e.textContent,d=e.textConfig;if(h&&IW(h,c,!!d,!!p)){var f=IH(h,c,!0);!d&&f.textConfig&&(d=e.textConfig=f.textConfig),!p&&f.textContent&&(p=f.textContent)}var g=(M=tz({},M=e),tj(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(lE),function(t){delete M[t]}),M),y=e.$action||"merge",v="merge"===y,m="replace"===y;if(v){var x=!s,_=s;x?_=C9(a,u,e.type,n):(_&&(C4(_).isNew=!1),Tt(_)),_&&(IJ(_,g,t,{isInit:x}),At(_,e,r,o))}else if(m){C7(s,e,n,t);var b=C9(a,u,e.type,n);b&&(IJ(b,g,t,{isInit:!0}),At(b,e,r,o))}else"remove"===y&&(I0(s,e),C7(s,e,n,t));var w=n.get(a);if(w&&p)if(v){var S=w.getTextContent();S?S.attr(p):w.setTextContent(new aP(p))}else m&&w.setTextContent(new aP(p));if(w){var M,I,T,C,A,L=e.clipPath;if(L){var D=L.type,k=void 0,x=!1;if(v){var P=w.getClipPath();k=(x=!P||C4(P).type!==D)?C8(D):P}else m&&(x=!0,k=C8(D));w.setClipPath(k),IJ(k,L,t,{isInit:x}),Te(k,L.keyframeAnimation,t)}var O=C4(w);w.setTextConfig(d),O.option=e,I=w,T=t,C=e,A=aZ(I).eventData,I.silent||I.ignore||A||(A=aZ(I).eventData={componentType:"graphic",componentIndex:T.componentIndex,name:I.name}),A&&(A.info=C.info),pd({el:w,componentModel:t,itemName:w.name,itemTooltipOption:e.tooltip}),Te(w,e.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=e.getWidth(),a=e.getHeight(),s=["x","y"],l=0;l<n.length;l++){var u=n[l],c=rJ(u.id,null),h=null!=c?r.get(c):null;if(h&&h.isGroup){var p=h.parent,d=p===i,f=C4(h),g=C4(p);f.width=rC(f.option.width,d?o:g.width)||0,f.height=rC(f.option.height,d?a:g.height)||0}}for(var l=n.length-1;l>=0;l--){var u=n[l],c=rJ(u.id,null),h=null!=c?r.get(c):null;if(h){var p=h.parent,g=C4(p),y=p===i?{width:o,height:a}:{width:g.width,height:g.height},v={},m=lF(h,u,y,null,{hv:u.hv,boundingMode:u.bounding},v);if(!C4(h).isNew&&m){for(var x=u.transition,_={},b=0;b<s.length;b++){var w=s[b],S=v[w];x&&(I2(x)||tV(x,w)>=0)?_[w]=S:h[w]=S}sL(h,_,t,0)}else h.attr(v)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each(function(n){C7(n,C4(n).option,e,t._lastGraphicModel)}),this._elMap=ea()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(cQ);function C8(t){var e=new(ec(C3,t)?C3[t]:h4(t))({});return C4(e).type=t,e}function C9(t,e,n,i){var r=C8(n);return e.add(r),i.set(t,r),C4(r).id=t,C4(r).isNew=!0,r}function C7(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse(function(t){C7(t,e,n,i)}),I1(t,e,i),n.removeKey(C4(t).id))}function At(t,e,n,i){t.isGroup||tj([["cursor",oO.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],function(n){var i=n[0];ec(e,i)?t[i]=t6(e[i],n[1]):null==t[i]&&(t[i]=n[1])}),tj(tX(e),function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=tK(i)?i:null}}),ec(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var Ae=["x","y","radius","angle","single"],An=["cartesian2d","polar","singleAxis"];function Ai(t){return t+"Axis"}function Ar(t){var e=t.ecModel,n={infoList:[],infoMap:ea()};return t.eachTargetAxis(function(t,i){var r=e.getComponent(Ai(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}}),n}var Ao=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),Aa=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return tf(e,t),e.prototype.init=function(t,e,n){var i=As(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=As(t);tN(this.option,t,!0),tN(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;tj([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=ea();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return tj(Ae,function(n){var i=this.getReferringComponents(Ai(n),r9);if(i.specified){e=!0;var r=new Ao;tj(i.models,function(t){r.add(t.componentIndex)}),t.set(n,r)}},this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0,r="vertical"===e?"y":"x",o=n.findComponents({mainType:r+"Axis"});if(a(o,r),i){var o=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});a(o,"single")}function a(e,n){var r=e[0];if(r){var o=new Ao;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",r8).models[0];a&&tj(e,function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",r8).models[0]&&o.add(t.componentIndex)})}}}i&&tj(Ae,function(e){if(i){var r=n.findComponents({mainType:Ai(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new Ao;o.add(r[0].componentIndex),t.set(e,o),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(e){t||(t=e)},this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");tj([["start","startValue"],["end","endValue"]],function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(e,n){null==t&&(t=this.ecModel.getComponent(Ai(e),n))},this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each(function(n,i){tj(n.indexList,function(n){t.call(e,i,n)})})},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(Ai(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;tj([["start","startValue"],["end","endValue"]],function(i){(null!=t[i[0]]||null!=t[i[1]])&&(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;tj(["start","startValue","end","endValue"],function(n){e[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},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}(lX);function As(t){var e={};return tj(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var Al=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.type="dataZoom.select",e}(Aa),Au=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(cQ),Ac=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.type="dataZoom.select",e}(Au),Ah=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(tV(An,e.get("coordinateSystem"))>=0){var n=Ai(this._dimName),i=e.getReferringComponents(n,r8).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return tR(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];tj(["start","end"],function(l,u){var c=t[l],h=t[l+"Value"];"percent"===r[u]?(null==c&&(c=o[u]),h=i.parse(rT(c,o,n))):(e=!0,c=rT(h=null==h?n[u]:i.parse(h),n,o)),s[u]=null==h||isNaN(h)?n[u]:h,a[u]=null==c||isNaN(c)?o[u]:c}),rL(s),rL(a);var l=this._minMaxSpan;function u(t,e,n,r,o){var a=o?"Span":"ValueSpan";w7(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=rT(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e,n,i,r,o,a=this.getTargetSeriesModels();this._dataExtent=(e=this,n=this._dimName,i=[1/0,-1/0],tj(a,function(t){var e;e=t.getData(),e&&tj(mh(e,n),function(t){var n=e.getApproximateExtent(t);n[0]<i[0]&&(i[0]=n[0]),n[1]>i[1]&&(i[1]=n[1])})}),[(o=mn((r=e.getAxisModel()).axis.scale,r,i).calculate()).min,o.max]),this._updateMinMaxSpan();var s=this.calculateDataWindow(t.settledOption);this._valueWindow=s.valueWindow,this._percentWindow=s.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&tj(i,function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=e.getStore(),s=tW(i,function(t){return e.getDimensionIndex(t)},e);e.filterSelf(function(t){for(var e,n,r,l=0;l<i.length;l++){var u=a.get(s[l],t),c=!isNaN(u),h=u<o[0],p=u>o[1];if(c&&!h&&!p)return!0;c&&(r=!0),h&&(e=!0),p&&(n=!0)}return r&&e&&n})}else tj(i,function(n){if("empty"===r)t.setData(e=e.map(n,function(t){var e;return(e=t)>=o[0]&&e<=o[1]?t:NaN}));else{var i={};i[n]=o,e.selectRange(i)}});tj(i,function(t){e.setApproximateExtent(o,t)})}})}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;tj(["min","max"],function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=rT(n[0]+o,n,[0,100],!0):null!=r&&(o=rT(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=rk(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}();let Ap={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(i,r){var o=t.getComponent(Ai(i),r);e(i,r,o,n)})})}e(function(t,e,n,i){n.__dzAxisProxy=null});var n=[];e(function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new Ah(e,i,o,t),n.push(r.__dzAxisProxy))});var i=ea();return tj(n,function(t){tj(t.getTargetSeriesModels(),function(t){i.set(t.uid,t)})}),i},overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(e,n){t.getAxisProxy(e,n).reset(t)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};var Ad=!1;function Af(t){Ad||(Ad=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,Ap),t.registerAction("dataZoom",function(t,e){tj(function(t,e){var n,i=ea(),r=[],o=ea();t.eachComponent({mainType:"dataZoom",query:e},function(t){o.get(t.uid)||s(t)});do n=!1,t.eachComponent("dataZoom",a);while(n)function a(t){var e;!o.get(t.uid)&&(e=!1,t.eachTargetAxis(function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)}),e)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis(function(t,e){(i.get(t)||i.set(t,[]))[e]=!0})}return r}(e,t),function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})}),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Ag(t){t.registerComponentModel(Al),t.registerComponentView(Ac),Af(t)}var Ay=function(){},Av={},Am=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;tj(this.option.feature,function(t,n){var i=Av[n];i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),tN(t,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(lX);function Ax(t,e){var n=t7(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new aL({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}var A_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o,a,s,l,u=+t.get("itemSize"),c="vertical"===t.get("orient"),h=t.get("feature")||{},p=this._features||(this._features={}),d=[];tj(h,function(t,e){d.push(e)}),new gd(this._featureNames||[],d).add(f).update(f).remove(tY(f,null)).execute(),this._featureNames=d,o=t.getBoxLayoutParams(),a=t.get("padding"),l=lV(o,s={width:n.getWidth(),height:n.getHeight()},a),lB(t.get("orient"),r,t.get("itemGap"),l.width,l.height),lF(r,o,s,a),r.add(Ax(r.getBoundingRect(),t)),c||r.eachChild(function(t){var e=t.__title,i=t.ensureState("emphasis"),o=i.textConfig||(i.textConfig={}),a=t.getTextContent(),s=a&&a.ensureState("emphasis");if(s&&!tK(s)&&e){var l=s.style||(s.style={}),c=rs(e,aP.makeFont(l)),h=t.x+r.x,p=t.y+r.y+u,d=!1;p+c.height>n.getHeight()&&(o.position="top",d=!0);var f=d?-5-c.height:u+10;h+c.width/2>n.getWidth()?(o.position=["100%",f],l.align="right"):h-c.width/2<0&&(o.position=[0,f],l.align="left")}})}function f(o,a){var s,l,f,g,y,v,m,x,_,b,w,S=d[o],M=d[a],I=h[S],T=new s8(I,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===S&&(I.title=i.newTitle),S&&!M){if(0===S.indexOf("my"))w={onclick:T.option.onclick,featureName:S};else{var C=Av[S];if(!C)return;w=new C}p[S]=w}else if(!(w=p[M]))return;w.uid=s7("toolbox-feature"),w.model=T,w.ecModel=e,w.api=n;var A=w instanceof Ay;if(!S&&M){A&&w.dispose&&w.dispose(e,n);return}if(!T.get("show")||A&&w.unusable){A&&w.remove&&w.remove(e,n);return}s=T,l=w,f=S,v=s.getModel("iconStyle"),m=s.getModel(["emphasis","iconStyle"]),x=l instanceof Ay&&l.getIcons?l.getIcons():s.get("icon"),_=s.get("title")||{},tQ(x)?(g={})[f]=x:g=x,tQ(_)?(y={})[f]=_:y=_,b=s.iconPaths={},tj(g,function(i,o){var a=pc(i,{},{x:-u/2,y:-u/2,width:u,height:u});a.setStyle(v.getItemStyle()),a.ensureState("emphasis").style=m.getItemStyle();var h=new aP({style:{text:y[o],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:sU({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},e)},ignore:!0});a.setTextContent(h),pd({el:a,componentModel:t,itemName:o,formatterParamsExtra:{title:y[o]}}),a.__title=y[o],a.on("mouseover",function(){var e=m.getItemStyle(),i=c?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";h.setStyle({fill:m.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),a.setTextConfig({position:m.get("textPosition")||i}),h.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==s.get(["iconStatus",o])&&n.leaveEmphasis(this),h.hide()}),("emphasis"===s.get(["iconStatus",o])?sl:su)(a),r.add(a),a.on("click",tU(l.onclick,l,e,n,o)),b[o]=a}),T.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?sl:su)(i[t])},w instanceof Ay&&w.render&&w.render(T,e,n,i)}},e.prototype.updateView=function(t,e,n,i){tj(this._features,function(t){t instanceof Ay&&t.updateView&&t.updateView(t.model,e,n,i)})},e.prototype.remove=function(t,e){tj(this._features,function(n){n instanceof Ay&&n.remove&&n.remove(t,e)}),this.group.removeAll()},e.prototype.dispose=function(t,e){tj(this._features,function(n){n instanceof Ay&&n.dispose&&n.dispose(t,e)})},e.type="toolbox",e}(cQ),Ab=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=ty.browser;if("function"!=typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||r){var l=a.split(","),u=l[0].indexOf("base64")>-1,c=r?decodeURIComponent(l[1]):l[1];u&&(c=window.atob(c));var h=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var p=c.length,d=new Uint8Array(p);p--;)d[p]=c.charCodeAt(p);var f=new Blob([d]);window.navigator.msSaveOrOpenBlob(f,h)}else{var g=document.createElement("iframe");document.body.appendChild(g);var y=g.contentWindow,v=y.document;v.open("image/svg+xml","replace"),v.write(c),v.close(),y.focus(),v.execCommand("SaveAs",!0,h),document.body.removeChild(g)}}else{var m=n.get("lang"),x='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(m&&m[0]||"")+'" /></body>',_=window.open();_.document.write(x),_.document.title=i}else{var b=document.createElement("a");b.download=i+"."+o,b.target="_blank",b.href=a;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});b.dispatchEvent(w)}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(Ay),Aw="__ec_magicType_stack__",AS=[["line","bar"],["stack"]],AM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return tj(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var i,r=this.model,o=r.get(["seriesIndex",n]);if(AI[n]){var a={series:[]};tj(AS,function(t){tV(t,n)>=0&&tj(t,function(t){r.setIconStatus(t,"normal")})}),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},function(t){var e=t.subType,i=t.id,o=AI[n](e,i,t,r);o&&(tB(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=t.getReferringComponents(u,r8).models[0].componentIndex;a[u]=a[u]||[];for(var h=0;h<=c;h++)a[u][c]=a[u][c]||{};a[u][c].boundaryGap="bar"===n}}});var s=n;"stack"===n&&(i=tN({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:i,featureName:"magicType"})}},e}(Ay),AI={line:function(t,e,n,i){if("bar"===t)return tN({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return tN({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r=n.get("stack")===Aw;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),tN({id:e,stack:r?"":Aw},i.get(["option","stack"])||{},!0)}};fl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var AT=Array(60).join("-");function AC(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var AA=RegExp("[ ]+","g"),AL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.prototype.onclick=function(t,e){setTimeout(function(){e.dispatchAction({type:"hideTip"})});var n,i,r,o,a,s,l=e.getDom(),u=this.model;this._dom&&l.removeChild(this._dom);var c=document.createElement("div");c.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",c.style.backgroundColor=u.get("backgroundColor")||"#fff";var h=document.createElement("h4"),p=u.get("lang")||[];h.innerHTML=p[0]||u.get("title"),h.style.cssText="margin:10px 20px",h.style.color=u.get("textColor");var d=document.createElement("div"),f=document.createElement("textarea");d.style.cssText="overflow:auto";var g=u.get("optionToContent"),y=u.get("contentToOption"),v={value:tZ([(o=(s=(n={},i=[],r=[],t.eachRawSeries(function(t){var e=t.coordinateSystem;if(e&&("cartesian2d"===e.type||"polar"===e.type)){var o=e.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;n[a]||(n[a]={categoryAxis:o,valueAxis:e.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),n[a].series.push(t)}else i.push(t)}else i.push(t)}),{seriesGroupByCategoryAxis:n,other:i,meta:r})).seriesGroupByCategoryAxis,a=[],tj(o,function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,r=[" "].concat(tW(t.series,function(t){return t.name})),o=[n.model.getCategories()];tj(t.series,function(t){var e=t.getRawData();o.push(t.getRawData().mapArray(e.mapDimension(i),function(t){return t}))});for(var s=[r.join(" ")],l=0;l<o[0].length;l++){for(var u=[],c=0;c<o.length;c++)u.push(o[c][l]);s.push(u.join(" "))}a.push(s.join("\n"))}),a.join("\n\n"+AT+"\n\n")),tW(s.other,function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a<t-1;a++)i[a]=arguments[a];n.push((o?o+" ":"")+i.join(" "))}),n.join("\n")}).join("\n\n"+AT+"\n\n")],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join("\n\n"+AT+"\n\n"),meta:s.meta};if(tK(g)){var m=g(e.getOption());tQ(m)?d.innerHTML=m:t5(m)&&d.appendChild(m)}else{f.readOnly=u.get("readOnly");var x=f.style;x.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",x.color=u.get("textColor"),x.borderColor=u.get("textareaBorderColor"),x.backgroundColor=u.get("textareaColor"),f.value=v.value,d.appendChild(f)}var _=v.meta,b=document.createElement("div");b.style.cssText="position:absolute;bottom:5px;left:0;right:0";var w="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",S=document.createElement("div"),M=document.createElement("div");w+=";background-color:"+u.get("buttonColor")+";color:"+u.get("buttonTextColor");var I=this;function T(){l.removeChild(c),I._dom=null}eY(S,"click",T),eY(M,"click",function(){var t,n,i,r;if(null==y&&null!=g||null!=y&&null==g)return void T();try{tK(y)?t=y(d,e.getOption()):(n=f.value,i=n.split(RegExp("\n*"+AT+"\n*","g")),r={series:[]},tj(i,function(t,e){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf(" ")>=0)return!0}(t)){var n=function(t){for(var e=t.split(/\n+/g),n=AC(e.shift()).split(AA),i=[],r=tW(n,function(t){return{name:t,data:[]}}),o=0;o<e.length;o++){var a=AC(e[o]).split(AA);i.push(a.shift());for(var s=0;s<a.length;s++)r[s]&&(r[s].data[o]=a[s])}return{series:r,categories:i}}(t),i=_[e],o=i.axisDim+"Axis";i&&(r[o]=r[o]||[],r[o][i.axisIndex]={data:n.categories},r.series=r.series.concat(n.series))}else{var n=function(t){for(var e=t.split(/\n+/g),n=AC(e.shift()),i=[],r=0;r<e.length;r++){var o=AC(e[r]);if(o){var a=o.split(AA),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}(t);r.series.push(n)}}),t=r)}catch(t){throw T(),Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),T()}),S.innerHTML=p[1],M.innerHTML=p[2],M.style.cssText=S.style.cssText=w,u.get("readOnly")||b.appendChild(M),b.appendChild(S),c.appendChild(h),c.appendChild(d),c.appendChild(b),d.style.height=l.clientHeight-80+"px",l.appendChild(c),this._dom=c},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},e}(Ay);fl({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var n=[];tj(t.newOption.series,function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r,o=i.get("data");n.push({name:t.name,data:(r=t.data,tW(r,function(t,e){var n=o&&o[e];if(!t0(n)||tq(n))return t;t0(t)&&!tq(t)||(t={value:t});var i=null!=n.name&&null==t.name;return t=tB(t,n),i&&delete t.name,t}))})}else n.push(tz({type:"scatter"},t))}),e.mergeOption(tB({series:n},t.newOption))});var AD=r5();function Ak(t){var e=AD(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var AP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.prototype.onclick=function(t,e){AD(t).snapshots=null,e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])}},e}(Ay);fl({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var AO=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],AR=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var r=AE(e,t);tj(Az,function(t,e){(!n||!n.include||tV(n.include,e)>=0)&&t(r,i._targetInfoList)})}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=AF[t.brushType](0,n,e);t.__rangeOffset={offset:Aj[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}}),t},t.prototype.matchOutputRanges=function(t,e,n){tj(t,function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&tj(i.coordSyses,function(i){var r=AF[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)})},this)},t.prototype.setInputRanges=function(t,e){tj(t,function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i,r,o,a,s,l=AF[t.brushType](0,n.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?Aj[t.brushType](l.values,u.offset,(i=l.xyMinMax,r=u.xyMinMax,o=AH(i),a=AH(r),isNaN((s=[o[0]/a[0],o[1]/a[1]])[0])&&(s[0]=1),isNaN(s[1])&&(s[1]=1),s)):l.values}},this)},t.prototype.makePanelOpts=function(t,e){return tW(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:SK(i),isTargetByCursor:S$(i,t,n.coordSysModel),getLinearBrushOtherExtent:SQ(i)}})},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&tV(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=AE(e,t),r=0;r<n.length;r++){var o=n[r],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<AB.length;s++)if(AB[s](i,o))return o}return!0},t}();function AN(t){return t[0]>t[1]&&t.reverse(),t}function AE(t,e){return r4(t,e,{includeMainTypes:AO})}var Az={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=ea(),a={},s={};(n||i||r)&&(tj(n,function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0}),tj(i,function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0}),tj(r,function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),o.each(function(t){var r=t.coordinateSystem,o=[];tj(r.getCartesians(),function(t,e){(tV(n,t.getAxis("x").model)>=0||tV(i,t.getAxis("y").model)>=0)&&o.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:AV.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){tj(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:AV.geo})})}},AB=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],AV={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(pr(t)),e}},AF={lineX:tY(AG,0),lineY:tY(AG,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[AN([r[0],o[0]]),AN([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:tW(n,function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}),xyMinMax:r}}};function AG(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=AN(tW([0,1],function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))})),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var Aj={lineX:tY(AW,0),lineY:tY(AW,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return tW(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]})}};function AW(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function AH(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var AZ=rZ+"toolbox-dataZoom_",AX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.prototype.render=function(t,e,n,i){var r,o,a,s,l,u,c,h,p;this._brushController||(this._brushController=new Sx(n.getZr()),this._brushController.on("brush",tU(this._onBrush,this)).mount()),r=t,o=e,a=this,s=i,l=n,u=a._isZoomActive,s&&"takeGlobalCursor"===s.type&&(u="dataZoomSelect"===s.key&&s.dataZoomSelectActive),a._isZoomActive=u,r.setIconStatus("zoom",u?"emphasis":"normal"),c=new AR(AY(r),o,{include:["grid"]}).makePanelOpts(l,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}),a._brushController.setPanels(c).enableBrush(!!u&&!!c.length&&{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}),h=t,p=e,h.setIconStatus("back",Ak(p).length>1?"emphasis":"normal")},e.prototype.onclick=function(t,e,n){AU[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n,i,r,o={},a=this.ecModel;this._brushController.updateCovers([]),new AR(AY(this.model),a,{include:["grid"]}).matchOutputRanges(e,a,function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(s("x",n,e[0]),s("y",n,e[1])):s({lineX:"x",lineY:"y"}[i],n,e)}}),n=a,i=o,r=Ak(n),tj(i,function(t,e){for(var i=r.length-1;i>=0&&!r[i][e];i--);if(i<0){var o=n.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0];if(o){var a=o.getPercentRange();r[0][e]={dataZoomId:e,start:a[0],end:a[1]}}}}),r.push(i),this._dispatchZoomAction(o)}function s(t,e,n){var i,r,s,l=e.getAxis(t),u=l.model,c=(i=t,r=u,a.eachComponent({mainType:"dataZoom",subType:"select"},function(t){t.getAxisModel(i,r.componentIndex)&&(s=t)}),s),h=c.findRepresentativeAxisProxy(u).getMinMaxSpan();(null!=h.minValueSpan||null!=h.maxValueSpan)&&(n=w7(0,n.slice(),l.scale.getExtent(),0,h.minValueSpan,h.maxValueSpan)),c&&(o[c.id]={dataZoomId:c.id,startValue:n[0],endValue:n[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];tj(t,function(t,n){e.push(tR(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(Ay),AU={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){var t,e,n;this._dispatchZoomAction((e=(t=Ak(this.ecModel))[t.length-1],t.length>1&&t.pop(),n={},tj(e,function(e,i){for(var r=t.length-1;r>=0;r--)if(e=t[r][i]){n[i]=e;break}}),n))}};function AY(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}m=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=r4(t,AY(i));return tj(o.xAxisModels,function(t){return a(t,"xAxis","xAxisIndex")}),tj(o.yAxisModels,function(t){return a(t,"yAxis","yAxisIndex")}),r}function a(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:AZ+e+o};a[n]=o,r.push(a)}},et(null==un.get("dataZoom")&&m),un.set("dataZoom",m);var Aq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(lX);function AK(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function AQ(t){if(ty.domSupported){for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}}var A$=AQ(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function AJ(t,e){if(!t)return e;e=lL(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var A0=AJ(AQ(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),A1=AJ(A$,"transform"),A2="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ty.transform3dSupported?"will-change:transform;":"");function A5(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!ty.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=ty.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+A1+":"+a+";":[["top",0],["left",0],[A$,a]]}function A3(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&eE(eN,a,i,r,!0)&&eE(t,n,eN[0],eN[1])}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var A4=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ty.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),r=e.appendTo,o=r&&(tQ(r)?document.querySelector(r):t5(r)?r:tK(r)&&r(t.getDom()));A3(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler;eU(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e,n,i=this._api.getDom(),r=(e="position",(n=i.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?e?n[e]:n:null),o=i.style;"absolute"!==o.position&&"absolute"!==r&&(o.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n,i,r,o,a,s,l,u,c,h,p,d,f,g,y,v,m,x,_,b,w,S,M=this.el,I=M.style,T=this._styleCoord;M.innerHTML?I.cssText=A2+(n=!this._firstShow,i=this._longHide,r=[],o=t.get("transitionDuration"),a=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),h=t.getModel("textStyle"),p=cz(t,"html"),d=u+"px "+c+"px "+s+"px "+l,r.push("box-shadow:"+d),n&&o&&r.push((g="opacity"+(f=" "+o/2+"s cubic-bezier(0.23,1,0.32,1)")+",visibility"+f,i||(f=" "+o+"s cubic-bezier(0.23,1,0.32,1)",g+=ty.transformSupported?","+A1+f:",left"+f+",top"+f),A0+":"+g)),a&&r.push("background-color:"+a),tj(["width","color","radius"],function(e){var n="border-"+e,i=lL(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))}),r.push((y=[],v=h.get("fontSize"),(m=h.getTextColor())&&y.push("color:"+m),y.push("font:"+h.getFont()),x=t6(h.get("lineHeight"),Math.round(3*v/2)),v&&y.push("line-height:"+x+"px"),_=h.get("textShadowColor"),b=h.get("textShadowBlur")||0,w=h.get("textShadowOffsetX")||0,S=h.get("textShadowOffsetY")||0,_&&b&&y.push("text-shadow:"+w+"px "+S+"px "+b+"px "+_),tj(["decoration","align"],function(t){var e=h.get(t);e&&y.push("text-"+t+":"+e)}),y.join(";"))),null!=p&&r.push("padding:"+t7(p).join("px ")+"px"),r.join(";")+";")+A5(T[0],T[1],!0)+"border-color:"+lR(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):I.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null==t){o.innerHTML="";return}var a="";if(tQ(r)&&"item"===n.get("trigger")&&!AK(n)&&(a=function(t,e,n){if(!tQ(n)||"inside"===n)return"";var i,r,o=t.get("backgroundColor"),a=t.get("borderWidth");e=lR(e);var s=i="left"===(i=n)?"right":"right"===i?"left":"top"===i?"bottom":"top",l=Math.max(1.5*Math.round(a),6),u="",c=A1+":";tV(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(r="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(r="top"===s?225:45)+"deg)");var h=r*Math.PI/180,p=l+a,d=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h));u+=";"+s+":-"+Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-p)/2)*100)/100+"px";var f=e+" solid "+a+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",u+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+o+";"].join("")+'"></div>'}(n,i,r)),tQ(t))o.innerHTML=t+a;else if(t){o.innerHTML="",tq(t)||(t=[t]);for(var s=0;s<t.length;s++)t5(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(A3(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style;tj(A5(n[0],n[1]),function(t){i[t[0]]=t[1]})}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",ty.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(tU(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}(),A6=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),A7(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){var o=this;t0(t)&&uu(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new aP({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:cz(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),tj(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),tj(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=A9(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;A7(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=A8(r.borderWidth||0),a=A9(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(tU(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function A8(t){return Math.max(0,t)}function A9(t){var e=A8(t.shadowBlur||0),n=A8(t.shadowOffsetX||0),i=A8(t.shadowOffsetY||0);return{left:A8(e-n),right:A8(e+n),top:A8(e-i),bottom:A8(e+i)}}function A7(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Lt=new aL({shape:{x:-1,y:-1,width:2,height:2}}),Le=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.init=function(t,e){if(!ty.node&&e.getDom()){var n,i=t.getComponent("tooltip"),r=this._renderMode="auto"===(n=i.get("renderMode"))?ty.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===r?new A6(e):new A4(e,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!ty.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?pA(this,"_updatePosition",50,"fixRate"):pL(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");Tq("itemTooltip",this._api,tU(function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n.isDisposed()||r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!ty.node&&n.getDom()){var r=Li(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i,r=r6(t).queryOptionMap,o=r.keys()[0];if(o&&"series"!==o){var a=r7(e,o,r.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a&&(n.getViewOfComponentModel(a).group.traverse(function(e){var n=aZ(e).tooltipConfig;if(n&&n.name===t.name)return i=e,!0}),i))return{componentMainType:o,componentIndex:a.componentIndex,el:i}}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y)Lt.x=i.x,Lt.y=i.y,Lt.update(),aZ(Lt).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:Lt},r);else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var l=T0(i,e),u=l.point[0],c=l.point[1];null!=u&&null!=c&&this._tryShow({offsetX:u,offsetY:c,target:l.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Li(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===Ln([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i,r,o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){if("legend"===aZ(n).ssrType)return;this._lastDataByCoordSys=null,dt(n,function(t){return null!=aZ(t).dataIndex?(i=t,!0):null!=aZ(t).tooltipConfig?(r=t,!0):void 0},!0),i?this._showSeriesItemTooltip(t,i,e):r?this._showComponentItemTooltip(t,r,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=tU(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=Ln([e.tooltipOption],i),a=this._renderMode,s=[],l=cL("section",{blocks:[],noHeader:!0}),u=[],c=new cB;tj(t,function(t){tj(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=Tz(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=cL("section",{header:o,noHeader:!ee(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),tj(t.seriesDataIndices,function(l){var p=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,f=p.getDataParams(d);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=ml(e.axis,{value:r}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",lR(f.color),a);var g=u3(p.formatTooltip(d,!0,null)),y=g.frag;if(y){var v=Ln([p],i).get("valueFormatter");h.blocks.push(v?tz({valueFormatter:v},y):y)}g.text&&u.push(g.text),s.push(f)}})}})}),l.blocks.reverse(),u.reverse();var h=e.position,p=cO(l,c,a,o.get("order"),n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var d="richText"===a?"\n\n":"<br/>",f=u.join(d);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,f,s,Math.random()+"",r[0],r[1],h,null,c)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=aZ(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,p=t.positionDefault,d=Ln([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=d.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),y=new cB;g.marker=y.makeTooltipMarker("item",lR(g.color),h);var v=u3(s.formatTooltip(l,!1,u)),m=d.get("order"),x=d.get("valueFormatter"),_=v.frag,b=_?cO(x?tz({valueFormatter:x},_):_,y,h,m,i.get("useUTC"),d.get("textStyle")):v.text,w="item_"+s.name+"_"+l;this._showOrMove(d,function(){this._showTooltipContent(d,b,g,w,t.offsetX,t.offsetY,t.position,t.target,y)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=aZ(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;if(tQ(o)){var s=o;o={content:s,formatter:s},a=!0}a&&i&&o.content&&((o=tR(o)).content=eF(o.content));var l=[o],u=this._ecModel.getComponent(r.componentMainType,r.componentIndex);u&&l.push(u),l.push({formatter:o.content});var c=t.positionDefault,h=Ln(l,this._tooltipModel,c?{position:c}:null),p=h.get("content"),d=Math.random()+"",f=new cB;this._showOrMove(h,function(){var n=tR(h.get("formatterParams")||{});this._showTooltipContent(h,p,n,d,t.offsetX,t.offsetY,t.position,e,f)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(c)if(tQ(c)){var d=t.ecModel.get("useUTC"),f=tq(n)?n[0]:n,g=f&&f.axisType&&f.axisType.indexOf("time")>=0;h=c,g&&(h=lp(f.axisValue,h,d)),h=lO(h,n,!0)}else if(tK(c)){var y=tU(function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,h=c(n,i,y)}else h=c;u.setContent(h,l,t,p,a),u.show(t,p),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||tq(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:tq(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),tK(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),tq(e))n=rC(e[0],s),i=rC(e[1],l);else if(t0(e)){var d=e;d.width=u[0],d.height=u[1];var f=lV(d,{width:s,height:l});n=f.x,i=f.y,c=null,h=null}else if(tQ(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,p,u,t.get("borderWidth"));n=g[0],i=g[1]}else{var y,v,m,x,_,b,w,S,M,I,g=(y=n,v=i,m=r,x=s,_=l,b=c?null:20,w=h?null:20,M=(S=m.getSize())[0],I=S[1],null!=b&&(y+M+b+2>x?y-=M+b:y+=b),null!=w&&(v+I+w>_?v-=I+w:v+=w),[y,v]);n=g[0],i=g[1]}if(c&&(n-=Lr(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=Lr(h)?u[1]/2:"bottom"===h?u[1]:0),AK(t)){var T,C,A,L,D,k,P,O,g=(T=n,C=i,A=r,L=s,D=l,P=(k=A.getSize())[0],O=k[1],T=Math.min(T+P,L)-P,C=Math.min(C+O,D)-O,[T=Math.max(T,0),C=Math.max(C,0)]);n=g[0],i=g[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&tj(n,function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&tj(a,function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&tj(a,function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&tj(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!ty.node&&e.getDom()&&(pL(this,"_updatePosition"),this._tooltipContent.dispose(),T$("itemTooltip",e))},e.type="tooltip",e}(cQ);function Ln(t,e,n){var i,r=e.ecModel;n?(i=new s8(n,r,r),i=new s8(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof s8&&(a=a.get("tooltip",!0)),tQ(a)&&(a={formatter:a}),a&&(i=new s8(a,i,r)))}return i}function Li(t,e){return t.dispatchAction||tU(e.dispatchAction,e)}function Lr(t){return"center"===t||"middle"===t}var Lo=["rect","polygon","keep","clear"];function La(t,e){var n=rX(t?t.brush:[]);if(n.length){var i,r,o=[];tj(n,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(o=o.concat(e))});var a=t&&t.toolbox;tq(a)&&(a=a[0]),a||(t.toolbox=[a={feature:{}}]);var s=a.feature||(a.feature={}),l=s.brush||(s.brush={}),u=l.type||(l.type=[]);u.push.apply(u,o),r={},tj(i=u,function(t){r[t]=1}),i.length=0,tj(r,function(t,e){i.push(e)}),e&&!u.length&&u.push.apply(u,Lo)}}function Ls(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function Ll(t,e,n){var i={};return tj(e,function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);tj(t[e],function(t,i){if(bb.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new bb(r),"opacity"===i&&((r=tR(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new bb(r))}})}),i}function Lu(t,e,n){var i;tj(n,function(t){e.hasOwnProperty(t)&&Ls(e[t])&&(i=!0)}),i&&tj(n,function(n){e.hasOwnProperty(n)&&Ls(e[n])?t[n]=tR(e[n]):delete t[n]})}var Lc={lineX:Lh(0),lineY:Lh(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&xH(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];if(xH(i,r,o)||xH(i,r+a,o)||xH(i,r,o+s)||xH(i,r+a,o+s)||ns.create(t).contain(l[0],l[1])||ph(r,o,r+a,o,i)||ph(r,o,r,o+s,i)||ph(r+a,o,r+a,o+s,i)||ph(r,o+s,r+a,o+s,i))return!0}}};function Lh(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range;return Lp(e[t],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]<s[0]&&s.reverse(),Lp(s[0],a)||Lp(s[1],a)||Lp(a[0],s)||Lp(a[1],s)}}}}function Lp(t,e){return e[0]<=t&&t<=e[1]}var Ld=["inBrush","outOfBrush"],Lf="__ecBrushSelect",Lg="__ecInBrushSelectEvent";function Ly(t){t.eachComponent({mainType:"brush"},function(e){(e.brushTargetManager=new AR(e.option,t)).setInputRanges(e.areas,t)})}function Lv(t,e,n){var i,r,o=[];t.eachComponent({mainType:"brush"},function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})}),Ly(t),t.eachComponent({mainType:"brush"},function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:tR(e.areas),selected:[]};o.push(a);var s=e.option,l=s.brushLink,u=[],c=[],h=[],p=!1;n||(i=s.throttleType,r=s.throttleDelay);var d=tW(e.areas,function(t){var e,n,i=L_[t.brushType],r=tB({boundingRect:i?i(t):void 0},t);return e=r.brushType,r.selectors=n={point:function(t){return Lc[e].point(t,n,r)},rect:function(t){return Lc[e].rect(t,n,r)}},r}),f=Ll(e.option,Ld,function(t){t.mappingMethod="fixed"});function g(t){return"all"===l||!!u[t]}function y(t){return!!t.length}tq(l)&&tj(l,function(t){u[t]=1}),t.eachSeries(function(n,i){var r,o,a,s=h[i]=[];"parallel"===n.subType?(r=n,o=i,a=r.coordinateSystem,p=p||a.hasAxisBrushed(),g(o)&&a.eachActiveState(r.getData(),function(t,e){"active"===t&&(c[e]=1)})):function(n,i,r){if(!(!n.brushSelector||(o=e,a=i,null!=(s=o.option.seriesIndex)&&"all"!==s&&(tq(s)?0>tV(s,a):a!==s)))&&(tj(d,function(i){e.brushTargetManager.controlSeries(i,n,t)&&r.push(i),p=p||y(r)}),g(i)&&y(r))){var o,a,s,l=n.getData();l.each(function(t){Lx(n,r,l,t)&&(c[t]=1)})}}(n,i,s)}),t.eachSeries(function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var i=h[e],r=t.getData(),o=g(e)?function(t){return c[t]?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return Lx(t,i,r,e)?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?p:y(i))&&function(t,e,n,i){var r,o={};function a(t){return p4(n,r,t)}function s(t,e){p8(n,r,t,e)}tj(t,function(t){var n=bb.prepareVisualTypes(e[t]);o[t]=n}),n.each(function(t,l){r=t;var u=n.getRawDataItem(r);if(!u||!1!==u.visualMap)for(var c=i.call(void 0,t),h=e[c],p=o[c],d=0,f=p.length;d<f;d++){var g=p[d];h[g]&&h[g].applyVisual(t,a,s)}})}(Ld,f,r,o)})}),function(t,e,n,i,r){if(r){var o=t.getZr();o[Lg]||(o[Lf]||(o[Lf]=Lm),pA(o,Lf,n,e)(t,i))}}(e,i,r,o,n)}function Lm(t,e){if(!t.isDisposed()){var n=t.getZr();n[Lg]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[Lg]=!1}}function Lx(t,e,n,i){for(var r=0,o=e.length;r<o;r++){var a=e[r];if(t.brushSelector(i,n,a.selectors,a))return!0}}var L_={rect:function(t){return Lb(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;i<r;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&Lb(e)}};function Lb(t){return new ns(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var Lw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new Sx(e.getZr())).on("brush",tU(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){Ly(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){i&&i.$from===t.id||this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:tR(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:tR(n),$from:e})},e.type="brush",e}(cQ),LS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return tf(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;e||Lu(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=tW(t,function(t){return LM(this.option,t)},this))},e.prototype.setBrushOption=function(t){this.brushOption=LM(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(lX);function LM(t,e){return tN({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new s8(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var LI=["rect","polygon","lineX","lineY","keep","clear"],LT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length}),this._brushType=i,this._brushMode=r,tj(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return tj(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){return{show:!0,type:LI.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(Ay),LC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return tf(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(lX),LA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=t6(t.get("textBaseline"),t.get("textVerticalAlign")),l=new aP({style:sG(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new aP({style:sG(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!p&&!f,h.silent=!d&&!f,p&&l.on("click",function(){lN(p,"_"+t.get("target"))}),d&&h.on("click",function(){lN(d,"_"+t.get("subtarget"))}),aZ(l).eventData=aZ(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var v=lV(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),h.setStyle(m),g=i.getBoundingRect();var x=v.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var b=new aL({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(cQ),LL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return tf(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],tj(n,function(e,n){var i,o=rJ(rq(e),"");t0(e)?(i=tR(e)).value=n:i=n,t.push(i),r.push(o)})):t=n,(this._data=new gA([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[i]||"number"}],this)).initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(lX),LD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.type="timeline.slider",e.defaultOption=lt(LL.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(LL);tF(LD,u5.prototype);var Lk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.type="timeline",e}(cQ),LP=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return tf(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(mI),LO=Math.PI,LR=r5(),LN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){return cL("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},tj(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](i,r,a,t)},this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i,r,o,a,s,l=t.get(["label","position"]),u=t.get("orient"),c=(n=t,i=e,lV(n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()},n.get("padding"))),h={horizontal:"center",vertical:(r=null==l||"auto"===l?"horizontal"===u?c.y+c.height/2<e.getHeight()/2?"-":"+":c.x+c.width/2<e.getWidth()/2?"+":"-":tQ(l)?({horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}})[u][l]:l)>=0||"+"===r?"left":"right"},p="vertical"===u?c.height:c.width,d=t.getModel("controlStyle"),f=d.get("show",!0),g=f?d.get("itemSize"):0,y=f?d.get("itemGap"):0,v=g+y,m=t.get(["label","rotate"])||0;m=m*LO/180;var x=d.get("position",!0),_=f&&d.get("showPlayBtn",!0),b=f&&d.get("showPrevBtn",!0),w=f&&d.get("showNextBtn",!0),S=0,M=p;"left"===x||"bottom"===x?(_&&(o=[0,0],S+=v),b&&(a=[S,0],S+=v)):(_&&(o=[M-g,0],M-=v),b&&(a=[0,0],S+=v)),w&&(s=[M-g,0],M-=v);var I=[S,M];return t.get("inverse")&&I.reverse(),{viewRect:c,mainLength:p,orient:u,rotation:({horizontal:0,vertical:LO/2})[u],labelRotation:m,labelPosOpt:r,labelAlign:t.get(["label","align"])||h[u],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||({horizontal:r>=0||"+"===r?"top":"bottom",vertical:"middle"})[u],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,axisExtent:I,controlSize:g,controlGap:y}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=e0(),a=r.x,s=r.y+r.height;e3(o,o,[-a,-s]),e4(o,o,-LO/2),e3(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=y(r),u=y(n.getBoundingRect()),c=y(i.getBoundingRect()),h=[n.x,n.y],p=[i.x,i.y];p[0]=h[0]=l[0][0];var d=t.labelPosOpt;if(null==d||tQ(d)){var f=+("+"!==d);v(h,u,l,1,f),v(p,c,l,1,1-f)}else{var f=d>=0?0:1;v(h,u,l,1,f),p[1]=h[1]+d}function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.setPosition(h),i.setPosition(p),n.rotation=i.rotation=t.rotation,g(n),g(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new vq({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new v$({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new vK}}(e,i);r.getTicks=function(){return n.mapArray(["value"],function(t){return{value:t}})};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new LP("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new rb;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new hR({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:tz({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new hR({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:tB({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],tj(a,function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h=LE(s,l,e,{x:a,y:0,onclick:tU(r._changeTimeline,r,t.value)});h.ensureState("emphasis").style=u.getItemStyle(),h.ensureState("progress").style=c.getItemStyle(),sy(h);var p=aZ(h);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(h)})},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],tj(a,function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=new aP({x:n.dataToCoord(i.tickValue),y:0,rotation:t.labelRotation-t.rotation,onclick:tU(r._changeTimeline,r,a),silent:!1,style:sG(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});h.ensureState("emphasis").style=sG(u),h.ensureState("progress").style=sG(c),e.add(h),sy(h),LR(h).dataIndex=a,r._tickLabels.push(h)})}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(t,n,l,u){if(t){var c,h,p,d,f,g,y=rh(t6(i.get(["controlStyle",n+"BtnSize"]),r),r),v=(c=i,h=n+"Icon",p=[0,-y/2,y,y],f=(d={x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l}).style,g=pc(c.get(["controlStyle",h]),d||{},new ns(p[0],p[1],p[2],p[3])),f&&g.setStyle(f),g);v.ensureState("emphasis").style=s,e.add(v),sy(v)}}c(t.nextBtnPosition,"next",tU(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",tU(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",tU(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this;this._currentPointer=LE(a,a,this._mainGroup,{},this._currentPointer,{onCreate:function(t){t.draggable=!0,t.drift=tU(s._handlePointerDrag,s),t.ondragend=tU(s._handlePointerDragend,s),Lz(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){Lz(t,s._progressLine,o,n,i)}})},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=rL(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var r=this._progressLine;r&&(r.shape.x2=n,r.dirty());var o=this._findNearestTick(n),a=this.model;(e||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){return po(t,this._mainGroup.getLocalTransform(),!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],function(n,o){var a=Math.abs(r.dataToCoord(n)-t);a<i&&(i=a,e=o)}),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",LR(n[i]).dataIndex<=t)},e.type="timeline.slider",e}(Lk);function LE(t,e,n,i,r,o){var a=e.get("color");r?(r.setColor(a),n.add(r),o&&o.onUpdate(r)):((r=dd(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r));var s=e.getItemStyle(["color"]);r.setStyle(s),i=tN({rectHover:!0,z2:100},i,!0);var l=df(t.get("symbolSize"));i.scaleX=l[0]/2,i.scaleY=l[1]/2;var u=dg(t.get("symbolOffset"),l);u&&(i.x=(i.x||0)+u[0],i.y=(i.y||0)+u[1]);var c=t.get("symbolRotate");return i.rotation=(c||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function Lz(t,e,n,i,r,o){if(!t.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function LB(t){var e=t&&t.timeline;tq(e)||(e=e?[e]:[]),tj(e,function(t){t&&function(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),LV(t),LF(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});LF(i,"position")||(i.position=t.controlPosition),"none"!==i.position||LF(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}tj(t.data||[],function(t){t0(t)&&!tq(t)&&(!LF(t,"value")&&LF(t,"name")&&(t.value=t.name),LV(t))})}(t)})}function LV(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};tj(i,function(t,e){o[e]||LF(r,e)||(r[e]=t)}),n.label&&!LF(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function LF(t,e){return t.hasOwnProperty(e)}function LG(t,e){if(!t)return!1;for(var n=tq(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1}function Lj(t){rU(t,"label",["show"])}var LW=r5(),LH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return tf(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(ty.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries(function(t){var n=t.get(this.mainType,!0),o=LW(t)[r];if(!n||!n.data){LW(t)[r]=null;return}o?o._mergeOption(n,e,!0):(i&&Lj(n),tj(n.data,function(t){t instanceof Array?(Lj(t[0]),Lj(t[1])):Lj(t)}),tz(o=this.createMarkerModelFromSeries(n,this,e),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),LW(t)[r]=o},this)},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return cL("section",{header:this.name,blocks:[cL("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,e){var n=u5.prototype.getDataParams.call(this,t,e),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,e){return LW(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(lX);tF(LH,u5.prototype);var LZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},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}(LH);function LX(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function LU(t,e,n,i,r,o){var a=[],s=gO(e,i)?e.getCalculationInfo("stackResultDimension"):i,l=LJ(e,s,t),u=e.indicesOfNearest(s,l)[0];a[r]=e.get(n,u),a[o]=e.get(s,u);var c=e.get(i,u),h=rD(e.get(i,u));return(h=Math.min(h,20))>=0&&(a[o]=+a[o].toFixed(h)),[a,c]}var LY={min:tY(LU,"min"),max:tY(LU,"max"),average:tY(LU,"average"),median:tY(LU,"median")};function Lq(t,e){if(e){var n,i=t.getData(),r=t.coordinateSystem,o=r&&r.dimensions;if(!(!isNaN(parseFloat((n=e).x))&&!isNaN(parseFloat(n.y)))&&!tq(e.coord)&&tq(o)){var a=LK(e,i,r,t);if((e=tR(e)).type&&LY[e.type]&&a.baseAxis&&a.valueAxis){var s=tV(o,a.baseAxis.dim),l=tV(o,a.valueAxis.dim),u=LY[e.type](i,a.baseDataDim,a.valueDataDim,s,l);e.coord=u[0],e.value=u[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&tq(o))for(var c=e.coord,h=0;h<2;h++)LY[c[h]]&&(c[h]=LJ(i,i.mapDimension(o[h]),c[h]));else e.coord=[];return e}}function LK(t,e,n,i){var r,o,a,s={};return null!=t.valueIndex||null!=t.valueDim?(s.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,s.valueAxis=n.getAxis((r=i,o=s.valueDataDim,(a=r.getData().getDimensionInfo(o))&&a.coordDim)),s.baseAxis=n.getOtherAxis(s.valueAxis),s.baseDataDim=e.mapDimension(s.baseAxis.dim)):(s.baseAxis=i.getBaseAxis(),s.valueAxis=n.getOtherAxis(s.baseAxis),s.baseDataDim=e.mapDimension(s.baseAxis.dim),s.valueDataDim=e.mapDimension(s.valueAxis.dim)),s}function LQ(t,e){return!t||!t.containData||!e.coord||!!LX(e)||t.containData(e.coord)}function L$(t,e){return t?function(t,n,i,r){return u9(r<2?t.coord&&t.coord[r]:t.value,e[r])}:function(t,n,i,r){return u9(t.value,e[r])}}function LJ(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,function(t,e){!isNaN(t)&&(i+=t,r++)}),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)[+("max"===n)]}var L0=r5(),L1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.init=function(){this.markerGroupMap=ea()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each(function(t){L0(t).keep=!1}),e.eachSeries(function(t){var r=LH.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)}),r.each(function(t){L0(t).keep||i.group.remove(t.group)})},e.prototype.markKeep=function(t){L0(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;tj(t,function(t){var i=LH.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl(function(t){t&&(e?sn(t,a9):sn(t,a7))})})},e.type="marker",e}(cQ);function L2(t,e,n){var i=e.coordinateSystem;t.each(function(r){var o,a=t.getItemModel(r),s=rC(a.get("x"),n.getWidth()),l=rC(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),c=t.get(i.dimensions[1],r);o=i.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)})}var L5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=LH.getMarkerModelFromSeries(t,"markPoint");e&&(L2(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},e.prototype.renderSeries=function(t,e,n,i){var r,o,a,s,l,u,c,h=t.coordinateSystem,p=t.id,d=t.getData(),f=this.markerGroupMap,g=f.get(p)||f.set(p,new gH),y=(r=h,o=t,a=e,l=new gA(s=r?tW(r&&r.dimensions,function(t){return tz(tz({},o.getData().getDimensionInfo(o.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}],a),u=tW(a.get("data"),tY(Lq,o)),r&&(u=tZ(u,tY(LQ,r))),c=L$(!!r,s),l.initData(u,null,c),l);e.setData(y),L2(e.getData(),t,i),y.each(function(t){var n=y.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),a=n.getShallow("symbolOffset"),s=n.getShallow("symbolKeepAspect");if(tK(i)||tK(r)||tK(o)||tK(a)){var l=e.getRawValue(t),u=e.getDataParams(t);tK(i)&&(i=i(l,u)),tK(r)&&(r=r(l,u)),tK(o)&&(o=o(l,u)),tK(a)&&(a=a(l,u))}var c=n.getModel("itemStyle").getItemStyle(),h=p6(d,"color");c.fill||(c.fill=h),y.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:a,symbolKeepAspect:s,style:c})}),g.updateData(y),this.group.add(g.group),y.eachItemGraphicEl(function(t){t.traverse(function(t){aZ(t).dataModel=e})}),this.markKeep(g),g.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(L1),L3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},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}(LH),L4=r5(),L6=function(t,e,n,i){var r,o=t.getData();if(tq(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=t4(i.yAxis,i.xAxis);else{var u=LK(i,o,e,t);s=u.valueAxis;var c=gR(o,u.valueDataDim);l=LJ(o,c,a)}var h=+("x"!==s.dim),p=1-h,d=tR(i),f={coord:[]};d.type=null,d.coord=[],d.coord[p]=-1/0,f.coord[p]=1/0;var g=n.get("precision");g>=0&&tJ(l)&&(l=+l.toFixed(Math.min(g,20))),d.coord[h]=f.coord[h]=l,r=[d,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var y=[Lq(t,r[0]),Lq(t,r[1]),tz({},r[2])];return y[2].type=y[2].type||null,tN(y[2],y[0]),tN(y[2],y[1]),y};function L8(t){return!isNaN(t)&&!isFinite(t)}function L9(t,e,n,i){var r=1-t,o=i.dimensions[t];return L8(e[r])&&L8(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function L7(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(L9(1,n,i,t)||L9(0,n,i,t)))return!0}return LQ(t,e[0])&&LQ(t,e[1])}function Dt(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=rC(s.get("x"),r.getWidth()),u=rC(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,h=t.get(c[0],e),p=t.get(c[1],e);o=a.dataToPoint([h,p])}if(g8(a,"cartesian2d")){var d=a.getAxis("x"),f=a.getAxis("y"),c=a.dimensions;L8(t.get(c[0],e))?o[0]=d.toGlobalCoord(d.getExtent()[+!n]):L8(t.get(c[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[+!n]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var De=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=LH.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=L4(e).from,o=L4(e).to;r.each(function(e){Dt(r,e,!0,t,n),Dt(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,e,n,i){var r,o,a,s,l,u,c,h,p,d=t.coordinateSystem,f=t.id,g=t.getData(),y=this.markerGroupMap,v=y.get(f)||y.set(f,new wv);this.group.add(v.group);var m=(r=d,o=t,a=e,l=new gA(s=r?tW(r&&r.dimensions,function(t){return tz(tz({},o.getData().getDimensionInfo(o.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}],a),u=new gA(s,a),c=new gA([],a),h=tW(a.get("data"),tY(L6,o,r,a)),r&&(h=tZ(h,tY(L7,r))),p=L$(!!r,s),l.initData(tW(h,function(t){return t[0]}),null,p),u.initData(tW(h,function(t){return t[1]}),null,p),c.initData(tW(h,function(t){return t[2]})),c.hasItemOption=!0,{from:l,to:u,line:c}),x=m.from,_=m.to,b=m.line;L4(e).from=x,L4(e).to=_,e.setData(b);var w=e.get("symbol"),S=e.get("symbolSize"),M=e.get("symbolRotate"),I=e.get("symbolOffset");function T(e,n,r){var o=e.getItemModel(n);Dt(e,n,r,t,i);var a=o.getModel("itemStyle").getItemStyle();null==a.fill&&(a.fill=p6(g,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:t6(o.get("symbolOffset",!0),I[+!r]),symbolRotate:t6(o.get("symbolRotate",!0),M[+!r]),symbolSize:t6(o.get("symbolSize"),S[+!r]),symbol:t6(o.get("symbol",!0),w[+!r]),style:a})}tq(w)||(w=[w,w]),tq(S)||(S=[S,S]),tq(M)||(M=[M,M]),tq(I)||(I=[I,I]),m.from.each(function(t){T(x,t,!0),T(_,t,!1)}),b.each(function(t){var e=b.getItemModel(t).getModel("lineStyle").getLineStyle();b.setItemLayout(t,[x.getItemLayout(t),_.getItemLayout(t)]),null==e.stroke&&(e.stroke=x.getItemVisual(t,"style").fill),b.setItemVisual(t,{fromSymbolKeepAspect:x.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:x.getItemVisual(t,"symbolOffset"),fromSymbolRotate:x.getItemVisual(t,"symbolRotate"),fromSymbolSize:x.getItemVisual(t,"symbolSize"),fromSymbol:x.getItemVisual(t,"symbol"),toSymbolKeepAspect:_.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:_.getItemVisual(t,"symbolOffset"),toSymbolRotate:_.getItemVisual(t,"symbolRotate"),toSymbolSize:_.getItemVisual(t,"symbolSize"),toSymbol:_.getItemVisual(t,"symbol"),style:e})}),v.updateData(b),m.line.eachItemGraphicEl(function(t){aZ(t).dataModel=e,t.traverse(function(t){aZ(t).dataModel=e})}),this.markKeep(v),v.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(L1),Dn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},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}(LH),Di=r5(),Dr=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=Lq(t,r),s=Lq(t,o),l=a.coord,u=s.coord;l[0]=t4(l[0],-1/0),l[1]=t4(l[1],-1/0),u[0]=t4(u[0],1/0),u[1]=t4(u[1],1/0);var c=tE([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function Do(t){return!isNaN(t)&&!isFinite(t)}function Da(t,e,n,i){var r=1-t;return Do(e[r])&&Do(n[r])}function Ds(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};if(g8(t,"cartesian2d"))return!!(n&&i&&(Da(1,n,i,t)||Da(0,n,i,t)))||!t||!t.containZone||!r.coord||!o.coord||!!LX(r)||!!LX(o)||t.containZone(r.coord,o.coord);return LQ(t,r)||LQ(t,o)}function Dl(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=rC(s.get(n[0]),r.getWidth()),u=rC(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var c=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),p=a.clampData(c),d=a.clampData(h),f=[];"x0"===n[0]?f[0]=p[0]>d[0]?h[0]:c[0]:f[0]=p[0]>d[0]?c[0]:h[0],"y0"===n[1]?f[1]=p[1]>d[1]?h[1]:c[1]:f[1]=p[1]>d[1]?c[1]:h[1],o=i.getMarkerPosition(f,n,!0)}else{var g=t.get(n[0],e),y=t.get(n[1],e),v=[g,y];a.clampData&&a.clampData(v,v),o=a.dataToPoint(v,!0)}if(g8(a,"cartesian2d")){var m=a.getAxis("x"),x=a.getAxis("y"),g=t.get(n[0],e),y=t.get(n[1],e);Do(g)?o[0]=m.toGlobalCoord(m.getExtent()[+("x0"!==n[0])]):Do(y)&&(o[1]=x.toGlobalCoord(x.getExtent()[+("y0"!==n[1])]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var Du=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Dc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=LH.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each(function(e){var r=tW(Du,function(r){return Dl(i,e,r,t,n)});i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)})}},this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new rb});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){if(t){var i,r,o=tW(t&&t.dimensions,function(t){var n=e.getData();return tz(tz({},n.getDimensionInfo(n.mapDimension(t))||{}),{name:t,ordinalMeta:null})});i=new gA(r=tW(["x0","y0","x1","y1"],function(t,e){return{name:t,type:o[e%2].type}}),n)}else i=new gA(r=[{name:"value",type:"float"}],n);var a=tW(n.get("data"),tY(Dr,e,t,n));t&&(a=tZ(a,tY(Ds,t)));var s=t?function(t,e,n,i){return u9(t.coord[Math.floor(i/2)][i%2],r[i])}:function(t,e,n,i){return u9(t.value,r[i])};return i.initData(a,null,s),i.hasItemOption=!0,i}(r,t,e);e.setData(u),u.each(function(e){var n=tW(Du,function(n){return Dl(u,e,n,t,i)}),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],p=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];rL(h),rL(p);var d=!(l[0]>h[1]||l[1]<h[0]||c[0]>p[1]||c[1]<p[0]);u.setItemLayout(e,{points:n,allClipped:!d});var f=u.getItemModel(e).getModel("itemStyle").getItemStyle(),g=p6(a,"color");!f.fill&&(f.fill=g,tQ(f.fill)&&(f.fill=ia(f.fill,.4))),f.stroke||(f.stroke=g),u.setItemVisual(e,"style",f)}),u.diff(Di(l).data).add(function(t){var e=u.getItemLayout(t);if(!e.allClipped){var n=new hL({shape:{points:e.points}});u.setItemGraphicEl(t,n),l.group.add(n)}}).update(function(t,n){var i=Di(l).data.getItemGraphicEl(n),r=u.getItemLayout(t);r.allClipped?i&&l.group.remove(i):(i?sL(i,{shape:{points:r.points}},e,t):i=new hL({shape:{points:r.points}}),u.setItemGraphicEl(t,i),l.group.add(i))}).remove(function(t){var e=Di(l).data.getItemGraphicEl(t);l.group.remove(e)}).execute(),u.eachItemGraphicEl(function(t,n){var i=u.getItemModel(n),r=u.getItemVisual(n,"style");t.useStyle(u.getItemVisual(n,"style")),sV(t,sF(i),{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:tQ(r.fill)?ia(r.fill,1):"#000"}),sb(t,i),sv(t,null,null,i.get(["emphasis","disabled"])),aZ(t).dataModel=e}),Di(l).data=u,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(L1),Dh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return tf(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),tq(e)&&tj(e,function(t,i){var r;tQ(t)&&(t={type:t}),e[i]=tN(t,"all"===(r=t.type)?{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])}:"inverse"===r?{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}:void 0)})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}e||this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries(function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(a)),a.length?e=e.concat(a):r=!0}else r=!0;r&&r0(i)&&e.push(i.name)}),this._availableNames=n;var i=this.get("data")||e,r=ea(),o=tW(i,function(t){return((tQ(t)||tJ(t))&&(t={name:t}),r.get(t.name))?null:(r.set(t.name,!0),new s8(t,this,this.ecModel))},this);this._data=tZ(o,function(t){return!!t})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&tj(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;tj(t,function(t){e[t.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;tj(t,function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]})},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&tV(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{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",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",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:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(lX),Dp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return tf(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new rb),this.group.add(this._selectorGroup=new rb),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);a&&(!s||"auto"===s)&&(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=lV(l,u,c),p=this.layoutInner(t,r,h,i,a,s),d=lV(tB({width:p.width,height:p.height},l),u,c);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Ax(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=ea(),u=e.get("selectedMode"),c=[];n.eachRawSeries(function(t){t.get("legendHoverLink")||c.push(t.id)}),tj(e.getData(),function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new rb;h.newline=!0,s.add(h);return}var p=n.getSeriesByName(a)[0];if(!l.get(a))if(p){var d=p.getData(),f=d.getVisual("legendLineStyle")||{},g=d.getVisual("legendIcon"),y=d.getVisual("style"),v=this._createItem(p,a,o,r,e,t,f,y,g,u,i);v.on("click",tY(Dd,a,null,i,c)).on("mouseover",tY(Dg,p.name,null,i,c)).on("mouseout",tY(Dy,p.name,null,i,c)),n.ssr&&v.eachChild(function(t){var e=aZ(t);e.seriesIndex=p.seriesIndex,e.dataIndex=o,e.ssrType="legend"}),l.set(a,!0)}else n.eachRawSeries(function(s){if(!l.get(a)&&s.legendVisualProvider){var h=s.legendVisualProvider;if(h.containName(a)){var p=h.indexOfName(a),d=h.getItemVisual(p,"style"),f=h.getItemVisual(p,"legendIcon"),g=it(d.fill);g&&0===g[3]&&(g[3]=.2,d=tz(tz({},d),{fill:is(g,"rgba")}));var y=this._createItem(s,a,o,r,e,t,{},d,f,u,i);y.on("click",tY(Dd,null,a,i,c)).on("mouseover",tY(Dg,null,a,i,c)).on("mouseout",tY(Dy,null,a,i,c)),n.ssr&&y.eachChild(function(t){var e=aZ(t);e.seriesIndex=s.seriesIndex,e.dataIndex=o,e.ssrType="legend"}),l.set(a,!0)}}},this)},this),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();tj(t,function(t){var i=t.type,r=new aP({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});o.add(r),sV(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),sy(r)})},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,c){var h=t.visualDrawType,p=r.get("itemWidth"),d=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),v=i.get("icon"),m=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=2*(e.lineWidth>0)),tj(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?dF(h,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var p=e.getModel("lineStyle"),d=p.getLineStyle();if(s(d,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===d.stroke&&(d.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}(l=v||l||"roundRect",i,a,s,h,f,c),x=new rb,_=i.getModel("textStyle");if(tK(t.getLegendIcon)&&(!v||"inherit"===v))x.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}));else{var b,w,S,M="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;x.add(((S=dd(w=(b={itemWidth:p,itemHeight:d,icon:l,iconRotate:M,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}).icon||"roundRect",0,0,b.itemWidth,b.itemHeight,b.itemStyle.fill,b.symbolKeepAspect)).setStyle(b.itemStyle),S.rotation=(b.iconRotate||0)*Math.PI/180,S.setOrigin([b.itemWidth/2,b.itemHeight/2]),w.indexOf("empty")>-1&&(S.style.stroke=S.style.fill,S.style.fill="#fff",S.style.lineWidth=2),S))}var I=r.get("formatter"),T=e;tQ(I)&&I?T=I.replace("{name}",null!=e?e:""):tK(I)&&(T=I(e));var C=f?_.getTextColor():i.get("inactiveColor");x.add(new aP({style:sG(_,{text:T,x:"left"===o?p+5:-5,y:d/2,fill:C,align:o,verticalAlign:"middle"},{inheritColor:C})}));var A=new aL({shape:x.getBoundingRect(),style:{fill:"transparent"}}),L=i.getModel("tooltip");return L.get("show")&&pd({el:A,componentModel:r,itemName:e,itemTooltipOption:L.option}),x.add(A),x.eachChild(function(t){t.silent=!0}),A.silent=!u,this.getContentGroup().add(x),sy(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();lB(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),!r)return a.x=u[0],a.y=u[1],this.group.getBoundingRect();lB("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,f=0===d?"width":"height",g=0===d?"height":"width",y=0===d?"y":"x";"end"===o?h[d]+=l[f]+p:u[d]+=c[f]+p,h[1-d]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[f]=l[f]+p+c[f],v[g]=Math.max(l[g],c[g]),v[y]=Math.min(0,c[y]+h[1-d]),v},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(cQ);function Dd(t,e,n,i){Dy(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Dg(t,e,n,i)}function Df(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function Dg(t,e,n,i){Df(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function Dy(t,e,n,i){Df(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function Dv(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function Dm(t,e,n){var i="allSelect"===t||"inverseSelect"===t,r={},o=[];n.eachComponent({mainType:"legend",query:e},function(n){i?n[t]():n[t](e.name),Dx(n,r),o.push(n.componentIndex)});var a={};return n.eachComponent("legend",function(t){tj(r,function(e,n){t[e?"select":"unSelect"](n)}),Dx(t,a)}),i?{selected:a,legendIndex:o}:{name:e.name,selected:a}}function Dx(t,e){var n=e||{};return tj(t.getData(),function(e){var i=e.get("name");if("\n"!==i&&""!==i){var r=t.isSelected(i);ec(n,i)?n[i]=n[i]&&r:n[i]=r}}),n}function D_(t){t.registerComponentModel(Dh),t.registerComponentView(Dp),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,Dv),t.registerSubTypeDefaulter("legend",function(){return"plain"}),t.registerAction("legendToggleSelect","legendselectchanged",tY(Dm,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",tY(Dm,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",tY(Dm,"inverseSelect")),t.registerAction("legendSelect","legendselected",tY(Dm,"select")),t.registerAction("legendUnSelect","legendunselected",tY(Dm,"unSelect"))}var Db=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=lW(e);t.prototype.init.call(this,e,n,i),Dw(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Dw(this,this.option,e)},e.type="legend.scroll",e.defaultOption=lt(Dh.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:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(Dh);function Dw(t,e,n){var i=t.getOrient(),r=[1,1];r[i.index]=0,lj(e,n,{type:"box",ignoreSize:!!r})}var DS=["width","height"],DM=["x","y"],DI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return tf(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new rb),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new rb)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,r,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=tq(c)?c:[c,c];d("pagePrev",0);var p=n.getModel("pageTextStyle");function d(t,e){var i=pc(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:tU(l._pageGo,l,t+"DataIndex",n,r)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});i.name=t,u.add(i)}u.add(new aP({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=DS[s],u=DM[s],c=DS[1-s],h=DM[1-s];r&&lB("horizontal",a,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=a.getBoundingRect(),f=[-d.x,-d.y],g=tR(n);r&&(g[l]=n[l]-d[l]-p);var y=this._layoutContentAndController(t,i,g,s,l,c,h,u);if(r){if("end"===o)f[s]+=y[l]+p;else{var v=d[l]+p;f[s]-=v,y[u]-=v}y[l]+=d[l]+p,f[1-s]+=y[h]+y[c]/2-d[c]/2,y[c]=Math.max(y[c],d[c]),y[h]=Math.min(y[h],d[h]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;lB(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),lB("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),p=c.getBoundingRect(),d=this._showController=h[r]>n[r],f=[-h.x,-h.y];e||(f[i]=l[s]);var g=[0,0],y=[-p.x,-p.y],v=t6(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?y[i]+=n[r]-p[r]:g[i]+=p[r]+v),y[1-i]+=h[o]/2-p[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(y);var m={x:0,y:0};if(m[r]=d?n[r]:h[r],m[o]=Math.max(h[o],p[o]),m[a]=Math.min(0,p[a]+y[1-i]),u.__rectSize=n[r],d){var x={x:0,y:0};x[r]=Math.max(n[r]-p[r]-v,0),x[o]=m[o],u.setClipPath(new aL({shape:x})),u.__rectSize=x[r]}else c.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(t);return null!=_.pageIndex&&sL(l,{x:_.contentPosition[0],y:_.contentPosition[1]},d?t:null),this._updatePageInfoView(t,_),m},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;tj(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",tQ(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=DS[r],a=DM[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=+!!c,p={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var d=m(u);p.contentPosition[r]=-d.s;for(var f=s+1,g=d,y=d,v=null;f<=c;++f)(!(v=m(l[f]))&&y.e>g.s+i||v&&!x(v,g.s))&&(g=y.i>g.i?y:v)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),y=v;for(var f=s-1,g=d,y=d,v=null;f>=-1;--f)(!(v=m(l[f]))||!x(y,v.s))&&g.i<y.i&&(y=g,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=g.i),++p.pageCount,++p.pageIndex),g=v;return p;function m(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function x(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){var e,n;return this._showController?(this.getContentGroup().eachChild(function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)}),null!=e?e:n):0},e.type="legend.scroll",e}(Dp);function DT(t){ff(D_),t.registerComponentModel(Db),t.registerComponentView(DI),t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}var DC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.type="dataZoom.inside",e.defaultOption=lt(Aa.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Aa),DA=r5();function DL(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function DD(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Dk(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}var DP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return tf(e,t),e.prototype.render=function(e,n,i){var r;(t.prototype.render.apply(this,arguments),e.noTarget())?this._clear():(this.range=e.getPercentRange(),r={pan:tU(DO.pan,this),zoom:tU(DO.zoom,this),scrollMove:tU(DO.scrollMove,this)},DA(i).coordSysRecordMap.each(function(t){var n=t.dataZoomInfoMap.get(e.uid);n&&(n.getRange=r)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=DA(t).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||DL(n,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Au),DO={zoom:function(t,e,n,i){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=DN[e](null,[i.originX,i.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(w7(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1])return o}},pan:DR(function(t,e,n,i,r,o){var a=DN[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:DR(function(t,e,n,i,r,o){return DN[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta})};function DR(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s&&(w7(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]))return a}}var DN={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};function DE(t){Af(t),t.registerComponentModel(DC),t.registerComponentView(DP),t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=DA(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=ea());i.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(t){tj(Ar(t).infoList,function(n){var r,o,a,s=n.model.uid,l=i.get(s)||i.set(s,(a=(o={model:r=n.model,containsPoint:tY(Dk,r),dispatchAction:tY(DD,e),dataZoomInfoMap:null,controller:null}).controller=new xf(e.getZr()),tj(["pan","zoom","scrollMove"],function(t){a.on(t,function(e){var n=[];o.dataZoomInfoMap.each(function(i){if(e.isAvailableBehavior(i.model.option)){var r=(i.getRange||{})[t],a=r&&r(i.dzReferCoordSysInfo,o.model.mainType,o.controller,e);!i.model.get("disabled",!0)&&a&&n.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}}),n.length&&o.dispatchAction(n)})}),o));(l.dataZoomInfoMap||(l.dataZoomInfoMap=ea())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})})}),i.each(function(t){var e,n,r,o,a,s=t.controller,l=t.dataZoomInfoMap;if(l){var u=l.keys()[0];null!=u&&(a=l.get(u))}if(!a)return void DL(i,t);var c=(n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,l.each(function(t){var i=t.model,a=!i.get("disabled",!0)&&(!i.get("zoomLock",!0)||"move");r[n+a]>r[n+e]&&(e=a),o=o&&i.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}});s.enable(c.controlType,c.opt),s.setPointerChecker(t.containsPoint),pA(t,"dispatchAction",a.model.get("throttle",!0),"fixRate")})})}var Dz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=lt(Aa.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},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:"#fff",borderColor:"#ACB8D1"},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:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Aa),DB="horizontal",DV="vertical",DF=["line","bar","candlestick","scatter"],DG={easing:"cubicOut",duration:100,delay:0},Dj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return tf(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=tU(this._onBrush,this),this._onBrushEnd=tU(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),pA(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1===e.get("show"))return void this.group.removeAll();if(e.noTarget()){this._clear(),this.group.removeAll();return}r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){pL(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new rb;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),i=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o=this._orient===DB?{right:r.width-i.x-i.width,top:r.height-30-7-7*!!n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=lW(t.option);tj(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=o[t])});var s=lV(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===DV&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==DB||r?n===DB&&r?{scaleY:a?1:-1,scaleX:-1}:n!==DV||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new aL({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new aL({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:tU(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u,c=r.getDataExtent(a),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var p=[0,e[1]],d=[0,e[0]],f=[[e[0],0],[0,0]],g=[],y=d[1]/(r.count()-1),v=0,m=Math.round(r.count()/e[0]);r.each([a],function(t,e){if(m>0&&e%m){v+=y;return}var n=null==t||isNaN(t)||""===t,i=n?0:rT(t,c,p,!0);n&&!u&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&u&&(f.push([v,0]),g.push([v,0])),f.push([v,i]),g.push([v,i]),v+=y,u=n}),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var x=this.dataZoomModel,_=0;_<3;_++){var b=function(t){var e=x.getModel(t?"selectedDataBackground":"dataBackground"),n=new rb,i=new hL({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new hk({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}(1===_);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}}}},e.prototype._prepareDataShadowInfo=function(){var t,e=this.dataZoomModel,n=e.get("showDataShadow");if(!1!==n){var i=this.ecModel;return e.eachTargetAxis(function(r,o){tj(e.getAxisProxy(r,o).getTargetSeriesModels(),function(e){if(!t&&!(!0!==n&&0>tV(DF,e.get("type")))){var a,s=i.getComponent(Ai(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),t={thisAxis:s,series:e,thisDim:r,otherDim:l,otherAxisInverse:a}}},this)},this),t}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new aL({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new aL({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),tj([0,1],function(e){var o=a.get("handleIcon");!dc[o]&&0>o.indexOf("path://")&&0>o.indexOf("image://")&&(o="path://"+o);var s=dd(o,-1,0,2,2,null,!0);s.attr({cursor:DW(this._orient),draggable:!0,drift:tU(this._onDragMove,this,e),ondragend:tU(this._onDragEnd,this),onmouseover:tU(this._showDataInfo,this,!0),onmouseout:tU(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=rC(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),sy(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[e]=s);var h=a.getModel("textStyle"),p=(a.get("handleLabel")||{}).show||!1;t.add(i[e]=new aP({silent:!0,invisible:!p,style:sG(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))},this);var h=c;if(u){var p=rC(a.get("moveHandleSize"),o[1]),d=e.moveHandle=new aL({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),f=.8*p,g=e.moveHandleIcon=dd(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+p/2-.5,d.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(p,10));(h=e.moveZone=new aL({invisible:!0,shape:{y:o[1]-y,height:p+y}})).on("mouseover",function(){s.enterEmphasis(d)}).on("mouseout",function(){s.leaveEmphasis(d)}),r.add(d),r.add(g),r.add(h)}h.attr({draggable:!0,cursor:DW(this._orient),drift:tU(this._onDragMove,this,"all"),ondragstart:tU(this._showDataInfo,this,!0),ondragend:tU(this._onDragEnd,this),onmouseover:tU(this._showDataInfo,this,!0),onmouseout:tU(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[rT(t[0],[0,100],e,!0),rT(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];w7(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?rT(o.minSpan,a,r,!0):null,null!=o.maxSpan?rT(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=rL([rT(i[0],r,a,!0),rT(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=rL(n.slice()),r=this._size;tj([0,1],function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new aL,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=rL(this._handleEnds.slice());function h(t){var e=pr(n.handles[t].parent,this.group),a=pa(0===t?"right":"left",e),s=this._handleWidth/2+5,l=po([c[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:r===DB?"middle":a,align:r===DB?a:"center",text:o[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");(null==r||"auto"===r)&&(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(r,20));return tK(i)?i(t,o):tQ(i)?i.replace("{value}",o):o},e.prototype._showDataInfo=function(t){var e=(this.dataZoomModel.get("handleLabel")||{}).show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,i=t||this._dragging?n:e,r=this._displayables,o=r.handleLabels;o[0].attr("invisible",!i),o[1].attr("invisible",!i),r.moveHandle&&this.api[i?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,eq(i.event);var r=po([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(t,r[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0)&&!(n[0]>e[0])&&!(n[1]<0)&&!(n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new e9(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(new Date-this._brushStartTime<200&&5>Math.abs(n.width))){var i=this._getViewExtent(),r=[0,100];this._range=rL([rT(n.x,i,r,!0),rT(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(eq(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new aL({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?DG:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=Ar(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(Au);function DW(t){return"vertical"===t?"ns-resize":"ew-resize"}function DH(t){t.registerComponentModel(Dz),t.registerComponentView(Dj),Af(t)}var DZ={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};let DX=function(t,e,n){var i=tR((DZ[t]||{})[e]);return n&&tq(i)?i[i.length-1]:i};var DU=bb.mapVisual,DY=bb.eachVisual,Dq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return tf(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;e||Lu(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=tU(t,this),this.controllerVisuals=Ll(this.option.controller,e,t),this.targetVisuals=Ll(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,n){e.push(n)}):e=rX(t),e},e.prototype.eachTargetSeries=function(t,e){tj(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)},this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries(function(n){n===t&&(e=!0)}),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],tq(t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);if(tQ(s))return s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l);if(tK(s))return i?s(t[0],t[1]):s(t);if(!i)return l;if(t[0]===a[0])return n[0]+" "+l[1];if(t[1]===a[1])return n[1]+" "+l[0];return l[0]+" - "+l[1];function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=rL([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});tN(i,n),tN(r,n);var o=this.isCategory();function a(n){tq(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),(function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},tj(i,function(t,e){if(bb.isValidType(e)){var n=DX(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}}))}).call(this,i,"inRange","outOfRange"),(function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";tj(this.stateList,function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&tR(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&tR(n)||(o?s[0]:[s[0],s[0]])),l.symbol=DU(l.symbol,function(t){return"none"===t?r:t});var u=l.symbolSize;if(null!=u){var c=-1/0;DY(u,function(t){t>c&&(c=t)}),l.symbolSize=DU(u,function(t){return rT(t,[0,c],[0,s[0]],!0)})}},this)}).call(this,r)},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(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(lX),DK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=20),(null==e[1]||isNaN(e[1]))&&(e[1]=140)},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):tq(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),tj(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=rL((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},e.prototype.getVisualMeta=function(t){var e=DQ(this,"outOfRange",this.getExtent()),n=DQ(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&r(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(var u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(e[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=lt(Dq.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:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(Dq);function DQ(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&r<n[1];a++)o.push(r),r+=i;return o.push(n[1]),o}var D$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return tf(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){(this.visualMapModel=t,!1===t.get("show"))?this.group.removeAll():this.doRender(t,e,n,i)},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=t7(e.get("padding")||0),i=t.getBoundingRect();t.add(new aL({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){var i=(n=n||{}).forceState,r=this.visualMapModel,o={};function a(t){return o[t]}function s(t,e){o[t]=e}"color"===e&&(o.color=r.get("contentColor"));var l=r.controllerVisuals[i||r.getValueState(t)];return tj(bb.prepareVisualTypes(l),function(i){var r=l[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=l.__alphaForOpacity),bb.dependsOn(i,e)&&r&&r.applyVisual(t,a,s)}),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;lF(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}(cQ),DJ=[["left","right","width"],["top","bottom","height"]];function D0(t,e,n){var i=t.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:e.getWidth(),height:e.getHeight()},a=+("horizontal"===i.orient),s=DJ[a],l=[0,null,10],u={},c=0;c<3;c++)u[DJ[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][a],p=lV(u,o,i.padding);return s[(p.margin[h[2]]||0)+p[h[0]]+.5*p[h[1]]<.5*o[h[1]]?0:1]}function D1(t,e){return tj(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var D2=Math.min,D5=Math.max,D3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return tf(e,t),e.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=tU(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=tU(this._hideIndicator,this)},e.prototype.doRender=function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new aP({style:sG(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:i})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,r=this._orient,o=this._useHandle,a=D0(e,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new rb;s.add(l),l.add(n.outOfRange=D4()),l.add(n.inRange=D4(null,o?D8(this._orient):null,tU(this._dragHandle,this,"all",!1),tU(this._dragHandle,this,"all",!0))),l.setClipPath(new aL({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=D5(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,i,c,r),this._createHandle(e,s,1,i,c,r)),this._createIndicator(e,s,i,c,r),t.add(s)},e.prototype._createHandle=function(t,e,n,i,r,o){var a=tU(this._dragHandle,this,n,!1),s=tU(this._dragHandle,this,n,!0),l=rh(t.get("handleSize"),i[0]),u=dd(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=D8(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){eq(t.event)}}),u.x=i[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),sw(u,!0),e.add(u);var h=new aP({cursor:c,draggable:!0,drift:a,onmousemove:function(t){eq(t.event)},ondragend:s,style:sG(this.visualMapModel.textStyleModel,{x:0,y:0,text:""})});h.ensureState("blur").style={opacity:.1},h.stateTransition={duration:200},this.group.add(h);var p=[l,0],d=this._shapes;d.handleThumbs[n]=u,d.handleLabelPoints[n]=p,d.handleLabels[n]=h},e.prototype._createIndicator=function(t,e,n,i,r){var o=rh(t.get("indicatorSize"),n[0]),a=dd(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(a instanceof aw){var l=a.style;a.useStyle(tz({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);e.add(a);var u=new aP({silent:!0,invisible:!0,style:sG(this.visualMapModel.textStyleModel,{x:0,y:0,text:""})});this.group.add(u);var c=[("horizontal"===r?i/2:6)+n[0]/2,0],h=this._shapes;h.indicator=a,h.indicatorLabel=u,h.indicatorLabelPoint=c,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,r[1]),this._hideIndicator(),this._updateView()}!this.visualMapModel.get("realtime")===e&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?this._hovering||this._clearHoverLinkToSeries():D6(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[rT(e[0],n,i,!0),rT(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];w7(e,i,r,t,0);var o=n.getExtent();this._dataInterval=[rT(i[0],r,o,!0),rT(i[1],r,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,r),a=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new hW(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var r=1;r<100;r++){var o=t[0]+i*r;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new rb("horizontal"===e&&!n?{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2}:"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"===e&&!n?{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"left"===t?1:-1})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent(),l=this._applyTransform("left",n.mainGroup);tj([0,1],function(u){var c=r[u];c.setStyle("fill",e.handlesColor[u]),c.y=t[u];var h=rT(t[u],[0,a[1]],s,!0),p=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=p/a[0],c.x=a[0]-p/2;var d=po(n.handleLabelPoints[u],pr(c,this.group));if("horizontal"===this._orient){var f="left"===l||"top"===l?(a[0]-p)/2:-((a[0]-p)/2);d[1]+=f}o[u].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(t,"symbolSize"),p=rT(t,o,s,!0),d=a[0]-h/2,f={x:u.x,y:u.y};u.y=p,u.x=d;var g=po(l.indicatorLabelPoint,pr(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),m="horizontal"===this._orient;y.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:m?v:"middle",align:m?"center":v});var x={x:d,y:p,style:{fill:c}},_={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(x,b),y.animateTo(_,b)}else u.attr(x),y.attr(_);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;S<w.length;S++)this.api.enterBlur(w[S])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);i[1]=D2(D5(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,t._dragging||t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r,o,a,s,l,u=[0,i[1]],c=n.getExtent();t=D2(D5(u[0],t),u[1]);var h=(r=n,o=c,a=u,s=6,(l=r.get("hoverLinkDataSize"))&&(s=rT(l,o,a,!0)/2),s),p=[t-h,t+h],d=rT(t,u,c,!0),f=[rT(p[0],u,c,!0),rT(p[1],u,c,!0)];p[0]<u[0]&&(f[0]=-1/0),p[1]>u[1]&&(f[1]=1/0),e&&(f[0]===-1/0?this._showIndicator(d,f[1],"< ",h):f[1]===1/0?this._showIndicator(d,f[0],"> ",h):this._showIndicator(d,d,"≈ ",h));var g=this._hoverLinkDataIndices,y=[];(e||D6(n))&&(y=this._hoverLinkDataIndices=n.findTargetDataIndices(f));var v=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++){var o=rJ(t[i].seriesId,null);if(null==o)return;for(var a=rX(t[i].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(e[o]||(e[o]={}))[c]=1}}}function o(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=o(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}(g,y);this._dispatchHighDown("downplay",D1(v[0],n)),this._dispatchHighDown("highlight",D1(v[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){if(dt(t.target,function(t){var n=aZ(t);if(null!=n.dataIndex)return e=n,!0},!0),e){var e,n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(e.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this.api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",D1(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,i){var r=pr(e,i?null:this.group);return tq(t)?po(t,r,n):pa(t,r,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(D$);function D4(t,e,n,i){return new hL({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){eq(t.event)},ondragend:i})}function D6(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function D8(t){return"vertical"===t?"ns-resize":"ew-resize"}var D9={type:"selectDataRange",event:"dataRangeSelected",update:"update"},D7=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(e){e.setSelected(t.selected)})},kt=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",function(e){var i,r,o,a,s,l=t.pipelineContext;!e.isTargetSeries(t)||l&&l.large||n.push((i=e.stateList,r=e.targetVisuals,o=tU(e.getValueState,e),a=e.getDataDimensionIndex(t.getData()),s={},tj(i,function(t){var e=bb.prepareVisualTypes(r[t]);s[t]=e}),{progress:function(t,e){function n(t){return p4(e,u,t)}function i(t,n){p8(e,u,t,n)}null!=a&&(l=e.getDimensionIndex(a));for(var l,u,c=e.getStore();null!=(u=t.next());){var h=e.getRawDataItem(u);if(!h||!1!==h.visualMap)for(var p=null!=a?c.get(l,u):u,d=o(p),f=r[d],g=s[d],y=0,v=g.length;y<v;y++){var m=g[y];f[m]&&f[m].applyVisual(p,n,i)}}}}))}),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(tU(ke,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}}),t.getData().setVisual("visualMeta",i)}}];function ke(t,e,n,i){for(var r=e.targetVisuals[i],o=bb.prepareVisualTypes(r),a={color:p6(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=r["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,p)}return a.color;function h(t){return a[t]}function p(t,e){a[t]=e}}function kn(t){var e=t&&t.visualMap;tq(e)||(e=e?[e]:[]),tj(e,function(t){if(t){ki(t,"splitList")&&!ki(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&tq(e)&&tj(e,function(t){t0(t)&&(ki(t,"start")&&!ki(t,"min")&&(t.min=t.start),ki(t,"end")&&!ki(t,"max")&&(t.max=t.end))})}})}function ki(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var kr=!1;function ko(t){kr||(kr=!0,t.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),t.registerAction(D9,D7),tj(kt,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(kn))}function ka(t){t.registerComponentModel(DK),t.registerComponentView(D3),ko(t)}var ks=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return tf(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],kl[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual(function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=tR(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=tW(this._pieceList,function(t){return t=tR(t),"inRange"!==e&&(t.visual=null),t}))})},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=bb.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}tj(e.pieces,function(t){tj(i,function(e){t.hasOwnProperty(e)&&(n[e]=1)})}),tj(n,function(t,n){var i=!1;tj(this.stateList,function(t){i=i||o(e,t,n)||o(e.target,t,n)},this),i||tj(this.stateList,function(t){(e[t]||(e[t]={}))[n]=DX(n,"inRange"===t?"active":"inactive",r)})},this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,tj(i,function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)},this),"single"===n.selectedMode){var o=!1;tj(i,function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=tR(t)},e.prototype.getValueState=function(t){var e=bb.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries(function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(e,i){bb.findPieceIndex(e,n)===t&&r.push(i)},this),e.push({seriesId:i.id,dataIndex:r})},this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return tj(r,function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])},this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=lt(Dq.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}(Dq),kl={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;e.splitNumber=r=Math.max(parseInt(r,10),1);for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),rV(t),tj(t,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(t){var e=this.option;tj(e.categories,function(e){t.push({text:this.formatValueText(e,!0),value:e})},this),ku(e,t)},pieces:function(t){var e=this.option;tj(e.pieces,function(e,n){t0(e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var r=i.value=e.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],p=0;p<3&&null==o[c];p++)o[c]=e[h[p]],a[c]=s[p],u[c]=2===p;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=bb.retrieveVisuals(e),t.push(i)},this),ku(e,t),rV(t),tj(t,function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}};function ku(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var kc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return tf(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=t4(e.get("showLabel",!0),!u),h=!e.get("selectedMode");u&&this._renderEndsText(t,u[0],s,c,a),tj(l.viewPieceList,function(i){var l=i.piece,u=new rb;u.onclick=tU(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var p=e.getRepresentValue(l);if(this._createItemSymbol(u,p,[0,0,s[0],s[1]],h),c){var d=this.visualMapModel.getValueState(p);u.add(new aP({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===d?.5:1},silent:h}))}t.add(u)},this),u&&this._renderEndsText(t,u[1],s,c,a),lB(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:D1(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return D0(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new rb,a=this.visualMapModel.textStyleModel;o.add(new aP({style:sG(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=tW(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n,i){var r=dd(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color"));r.silent=i,t.add(r)},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=tR(n.selected),o=e.getSelectedMapKey(t);"single"===i||!0===i?(r[o]=!0,tj(r,function(t,e){r[e]=e===o})):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(D$);function kh(t){t.registerComponentModel(ks),t.registerComponentView(kc),ko(t)}var kp={label:{enabled:!0},decal:{show:!1}},kd=r5(),kf={};function kg(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=tR(kp);tN(i.label,t.getLocaleModel().get("aria"),!1),tN(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=ea();t.eachSeries(function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),kd(t).scope=n}}),t.eachRawSeries(function(e){if(!t.isSeriesFiltered(e)){if(tK(e.enableAriaDecal))return void e.enableAriaDecal();var n=e.getData();if(e.isColorBySeries()){var i=ua(e.ecModel,e.name,kf,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=e.getRawData(),a={},s=kd(e).scope;n.each(function(t){a[n.getRawIndex(t)]=t});var l=o.count();o.each(function(t){var i=a[t],r=o.getName(t)||t+"",c=ua(e.ecModel,r,s,l),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(h,c))})}}function u(t,e){var n=t?tz(tz({},e),t):e;return n.dirty=!0,n}})}}(),function(){var i,o=e.getZr().dom;if(o){var a=t.getLocaleModel().get("aria"),s=n.getModel("label");if(s.option=tB(s.option,a),s.get("enabled")){if(o.setAttribute("role","img"),s.get("description"))return o.setAttribute("aria-label",s.get("description"));var l,u=t.getSeriesCount(),c=s.get(["data","maxCount"])||10,h=Math.min(u,s.get(["series","maxCount"])||10);if(u<1)return;var p=((l=t.get("title"))&&l.length&&(l=l[0]),l&&l.text);i=p?r(s.get(["general","withTitle"]),{title:p}):s.get(["general","withoutTitle"]);var d=[];i+=r(u>1?s.get(["series","multiple","prefix"]):s.get(["series","single","prefix"]),{seriesCount:u}),t.eachSeries(function(e,n){if(n<h){var i,o,a=void 0,l=e.get("name")?"withName":"withoutName";a=r(a=u>1?s.get(["series","multiple",l]):s.get(["series","single",l]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(i=e.subType,(o=t.getLocaleModel().get(["series","typeNames"]))[i]||o.chart)});var p=e.getData();p.count()>c?a+=r(s.get(["data","partialData"]),{displayCnt:c}):a+=s.get(["data","allData"]);for(var f=s.get(["data","separator","middle"]),g=s.get(["data","separator","end"]),y=s.get(["data","excludeDimensionId"]),v=[],m=0;m<p.count();m++)if(m<c){var x=p.getName(m),_=y?tZ(p.getValues(m),function(t,e){return -1===tV(y,e)}):p.getValues(m),b=s.get(["data",x?"withName":"withoutName"]);v.push(r(b,{name:x,value:_.join(f)}))}a+=v.join(f)+g,d.push(a)}});var f=s.getModel(["series","multiple","separator"]),g=f.get("middle"),y=f.get("end");i+=d.join(g)+y,o.setAttribute("aria-label",i)}}}()}function r(t,e){if(!tQ(t))return t;var n=t;return tj(e,function(t,e){n=n.replace(RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),n}}function ky(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},tj(["description","general","series","data"],function(t){null!=e[t]&&(e.label[t]=e[t])})}}var kv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return tf(e,t),e.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new cb(this),cw(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),cw(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:l4},e}(lX),km=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return tf(e,t),e.type="dataset",e}(cQ),kx={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},k_=function(){function t(t){null==(this._condVal=tQ(t)?new RegExp(t):"[object RegExp]"===tS.call(t)?t:null)&&uu("")}return t.prototype.evaluate=function(t){var e=typeof t;return tQ(e)?this._condVal.test(t):!!tJ(e)&&this._condVal.test(t+"")},t}(),kb=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),kw=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),kS=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),kM=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),kI=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0},t}();function kT(t,e){if(!0===t||!1===t){var n,i,r,o,a,s=new kb;return s.value=t,s}if(t0(n=t)&&!tG(n)||uu(""),t.and)return kC("and",t,e);if(t.or)return kC("or",t,e);if(t.not){return i=t,r=e,function(t){return t0(t)&&!tG(t)}(o=i.not)||uu(""),(a=new kM).child=kT(o,r),a.child||uu(""),a}return function(t,e){for(var n=e.prepareGetValue(t),i=[],r=tX(t),o=t.parser,a=o?u7.get(o):null,s=0;s<r.length;s++){var l=r[s];if(!("parser"===l||e.valueGetterAttrMap.get(l))){var u=ec(kx,l)?kx[l]:l,c=t[l],h=a?a(c):c,p=("eq"===u||"ne"===u?new ci("eq"===u,h):ec(ct,u)?new ce(u,h):null)||"reg"===u&&new k_(h);p||uu(""),i.push(p)}}i.length||uu("");var d=new kI;return d.valueGetterParam=n,d.valueParser=a,d.getValue=e.getValue,d.subCondList=i,d}(t,e)}function kC(t,e,n){var i=e[t];tq(i)||uu(""),i.length||uu("");var r="and"===t?new kw:new kS;return r.children=tW(i,function(t){return kT(t,n)}),r.children.length||uu(""),r}var kA=function(){function t(t,e){this._cond=kT(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}(),kL={type:"echarts:filter",transform:function(t){for(var e,n=t.upstream,i=new kA(t.config,{valueGetterAttrMap:ea({dimension:!0}),prepareGetValue:function(t){var e=t.dimension;ec(t,"dimension")||uu("");var i=n.getDimensionInfo(e);return i||uu(""),{dimIdx:i.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}}),r=[],o=0,a=n.count();o<a;o++)e=n.getRawDataItem(o),i.evaluate()&&r.push(e);return{data:r}}},kD={type:"echarts:sort",transform:function(t){var e=t.upstream,n=rX(t.config);n.length||uu("");var i=[];tj(n,function(t){var n=t.dimension,r=t.order,o=t.parser,a=t.incomparable;null==n&&uu(""),"asc"!==r&&"desc"!==r&&uu(""),a&&"min"!==a&&"max"!==a&&uu(""),"asc"!==r&&"desc"!==r&&uu("");var s=e.getDimensionInfo(n);s||uu("");var l=o?u7.get(o):null;o&&!l&&uu(""),i.push({dimIdx:s.index,parser:l,comparator:new cn(r,a)})});var r=e.sourceFormat;r!==l0&&r!==l1&&uu("");for(var o=[],a=0,s=e.count();a<s;a++)o.push(e.getRawDataItem(a));return o.sort(function(t,n){for(var r=0;r<i.length;r++){var o=i[r],a=e.retrieveValueFromItem(t,o.dimIdx),s=e.retrieveValueFromItem(n,o.dimIdx);o.parser&&(a=o.parser(a),s=o.parser(s));var l=o.comparator.evaluate(a,s);if(0!==l)return l}return 0}),{data:o}}},kk=an.CMD;function kP(t,e){return 1e-5>Math.abs(t-e)}function kO(t){var e,n,i,r,o,a=t.data,s=t.len(),l=[],u=0,c=0,h=0,p=0;function d(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function f(t,n,i,r){kP(t,i)&&kP(n,r)||e.push(t,n,i,r,i,r)}for(var g=0;g<s;){var y=a[g++],v=1===g;switch(v&&(u=a[g],c=a[g+1],h=u,p=c,(y===kk.L||y===kk.C||y===kk.Q)&&(e=[h,p])),y){case kk.M:u=h=a[g++],c=p=a[g++],d(h,p);break;case kk.L:f(u,c,n=a[g++],i=a[g++]),u=n,c=i;break;case kk.C:e.push(a[g++],a[g++],a[g++],a[g++],u=a[g++],c=a[g++]);break;case kk.Q:n=a[g++],i=a[g++],r=a[g++],o=a[g++],e.push(u+2/3*(n-u),c+2/3*(i-c),r+2/3*(n-r),o+2/3*(i-o),r,o),u=r,c=o;break;case kk.A:var m=a[g++],x=a[g++],_=a[g++],b=a[g++],w=a[g++],S=a[g++]+w;g+=1;var M=!a[g++];n=Math.cos(w)*_+m,i=Math.sin(w)*b+x,v?d(h=n,p=i):f(u,c,n,i),u=Math.cos(S)*_+m,c=Math.sin(S)*b+x;for(var I=(M?-1:1)*Math.PI/2,T=w;M?T>S:T<S;T+=I){var C=M?Math.max(T+I,S):Math.min(T+I,S);!function(t,n,i,r,o,a){var s=4*Math.tan(Math.abs(n-t)/4)/3,l=n<t?-1:1,u=Math.cos(t),c=Math.sin(t),h=Math.cos(n),p=Math.sin(n),d=h*o+i,f=p*a+r,g=o*s*l,y=a*s*l;e.push(u*o+i-g*c,c*a+r+y*u,d+g*p,f-y*h,d,f)}(T,C,m,x,_,b)}break;case kk.R:h=u=a[g++],p=c=a[g++],n=h+a[g++],i=p+a[g++],d(n,p),f(n,p,n,i),f(n,i,h,i),f(h,i,h,p),f(h,p,n,p);break;case kk.Z:e&&f(u,c,h,p),u=h,c=p}}return e&&e.length>2&&l.push(e),l}function kR(t,e,n){var i=Math.ceil(Math.sqrt(Math.abs(t[e]/t[1-e])*n)),r=Math.floor(n/i);0===r&&(r=1,i=n);for(var o=[],a=0;a<i;a++)o.push(r);var s=n-i*r;if(s>0)for(var a=0;a<s;a++)o[a%i]+=1;return o}function kN(t,e,n){for(var i=t.r0,r=t.r,o=t.startAngle,a=Math.abs(t.endAngle-o),s=a*r,l=r-i,u=s>Math.abs(l),c=kR([s,l],+!u,e),h=(u?a:l)/c.length,p=0;p<c.length;p++)for(var d=(u?l:a)/c[p],f=0;f<c[p];f++){var g={};u?(g.startAngle=o+h*p,g.endAngle=o+h*(p+1),g.r0=i+d*f,g.r=i+d*(f+1)):(g.startAngle=o+d*f,g.endAngle=o+d*(f+1),g.r0=i+h*p,g.r=i+h*(p+1)),g.clockwise=t.clockwise,g.cx=t.cx,g.cy=t.cy,n.push(g)}}function kE(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function kz(t){var e=t.points,n=[],i=[];oH(e,n,i);var r=new ns(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,u=new e9,c=new e9;return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),function(t,e,n){for(var i=t.length,r=[],o=0;o<i;o++){var a=t[o],s=t[(o+1)%i],l=function(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,p=c*u-l*h;if(1e-6>Math.abs(p))return null;var d=((t-r)*h-c*(e-o))/p;return d<0||d>1?null:new e9(d*l+t,d*u+e)}(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&r.push({projPt:function(t,e,n){var i=new e9;e9.sub(i,n,e),i.normalize();var r=new e9;return e9.sub(r,t,e),r.dot(i)}(l,e,n),pt:l,idx:o})}if(r.length<2)return[{points:t},{points:t}];r.sort(function(t,e){return t.projPt-e.projPt});var u=r[0],c=r[r.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}for(var p=[u.pt.x,u.pt.y],d=[c.pt.x,c.pt.y],f=[p],g=[d],o=u.idx+1;o<=c.idx;o++)kE(f,t[o].slice());kE(f,d),kE(f,p);for(var o=c.idx+1;o<=u.idx+i;o++)kE(g,t[o%i].slice());return kE(g,p),kE(g,d),[{points:f},{points:g}]}(e,u,c)}function kB(t,e,n,i){if(1===n)i.push(e);else{var r=Math.floor(n/2),o=t(e);kB(t,o[0],r,i),kB(t,o[1],n-r,i)}return i}function kV(t,e){for(var n=t.length,i=t[n-2],r=t[n-1],o=[],a=0;a<e.length;)o[a++]=i,o[a++]=r;return o}function kF(t){for(var e=0,n=0,i=0,r=t.length,o=0,a=r-2;o<r;a=o,o+=2){var s=t[a],l=t[a+1],u=t[o],c=t[o+1],h=s*c-u*l;e+=h,n+=(s+u)*h,i+=(l+c)*h}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,i/e/3,e]}function kG(t){return t.__isCombineMorphing}var kj="__mOriginal_";function kW(t,e,n){var i=kj+e,r=t[i]||t[e];t[i]||(t[i]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):r.apply(this,e),a&&a.apply(this,e),t}}function kH(t,e){var n=kj+e;t[n]&&(t[e]=t[n],t[n]=null)}function kZ(t,e){for(var n=0;n<t.length;n++)for(var i=t[n],r=0;r<i.length;){var o=i[r],a=i[r+1];i[r++]=e[0]*o+e[2]*a+e[4],i[r++]=e[1]*o+e[3]*a+e[5]}}function kX(t,e){var n=t.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),r=function(t,e){for(var n,i,r,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,h=void 0;l?u?(c=(n=function(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var r=[],o=[],a=n<i?t:e,s=Math.min(n,i),l=Math.abs(i-n)/6,u=Math.ceil(l/((s-2)/6))+1,c=[a[0],a[1]],h=l,p=2;p<s;){var d=a[p-2],f=a[p-1],g=a[p++],y=a[p++],v=a[p++],m=a[p++],x=a[p++],_=a[p++];if(h<=0){c.push(g,y,v,m,x,_);continue}for(var b=Math.min(h,u-1)+1,w=1;w<=b;w++){var S=w/b;nF(d,g,v,x,S,r),nF(f,y,m,_,S,o),d=r[3],f=o[3],c.push(r[1],o[1],r[2],o[2],d,f),g=r[5],y=o[5],v=r[6],m=o[6]}h-=b-1}return a===t?[c,e]:[t,c]}(l,u))[0],h=n[1],i=c,r=h):(h=kV(r||l,l),c=l):(c=kV(i||u,u),h=u),o.push(c),a.push(h)}return[o,a]}(kO(n),kO(i)),o=r[0],a=r[1],s=t.getComputedTransform(),l=e.getComputedTransform();s&&kZ(o,s),l&&kZ(a,l),kW(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var u=function(t,e,n){for(var i,r=[],o=0;o<t.length;o++){var a=t[o],s=e[o],l=kF(a),u=kF(s);null==i&&(i=l[2]<0!=u[2]<0);var c=[],h=[],p=0,d=1/0,f=[],g=a.length;i&&(a=function(t){for(var e=[],n=t.length,i=0;i<n;i+=2)e[i]=t[n-i-2],e[i+1]=t[n-i-1];return e}(a));for(var y=6*function(t,e,n,i){for(var r=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,u=0;u<r;u++){for(var c=6*u,h=0,p=0;p<s;p+=2){var d=0===p?c:(c+p-2)%l+2,f=t[d]-n[0],g=t[d+1]-n[1],y=e[p]-i[0],v=e[p+1]-i[1],m=y-f,x=v-g;h+=m*m+x*x}h<o&&(o=h,a=u)}return a}(a,s,l,u),v=g-2,m=0;m<v;m+=2){var x=(y+m)%v+2;c[m+2]=a[x]-l[0],c[m+3]=a[x+1]-l[1]}c[0]=a[y]-l[0],c[1]=a[y+1]-l[1];for(var _=n/10,b=-n/2;b<=n/2;b+=_){for(var w=Math.sin(b),S=Math.cos(b),M=0,m=0;m<a.length;m+=2){var I=c[m],T=c[m+1],C=s[m]-u[0],A=s[m+1]-u[1],L=C*S-A*w,D=C*w+A*S;f[m]=L,f[m+1]=D;var k=L-I,P=D-T;M+=k*k+P*P}if(M<d){d=M,p=b;for(var O=0;O<f.length;O++)h[O]=f[O]}}r.push({from:c,to:h,fromCp:l,toCp:u,rotation:-p})}return r}(o,a,Math.PI),c=[];kW(e,"buildPath",{replace:function(t){for(var n=e.__morphT,i=1-n,r=[],o=0;o<u.length;o++){var a=u[o],s=a.from,l=a.to,h=a.rotation*n,p=a.fromCp,d=a.toCp,f=Math.sin(h),g=Math.cos(h);eM(r,p,d,n);for(var y=0;y<s.length;y+=2){var v=s[y],m=s[y+1],x=l[y],_=l[y+1],b=v*i+x*n,w=m*i+_*n;c[y]=b*g-w*f+r[0],c[y+1]=b*f+w*g+r[1]}var S=c[0],M=c[1];t.moveTo(S,M);for(var y=2;y<s.length;){var x=c[y++],_=c[y++],I=c[y++],T=c[y++],C=c[y++],A=c[y++];S===x&&M===_&&I===C&&T===A?t.lineTo(C,A):t.bezierCurveTo(x,_,I,T,C,A),S=C,M=A}}}})}function kU(t,e,n){if(!t||!e)return e;var i=n.done,r=n.during;return kX(t,e),e.__morphT=0,e.animateTo({__morphT:1},tB({during:function(t){e.dirtyShape(),r&&r(t)},done:function(){kH(e,"buildPath"),kH(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),i&&i()}},n)),e}function kY(t){var e=1/0,n=1/0,i=-1/0,r=-1/0,o=tW(t,function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]});return tW(o,function(o,a){return{cp:o,z:function(t,e,n,i,r,o){t=r===n?0:Math.round(32767*(t-n)/(r-n)),e=o===i?0:Math.round(32767*(e-i)/(o-i));for(var a,s=0,l=32768;l>0;l/=2){var u=0,c=0;(t&l)>0&&(u=1),(e&l)>0&&(c=1),s+=l*l*(3*u^c),0===c&&(1===u&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}(o[0],o[1],e,n,i,r),path:t[a]}}).sort(function(t,e){return t.z-e.z}).map(function(t){return t.path})}function kq(t){return function(t,e){var n,i=[],r=t.shape;switch(t.type){case"rect":!function(t,e,n){for(var i=t.width,r=t.height,o=i>r,a=kR([i,r],+!o,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,p=0;p<a.length;p++)for(var d=t[l]/a[p],f=0;f<a[p];f++){var g={};g[u]=p*h,g[c]=f*d,g[s]=h,g[l]=d,g.x+=t.x,g.y+=t.y,n.push(g)}}(r,e,i),n=aL;break;case"sector":kN(r,e,i),n=hM;break;case"circle":kN({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},e,i),n=hM;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=tW(function(t,e){var n=kO(t),i=[];e=e||1;for(var r=0;r<n.length;r++){var o=n[r],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],h=o[u++],p=o[u++],d=o[u++],f=o[u++],g=o[u++];!function t(e,n,i,r,o,a,s,l,u,c){if(kP(e,i)&&kP(n,r)&&kP(o,s)&&kP(a,l))return void u.push(s,l);var h=2/c,p=h*h,d=s-e,f=l-n,g=Math.sqrt(d*d+f*f);d/=g,f/=g;var y=i-e,v=r-n,m=o-s,x=a-l,_=y*y+v*v,b=m*m+x*x;if(_<p&&b<p)return void u.push(s,l);var w=d*y+f*v,S=-d*m-f*x;if(_-w*w<p&&w>=0&&b-S*S<p&&S>=0)return void u.push(s,l);var M=[],I=[];nF(e,i,o,s,.5,M),nF(n,r,a,l,.5,I),t(M[0],I[0],M[1],I[1],M[2],I[2],M[3],I[3],u,c),t(M[4],I[4],M[5],I[5],M[6],I[6],M[7],I[7],u,c)}(s,l,c,h,p,d,f,g,a,e),s=f,l=g}i.push(a)}return i}(t.getUpdatedPathProxy(),a),function(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}),l=s.length;if(0===l)kB(kz,{points:s[0]},e,i);else if(l===e)for(var u=0;u<l;u++)i.push({points:s[u]});else{var c=0,h=tW(s,function(t){var e=[],n=[];oH(t,e,n);var i=(n[1]-e[1])*(n[0]-e[0]);return c+=i,{poly:t,area:i}});h.sort(function(t,e){return e.area-t.area});for(var p=e,u=0;u<l;u++){var d=h[u];if(p<=0)break;var f=u===l-1?p:Math.ceil(d.area/c*e);f<0||(kB(kz,{points:d.poly},f,i),p-=f)}}n=hL}if(!n){for(var g=[],y=0;y<e;y++)g.push(hs(t));return g}for(var v=[],u=0;u<i.length;u++){var m=new n;m.setShape(i[u]),m.setStyle(t.style),m.z=t.z,m.z2=t.z2,m.zlevel=t.zlevel,v.push(m)}return v}(t.path,t.count)}function kK(){return{fromIndividuals:[],toIndividuals:[],count:0}}function kQ(t,e){for(var n=[],i=t.length,r=0;r<i;r++)n.push({one:t[r],many:[]});for(var r=0;r<e.length;r++){var o=e[r].length,a=void 0;for(a=0;a<o;a++)n[a%i].many.push(e[r][a])}for(var s=0,r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1)if(!s)return n;else s=0;var o=l.length,u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var k$={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i<t.count;i++){var r=hs(t.path);r.setStyle("opacity",n),e.push(r)}return e},split:null};function kJ(t,e,n,i,r,o){if(t.length&&e.length){var a,s,l=sC("update",i,r);if(l&&l.duration>0){var u=i.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},l);tq(t[0])&&(a=t,s=e),tq(e[0])&&(a=e,s=t);for(var h=a?a===t:t.length>e.length,p=a?kQ(s,a):kQ(h?e:t,[h?t:e]),d=0,f=0;f<p.length;f++)d+=p[f].many.length;for(var g=0,f=0;f<p.length;f++)(function t(e,i,r,a,s){var l=e.many,h=e.one;if(1!==l.length||s)for(var p=tB({dividePath:k$[n],individualDelay:u&&function(t,e,n,i){return u(t+r,a)}},c),d=i?function(t,e,n){var i=[];!function t(e){for(var n=0;n<e.length;n++){var r=e[n];kG(r)?t(r.childrenRef()):r instanceof av&&i.push(r)}}(t);var r=i.length;if(!r)return kK();var o=(n.dividePath||kq)({path:e,count:r});if(o.length!==r)return console.error("Invalid morphing: unmatched splitted path"),kK();i=kY(i),o=kY(o);for(var a=n.done,s=n.during,l=n.individualDelay,u=new re,c=0;c<r;c++){var h=i[c],p=o[c];p.parent=e,p.copyTransform(u),l||kX(h,p)}function d(t){for(var e=0;e<o.length;e++)o[e].addSelfToZr(t)}function f(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,kH(e,"addSelfToZr"),kH(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return o},kW(e,"addSelfToZr",{after:function(t){d(t)}}),kW(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<o.length;e++)o[e].removeSelfFromZr(t)}});var g=o.length;if(l)for(var y=g,v=function(){0==--y&&(f(),a&&a())},c=0;c<g;c++){var m=l?tB({delay:(n.delay||0)+l(c,g,i[c],o[c]),done:v},n):n;kU(i[c],o[c],m)}else e.__morphT=0,e.animateTo({__morphT:1},tB({during:function(t){for(var n=0;n<g;n++){var i=o[n];i.__morphT=e.__morphT,i.dirtyShape()}s&&s(t)},done:function(){f();for(var e=0;e<t.length;e++)kH(t[e],"updateTransform");a&&a()}},n));return e.__zr&&d(e.__zr),{fromIndividuals:i,toIndividuals:o,count:g}}(l,h,p):function(t,e,n){var i=e.length,r=[],o=n.dividePath||kq;if(kG(t)){!function t(e){for(var n=0;n<e.length;n++){var i=e[n];kG(i)?t(i.childrenRef()):i instanceof av&&r.push(i)}}(t.childrenRef());var a=r.length;if(a<i)for(var s=0,l=a;l<i;l++)r.push(hs(r[s++%a]));r.length=i}else{r=o({path:t,count:i});for(var u=t.getComputedTransform(),l=0;l<r.length;l++)r[l].setLocalTransform(u);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),kK()}r=kY(r),e=kY(e);for(var c=n.individualDelay,l=0;l<i;l++){var h=c?tB({delay:(n.delay||0)+c(l,i,r[l],e[l])},n):n;kU(r[l],e[l],h)}return{fromIndividuals:r,toIndividuals:e,count:e.length}}(h,l,p),f=d.fromIndividuals,g=d.toIndividuals,y=f.length,v=0;v<y;v++){var m=u?tB({delay:u(v,y)},c):c;o(f[v],g[v],i?l[v]:e.one,i?e.one:l[v],m)}else{var x=i?l[0]:h,_=i?h:l[0];if(kG(x))t({many:[x],one:_},!0,r,a,!0);else{var m=u?tB({delay:u(r,a)},c):c;kU(x,_,m),o(x,_,x,_,m)}}})(p[f],h,g,d),g+=p[f].many.length}}}function k0(t){if(!t)return[];if(tq(t)){for(var e=[],n=0;n<t.length;n++)e.push(k0(t[n]));return e}var i=[];return t.traverse(function(t){t instanceof av&&!t.disableMorphing&&!t.invisible&&!t.ignore&&i.push(t)}),i}var k1=r5();function k2(t,e,n,i){var r=function(t,e){for(var n=t.dimensions,i=0;i<n.length;i++){var r=t.getDimensionInfo(n[i]);if(r&&0===r.otherDims[e])return n[i]}}(t,i?"itemChildGroupId":"itemGroupId");if(r){var o=t,a=e,s=r,l=o.getDimensionInfo(s),u=l&&l.ordinalMeta;if(l){var c=o.get(l.name,a);return u&&u.categories[c]||c+""}return}var h=t.getRawDataItem(e),p=i?"childGroupId":"groupId";return h&&h[p]?h[p]+"":i?void 0:n||t.getId(e)}function k5(t){var e=[];return tj(t,function(t){var n=t.data,i=t.dataGroupId;if(!(n.count()>1e4))for(var r=n.getIndices(),o=0;o<r.length;o++)e.push({data:n,groupId:k2(n,o,i,!1),childGroupId:k2(n,o,i,!0),divide:t.divide,dataIndex:o})}),e}function k3(t,e,n){t.traverse(function(t){t instanceof av&&sD(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})})}function k4(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function k6(t){t.stopAnimation(),t.isGroup&&t.traverse(function(t){t.stopAnimation()})}function k8(t,e,n){var i=k5(t),r=k5(e);function o(t,e,n,i,r){(n||t)&&e.animateFrom({style:n&&n!==t?tz(tz({},n.style),t.style):t.style},r)}var a=!1,s=0,l=ea(),u=ea();i.forEach(function(t){t.groupId&&l.set(t.groupId,!0),t.childGroupId&&u.set(t.childGroupId,!0)});for(var c=0;c<r.length;c++){var h=r[c].groupId;if(u.get(h)){s=1;break}var p=r[c].childGroupId;if(p&&l.get(p)){s=2;break}}function d(t,e){return function(n){var i=n.data,r=n.dataIndex;return e?i.getId(r):t?1===s?n.childGroupId:n.groupId:2===s?n.childGroupId:n.groupId}}var f=function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++){var r=t[i],o=e[i];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(i,r),g={};if(!f)for(var c=0;c<r.length;c++){var y=r[c],v=y.data.getItemGraphicEl(y.dataIndex);v&&(g[v.id]=!0)}function m(t,e){var n,s=i[e],l=r[t],u=l.data.hostModel,c=s.data.getItemGraphicEl(s.dataIndex),h=l.data.getItemGraphicEl(l.dataIndex);if(c===h){h&&(n=sC("update",u,l.dataIndex))&&h.traverse(function(t){if(t instanceof oO){var e=sT(t).oldStyle;e&&t.animateFrom({style:e},n)}});return}c&&g[c.id]||h&&(k6(h),c?(k6(c),k4(c),a=!0,kJ(k0(c),k0(h),l.divide,u,t,o)):k3(h,u,t))}new gd(i,r,d(!0,f),d(!1,f),null,"multiple").update(m).updateManyToOne(function(t,e){var n=r[t],s=n.data,l=s.hostModel,u=s.getItemGraphicEl(n.dataIndex),c=tZ(tW(e,function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)}),function(t){return t&&t!==u&&!g[t.id]});u&&(k6(u),c.length?(tj(c,function(t){k6(t),k4(t)}),a=!0,kJ(k0(c),k0(u),n.divide,l,t,o)):k3(u,l,n.dataIndex))}).updateOneToMany(function(t,e){var n=i[e],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!g[s.id]){var l=tZ(tW(t,function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)}),function(t){return t&&t!==s}),u=r[t[0]].data.hostModel;l.length&&(tj(l,function(t){return k6(t)}),s?(k6(s),k4(s),a=!0,kJ(k0(s),k0(l),n.divide,u,t[0],o)):tj(l,function(e){return k3(e,u,t[0])}))}}).updateManyToMany(function(t,e){new gd(e,t,function(t){return i[t].data.getId(i[t].dataIndex)},function(t){return r[t].data.getId(r[t].dataIndex)}).update(function(n,i){m(t[n],e[i])}).execute()}).execute(),a&&tj(e,function(t){var e=t.data.hostModel,i=e&&n.getViewOfSeriesModel(e),r=sC("update",e,0);i&&e.isAnimationEnabled()&&r&&r.duration>0&&i.group.traverse(function(t){t instanceof av&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)})})}function k9(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function k7(t){return tq(t)?t.sort().join(","):t}function Pt(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function Pe(t,e){for(var n=0;n<t.length;n++)if(null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id)return n}var Pn=["align","verticalAlign","width","height","fontSize"],Pi=new re,Pr=r5(),Po=r5();function Pa(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}var Ps=["x","y","rotation"],Pl=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,r){var o,a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();ns.applyTransform(u,u,l),l?Pi.setLocalTransform(l):(Pi.x=Pi.y=Pi.rotation=Pi.originX=Pi.originY=0,Pi.scaleX=Pi.scaleY=1),Pi.rotation=aa(Pi.rotation);var c=i.__hostTarget;if(c){o=c.getBoundingRect().plain();var h=c.getComputedTransform();ns.applyTransform(o,o,h)}var p=o&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:o,priority:o?o.width*o.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:Pi.x,y:Pi.y,scaleX:Pi.scaleX,scaleY:Pi.scaleY,rotation:Pi.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(tK(i)||tX(i).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=aZ(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,r,i)})},t.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),n=t.getHeight(),i=0;i<this._labelList.length;i++){var r=this._labelList[i],o=r.label,a=o.__hostTarget,s=r.defaultAttr,l=void 0;l=(l=tK(r.layoutOption)?r.layoutOption(function(t,e){var n=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}(i&&i.shape.points)}}(r,a)):r.layoutOption)||{},r.computedLayoutOption=l;var u=Math.PI/180;a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]});var c=!1;if(null!=l.x?(o.x=rC(l.x,e),o.setStyle("x",0),c=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=rC(l.y,n),o.setStyle("y",0),c=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints){var h=a.getTextGuideLine();h&&(h.setShape({points:l.labelLinePoints}),c=!1)}Pr(o).needsUpdateLabelLine=c,o.rotation=null!=l.rotate?l.rotate*u:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var p=0;p<Pn.length;p++){var d=Pn[p];o.setStyle(d,null!=l[d]?l[d]:s.style[d])}if(l.draggable){if(o.draggable=!0,o.cursor="move",a){var f=r.seriesModel;null!=r.dataIndex&&(f=r.seriesModel.getData(r.dataType).getItemModel(r.dataIndex)),o.on("drag",function(t,e){return function(){vt(t,e)}}(a,f.getModel("labelLine")))}}else o.off("drag"),o.cursor=s.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=vl(this._labelList),r=tZ(i,function(t){return"shiftX"===t.layoutOption.moveOverlap}),o=tZ(i,function(t){return"shiftY"===t.layoutOption.moveOverlap});vu(r,"x","width",0,e,void 0),vc(o,0,n),vh(tZ(i,function(t){return t.layoutOption.hideOverlap}))},t.prototype.processLabelsOverall=function(){var t=this;tj(this._chartViewList,function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,r=n.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!i,a=e.getTextContent();!o&&a&&(o=Pr(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)})})},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=aZ(t),r=i.dataIndex;if(n&&null!=r){var o=e.getData(i.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style");l&&(s.stroke=l[o.getVisual("drawType")]);var u=a.getModel("labelLine");va(t,vs(a),s),vt(t,u)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!sk(t))){var r=Pr(n),o=r.oldLayout,a=aZ(t),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(a.dataType);if(o){n.attr(o);var c=t.prevStates;c&&(tV(c,"select")>=0&&n.attr(r.oldLayoutSelect),tV(c,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),sL(n,l,e,s)}else if(n.attr(l),!sY(n).valueAnimation){var h=t6(n.style.opacity,1);n.style.opacity=0,sD(n,{style:{opacity:h}},e,s)}if(r.oldLayout=l,n.states.select){var p=r.oldLayoutSelect={};Pa(p,l,Ps),Pa(p,n.states.select,Ps)}if(n.states.emphasis){var d=r.oldLayoutEmphasis={};Pa(d,l,Ps),Pa(d,n.states.emphasis,Ps)}sK(n,s,u,e,e)}if(i&&!i.ignore&&!i.invisible){var r=Po(i),o=r.oldLayout,f={points:i.shape.points};o?(i.attr({shape:o}),sL(i,{shape:f},e)):(i.setShape(f),i.style.strokePercent=0,sD(i,{style:{strokePercent:1}},e)),r.oldLayout=f}},t}(),Pu=r5();ff([function(t){t.registerPainter("canvas",gc)}]),ff([function(t){t.registerPainter("svg",ga)}]),ff([function(t){t.registerChartView(ya),t.registerSeriesModel(gE),t.registerLayout(ys("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,yc("line"))},function(t){t.registerChartView(yD),t.registerSeriesModel(yw),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,tY(yv,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ym("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,yc("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)})})},function(t){t.registerChartView(vv),t.registerSeriesModel(vb),p9("pie",t.registerAction),t.registerLayout(tY(yK,"pie")),t.registerProcessor(y$("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf(function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!tJ(i)||!!isNaN(i)||!(i<0)})}})},function(t){ff(m8),t.registerSeriesModel(vw),t.registerChartView(vT),t.registerLayout(ys("scatter"))},function(t){ff(xh),t.registerChartView(xn),t.registerSeriesModel(xi),t.registerLayout(m9),t.registerProcessor(y$("radar")),t.registerPreprocessor(xt)},function(t){ff(_z),t.registerChartView(__),t.registerSeriesModel(_b),t.registerLayout(_S),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,_w),p9("map",t.registerAction)},function(t){t.registerChartView(_U),t.registerSeriesModel(bo),t.registerLayout(bs),t.registerVisual(bl),t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var n=t.dataIndex,i=e.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var i=_R(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)})})},function(t){t.registerSeriesModel(bh),t.registerChartView(bx),t.registerVisual(bO),t.registerLayout(bW);for(var e=0;e<bu.length;e++)t.registerAction({type:bu[e],update:"updateView"},eh);t.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},function(e,n){var i=be(t,["treemapZoomToNode","treemapRootToNode"],e);if(i){var r=e.getViewRoot();r&&(t.direction=bi(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}})})},function(t){t.registerChartView(wL),t.registerSeriesModel(wE),t.registerProcessor(bX),t.registerVisual(bU),t.registerVisual(bq),t.registerLayout(b4),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,wi),t.registerLayout(wr),t.registerCoordinateSystem("graphView",{dimensions:_M.dimensions,create:wo}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},eh),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},eh),t.registerAction(wz,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(e){var i=_R(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)})})},function(t){t.registerChartView(wG),t.registerSeriesModel(wj)},function(t){t.registerChartView(wZ),t.registerSeriesModel(wX),t.registerLayout(wU),t.registerProcessor(y$("funnel"))},function(t){ff(S3),t.registerChartView(wY),t.registerSeriesModel(wJ),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,w2)},function(t){t.registerChartView(S8),t.registerSeriesModel(S7),t.registerLayout(Mt),t.registerVisual(Mc),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])})})},function(t){t.registerSeriesModel(Mp),t.registerChartView(Md),t.registerLayout(Mm),t.registerTransform(Mx)},function(t){t.registerChartView(ML),t.registerSeriesModel(MV),t.registerPreprocessor(MF),t.registerVisual(MC),t.registerLayout(MG)},function(t){t.registerChartView(MZ),t.registerSeriesModel(MX),t.registerLayout(ys("effectScatter"))},function(t){t.registerChartView(M0),t.registerSeriesModel(M3),t.registerLayout(MJ),t.registerVisual(M6)},function(t){t.registerChartView(M7),t.registerSeriesModel(It)},function(t){t.registerChartView(Ir),t.registerSeriesModel(Iw),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,tY(yv,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ym("pictorialBar"))},function(t){t.registerChartView(IS),t.registerSeriesModel(IM),t.registerLayout(II),t.registerProcessor(y$("themeRiver"))},function(t){t.registerChartView(ID),t.registerSeriesModel(Ik),t.registerLayout(tY(IO,"sunburst")),t.registerProcessor(tY(y$,"sunburst")),t.registerVisual(IR),t.registerAction({type:IA,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,n){var i=be(t,[IA],e);if(i){var r=e.getViewRoot();r&&(t.direction=bi(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}})}),t.registerAction({type:IL,update:"none"},function(t,e,n){t=tz({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e){var n=be(t,[IL],e);n&&(t.dataIndex=n.node.dataIndex)}),n.dispatchAction(tz(t,{type:"highlight"}))}),t.registerAction({type:"sunburstUnhighlight",update:"updateView"},function(t,e,n){t=tz({},t),n.dispatchAction(tz(t,{type:"downplay"}))})},function(t){t.registerChartView(Tf),t.registerSeriesModel(IB)}]),ff(function(t){ff(m8),ff(T9)}),ff(function(t){ff(T9),mq.registerAxisPointerClass("PolarAxisPointer",T7),t.registerCoordinateSystem("polar",Cd),t.registerComponentModel(Ce),t.registerComponentView(CL),vF(t,"angle",Ci,CC),vF(t,"radius",Cr,CA),t.registerComponentView(Cm),t.registerComponentView(Cw),t.registerLayout(tY(CT,"bar"))}),ff(_z),ff(function(t){ff(T9),mq.registerAxisPointerClass("SingleAxisPointer",CW),t.registerComponentView(CU),t.registerComponentView(CO),t.registerComponentModel(CN),vF(t,"single",CN,CN.defaultOption),t.registerCoordinateSystem("single",CF)}),ff(S3),ff(function(t){t.registerComponentModel(CY),t.registerComponentView(CK),t.registerCoordinateSystem("calendar",CQ)}),ff(function(t){t.registerComponentModel(C5),t.registerComponentView(C6),t.registerPreprocessor(function(t){var e=t.graphic;tq(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}),ff(function(t){t.registerComponentModel(Am),t.registerComponentView(A_),Av.saveAsImage=Ab,Av.magicType=AM,Av.dataView=AL,Av.dataZoom=AX,Av.restore=AP,ff(Ag)}),ff(function(t){ff(T9),t.registerComponentModel(Aq),t.registerComponentView(Le),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},eh),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},eh)}),ff(T9),ff(function(t){t.registerComponentView(Lw),t.registerComponentModel(LS),t.registerPreprocessor(La),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Lv),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(e){e.setAreas(t.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},eh),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},eh),Av.brush=LT}),ff(function(t){t.registerComponentModel(LC),t.registerComponentView(LA)}),ff(function(t){t.registerComponentModel(LD),t.registerComponentView(LN),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),tB({currentIndex:i.option.currentIndex},t)}),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}),t.registerPreprocessor(LB)}),ff(function(t){t.registerComponentModel(LZ),t.registerComponentView(L5),t.registerPreprocessor(function(t){LG(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}),ff(function(t){t.registerComponentModel(L3),t.registerComponentView(De),t.registerPreprocessor(function(t){LG(t.series,"markLine")&&(t.markLine=t.markLine||{})})}),ff(function(t){t.registerComponentModel(Dn),t.registerComponentView(Dc),t.registerPreprocessor(function(t){LG(t.series,"markArea")&&(t.markArea=t.markArea||{})})}),ff(function(t){ff(D_),ff(DT)}),ff(function(t){ff(DE),ff(DH)}),ff(DE),ff(DH),ff(function(t){ff(ka),ff(kh)}),ff(ka),ff(kh),ff(function(t){t.registerPreprocessor(ky),t.registerVisual(t.PRIORITY.VISUAL.ARIA,kg)}),ff(function(t){t.registerTransform(kL),t.registerTransform(kD)}),ff(function(t){t.registerComponentModel(kv),t.registerComponentView(km)}),ff(function(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){tj(rX(n.seriesTransition),function(t){tj(rX(t.to),function(t){for(var e=n.updatedSeries,i=0;i<e.length;i++)(null!=t.seriesIndex&&t.seriesIndex===e[i].seriesIndex||null!=t.seriesId&&t.seriesId===e[i].id)&&(e[i][cj]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(t,e,n){var i=k1(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)tj(rX(r),function(t){var r,o;r=[],o=[],tj(rX(t.from),function(t){var e=Pe(i.oldSeries,t);e>=0&&r.push({dataGroupId:i.oldDataGroupIds[e],data:i.oldData[e],divide:Pt(i.oldData[e]),groupIdDim:t.dimension})}),tj(rX(t.to),function(t){var e=Pe(n.updatedSeries,t);if(e>=0){var r=n.updatedSeries[e].getData();o.push({dataGroupId:i.oldDataGroupIds[e],data:r,divide:Pt(r),groupIdDim:t.dimension})}}),r.length>0&&o.length>0&&k8(r,o,e)});else{var o,a,s,l=(o=ea(),a=ea(),s=ea(),tj(i.oldSeries,function(t,e){var n=i.oldDataGroupIds[e],r=i.oldData[e],o=k9(t),l=k7(o);a.set(l,{dataGroupId:n,data:r}),tq(o)&&tj(o,function(t){s.set(t,{key:l,dataGroupId:n,data:r})})}),tj(n.updatedSeries,function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),n=t.getData(),i=k9(t),r=k7(i),l=a.get(r);if(l)o.set(r,{oldSeries:[{dataGroupId:l.dataGroupId,divide:Pt(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:Pt(n),data:n}]});else if(tq(i)){var u=[];tj(i,function(t){var e=a.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:Pt(e.data),data:e.data})}),u.length&&o.set(r,{oldSeries:u,newSeries:[{dataGroupId:e,data:n,divide:Pt(n)}]})}else{var c=s.get(i);if(c){var h=o.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:Pt(c.data)}],newSeries:[]},o.set(c.key,h)),h.newSeries.push({dataGroupId:e,data:n,divide:Pt(n)})}}}}),o);tj(l.keys(),function(t){var n=l.get(t);k8(n.oldSeries,n.newSeries,e)})}tj(n.updatedSeries,function(t){t[cj]&&(t[cj]=!1)})}for(var u=t.getSeries(),c=i.oldSeries=[],h=i.oldDataGroupIds=[],p=i.oldData=[],d=0;d<u.length;d++){var f=u[d].getData();1e4>f.count()&&(c.push(u[d]),h.push(u[d].get("dataGroupId")),p.push(f))}})}),ff(function(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=Pu(e).labelManager;i||(i=Pu(e).labelManager=new Pl),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=Pu(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})});var Pc=1;function Ph(t){var e="\r\n >/= ",n=0;return Pc=1,function t(e){var n={};if(void 0===e)return{};if(1===e.length&&"string"==typeof e[0])return e[0];for(var i in e.forEach(function(e){if(n[e.tagName]||(n[e.tagName]=[]),"object"==typeof e){var i=t(e.children);"object"==typeof i&&(e.attrs&&(i.attrs=e.attrs),void 0===i.attrs?i.attrs={order:Pc}:i.attrs.order=Pc),Pc++,n[e.tagName].push(i)}}),n)1==n[i].length&&(n[i]=n[i][0]);return n}(function i(){for(var r=[];t[n];){if(60==t.charCodeAt(n)){if(47===t.charCodeAt(n+1))return n=t.indexOf(">",n),r;if(33===t.charCodeAt(n+1)){if(45==t.charCodeAt(n+2)){for(;62!==t.charCodeAt(n)||45!=t.charCodeAt(n-1)||45!=t.charCodeAt(n-2)||-1==n;)n=t.indexOf(">",n+1);-1===n&&(n=t.length)}else for(n+=2;62!==t.charCodeAt(n);n++);n++;continue}if(63===t.charCodeAt(n+1)){n=t.indexOf(">",n),n++;continue}for(var o=++n;-1===e.indexOf(t[n]);n++);for(var a=t.slice(o,n),s=!1,l={};62!==t.charCodeAt(n);n++){var u=t.charCodeAt(n);if(u>64&&u<91||u>96&&u<123){for(o=n;-1===e.indexOf(t[n]);n++);for(var c=t.slice(o,n),h=t.charCodeAt(n);39!==h&&34!==h;)n++,h=t.charCodeAt(n);var p=t[n],d=++n;n=t.indexOf(p,d);var f=t.slice(d,n);s||(l={},s=!0),l[c]=f}}var g=[];47!==t.charCodeAt(n-1)&&(n++,g=i()),r.push({children:g,tagName:a,attrs:l})}else{var y=n;-2==(n=t.indexOf("<",n)-1)&&(n=t.length);var v=t.slice(y,n+1);v.length>0&&r.push(v)}n++}return r}())}function Pp(t){return Math.abs(t)>2e4?"emu":"point"}function Pd(t){return t/12700}function Pf(t){return t/20}function Pg(t){return t/6e4}function Py(t){return t/1e5}function Pv(t){var e=Math.ceil(t/26);return String.fromCharCode((t%26||26)-1+65).repeat(e)}function Pm(t,e,n){var i,r,o={type:"solidFill"};if(t["a:srgbClr"])o.color="#"+t["a:srgbClr"].attrs.val;else if(t["a:schemeClr"]){var a=t["a:schemeClr"].attrs.val;n&&(a=n.getColorThemeName(a)),o.color=e.getColor(a)}else t["a:sysClr"]?o.color="#"+t["a:sysClr"].attrs.lastClr:t["a:prstClr"]&&(-1!=(r=["white","AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"].indexOf((0,ta.default)(t["a:prstClr"],["attrs","val"])))&&(i=["ffffff","f0f8ff","faebd7","00ffff","7fffd4","f0ffff","f5f5dc","ffe4c4","000000","ffebcd","0000ff","8a2be2","a52a2a","deb887","5f9ea0","7fff00","d2691e","ff7f50","6495ed","fff8dc","dc143c","00ffff","00008b","008b8b","b8860b","a9a9a9","a9a9a9","006400","bdb76b","8b008b","556b2f","ff8c00","9932cc","8b0000","e9967a","8fbc8f","483d8b","2f4f4f","2f4f4f","00ced1","9400d3","ff1493","00bfff","696969","696969","1e90ff","b22222","fffaf0","228b22","ff00ff","dcdcdc","f8f8ff","ffd700","daa520","808080","808080","008000","adff2f","f0fff0","ff69b4","cd5c5c","4b0082","fffff0","f0e68c","e6e6fa","fff0f5","7cfc00","fffacd","add8e6","f08080","e0ffff","fafad2","d3d3d3","d3d3d3","90ee90","ffb6c1","ffa07a","20b2aa","87cefa","778899","778899","b0c4de","ffffe0","00ff00","32cd32","faf0e6","ff00ff","800000","66cdaa","0000cd","ba55d3","9370db","3cb371","7b68ee","00fa9a","48d1cc","c71585","191970","f5fffa","ffe4e1","ffe4b5","ffdead","000080","fdf5e6","808000","6b8e23","ffa500","ff4500","da70d6","eee8aa","98fb98","afeeee","db7093","ffefd5","ffdab9","cd853f","ffc0cb","dda0dd","b0e0e6","800080","663399","ff0000","bc8f8f","4169e1","8b4513","fa8072","f4a460","2e8b57","fff5ee","a0522d","c0c0c0","87ceeb","6a5acd","708090","708090","fffafa","00ff7f","4682b4","d2b48c","008080","d8bfd8","ff6347","40e0d0","ee82ee","f5deb3","ffffff","f5f5f5","ffff00","9acd32"][r]),o.color="#".concat(i||"000000"));var s=t["a:srgbClr"]||t["a:schemeClr"]||t["a:sysClr"];o.alpha=(0,ta.default)(s,["a:alpha","attrs","val"],1e5)/1e5;var l=(0,ta.default)(s,["a:shade","attrs","val"]);l&&(o.shade=l/1e5);var u=(0,ta.default)(s,["a:lumMod","attrs","val"]);u&&(o.lumMod=u/1e5);var c=(0,ta.default)(s,["a:lumOff","attrs","val"]);c&&(o.lumOff=c/1e5);var h=(0,ta.default)(s,["a:tint","attrs","val"]);return h&&(o.tint=h/1e5),o}function Px(t,e,n){var i,r={type:"blipFill"},o=(0,ta.default)(t,["a:blip","attrs","r:embed"]);if(o){var a=null==(i=n.rels[o])?void 0:i.target;a&&(r.base64=e.getMedia(a))}var s=(0,ta.default)(t,["a:blip","a:alphaModFix","attrs","amt"]);s&&(r.alpha=s/1e5);var l=(0,ta.default)(t,["a:stretch","a:fillRect","attrs"]);return l&&(r.fillRect={},l.b&&(r.fillRect.b=l.b/1e5),l.t&&(r.fillRect.t=l.t/1e5),l.r&&(r.fillRect.r=l.r/1e5),l.l&&(r.fillRect.l=l.l/1e5)),r}function P_(t,e,n){var i={type:"gradFill",tileRect:{},lin:{},gsList:[]};return i.flip=t.attrs.flip,i.path=(0,ta.default)(t,["a:path","attrs","path"])||"linear",i.rotWithShape="1"===t.attrs.rotWithShape,(0,ta.default)(t,["a:lin","attrs","ang"])&&(i.lin.ang=Pg(t["a:lin"].attrs.ang)),(0,ta.default)(t,["a:lin","attrs","scaled"])&&(i.lin.scaled="1"===t["a:lin"].attrs.scaled),i.gsList=((0,ta.default)(t,["a:gsLst","a:gs"])||[]).map(function(t){return{color:Pm(t,e,n),pos:Py(t.attrs.pos)}}),(0,ta.default)(t,["a:tileRect","attrs","l"])&&(i.tileRect.l=Py(t["a:tileRect"].attrs.l)),(0,ta.default)(t,["a:tileRect","attrs","t"])&&(i.tileRect.t=Py(t["a:tileRect"].attrs.t)),(0,ta.default)(t,["a:tileRect","attrs","r"])&&(i.tileRect.r=Py(t["a:tileRect"].attrs.r)),(0,ta.default)(t,["a:tileRect","attrs","b"])&&(i.tileRect.b=Py(t["a:tileRect"].attrs.b)),i}function Pb(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Pw(t){return t<.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}function PS(t,e){var n=t[0],i=t[1],r=t[2],o=Pb(n/255)*e,a=Pb(i/255)*e,s=Pb(r/255)*e;return[Math.round(255*Pw(o)),Math.round(255*Pw(a)),Math.round(255*Pw(s))]}function PM(t,e,n){var i=t/255,r=e/255,o=n/255,a=Math.max(i,r,o),s=Math.min(i,r,o),l=a-s,u=0,c=(a+s)/2;return 0===l?u=0:a===i?u=(r-o)/l%6:a===r?u=(o-i)/l+2:a===o&&(u=(i-r)/l+4),(u=Math.round(60*u))<0&&(u+=360),{h:u,s:0===l||0===c||1===c?0:l/(1-Math.abs(2*c-1)),l:c}}function PI(t,e,n){var i,r,o,a=(1-Math.abs(2*n-1))*e,s=a*(1-Math.abs(t/60%2-1)),l=n-a/2;return t<60?(i=a,r=s,o=0):t<120?(i=s,r=a,o=0):t<180?(i=0,r=a,o=s):t<240?(i=0,r=s,o=a):t<300?(i=s,r=0,o=a):(i=a,r=0,o=s),[i=Math.round(255*(i+l)),r=Math.round(255*(r+l)),o=Math.round(255*(o+l))]}function PT(t,e){if(!t||"none"===t.type)return"";if("solidFill"===t.type&&/^#[\da-fA-F]{3,6}$/.test(t.color)){var n=parseInt(t.color.substr(1,2),16),i=parseInt(t.color.substr(3,2),16),r=parseInt(t.color.substr(5,2),16);if(t.shade){var o=PS([n,i,r],t.shade);n=o[0],i=o[1],r=o[2]}if(t.lumMod){var a,s,l,u,c,h,p,d=(a=n,s=i,l=r,u=t.lumMod,h=(c=PM(a,s,l)).h,(p=c.l*u)>=1&&(p=1),PI(h,c.s,p));n=d[0],i=d[1],r=d[2]}if(t.lumOff&&(f=n,g=i,y=r,v=t.lumOff,x=(m=PM(f,g,y)).h,(_=v+m.l)>1&&(_=1),n=(d=PI(x,m.s,_))[0],i=d[1],r=d[2]),t.tint||(null==e?void 0:e.light)){var f,g,y,v,m,x,_,b,w,S,M,I,T,C,A=(b=n,w=i,S=r,M=t.tint||(null==e?void 0:e.light),T=(I=PM(b,w,S)).h,C=I.l,M>=1&&(M=1),PI(T,I.s,C*M+(1-M)));n=A[0],i=A[1],r=A[2]}if(null==e?void 0:e.dark){var L=PS([n,i,r],null==e?void 0:e.dark);n=L[0],i=L[1],r=L[2]}var D=t.alpha;return"rgba(".concat(n,",").concat(i,",").concat(r,",").concat(D,")")}}var PC=function(){function t(t,e,n){this.uuid=tp(),this.offset={x:0,y:0},this.extend={w:0,h:0},this.rotate=0,this.order=0,this.flipV=!1,this.flipH=!1,this.source=t,this.ctx=e,this.group=n;var i,r,o=(0,ta.default)(t,["p:nvSpPr","p:nvPr"]);if(o){var a=(0,ta.default)(o,"p:ph");a&&a.attrs&&(this.idx=a.attrs.idx,this.type=a.attrs.type),(0,ta.default)(o,["attrs","userDrawn"])&&(this.userDrawn="1"===(0,ta.default)(o,["attrs","userDrawn"]))}if(this.order=(0,ta.default)(t,"attrs.order",0),this.source["p:spPr"]){if(l=this.getXfrm()){var s=this.group&&((null==(i=this.ctx.pptx)?void 0:i.wps)||"point"===Pp(parseInt(l["a:off"].attrs.x)))?Pf:Pd;this.offset={x:Math.round(s(parseInt(l["a:off"].attrs.x))),y:Math.round(s(parseInt(l["a:off"].attrs.y)))},this.extend={w:Math.round(s(parseInt(l["a:ext"].attrs.cx))),h:Math.round(s(parseInt(l["a:ext"].attrs.cy||"0")))},this.rotate=Pg(parseInt((0,ta.default)(l,"attrs.rot",0))),this.flipV="1"===(0,ta.default)(l,"attrs.flipV"),this.flipH="1"===(0,ta.default)(l,"attrs.flipH")}}else if(this.source["p:xfrm"]){var l=this.source["p:xfrm"];s=this.group&&((null==(r=this.ctx.pptx)?void 0:r.wps)||"point"===Pp(parseInt(l["a:off"].attrs.x)))?Pf:Pd,this.offset={x:Math.round(s(parseInt(l["a:off"].attrs.x))),y:Math.round(s(parseInt(l["a:off"].attrs.y)))},this.extend={w:Math.round(s(parseInt(l["a:ext"].attrs.cx))),h:Math.round(s(parseInt(l["a:ext"].attrs.cy)))}}if(n){var u=n.extend,c=n.chExtend,h=n.chOffset,p=0===c.w?0:u.w/c.w,d=0===c.h?0:u.h/c.h;this.extend.w=this.extend.w*p,this.extend.h=this.extend.h*d,this.offset.x=(this.offset.x-h.x)*p,this.offset.y=(this.offset.y-h.y)*d}}return Object.defineProperty(t.prototype,"theme",{get:function(){return(this.ctx.sliderMaster||this.ctx).theme},enumerable:!1,configurable:!0}),t.prototype.getColorThemeName=function(t){return this.ctx.getColorThemeName(t)},t.prototype.getXfrm=function(){var t=this.source["p:spPr"]["a:xfrm"];return t||(this.idx?t=this.ctx.getNodeInheritAttrsByIdx(this.idx,["p:spPr","a:xfrm"]):this.type&&(t=this.ctx.getNodeInheritAttrsByType(this.type,["p:spPr","a:xfrm"]))),t},t}(),PA=function(){function t(t,e){this.props={},this.inheritProps={},this.source=t,this.node=e,this._getInheritBodyProps(),this._parseBodyProps(),this._parseLstStyle(),this._parseText()}return t.prototype._getInheritBodyProps=function(){var t,e=this.node.ctx,n=this.node.type,i=this.node.idx;if(n||i)switch(e.slideType){case"slideMaster":break;case"slideLayout":(t=n?e.slideMaster.getNodeByType(n):e.slideMaster.getNodeByIdx(i))&&(this.inheritProps=(0,ta.default)(t,["textBody","props"])||{});break;case"slide":(t=n?e.slideLayout.slideMaster.getNodeByType(n):e.slideLayout.slideMaster.getNodeByIdx(i))&&Object.assign(this.inheritProps,(0,ta.default)(t,["textBody","props"])||{}),(t=n?e.slideLayout.getNodeByType(n):e.slideLayout.getNodeByIdx(i))&&Object.assign(this.inheritProps,(0,ta.default)(t,["textBody","props"])||{})}},t.prototype._parseBodyProps=function(){var t=this,e=(0,ta.default)(this.source,["a:bodyPr","attrs"])||{};Object.keys(e).forEach(function(n){switch(n){case"anchor":t.props.anchor=e[n];break;case"rtlCol":t.props.rtlCol="1"===e[n];break;case"lIns":case"rIns":case"tIns":case"bIns":t.props[n]=Pd(parseInt(e[n]));break;case"order":break;default:t.props[n]=e[n]}});var n=(0,ta.default)(this.source,["a:bodyPr","a:normAutofit","attrs"]);if(n){this.props.normAutofit={};var i=n.fontScale;i&&(this.props.normAutofit.fontScale=Py(parseInt(i)));var r=n.lnSpcReduction;r&&(this.props.normAutofit.lnSpcReduction=Py(parseInt(r)))}},t.prototype._parseLstStyle=function(){var t=this,e={},n=(0,ta.default)(this.source,"a:lstStyle")||{};Object.keys(n).forEach(function(i){if(i.startsWith("a:")&&i.endsWith("pPr")){var r=i.substr(2,i.length-5);e[r]={props:t._formatPPr(n[i])};var o=(0,ta.default)(n[i],["a:defRPr"]);e[r].defRPr=t._formatRPr(o)}}),this.lstStyle=e},t.prototype._parseText=function(){var t=this,e=(0,ta.default)(this.source,["a:p"])||[];Array.isArray(e)||(e=[e]),this.paragraphs=e.map(function(e){return t._parseParagraph(e)})},t.prototype._parseParagraph=function(t){var e=this,n={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},i=(0,ta.default)(t,["a:pPr"])||{};n.props=this._formatPPr(i);var r=(0,ta.default)(t,["a:endParaRPr"]);n.endParaRProps=this._formatRPr(r);var o=(0,ta.default)(t,["a:r"])||[];Array.isArray(o)||(o=[o]);var a=(0,ta.default)(t,["a:br"])||[];return Array.isArray(a)||(a=[a]),(o=o.concat(a.map(function(t){return(0,tr.__assign)({isBr:!0},t)}))).sort(function(t,e){return(0,ta.default)(t,["attrs","order"])-(0,ta.default)(e,["attrs","order"])}),n.rows=o.map(function(t){return e._parseRow(t)}),n.inheritProps=this._getInheritPProps(n.props.level),n.inheritRProps=this._getInheritRProps(n.props.level),n},t.prototype._getInheritPProps=function(t){void 0===t&&(t="0");var e,n={},i=this.node.ctx,r=this.node.type,o=this.node.idx;switch(i.slideType){case"slideMaster":this.node.isTextBox?Object.assign(n,(0,ta.default)(i.defaultTextStyle,["lvl".concat(t?+t+1:1),"props"])||{}):Object.assign(n,(0,ta.default)(i,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"props"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(n,(0,ta.default)(i.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"props"])||{}):Object.assign(n,(0,ta.default)(i.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"props"])||{}),(r||o)&&(e=r?i.slideMaster.getNodeByType(r):i.slideMaster.getNodeByIdx(o))&&Object.assign(n,(0,ta.default)(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"props"])||{});break;case"slide":this.node.isTextBox?Object.assign(n,(0,ta.default)(i.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"props"])||{}):Object.assign(n,(0,ta.default)(i.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"props"])||{}),(r||o)&&(["subTitle","ctrTitle","title"].includes(r)&&Object.assign(n,(0,ta.default)(i.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(t?+t+1:1),"props"])||{}),(e=r?i.slideLayout.slideMaster.getNodeByType(r):i.slideLayout.slideMaster.getNodeByIdx(o))&&Object.assign(n,(0,ta.default)(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"props"])||{}),(e=r?i.slideLayout.getNodeByType(r):i.slideLayout.getNodeByIdx(o))&&Object.assign(n,(0,ta.default)(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"props"])||{}))}return n},t.prototype._getInheritRProps=function(t){void 0===t&&(t="0");var e,n={},i=this.node.ctx,r=this.node.type,o=this.node.idx;switch(i.slideType){case"slideMaster":this.node.isTextBox?Object.assign(n,(0,ta.default)(i.defaultTextStyle,["lvl".concat(t?+t+1:1),"defRPr"])||{}):Object.assign(n,(0,ta.default)(i,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"defRPr"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(n,(0,ta.default)(i.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"defRPr"])||{}):Object.assign(n,(0,ta.default)(i.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(r||o)&&(e=r?i.slideMaster.getNodeByType(r):i.slideMaster.getNodeByIdx(o))&&(n=(0,ta.default)(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"defRPr"])||{});break;case"slide":this.node.isTextBox?Object.assign(n,(0,ta.default)(i.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"defRPr"])||{}):Object.assign(n,(0,ta.default)(i.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(r||o)&&(["subTitle","ctrTitle","title"].includes(r)&&Object.assign(n,(0,ta.default)(i.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(e=r?i.slideLayout.slideMaster.getNodeByType(r):i.slideLayout.slideMaster.getNodeByIdx(o))&&Object.assign(n,(0,ta.default)(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(e=r?i.slideLayout.getNodeByType(r):i.slideLayout.getNodeByIdx(o))&&Object.assign(n,(0,ta.default)(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}))}var a=(0,ta.default)(this.node.source,["p:style","a:fontRef"]);return(0,ta.default)(a,"a:schemeClr")&&(n.color=Pm(a,this.node.theme,this.node)),(0,ta.default)(this.lstStyle,["lvl".concat(t?+t+1:1),"defRPr"])&&Object.assign(n,(0,ta.default)(this.lstStyle,["lvl".concat(t?+t+1:1),"defRPr"])),n},t.prototype._formatPPr=function(t){var e={},n=(0,ta.default)(t,"attrs")||{};return Object.keys(n).forEach(function(t){switch(t){case"algn":e.align=n[t];break;case"marL":e.marginLeft=Pd(parseInt(n[t]));break;case"indent":e.indent=Pd(parseInt(n[t]));break;case"lvl":e.level=n[t]}}),(0,ta.default)(t,["a:lnSpc","a:spcPct","attrs","val"])&&(e.lineHeight=parseInt(t["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),(0,ta.default)(t,["a:buAutoNum","attrs","type"])&&(e.buAutoNum=t["a:buAutoNum"].attrs.type),(0,ta.default)(t,["a:buChar","attrs","char"])&&(e.buChar=t["a:buChar"].attrs.char),(0,ta.default)(t,["a:spcBef","a:spcPts","attrs","val"])&&(e.spaceBefore=parseInt(t["a:spcBef"]["a:spcPts"].attrs.val)/100),(0,ta.default)(t,["a:spcAft","a:spcPts","attrs","val"])&&(e.spaceAfter=parseInt(t["a:spcAft"]["a:spcPts"].attrs.val)/100),(0,ta.default)(t,["a:defRPr"])&&(e.defRPr=this._formatRPr((0,ta.default)(t,["a:defRPr"]))),e},t.prototype._parseRow=function(t){if(t.isBr)return{isBr:!0};var e={props:{},text:""},n=(0,ta.default)(t,["a:rPr"])||{};return e.props=this._formatRPr(n),e.text=(0,ta.default)(t,"a:t")||"",e},t.prototype._formatRPr=function(t){var e={},n=(0,ta.default)(t,"attrs")||{};Object.keys(n).forEach(function(t){switch(t){case"sz":e.size=parseInt(n[t])/100;break;case"b":e.bold="1"===n[t];break;case"i":e.italic="1"===n[t];break;case"u":e.underline=n[t];break;case"strike":e.strike=n[t];break;case"order":case"dirty":break;default:e[t]=n[t]}});var i=(0,ta.default)(t,"a:solidFill");i&&(e.color=Pm(i,this.node.theme,this.node));var r=(0,ta.default)(t,"a:highlight");return r&&(e.background=Pm(r,this.node.theme,this.node)),e.typeface=(0,ta.default)(t,["a:ea","attrs","typeface"]),e},t}();function PL(t,e,n){var i={};if(!(0,ta.default)(t,"a:noFill")){(0,ta.default)(t,"attrs.w")&&(i.width=Pd(parseInt((0,ta.default)(t,"attrs.w"))));var r=(0,ta.default)(t,"a:solidFill");r&&(i.color=Pm(r,e,n));var o=(0,ta.default)(t,"a:prstDash");if(o&&(i.type=o.attrs.val),(0,ta.default)(t,["a:miter"])&&(i.lineJoin="miter"),(0,ta.default)(t,["a:bevel"])&&(i.lineJoin="bevel"),(0,ta.default)(t,["a:round"])&&(i.lineJoin="round"),(0,ta.default)(t,["a:miter","attrs","lim"])&&(i.miterLim=Pd(parseInt((0,ta.default)(t,["a:miter","attrs","lim"])))),(0,ta.default)(t,["a:headEnd"])){var a=(0,ta.default)(t,["a:headEnd","attrs"]);i.headEnd={type:a.type,len:a.len,w:a.w}}if((0,ta.default)(t,["a:tailEnd"])){var s=(0,ta.default)(t,["a:tailEnd","attrs"]);i.tailEnd={type:s.type,len:s.len,w:s.w}}return i}}var PD=function(t){function e(e,n,i,r){var o=t.call(this,e,i,r)||this;return o.border={},o.prstGeom={},o.isTextBox=!1,o.pptx=n,o._parseShape(),o._parIsTextBox(),o._parsePrstGeom(),o._parseBackground(),o._parseBorder(),o._parseTxt(),o}return(0,tr.__extends)(e,t),e.prototype._parseShape=function(){if(this.shape=(0,ta.default)(this.source,["p:spPr","a:prstGeom","attrs","prst"]),!this.shape&&(0,ta.default)(this.source,["p:spPr","a:custGeom"])){this.shape="customGeom";var t=(0,ta.default)(this.source,["p:spPr","a:custGeom","a:pathLst","a:path"]),e=[],n=[],i=function(i){switch(i){case"a:moveTo":case"a:cubicBezTo":case"a:lnTo":n=Array.isArray(t[i])?t[i]:[t[i]],e=e.concat(n.map(function(t){return{order:t.attrs.order,type:i.split(":")[1],points:(Array.isArray(t["a:pt"])?t["a:pt"]:[t["a:pt"]]).map(function(t){return[Pd(parseInt((0,ta.default)(t,["attrs","x"]))),Pd(parseInt((0,ta.default)(t,["attrs","y"])))]})}}));break;case"a:close":n=Array.isArray(t[i])?t[i]:[t[i]],e=e.concat(n.map(function(t){return{order:t.attrs.order,type:i.split(":")[1]}}))}};for(var r in t)i(r);e.sort(function(t,e){return t.order-e.order}),this.prstGeom.pathList=e,(0,ta.default)(t,["attrs","w"])&&(this.prstGeom.w=Pd(parseInt((0,ta.default)(t,["attrs","w"])))),(0,ta.default)(t,["attrs","h"])&&(this.prstGeom.h=Pd(parseInt((0,ta.default)(t,["attrs","h"]))))}},e.prototype._parIsTextBox=function(){this.isTextBox="1"===(0,ta.default)(this.source,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])},e.prototype._parsePrstGeom=function(){var t=this,e=(0,ta.default)(this.source,["p:spPr","a:prstGeom"]),n=(0,ta.default)(e,["a:avLst","a:gd"]);n&&(Array.isArray(n)||(n=[n]),this.prstGeom.gd=n.map(function(e){var n=["pie","chord","arc"].includes(t.shape)||["blockArc"].includes(t.shape)&&["adj1","adj2"].includes(e.attrs.name)?Pg(parseInt(e.attrs.fmla.split(" ")[1])):Py(parseInt(e.attrs.fmla.split(" ")[1]));return{name:e.attrs.name,fmla:n}}))},e.prototype._parseBackground=function(){if(!(0,ta.default)(this.source,["p:spPr","a:noFill"]))if((0,ta.default)(this.source,["p:spPr","a:grpFill"])&&this.group)this.background=this.group.getBackground();else{var t=(0,ta.default)(this.source,["p:spPr","a:solidFill"]);if(t)this.background=Pm(t,this.theme,this);else{var e=(0,ta.default)(this.source,["p:spPr","a:gradFill"]);if(e)this.background=P_(e,this.theme,this);else{var n=(0,ta.default)(this.source,["p:spPr","a:blipFill"]);if(n)this.background=Px(n,this.pptx,this.ctx);else{var i=(0,ta.default)(this.source,["p:style","a:fillRef"]);i&&(this.background=Pm(i,this.theme,this))}}}}},e.prototype._parseBorder=function(){var t=(0,ta.default)(this.source,["p:style","a:lnRef"]);if(t){var n=parseInt(t.attrs.idx),i=this.theme.getLineStyle(n);this.border=(0,tr.__assign)((0,tr.__assign)({},i),this.border),this.border.color&&this.border.color.color||(this.border.color=Pm(t,this.theme,this))}var r=(0,ta.default)(this.source,["p:spPr","a:ln"]);r&&Object.assign(this.border,PL(r,this.theme,this)),this.border.color&&this.border.color.color&&!this.border.width&&(this.border.width=e.defaultBorderWidth)},e.prototype._parseTxt=function(){this.textBody=new PA((0,ta.default)(this.source,["p:txBody"]),this)},e.defaultBorderWidth=.75,e}(PC),Pk=function(t){function e(e,n,i,r,o){var a,s,l=t.call(this,n,r,o)||this;l.userDrawn=!0,l.pptx=i,l.path=e;var u=(0,ta.default)(l.source,["p:blipFill","a:srcRect"]);u&&(l.clip={},u.attrs.b&&(l.clip.b=parseInt(u.attrs.b)/1e5),u.attrs.t&&(l.clip.t=parseInt(u.attrs.t)/1e5),u.attrs.l&&(l.clip.l=parseInt(u.attrs.l)/1e5),u.attrs.r&&(l.clip.r=parseInt(u.attrs.r)/1e5));var c=(0,ta.default)(n,["p:nvPicPr","p:nvPr","a:audioFile","attrs","r:link"]);if(c){var h=null==(a=l.ctx.rels[c])?void 0:a.target;l.audioFile=l.pptx.getMedia(h)}var p=(0,ta.default)(n,["p:nvPicPr","p:nvPr","a:videoFile","attrs","r:link"]);if(p){var d=null==(s=l.ctx.rels[p])?void 0:s.target;l.videoFile=l.pptx.getMedia(d)}return l}return(0,tr.__extends)(e,t),Object.defineProperty(e.prototype,"base64",{get:function(){return this.pptx.getMedia(this.path)},enumerable:!1,configurable:!0}),e}(PC),PP=function(t){function e(e,n,i,r){var o=t.call(this,e,i,r)||this;return o.userDrawn=!0,o.props={tableStyleId:""},o.tableGrid={gridCol:[]},o.tr=[],o.tableStyles={},o.pptx=n,o._parseTableProps(),o._parseTableGrid(),o._parseTr(),o._parseInheritStyles(),o}return(0,tr.__extends)(e,t),Object.defineProperty(e.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),e.prototype._parseTableProps=function(){var t=(0,ta.default)(this.source,["a:graphic","a:graphicData","a:tbl","a:tblPr"]);this.props.tableStyleId=(0,ta.default)(t,"a:tableStyleId"),this.tableStyles=(0,ta.default)(this.slideMaster.tableStyles,this.props.tableStyleId)||{},"1"===(0,ta.default)(t,["attrs","bandCol"])&&(this.props.bandCol=!0),"1"===(0,ta.default)(t,["attrs","bandRow"])&&(this.props.bandRow=!0),"1"===(0,ta.default)(t,["attrs","firstCol"])&&(this.props.firstCol=!0),"1"===(0,ta.default)(t,["attrs","firstRow"])&&(this.props.firstRow=!0),"1"===(0,ta.default)(t,["attrs","lastCol"])&&(this.props.lastCol=!0),"1"===(0,ta.default)(t,["attrs","lastRow"])&&(this.props.lastRow=!0)},e.prototype._parseTableGrid=function(){var t=(0,ta.default)(this.source,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]);if(t)for(var e=0;e<t.length;e++){var n=(0,ta.default)(t[e],["attrs","w"]);this.tableGrid.gridCol.push({width:Pd(parseInt(n))})}},e.prototype._parseTr=function(){var t=[],e=(0,ta.default)(this.source,["a:graphic","a:graphicData","a:tbl","a:tr"]);Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var i={props:{},td:[]},r=e[n];i.props.height=Pd(parseInt((0,ta.default)(r,["attrs","h"])));var o=(0,ta.default)(r,["a:tc"]);Array.isArray(o)||(o=[o]);for(var a=0;a<o.length;a++)i.td.push(this._parseTd(o[a]));t.push(i)}this.tr=t},e.prototype._parseTd=function(t){var e,n,i,r,o=this,a={props:{border:{}},paragraphs:[]},s=(0,ta.default)(t,["a:tcPr","attrs"]);(null==s?void 0:s.marB)&&(a.props.marB=Pd(parseInt(null==s?void 0:s.marB))),(null==s?void 0:s.marT)&&(a.props.marT=Pd(parseInt(null==s?void 0:s.marT))),(null==s?void 0:s.marL)&&(a.props.marL=Pd(parseInt(null==s?void 0:s.marL))),(null==s?void 0:s.marR)&&(a.props.marR=Pd(parseInt(null==s?void 0:s.marR))),(null==s?void 0:s.anchor)&&(a.props.anchor=null==s?void 0:s.anchor);var l=(0,ta.default)(t,["a:tcPr"]);(0,ta.default)(l,["a:lnR"])&&(a.props.border.right=PL((0,ta.default)(l,["a:lnR"]),this.theme,this.ctx)),(0,ta.default)(l,["a:lnL"])&&(a.props.border.left=PL((0,ta.default)(l,["a:lnL"]),this.theme,this.ctx)),(0,ta.default)(l,["a:lnT"])&&(a.props.border.top=PL((0,ta.default)(l,["a:lnT"]),this.theme,this.ctx)),(0,ta.default)(l,["a:lnB"])&&(a.props.border.bottom=PL((0,ta.default)(l,["a:lnB"]),this.theme,this.ctx)),(null==(e=null==t?void 0:t.attrs)?void 0:e.rowSpan)&&(a.props.rowSpan=parseInt(t.attrs.rowSpan)),(null==(n=null==t?void 0:t.attrs)?void 0:n.gridSpan)&&(a.props.gridSpan=parseInt(t.attrs.gridSpan)),(null==(i=null==t?void 0:t.attrs)?void 0:i.vMerge)&&(a.props.vMerge="1"===t.attrs.vMerge),(null==(r=null==t?void 0:t.attrs)?void 0:r.hMerge)&&(a.props.hMerge="1"===t.attrs.hMerge);var u=(0,ta.default)(t,["a:tcPr","a:solidFill"]);u&&(a.props.background=Pm(u,this.theme,this.ctx));var c=(0,ta.default)(t,["a:txBody"]),h=(0,ta.default)(c,["a:p"]);return Array.isArray(h)||(h=[h]),a.paragraphs=h.map(function(t){return o._parseParagraph(t)}),a},e.prototype._parseParagraph=function(t){var e=this,n={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},i=(0,ta.default)(t,["a:pPr"])||{};n.props=this._formatPPr(i);var r=(0,ta.default)(t,["a:endParaRPr"]);n.endParaRProps=this._formatRPr(r);var o=(0,ta.default)(t,["a:r"])||[];Array.isArray(o)||(o=[o]);var a=(0,ta.default)(t,["a:br"])||[];return Array.isArray(a)||(a=[a]),(o=o.concat(a.map(function(t){return(0,tr.__assign)({isBr:!0},t)}))).sort(function(t,e){return(0,ta.default)(t,["attrs","order"])-(0,ta.default)(e,["attrs","order"])}),n.rows=o.map(function(t){return e._parseRow(t)}),n},e.prototype._parseRow=function(t){if(t.isBr)return{isBr:!0};var e={props:{},text:""},n=(0,ta.default)(t,["a:rPr"])||{};return e.props=this._formatRPr(n),e.text=(0,ta.default)(t,"a:t")||"",e},e.prototype._formatPPr=function(t){var e={},n=(0,ta.default)(t,"attrs")||{};return Object.keys(n).forEach(function(t){"algn"===t&&(e.align=n[t])}),(0,ta.default)(t,["a:lnSpc","a:spcPct","attrs","val"])&&(e.lineHeight=parseInt(t["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),(0,ta.default)(t,["a:buAutoNum","attrs","type"])&&(e.buAutoNum=t["a:buAutoNum"].attrs.type),(0,ta.default)(t,["a:buChar","attrs","char"])&&(e.buChar=t["a:buChar"].attrs.char),(0,ta.default)(t,["a:spcBef","a:spcPts","attrs","val"])&&(e.spaceBefore=parseInt(t["a:spcBef"]["a:spcPts"].attrs.val)/100),(0,ta.default)(t,["a:spcAft","a:spcPts","attrs","val"])&&(e.spaceAfter=parseInt(t["a:spcAft"]["a:spcPts"].attrs.val)/100),e},e.prototype._formatRPr=function(t){var e={},n=(0,ta.default)(t,"attrs")||{};Object.keys(n).forEach(function(t){switch(t){case"sz":e.size=parseInt(n[t])/100;break;case"b":e.bold="1"===n[t];break;case"i":e.italic="1"===n[t];break;case"u":e.underline=n[t];break;case"strike":e.strike=n[t];break;case"order":case"dirty":break;default:e[t]=n[t]}});var i=(0,ta.default)(t,"a:solidFill");i&&(e.color=Pm(i,this.theme,this.ctx));var r=(0,ta.default)(t,"a:highlight");return r&&(e.background=Pm(r,this.theme,this.ctx)),e.typeface=(0,ta.default)(t,["a:ea","attrs","typeface"]),e},e.prototype._isLastCol=function(t,e){var n,i;if(e===t.length-1)return!0;for(var r=e+1;r<t.length;r++)if(!(null==(n=t[r].props)?void 0:n.hMerge)&&!(null==(i=t[r].props)?void 0:i.vMerge))return!1;return!0},e.prototype._isBandRow=function(t){var e;return(null==(e=this.props)?void 0:e.firstRow)?t%2==1:t%2==0},e.prototype._isBandCol=function(t){var e;return(null==(e=this.props)?void 0:e.firstCol)?t%2==1:t%2==0},e.prototype._parseInheritStyles=function(){var t,e,n,i,r,o,a,s,l=this,u=null==(e=null==(t=this.tableStyles)?void 0:t.wholeTbl)?void 0:e.tcStyle,c=null==(i=null==(n=this.tableStyles)?void 0:n.wholeTbl)?void 0:i.tcTxStyle,h=null==(o=null==(r=this.slideMaster.defaultTextStyle)?void 0:r.lvl1)?void 0:o.props,p=null==(s=null==(a=this.slideMaster.defaultTextStyle)?void 0:a.lvl1)?void 0:s.defRPr;this.tr.forEach(function(t,e){t.td.forEach(function(n,i){var r,o,a,s,d,f,g,y,v,m,x,_,b,w,S,M,I,T,C,A,L,D,k,P,O,R,N,E,z,B,V,F,G,j,W,H,Z,X,U,Y,q,K,Q,$,J,tt,te,tn,ti,to,ta,ts,tl,tu,tc,th,tp=(0,tr.__assign)((0,tr.__assign)({},h),u),td=(0,tr.__assign)((0,tr.__assign)({},p),c);l.props.firstRow&&0===e?(tp=(0,tr.__assign)((0,tr.__assign)((0,tr.__assign)({},tp),null==(o=null==(r=l.tableStyles)?void 0:r.firstRow)?void 0:o.tcStyle),{border:(0,tr.__assign)((0,tr.__assign)({},null==tp?void 0:tp.border),null==(d=null==(s=null==(a=l.tableStyles)?void 0:a.firstRow)?void 0:s.tcStyle)?void 0:d.border)}),td=(0,tr.__assign)((0,tr.__assign)({},td),null==(g=null==(f=l.tableStyles)?void 0:f.firstRow)?void 0:g.tcTxStyle)):l.props.lastRow&&e===l.tr.length-1?(tp=(0,tr.__assign)((0,tr.__assign)((0,tr.__assign)({},tp),null==(v=null==(y=l.tableStyles)?void 0:y.lastRow)?void 0:v.tcStyle),{border:(0,tr.__assign)((0,tr.__assign)({},null==tp?void 0:tp.border),null==(_=null==(x=null==(m=l.tableStyles)?void 0:m.lastRow)?void 0:x.tcStyle)?void 0:_.border)}),td=(0,tr.__assign)((0,tr.__assign)({},td),null==(w=null==(b=l.tableStyles)?void 0:b.lastRow)?void 0:w.tcTxStyle)):l.props.firstCol&&0===i?(tp=(0,tr.__assign)((0,tr.__assign)((0,tr.__assign)({},tp),null==(M=null==(S=l.tableStyles)?void 0:S.firstCol)?void 0:M.tcStyle),{border:(0,tr.__assign)((0,tr.__assign)({},null==tp?void 0:tp.border),null==(C=null==(T=null==(I=l.tableStyles)?void 0:I.firstCol)?void 0:T.tcStyle)?void 0:C.border)}),td=(0,tr.__assign)((0,tr.__assign)({},td),null==(L=null==(A=l.tableStyles)?void 0:A.firstCol)?void 0:L.tcTxStyle)):l.props.lastCol&&l._isLastCol(t.td,i)?(tp=(0,tr.__assign)((0,tr.__assign)((0,tr.__assign)({},tp),null==(k=null==(D=l.tableStyles)?void 0:D.lastCol)?void 0:k.tcStyle),{border:(0,tr.__assign)((0,tr.__assign)({},null==tp?void 0:tp.border),null==(R=null==(O=null==(P=l.tableStyles)?void 0:P.lastCol)?void 0:O.tcStyle)?void 0:R.border)}),td=(0,tr.__assign)((0,tr.__assign)({},td),null==(E=null==(N=l.tableStyles)?void 0:N.lastCol)?void 0:E.tcTxStyle)):(l.props.bandRow&&(l._isBandRow(e)?(tp=(0,tr.__assign)((0,tr.__assign)((0,tr.__assign)({},tp),null==(B=null==(z=l.tableStyles)?void 0:z.band1H)?void 0:B.tcStyle),{border:(0,tr.__assign)((0,tr.__assign)({},null==tp?void 0:tp.border),null==(G=null==(F=null==(V=l.tableStyles)?void 0:V.band1H)?void 0:F.tcStyle)?void 0:G.border)}),td=(0,tr.__assign)((0,tr.__assign)({},td),null==(W=null==(j=l.tableStyles)?void 0:j.band1H)?void 0:W.tcTxStyle)):(tp=(0,tr.__assign)((0,tr.__assign)((0,tr.__assign)({},tp),null==(Z=null==(H=l.tableStyles)?void 0:H.band2V)?void 0:Z.tcStyle),{border:(0,tr.__assign)((0,tr.__assign)({},null==tp?void 0:tp.border),null==(Y=null==(U=null==(X=l.tableStyles)?void 0:X.band2V)?void 0:U.tcStyle)?void 0:Y.border)}),td=(0,tr.__assign)((0,tr.__assign)({},td),null==(K=null==(q=l.tableStyles)?void 0:q.band2V)?void 0:K.tcTxStyle))),l.props.bandCol&&(l._isBandCol(i)?(tp=(0,tr.__assign)((0,tr.__assign)((0,tr.__assign)({},tp),null==($=null==(Q=l.tableStyles)?void 0:Q.band1V)?void 0:$.tcStyle),{border:(0,tr.__assign)((0,tr.__assign)({},null==tp?void 0:tp.border),null==(te=null==(tt=null==(J=l.tableStyles)?void 0:J.band1V)?void 0:tt.tcStyle)?void 0:te.border)}),td=(0,tr.__assign)((0,tr.__assign)({},td),null==(ti=null==(tn=l.tableStyles)?void 0:tn.band1V)?void 0:ti.tcTxStyle)):(tp=(0,tr.__assign)((0,tr.__assign)((0,tr.__assign)({},tp),null==(ta=null==(to=l.tableStyles)?void 0:to.band2H)?void 0:ta.tcStyle),{border:(0,tr.__assign)((0,tr.__assign)({},null==tp?void 0:tp.border),null==(tu=null==(tl=null==(ts=l.tableStyles)?void 0:ts.band2H)?void 0:tl.tcStyle)?void 0:tu.border)}),td=(0,tr.__assign)((0,tr.__assign)({},td),null==(th=null==(tc=l.tableStyles)?void 0:tc.band2H)?void 0:th.tcTxStyle)))),n.inheritTcStyle=tp,n.inheritTcTxStyle=td})})},e}(PC),PO=function(){function t(t,e,n,i){if(this.offset={x:0,y:0},this.chOffset={x:0,y:0},this.extend={w:0,h:0},this.chExtend={w:0,h:0},this.rotate=0,this.nodes=[],this.flipV=!1,this.flipH=!1,this.userDrawn=!0,this.order=(0,ta.default)(t,["attrs","order"]),this.pptx=e,this.ctx=n,this.source=t,this.group=i,this.source["p:grpSpPr"]){var r=(0,ta.default)(this.source,["p:grpSpPr","a:xfrm"]);if(r&&(this.offset={x:Math.round(this.group&&this.pptx.wps?Pf(parseInt(r["a:off"].attrs.x)):Pd(parseInt(r["a:off"].attrs.x))),y:Math.round(this.group&&this.pptx.wps?Pf(parseInt(r["a:off"].attrs.y)):Pd(parseInt(r["a:off"].attrs.y)))},this.chOffset={x:Math.round("point"===Pp(r["a:chOff"].attrs.x)||this.pptx.wps?Pf(parseInt(r["a:chOff"].attrs.x)):Pd(parseInt(r["a:chOff"].attrs.x))),y:Math.round("point"===Pp(r["a:chOff"].attrs.y)||this.pptx.wps?Pf(parseInt(r["a:chOff"].attrs.y)):Pd(parseInt(r["a:chOff"].attrs.y)))},this.chExtend={w:Math.round("point"===Pp(r["a:chExt"].attrs.cx)||this.pptx.wps?Pf(parseInt(r["a:chExt"].attrs.cx)):Pd(parseInt(r["a:chExt"].attrs.cx))),h:Math.round("point"===Pp(r["a:chExt"].attrs.cy)||this.pptx.wps?Pf(parseInt(r["a:chExt"].attrs.cy)):Pd(parseInt(r["a:chExt"].attrs.cy)))},this.extend={w:Math.round(this.group&&this.pptx.wps?Pf(parseInt(r["a:ext"].attrs.cx)):Pd(parseInt(r["a:ext"].attrs.cx))),h:Math.round(this.group&&this.pptx.wps?Pf(parseInt(r["a:ext"].attrs.cy)):Pd(parseInt(r["a:ext"].attrs.cy)))},this.rotate=Pg(parseInt((0,ta.default)(r,"attrs.rot",0))),this.flipV="1"===(0,ta.default)(r,"attrs.flipV"),this.flipH="1"===(0,ta.default)(r,"attrs.flipH")),i){var o=i.extend,a=i.chExtend,s=i.chOffset,l=o.w/a.w,u=o.h/a.h;this.extend.w=this.extend.w*l,this.extend.h=this.extend.h*u,this.offset.x=(this.offset.x-s.x)*l,this.offset.y=(this.offset.y-s.y)*u}}this._parseBackground(),this._parseNodes()}return t.prototype.getBackground=function(){return this.background&&"none"!==this.background.type?this.background:this.group?this.group.getBackground():void 0},t.prototype._parseBackground=function(){var t=(0,ta.default)(this.source,["p:grpSpPr"]);t&&t["a:solidFill"]?this.background=Pm(t["a:solidFill"],this.ctx.theme,this.ctx):t&&t["a:gradFill"]?this.background=P_(t["a:gradFill"],this.ctx.theme,this.ctx):t&&t["a:blipFill"]&&(this.background=Px(t["a:blipFill"],this.pptx,this.ctx))},t.prototype._parseNodes=function(){var t=this.source;PB(this.nodes,t,this.pptx,this.ctx,this)},t}(),PR=function(t){function e(e,n,i,r){var o=t.call(this,e,i,r)||this;return o.nodes=[],o.pptx=n,o}return(0,tr.__extends)(e,t),e.prototype.parseNode=function(){return(0,tr.__awaiter)(this,void 0,void 0,function(){var t,e,n,i,r,o,a,s;return(0,tr.__generator)(this,function(l){switch(l.label){case 0:return l.trys.push([0,3,,4]),(t=(0,ta.default)(this.source,["a:graphic","a:graphicData","dgm:relIds","attrs","r:dm"]))&&this.ctx.rels[t]?(e=this.ctx.rels[t].target,i=Ph,[4,this.pptx.getXmlByPath(e)]):[2];case 1:return n=i.apply(void 0,[l.sent()]),(r=(0,ta.default)(n,["dgm:dataModel","dgm:extLst","a:ext","dsp:dataModelExt","attrs","relId"]))&&this.ctx.rels[r]?(o=this.ctx.rels[r].target,[4,this.pptx.getXmlByPath(o)]):[2];case 2:return a=Ph(l.sent().replace(/dsp:/g,"p:")),s=(0,ta.default)(a,["p:drawing","p:spTree"]),PB(this.nodes,s,this.pptx,this.ctx),[3,4];case 3:return l.sent(),[3,4];case 4:return[2]}})})},e}(PC),PN=function(t){function e(e,n,i,r){var o=t.call(this,e,i,r)||this;return o.options={title:{},tooltip:{},legend:{},series:[],color:[]},o.userDrawn=!0,o.pptx=n,o}return(0,tr.__extends)(e,t),Object.defineProperty(e.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),e.prototype.parseNode=function(){return(0,tr.__awaiter)(this,void 0,void 0,function(){var t,e,n,i,r,o;return(0,tr.__generator)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),(t=(0,ta.default)(this.source,["a:graphic","a:graphicData","c:chart","attrs","r:id"]))&&this.ctx.rels[t]?(e=this.ctx.rels[t].target,i=Ph,[4,this.pptx.getXmlByPath(e)]):[2];case 1:return n=i.apply(void 0,[a.sent()]),r=(0,ta.default)(n,["c:chartSpace","c:chart"]),o=(0,ta.default)(r,["c:plotArea"]),(0,ta.default)(o,["c:lineChart"])?this.parseLine((0,ta.default)(o,["c:lineChart"]),r):(0,ta.default)(o,["c:line3DChart"])?this.parseLine((0,ta.default)(o,["c:line3DChart"]),r):(0,ta.default)(o,["c:areaChart"])?this.parseAreaLine((0,ta.default)(o,["c:areaChart"]),r):(0,ta.default)(o,["c:area3DChart"])?this.parseAreaLine((0,ta.default)(o,["c:area3DChart"]),r):(0,ta.default)(o,["c:barChart"])?this.parseBar((0,ta.default)(o,["c:barChart"]),r):(0,ta.default)(o,["c:bar3DChart"])?this.parseBar((0,ta.default)(o,["c:bar3DChart"]),r):(0,ta.default)(o,["c:pieChart"])?this.parsePie((0,ta.default)(o,["c:pieChart"])):(0,ta.default)(o,["c:pie3DChart"])?this.parsePie((0,ta.default)(o,["c:pie3DChart"])):(0,ta.default)(o,["c:doughnutChart"])&&this.parseDoughnutChart((0,ta.default)(o,["c:doughnutChart"])),[3,3];case 2:return a.sent(),[3,3];case 3:return[2]}})})},e.prototype.parseAreaLine=function(t,e){this.parseLine(t,e),this.options.series=this.options.series.map(function(t){return t.areaStyle={},t})},e.prototype.parseLine=function(t,e){var n=(0,ta.default)(t,["c:ser"]);Array.isArray(n)||(n=[n]),this.options.title={top:"top",left:"center",text:this.parseChartTitle((0,ta.default)(e,["c:title"]))},this.options.xAxis={type:"category",data:this.getCategory(n[0])},this.options.yAxis={type:"value"},this.options.series=this.parseLineSeries(n,t),this.options.color=this.parseLineColors(n),this.options.legend={bottom:"bottom",left:"center"},"percentStacked"===(0,ta.default)(t,["c:grouping","attrs","val"])&&(this.options.tooltip.valueFormatter=function(t){return(100*t).toFixed(2)+"%"})},e.prototype.parseBar=function(t,e){var n=(0,ta.default)(t,["c:ser"]);Array.isArray(n)||(n=[n]),this.options.title={top:"top",left:"center",text:this.parseChartTitle((0,ta.default)(e,["c:title"]))},"bar"===(0,ta.default)(t,["c:barDir","attrs","val"])?(this.options.yAxis={type:"category",data:this.getCategory(n[0])},this.options.xAxis={type:"value"}):(this.options.xAxis={type:"category",data:this.getCategory(n[0])},this.options.yAxis={type:"value"}),this.options.series=this.parseBarSeries(n,t),this.options.color=this.parseBarColors(n),this.options.legend={bottom:"bottom",left:"center"},"percentStacked"===(0,ta.default)(t,["c:grouping","attrs","val"])&&(this.options.tooltip.valueFormatter=function(t){return(100*t).toFixed(2)+"%"})},e.prototype.parsePie=function(t){var e=(0,ta.default)(t,["c:ser"]);this.options.title={top:"top",left:"center",text:this.parsePieTitle(e)},this.options.color=this.parsePieColors(e),this.options.series=[this.parsePieSeries(e,t)],this.options.legend={bottom:"bottom",left:"center"}},e.prototype.parseDoughnutChart=function(t){var e=(0,ta.default)(t,["c:ser"]);this.options.title.text=this.parsePieTitle(e),this.options.color=this.parsePieColors(e),this.options.series=[this.parsePieSeries(e,t)],this.options.legend={bottom:"bottom",left:"center"}},e.prototype.parsePieTitle=function(t){return(0,ta.default)(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"])},e.prototype.parseChartTitle=function(t){var e=(0,ta.default)(t,["c:tx","c:rich","a:p"]);return Array.isArray(e)||(e=[e]),e.map(function(t){var e=(0,ta.default)(t,["a:r"]);return Array.isArray(e)||(e=[e]),e.map(function(t){return(0,ta.default)(t,["a:t"])||""}).join("")}).join("")||"图表标题"},e.prototype.parseBarColors=function(t){var e=this;return t.map(function(t){return PT(Pm((0,ta.default)(t,["c:spPr","a:solidFill"]),e.theme,e.ctx))})},e.prototype.parseLineColors=function(t){var e=this;return t.map(function(t){return PT(Pm((0,ta.default)(t,["c:spPr","a:ln","a:solidFill"])||(0,ta.default)(t,["c:spPr","a:solidFill"]),e.theme,e.ctx))})},e.prototype.parsePieColors=function(t){var e=this,n=[],i=(0,ta.default)(t,["c:dPt"]);return Array.isArray(i)||(i=[i]),i.forEach(function(t){n.push(PT(Pm((0,ta.default)(t,["c:spPr","a:solidFill"]),e.theme,e.ctx)))}),n},e.prototype.parsePieSeries=function(t,e){var n={type:"pie",radius:"80%",startAngle:90,data:[]};(0,ta.default)(e,["c:holeSize","attrs","val"])&&(n.radius=["".concat(.8*(0,ta.default)(e,["c:holeSize","attrs","val"]),"%"),"80%"]);var i=(0,ta.default)(e,["c:firstSliceAng","attrs","val"]);i&&(n.startAngle=90-i);for(var r=this.getCategory(t),o=this.getVal(t),a=0;a<r.length;a++)n.data.push({name:r[a],value:o[a]});return n},e.prototype.parseBarSeries=function(t,e){var n,i=this,r=(0,ta.default)(e,["c:grouping","attrs","val"]);"stacked"===r?n="Ad":"percentStacked"===r&&(n="total");var o=t.map(function(t){return{type:"bar",name:(0,ta.default)(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:i.getVal(t),stack:n}});if("percentStacked"===r){var a=[];o.forEach(function(t,e){a=0===e?(0,tr.__spreadArray)([],t.data,!0):a.map(function(e,n){return e+t.data[n]})}),o.forEach(function(t){t.data=t.data.map(function(t,e){return a[e]<=0?0:t/a[e]})})}return o},e.prototype.parseLineSeries=function(t,e){var n,i=this,r=(0,ta.default)(e,["c:grouping","attrs","val"]);"stacked"===r?n="Ad":"percentStacked"===r&&(n="total");var o=t.map(function(t){return{type:"line",name:(0,ta.default)(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:i.getVal(t),stack:n}});if("total"===n){var a=[];o.forEach(function(t,e){a=0===e?(0,tr.__spreadArray)([],t.data,!0):a.map(function(e,n){return e+t.data[n]})}),o.forEach(function(t){t.data=t.data.map(function(t,e){return a[e]<=0?0:t/a[e]})})}return o},e.prototype.getCategory=function(t){if((0,ta.default)(t,["c:cat","c:strRef"])){var e=(0,ta.default)(t,["c:cat","c:strRef","c:strCache","c:pt"]);return Array.isArray(e)||(e=[e]),e.map(function(t){return(0,ta.default)(t,["c:v"])})}if((0,ta.default)(t,["c:cat","c:numRef"]))return Array.isArray(e=(0,ta.default)(t,["c:cat","c:numRef","c:numCache","c:pt"]))||(e=[e]),e.map(function(t){return(0,ta.default)(t,["c:v"])})},e.prototype.getVal=function(t){var e=(0,ta.default)(t,["c:val","c:numRef","c:numCache","c:pt"]);return Array.isArray(e)||(e=[e]),e.map(function(t){return+(0,ta.default)(t,["c:v"])})},e}(PC);function PE(t){var e={},n=(0,ta.default)(t,"attrs")||{};return Object.keys(n).forEach(function(t){switch(t){case"algn":e.align=n[t];break;case"marL":e.marginLeft=Pd(parseInt(n[t]));break;case"indent":e.indent=Pd(parseInt(n[t]));break;case"lvl":e.level=n[t]}}),(0,ta.default)(t,["a:lnSpc","a:spcPct","attrs","val"])&&(e.lineHeight=parseInt(t["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),e}function Pz(t,e,n){var i={},r=(0,ta.default)(t,"attrs")||{};Object.keys(r).forEach(function(t){switch(t){case"sz":i.size=parseInt(r[t])/100;break;case"b":i.bold="1"===r[t];break;case"i":i.italic="1"===r[t];break;case"u":i.underline=r[t];break;case"strike":i.strike=r[t];break;case"order":case"dirty":break;default:i[t]=r[t]}});var o=(0,ta.default)(t,"a:solidFill");return o&&(i.color=Pm(o,e,n)),i}function PB(t,e,n,i,r){return(0,tr.__awaiter)(this,void 0,void 0,function(){var o,a,s,l,u,c,h,p,d,f,g,y,v,m,x,_,b,w,S;return(0,tr.__generator)(this,function(M){switch(M.label){case 0:for(s in a=[],o=e)a.push(s);l=0,M.label=1;case 1:if(!(l<a.length))return[3,17];if(!((s=a[l])in o))return[3,16];switch(u=s){case"p:sp":return[3,2];case"p:pic":return[3,3];case"p:cxnSp":return[3,4];case"p:graphicFrame":return[3,5];case"p:grpSp":return[3,14]}return[3,15];case 2:for(c=Array.isArray(e[u])?e[u]:[e[u]],w=0;w<c.length;w++)y=c[w],t.push(new PD(y,n,i,r));return[3,16];case 3:for(h=Array.isArray(e[u])?e[u]:[e[u]],w=0;w<h.length;w++)d=(p=h[w])["p:blipFill"]["a:blip"].attrs["r:embed"],f=new Pk(i.rels[d].target,p,n,i,r),t.push(f);return[3,16];case 4:for(g=Array.isArray(e[u])?e[u]:[e[u]],w=0;w<g.length;w++)y=g[w],t.push(new PD(y,n,i,r));return[3,16];case 5:v=Array.isArray(e[u])?e[u]:[e[u]],w=0,M.label=6;case 6:if(!(w<v.length))return[3,13];switch(m=v[w],(0,ta.default)(m,["a:graphic","a:graphicData","attrs","uri"])){case"http://schemas.openxmlformats.org/drawingml/2006/table":return[3,7];case"http://schemas.openxmlformats.org/drawingml/2006/diagram":return[3,8];case"http://schemas.openxmlformats.org/drawingml/2006/chart":return[3,10]}return[3,12];case 7:return t.push(new PP(m,n,i,r)),[3,12];case 8:return[4,(x=new PR(m,n,i,r)).parseNode()];case 9:return M.sent(),t.push(x),[3,12];case 10:return[4,(_=new PN(m,n,i,r)).parseNode()];case 11:return M.sent(),t.push(_),[3,12];case 12:return w++,[3,6];case 13:case 15:return[3,16];case 14:for(b=Array.isArray(e[u])?e[u]:[e[u]],w=0;w<b.length;w++)S=b[w],t.push(new PO(S,n,i,r));return[3,16];case 16:return l++,[3,1];case 17:return[2]}})})}var PV=function(){function t(t,e,n){this.slideType="slide",this.rels={},this.background={type:"none"},this.nodes=[],this.name=t,this.source=e,this.pptx=n}return Object.defineProperty(t.prototype,"index",{get:function(){if(!this.name)return 0;var t=this.name.match(/(\d+)/);return t?parseInt(t[0]):1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"slideMaster",{get:function(){return this.slideLayout&&this.slideLayout.slideMaster},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_relsPath",{get:function(){return this.name.replace("slides/slide","slides/_rels/slide")+".rels"},enumerable:!1,configurable:!0}),t.prototype.load=function(){return(0,tr.__awaiter)(this,void 0,void 0,function(){return(0,tr.__generator)(this,function(t){switch(t.label){case 0:return[4,this._loadRels()];case 1:return t.sent(),this._loadBackground(),[4,this._loadNodes()];case 2:return t.sent(),[2]}})})},t.prototype._loadRels=function(){return(0,tr.__awaiter)(this,void 0,void 0,function(){var t,e,n,i=this;return(0,tr.__generator)(this,function(r){switch(r.label){case 0:return e=Ph,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return t=e.apply(void 0,[r.sent()]),Array.isArray(n=(0,ta.default)(t,["Relationships","Relationship"])||[])||(n=[n]),n.forEach(function(t){switch((0,ta.default)(t,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout":var e=t.attrs.Target.replace("../","ppt/");e.startsWith("/ppt")&&(e=e.substr(1)),i.slideLayout=i.pptx.getSlideLayout(e);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData":case"http://schemas.microsoft.com/office/2007/relationships/diagramDrawing":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart":var n=t.attrs.Target.replace("../","ppt/");n.startsWith("/ppt")&&(n=n.substr(1)),i.rels[t.attrs.Id]={type:t.attrs.Type.split("/").pop(),target:n}}}),[2]}})})},t.prototype._loadBackground=function(){var t=(0,ta.default)(this.source,["p:sld","p:cSld","p:bg","p:bgPr"]);t&&t["a:solidFill"]?this.background=Pm(t["a:solidFill"],this.theme,this):t&&t["a:gradFill"]?this.background=P_(t["a:gradFill"],this.theme,this):t&&t["a:blipFill"]&&(this.background=Px(t["a:blipFill"],this.pptx,this))},t.prototype._loadNodes=function(){return(0,tr.__awaiter)(this,void 0,void 0,function(){var t;return(0,tr.__generator)(this,function(e){switch(e.label){case 0:return t=(0,ta.default)(this.source,["p:sld","p:cSld","p:spTree"]),[4,PB(this.nodes,t,this.pptx,this)];case 1:return e.sent(),[2]}})})},t.prototype.getColorThemeName=function(t){return this.slideLayout.getColorThemeName(t)},t.prototype.getNodeInheritAttrsByType=function(t,e){var n=this.slideLayout.getNodeByType(t);return(0,ta.default)(n.source,e)||this.slideLayout.getNodeInheritAttrsByType(t,e)},t.prototype.getNodeInheritAttrsByIdx=function(t,e){var n=this.slideLayout.getNodeByIdx(t);return(0,ta.default)(n.source,e)||this.slideLayout.getNodeInheritAttrsByIdx(t,e)},t}(),PF=function(){function t(t,e,n){this.slideType="slideLayout",this.rels={},this.background={type:"none"},this.nodes=[],this.name=t,this.source=e,this.pptx=n}return Object.defineProperty(t.prototype,"_relsPath",{get:function(){return this.name.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),t.prototype.load=function(){return(0,tr.__awaiter)(this,void 0,void 0,function(){return(0,tr.__generator)(this,function(t){switch(t.label){case 0:return[4,this._loadRels()];case 1:return t.sent(),[4,this._loadBackground()];case 2:return t.sent(),[4,this._loadNodes()];case 3:return t.sent(),[2]}})})},t.prototype._loadRels=function(){return(0,tr.__awaiter)(this,void 0,void 0,function(){var t,e,n,i=this;return(0,tr.__generator)(this,function(r){switch(r.label){case 0:return e=Ph,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return t=e.apply(void 0,[r.sent()]),Array.isArray(n=(0,ta.default)(t,["Relationships","Relationship"])||[])||(n=[n]),n.forEach(function(t){switch((0,ta.default)(t,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster":var e=t.attrs.Target.replace("../","ppt/");e.startsWith("/ppt")&&(e=e.substr(1)),i.slideMaster=i.pptx.getSlideMaster(e);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var n=t.attrs.Target.replace("../","ppt/");n.startsWith("/ppt")&&(n=n.substr(1)),i.rels[t.attrs.Id]={type:t.attrs.Type.split("/").pop(),target:n}}}),[2]}})})},t.prototype._loadBackground=function(){return(0,tr.__awaiter)(this,void 0,void 0,function(){var t;return(0,tr.__generator)(this,function(e){return(t=(0,ta.default)(this.source,["p:sldLayout","p:cSld","p:bg","p:bgPr"]))&&t["a:solidFill"]?this.background=Pm(t["a:solidFill"],this.theme):t&&t["a:gradFill"]?this.background=P_(t["a:gradFill"],this.theme,this):t&&t["a:blipFill"]&&(this.background=Px(t["a:blipFill"],this.pptx,this)),[2]})})},t.prototype._loadNodes=function(){return(0,tr.__awaiter)(this,void 0,void 0,function(){var t;return(0,tr.__generator)(this,function(e){return t=(0,ta.default)(this.source,["p:sldLayout","p:cSld","p:spTree"]),PB(this.nodes,t,this.pptx,this),[2]})})},t.prototype.getColorThemeName=function(t){return this.slideMaster.getColorThemeName(t)},t.prototype.getNodeByType=function(t){return this.nodes.find(function(e){return e.type===t})},t.prototype.getNodeByIdx=function(t){return this.nodes.find(function(e){return e.idx===t})},t.prototype.getNodeInheritAttrsByType=function(t,e){var n=this.slideMaster.getNodeByType(t);return n&&(0,ta.default)(n.source,e)},t.prototype.getNodeInheritAttrsByIdx=function(t,e){var n=this.slideMaster.getNodeByIdx(t);return n&&(0,ta.default)(n.source,e)},t}(),PG=function(){function t(t,e,n){this.slideType="slideMaster",this.rels={},this.background={type:"none"},this.textStyles={titleStyle:{},bodyStyle:{},otherStyle:{}},this.defaultTextStyle={},this.nodes=[],this.tableStyles={},this.name=t,this.source=e,this.pptx=n,this.load()}return Object.defineProperty(t.prototype,"_relsPath",{get:function(){return this.name.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels"},enumerable:!1,configurable:!0}),t.prototype.load=function(){return(0,tr.__awaiter)(this,void 0,void 0,function(){return(0,tr.__generator)(this,function(t){switch(t.label){case 0:return[4,this._parseRels()];case 1:return t.sent(),this._parseColorMap(),this._parseBackground(),this._parseTextStyles(),this._parseTableStyles(),this._parseDefaultTextStyle(),this._loadNodes(),[2]}})})},t.prototype._parseRels=function(){return(0,tr.__awaiter)(this,void 0,void 0,function(){var t,e,n,i=this;return(0,tr.__generator)(this,function(r){switch(r.label){case 0:return e=Ph,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return t=e.apply(void 0,[r.sent()]),Array.isArray(n=(0,ta.default)(t,["Relationships","Relationship"])||[])||(n=[n]),n.forEach(function(t){switch((0,ta.default)(t,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme":var e=t.attrs.Target.replace("../","ppt/");e.startsWith("/ppt")&&(e=e.substr(1)),i.theme=i.pptx.getTheme(e);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var n=t.attrs.Target.replace("../","ppt/");n.startsWith("/ppt")&&(n=n.substr(1)),i.rels[t.attrs.Id]={type:t.attrs.Type.split("/").pop(),target:n}}}),[2]}})})},t.prototype._parseColorMap=function(){this.colorMap=(0,ts.default)((0,ta.default)(this.source,["p:sldMaster","p:clrMap","attrs"])||{},["order"])},t.prototype.getColorThemeName=function(t){return this.colorMap[t]||t},t.prototype._parseBackground=function(){var t=(0,ta.default)(this.source,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),e=(0,ta.default)(this.source,["p:sldMaster","p:cSld","p:bg","p:bgRef"]);t&&t["a:solidFill"]?this.background=Pm(t["a:solidFill"],this.theme,this):t&&t["a:gradFill"]?this.background=P_(t["a:gradFill"],this.theme,this):t&&t["a:blipFill"]?this.background=Px(t["a:blipFill"],this.pptx,this):e&&(this.background=Pm(e,this.theme,this))},t.prototype._parseDefaultTextStyle=function(){var t=this,e=this.pptx.defaultTextStyleSource;Object.keys(e).forEach(function(n){if(n.startsWith("a:")&&n.endsWith("pPr")){var i=n.substr(2,n.length-5),r=(0,ta.default)(e[n],["a:defRPr"]);t.defaultTextStyle[i]={props:PE(e[n]),defRPr:Pz(r,t.theme,t)}}})},t.prototype._parseTextStyles=function(){var t=this,e=(0,ta.default)(this.source,["p:sldMaster","p:txStyles"]);["titleStyle","bodyStyle","otherStyle"].forEach(function(n){var i=t.textStyles[n],r=(0,ta.default)(e,"p:".concat(n))||{};Object.keys(r).forEach(function(e){if(e.startsWith("a:")&&e.endsWith("pPr")){var n=e.substr(2,e.length-5);i[n]={},i[n].props=PE(r[e]);var o=(0,ta.default)(r[e],["a:defRPr"]);i[n].defRPr=Pz(o,t.theme,t)}})})},t.prototype._parseTableStyles=function(){var t=this,e={},n=(0,ta.default)(this.pptx.tableStyles,["a:tblStyleLst","a:tblStyle"])||[];Array.isArray(n)||(n=[n]),n.forEach(function(n){var i=(0,ta.default)(n,["attrs","styleId"]);e[i]={},Object.keys(n).forEach(function(r){if(r.startsWith("a:")){var o=r.substr(2);e[i][o]={};var a=(0,ta.default)(n[r],["a:tcStyle"]);if(a){var s={};(0,ta.default)(a,["a:fill","a:solidFill"])&&(s.background=Pm((0,ta.default)(a,["a:fill","a:solidFill"]),t.theme,t));var l=(0,ta.default)(a,"a:tcBdr");l&&(s.border={},Object.keys(l).forEach(function(e){if(e.startsWith("a:")){var n=e.substr(2),i=(0,ta.default)(l[e],["a:ln"]);s.border[n]=PL(i,t.theme,t)}})),e[i][o].tcStyle=s}var u=(0,ta.default)(n[r],["a:tcTxStyle"]);if(u){var c={};c.color=Pm(u,t.theme,t),"on"===(0,ta.default)(u,["attrs","b"])&&(c.bold=!0),e[i][o].tcTxStyle=c}}})}),this.tableStyles=e},t.prototype._loadNodes=function(){return(0,tr.__awaiter)(this,void 0,void 0,function(){var t;return(0,tr.__generator)(this,function(e){return t=(0,ta.default)(this.source,["p:sldMaster","p:cSld","p:spTree"]),PB(this.nodes,t,this.pptx,this),[2]})})},t.prototype.getNodeByType=function(t){return this.nodes.find(function(e){return e.type===t})},t.prototype.getNodeByIdx=function(t){return this.nodes.find(function(e){return e.idx===t})},t.prototype.getNodeInheritAttrsByType=function(t,e){},t.prototype.getNodeInheritAttrsByIdx=function(t,e){},t}(),Pj=function(){function t(t,e,n){this.clrScheme={},this.borderScheme=[],this.name=t,this.source=e,this.pptx=n,this._parseClrScheme(),this._parseLineStyleLst()}return t.prototype._parseClrScheme=function(){var t=(0,ta.default)(this.source,["a:theme","a:themeElements","a:clrScheme"]);for(var e in t)if(e.startsWith("a:")){var n=e.substring(2),i=(0,ta.default)(t[e],["a:sysClr","attrs","lastClr"])||(0,ta.default)(t[e],["a:srgbClr","attrs","val"]);this.clrScheme[n]="#"+i}},t.prototype._parseLineStyleLst=function(){var t=this,e=(0,ta.default)(this.source,["a:theme","a:themeElements","a:fmtScheme","a:lnStyleLst","a:ln"])||[];this.borderScheme=e.map(function(e){var n={color:{}};return(0,ta.default)(e,["attrs","w"])&&(n.width=Pd(parseInt((0,ta.default)(e,["attrs","w"])))),(0,ta.default)(e,["attrs","algn"])&&(n.algn=(0,ta.default)(e,["attrs","algn"])),(0,ta.default)(e,["attrs","cap"])&&(n.cap=(0,ta.default)(e,["attrs","cap"])),(0,ta.default)(e,["attrs","cmpd"])&&(n.cmpd=(0,ta.default)(e,["attrs","cmpd"])),(0,ta.default)(e,["a:miter","attrs","lim"])&&(n.miterLim=Pd(parseInt((0,ta.default)(e,["a:miter","attrs","lim"])))),(0,ta.default)(e,["a:prstDash","attrs","val"])&&(n.type=(0,ta.default)(e,["a:prstDash","attrs","val"])),(0,ta.default)(e,["a:solidFill"])&&(n.color=Pm((0,ta.default)(e,["a:solidFill"]),t)),n})},t.prototype.getColor=function(t){if("phClr"!==t)return this.clrScheme[t]||this.defaultColor},t.prototype.getLineStyle=function(t){return this.borderScheme[t-1]},t}(),PW=function(){function t(){this.slides=[],this.slideLayouts=[],this.slideMaster=[],this.themes=[],this.medias={},this.wps=!1}return t.prototype.load=function(t){return(0,tr.__awaiter)(this,void 0,void 0,function(){var e,n;return(0,tr.__generator)(this,function(i){switch(i.label){case 0:return e=new to.default,n=this,[4,e.loadAsync(t)];case 1:return n._zipContents=i.sent(),[4,this._loadThumbnail()];case 2:return i.sent(),[4,this._loadMedia()];case 3:return i.sent(),[4,this._loadPresentation()];case 4:return i.sent(),[4,this._loadContentTypes()];case 5:return i.sent(),[2]}})})},t.prototype._loadThumbnail=function(){return(0,tr.__awaiter)(this,void 0,void 0,function(){var t;return(0,tr.__generator)(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),this._zipContents.files["docProps/thumbnail.jpeg"]?[4,this._zipContents.files["docProps/thumbnail.jpeg"].async("base64")]:[3,2];case 1:t=e.sent(),this.thumbnail="data:image/jpeg;base64,"+t,e.label=2;case 2:return[3,4];case 3:return e.sent(),[3,4];case 4:return[2]}})})},t.prototype._loadPresentation=function(){return(0,tr.__awaiter)(this,void 0,void 0,function(){var t,e,n,i;return(0,tr.__generator)(this,function(r){switch(r.label){case 0:return r.trys.push([0,4,,5]),[4,this._zipContents.files["ppt/presentation.xml"].async("text")];case 1:return e=(t=Ph(r.sent()))["p:presentation"]["p:sldSz"].attrs,this.width=Pd(parseInt(e.cx)),this.height=Pd(parseInt(e.cy)),this.defaultTextStyleSource=(0,ta.default)(t,["p:presentation","p:defaultTextStyle"]),this._zipContents.files["docProps/app.xml"]?[4,this._zipContents.files["docProps/app.xml"].async("text")]:[3,3];case 2:n=Ph(r.sent()),i=(0,ta.default)(n,["Properties","Application"]),this.wps=(null==i?void 0:i.includes("WPS"))||!1,r.label=3;case 3:return[3,5];case 4:return r.sent(),[3,5];case 5:return[2]}})})},t.prototype._loadContentTypes=function(){return(0,tr.__awaiter)(this,void 0,void 0,function(){var t,e,n,i,r,o,a,s,l,u,c,h,p,d,f,g,y,v,m;return(0,tr.__generator)(this,function(x){switch(x.label){case 0:return x.trys.push([0,22,,23]),t=Ph,[4,this._zipContents.files["[Content_Types].xml"].async("text")];case 1:if(!(n=(e=t.apply(void 0,[x.sent()]).Types.Override).filter(function(t){return"application/vnd.openxmlformats-officedocument.theme+xml"===t.attrs.ContentType})))return[3,5];i=0,r=n,x.label=2;case 2:return i<r.length?(g=r[i].attrs.PartName.substr(1),o=Ph,[4,this._zipContents.files[g].async("text")]):[3,5];case 3:y=o.apply(void 0,[x.sent()]),this.themes.push(new Pj(g,y,this)),x.label=4;case 4:return i++,[3,2];case 5:return(a=e.find(function(t){return"application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"===t.attrs.ContentType}))?(g=a.attrs.PartName.substr(1),s=Ph,[4,this._zipContents.files[g].async("text")]):[3,7];case 6:y=s.apply(void 0,[x.sent()]),this.tableStyles=y,x.label=7;case 7:l=e.filter(function(t){return"application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"===t.attrs.ContentType}),f=0,x.label=8;case 8:return f<l.length?(g=l[f].attrs.PartName.substr(1),u=Ph,[4,this._zipContents.files[g].async("text")]):[3,11];case 9:y=u.apply(void 0,[x.sent()]),this.slideMaster.push(new PG(g,y,this)),x.label=10;case 10:return f++,[3,8];case 11:c=e.filter(function(t){return"application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"===t.attrs.ContentType}),f=0,x.label=12;case 12:return f<c.length?(g=c[f].attrs.PartName.substr(1),h=Ph,[4,this._zipContents.files[g].async("text")]):[3,16];case 13:return y=h.apply(void 0,[x.sent()]),[4,(p=new PF(g,y,this)).load()];case 14:x.sent(),this.slideLayouts.push(p),x.label=15;case 15:return f++,[3,12];case 16:d=e.filter(function(t){return"application/vnd.openxmlformats-officedocument.presentationml.slide+xml"===t.attrs.ContentType}),f=0,x.label=17;case 17:return f<d.length?(g=d[f].attrs.PartName.substr(1),v=Ph,[4,this._zipContents.files[g].async("text")]):[3,21];case 18:return y=v.apply(void 0,[x.sent()]),[4,(m=new PV(g,y,this)).load()];case 19:x.sent(),this.slides.push(m),x.label=20;case 20:return f++,[3,17];case 21:return this.slides.sort(function(t,e){return t.index-e.index}),[3,23];case 22:return x.sent(),[3,23];case 23:return[2]}})})},t.prototype._loadMedia=function(){return(0,tr.__awaiter)(this,void 0,void 0,function(){var t,e,n,i,r,o,a,s,l,u,c,h,p=this;return(0,tr.__generator)(this,function(d){var f;switch(d.label){case 0:t=Object.keys(this._zipContents.files).filter(function(t){return t.startsWith("ppt/media/image")}).map(function(t){return p._zipContents.files[t]}),e=0,n=t,d.label=1;case 1:return e<n.length?(r=function(t){var e;switch(t){case"jpg":case"jpeg":e="image/jpeg";break;case"png":e="image/png";break;case"gif":e="image/gif";break;case"emf":e="image/x-emf";break;case"wmf":e="image/x-wmf";break;default:e="image/*"}return e}((f=(i=n[e]).name).substr(2+(~-f.lastIndexOf(".")>>>0))),[4,i.async("base64")]):[3,4];case 2:o=d.sent(),this.medias[i.name]="data:".concat(r,";base64,").concat(o),d.label=3;case 3:return e++,[3,1];case 4:a=Object.keys(this._zipContents.files).filter(function(t){return t.startsWith("ppt/media/media")&&["mp3","wav","ogg","mp4","webm"].includes(t.split(".").pop().toLowerCase())}).map(function(t){return p._zipContents.files[t]}),s=0,l=a,d.label=5;case 5:return s<l.length?(c=(u=l[s]).name.split(".").pop().toLowerCase(),[4,u.async("arraybuffer")]):[3,8];case 6:h=new Blob([d.sent()],{type:"".concat(["mp3","wav"].includes(c)?"audio":"video","/").concat(c)}),this.medias[u.name]=URL.createObjectURL(h),d.label=7;case 7:return s++,[3,5];case 8:return[2]}})})},t.prototype.getXmlByPath=function(t){return(0,tr.__awaiter)(this,void 0,void 0,function(){return(0,tr.__generator)(this,function(e){switch(e.label){case 0:if(!this._zipContents.files[t])throw Error("文件不存在");return[4,this._zipContents.files[t].async("text")];case 1:return[2,e.sent()]}})})},t.prototype.getSlideLayout=function(t){return this.slideLayouts.find(function(e){return e.name===t})},t.prototype.getSlideMaster=function(t){return this.slideMaster.find(function(e){return e.name===t})},t.prototype.getTheme=function(t){return this.themes.find(function(e){return e.name===t})},t.prototype.getMedia=function(t){return this.medias[t]},t}();function PH(t){var e=t.extend,n=t.offset,i=t.clip,r=t.base64,o=t.audioFile,a=t.videoFile,s=document.createElement("div");s.style.setProperty("position","absolute"),s.style.setProperty("left",n.x+"px"),s.style.setProperty("top",n.y+"px");var l,u,c,h,p=document.createElement("div");p.style.setProperty("position","absolute"),p.style.setProperty("left","0"),p.style.setProperty("top","0"),p.style.setProperty("width",e.w+"px"),p.style.setProperty("height",e.h+"px"),p.style.setProperty("overflow","hidden"),i?(l=e.w/(1-(void 0===i.l?0:i.l)-(void 0===i.r?0:i.r)),u=e.h/(1-(void 0===i.t?0:i.t)-(void 0===i.b?0:i.b)),c=-1*l*(void 0===i.l?0:i.l),h=-1*u*(void 0===i.t?0:i.t)):(l=e.w,u=e.h,c=0);var d=document.createElement("img");if(d.src=r,d.width=l,d.height=u,d.style.setProperty("position","absolute"),d.style.setProperty("left",c+"px"),d.style.setProperty("top",h+"px"),p.append(d),s.append(p),o){var f=document.createElement("audio");f.style.position="absolute",f.style.left="0",f.style.top="0",f.src=o,f.controls=!0,f.style.transform="translate(-50%)",s.append(f)}if(a){var g=document.createElement("video");g.style.position="absolute",g.style.left="0",g.style.top="0",g.width=e.w,g.height=e.h,g.src=a,g.controls=!0,s.append(g)}return s}function PZ(t,e,n){void 0===e&&(e=0),void 0===n&&(n={});var i,r,o,a,s=t.inheritProps,l=t.inheritRProps,u=t.props,c=t.rows,h=(0,tr.__assign)((0,tr.__assign)({},s),u),p=function(){for(var t,e,i=0,r=0;r<c.length;r++){var o=c[r];o.props&&o.props.size&&(i=Math.max(i,o.props.size))}var a=(null==(e=null==(t=null==n?void 0:n.bodyProps)?void 0:t.normAutofit)?void 0:e.fontScale)||1;return(i||l.size||18)*a},d=document.createElement("div"),f=n.isFirst?0:h.spaceBefore||0,g=n.isLast?0:h.spaceAfter||0;d.style.margin="".concat(Math.floor(.2*p()),"px 0 0 0"),d.style.padding="".concat(Math.floor(f),"px 0px ").concat(Math.floor(g),"px 0px");var y=document.createElement("p");y.style.margin="0",y.style.padding="0px",y.style.wordBreak="break-word",y.style.textAlign=h.align&&({ctr:"center",l:"left",r:"right",dist:"justify"})[h.align]||"center","dist"===h.align&&(y.style.textAlignLast="justify");var v=h.hasOwnProperty("lineHeight")?h.lineHeight:1;if((null==(r=null==(i=n.bodyProps)?void 0:i.normAutofit)?void 0:r.lnSpcReduction)&&(v*=1-(null==(a=null==(o=n.bodyProps)?void 0:o.normAutofit)?void 0:a.lnSpcReduction)),y.style.lineHeight=v+"",y.style.fontSize=p()+"px",c.length){for(var m,x,_=0;_<c.length;_++){var b=c[_];b.isBr?y.appendChild(document.createElement("br")):y.appendChild(function(t,e,n){var i,r=t.props,o=t.text,a=(0,tr.__assign)((0,tr.__assign)({},e),r),s=document.createElement("span");s.innerHTML="string"==typeof o?o:"";var l=18;a.size&&(l=(null==(i=null==n?void 0:n.normAutofit)?void 0:i.fontScale)?a.size*n.normAutofit.fontScale:a.size,s.style.fontSize=l+"px");var u=PT(a.color);u&&(s.style.color=u);var c=/^[^\u4e00-\u9fff]+$/;if(a.typeface)switch(s.style.fontFamily=a.typeface,a.typeface){case"DengXian":c.test(o)&&(s.style.letterSpacing=-.04*l+"px");break;case"DengXian Light":c.test(o)&&(s.style.letterSpacing=-.05*l+"px");break;case"STLiti":case"SimSun":case"NSimSun":case"SimHei":c.test(o)&&(s.style.fontSize=.85*parseInt(s.style.fontSize)+"px");break;case"华文中宋":case"Fira Sans Extra Condensed Medium":s.style.fontSize=.85*parseInt(s.style.fontSize)+"px";break;case"FangSong":s.style.letterSpacing=-.08*l+"px"}else c.test(o)&&(s.style.letterSpacing=-.04*l+"px");return a.bold&&(s.style.fontWeight="bold"),a.italic&&(s.style.fontStyle="italic"),a.underline&&"none"!==a.underline&&(s.style.textDecoration="underline"),a.background&&(s.style.backgroundColor=PT(a.background)),s.style.wordBreak="break-word",s}(b,(0,tr.__assign)((0,tr.__assign)({},l),{marginTop:Math.floor(.2*p())}),n.bodyProps))}h.buAutoNum?function(t,e,n){var i=document.createElement("span"),r=t.firstElementChild;switch(i.style.fontSize=r.style.fontSize,i.style.color=r.style.color,i.style.fontWeight=r.style.fontWeight,i.style.fontStyle=r.style.fontStyle,i.style.marginRight="10px",e.buAutoNum){case"arabicPeriod":default:i.textContent=n+".";break;case"circleNumDbPlain":i.textContent=["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳"][n-1]||n+"";break;case"romanUcPeriod":i.textContent=function(t){var e=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];if("number"!=typeof t||t<1||t>3999)throw Error("Input must be a number between 1 and 3999.");for(var n="",i=0;i<e.length;i++)for(;t>=e[i].value;)n+=e[i].numeral,t-=e[i].value;return n}(n)+".";break;case"alphaUcPeriod":i.textContent=Pv(n)+".";break;case"alphaLcPeriod":i.textContent=Pv(n).toLowerCase()+".";break;case"alphaLcParenR":i.textContent=Pv(n).toLowerCase()+")";break;case"ea1JpnChsDbPeriod":i.textContent=function(t){var e=["〇","一","二","三","四","五","六","七","八","九"];if(!Number.isInteger(t)||t<0)return"";for(var n="",i=t.toString(),r=0;r<i.length;r++)n+=e[parseInt(i[r],10)];return n}(n)+"."}t.prepend(i)}(y,h,e):h.buChar&&(m=document.createElement("span"),x=y.firstElementChild,m.style.color=x.style.color,m.style.fontSize=x.style.fontSize,m.textContent=({n:"■",l:"●",u:"◆",p:"□",ü:"✔",Ø:"➢","•":"•"})[h.buChar]||"■",m.style.marginRight="10px",y.prepend(m)),y.style.paddingLeft=(h.marginLeft||0)+(h.indent||0)+"px"}else{var w=document.createElement("span");w.innerHTML=" ",w.style.fontSize=l.size+"px",y.appendChild(w)}return d.appendChild(y),d}var PX="http://www.w3.org/2000/svg";function PU(t){return document.createElementNS(PX,t)}function PY(t){var e=t.extend;return .16667*Math.min(e.w,e.h)}function Pq(t,e,n){void 0===n&&(n=0);var i=e.prstGeom,r=((null==i?void 0:i.gd)||[]).find(function(e){return e.name===t});return r?r.fmla:n}function PK(t,e,n){void 0===n&&(n=0);var i=e.extend,r=e.prstGeom,o=((null==r?void 0:r.gd)||[]).find(function(e){return e.name===t});return o?Math.min(i.w,i.h)*o.fmla:n}function PQ(t,e,n){void 0===n&&(n=0);var i=e.extend,r=e.prstGeom,o=((null==r?void 0:r.gd)||[]).find(function(e){return e.name===t});return o?Math.max(i.w,i.h)*o.fmla:n}function P$(t,e){var n=0;switch(t){case"sm":n=+e;break;case"med":n=1.5*e;break;case"lg":n=2.5*e}return Math.max(n,2)}function PJ(t,e,n,i){void 0===i&&(i=!1);var r=t.border,o=void 0===r?{}:r,a=t.uuid,s=o.headEnd,l=o.width,u=o.color,c=o.tailEnd,h=i?s:c,p=h.len,d=h.w,f=P$(void 0===p?"med":p,l),g=P$(void 0===d?"med":d,l),y=PU("defs"),v=PU("marker"),m="marker-".concat(a,"-").concat(i?"start":"end");v.setAttribute("id",m),v.setAttribute("viewBox","0 0 ".concat(2*f," ").concat(2*g)),v.setAttribute("refX",f+"px"),v.setAttribute("refY",g+"px"),v.setAttribute("markerWidth",2*f+"px"),v.setAttribute("markerHeight",2*g+"px"),v.setAttribute("orient","auto"),v.setAttribute("markerUnits","userSpaceOnUse");var x=PU("ellipse");x.setAttribute("cx",f+"px"),x.setAttribute("cy",g+"px"),x.setAttribute("rx",f+"px"),x.setAttribute("ry",g+"px"),x.setAttribute("fill",PT(u)||"transparent"),v.appendChild(x),y.appendChild(v),e.appendChild(y),n.setAttribute(i?"marker-start":"marker-end","url(#".concat(m,")"))}function P0(t,e,n,i){void 0===i&&(i=!1);var r=t.border,o=void 0===r?{}:r,a=t.uuid,s=o.headEnd,l=o.width,u=o.color,c=o.tailEnd,h=i?s:c,p=h.len,d=h.w,f=P$(void 0===p?"med":p,l),g=P$(void 0===d?"med":d,l),y=PU("defs"),v=PU("marker"),m="marker-".concat(a,"-").concat(i?"start":"end");v.setAttribute("id",m),v.setAttribute("viewBox","0 0 ".concat(2*f," ").concat(2*g)),v.setAttribute("refX",(i?.9*f:1.1*f)+"px"),v.setAttribute("refY",g+"px"),v.setAttribute("markerWidth",2*f+"px"),v.setAttribute("markerHeight",2*g+"px"),v.setAttribute("orient","auto"),v.setAttribute("markerUnits","userSpaceOnUse");var x=PU("path"),_=i?["M ".concat(2*f,",0"),"L 0,".concat(g),"L ".concat(2*f,",").concat(2*g),"Z"].join(" "):["M 0,0","L ".concat(2*f,",").concat(g),"L 0,".concat(2*g),"Z"].join(" ");x.setAttribute("d",_),x.setAttribute("fill",PT(u)||"transparent"),v.appendChild(x),y.appendChild(v),e.appendChild(y),n.setAttribute(i?"marker-start":"marker-end","url(#".concat(m,")"))}function P1(t,e,n,i){void 0===i&&(i=!1);var r=t.border,o=void 0===r?{}:r,a=t.uuid,s=o.headEnd,l=o.width,u=o.color,c=o.tailEnd,h=i?s:c,p=h.len,d=h.w,f=P$(void 0===p?"med":p,l),g=P$(void 0===d?"med":d,l),y=PU("defs"),v=PU("marker"),m="marker-".concat(a,"-").concat(i?"start":"end");v.setAttribute("id",m),v.setAttribute("viewBox","0 0 ".concat(2*f," ").concat(2*g)),v.setAttribute("refX",f+"px"),v.setAttribute("refY",g+"px"),v.setAttribute("markerWidth",2*f+"px"),v.setAttribute("markerHeight",2*g+"px"),v.setAttribute("orient","auto"),v.setAttribute("markerUnits","userSpaceOnUse");var x=PU("path"),_=["M 0,".concat(g),"L ".concat(f,",0"),"L ".concat(2*f,",").concat(g),"L ".concat(f,",").concat(2*g),"Z"].join(" ");x.setAttribute("d",_),x.setAttribute("fill",PT(u)||"transparent"),v.appendChild(x),y.appendChild(v),e.appendChild(y),n.setAttribute(i?"marker-start":"marker-end","url(#".concat(m,")"))}function P2(t,e,n,i){void 0===i&&(i=!1);var r=t.border,o=void 0===r?{}:r,a=t.uuid,s=o.headEnd,l=o.width,u=o.color,c=o.tailEnd,h=i?s:c,p=h.len,d=h.w,f=void 0===d?"med":d,g=P$(void 0===p?"med":p,l),y=P$(f,l),v=PU("defs"),m=PU("marker"),x="marker-".concat(a,"-").concat(i?"start":"end");m.setAttribute("id",x),m.setAttribute("viewBox","0 0 ".concat(2*g+2*l," ").concat(2*y+2*l));var _=i?"lg"===f?2*l:3*l:"lg"===f?2*g:2*g-l;m.setAttribute("refX",_+"px"),m.setAttribute("refY",y+l+"px"),m.setAttribute("markerWidth",2*g+"px"),m.setAttribute("markerHeight",2*y+"px"),m.setAttribute("orient","auto"),m.setAttribute("markerUnits","userSpaceOnUse");var b=PU("path"),w=i?["M ".concat(2*g+l,", ").concat(l),"L ".concat(l,",").concat(y+l),"L ".concat(2*g+l,",").concat(2*y+l)].join(" "):["M ".concat(l,", ").concat(l),"L ".concat(2*g+l,",").concat(y+l),"L ".concat(l,",").concat(2*y+l)].join(" ");b.setAttribute("d",w),b.setAttribute("stroke-width",l+"px"),b.setAttribute("stroke",PT(u)||"transparent"),b.setAttribute("fill","transparent"),b.setAttribute("stroke-linecap","round"),b.setAttribute("stroke-linejoin","miter"),b.style.overflow="visible",m.appendChild(b),v.appendChild(m),e.appendChild(v),n.setAttribute(i?"marker-start":"marker-end","url(#".concat(x,")"))}function P5(t,e,n,i){void 0===i&&(i=!1);var r=t.border,o=void 0===r?{}:r,a=t.uuid,s=o.headEnd,l=o.width,u=o.color,c=o.tailEnd,h=i?s:c,p=h.len,d=h.w,f=void 0===d?"med":d,g=P$(void 0===p?"med":p,l),y=P$(f,l),v=PU("defs"),m=PU("marker"),x="marker-".concat(a,"-").concat(i?"start":"end");m.setAttribute("id",x),m.setAttribute("viewBox","0 0 ".concat(2*g," ").concat(2*y));var _=i?"sm"===f?1.5*l:2*l:"sm"===f?2*g-1.5*l:2*g-2*l;m.setAttribute("refX",_+"px"),m.setAttribute("refY",y+"px"),m.setAttribute("markerWidth",2*g+"px"),m.setAttribute("markerHeight",2*y+"px"),m.setAttribute("orient","auto"),m.setAttribute("markerUnits","userSpaceOnUse");var b=PU("path"),w=i?["M 0, ".concat(y),"L ".concat(2*g,",0"),"L ".concat(g,",").concat(y),"L ".concat(2*g,",").concat(2*y),"Z"].join(" "):["M 0,0","L ".concat(2*g,",").concat(y),"L 0,".concat(2*y),"L ".concat(g,",").concat(y),"Z"].join(" ");b.setAttribute("d",w),b.setAttribute("fill",PT(u)||"transparent"),b.style.overflow="visible",m.appendChild(b),v.appendChild(m),e.appendChild(v),n.setAttribute(i?"marker-start":"marker-end","url(#".concat(x,")"))}function P3(t,e,n){var i=t.border,r=void 0===i?{}:i;t.extend;var o=r.headEnd,a=r.tailEnd;if(o&&"none"!==o.type)switch(o.type){case"triangle":P0(t,e,n,!0);break;case"oval":PJ(t,e,n,!0);break;case"diamond":P1(t,e,n,!0);break;case"arrow":P2(t,e,n,!0);break;case"stealth":P5(t,e,n,!0)}if(a&&"none"!==a.type)switch(a.type){case"triangle":P0(t,e,n,!1);break;case"oval":PJ(t,e,n,!1);break;case"diamond":P1(t,e,n,!1);break;case"arrow":P2(t,e,n,!1);break;case"stealth":P5(t,e,n,!1)}}function P4(t){var e=t.extend,n=PU("rect");return n.setAttribute("x","0"),n.setAttribute("y","0"),n.setAttribute("width",e.w+"px"),n.setAttribute("height",e.h+"px"),n}function P6(t,e,n,i,r){var o=t*Math.PI/180;return[0===o||o===2*Math.PI?e+i:o===Math.PI?e-i:o===Math.PI/2||o===3*Math.PI/2?e:o>0&&o<Math.PI/2||o>3*Math.PI/2&&o<2*Math.PI?e+Math.sqrt(1/(1/Math.pow(i,2)+Math.pow(Math.tan(o),2)/Math.pow(r,2))):e-Math.sqrt(1/(1/Math.pow(i,2)+Math.pow(Math.tan(o),2)/Math.pow(r,2))),0===o||o===2*Math.PI||o===Math.PI?n:o===Math.PI/2?n+r:o===3*Math.PI/2?n-r:o>Math.PI&&o<2*Math.PI?n-Math.sqrt(1/(1/Math.pow(r,2)+Math.pow(1/Math.tan(o),2)/Math.pow(i,2))):n+Math.sqrt(1/(1/Math.pow(r,2)+Math.pow(1/Math.tan(o),2)/Math.pow(i,2)))]}function P8(t,e){var n=0;return(e>t&&e-t>180||e<t&&t-e<180)&&(n=1),n}function P9(t){var e=t.extend,n=.146*e.w,i=.146*e.h;return{top:i,bottom:i,left:n,right:n,w:e.w-2*n,h:e.h-2*i}}function P7(t){var e,n,i,r,o,a,s,l,u,c,h,p,d,f,g,y,v,m,x,_,b,w,S,M,I,T,C,A,L,D,k,P,O,R,N,E,z,B,V,F,G,j,W,H,Z,X,U,Y,q,K,Q,$,J,tt,te,tn,ti,to,ta,ts,tl,tu,tc,th,tp,td,tf,tg,ty,tv,tm,tx,t_,tb,tw,tS,tM,tI,tT,tC,tA,tL,tD,tk,tP,tO,tR,tN,tE,tz,tB,tV,tF,tG,tj,tW,tH,tZ,tX,tU,tY,tq,tK,tQ,t$,tJ,t0,t1,t2,t5,t3,t4,t6,t8,t9,t7,et,ee,en,ei,er,eo,ea,es,el,eu,ec,eh,ep,ed,ef,eg,ey,ev,em,ex,e_,eb,ew,eS,eM,eI,eT,eC,eA,eL,eD,ek,eP,eO,eR,eN,eE,ez,eB,eV,eF,eG,ej,eW,eH,eZ,eX,eU,eY,eq,eK,eQ,e$,eJ,e0,e1,e2,e5,e3,e4,e6,e8,e9,e7,nt,ne,nn,ni,nr,no,na,ns,nl,nu,nc,nh,np,nd,nf,ng,ny,nv,nm,nx,n_,nb,nw,nS,nM,nI,nT,nC,nA,nL,nD,nk,nP,nO,nR,nN,nE,nz,nB,nV,nF,nG,nj,nW,nH,nZ,nX,nU,nY,nq,nK,nQ,n$,nJ,n0,n1,n2,n5,n3,n4,n6,n8,n9,n7,it,ie,ii,ir,io,ia,is,il,iu,ic,ih,ip,id,ig,iy,iv,im,ix,i_,ib,iw,iS,iM,iI,iT,iC,iA,iL,iD,ik,iP,iO,iR,iN,iE,iz,iB,iV,iF,iG,ij,iW,iH,iZ,iX,iU,iY,iq,iK,iQ,i$,iJ,i0,i1,i2,i5,i3,i4,i6,i8,i9,i7,rt,re,rn,ri,rr,ro,ra,rs,rl,ru,rc,rh,rp,rd,rf,rg,ry,rv,rm,rx,r_,rb,rw,rS,rM,rI,rT,rC,rA,rL,rD,rk,rP,rO,rR,rN,rE,rz,rB,rV,rF,rG,rj,rW,rH,rZ,rX,rU,rY,rq,rK,rQ,r$,rJ,r0,r1,r2,r5,r3,r4,r6,r8,r9,r7,ot,oe,on,oi,or,oo,oa,os,ol,ou,oc,oh,op,od,of,og,oy,ov,om,ox,o_,ob,ow,oS,oM,oI,oT,oC,oA,oL,oD,ok,oP,oO,oR,oN,oE,oz,oB,oV,oF,oG,oj,oW,oH,oZ,oX,oU,oY,oq,oK,oQ,o$,oJ,o0,o1,o2,o5,o3,o4,o6,o8,o9,o7,at,ae,an,ai,ar,ao,aa,as,al,au,ac,ah,ap,ad,af,ag,ay,av,am,ax,a_,ab,aw,aS,aM,aI,aT,aC,aA,aL,aD,ak,aP,aO,aR,aN,aE,az,aB,aV,aF,aG,aj,aW,aH,aZ,aX,aU,aY,aq,aK,aQ,a$,aJ,a0,a1,a2,a5,a3,a4,a6,a8,a9,a7,st,se,sn,si,sr,so,sa,ss,sl,su,sc,sh,sp,sd,sf,sg,sy,sv,sm,sx,s_,sb,sw,sS,sM,sI,sT,sC,sA,sL,sD,sk,sP,sO,sR,sN,sE,sz,sB,sV,sF,sG,sj,sW,sH,sZ,sX,sU,sY,sq,sK,sQ,s$,sJ,s0,s1,s2,s5,s3,s4,s6,s8,s9,s7,lt,le,ln,li,lr,lo,la,ls,ll,lu,lc,lh,lp,ld,lf,lg,ly,lv,lm,lx,l_,lb,lw,lS,lM,lI,lT,lC,lA,lL,lD,lk,lP,lO,lR,lN,lE,lz,lB,lV,lF,lG,lj,lW,lH,lZ,lX,lU,lY,lq,lK,lQ,l$,lJ,l0,l1,l2,l5,l3,l4,l6,l8,l9,l7,ut,ue,un,ui,ur,uo,ua,us,ul,uu,uc,uh,up,ud,uf,ug,uy,uv,um,ux,u_,ub,uw,uS,uM,uI,uT,uC,uA,uL,uD,uk,uP,uO,uR,uN,uE,uz,uB,uV=t.extend,uF=t.offset,uG=t.border,uj=t.background,uW=t.rotate,uH=t.flipH,uZ=t.flipV,uX=document.createElement("div"),uU=uF.x,uY=uF.y;uX.className="shape-wrapper shape-".concat(t.shape),uX.style.setProperty("position","absolute"),uX.style.setProperty("width",(uV.w||1)+"px"),uX.style.setProperty("height",(uV.h||1)+"px"),uX.style.setProperty("left",uU+"px"),uX.style.setProperty("top",uY+"px");var uq,uK=document.createElementNS(PX,"svg");uK.style.setProperty("position","absolute"),uK.setAttribute("width","100%"),uK.setAttribute("height","100%"),uK.style.setProperty("left","0"),uK.style.setProperty("top","0"),uK.style.overflow="visible";var uQ={left:0,top:0,bottom:0,w:uV.w,h:uV.h},u$=!0;switch(t.shape){case"customGeom":n=void 0===(e=t.prstGeom)?{}:e,i=t.extend,r=n.pathList,o=n.w,a=n.h,s=PU("path"),l={moveTo:"M",lnTo:"L",cubicBezTo:"C",close:"Z"},u=i.w/o,c=i.h/a,h=r.map(function(t){var e=l[t.type],n=Array.isArray(t.points)?t.points.map(function(t){return"".concat(t[0]*u,",").concat(t[1]*c)}).join(" "):"";return n?"".concat(e," ").concat(n):"".concat(e)}).join(" "),s.setAttribute("d",h),s.style.fillRule="evenodd",P3(t,uK,uq=s);break;case"flowChartProcess":case"rect":uq=P4(t);break;case"snip1Rect":p=t.extend,d=PU("polygon"),f=PK("adj",t,PY(t)),g=["0,0","".concat(p.w-f,",0"),"".concat(p.w,",").concat(f),"".concat(p.w,",").concat(p.h),"0,".concat(p.h)].join(" "),d.setAttribute("points",g),uq=d;break;case"snip2SameRect":y=t.extend,v=PU("polygon"),m=PK("adj1",t,PY(t)),x=PK("adj2",t,0),_=[[m,0],[y.w-m,0],[y.w,m],[y.w,y.h-x],[y.w-x,y.h],[x,y.h],[0,y.h-x],[0,m]].map(function(t){return"".concat(t[0],",").concat(t[1])}).join(" "),v.setAttribute("points",_),uq=v;break;case"snip2DiagRect":b=t.extend,w=PU("polygon"),S=PK("adj1",t,0),M=PK("adj2",t,PY(t)),I=[[S,0],[b.w-M,0],[b.w,M],[b.w,b.h-S],[b.w-S,b.h],[M,b.h],[0,b.h-M],[0,S]].map(function(t){return"".concat(t[0],",").concat(t[1])}).join(" "),w.setAttribute("points",I),uq=w;break;case"snipRoundRect":T=t.extend,C=PU("path"),A=PK("adj1",t,PY(t)),L=PK("adj2",t,PY(t)),D=["M ".concat(A,",0"),"L ".concat(T.w-L,",0"),"L ".concat(T.w,",").concat(L),"L ".concat(T.w,",").concat(T.h),"L 0,".concat(T.h),"L 0,".concat(A),"Q 0,0 ".concat(A,",0"),"Z"].join(" "),C.setAttribute("d",D),uq=C;break;case"roundRect":k=P4(t),P=PK("adj",t,PY(t)),k.setAttribute("rx",P+"px"),k.setAttribute("ry",P+"px"),uq=k;break;case"round1Rect":O=t.extend,R=PU("path"),N=PK("adj",t,PY(t)),E=["M 0,0","L ".concat(O.w-N,",0"),"Q ".concat(O.w,",0 ").concat(O.w,",").concat(N),"L ".concat(O.w,",").concat(O.h),"L 0,".concat(O.h),"Z"].join(" "),R.setAttribute("d",E),uq=R;break;case"round2SameRect":z=t.extend,B=PU("path"),V=PK("adj1",t,PY(t)),F=PK("adj2",t,0),G=["M ".concat(V,",0"),"L ".concat(z.w-V,",0"),"Q ".concat(z.w,",0 ").concat(z.w,",").concat(V),"L ".concat(z.w,",").concat(z.h-F),"Q ".concat(z.w,",").concat(z.h," ").concat(z.w-F,",").concat(z.h),"L ".concat(F,",").concat(z.h),"Q 0,".concat(z.h," 0,").concat(z.h-F),"L 0,".concat(V),"Q 0,0 ".concat(V,",0"),"Z"].join(" "),B.setAttribute("d",G),uq=B;break;case"round2DiagRect":j=t.extend,W=PU("path"),H=PK("adj1",t,PY(t)),Z=PK("adj2",t,0),X=["M ".concat(H,",0"),"L ".concat(j.w-Z,",0"),"Q ".concat(j.w,",0 ").concat(j.w,",").concat(Z),"L ".concat(j.w,",").concat(j.h-H),"Q ".concat(j.w,",").concat(j.h," ").concat(j.w-H,",").concat(j.h),"L ".concat(Z,",").concat(j.h),"Q 0,".concat(j.h," 0,").concat(j.h-Z),"L 0,".concat(H),"Q 0,0 ".concat(H,",0"),"Z"].join(" "),W.setAttribute("d",X),uq=W;break;case"triangle":U=t.extend,Y=PU("polygon"),q=["".concat(U.w/2,",0"),"0,".concat(U.h),"".concat(U.w,",").concat(U.h)].join(" "),Y.setAttribute("points",q),uq=Y;break;case"rtTriangle":K=t.extend,Q=PU("polygon"),$=["0,".concat(K.h),"0,0","".concat(K.w,",").concat(K.h)].join(" "),Q.setAttribute("points",$),uq=Q;break;case"ellipse":J=t.extend,tt=PU("ellipse"),te=J.w/2,tn=J.h/2,tt.setAttribute("cx",te+"px"),tt.setAttribute("cy",tn+"px"),tt.setAttribute("rx",te+"px"),tt.setAttribute("ry",tn+"px"),uq=tt;break;case"line":ti=t.extend,to=PU("path"),ta=["M 0,0","L ".concat(ti.w,",").concat(ti.h)].join(" "),to.setAttribute("d",ta),P3(t,uK,uq=to),u$=!1;break;case"straightConnector1":ts=t.extend,tl=PU("path"),tu=["M 0,0","L ".concat(ts.w,",").concat(ts.h)].join(" "),tl.setAttribute("d",tu),P3(t,uK,uq=tl),u$=!1;break;case"bentConnector3":tc=t.extend,th=PU("path"),tp=PQ("adj1",t,.5*Math.max(tc.w,tc.h)),td=["M 0,0","L ".concat(tp,",0"),"L ".concat(tp,",").concat(tc.h),"L ".concat(tc.w,",").concat(tc.h)].join(" "),th.setAttribute("d",td),P3(t,uK,uq=th),u$=!1;break;case"curvedConnector3":tf=t.extend,tg=PU("path"),ty=PQ("adj1",t,.5*Math.max(tf.w,tf.h)),tv=["M0,0","Q".concat(ty,",0 ").concat(ty,",").concat(tf.h/2),"T".concat(tf.w,",").concat(tf.h)].join(" "),tg.setAttribute("d",tv),P3(t,uK,uq=tg),u$=!1;break;case"parallelogram":tm=t.extend,tx=PU("path"),t_=PK("adj",t,.5*Math.min(tm.w,tm.h)),tb=["M".concat(t_,",0"),"L".concat(tm.w,",0"),"L".concat(tm.w-t_,",").concat(tm.h),"L0,".concat(tm.h),"Z"].join(" "),tx.setAttribute("d",tb),uq=tx,tw=t.extend,tS=PK("adj",t,.5*Math.min(tw.w,tw.h)),tM=.84*(tw.w-tS),uQ={top:tI=.08*tw.h+tS/tw.w*tw.h*.42,bottom:tI,left:(tw.w-tM)/2,right:(tw.w-tM)/2,w:tM,h:tw.h-2*tI};break;case"trapezoid":tT=t.extend,tC=PU("path"),tA=PK("adj",t,.25*Math.min(tT.w,tT.h)),tL=["M".concat(tA,",0"),"L".concat(tT.w-tA,",0"),"L".concat(tT.w,",").concat(tT.h),"L0,".concat(tT.h),"Z"].join(" "),tC.setAttribute("d",tL),uq=tC,tD=t.extend,uQ={top:tP=(tk=PK("adj",t,.5*Math.min(tD.w,tD.h)))/tD.w*.66*tD.h,bottom:0,left:tO=.66*tk,right:tO,w:tD.w-2*tO,h:tD.h-tP};break;case"diamond":tR=t.extend,tN=PU("path"),tE=["M".concat(tR.w/2,",0"),"L".concat(tR.w,",").concat(tR.h/2),"L".concat(tR.w/2,",").concat(tR.h),"L0,".concat(tR.h/2),"Z"].join(" "),tN.setAttribute("d",tE),uq=tN,uQ={top:tB=.25*(tz=t.extend).h,bottom:tB,left:tV=.25*tz.w,right:tV,w:.5*tz.w,h:.5*tz.h};break;case"pentagon":tF=t.extend,tG=PU("path"),tj=["M".concat(tF.w/2,",0"),"L".concat(tF.w,",").concat(.3771*tF.h),"L".concat(.808*tF.w,",").concat(tF.h),"L".concat(.192*tF.w,",").concat(tF.h),"L0,".concat(.3771*tF.h),"Z"].join(" "),tG.setAttribute("d",tj),uq=tG,uQ={top:.227*(tW=t.extend).h,bottom:0,left:tH=.192*tW.w,right:tH,w:.616*tW.w,h:.773*tW.h};break;case"hexagon":tZ=t.extend,tX=PU("path"),tU=PK("adj",t,.25*Math.min(tZ.w,tZ.h)),tY=["M".concat(tU,",0"),"L".concat(tZ.w-tU,",0"),"L".concat(tZ.w,",").concat(tZ.h/2),"L".concat(tZ.w-tU,",").concat(tZ.h),"L".concat(tU,",").concat(tZ.h),"L0,".concat(tZ.h/2),"Z"].join(" "),tX.setAttribute("d",tY),uq=tX,tq=t.extend,tK=PK("adj",t,.25*Math.min(tq.w,tq.h)),uQ={top:tQ=.098*tq.h+tK/tq.w*.38*tq.h,bottom:tQ,left:t$=.088*tq.w+.422*tK,right:t$,w:tq.w-2*t$,h:tq.h-2*tQ};break;case"heptagon":tJ=t.extend,t0=PU("path"),t1=["M".concat(tJ.w/2,",0"),"L".concat(.9*tJ.w,",").concat(.2*tJ.h),"L".concat(tJ.w,",").concat(.642*tJ.h),"L".concat(.722*tJ.w,",").concat(tJ.h),"L".concat(.278*tJ.w,",").concat(tJ.h),"L0,".concat(.642*tJ.h),"L".concat(.1*tJ.w,",").concat(.2*tJ.h),"Z"].join(" "),t0.setAttribute("d",t1),uq=t0,uQ={top:.2*(t2=t.extend).h,bottom:.2*t2.h,left:.1*t2.w,right:.1*t2.w,w:.8*t2.w,h:.6*t2.h};break;case"octagon":t5=t.extend,t3=PU("path"),t4=PK("adj",t,.29*Math.min(t5.w,t5.h)),t6=["M".concat(t4,",0"),"L".concat(t5.w-t4,",0"),"L".concat(t5.w,",").concat(t4),"L".concat(t5.w,",").concat(t5.h-t4),"L".concat(t5.w-t4,",").concat(t5.h),"L".concat(t4,",").concat(t5.h),"L0,".concat(t5.h-t4),"L0,".concat(t4),"Z"].join(" "),t3.setAttribute("d",t6),uq=t3,t8=t.extend,uQ={top:.5*(t9=PK("adj",t,.29*Math.min(t8.w,t8.h))),bottom:.5*t9,left:.5*t9,right:.5*t9,w:t8.w-t9,h:t8.h-t9};break;case"decagon":t7=t.extend,et=PU("path"),ee=["M".concat(.344*t7.w,",0"),"L".concat(.656*t7.w,",0"),"L".concat(.883*t7.w,",").concat(.19*t7.h),"L".concat(t7.w,",").concat(.5*t7.h),"L".concat(.883*t7.w,",").concat(.81*t7.h),"L".concat(.656*t7.w,",").concat(t7.h),"L".concat(.344*t7.w,",").concat(t7.h),"L".concat(.117*t7.w,",").concat(.81*t7.h),"L0,".concat(.5*t7.h),"L".concat(.117*t7.w,",").concat(.19*t7.h),"Z"].join(" "),et.setAttribute("d",ee),uq=et,uQ={top:.19*(en=t.extend).h,bottom:.19*en.h,left:.117*en.w,right:.117*en.w,w:.766*en.w,h:.62*en.h};break;case"dodecagon":ei=t.extend,er=PU("path"),eo=["M".concat(.364*ei.w,",0"),"L".concat(.636*ei.w,",0"),"L".concat(.867*ei.w,",").concat(.135*ei.h),"L".concat(ei.w,",").concat(.364*ei.h),"L".concat(ei.w,",").concat(.636*ei.h),"L".concat(.867*ei.w,",").concat(.865*ei.h),"L".concat(.636*ei.w,",").concat(ei.h),"L".concat(.364*ei.w,",").concat(ei.h),"L".concat(.133*ei.w,",").concat(.865*ei.h),"L0,".concat(.636*ei.h),"L0,".concat(.364*ei.h),"L".concat(.133*ei.w,",").concat(.135*ei.h),"Z"].join(" "),er.setAttribute("d",eo),uq=er,uQ={top:.135*(ea=t.extend).h,bottom:.135*ea.h,left:.133*ea.w,right:.133*ea.w,w:.734*ea.w,h:.73*ea.h};break;case"pie":es=t.extend,el=PU("path"),eu=Pq("adj1",t,360),ec=Pq("adj2",t,270),eh=es.w/2,ep=es.h/2,ey=(eg=P6(eu,ed=es.w/2,ef=es.h/2,eh,ep))[0],ev=eg[1],ex=(em=P6(ec,ed,ef,eh,ep))[0],e_=em[1],eb=P8(eu,ec),ew="M".concat(ed,",").concat(ef,", L").concat(ey," ").concat(ev," A ").concat(eh," ").concat(ep," 0 ").concat(eb," ").concat(1," ").concat(ex," ").concat(e_," Z"),el.setAttribute("d",ew),uq=el,uQ=P9(t);break;case"arc":eS=t.extend,eM=PU("path"),eI=Pq("adj1",t,270),eT=Pq("adj2",t,0),eC=eS.w/2,eA=eS.h/2,eP=(ek=P6(eI,eL=eS.w/2,eD=eS.h/2,eC,eA))[0],eO=ek[1],eN=(eR=P6(eT,eL,eD,eC,eA))[0],eE=eR[1],ez=P8(eI,eT),eB="M".concat(eP,",").concat(eO," A ").concat(eC," ").concat(eA," 0 ").concat(ez," ").concat(1," ").concat(eN," ").concat(eE),eM.setAttribute("d",eB),uq=eM,u$=!1;break;case"bracketPair":eV=t.extend,eF=PU("path"),eG=PK("adj",t,.16667*Math.min(eV.w,eV.h)),ej=["M".concat(eG,",").concat(eV.h),"Q".concat(0,",").concat(eV.h," ").concat(0,",").concat(eV.h-eG),"L".concat(0,",").concat(eG),"Q".concat(0,",").concat(0," ").concat(eG,",").concat(0),"M".concat(eV.w-eG,",").concat(0),"Q".concat(eV.w,",").concat(0," ").concat(eV.w,",").concat(eG),"L".concat(eV.w,",").concat(eV.h-eG),"Q".concat(eV.w,",").concat(eV.h," ").concat(eV.w-eG,",").concat(eV.h)].join(" "),eF.setAttribute("d",ej),uq=eF,eW=t.extend,uQ={top:eH=.285*PK("adj",t,.16667*Math.min(eW.w,eW.h)),bottom:eH,left:eH,right:eH,w:eW.w-2*eH,h:eW.h-2*eH},u$=!1;break;case"bracePair":eZ=t.extend,eX=PU("path"),eU=PK("adj",t,.083335*Math.min(eZ.w,eZ.h)),eY=["M".concat(2*eU,",").concat(eZ.h),"Q".concat(eU,",").concat(eZ.h," ").concat(eU,",").concat(eZ.h-eU),"L".concat(eU,",").concat(eZ.h/2+eU),"Q".concat(eU,",").concat(eZ.h/2," ").concat(0,",").concat(eZ.h/2),"Q".concat(eU,",").concat(eZ.h/2," ").concat(eU,",").concat(eZ.h/2-eU),"L".concat(eU,",").concat(eU),"Q".concat(eU,",").concat(0," ").concat(2*eU,",").concat(0),"M".concat(eZ.w-2*eU,",").concat(0),"Q".concat(eZ.w-eU,",").concat(0," ").concat(eZ.w-eU,",").concat(eU),"L".concat(eZ.w-eU,",").concat(eZ.h/2-eU),"Q".concat(eZ.w-eU,",").concat(eZ.h/2," ").concat(eZ.w,",").concat(eZ.h/2),"Q".concat(eZ.w-eU,",").concat(eZ.h/2," ").concat(eZ.w-eU,",").concat(eZ.h/2+eU),"L".concat(eZ.w-eU,",").concat(eZ.h-eU),"Q".concat(eZ.w-eU,",").concat(eZ.h," ").concat(eZ.w-2*eU,",").concat(eZ.h)].join(" "),eX.setAttribute("d",eY),uq=eX,eq=t.extend,uQ={top:eK=.285*PK("adj",t,.16667*Math.min(eq.w,eq.h)),bottom:eK,left:eK,right:eK,w:eq.w-2*eK,h:eq.h-2*eK},u$=!1;break;case"chord":eQ=t.extend,e$=PU("path"),eJ=Pq("adj1",t,45),e0=Pq("adj2",t,270),e1=eQ.w/2,e2=eQ.h/2,e6=(e4=P6(eJ,e5=eQ.w/2,e3=eQ.h/2,e1,e2))[0],e8=e4[1],e7=(e9=P6(e0,e5,e3,e1,e2))[0],nt=e9[1],ne=P8(eJ,e0),nn="M".concat(e6," ").concat(e8," A ").concat(e1," ").concat(e2," 0 ").concat(ne," ").concat(1," ").concat(e7," ").concat(nt," Z"),e$.setAttribute("d",nn),uq=e$,uQ=P9(t);break;case"teardrop":ni=t.extend,nr=PU("path"),no=Pq("adj",t,1),na=ni.w/2,ns=ni.h/2,nh=(nc=P6(0,nl=ni.w/2,nu=ni.h/2,na,ns))[0],np=nc[1],nf=(nd=P6(270,nl,nu,na,ns))[0],ng=nd[1],ny=P8(0,270),nv="M".concat(nh," ").concat(np," A ").concat(na," ").concat(ns," 0 ").concat(ny," ").concat(1," ").concat(nf," ").concat(ng),nx=nl+(nm=na*no),n_=nu-ns*nm/(ni.w/2),nb=(ni.w/2+nx)/2,nw=(ni.h/2+n_)/2,nv+=" Q".concat(nb,",0 ").concat(nx,",").concat(n_),nv+=" Q".concat(ni.w,",").concat(nw," ").concat(nl+na,",").concat(nu),nr.setAttribute("d",nv),uq=nr,uQ=P9(t);break;case"frame":nS=t.extend,nM=PU("path"),nI=PK("adj1",t,.12*Math.min(nS.w,nS.h)),nT=["M0,0","L".concat(nS.w,",0"),"L".concat(nS.w,",").concat(nS.h),"L0,".concat(nS.h),"Z","M".concat(nI,",").concat(nI),"L".concat(nI,",").concat(nS.h-nI),"L".concat(nS.w-nI,",").concat(nS.h-nI),"L".concat(nS.w-nI,",").concat(nI),"Z"].join(" "),nM.setAttribute("d",nT),uq=nM,nC=t.extend,uQ={top:nA=PK("adj1",t,.12*Math.min(nC.w,nC.h)),bottom:nA,left:nA,right:nA,w:nC.w-2*nA,h:nC.h-2*nA};break;case"halfFrame":nL=t.extend,nD=PU("path"),nk=PK("adj1",t,.333*Math.min(nL.w,nL.h)),nP=Math.min(PK("adj2",t,.333*Math.min(nL.w,nL.h)),nL.w*(1-nk/nL.h)),nO=["M0,0","L".concat(nL.w,",0"),"L".concat(nL.w*(1-nk/nL.h),",").concat(nk),"L".concat(nP,",").concat(nk),"L".concat(nP,",").concat(nL.h*(1-nP/nL.w)),"L0,".concat(nL.h),"Z"].join(" "),nD.setAttribute("d",nO),uq=nD;break;case"corner":nR=t.extend,nN=PU("path"),nE=PK("adj1",t,.5*Math.min(nR.w,nR.h)),nz=PK("adj2",t,.5*Math.min(nR.w,nR.h)),nB=["M0,0","L".concat(nz,",0"),"L".concat(nz,",").concat(nR.h-nE),"L".concat(nR.w,",").concat(nR.h-nE),"L".concat(nR.w,",").concat(nR.h),"L0,".concat(nR.h),"Z"].join(" "),nN.setAttribute("d",nB),uq=nN,nV=t.extend,nF=PK("adj1",t,.5*Math.min(nV.w,nV.h)),uQ={top:nV.h-nF,bottom:0,left:0,right:0,w:nV.w,h:nF};break;case"diagStripe":nG=t.extend,nj=PU("path"),nW=PK("adj",t,.5*Math.min(nG.w,nG.h)),nH=nG.w*nW/nG.h,nZ=["M".concat(nH,",0"),"L".concat(nG.w,",0"),"L0,".concat(nG.h),"L0,".concat(nW),"Z"].join(" "),nj.setAttribute("d",nZ),uq=nj,nX=t.extend,uQ={top:0,bottom:nY=.5*(1-(nU=Pq("adj",t,.5)))*nX.h,left:0,right:nq=.5*(1-nU)*nX.w,w:nX.w-nq,h:nX.h-nY};break;case"plus":nK=t.extend,nQ=PU("path"),n$=PK("adj",t,.25*Math.min(nK.w,nK.h)),nJ=["M".concat(n$,",0"),"L".concat(nK.w-n$,",0"),"L".concat(nK.w-n$,",").concat(n$),"L".concat(nK.w,",").concat(n$),"L".concat(nK.w,",").concat(nK.h-n$),"L".concat(nK.w-n$,",").concat(nK.h-n$),"L".concat(nK.w-n$,",").concat(nK.h),"L".concat(n$,",").concat(nK.h),"L".concat(n$,",").concat(nK.h-n$),"L0,".concat(nK.h-n$),"L0,".concat(n$),"L".concat(n$,",").concat(n$),"Z"].join(" "),nQ.setAttribute("d",nJ),uq=nQ,n0=t.extend,uQ={top:n1=PK("adj",t,.25*Math.min(n0.w,n0.h)),bottom:n1,left:0,right:0,w:n0.w,h:n0.h-2*n1};break;case"plaque":n2=t.extend,n5=PU("path"),n3=PK("adj",t,.16667*Math.min(n2.w,n2.h)),n4=["M".concat(n3,",0"),"L".concat(n2.w-n3,",0"),"Q".concat(n2.w-n3,",").concat(n3," ").concat(n2.w,",").concat(n3),"L".concat(n2.w,",").concat(n2.h-n3),"Q".concat(n2.w-n3,",").concat(n2.h-n3," ").concat(n2.w-n3,",").concat(n2.h),"L".concat(n3,",").concat(n2.h),"Q".concat(n3,",").concat(n2.h-n3," 0,").concat(n2.h-n3),"L0,".concat(n3),"Q".concat(n3,",").concat(n3," ").concat(n3,",0"),"Z"].join(" "),n5.setAttribute("d",n4),uq=n5,n6=t.extend,uQ={top:.72*(n8=PK("adj",t,.16667*Math.min(n6.w,n6.h))),bottom:.72*n8,left:.72*n8,right:.72*n8,w:n6.w-1.44*n8,h:n6.w-1.44*n8};break;case"can":n9=t.extend,n7=t.background,it=PU("g"),ie=PU("path"),ii=PK("adj",t,.25*Math.min(n9.w,n9.h)),ir=["M0,".concat(ii/2),"L0,".concat(n9.h-ii/2),"A".concat(n9.w/2,",").concat(ii/2," 0 0 0 ").concat(n9.w,",").concat(n9.h-ii/2),"L".concat(n9.w,",").concat(ii/2),"A".concat(n9.w/2,",").concat(ii/2," 0 0 1 0,").concat(ii/2),"Z"].join(" "),ie.setAttribute("d",ir),io=PU("ellipse"),ia=n9.w/2,is=n9.w/2,io.setAttribute("cx",ia+"px"),io.setAttribute("cy",ii/2+"px"),io.setAttribute("rx",is+"px"),io.setAttribute("ry",ii/2+"px"),"solidFill"===(null==n7?void 0:n7.type)&&io.setAttribute("fill",PT(n7,{light:.5})||"transparent"),it.appendChild(ie),it.appendChild(io),uq=it,il=t.extend,uQ={top:iu=PK("adj",t,.25*Math.min(il.w,il.h)),bottom:0,left:0,right:0,w:il.w,h:il.h-iu};break;case"cube":ic=t.extend,ih=t.background,ip=PK("adj",t,.25*Math.min(ic.w,ic.h)),id=PU("g"),ig=PU("path"),iy=["M0,".concat(ip),"L".concat(ic.w-ip,",").concat(ip),"L".concat(ic.w-ip,",").concat(ic.h),"L0,".concat(ic.h),"Z"].join(" "),ig.setAttribute("d",iy),iv=PU("path"),im=["M0,".concat(ip),"L".concat(ip,",0"),"L".concat(ic.w,",0"),"L".concat(ic.w-ip,",").concat(ip),"Z"].join(" "),iv.setAttribute("d",im),"solidFill"===(null==ih?void 0:ih.type)&&iv.setAttribute("fill",PT(ih,{light:.8})||"transparent"),ix=PU("path"),i_=["M".concat(ic.w,",0"),"L".concat(ic.w-ip,",").concat(ip),"L".concat(ic.w-ip,",").concat(ic.h),"L".concat(ic.w,",").concat(ic.h-ip),"Z"].join(" "),ix.setAttribute("d",i_),"solidFill"===(null==ih?void 0:ih.type)&&ix.setAttribute("fill",PT(ih,{dark:.6})||"transparent"),id.appendChild(ig),id.appendChild(iv),id.appendChild(ix),uq=id,ib=t.extend,uQ={top:iw=PK("adj",t,.25*Math.min(ib.w,ib.h)),bottom:0,left:0,right:iw,w:ib.w-iw,h:ib.h-iw};break;case"bevel":iS=t.extend,iM=t.background,iI=PK("adj",t,.125*Math.min(iS.w,iS.h)),iT=PU("g"),iC=PU("path"),iA=["M".concat(iI,",").concat(iI),"L".concat(iS.w-iI,",").concat(iI),"L".concat(iS.w-iI,",").concat(iS.h-iI),"L".concat(iI,",").concat(iS.h-iI),"Z"].join(" "),iC.setAttribute("d",iA),iL=PU("path"),iD=["M0,0","L".concat(iI,",").concat(iI),"L".concat(iS.w-iI,",").concat(iI),"L".concat(iS.w,",0"),"Z"].join(" "),iL.setAttribute("d",iD),"solidFill"===(null==iM?void 0:iM.type)&&iL.setAttribute("fill",PT(iM,{light:.8})||"transparent"),ik=PU("path"),iP=["M".concat(iS.w,",0"),"L".concat(iS.w-iI,",").concat(iI),"L".concat(iS.w-iI,",").concat(iS.h-iI),"L".concat(iS.w,",").concat(iS.h),"Z"].join(" "),ik.setAttribute("d",iP),"solidFill"===(null==iM?void 0:iM.type)&&ik.setAttribute("fill",PT(iM,{dark:.6})||"transparent"),iO=PU("path"),iR=["M".concat(iS.w,",").concat(iS.h),"L".concat(iS.w-iI,",").concat(iS.h-iI),"L".concat(iI,",").concat(iS.h-iI),"L0,".concat(iS.h),"Z"].join(" "),iO.setAttribute("d",iR),"solidFill"===(null==iM?void 0:iM.type)&&iO.setAttribute("fill",PT(iM,{dark:.625})||"transparent"),iN=PU("path"),iE=["M0,".concat(iS.h),"L".concat(iI,",").concat(iS.h-iI),"L".concat(iI,",").concat(iI),"L0,0 Z"].join(" "),iN.setAttribute("d",iE),"solidFill"===(null==iM?void 0:iM.type)&&iN.setAttribute("fill",PT(iM,{light:.6})||"transparent"),iT.appendChild(iC),iT.appendChild(iL),iT.appendChild(ik),iT.appendChild(iO),iT.appendChild(iN),uq=iT,iz=t.extend,uQ={top:iB=PK("adj",t,.125*Math.min(iz.w,iz.h)),bottom:iB,left:iB,right:iB,w:iz.w-2*iB,h:iz.h-2*iB};break;case"donut":iV=t.extend,iF=PK("adj",t,.25*Math.min(iV.w,iV.h)),iG=PU("path"),ij=["M0,".concat(iV.h/2),"A".concat(iV.w/2,",").concat(iV.h/2," 0 1,1 0,").concat(iV.h/2+1),"Z","M".concat(iV.w-iF,",").concat(iV.h/2),"A".concat(iV.w/2-iF,",").concat(iV.h/2-iF," 0 1,0 ").concat(iV.w-iF,",").concat(iV.h/2+1),"Z"].join(" "),iG.setAttribute("d",ij),uq=iG,uQ=P9(t);break;case"noSmoking":iW=t.extend,iH=PK("adj",t,.25*Math.min(iW.w,iW.h)),iZ=PU("path"),iX=iH/2/Math.sin(Math.atan(iW.h/iW.w)),iU=iW.w/2,iY=iW.h/2,iq=-1*iW.h/iW.w,iK=iW.h*iX/iW.w,iQ=iW.w/2-iH,i$=iW.h/2-iH,i2=((iJ=-2*iQ*iQ*iq*iK)-(i0=Math.sqrt(Math.pow(2*iQ*iQ*iq*iK,2)-4*(i$*i$+iQ*iQ*iq*iq)*iQ*iQ*(iK*iK-i$*i$))))/(i1=2*(i$*i$+iQ*iQ*iq*iq)),i5=(iJ+i0)/i1,i9=((i4=-2*iQ*iQ*iq*(i3=-iW.h*iX/iW.w))-(i6=Math.sqrt(Math.pow(2*iQ*iQ*iq*i3,2)-4*(i$*i$+iQ*iQ*iq*iq)*iQ*iQ*(i3*i3-i$*i$))))/(i8=2*(i$*i$+iQ*iQ*iq*iq)),i7=(i4+i6)/i8,rt=["M0,".concat(iW.h/2),"A".concat(iW.w/2,",").concat(iW.h/2," 0 1,1 0,").concat(iW.h/2+1),"Z","M".concat(iU+i5,",").concat(iY-(iq*i5+iK)),"A".concat(iQ,",").concat(i$," 0 0 0 ").concat(iU+i2,",").concat(iY-(iq*i2+iK)),"Z","M".concat(iU+i9,",").concat(iY-(iq*i9+i3)),"A".concat(iQ,",").concat(i$," 0 0 0 ").concat(iU+i7,",").concat(iY-(iq*i7+i3)),"Z"].join(" "),iZ.setAttribute("d",rt),uq=iZ,uQ=P9(t);break;case"rightArrow":re=t.extend,rn=PK("adj1",t,.5*Math.min(re.w,re.h)),ri=PK("adj2",t,.5*Math.min(re.w,re.h)),rr=PU("path"),ro=["M0,".concat(re.h/2-rn/2),"L".concat(re.w-ri,",").concat(re.h/2-rn/2),"L".concat(re.w-ri,",0"),"L".concat(re.w,",").concat(re.h/2),"L".concat(re.w-ri,",").concat(re.h),"L".concat(re.w-ri,",").concat(re.h/2+rn/2),"L0,".concat(re.h/2+rn/2),"Z"].join(" "),rr.setAttribute("d",ro),uq=rr,ra=t.extend,rl=(rs=PK("adj1",t,.5*Math.min(ra.w,ra.h)))*PK("adj2",t,.5*Math.min(ra.w,ra.h))/ra.h,uQ={top:ra.h/2-rs/2,bottom:ra.h/2-rs/2,left:0,right:rl,w:ra.w-rl,h:rs};break;case"leftArrow":ru=t.extend,rc=PK("adj1",t,.5*Math.min(ru.w,ru.h)),rh=PK("adj2",t,.5*Math.min(ru.w,ru.h)),rp=PU("path"),rd=["M0,".concat(ru.h/2),"L".concat(rh,",0"),"L".concat(rh,",").concat(ru.h/2-rc/2),"L".concat(ru.w,",").concat(ru.h/2-rc/2),"L".concat(ru.w,",").concat(ru.h/2+rc/2),"L".concat(rh,",").concat(ru.h/2+rc/2),"L".concat(rh,",").concat(ru.h),"Z"].join(" "),rp.setAttribute("d",rd),uq=rp,rf=t.extend,ry=(rg=PK("adj1",t,.5*Math.min(rf.w,rf.h)))*PK("adj2",t,.5*Math.min(rf.w,rf.h))/rf.h,uQ={top:rf.h/2-rg/2,bottom:rf.h/2-rg/2,left:ry,right:0,w:rf.w-ry,h:rg};break;case"upArrow":rv=t.extend,rm=PK("adj1",t,.5*Math.min(rv.w,rv.h)),rx=PK("adj2",t,.5*Math.min(rv.w,rv.h)),r_=PU("path"),rb=["M".concat(rv.w/2,",0"),"L".concat(rv.w,",").concat(rx),"L".concat(rv.w/2+rm/2,",").concat(rx),"L".concat(rv.w/2+rm/2,",").concat(rv.h),"L".concat(rv.w/2-rm/2,",").concat(rv.h),"L".concat(rv.w/2-rm/2,",").concat(rx),"L0,".concat(rx),"Z"].join(" "),r_.setAttribute("d",rb),uq=r_,rw=t.extend,uQ={top:rM=(rS=PK("adj1",t,.5*Math.min(rw.w,rw.h)))*PK("adj2",t,.5*Math.min(rw.w,rw.h))/rw.w,bottom:0,left:rw.w/2-rS/2,right:rw.w/2-rS/2,w:rS,h:rw.h-rM};break;case"downArrow":rI=t.extend,rT=PK("adj1",t,.5*Math.min(rI.w,rI.h)),rC=PK("adj2",t,.5*Math.min(rI.w,rI.h)),rA=PU("path"),rL=["M".concat(rI.w/2,",").concat(rI.h),"L0,".concat(rI.h-rC),"L".concat(rI.w/2-rT/2,",").concat(rI.h-rC),"L".concat(rI.w/2-rT/2,",0"),"L".concat(rI.w/2+rT/2,",0"),"L".concat(rI.w/2+rT/2,",").concat(rI.h-rC),"L".concat(rI.w,",").concat(rI.h-rC),"Z"].join(" "),rA.setAttribute("d",rL),uq=rA,rD=t.extend,uQ={top:0,bottom:rP=(rk=PK("adj1",t,.5*Math.min(rD.w,rD.h)))*PK("adj2",t,.5*Math.min(rD.w,rD.h))/rD.w,left:rD.w/2-rk/2,right:rD.w/2-rk/2,w:rk,h:rD.h-rP};break;case"leftRightArrow":rO=t.extend,rR=PK("adj1",t,.5*Math.min(rO.w,rO.h)),rN=PK("adj2",t,.5*Math.min(rO.w,rO.h)),rE=PU("path"),rz=["M0,".concat(rO.h/2),"L".concat(rN,",0"),"L".concat(rN,",").concat(rO.h/2-rR/2),"L".concat(rO.w-rN,",").concat(rO.h/2-rR/2),"L".concat(rO.w-rN,",0"),"L".concat(rO.w,",").concat(rO.h/2),"L".concat(rO.w-rN,",").concat(rO.h),"L".concat(rO.w-rN,",").concat(rO.h/2+rR/2),"L".concat(rN,",").concat(rO.h/2+rR/2),"L".concat(rN,",").concat(rO.h),"Z"].join(" "),rE.setAttribute("d",rz),uq=rE,rB=t.extend,rF=(rV=PK("adj1",t,.5*Math.min(rB.w,rB.h)))*PK("adj2",t,.5*Math.min(rB.w,rB.h))/rB.h,uQ={top:rB.h/2-rV/2,bottom:rB.h/2-rV/2,left:rF,right:rF,w:rB.w-2*rF,h:rV};break;case"upDownArrow":rG=t.extend,rj=PK("adj1",t,.5*Math.min(rG.w,rG.h)),rW=PK("adj2",t,.5*Math.min(rG.w,rG.h)),rH=PU("path"),rZ=["M".concat(rG.w/2,",").concat(rG.h),"L0,".concat(rG.h-rW),"L".concat(rG.w/2-rj/2,",").concat(rG.h-rW),"L".concat(rG.w/2-rj/2,",").concat(rW),"L0,".concat(rW),"L".concat(rG.w/2,",0"),"L".concat(rG.w,",").concat(rW),"L".concat(rG.w/2+rj/2,",").concat(rW),"L".concat(rG.w/2+rj/2,",").concat(rG.h-rW),"L".concat(rG.w,",").concat(rG.h-rW),"Z"].join(" "),rH.setAttribute("d",rZ),uq=rH,rX=t.extend,uQ={top:rY=(rU=PK("adj1",t,.5*Math.min(rX.w,rX.h)))*PK("adj2",t,.5*Math.min(rX.w,rX.h))/rX.w,bottom:rY,left:rX.w/2-rU/2,right:rX.w/2-rU/2,w:rU,h:rX.h-2*rY};break;case"quadArrow":rq=t.extend,rK=PK("adj1",t,.225*Math.min(rq.w,rq.h)),rQ=PK("adj2",t,.225*Math.min(rq.w,rq.h)),r$=PK("adj3",t,.225*Math.min(rq.w,rq.h)),rJ=PU("path"),r0=["M0,".concat(rq.h/2),"L".concat(r$,",").concat(rq.h/2-rQ),"L".concat(r$,",").concat(rq.h/2-rK/2),"L".concat(rq.w/2-rK/2,",").concat(rq.h/2-rK/2),"L".concat(rq.w/2-rK/2,",").concat(r$),"L".concat(rq.w/2-rQ,",").concat(r$),"L".concat(rq.w/2,",0"),"L".concat(rq.w/2+rQ,",").concat(r$),"L".concat(rq.w/2+rK/2,",").concat(r$),"L".concat(rq.w/2+rK/2,",").concat(rq.h/2-rK/2),"L".concat(rq.w-r$,",").concat(rq.h/2-rK/2),"L".concat(rq.w-r$,",").concat(rq.h/2-rQ),"L".concat(rq.w,",").concat(rq.h/2),"L".concat(rq.w-r$,",").concat(rq.h/2+rQ),"L".concat(rq.w-r$,",").concat(rq.h/2+rK/2),"L".concat(rq.w/2+rK/2,",").concat(rq.h/2+rK/2),"L".concat(rq.w/2+rK/2,",").concat(rq.h-r$),"L".concat(rq.w/2+rQ,",").concat(rq.h-r$),"L".concat(rq.w/2,",").concat(rq.h),"L".concat(rq.w/2-rQ,",").concat(rq.h-r$),"L".concat(rq.w/2-rK/2,",").concat(rq.h-r$),"L".concat(rq.w/2-rK/2,",").concat(rq.h/2+rK/2),"L".concat(r$,",").concat(rq.h/2+rK/2),"L".concat(r$,",").concat(rq.h/2+rQ),"Z"].join(" "),rJ.setAttribute("d",r0),uq=rJ,r1=t.extend,r2=PK("adj1",t,.225*Math.min(r1.w,r1.h)),r5=PK("adj2",t,.225*Math.min(r1.w,r1.h)),r3=PK("adj3",t,.225*Math.min(r1.w,r1.h)),r4=0===r5?0:r2*r3/r5/2,uQ={top:r1.h/2-r2/2,bottom:r1.h/2-r2/2,left:r4,right:r4,w:r1.w-2*r4,h:r2};break;case"leftRightUpArrow":r6=t.extend,r8=PK("adj1",t,.225*Math.min(r6.w,r6.h)),r9=PK("adj2",t,.225*Math.min(r6.w,r6.h)),r7=PK("adj3",t,.225*Math.min(r6.w,r6.h)),ot=PU("path"),r8>2*r9&&(r8=2*r9),oe=["M0,".concat(r6.h-r9),"L".concat(r7,",").concat(r6.h-2*r9),"L".concat(r7,",").concat(r6.h-r9-r8/2),"L".concat(r6.w/2-r8/2,",").concat(r6.h-r9-r8/2),"L".concat(r6.w/2-r8/2,",").concat(r7),"L".concat(r6.w/2-r9,",").concat(r7),"L".concat(r6.w/2,",0"),"L".concat(r6.w/2+r9,",").concat(r7),"L".concat(r6.w/2+r8/2,",").concat(r7),"L".concat(r6.w/2+r8/2,",").concat(r6.h-r9-r8/2),"L".concat(r6.w-r7,",").concat(r6.h-r9-r8/2),"L".concat(r6.w-r7,",").concat(r6.h-2*r9),"L".concat(r6.w,",").concat(r6.h-r9),"L".concat(r6.w-r7,",").concat(r6.h),"L".concat(r6.w-r7,",").concat(r6.h-r9+r8/2),"L".concat(r7,",").concat(r6.h-r9+r8/2),"L".concat(r7,",").concat(r6.h),"Z"].join(" "),ot.setAttribute("d",oe),uq=ot,on=t.extend,oi=PK("adj1",t,.225*Math.min(on.w,on.h)),or=PK("adj2",t,.225*Math.min(on.w,on.h)),oo=PK("adj3",t,.225*Math.min(on.w,on.h)),oa=0===or?0:oi*oo/or/2,uQ={top:on.h-or-oi/2,bottom:or-oi/2,left:oa,right:oa,w:on.w-2*oa,h:oi};break;case"bentArrow":os=t.extend,ol=PK("adj1",t,.25*Math.min(os.w,os.h)),ou=PK("adj2",t,.25*Math.min(os.w,os.h)),oc=PK("adj3",t,.25*Math.min(os.w,os.h)),oh=PK("adj4",t,.4375*Math.min(os.w,os.h)),op=PU("path"),ol>2*ou&&(ol=2*ou),(od=oh-ol)<0&&(od=0),of=["M0,".concat(os.h),"L0,".concat(ou-ol/2+oh),"A".concat(oh," ").concat(oh," 0 0 1 ").concat(oh," ").concat(ou-ol/2),"L".concat(os.w-oc,",").concat(ou-ol/2),"L".concat(os.w-oc,",0"),"L".concat(os.w,",").concat(ou),"L".concat(os.w-oc,",").concat(2*ou),"L".concat(os.w-oc,",").concat(ou+ol/2),"L".concat(ol+od,",").concat(ou+ol/2),"A".concat(od," ").concat(od," 0 0 0 ").concat(ol," ").concat(ou+ol/2+od),"L".concat(ol,",").concat(os.h),"Z"].join(" "),op.setAttribute("d",of),uq=op;break;case"uturnArrow":og=t.extend,oy=PK("adj1",t,.25*Math.min(og.w,og.h)),ov=PK("adj2",t,.25*Math.min(og.w,og.h)),om=PK("adj3",t,.25*Math.min(og.w,og.h)),ox=PK("adj4",t,.4375*Math.min(og.w,og.h)),o_=PK("adj5",t,.75*Math.min(og.w,og.h)),ob=PU("path"),oy>2*ov&&(oy=2*ov),o_<om&&(o_=om+oy),ox>o_-om&&(ox=o_-om),(ow=ox-oy)>o_-om-oy&&(ow=o_-om-oy),ow<0&&(ow=0),oS=ov-oy/2,oM=["M0,".concat(og.h),"L0,".concat(ox),"A".concat(ox," ").concat(ox," 0 0 1 ").concat(ox," 0"),"L".concat(og.w-ox-oS,",0"),"A".concat(ox," ").concat(ox," 0 0 1 ").concat(og.w-oS," ").concat(ox),"L".concat(og.w-oS,",").concat(o_-om),"L".concat(og.w,",").concat(o_-om),"L".concat(og.w-ov,",").concat(o_),"L".concat(og.w-2*ov,",").concat(o_-om),"L".concat(og.w-ov-oy/2,",").concat(o_-om),"L".concat(og.w-ov-oy/2,",").concat(oy+ow),"A".concat(ow," ").concat(ow," 0 0 0 ").concat(og.w-ow-ov-oy/2," ").concat(oy),"L".concat(oy+ow,",").concat(oy),"A".concat(ow," ").concat(ow," 0 0 0 ").concat(oy," ").concat(oy+ow),"L".concat(oy,",").concat(og.h),"Z"].join(" "),ob.setAttribute("d",oM),uq=ob;break;case"leftUpArrow":oI=t.extend,oT=PK("adj1",t,.25*Math.min(oI.w,oI.h)),oC=PK("adj2",t,.25*Math.min(oI.w,oI.h)),oA=PK("adj3",t,.25*Math.min(oI.w,oI.h)),oT>2*oC&&(oT=2*oC),oA>(oL=Math.min(oI.w,oI.h)-2*oC)&&(oA=oL),oA<0&&(oA=0),oD=oC-oT/2,ok=PU("path"),oP=["M0,".concat(oI.h-oC),"L".concat(oA,",").concat(oI.h-2*oC),"L".concat(oA,",").concat(oI.h-oC-oT/2),"L".concat(oI.w-oC-oT/2,",").concat(oI.h-oC-oT/2),"L".concat(oI.w-oC-oT/2,",").concat(oA),"L".concat(oI.w-2*oC,",").concat(oA),"L".concat(oI.w-oC,",0"),"L".concat(oI.w,",").concat(oA),"L".concat(oI.w-oD,",").concat(oA),"L".concat(oI.w-oD,",").concat(oI.h-oD),"L".concat(oA,",").concat(oI.h-oD),"L".concat(oA,",").concat(oI.h),"Z"].join(" "),ok.setAttribute("d",oP),uq=ok,oO=t.extend,oR=PK("adj1",t,.25*Math.min(oO.w,oO.h)),oN=PK("adj2",t,.25*Math.min(oO.w,oO.h)),oE=PK("adj3",t,.25*Math.min(oO.w,oO.h)),oR>2*oN&&(oR=2*oN),oE>(oz=Math.min(oO.w,oO.h)-2*oN)&&(oE=oz),oE<0&&(oE=0),oB=0===oN?0:oR*oE/oN/2,uQ={top:oO.h-oN-oR/2,bottom:oN-oR/2,left:oB,right:oN,w:oO.w-oB-oN,h:oR};break;case"bentUpArrow":oV=t.extend,oF=PK("adj1",t,.25*Math.min(oV.w,oV.h)),oG=PK("adj2",t,.25*Math.min(oV.w,oV.h)),oj=PK("adj3",t,.25*Math.min(oV.w,oV.h)),oF>2*oG&&(oF=2*oG),oj>(oW=Math.min(oV.w,oV.h)-2*oG)&&(oj=oW),oj<0&&(oj=0),oH=oG-oF/2,oZ=PU("path"),oX=["M0,".concat(oV.h),"L0,".concat(oV.h-oF),"L".concat(oV.w-oG-oF/2,",").concat(oV.h-oF),"L".concat(oV.w-oG-oF/2,",").concat(oj),"L".concat(oV.w-2*oG,",").concat(oj),"L".concat(oV.w-oG,",0"),"L".concat(oV.w,",").concat(oj),"L".concat(oV.w-oH,",").concat(oj),"L".concat(oV.w-oH,",").concat(oV.h),"Z"].join(" "),oZ.setAttribute("d",oX),uq=oZ,oU=t.extend,oY=PK("adj1",t,.25*Math.min(oU.w,oU.h)),uQ={top:oU.h-oY,bottom:0,left:0,right:0,w:oU.w,h:oY};break;case"curvedRightArrow":oq=t.extend,oK=t.background,oQ=PK("adj1",t,.25*Math.min(oq.w,oq.h)),o$=PK("adj2",t,.5*Math.min(oq.w,oq.h)),oJ=PK("adj3",t,.25*Math.min(oq.w,oq.h)),oQ>o$&&(oQ=o$),o0=o$/2-oQ/2,o1=(oq.h-o$/2-oQ/2)/2,o2=(oq.h-o0-oQ)/2,o5=PU("g"),o3=PU("path"),o4=["M".concat(oq.w,",0"),"A ".concat(oq.w," ").concat(o1," 0 0 0 ").concat(0," ").concat(o1),"L0,".concat(o2+oQ),"A ".concat(oq.w," ").concat(o2," 0 0 1 ").concat(oq.w," ").concat(oQ),"Z"].join(" "),o3.setAttribute("d",o4),"solidFill"===(null==oK?void 0:oK.type)&&o3.setAttribute("fill",PT(oK,{dark:.6})||"transparent"),o6=PU("path"),o8=["M0,".concat(o1),"A ".concat(oq.w," ").concat(o1," 0 0 0 ").concat(oq.w-oJ," ").concat(oq.h-o$/2-oQ/2),"L".concat(oq.w-oJ,",").concat(oq.h-o$),"L".concat(oq.w,",").concat(oq.h-o$/2),"L".concat(oq.w-oJ,",").concat(oq.h),"L".concat(oq.w-oJ,",").concat(oq.h-o0),"A ".concat(oq.w," ").concat(o2," 0 0 1 0 ").concat(oQ+o2),"Z"].join(" "),o6.setAttribute("d",o8),o5.appendChild(o3),o5.appendChild(o6),uq=o5;break;case"curvedLeftArrow":o9=t.extend,o7=t.background,at=PK("adj1",t,.25*Math.min(o9.w,o9.h)),ae=PK("adj2",t,.5*Math.min(o9.w,o9.h)),an=PK("adj3",t,.25*Math.min(o9.w,o9.h)),at>ae&&(at=ae),ai=ae/2-at/2,ar=(o9.h-ae/2-at/2)/2,ao=(o9.h-ai-at)/2,aa=PU("g"),as=PU("path"),al=["M0,".concat(o9.h-ae/2),"L".concat(an,",").concat(o9.h-ae),"L".concat(an,",").concat(o9.h-ae/2-at/2),"A".concat(o9.w," ").concat(ar," 0 0 0 ").concat(o9.w," ").concat(ar),"L".concat(o9.w,",").concat(ao+at),"A ".concat(o9.w," ").concat(ao," 0 0 1 ").concat(an," ").concat(o9.h-ai),"L".concat(an,",").concat(o9.h),"Z"].join(" "),as.setAttribute("d",al),au=PU("path"),ac=["M0,0","A ".concat(o9.w," ").concat(ar," 0 0 1 ").concat(o9.w," ").concat(ar),"L".concat(o9.w,",").concat(ao+at),"A ".concat(o9.w," ").concat(ao," 0 0 0 ").concat(0," ").concat(at),"Z"].join(" "),au.setAttribute("d",ac),"solidFill"===(null==o7?void 0:o7.type)&&au.setAttribute("fill",PT(o7,{dark:.6})||"transparent"),aa.appendChild(as),aa.appendChild(au),uq=aa;break;case"curvedUpArrow":ah=t.extend,ap=t.background,ad=PK("adj1",t,.25*Math.min(ah.w,ah.h)),af=PK("adj2",t,.5*Math.min(ah.w,ah.h)),ag=PK("adj3",t,.25*Math.min(ah.w,ah.h)),ad>af&&(ad=af),ay=af/2-ad/2,av=(ah.w-af/2-ad/2)/2,am=(ah.w-ay-ad)/2,ax=PU("g"),a_=PU("path"),ab=["M".concat(ah.w-af/2,",").concat(0),"L".concat(ah.w-af,",").concat(ag),"L".concat(ah.w-af/2-ad/2,",").concat(ag),"A".concat(av," ").concat(ah.h," 0 0 1 ").concat(av," ").concat(ah.h),"L".concat(av+ad,",").concat(ah.h),"A".concat(am," ").concat(ah.h," 0 0 0 ").concat(ah.w-ay," ").concat(ag),"L".concat(ah.w,",").concat(ag),"Z"].join(" "),a_.setAttribute("d",ab),aw=PU("path"),aS=["M".concat(ad,",0"),"L".concat(0,",").concat(0),"A ".concat(av," ").concat(ah.h," 0 0 0 ").concat(av," ").concat(ah.h),"L".concat(av+ad,",").concat(ah.h),"A ".concat(am," ").concat(ah.h," 0 0 1 ").concat(ad," ").concat(0),"Z"].join(" "),aw.setAttribute("d",aS),"solidFill"===(null==ap?void 0:ap.type)&&aw.setAttribute("fill",PT(ap,{dark:.6})||"transparent"),ax.appendChild(a_),ax.appendChild(aw),uq=ax;break;case"curvedDownArrow":aM=t.extend,aI=t.background,aT=PK("adj1",t,.25*Math.min(aM.w,aM.h)),aC=PK("adj2",t,.5*Math.min(aM.w,aM.h)),aA=PK("adj3",t,.25*Math.min(aM.w,aM.h)),aT>aC&&(aT=aC),aL=aC/2-aT/2,aD=(aM.w-aC/2-aT/2)/2,ak=(aM.w-aL-aT)/2,aP=PU("g"),aO=PU("path"),aR=["M".concat(0,",").concat(aM.h),"L".concat(aT,",").concat(aM.h),"A".concat(ak," ").concat(aM.h," 0 0 1 ").concat(ak+aT," ").concat(0),"L".concat(aD,",").concat(0),"A".concat(aD," ").concat(aM.h," 0 0 0 ").concat(0," ").concat(aM.h),"Z"].join(" "),aO.setAttribute("d",aR),"solidFill"===(null==aI?void 0:aI.type)&&aO.setAttribute("fill",PT(aI,{dark:.6})||"transparent"),aN=PU("path"),aE=["M".concat(aM.w-aC/2,",").concat(aM.h),"L".concat(aM.w-aC,",").concat(aM.h-aA),"L".concat(aM.w-aC/2-aT/2,",").concat(aM.h-aA),"A ".concat(aD," ").concat(aM.h," 0 0 0 ").concat(aD," ").concat(0),"L".concat(aD+aT,",").concat(0),"A ".concat(ak," ").concat(aM.h," 0 0 1 ").concat(aM.w-aL," ").concat(aM.h-aA),"L".concat(aM.w,",").concat(aM.h-aA),"Z"].join(" "),aN.setAttribute("d",aE),aP.appendChild(aO),aP.appendChild(aN),uq=aP;break;case"stripedRightArrow":az=t.extend,aB=PU("g"),aV=Math.min(az.w,az.h),aF=Pq("adj1",t,.5)*az.h,aG=Pq("adj2",t,.5)*aV,aj=aV/8,aW=aV/16,aH=aV/32,aZ=5*aV/32,aX=az.h/2-aF/2,aU=az.h/2+aF/2,(aY=PU("path")).setAttribute("d",["M".concat(0,",").concat(aX),"L".concat(aH,",").concat(aX),"L".concat(aH,",").concat(aU),"L".concat(0,",").concat(aU),"Z"].join(" ")),(aq=PU("path")).setAttribute("d",["M".concat(aW,",").concat(aX),"L".concat(aj,",").concat(aX),"L".concat(aj,",").concat(aU),"L".concat(aW,",").concat(aU),"Z"].join(" ")),aK=PU("path"),aQ=["M".concat(aZ,",").concat(aX),"L".concat(az.w-aG,",").concat(aX),"L".concat(az.w-aG,",").concat(0),"L".concat(az.w,",").concat(az.h/2),"L".concat(az.w-aG,",").concat(az.h),"L".concat(az.w-aG,",").concat(aU),"L".concat(aZ,",").concat(aU),"Z"].join(" "),aK.setAttribute("d",aQ),aB.appendChild(aK),aB.appendChild(aY),aB.appendChild(aq),uq=aB,aJ=Math.min((a$=t.extend).w,a$.h),a1=(a0=Pq("adj1",t,.5)*a$.h)*(Pq("adj2",t,.5)*aJ)/a$.h,uQ={top:a$.h/2-a0/2,bottom:a$.h/2-a0/2,left:0,right:a1,w:a$.w-a1,h:a0};break;case"notchedRightArrow":a5=Math.min((a2=t.extend).w,a2.h),a6=(a3=Pq("adj1",t,.5)*a2.h)*(a4=Pq("adj2",t,.5)*a5)/a2.h,a8=a2.h/2-a3/2,a9=a2.h/2+a3/2,a7=PU("path"),st=["M".concat(0,",").concat(a8),"L".concat(a2.w-a4,",").concat(a8),"L".concat(a2.w-a4,",").concat(0),"L".concat(a2.w,",").concat(a2.h/2),"L".concat(a2.w-a4,",").concat(a2.h),"L".concat(a2.w-a4,",").concat(a9),"L".concat(0,",").concat(a9),"L".concat(a6,",").concat(a2.h/2),"Z"].join(" "),a7.setAttribute("d",st),uq=a7,sn=Math.min((se=t.extend).w,se.h),so=(si=Pq("adj1",t,.5)*se.h)*(sr=Pq("adj2",t,.5)*sn)/se.h,sa=si*sr/se.h,uQ={top:se.h/2-si/2,bottom:se.h/2-si/2,left:so,right:sa,w:se.w-so-sa,h:si};break;case"homePlate":sl=Math.min((ss=t.extend).w,ss.h),su=Pq("adj",t,.5)*sl,sc=PU("path"),sh=["M".concat(0,",").concat(0),"L".concat(ss.w-su,",").concat(0),"L".concat(ss.w,",").concat(ss.h/2),"L".concat(ss.w-su,",").concat(ss.h),"L".concat(0,",").concat(ss.h),"Z"].join(" "),sc.setAttribute("d",sh),uq=sc,sd=Math.min((sp=t.extend).w,sp.h),uQ={top:0,bottom:0,left:0,right:(sf=Pq("adj",t,.5)*sd)/2,w:sp.w-sf/2,h:sp.h};break;case"chevron":sy=Math.min((sg=t.extend).w,sg.h),sv=Pq("adj",t,.5)*sy,sm=PU("path"),sx=["M".concat(0,",").concat(0),"L".concat(sg.w-sv,",").concat(0),"L".concat(sg.w,",").concat(sg.h/2),"L".concat(sg.w-sv,",").concat(sg.h),"L".concat(0,",").concat(sg.h),"L".concat(sv,",").concat(sg.h/2),"Z"].join(" "),sm.setAttribute("d",sx),uq=sm,sb=Math.min((s_=t.extend).w,s_.h),uQ={top:0,bottom:0,left:sw=Pq("adj",t,.5)*sb,right:sw,w:s_.w-2*sw,h:s_.h};break;case"blockArc":sM=Math.min((sS=t.extend).w,sS.h),sI=PU("path"),sT=Pq("adj1",t,180),sC=Pq("adj2",t,0),sA=PK("adj3",t,.25*sM),sL=sS.w/2,sD=sS.h/2,sk=sS.w/2,sP=sS.h/2,sO=sS.w/2-sA,sR=sS.h/2-sA,sE=(sN=P6(sT,sL,sD,sk,sP))[0],sz=sN[1],sV=(sB=P6(sC,sL,sD,sk,sP))[0],sF=sB[1],sj=(sG=P6(sT,sL,sD,sO,sR))[0],sW=sG[1],sZ=(sH=P6(sC,sL,sD,sO,sR))[0],sX=sH[1],sU=P8(sT,sC),sY=["M".concat(sE,",").concat(sz),"A".concat(sk," ").concat(sP," 0 ").concat(sU," 1 ").concat(sV," ").concat(sF),"L".concat(sZ,",").concat(sX),"A".concat(sO," ").concat(sR," 0 ").concat(sU," 0 ").concat(sj," ").concat(sW),"Z"].join(" "),sI.setAttribute("d",sY),uq=sI,sK=Math.min((sq=t.extend).w,sq.h),sQ=Pq("adj1",t,180),s$=Pq("adj2",t,0),sJ=PK("adj3",t,.25*sK),s0=sq.w/2,s1=sq.h/2,s2=sq.w/2,s5=sq.h/2,s3=sq.w/2-sJ,s4=sq.h/2-sJ,s8=(s6=P6(sQ,s0,s1,s2,s5))[0],s9=s6[1],lt=(s7=P6(s$,s0,s1,s2,s5))[0],le=s7[1],(lr=[[s8,s9],[lt,le],[(ln=P6(sQ,s0,s1,s3,s4))[0],ln[1]],[(li=P6(s$,s0,s1,s3,s4))[0],li[1]]]).push(),sQ>s$&&lr.push([sq.w,sq.h/2]),(s$>180&&s$<=360&&sQ<180||sQ>s$&&s$>=0&&s$<180&&sQ<180)&&lr.push([0,sq.h/2]),(sQ<s$&&sQ<90&&s$>90||sQ>s$&&s$>90||sQ>s$&&sQ<90)&&lr.push([sq.w/2,sq.h]),(sQ<s$&&sQ<270&&s$>270||sQ>s$&&s$>270||sQ>s$&&sQ<270)&&lr.push([sq.w/2,0]),lo=1/0,la=1/0,ls=-1/0,ll=-1/0,lr.forEach(function(t){lo=Math.min(t[0],lo),la=Math.min(t[1],la),ls=Math.max(t[0],ls),ll=Math.max(t[1],ll)}),uQ={top:la,bottom:sq.h-ll,left:lo,right:sq.w-ls,w:ls-lo,h:ll-la};break;case"foldedCorner":lu=t.extend,lc=t.background,lh=PU("g"),lp=PU("path"),ld=PK("adj",t,.16667*Math.min(lu.w,lu.h)),lf=["M0,0","L".concat(lu.w,",0"),"L".concat(lu.w,",").concat(lu.h-ld),"L".concat(lu.w-ld,",").concat(lu.h),"L".concat(0,",").concat(lu.h),"Z"].join(" "),lp.setAttribute("d",lf),lg=ld*Math.cos(Math.PI/4)/Math.cos(Math.PI/6)*Math.cos(75/180*Math.PI),ly=PU("path"),lv=["M".concat(lu.w-ld+lg,", ").concat(lu.h-ld+lg),"L".concat(lu.w,",").concat(lu.h-ld),"L".concat(lu.w-ld,",").concat(lu.h),"Z"].join(" "),ly.setAttribute("d",lv),"solidFill"===(null==lc?void 0:lc.type)&&ly.setAttribute("fill",PT(lc,{dark:.6})||"transparent"),lh.appendChild(lp),lh.appendChild(ly),uq=lh,lm=t.extend,uQ={top:0,bottom:lx=PK("adj",t,.16667*Math.min(lm.w,lm.h)),left:0,right:0,w:lm.w,h:lm.h-lx};break;case"rightArrowCallout":lb=Math.min((l_=t.extend).w,l_.h),lw=Pq("adj1",t,.25)*lb,lS=Pq("adj2",t,.25)*lb,lM=Pq("adj3",t,.25)*lb,lI=Pq("adj4",t,.64977)*l_.w,lT=PU("path"),lC=["M".concat(0,",").concat(0),"L".concat(lI,",").concat(0),"L".concat(lI,",").concat(l_.h/2-lw/2),"L".concat(l_.w-lM,",").concat(l_.h/2-lw/2),"L".concat(l_.w-lM,",").concat(l_.h/2-lS),"L".concat(l_.w,",").concat(l_.h/2),"L".concat(l_.w-lM,",").concat(l_.h/2+lS),"L".concat(l_.w-lM,",").concat(l_.h/2+lw/2),"L".concat(lI,",").concat(l_.h/2+lw/2),"L".concat(lI,",").concat(l_.h),"L".concat(0,",").concat(l_.h),"Z"].join(" "),lT.setAttribute("d",lC),uq=lT,lA=t.extend,lL=Pq("adj4",t,.64977)*lA.w,uQ={top:0,bottom:0,left:0,right:lA.w-lL,w:lL,h:lA.h};break;case"leftArrowCallout":lk=Math.min((lD=t.extend).w,lD.h),lP=Pq("adj1",t,.25)*lk,lO=Pq("adj2",t,.25)*lk,lR=Pq("adj3",t,.25)*lk,lN=Pq("adj4",t,.64977)*lD.w,lE=PU("path"),lz=["M".concat(0,",").concat(lD.h/2),"L".concat(lR,",").concat(lD.h/2-lO),"L".concat(lR,",").concat(lD.h/2-lP/2),"L".concat(lD.w-lN,",").concat(lD.h/2-lP/2),"L".concat(lD.w-lN,",").concat(0),"L".concat(lD.w,",").concat(0),"L".concat(lD.w,",").concat(lD.h),"L".concat(lD.w-lN,",").concat(lD.h),"L".concat(lD.w-lN,",").concat(lD.h/2+lP/2),"L".concat(lR,",").concat(lD.h/2+lP/2),"L".concat(lR,",").concat(lD.h/2+lO),"Z"].join(" "),lE.setAttribute("d",lz),uq=lE,lB=t.extend,lV=Pq("adj4",t,.64977)*lB.w,uQ={top:0,bottom:0,left:lB.w-lV,right:0,w:lV,h:lB.h};break;case"upArrowCallout":lG=Math.min((lF=t.extend).w,lF.h),lj=Pq("adj1",t,.25)*lG,lW=Pq("adj2",t,.25)*lG,lH=Pq("adj3",t,.25)*lG,lZ=Pq("adj4",t,.64977)*lF.h,lX=PU("path"),lU=["M".concat(0,",").concat(lF.h-lZ),"L".concat(lF.w/2-lj/2,",").concat(lF.h-lZ),"L".concat(lF.w/2-lj/2,",").concat(lH),"L".concat(lF.w/2-lW,",").concat(lH),"L".concat(lF.w/2,",").concat(0),"L".concat(lF.w/2+lW,",").concat(lH),"L".concat(lF.w/2+lj/2,",").concat(lH),"L".concat(lF.w/2+lj/2,",").concat(lF.h-lZ),"L".concat(lF.w,",").concat(lF.h-lZ),"L".concat(lF.w,",").concat(lF.h),"L".concat(0,",").concat(lF.h),"Z"].join(" "),lX.setAttribute("d",lU),uq=lX,lY=t.extend,lq=Pq("adj4",t,.64977)*lY.h,uQ={top:lY.h-lq,bottom:0,left:0,right:0,w:lY.w,h:lq};break;case"downArrowCallout":lQ=Math.min((lK=t.extend).w,lK.h),l$=Pq("adj1",t,.25)*lQ,lJ=Pq("adj2",t,.25)*lQ,l0=Pq("adj3",t,.25)*lQ,l1=Pq("adj4",t,.64977)*lK.h,l2=PU("path"),l5=["M".concat(0,",").concat(0),"L".concat(lK.w,",").concat(0),"L".concat(lK.w,",").concat(l1),"L".concat(lK.w/2+l$/2,",").concat(l1),"L".concat(lK.w/2+l$/2,",").concat(lK.h-l0),"L".concat(lK.w/2+lJ,",").concat(lK.h-l0),"L".concat(lK.w/2,",").concat(lK.h),"L".concat(lK.w/2-lJ,",").concat(lK.h-l0),"L".concat(lK.w/2-l$/2,",").concat(lK.h-l0),"L".concat(lK.w/2-l$/2,",").concat(l1),"L".concat(0,",").concat(l1),"Z"].join(" "),l2.setAttribute("d",l5),uq=l2,l3=t.extend,l4=Pq("adj4",t,.64977)*l3.h,uQ={top:0,bottom:l3.h-l4,left:0,right:0,w:l3.w,h:l4};break;case"leftRightArrowCallout":l8=Math.min((l6=t.extend).w,l6.h),l9=Pq("adj1",t,.25)*l8,l7=Pq("adj2",t,.25)*l8,ut=Pq("adj3",t,.25)*l8,ue=Pq("adj4",t,.48123)*l6.w,un=PU("path"),ui=["M".concat(0,",").concat(l6.h/2),"L".concat(ut,",").concat(l6.h/2-l7),"L".concat(ut,",").concat(l6.h/2-l9/2),"L".concat(l6.w/2-ue/2,",").concat(l6.h/2-l9/2),"L".concat(l6.w/2-ue/2,",").concat(0),"L".concat(l6.w/2+ue/2,",").concat(0),"L".concat(l6.w/2+ue/2,",").concat(l6.h/2-l9/2),"L".concat(l6.w-ut,",").concat(l6.h/2-l9/2),"L".concat(l6.w-ut,",").concat(l6.h/2-l7),"L".concat(l6.w,",").concat(l6.h/2),"L".concat(l6.w-ut,",").concat(l6.h/2+l7),"L".concat(l6.w-ut,",").concat(l6.h/2+l9/2),"L".concat(l6.w/2+ue/2,",").concat(l6.h/2+l9/2),"L".concat(l6.w/2+ue/2,",").concat(l6.h),"L".concat(l6.w/2-ue/2,",").concat(l6.h),"L".concat(l6.w/2-ue/2,",").concat(l6.h/2+l9/2),"L".concat(ut,",").concat(l6.h/2+l9/2),"L".concat(ut,",").concat(l6.h/2+l7),"Z"].join(" "),un.setAttribute("d",ui),uq=un,ur=t.extend,uo=Pq("adj4",t,.48123)*ur.w,uQ={top:0,bottom:0,left:ur.w/2-uo/2,right:ur.w/2-uo/2,w:uo,h:ur.h};break;case"quadArrowCallout":us=Math.min((ua=t.extend).w,ua.h),ul=Pq("adj1",t,.18515)*us,uu=Pq("adj2",t,.18515)*us,uc=Pq("adj3",t,.18515)*us,uh=Pq("adj4",t,.48123)*ua.w,up=Pq("adj4",t,.48123)*ua.h,ud=PU("path"),uf=["M".concat(0,",").concat(ua.h/2),"L".concat(uc,",").concat(ua.h/2-uu),"L".concat(uc,",").concat(ua.h/2-ul/2),"L".concat(ua.w/2-uh/2,",").concat(ua.h/2-ul/2),"L".concat(ua.w/2-uh/2,",").concat(ua.h/2-up/2),"L".concat(ua.w/2-ul/2,",").concat(ua.h/2-up/2),"L".concat(ua.w/2-ul/2,",").concat(uc),"L".concat(ua.w/2-uu,",").concat(uc),"L".concat(ua.w/2,",").concat(0),"L".concat(ua.w/2+uu,",").concat(uc),"L".concat(ua.w/2+ul/2,",").concat(uc),"L".concat(ua.w/2+ul/2,",").concat(ua.h/2-up/2),"L".concat(ua.w/2+uh/2,",").concat(ua.h/2-up/2),"L".concat(ua.w/2+uh/2,",").concat(ua.h/2-ul/2),"L".concat(ua.w-uc,",").concat(ua.h/2-ul/2),"L".concat(ua.w-uc,",").concat(ua.h/2-uu),"L".concat(ua.w,",").concat(ua.h/2),"L".concat(ua.w-uc,",").concat(ua.h/2+uu),"L".concat(ua.w-uc,",").concat(ua.h/2+ul/2),"L".concat(ua.w/2+uh/2,",").concat(ua.h/2+ul/2),"L".concat(ua.w/2+uh/2,",").concat(ua.h/2+up/2),"L".concat(ua.w/2+ul/2,",").concat(ua.h/2+up/2),"L".concat(ua.w/2+ul/2,",").concat(ua.h-uc),"L".concat(ua.w/2+uu,",").concat(ua.h-uc),"L".concat(ua.w/2,",").concat(ua.h),"L".concat(ua.w/2-uu,",").concat(ua.h-uc),"L".concat(ua.w/2-ul/2,",").concat(ua.h-uc),"L".concat(ua.w/2-ul/2,",").concat(ua.h/2+up/2),"L".concat(ua.w/2-uh/2,",").concat(ua.h/2+up/2),"L".concat(ua.w/2-uh/2,",").concat(ua.h/2+ul/2),"L".concat(uc,",").concat(ua.h/2+ul/2),"L".concat(uc,",").concat(ua.h/2+uu),"Z"].join(" "),ud.setAttribute("d",uf),uq=ud,ug=t.extend,uy=Pq("adj4",t,.48123)*ug.w,uv=Pq("adj4",t,.48123)*ug.h,uQ={top:ug.h/2-uv/2,bottom:ug.h/2-uv/2,left:ug.w/2-uy/2,right:ug.w/2-uy/2,w:uy,h:uv}}uq&&(u$?"blipFill"===(null==uj?void 0:uj.type)?(um=uq,u_=void 0===(ux=t.background)?{}:ux,ub=t.extend,uw=u_.base64,uS=u_.alpha,uT=(uI=void 0===(uM=u_.fillRect)?{}:uM).b,uA=void 0===(uC=uI.t)?0:uC,uD=void 0===(uL=uI.l)?0:uL,uk=uI.r,uP=PU("defs"),(uO=PU("pattern")).setAttribute("id","background_"+t.uuid),uO.setAttribute("patternUnits","userSpaceOnUse"),uO.setAttribute("width",ub.w+""),uO.setAttribute("height",ub.h+""),(uR=PU("image")).setAttribute("href",uw),uR.setAttribute("preserveAspectRatio","none"),uN=ub.w*uD,uE=ub.h*uA,uz=ub.w*(1-uD-(void 0===uk?0:uk)),uB=ub.h*(1-uA-(void 0===uT?0:uT)),uR.setAttribute("width",uz+""),uR.setAttribute("height",uB+""),uR.setAttribute("x",uN+""),uR.setAttribute("y",uE+""),"number"==typeof uS&&uR.setAttribute("opacity",uS+""),uO.appendChild(uR),uP.appendChild(uO),uK.appendChild(uP),um.setAttribute("fill","url(#background_".concat(t.uuid,")"))):"gradFill"===(null==uj?void 0:uj.type)?function(t,e,n){var i=t.background,r=void 0===i?{}:i;t.extend;var o=r.gsList,a=r.lin,s=r.path,l=r.tileRect,u=void 0===l?{}:l,c=PU("defs"),h=PU("circle"===s?"radialGradient":"linearGradient");h.setAttribute("id","background_grad_fill_"+t.uuid);var p=o||[];if(p.sort(function(t,e){return t.pos-e.pos}),p.forEach(function(t){var e=PU("stop");e.setAttribute("offset","".concat(100*t.pos,"%")),e.setAttribute("stop-color",PT(t.color)),h.appendChild(e)}),"circle"===s){var d=u.r,f=u.l,g=u.t,y=u.b;-1===d?h.setAttribute("cx","100%"):-1===f&&h.setAttribute("cx","0%"),-1===g?h.setAttribute("cy","0%"):-1===y&&h.setAttribute("cy","100%")}else(null==a?void 0:a.ang)&&h.setAttribute("gradientTransform","rotate(".concat(a.ang,")"));c.appendChild(h),e.appendChild(c),n.setAttribute("fill","url(#background_grad_fill_".concat(t.uuid,")"))}(t,uK,uq):uq.setAttribute("fill",PT(uj)||"transparent"):uq.setAttribute("fill","transparent"),uG.width?(uq.setAttribute("stroke-width",uG.width+"px"),uq.setAttribute("stroke",PT(uG.color)||"transparent")):uq.setAttribute("stroke-width","0"),uq.setAttribute("stroke-dasharray",uG&&"solid"!==uG.type?(({sysDot:[1,1],sysDash:[3,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]})[uG.type]||[]).map(function(t){return t*uG.width}).join(","):""),uq.setAttribute("stroke-linecap",uG.cap&&({sq:"square",rnd:"round",flat:"butt"})[uG.cap]||"square"),uq.setAttribute("stroke-linejoin",uG.lineJoin||"round"),"miter"===uG.lineJoin&&uq.setAttribute("stroke-miterlimit",uG.miterLim+""),uK.appendChild(uq));var uJ=[];uH&&uJ.push("scaleX(-1)"),uZ&&uJ.push("scaleY(-1)"),uK.style.setProperty("transform",uJ.join(" ")),uX.appendChild(uK);var u0=function(t,e,n){void 0===n&&(n=!1);var i,r=t.inheritProps,o=t.props,a=t.paragraphs;if(!a||0===a.length)return null;var s=(0,tr.__assign)((0,tr.__assign)({},r),o),l=document.createElement("div");switch(l.className="text-wrapper",l.style.boxSizing="border-box",l.style.position="absolute",l.style.left=e.left+"px","eaVert"===s.vert?(l.style.writingMode="vertical-rl",l.style.height=e.h+"px"):l.style.width=e.w+"px",s.anchor){case"b":l.style.bottom=e.bottom+"px";break;case"t":l.style.top=e.top+"px";break;case"ctr":l.style.top=e.top+e.h/2+"px",l.style.transform="translateY(-50%)";break;default:n?l.style.top=e.top+"px":(l.style.top=e.top+e.h/2+"px",l.style.transform="translateY(-50%)")}var u=[s.hasOwnProperty("tIns")?Math.floor(s.tIns)+"px":"3px",s.hasOwnProperty("rIns")?Math.floor(s.rIns)+"px":"5px",s.hasOwnProperty("bIns")?Math.floor(s.bIns)+"px":"3px",s.hasOwnProperty("lIns")?Math.floor(s.lIns)+"px":"5px"];l.style.padding=u.join(" ");for(var c={},h=0,p=0;p<a.length;p++)!function(t){var e=(0,tr.__assign)((0,tr.__assign)({},t.inheritProps),t.props),n=void 0;if(e.buAutoNum){var r=e.level?+e.level:0;c[r]||(c[r]=0),(null==(i=t.rows)?void 0:i.length)&&c[r]++,Object.keys(c).forEach(function(t){+t>r&&(c[t]=0)}),n=PZ(t,c[r],{isFirst:0===h,isLast:a.length-1===h,bodyProps:s})}else n=PZ(t,0,{isFirst:0===h,isLast:a.length-1===h,bodyProps:s});l.appendChild(n),h++}(a[p]);return l}(t.textBody,uQ,t.isTextBox);return u0&&uX.appendChild(u0),uW&&uX.style.setProperty("transform","rotate(".concat(uW,"deg)")),uX}var Ot={};function Oe(t,e){Ot[t]||(Ot[t]=[]),Ot[t].push(e)}function On(t,e){if(Ot[t])for(var n=0;n<Ot[t].length;n++)Ot[t][n](e)}function Oi(t,e){Ot[t]&&(Ot[t]=Ot[t].filter(function(t){return t!==e}))}var Or=function(){function t(t,e,n){this.scale=1,this.wrapper=t,this.pptx=e,this.options=n,this._calcScaleAndRenderPort()}return t.prototype._calcScaleAndRenderPort=function(){var t=this.options.viewPort.width/this.pptx.width;this.scale=t;var e=this.options.viewPort.width,n=this.pptx.height*this.scale;this.renderPort={width:e,height:n,left:0,top:0}},t.prototype.renderSlide=function(t){var e=this.pptx.slides[t],n=document.createElement("div");n.classList.add("pptx-preview-slide-wrapper"),n.classList.add("pptx-preview-slide-wrapper-".concat(t)),n.style.setProperty("width",this.renderPort.width+"px"),n.style.setProperty("height",this.renderPort.height+"px"),n.style.setProperty("position","slide"===this.options.mode?"absolute":"relative"),"slide"===this.options.mode&&n.style.setProperty("top",(this.options.viewPort.height-this.renderPort.height)/2+"px"),n.style.margin="0 auto 10px",n.style.setProperty("background","#fff"),n.style.setProperty("overflow","hidden"),this._renderBackground(e,n),this._renderSlideMaster(e.slideMaster,n),this._renderSlideLayout(e.slideLayout,n),this._renderSlide(e,n),this.wrapper.append(n)},t.prototype._renderSlideMaster=function(t,e){var n=document.createElement("div");n.classList.add("slide-master-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var i=(0,tr.__spreadArray)([],t.nodes,!0).filter(function(t){return t.userDrawn});i.sort(function(t,e){return t.order>e.order?1:-1});for(var r=0;r<i.length;r++){var o=this._renderNode(i[r]);o&&n.append(o)}e.append(n)},t.prototype._renderSlideLayout=function(t,e){var n=document.createElement("div");n.classList.add("slide-layout-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var i=(0,tr.__spreadArray)([],t.nodes,!0).filter(function(t){return t.userDrawn});i.sort(function(t,e){return t.order>e.order?1:-1});for(var r=0;r<i.length;r++){var o=this._renderNode(i[r]);o&&n.append(o)}e.append(n)},t.prototype._renderSlide=function(t,e){var n=document.createElement("div");n.classList.add("slide-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var i=(0,tr.__spreadArray)([],t.nodes,!0);i.sort(function(t,e){return t.order>e.order?1:-1});for(var r=0;r<i.length;r++){var o=this._renderNode(i[r]);o&&n.append(o)}e.append(n)},t.prototype._renderNode=function(t){var e,n,i,r,o,a,s,l,u,c,h,p,d,f,g,y,v,m;return t instanceof Pk?PH(t):t instanceof PD?P7(t):t instanceof PO?function t(e){var n=document.createElement("div"),i=e.extend;e.chExtend;var r=e.offset;e.chOffset;var o=e.flipV,a=e.flipH,s=e.rotate,l=r.x,u=r.y,c=i.w,h=i.h;n.className="group",n.style.position="absolute",n.style.left=l+"px",n.style.top=u+"px",n.style.width=c+"px",n.style.height=h+"px";var p=[];a&&p.push("scaleX(-1)"),o&&p.push("scaleY(-1)"),s&&p.push("rotate(".concat(s,"deg)")),n.style.transformOrigin="center center",n.style.transform=p.join(" ");for(var d=0;d<e.nodes.length;d++){var f=e.nodes[d],g=void 0;f instanceof Pk?g=PH(f):f instanceof PD?g=P7(f):f instanceof PO&&(g=t(f)),g&&n.appendChild(g)}return n}(t):t instanceof PR?function(t){var e=document.createElement("div"),n=t.extend,i=t.offset,r=t.flipV,o=t.flipH,a=t.rotate,s=i.x,l=i.y,u=n.w,c=n.h;e.className="smart-chart-diagram",e.style.position="absolute",e.style.left=s+"px",e.style.top=l+"px",e.style.width=u+"px",e.style.height=c+"px";var h=[];o&&h.push("scaleX(-1)"),r&&h.push("scaleY(-1)"),a&&h.push("rotate(".concat(a,"deg)")),e.style.transformOrigin="center center",e.style.transform=h.join(" ");for(var p=0;p<t.nodes.length;p++){var d=t.nodes[p],f=void 0;d instanceof Pk?f=PH(d):d instanceof PD&&(f=P7(d)),f&&e.appendChild(f)}return e}(t):t instanceof PP?(e=t.extend,n=t.offset,i=t.tr,r=t.tableGrid.gridCol,(o=document.createElement("div")).style.position="absolute",o.style.left=n.x+"px",o.style.top=n.y+"px",o.style.width=e.w+"px",o.style.height=e.h+"px",(a=document.createElement("table")).style.borderCollapse="collapse",i.forEach(function(t){var e=t.props,n=t.td,i=e.height,o=document.createElement("tr");o.style.height=i+"px",n.forEach(function(t,e){var n,i,a=t.props,s=t.inheritTcStyle,l=t.inheritTcTxStyle,u=t.paragraphs;if(!a.vMerge&&!a.hMerge){var c=document.createElement("td");c.style.width=((null==(n=r[e])?void 0:n.width)||30)+"px",a.rowSpan&&c.setAttribute("rowspan",a.rowSpan+""),a.gridSpan&&c.setAttribute("colspan",a.gridSpan+"");var h=a.background||s.background;h&&(c.style.background=PT(h));var p=(0,tr.__assign)((0,tr.__assign)({},s.border),a.border),d=function(t){return t?t.toLowerCase().includes("dash")?"dashed":t.toLowerCase().includes("dot")?"dotted":"solid":"solid"};p.bottom&&(c.style.borderBottom="".concat(p.bottom.width,"px ").concat(d(p.bottom.type)," ").concat(PT(p.bottom.color))),p.top&&(c.style.borderTop="".concat(p.top.width,"px ").concat(d(p.top.type)," ").concat(PT(p.top.color))),p.left&&(c.style.borderLeft="".concat(p.left.width,"px ").concat(d(p.left.type)," ").concat(PT(p.left.color))),p.right&&(c.style.borderRight="".concat(p.right.width,"px ").concat(d(p.right.type)," ").concat(PT(p.right.color)));var f=document.createElement("div");switch(f.className="text-wrapper",f.style.boxSizing="border-box",f.style.width="100%",f.style.height="100%",f.style.overflow="hidden",f.style.display="flex",f.style.flexDirection="column",a.anchor){case"b":f.style.justifyContent="flex-end";break;case"t":f.style.justifyContent="flex-start";break;case"ctr":f.style.justifyContent="center"}var g=[a.hasOwnProperty("marT")?Math.floor(a.marT)+"px":"3px",a.hasOwnProperty("marR")?Math.floor(a.marR-1)+"px":"5px",a.hasOwnProperty("marB")?Math.floor(a.marB)+"px":"3px",a.hasOwnProperty("marL")?Math.floor(a.marL-1)+"px":"5px"];f.style.padding=g.join(" ");for(var y=(0,tr.__assign)({},a),v={},m=u.map(function(t){return(0,tr.__assign)((0,tr.__assign)({},t),{props:(0,tr.__assign)({align:"l"},t.props),inheritRProps:(0,tr.__assign)((0,tr.__assign)({},t.inheritRProps),l)})}),x=0,_=0;_<m.length;_++)!function(t){var e=(0,tr.__assign)((0,tr.__assign)({},t.inheritProps),t.props),n=void 0;if(e.buAutoNum){var r=e.level?+e.level:0;v[r]||(v[r]=0),(null==(i=t.rows)?void 0:i.length)&&v[r]++,Object.keys(v).forEach(function(t){+t>r&&(v[t]=0)}),n=PZ(t,v[r],{isFirst:0===x,isLast:u.length-1===x,bodyProps:y})}else n=PZ(t,0,{isFirst:0===x,isLast:u.length-1===x,bodyProps:y});f.appendChild(n),x++}(m[_]);c.append(f),o.append(c)}}),a.append(o)}),o.append(a),o):t instanceof PN?(s=document.createElement("div"),l=t.extend,u=t.offset,c=t.flipV,h=t.flipH,p=t.rotate,d=t.options,f=u.x,g=u.y,y=l.w,v=l.h,s.className="chart-node",s.style.position="absolute",s.style.left=f+"px",s.style.top=g+"px",s.style.width=y+"px",s.style.height=v+"px",m=[],h&&m.push("scaleX(-1)"),c&&m.push("scaleY(-1)"),p&&m.push("rotate(".concat(p,"deg)")),s.style.transformOrigin="center center",s.style.transform=m.join(" "),setTimeout(function(){var t=function(t,e){var n=!(e&&e.ssr);if(n){var i=function(t){return fe[t.getAttribute?t.getAttribute(fr):t[fr]]}(t);if(i)return i}var r=new d0(t,null,e);return r.id="ec_"+fi++,fe[r.id]=r,n&&ot(t,fr,r.id),U(r),dj.trigger("afterinit",r),r}(s,{renderer:"svg"});t.setOption(d),Oe("destroy",function(){t&&t.dispose(),t&&(t=null)}),Oe("removeSlide",function(){t&&t.dispose(),t&&(t=null)})},0),s):void 0},t.prototype._renderBackground=function(t,e){var n,i=document.createElement("div");i.classList.add("slide-background"),i.style.setProperty("position","absolute"),i.style.setProperty("left","0"),i.style.setProperty("top","0"),i.style.setProperty("width","100%"),i.style.setProperty("height","100%");var r=t.background;if("none"===r.type&&(r=t.slideLayout.background),"none"===r.type&&(r=t.slideMaster.background),"blipFill"===r.type){var o=r,a=o.base64,s=o.alpha,l=o.fillRect,u=void 0===l?{}:l,c=u.b,h=void 0===c?0:c,p=u.t,d=void 0===p?0:p,f=u.l,g=void 0===f?0:f,y=u.r,v=void 0===y?0:y,m=this.renderPort.width*g,x=this.renderPort.height*d,_=this.renderPort.width*(1-g-v),b=this.renderPort.height*(1-d-h);i.style.backgroundImage="url(".concat(a,")"),i.style.backgroundSize="".concat(_," ").concat(b),i.style.backgroundPosition="".concat(m,"px ").concat(x,"px"),s&&(i.style.opacity=s+""),i.style.backgroundRepeat="no-repeat"}else if("solidFill"===r.type){var w=PT(t.background)||PT(t.slideLayout.background)||PT(t.slideMaster.background);w?i.style.setProperty("background",w):i.style.setProperty("background","#fff")}else if("gradFill"===r.type)if("circle"===r.path){var S=r.tileRect||{},M=(h=S.b,d=S.t,g=S.l,"radial-gradient(circle at ");-1===(v=S.r)?M+=" right":-1===g&&(M+=" left"),-1===d?M+=" top":-1===h&&(M+=" bottom"),h||d||g||v||(M+=" center"),M+=",",M+=r.gsList.map(function(t){return"".concat(PT(t.color)," ").concat(100*t.pos+"%")}).join(","),i.style.setProperty("background",M)}else{var I=(null==(n=null==r?void 0:r.lin)?void 0:n.ang)||0;M="linear-gradient(".concat(I+90,"deg,")+r.gsList.map(function(t){return"".concat(PT(t.color)," ").concat(100*t.pos+"%")}).join(","),i.style.setProperty("background",M)}e.append(i)},t}(),Oo=function(){function t(t,e){this.currentIndex=-1,this.dom=t,this.options=e,this._renderWrapper()}return Object.defineProperty(t.prototype,"slideCount",{get:function(){var t,e;return null==(e=null==(t=this.pptx)?void 0:t.slides)?void 0:e.length},enumerable:!1,configurable:!0}),t.prototype._renderWrapper=function(){var t=document.createElement("div");t.classList.add("pptx-preview-wrapper"),t.setAttribute("position","relative"),t.style.setProperty("background","#000"),t.style.setProperty("width",this.options.width+"px"),this.options.height&&t.style.setProperty("height",this.options.height+"px"),t.style.setProperty("position","relative"),t.style.setProperty("margin","0 auto"),this.options.height&&t.style.setProperty("overflow-y","auto"),this.dom.append(t),this.wrapper=t},t.prototype.renderNextButton=function(){var t=document.createElement("div");t.classList.add("pptx-preview-wrapper-next"),t.style.setProperty("position","absolute"),t.style.setProperty("bottom","20px"),t.style.setProperty("right","80px"),t.style.setProperty("z-index","100"),t.style.setProperty("cursor","pointer"),t.style.setProperty("width","40px"),t.style.setProperty("height","40px"),t.style.setProperty("background","#666666"),t.style.setProperty("border-radius","100%");var e=document.createElement("div");return e.style.setProperty("width","10px"),e.style.setProperty("height","10px"),e.style.setProperty("border-left","2px solid #fff"),e.style.setProperty("border-bottom","2px solid #fff"),e.style.setProperty("transform","rotate(225deg)"),e.style.setProperty("position","absolute"),e.style.setProperty("top","15px"),e.style.setProperty("left","15px"),t.append(e),t},t.prototype.renderPreButton=function(){var t=document.createElement("div");t.classList.add("pptx-preview-wrapper-next"),t.style.setProperty("position","absolute"),t.style.setProperty("bottom","20px"),t.style.setProperty("right","140px"),t.style.setProperty("z-index","100"),t.style.setProperty("cursor","pointer"),t.style.setProperty("width","40px"),t.style.setProperty("height","40px"),t.style.setProperty("background","#666666"),t.style.setProperty("border-radius","100%");var e=document.createElement("div");return e.style.setProperty("width","10px"),e.style.setProperty("height","10px"),e.style.setProperty("border-left","2px solid #fff"),e.style.setProperty("border-bottom","2px solid #fff"),e.style.setProperty("transform","rotate(45deg)"),e.style.setProperty("position","absolute"),e.style.setProperty("top","15px"),e.style.setProperty("left","15px"),t.append(e),t},t.prototype.updatePagination=function(){var t=this.wrapper.querySelector(".pptx-preview-wrapper-pagination");t&&(t.innerText="".concat(this.currentIndex+1,"/").concat(this.slideCount))},t.prototype.renderPagination=function(t){var e=document.createElement("div");e.classList.add("pptx-preview-wrapper-pagination"),e.innerText="".concat(this.currentIndex+1,"/").concat(this.slideCount),e.style.setProperty("position","absolute"),e.style.setProperty("bottom","33px"),e.style.setProperty("right","20px"),e.style.setProperty("color","#666666"),e.style.setProperty("font-size","14px"),e.style.setProperty("z-index","100"),t.append(e)},t.prototype.removeCurrentSlide=function(){var t=this.wrapper.querySelector(".pptx-preview-slide-wrapper-".concat(this.currentIndex));t&&this.wrapper.removeChild(t),On("removeSlide")},t.prototype.renderNextSlide=function(){this.removeCurrentSlide(),this.currentIndex=this.currentIndex<this.slideCount-1?this.currentIndex+1:0,this.htmlRender.renderSlide(this.currentIndex),this.updatePagination()},t.prototype.renderPreSlide=function(){this.removeCurrentSlide(),this.currentIndex=this.currentIndex>0?this.currentIndex-1:this.slideCount-1,this.htmlRender.renderSlide(this.currentIndex),this.updatePagination()},t.prototype._addPre=function(t){},t.prototype.preview=function(t){var e=this;return On("destroy"),Oi("destroy"),new Promise(function(n,i){e.wrapper.innerHTML="";var r=e.pptx=new PW;r.load(t).then(function(){try{var t=e.htmlRender=new Or(e.wrapper,r,{viewPort:{width:e.options.width,height:e.options.height},mode:e.options.mode});if("slide"===e.options.mode){var o=e.renderNextButton();o.onclick=function(){e.renderNextSlide()},e.wrapper.append(o);var a=e.renderPreButton();a.onclick=function(){e.renderPreSlide()},e.wrapper.append(a),e.renderPagination(e.wrapper),e._addPre(e.wrapper),e.currentIndex=0,t.renderSlide(0)}else for(var s=0;s<r.slides.length;s++)t.renderSlide(s);n(r)}catch(t){i(t)}}).catch(function(t){i(t)})})},t.prototype.load=function(t){var e=this;return On("destroy"),Oi("destroy"),new Promise(function(n,i){e.wrapper.innerHTML="";var r=e.pptx=new PW;r.load(t).then(function(){try{e.htmlRender=new Or(e.wrapper,r,{viewPort:{width:e.options.width,height:e.options.height},mode:e.options.mode}),n(r)}catch(t){i(t)}}).catch(function(t){i(t)})})},t.prototype.renderSingleSlide=function(t){this.removeCurrentSlide(),this.currentIndex=t,this.htmlRender.renderSlide(this.currentIndex)},t.prototype.destroy=function(){On("destroy"),Oi("destroy")},t}();t.s(["init",0,function(t,e){return new Oo(t,e)}],203010)}]);
|